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

/* ── HERO visual: fan of phone mockups ───────────────────── */
.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: 40px; 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; } }

/* ── 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; 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 img { width: 300px; max-width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(48,48,48,.24)); }

.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 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: ''; width: 9px; height: 9px; background: var(--aqua-d); transform: skewX(var(--skew)); }
.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; }

/* ── Scroll motion (directional, opacity-safe) ───────────── */
.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; }

.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); }

.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; }

@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; }
}
@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); }

  /* 2nd section (principles) — fit one mobile screen: compact heading + horizontal cards */
  .cf-principles .container { padding-top: 36px; padding-bottom: 36px; }
  .cf-prin-head { margin-bottom: 20px; }
  .cf-prin-head h2 { font-size: clamp(26px, 7.5vw, 34px); margin-bottom: 12px; }
  .cf-prin-head p { font-size: 15px; line-height: 1.5; }
  .cf-prin-grid { gap: 10px; }
  .cf-prin { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 3px; align-items: center; padding: 13px 16px; }
  .cf-prin .ico { grid-row: 1 / 3; width: 40px; height: 40px; }
  .cf-prin .ico svg { width: 20px; height: 20px; }
  .cf-prin h3 { align-self: end; font-size: 16px; }
  .cf-prin p { align-self: start; font-size: 13.5px; line-height: 1.45; }

  /* Each format description + example — fit one mobile screen */
  .cf-row { gap: 18px; padding: 22px 0; }
  .cf-media img { width: 188px; }
  .cf-copy .cf-index { font-size: 12px; }
  .cf-copy h3 { font-size: clamp(26px, 7.5vw, 34px); margin-top: 6px; }
  .cf-copy .cf-desc { font-size: 14px; line-height: 1.5; margin-top: 10px; }
  .cf-best { margin-top: 14px; }
  .cf-best .bl-lab { margin-bottom: 10px; }
  .cf-best ul { gap: 7px; }
  .cf-best li { font-size: 13.5px; }
  .cf-cta-row { margin-top: 16px; }
}
