/* ============================================================
   Picnic — Creative Formats page (page-scoped)
   Relies on chrome.css tokens + media-solution-detail.css base.
   ============================================================ */

/* ── HERO visual: fan of phone mockups ───────────────────── */
.cf-hero .md-hero-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 14px; }
.cf-hero .md-hero-ico svg { width: 50px; height: 50px; }
.cf-hero { padding-bottom: 52px; }
.cf-herovis { position: relative; height: 470px; display: flex; align-items: center; justify-content: center; }
.cf-fan { position: relative; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .cf-fan { animation: cfBob 6.5s ease-in-out infinite; }
  .cf-fan-glow { animation: cfGlow 5s ease-in-out infinite; }
  .cf-fan .f-c { animation: cfBobC 5.5s ease-in-out infinite; }
}
@keyframes cfBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cfBobC { 0%,100% { transform: translate(-50%,-50%) translateY(-8px); } 50% { transform: translate(-50%,-50%) translateY(-20px); } }
@keyframes cfGlow { 0%,100% { opacity: .45; } 50% { opacity: .72; } }
.cf-fan-glow { position: absolute; top: 50%; left: 50%; width: 360px; height: 360px; transform: translate(-50%,-50%) skewX(var(--skew)); background: radial-gradient(circle at 50% 40%, var(--aqua-m), transparent 70%); opacity: .55; border-radius: 0; filter: blur(6px); z-index: 0; }
.cf-fan img { position: absolute; top: 50%; left: 50%; width: 236px; height: auto; filter: drop-shadow(0 32px 46px rgba(48,48,48,.26)); transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.cf-fan .f-l { transform: translate(-50%,-50%) translateX(-146px) rotate(-8deg) scale(.9); z-index: 1; }
.cf-fan .f-r { transform: translate(-50%,-50%) translateX(146px) rotate(8deg) scale(.9); z-index: 1; }
.cf-fan .f-c { transform: translate(-50%,-50%) translateY(-8px); z-index: 2; }
.cf-herovis:hover .f-l { transform: translate(-50%,-50%) translateX(-172px) rotate(-10deg) scale(.92); }
.cf-herovis:hover .f-r { transform: translate(-50%,-50%) translateX(172px) rotate(10deg) scale(.92); }
@media (prefers-reduced-motion: reduce) { .cf-fan img { transition: none; } }
.cf-herovis .phone { position: absolute; }
.cf-herovis .phone.p-back-l { transform: translateX(-118px) rotate(-9deg) scale(.82); z-index: 1; }
.cf-herovis .phone.p-back-r { transform: translateX(118px) rotate(9deg) scale(.82); z-index: 1; }
.cf-herovis .phone.p-front { z-index: 2; transform: translateY(-6px); }
.cf-floatchip { position: absolute; z-index: 3; font-family: var(--font-sans); font-weight: 800; font-size: 12px; letter-spacing: .04em; padding: 9px 15px 9px 13px; background: #fff; border: 1px solid var(--mist-line); box-shadow: 0 18px 34px -18px rgba(48,48,48,.4); display: inline-flex; align-items: center; gap: 9px; transform: skewX(var(--skew)); }
.cf-floatchip > span { transform: skewX(calc(-1 * var(--skew))); display: inline-flex; align-items: center; gap: 9px; }
.cf-floatchip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink-1); flex: 0 0 auto; }
.cf-floatchip.c-aqua .dot { background: var(--aqua-d); }
.cf-floatchip.f1 { top: 34px; left: 2%; }
.cf-floatchip.f2 { bottom: 74px; right: 0%; }

/* ── shared phone mockup ─────────────────────────────────── */
.phone { width: 258px; aspect-ratio: 258 / 540; background: #131315; border-radius: 40px; padding: 11px; box-shadow: 0 44px 88px -34px rgba(48,48,48,.5), 0 8px 22px rgba(48,48,48,.14); position: relative; }
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 74px; height: 20px; background: #131315; border-radius: 0 0 13px 13px; z-index: 5; }
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; position: relative; display: flex; flex-direction: column; }

/* generic screen primitives */
.sc-bar { background: var(--mist-line); border-radius: 999px; }
.sc-media { background: repeating-linear-gradient(135deg, rgba(138,219,205,.24) 0 12px, rgba(138,219,205,.06) 12px 24px), var(--aqua-l); position: relative; }
.sc-media.dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 12px, rgba(255,255,255,.02) 12px 24px), #23242A; }
.sc-media.pink { background: repeating-linear-gradient(135deg, rgba(248,80,111,.26) 0 12px, rgba(248,80,111,.07) 12px 24px), #FFE3E8; }
.sc-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.sc-play::after { content: ''; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.sc-ctabar { margin-top: auto; background: var(--pink-1); color: #fff; font-family: var(--font-sans); font-weight: 800; font-size: 11px; letter-spacing: .04em; text-align: center; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.sc-ctabar svg { width: 13px; height: 13px; }

/* Stories */
.sc-stories { height: 100%; display: flex; flex-direction: column; }
.sc-stories .prog { display: flex; gap: 5px; padding: 22px 14px 10px; }
.sc-stories .prog i { flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,.45); }
.sc-stories .prog i.on { background: #fff; }
.sc-stories .body { flex: 1; position: relative; }
.sc-stories .body .brand { position: absolute; top: 12px; left: 14px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.sc-stories .body .brand .av { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.sc-stories .body .brand .bl { width: 58px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.85); }
.sc-stories .body .cap { position: absolute; left: 16px; right: 16px; bottom: 62px; display: flex; flex-direction: column; gap: 7px; z-index: 2; }
.sc-stories .body .cap i { height: 8px; border-radius: 999px; background: rgba(255,255,255,.9); }
.sc-stories .body .cap i:nth-child(2) { width: 70%; }
.sc-stories .hotspot { position: absolute; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 4px 12px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; }
.sc-stories .hotspot::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--pink-1); }
.sc-stories .hotspot.h1 { top: 44%; right: 30px; }

/* Posts */
.sc-posts { height: 100%; display: flex; flex-direction: column; background: #fff; }
.sc-posts .phead { display: flex; align-items: center; gap: 9px; padding: 26px 14px 12px; }
.sc-posts .phead .av { width: 30px; height: 30px; border-radius: 50%; background: var(--pink-1); flex: 0 0 auto; }
.sc-posts .phead .lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sc-posts .phead .lines i { height: 7px; border-radius: 999px; background: var(--mist-line); }
.sc-posts .phead .lines i:nth-child(1) { width: 55%; }
.sc-posts .phead .lines i:nth-child(2) { width: 34%; }
.sc-posts .pmedia { flex: 1; }
.sc-posts .pcap { padding: 13px 14px; display: flex; flex-direction: column; gap: 7px; }
.sc-posts .pcap i { height: 8px; border-radius: 999px; background: var(--mist-line); }
.sc-posts .pcap i:nth-child(3) { width: 60%; }

/* Carousel */
.sc-carousel { height: 100%; display: flex; flex-direction: column; background: #fff; }
.sc-carousel .chead { padding: 26px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.sc-carousel .chead i { height: 7px; border-radius: 999px; background: var(--mist-line); }
.sc-carousel .chead i:nth-child(1) { width: 50%; }
.sc-carousel .strip { flex: 1; display: flex; gap: 10px; padding: 4px 0 4px 14px; align-items: stretch; overflow: hidden; }
.sc-carousel .strip .card { flex: 0 0 62%; border-radius: 14px; display: flex; flex-direction: column; }
.sc-carousel .strip .card .m { flex: 1; border-radius: 14px 14px 0 0; }
.sc-carousel .strip .card .t { padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--mist); border-radius: 0 0 14px 14px; }
.sc-carousel .strip .card .t i { height: 6px; border-radius: 999px; background: var(--mist-line); }
.sc-carousel .strip .card .t i:nth-child(2) { width: 55%; }
.sc-carousel .dots { display: flex; justify-content: center; gap: 6px; padding: 12px; }
.sc-carousel .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mist-line); }
.sc-carousel .dots i.on { background: var(--pink-1); width: 18px; border-radius: 999px; }

/* Clips */
.sc-clips { height: 100%; position: relative; }
.sc-clips .actions { position: absolute; right: 12px; bottom: 78px; display: flex; flex-direction: column; gap: 16px; z-index: 3; }
.sc-clips .actions .a { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); }
.sc-clips .cap { position: absolute; left: 14px; right: 60px; bottom: 22px; display: flex; flex-direction: column; gap: 7px; z-index: 3; }
.sc-clips .cap i { height: 8px; border-radius: 999px; background: rgba(255,255,255,.9); }
.sc-clips .cap i:nth-child(2) { width: 62%; }

/* Swipe Right */
.sc-swipe { height: 100%; background: var(--mist); display: flex; flex-direction: column; padding: 26px 16px 18px; }
.sc-swipe .card { flex: 1; border-radius: 18px 0 0 0; overflow: hidden; box-shadow: 0 16px 30px -16px rgba(48,48,48,.4); display: flex; flex-direction: column; transform: rotate(-3deg); }
.sc-swipe .card .m { flex: 1; }
.sc-swipe .card .foot { background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.sc-swipe .card .foot i { height: 7px; border-radius: 999px; background: var(--mist-line); }
.sc-swipe .card .foot i:nth-child(1) { width: 60%; }
.sc-swipe .btns { display: flex; justify-content: center; gap: 26px; padding-top: 16px; }
.sc-swipe .btns .b { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 8px 18px -8px rgba(48,48,48,.4); display: flex; align-items: center; justify-content: center; }
.sc-swipe .btns .b svg { width: 20px; height: 20px; }
.sc-swipe .btns .b.no { color: var(--ink-3); }
.sc-swipe .btns .b.yes { color: var(--pink-1); }

/* Showreels */
.sc-showreels { height: 100%; background: #fff; display: flex; flex-direction: column; }
.sc-showreels .hero { aspect-ratio: 16/9; margin: 26px 14px 0; border-radius: 12px; position: relative; overflow: hidden; }
.sc-showreels .thumbs { display: flex; gap: 8px; padding: 12px 14px; }
.sc-showreels .thumbs .th { flex: 1; aspect-ratio: 1/1; border-radius: 8px; }
.sc-showreels .thumbs .th.on { outline: 2px solid var(--pink-1); outline-offset: 2px; }
.sc-showreels .cap { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.sc-showreels .cap i { height: 8px; border-radius: 999px; background: var(--mist-line); }
.sc-showreels .cap i:nth-child(2) { width: 55%; }

/* Messenger */
.sc-messenger { height: 100%; background: var(--mist); display: flex; flex-direction: column; padding: 26px 12px 12px; gap: 10px; }
.sc-messenger .mhead { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; }
.sc-messenger .mhead .av { width: 26px; height: 26px; border-radius: 50%; background: var(--pink-1); }
.sc-messenger .mhead .bl { height: 7px; width: 52px; border-radius: 999px; background: var(--mist-line); }
.sc-messenger .bub { max-width: 74%; padding: 11px 13px; border-radius: 16px 0 0 0; display: flex; flex-direction: column; gap: 6px; }
.sc-messenger .bub i { height: 6px; border-radius: 999px; background: currentColor; opacity: .5; }
.sc-messenger .bub.them { align-self: flex-start; background: #fff; color: var(--ink-3); border-bottom-left-radius: 4px; }
.sc-messenger .bub.me { align-self: flex-end; background: var(--pink-1); color: #fff; border-bottom-right-radius: 4px; }
.sc-messenger .bub.them i:nth-child(2) { width: 70%; }
.sc-messenger .bub.me i { opacity: .7; }
.sc-messenger .quick { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.sc-messenger .quick i { height: 26px; flex: 1; min-width: 60px; border-radius: 999px; border: 1.5px solid var(--pink-1); }

/* ── PRINCIPLES ──────────────────────────────────────────── */
.cf-principles { background: var(--mist); border-top: 1px solid var(--mist-line); border-bottom: 1px solid var(--mist-line); }
.cf-principles .container { padding-top: 72px; padding-bottom: 72px; }
.cf-prin-head { max-width: 62ch; margin-bottom: 44px; }
.cf-prin-head h2 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(30px,3.4vw,50px); line-height: 1.0; letter-spacing: -.02em; color: var(--ink); margin: 0 0 18px; max-width: 20ch; text-wrap: balance; }
.cf-prin-head h2 .mark { background: var(--aqua-m); color: var(--ink); padding: 0 .14em; display: inline-block; transform: skewX(var(--skew)); }
.cf-prin-head h2 .mark > span { display: inline-block; transform: skewX(calc(-1 * var(--skew))); }
.cf-prin-head p { font-family: var(--font-sans); font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 60ch; }
.cf-prin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cf-prin { background: #fff; border: 1px solid var(--mist-line); border-radius: 18px 0 0 0; padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.cf-prin:hover { border-color: var(--aqua-d); transform: translateY(-3px); }
.cf-prin .ico { width: 46px; height: 46px; flex: 0 0 auto; border: 1.5px solid var(--mist-line); background: var(--mist); color: var(--pink-1); display: inline-flex; align-items: center; justify-content: center; }
.cf-prin .ico svg { width: 23px; height: 23px; }
.cf-prin h3 { font-family: var(--font-sans); font-weight: 900; font-size: 19px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.cf-prin p { font-family: var(--font-sans); font-weight: 400; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ── FORMATS ─────────────────────────────────────────────── */
.cf-formats { background: #fff; }
.cf-group-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 8px; }
.cf-group-head .lab { font-family: var(--font-sans); font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-1); display: inline-flex; align-items: center; gap: 11px; }
.cf-group-head .rule { flex: 1; height: 1px; background: var(--mist-line); }
.cf-group-head .count { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 12px; color: var(--ink-3); }

.cf-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; padding: 40px 0; }
.cf-row + .cf-group-head { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--mist-line); }
.cf-row.rev .cf-media { order: 2; }
.cf-media { display: flex; align-items: center; justify-content: center; position: relative; }
.cf-media .phone { position: relative; z-index: 1; }

.cf-copy .cf-index { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.cf-copy .cf-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid; margin-left: 12px; }
.cf-copy .cf-tag.social { color: #0B8F89; border-color: var(--aqua-d); background: var(--aqua-l); }
.cf-copy .cf-tag.immersive { color: var(--pink-1); border-color: var(--pink-1); background: #FFE3E8; }
.cf-copy h3 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(30px,3.4vw,46px); line-height: 1.0; letter-spacing: -.025em; color: var(--ink); margin: 16px 0 0; }
.cf-copy .cf-desc { font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; max-width: 52ch; }
.cf-best { margin: 22px 0 0; }
.cf-best .bl-lab { font-family: var(--font-sans); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.cf-best .bl-lab::before { content: none; }
.cf-best ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cf-best li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-family: var(--font-sans); font-weight: 500; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.cf-best li .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--aqua-l); color: #0B8F89; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.cf-best li .ck svg { width: 13px; height: 13px; }
.cf-best li b { color: var(--ink); font-weight: 700; }
.cf-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cf-cta-row .btn.outline { background: transparent; border-color: var(--aqua-d); color: var(--ink); }
.cf-cta-row .btn.outline:hover { background: var(--aqua-d); border-color: var(--aqua-d); color: var(--ink); }

/* ── SPECS STRIP ─────────────────────────────────────────── */
.cf-specs { background: var(--ink); color: #fff; }
.cf-specs .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 66px; padding-bottom: 66px; }
.cf-specs h2 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(28px,3vw,44px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; max-width: 16ch; }
.cf-specs h2 .mark { background: var(--aqua-m); color: var(--ink); padding: 0 .12em; display: inline-block; transform: skewX(var(--skew)); }
.cf-specs h2 .mark > span { display: inline-block; transform: skewX(calc(-1 * var(--skew))); }
.cf-specs p { font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.78); margin: 0 0 24px; max-width: 48ch; }
.cf-specs .btn.outline { background: transparent; border-color: var(--aqua-d); color: #fff; }
.cf-specs .btn.outline:hover { background: var(--aqua-d); border-color: var(--aqua-d); color: var(--ink); }
.cf-specrows { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 16px 0 0 0; overflow: hidden; }
.cf-specrow { background: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; }
.cf-specrow .k { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: #fff; }
.cf-specrow .v { font-family: ui-monospace, Menlo, monospace; font-weight: 600; font-size: 13px; color: var(--aqua-m); letter-spacing: .02em; }

/* ── Scroll motion (directional, opacity-safe) ───────────── */
/* Driven by the shared .reveal observer in media-solution-detail.js, which
   toggles .is-in on the .cf-row / .cf-prin-head / .cf-group-head. Children
   below animate off the parent's .is-in so they slide/fade in on scroll. */
.cf-row .cf-media { transform: translateX(-30px); opacity: 0; transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .8s ease; }
.cf-row.rev .cf-media { transform: translateX(30px); }
.cf-row .cf-copy > * { transform: translateY(20px); opacity: 0; transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .7s ease; }
.cf-row.is-in .cf-media { transform: none; opacity: 1; }
.cf-row.is-in .cf-copy > * { transform: none; opacity: 1; }
.cf-row.is-in .cf-copy > *:nth-child(1) { transition-delay: .06s; }
.cf-row.is-in .cf-copy > *:nth-child(2) { transition-delay: .13s; }
.cf-row.is-in .cf-copy > *:nth-child(3) { transition-delay: .20s; }
.cf-row.is-in .cf-copy > *:nth-child(4) { transition-delay: .27s; }

/* group-head rule sweeps out */
.cf-group-head .rule { transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.22,.61,.36,1) .1s; }
.cf-group-head.is-in .rule { transform: scaleX(1); }

/* best-for ticks stagger up */
.cf-best li { transform: translateY(10px); opacity: 0; transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .55s ease; }
.cf-row.is-in .cf-best li { transform: none; opacity: 1; }
.cf-row.is-in .cf-best li:nth-child(1) { transition-delay: .30s; }
.cf-row.is-in .cf-best li:nth-child(2) { transition-delay: .38s; }
.cf-row.is-in .cf-best li:nth-child(3) { transition-delay: .46s; }

/* principle cards lift + fade (parent already staggers via data-reveal-children) */
.cf-prin { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .cf-row .cf-media, .cf-row .cf-copy > *, .cf-group-head .rule, .cf-best li {
    transform: none !important; opacity: 1 !important; transition: none !important;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .cf-prin-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; gap: 36px; padding: 32px 0; }
  .cf-row.rev .cf-media { order: 0; }
  .cf-specs .container { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 700px) {
  .cf-herovis { height: 420px; }
  .cf-fan img { width: 178px; }
  .cf-fan .f-l { transform: translate(-50%,-50%) translateX(-104px) rotate(-8deg) scale(.88); }
  .cf-fan .f-r { transform: translate(-50%,-50%) translateX(104px) rotate(8deg) scale(.88); }
}
