/* Hully landing v2, in Hully's own brand (keynote branding + app look B, premium pass):
   near-black ground, white type, yellow for you and your next move, pink for what to fix,
   Champion for titles, Helvetica Now Micro for everything read, pill controls, 24px cards. */
@font-face { font-family: "Champion"; src: url("assets/fonts/champion-bantamweight.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Helvetica Now Micro"; src: url("assets/fonts/helvetica-now-micro-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Helvetica Now Micro"; src: url("assets/fonts/helvetica-now-micro-regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Helvetica Now Micro"; src: url("assets/fonts/helvetica-now-micro-bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --ground: #101012;
  --raised: #1b1b1f;
  --raised-2: #2a2a30;
  --edge: rgba(255, 255, 255, 0.08);
  --top-light: rgba(255, 255, 255, 0.06);
  --white: #ffffff;
  --dim: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.56);
  --yellow: #fae231;
  --yellow-press: #e3cc22;
  --pink: #ca287a;
  --pink-text: #ff6fb0;
  --black: #000000;
  --ink-dim: #3d3a1a;
  --display: "Champion", Impact, "Arial Narrow", sans-serif;
  --sans: "Helvetica Now Micro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 0 var(--top-light) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: var(--raised-2) var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--white);
  font: 400 1rem/1.55 var(--sans); letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased; caret-color: var(--yellow);
}
/* faint grain, as in the app's premium pass */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(255,255,255,.22); color: var(--white); }  /* yellow is text and CTA only, never a ground */
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: 0.005em; line-height: 0.92; text-transform: uppercase; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
cite { font-style: normal; opacity: .8; font-size: .9em; }
.yl { color: var(--yellow); }

:root { --gutter: clamp(16px, 3.5vw, 56px); --wrap: min(1920px, 100vw - 2 * var(--gutter)); }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--yellow); color: var(--black); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--black); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset; }
.btn--yellow:hover { background: var(--yellow-press); }
.btn--black { background: var(--black); color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.pill--ok { background: rgba(255,255,255,.1); color: var(--white); }
.pill--flag { background: rgba(202, 40, 122, .22); color: var(--pink-text); }
.pill--win { background: transparent; color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow) inset; margin-left: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: transparent; border-bottom: 1px solid transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.nav.is-scrolled { background: rgba(16, 16, 18, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--edge); }
.nav__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 24px; margin-left: 8px; }
.nav__links a { text-decoration: none; color: var(--dim); font-size: .92rem; transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__date { margin-left: auto; font-size: .82rem; color: var(--dim); background: var(--raised); box-shadow: 0 0 0 1px var(--edge) inset; border-radius: 999px; padding: 7px 13px; }

/* Hero: copy on the left, a moving wall of real ads on the right */
.hero { position: relative; overflow: hidden; margin-top: -68px; padding: 0; } /* slides under the clear nav so the wall reaches the top edge */

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; height: 100svh; min-height: 768px; max-height: 1200px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; padding-block: 116px 48px; }
.hero h1 { font-size: clamp(3.4rem, 7.4vw, 10.5rem); max-width: none; }  /* fills its column; condensed face, so no ch cap */
.hero h1 .yl { display: block; }
.hero__lead { font-size: clamp(1rem, 1.05vw, 1.15rem); line-height: 1.5; color: var(--dim); max-width: 46ch; margin: 28px 0 32px; }
.hero__agency { margin-top: 18px; color: var(--yellow); font-weight: 600; text-decoration: none; }
.hero__agency:hover { text-decoration: underline; }
.hero .join { width: min(500px, 100%); }

.wall { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow: hidden; margin-right: calc((100vw - var(--wrap)) / -2); mask-image: linear-gradient(180deg, #000 88%, transparent); }
.wall__col { min-width: 0; }
.wall__track { display: flex; flex-direction: column; gap: 16px; animation: wall-up 48s linear infinite; }
.wall__col:nth-child(2) .wall__track { animation-name: wall-down; animation-duration: 56s; }
.wall__col:nth-child(3) .wall__track { animation-duration: 42s; }
.wall:hover .wall__track { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wall .ad { width: 100%; }
.wall .ad--tall { aspect-ratio: 3 / 4.4; }
.wall .ad--square { aspect-ratio: 1 / 1; }
.wall .ad__line { font-size: clamp(1.05rem, 1.35vw, 1.4rem); }

/* Join form */
.join { width: min(720px, 100%); }
.join__fields { display: flex; gap: 6px; padding: 7px; background: var(--raised); border-radius: 999px; box-shadow: var(--shadow), 0 0 0 1px var(--edge) inset; }
.field { flex: 1; min-width: 0; }
.field input { width: 100%; height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--white); font: 400 1rem var(--sans); letter-spacing: -0.02em; }
.field input::placeholder { color: var(--faint); opacity: 1; }
.field input:focus { outline: none; background: var(--raised-2); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--pink-text); }
.join__small { margin: 14px 0 0; font-size: .84rem; color: var(--faint); }
.join__error { margin: 12px 0 0; color: var(--pink-text); font-weight: 600; }
.join__done { margin: 12px 0 0; color: var(--yellow); font-weight: 600; font-size: 1.05rem; }
.join.is-done .join__fields { opacity: .55; pointer-events: none; }

/* Ads: a real photo with headline and button on top */
.ad {
  position: relative; flex: none; width: 250px; aspect-ratio: 4 / 5; margin: 0;
  border-radius: var(--r-lg); overflow: hidden; background: var(--raised-2);
  color: var(--ink, var(--white)); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; padding: 18px;
}
.ad > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad > :not(img) { position: relative; z-index: 1; }
.ad--scrim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,0) 48%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35) 100%); }
.ad__brand { margin: 0 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: 0; opacity: .9; }
.ad__line { margin: 0; font-weight: 700; font-size: 1.45rem; line-height: 1.06; letter-spacing: -0.035em; max-width: 13ch; }
.ad__cta { align-self: flex-start; font-size: .78rem; font-weight: 600; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.94); color: #111; white-space: nowrap; }
.ad > .score { position: absolute; z-index: 2; right: 12px; bottom: 14px; min-width: 38px; height: 28px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(16,16,18,.85); color: var(--yellow); font-variant-numeric: tabular-nums; }
.ad--loud { color: #fff; }
.ad--loud::after { content: ""; position: absolute; inset: 0; background: rgba(214, 22, 34, .62); mix-blend-mode: multiply; }
/* Finished ads carry their own type: the image sets the card's shape, no overlays */
.ad--real { padding: 0; aspect-ratio: auto; display: block; }
.ad--real > img, .ad--real > video { position: static; display: block; width: 100%; height: auto; }
.ad--real > .score { top: 12px; bottom: auto; }  /* the ad's own headline sits at the bottom */
/* Finished ads cropped into a fixed frame keep their bottom lockup in view */
.ad--cover > img { object-position: center bottom; }  /* lockups sit bottom-left */
/* The off-brand example in the checks section: washed-out photo, plain type */
.ad--dull > img { filter: saturate(.25) brightness(.9); }
.ad--dull::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0) 50%); }
.ad--dull .ad__line { font-family: Georgia, serif; font-weight: 400; font-size: .9rem; letter-spacing: 0; color: #fff; }

/* Section rhythm */
section { padding: 120px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.step--raised { background: var(--raised); box-shadow: 0 1px 0 var(--top-light) inset; }
.step__copy p { font-size: 1rem; line-height: 1.5; color: var(--dim); max-width: 40ch; }

/* Yellow band */

/* Why now: centred header, then the chat sized so the whole section fits one screen under the nav */
.why { padding: clamp(96px, 10vw, 144px) 0 clamp(64px, 6vw, 96px); }
.why .split { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
.why__body p { font-size: .92rem; line-height: 1.5; max-width: 52ch; margin: 4px auto 0; color: var(--dim); }
.why__body p:first-child { font-size: .98rem; font-weight: 500; letter-spacing: -0.01em; color: rgba(255,255,255,.86); }
.rx-sec { padding-top: clamp(96px, 10vw, 144px); }
/* Recipes: a saved recipe card that fills in, the Inbetween film, then reruns for the next drops (app.js) */
.rc-soon { display: inline-flex; margin-top: 14px; height: 26px; padding: 0 12px; align-items: center; border-radius: 999px; font-size: 12px; color: var(--dim); box-shadow: 0 0 0 1px var(--edge) inset; }
.rc { max-width: 1060px; margin: clamp(32px, 4vw, 48px) auto 0; display: grid; grid-template-columns: minmax(0, 470px) auto; justify-content: center; gap: clamp(28px, 4vw, 56px); align-items: start; }
.rc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* the recipe: one card that reads top to bottom, what it keeps, then the checks every run passes */
.rc-card { border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--shadow), 0 0 0 1px var(--edge); overflow: hidden; }
.rc-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 18px; }
.rc-src { width: 48px; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--edge); }
.rc-head div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rc-head small { font-size: 12px; color: var(--faint); }
.rc-head b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: .9; text-transform: uppercase; }
.rc-head span { font-size: 13px; color: var(--dim); }
.rc-list, .rc-rules { list-style: none; margin: 0; padding: 6px 10px; border-top: 1px solid var(--edge); }
.rc-list li { display: grid; grid-template-columns: 36px 62px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border-radius: 12px; transition: background-color .35s var(--ease); }
.rc-list img, .rc-list i { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; display: grid; place-items: center; background: var(--raised-2); color: #fff; box-shadow: 0 0 0 1px var(--edge); transition: box-shadow .35s var(--ease); }
.rc-list span { font-size: 12.5px; color: var(--faint); }
.rc-list b, .rc-rules b { font-size: 14.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-list em, .rc-rules em { font-style: normal; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.rc-rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; transition: background-color .35s var(--ease); }
.rc-rules i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 227, 168, .14); color: #7fe3a8; grid-row: span 2; }
.rc-rules i svg { width: 13px; height: 13px; stroke-width: 2; }
.rc-rules em { grid-column: 2; }
.rc-card li.is-hot { background-color: rgba(255, 255, 255, .07); }
.rc-card li.is-hot img, .rc-card li.is-hot i { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px 18px; border-top: 1px solid var(--edge); }
.rc-btn { white-space: nowrap; height: 38px; padding: 0 18px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset; transition: transform .2s var(--ease), background-color .2s ease; }
.rc-btn.is-press { transform: scale(.94); background-color: rgba(255, 255, 255, .1); }
.rc-status { margin: 0; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rc-status b { color: #fff; font-weight: 600; }
.rc-state.is-ok { color: #7fe3a8; }
/* the output: the winner playing, and the drops the recipe makes fill in beside it */
.rc-out { display: flex; gap: 14px; }
.rc-phone { position: relative; margin: 0; height: clamp(420px, 40vw, 560px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 5px solid #050506; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 70px -30px rgba(0, 0, 0, .9); }
.rc-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-phone figcaption, .rc-drop figcaption { position: absolute; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 600; color: #fff; }
.rc-phone figcaption { top: 10px; left: 10px; right: auto; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(12, 12, 14, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rc-drops { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.rc-drop { position: relative; margin: 0; height: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .03); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; }
.rc-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; clip-path: inset(100% 0 0 0); filter: blur(6px); transition: clip-path .8s var(--ease), filter .8s var(--ease); }
.rc-drop figcaption { bottom: 8px; padding-top: 18px; }
.rc-drop figcaption b { font-weight: 700; color: var(--faint); transition: color .4s ease; }
.rc-drop figcaption span { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 5px; border-radius: 999px; background: rgba(12, 12, 14, .7); color: #7fe3a8; opacity: 0; transform: translateY(4px); transition: opacity .4s ease .5s, transform .5s var(--ease) .5s; }
.rc-drop figcaption svg { width: 11px; height: 11px; stroke-width: 2.2; }
.rc-drop.is-on img { clip-path: inset(0 0 0 0); filter: none; }
.rc-drop.is-on figcaption b { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.rc-drop.is-on figcaption span { opacity: 1; transform: none; }
@media (max-width: 960px) { .rc { grid-template-columns: minmax(0, 520px); } .rc-out { justify-content: center; } }
@media (max-width: 560px) {
  .rc-list li { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 0; }
  .rc-list span { grid-column: 2; grid-row: 1; align-self: end; } .rc-list b { grid-column: 2; grid-row: 2; } .rc-list li > img, .rc-list li > i { grid-row: span 2; }
  .rc-list em { grid-column: 3; grid-row: 1 / span 2; white-space: normal; text-align: right; max-width: 9em; }
  .rc-head b { font-size: 28px; }
  .rc-phone { height: auto; width: 58vw; }
  .rc-drops { gap: 8px; } .rc-drop { height: auto; width: 26vw; border-radius: 10px; }
  .rc-drop figcaption { flex-direction: column; align-items: flex-start; gap: 4px; left: 6px; bottom: 6px; font-size: 10.5px; } .rc-drop figcaption b { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .rc-drop img, .rc-drop figcaption span, .rc-card li { transition: none; } }
/* Runs your ads: the loop explained with the real ads. A numbered rail, one stage below. app.js plays it. */
.lp-frame { margin-top: 30px; }
.lp { max-width: 1080px; margin: 0 auto; }
.lp { --ink:#f6f5f1; --ink2:rgba(246,245,241,.68); --ink3:rgba(246,245,241,.38); --line:rgba(255,255,255,.1); --ok:#7fe3a8; color: var(--ink); }
.lp-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lp-step { position: relative; padding: 18px 22px 20px 0; color: var(--ink3); transition: color .5s ease; }
.lp-step + .lp-step { padding-left: 22px; box-shadow: inset 1px 0 0 var(--line); }
.lp-n { display: block; font-family: "Courier Prime", ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; margin-bottom: 10px; }
.lp-step b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.lp-step p { margin: 10px 0 0; font-size: .92rem; line-height: 1.45; max-width: 30ch; color: inherit; }
.lp-step.is-on { color: var(--ink); }
.lp-step.is-on p { color: var(--ink2); }
.lp-bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; transform-origin: left; transform: scaleX(0); background: var(--ink); }
.lp-step + .lp-step .lp-bar { left: 0; }
.lp-step.is-on .lp-bar { animation: lp-bar var(--lp-step, 4.8s) linear forwards; }
@keyframes lp-bar { to { transform: scaleX(1); } }
/* the stage: no interface, just the ads on a soft-lit floor */
.lp-stage { position: relative; margin-top: 24px; height: clamp(440px, 40vw, 560px); border-radius: 30px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 45%, rgba(255,255,255,.07), transparent 70%), #121214; box-shadow: inset 0 0 0 1px var(--line); }
.lp-ads { position: absolute; inset: 0; }
.lp-ad { --w: clamp(160px, 15vw, 230px); position: absolute; left: 50%; top: 46%; width: var(--w); margin: 0; transform: translate(-50%, -50%) translateX(calc((var(--i) - 1) * (var(--w) + 36px)));
  transition: transform 1s cubic-bezier(.22,1,.36,1), opacity .8s ease, filter .8s ease; }
.lp-img { display: block; aspect-ratio: var(--ar, 4 / 5); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.lp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s ease; }
.lp[data-step="3"] .lp-ad--win .lp-img img, .lp[data-step="4"] .lp-ad--win .lp-img img { transform: scale(1.04); }
.lp-ad figcaption { position: relative; height: 24px; margin-top: 14px; }
.lp-c { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; color: var(--ink2); transition: opacity .5s ease; }
.lp-c i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(127,227,168,.18); }
.lp-c--live { opacity: 0; }
.lp:not([data-step="1"]) .lp-c--check { opacity: 0; }
.lp[data-step="2"] .lp-c--live { opacity: 1; }

/* learn: the winner comes forward, the others step back */
.lp[data-step="3"] .lp-ad--win, .lp[data-step="4"] .lp-ad--win { transform: translate(-50%, -50%) translateX(calc(-1 * (var(--w) + 36px))) scale(1.18); }
.lp[data-step="3"] .lp-ad:not(.lp-ad--win) { opacity: .28; filter: blur(1px); }
.lp[data-step="4"] .lp-ad:not(.lp-ad--win) { opacity: 0; transform: translate(-50%, -50%) translateX(calc((var(--i) - 1) * (var(--w) + 36px))) scale(.9); }
/* remake: winner + 5 versions laid out as one group, centred in the stage */
.lp-stage { --w: clamp(160px, 15vw, 230px); --vw: clamp(78px, 7vw, 108px); --g: calc(var(--w) * 1.05 + 56px + 5 * var(--vw) + 56px); }
.lp[data-step="4"] .lp-ad--win { transform: translate(-50%, -50%) translateX(calc(-0.5 * var(--g) + 0.525 * var(--w))) scale(1.05); }
.lp-stats { position: absolute; right: 7%; top: 50%; transform: translateY(-40%); display: flex; flex-direction: column; gap: 26px; opacity: 0; transition: opacity .7s ease .2s, transform .9s cubic-bezier(.22,1,.36,1) .2s; }
.lp-stats div { display: flex; flex-direction: column; gap: 4px; }
.lp-stats b { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 6vw, 92px); line-height: .85; letter-spacing: 0; }
.lp-stats span { font-size: 14px; color: var(--ink2); }
.lp[data-step="3"] .lp-stats { opacity: 1; transform: translateY(-50%); }
.lp-spend { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; text-align: center; font-size: 13px; color: var(--ink3); opacity: 0; transition: opacity .6s ease; }
.lp[data-step="2"] .lp-spend { opacity: 1; }
.lp[data-step="2"] .lp-ad { opacity: 0; transform: translate(-50%, -50%) translateX(calc((var(--i) - 1) * (var(--w) + 36px))) scale(.92); }
.lp-place { position: absolute; inset: 28px 34px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.lp[data-step="2"] .lp-place { opacity: 1; transform: none; }
.lp-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lp-col + .lp-col { padding-left: 34px; box-shadow: inset 1px 0 0 var(--line); }
.lp-colh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-colh b { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.lp-colh span { font-size: 13px; color: var(--ink2); }
.lp-mocks { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center; }
.lp-mocks--g { grid-template-columns: 1fr 1fr; }
.lp-mock { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lp-mock figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink3); }
.lp-logo { width: 30px; height: 30px; flex: 0 0 auto; color: #f6f5f1; }
.lp-logo--s { width: 13px; height: 13px; color: var(--ink2); }
.mk-av { width: 20px; height: 20px; border-radius: 50%; background: #0b0b0c; color: #d9d6cf; font-style: normal; font-family: "Courier Prime", ui-monospace, monospace; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; flex: 0 0 auto; }
.mk-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.mk-row span { display: flex; flex-direction: column; line-height: 1.15; }
.mk-row b { font-size: 11.5px; } .mk-row small { font-size: 10px; opacity: .65; }
.mk-feed { background: #fff; color: #111; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); max-width: 228px; width: 100%; justify-self: center; }
.mk-feed img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mk-cta { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 11.5px; font-weight: 600; border-bottom: 1px solid #eee; }
.mk-cta em { font-style: normal; }
.mk-cap { margin: 0; padding: 7px 10px 10px; font-size: 11px; line-height: 1.35; }
.mk-story { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); max-width: 190px; justify-self: center; width: 100%; }
.mk-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-bars { position: absolute; top: 7px; left: 8px; right: 8px; display: flex; gap: 3px; }
.mk-bars i { flex: 1; height: 2px; border-radius: 1px; background: rgba(0,0,0,.25); }
.mk-bars i:first-child { background: rgba(0,0,0,.7); }
.mk-row--on { position: absolute; top: 12px; left: 0; color: #111; }
.mk-pill { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 26px; padding: 0 14px; border-radius: 999px; background: #fff; color: #111; font-size: 11px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.mk-search { background: #fff; color: #202124; border-radius: 10px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); font-family: Arial, Helvetica, sans-serif; }
.mk-q { align-self: stretch; height: 28px; border-radius: 999px; border: 1px solid #dfe1e5; display: flex; align-items: center; padding: 0 12px; font-size: 11.5px; color: #3c4043; margin-bottom: 8px; }
.mk-search small { font-size: 10.5px; font-weight: 700; color: #202124; }
.mk-url { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #4d5156; }
.mk-url .mk-av { width: 16px; height: 16px; font-size: 8px; }
.mk-t { font-size: 14px; font-weight: 400; line-height: 1.3; color: #1a0dab; }
.mk-search p { margin: 0; font-size: 11.5px; line-height: 1.45; color: #4d5156; }
.mk-yt { background: #fff; color: #0f0f0f; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); }
.mk-yt img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 62%; }
.mk-yt-b { display: flex; align-items: center; gap: 8px; padding: 9px 10px 11px; }
.mk-yt-b span { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.mk-yt-b b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mk-yt-b small { font-size: 10px; color: #606060; }
.mk-yt-b em { font-style: normal; height: 24px; padding: 0 12px; border-radius: 999px; background: #0f0f0f; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 860px) {
  .lp-place { inset: 16px; grid-template-columns: 1fr; gap: 14px; }
  .lp-col + .lp-col { padding-left: 0; padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); }
  .lp-colh b { font-size: 24px; } .lp-logo { width: 22px; height: 22px; } .lp-logo--s { width: 11px; height: 11px; }
  .lp-mocks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mk-cap, .mk-q, .mk-search p { display: none; }
  .mk-pill { white-space: nowrap; font-size: 10px; padding: 0 10px; height: 22px; }
  .mk-yt-b span { display: none; } .mk-yt-b { justify-content: space-between; }
  .mk-feed, .mk-story { max-width: 120px; }
}
/* remake: five new openings fan out around the winner */
.lp-vars { position: absolute; inset: 0; pointer-events: none; }
.lp-var { --vw: clamp(78px, 7vw, 108px); transform-origin: center; position: absolute; left: 50%; top: 46%; width: var(--vw); aspect-ratio: 4 / 5; border-radius: 5px; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
  opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .6s ease calc(var(--v) * 90ms), transform .9s cubic-bezier(.22,1,.36,1) calc(var(--v) * 90ms); }
.lp-var img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp[data-step="4"] .lp-var { opacity: 1; transform: translate(-50%, -50%) translateX(calc(0.5 * var(--g) - 4.5 * var(--vw) - 56px + var(--v) * (var(--vw) + 14px))); }
.lp-vars::before { content: "5 new versions"; position: absolute; left: 50%; top: calc(46% - 0.625 * var(--vw) - 34px); transform: translateX(calc(0.5 * var(--g) - 5 * var(--vw) - 56px)); font-size: 13px; color: var(--ink2); opacity: 0; transition: opacity .5s ease .4s; }
.lp[data-step="4"] .lp-vars::before { opacity: 1; }
@media (max-width: 860px) {
  .lp-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-step:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); padding-left: 0; }
  .lp-step:nth-child(4) { box-shadow: inset 1px 1px 0 var(--line); }
  .lp-stage { height: 560px; border-radius: 22px; }
  .lp-ad { --w: 26vw; } .lp-ad figcaption { display: none; }
  .lp-stats { right: 6%; } .lp-stats b { font-size: 44px; }
  .lp-var { --vw: 14vw; }
  .lp[data-step="4"] .lp-ad--win { transform: translate(-50%, -50%) translateY(-70px) scale(.95); }
  .lp[data-step="4"] .lp-var { transform: translate(-50%, -50%) translateX(calc((var(--v) - 2) * (var(--vw) + 8px))) translateY(125px); }
  .lp-vars::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-ad, .lp-var, .lp-stats, .lp-c, .lp-spend { transition: none; } }
/* Discover: two rows of brand ads drifting in opposite directions; a tile now and then gets "Saved to board" (app.js) */
.ds-sec { padding-bottom: clamp(96px, 10vw, 144px); }
.ds { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ds-row { overflow: hidden; }
.ds-track { display: flex; gap: 10px; width: max-content; animation: ds-drift 90s linear infinite; }
.ds-row--b .ds-track { animation-direction: reverse; animation-duration: 105s; }
.ds-copy { display: contents; }
@keyframes ds-drift { to { transform: translateX(-50%); } }
.ds-tile { --w: clamp(190px, 17vw, 300px); position: relative; flex: 0 0 auto; width: var(--w); aspect-ratio: 3 / 4; margin: 0; overflow: hidden; background: #1a1a1c; }
.ds-tile img, .ds-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-saved { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px;
  background: rgba(246,245,241,.92); color: #111; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.ds-saved i { width: 12px; height: 12px; background: #111; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h12v18l-6-4-6 4z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 3h12v18l-6-4-6 4z'/></svg>") center / contain no-repeat; }
.ds-tile.is-saved .ds-saved { opacity: 1; transform: none; }
.ds-tile.is-saved::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(246,245,241,.9); pointer-events: none; }
@media (max-width: 640px) { .ds-tile { --w: 44vw; } .ds-saved { font-size: 11px; height: 26px; } .ds-long { display: none; } }
@media (prefers-reduced-motion: reduce) { .ds-track { animation: none; } }
/* Brand Brain: an open brand book page for The Royal Santrian, with source tags (app.js reveals them) */
.bb { --paper:#f1ebdd; --ink:#222120; --ink2:rgba(34,33,32,.6); --rule:rgba(34,33,32,.14); --cover:#4f6072;
  position: relative; margin: 0; display: grid; grid-template-columns: 1fr 1fr; padding: 14px 16px 18px; border-radius: 10px; color: var(--ink);
  /* cloth cover: dust blue with a faint weave */
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 4px), var(--cover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.25), 0 60px 110px -40px rgba(0,0,0,.95), 0 24px 40px -20px rgba(0,0,0,.7); }
/* a soft pool of light under the book so it lifts off the dark page */
.bb::before { content: ""; position: absolute; inset: -12% 0 -22%; z-index: -1; background: radial-gradient(50% 50% at 50% 55%, rgba(255,240,220,.10), transparent 70%); pointer-events: none; }
/* spine crease */
.bb::after { content: ""; position: absolute; top: 14px; bottom: 18px; left: 50%; width: 28px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.16) 40%, rgba(0,0,0,.28) 50%, rgba(255,255,255,.18) 54%, transparent); }
.bb-page { position: relative; padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.bb-page--l { border-radius: 4px 0 0 4px; background: linear-gradient(90deg, #f4efe3 0%, var(--paper) 70%, #ddd4c2 100%);
  box-shadow: -1px 1px 0 #e4ddcd, -2px 2px 0 #cfc6b3, -3px 3px 0 #e4ddcd, -4px 4px 0 #c9bfab, -5px 5px 0 #ded6c5; }
.bb-page--l::before { content: ""; position: absolute; top: 12px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--cover); box-shadow: -54px 0 0 0 var(--cover), 54px 0 0 0 var(--cover), inset 0 1px 2px rgba(0,0,0,.4); transform: translateX(-50%); }
.bb-page--l::after { content: ""; position: absolute; top: 12px; left: 50%; width: 26px; height: 9px; border-radius: 5px; background: var(--cover); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); transform: translateX(-50%); }
.bb-page--r { border-radius: 0 4px 4px 0; padding-left: 30px; background: linear-gradient(270deg, #f4efe3 0%, var(--paper) 70%, #d9d0bd 100%);
  box-shadow: 1px 1px 0 #e4ddcd, 2px 2px 0 #cfc6b3, 3px 3px 0 #e4ddcd, 4px 4px 0 #c9bfab, 5px 5px 0 #ded6c5; }
.bb-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.bb-logo { display: block; width: min(230px, 80%); height: auto; mix-blend-mode: multiply; margin: -6px 0 -4px -6px; }
.bb-meta { font-family: "Courier Prime", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.bb-block { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bb-n { font-family: "Courier Prime", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-bottom: 2px; }
.bb-line { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.18; letter-spacing: -.025em; }
.bb-words { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--sans); font-size: 15px; letter-spacing: -.01em; }
.bb-words s { color: var(--ink2); text-decoration-color: #b5544a; text-decoration-thickness: 1.5px; }
.bb-photo { position: relative; flex: 1 1 auto; min-height: 240px; border-radius: 3px; overflow: hidden; }
.bb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.22,1,.36,1); }
.bb-block--row { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
.bb-block--row > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.bb-sw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.bb-sw i { aspect-ratio: 1.6 / 1; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1px var(--rule) inset; display: flex; align-items: flex-end; padding: 5px; }
.bb-sw b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Courier Prime", ui-monospace, monospace; font-weight: 400; font-size: 10.5px; color: rgba(255,255,255,.85); }
.bb-sw i:nth-child(2) b { color: var(--ink2); }
.bb-offer { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
.bb-block--set { flex-direction: row; align-items: center; gap: 14px; margin-top: auto; }
.bb-block--set > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bb-set { width: 92px; height: auto; mix-blend-mode: multiply; flex: 0 0 auto; }
.bb-photo img { object-position: center 30%; }
/* left column: the four things Brand Brain does, one active at a time (app.js), each one matched by the book */
.bb-steps { list-style: none; margin: 26px 0 0; padding: 0; max-width: 42ch; border-top: 1px solid rgba(255,255,255,.12); }
.bb-step { position: relative; padding: 16px 0 17px; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); transition: color .5s ease; }
.bb-step b { display: block; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.bb-step p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: .92rem; line-height: 1.45; color: var(--dim); transition: max-height .6s cubic-bezier(.22,1,.36,1), opacity .5s ease, margin .6s ease; }
.bb-step.is-on { color: #fff; }
.bb-step.is-on p { max-height: 4em; opacity: 1; margin-top: 6px; }
.bb-bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: rgba(255,255,255,.85); }
.bb-step.is-on .bb-bar { animation: bb-bar var(--bb-step, 4.6s) linear forwards; }
@keyframes bb-bar { to { width: 100%; } }
/* the book reacts to the active step */
.bb [data-part], .bb .bb-photo, .bb .bb-head { transition: opacity .6s ease; }
.bb[data-step="2"] .bb-tag, .bb[data-step="3"] .bb-tag, .bb[data-step="4"] .bb-tag { opacity: .18 !important; }
.bb[data-step="2"] .bb-photo, .bb[data-step="2"] .bb-head { opacity: .3; }
.bb[data-step="3"] .bb-page--l > *:not(.bb-ask) { opacity: .3; }
.bb[data-step="4"] .bb-page--l > .bb-block, .bb[data-step="4"] .bb-page--r > *:not(.bb-check) { opacity: .3; }
.bb-check { position: absolute; left: 30px; right: 34px; top: 34px; display: grid; grid-template-columns: 42% 1fr; gap: 16px; padding: 14px; border-radius: 4px; background: #fbf8f1;
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.45), 0 0 0 1px rgba(34,33,32,.08); opacity: 0; transform: translateY(16px) rotate(.6deg); transition: opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.bb-check img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; display: block; }
.bb-check-t { display: flex; flex-direction: column; gap: 6px; font-family: "Courier Prime", ui-monospace, monospace; font-size: 12px; color: var(--ink); }
.bb-check-t p { margin: 0; }
.bb-score { margin-top: auto; font-family: "Courier Prime", ui-monospace, monospace; font-weight: 700; font-size: 34px; line-height: 1; color: #b5544a; transform: rotate(-3deg); }
.bb-score small { font-size: 14px; }
.bb[data-step="3"] .bb-check { opacity: 1; transform: none; }
.bb-ask { position: absolute; left: 26px; right: 30px; bottom: 26px; padding: 16px 18px 14px; border-radius: 3px; background: #fbf8f1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.45), 0 0 0 1px rgba(34,33,32,.08); opacity: 0; transform: translateY(16px) rotate(-.8deg); transition: opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.bb-ask .bb-q, .bb-ask .bb-a { margin: 0; font-family: "Courier Prime", ui-monospace, monospace; font-size: 13.5px; line-height: 1.4; }
.bb-ask .bb-a { color: #b5544a; opacity: 0; transition: opacity .5s ease .9s; }
.bb[data-step="4"] .bb-ask { opacity: 1; transform: rotate(-.8deg); }
.bb[data-step="4"] .bb-ask .bb-a { opacity: 1; }
.bb[data-step] .bb-ask .bb-tag, .bb .bb-ask .bb-tag { opacity: 1 !important; scale: 1; }
@media (max-width: 640px) { .bb-check { left: 20px; right: 20px; top: 0; grid-template-columns: 38% 1fr; } .bb-ask { left: 16px; right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .bb-step p { max-height: none; opacity: 1; margin-top: 6px; } .bb-step { color: #fff; } .bb-bar { display: none; } }
/* source tags: where Brand Brain learned each part */
.bb-tag { display: inline-block; margin-top: 4px; padding: 3px 7px 2px; border: 1.5px solid #b5544a; border-radius: 2px; color: #b5544a; background: transparent; font-family: "Courier Prime", ui-monospace, monospace; font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transform: rotate(-1.2deg); mix-blend-mode: multiply; }
.bb-block:nth-child(odd) .bb-tag { transform: rotate(.8deg); }
.bb-tag--on-photo { position: absolute; left: 12px; bottom: 12px; margin: 0; color: #f1ebdd; border-color: #f1ebdd; mix-blend-mode: normal; }
/* reveal: the page settles, then each tag appears */
.bb.is-reading { transform: translateY(18px); opacity: 0; }
.bb.is-reading.is-in { transform: none; opacity: 1; transition: transform 1.2s cubic-bezier(.22,1,.36,1), opacity 1s ease; }
.bb.is-reading .bb-tag { opacity: 0; scale: 1.25; transition: opacity .25s ease, scale .35s cubic-bezier(.3,1.4,.5,1); }
.bb.is-reading .bb-tag.is-on { opacity: 1; scale: 1; }
.bb.is-in .bb-photo img { transform: none; }
@media (max-width: 1180px) { .bb { grid-template-columns: 1fr; } .bb::after { display: none; } .bb-page--l, .bb-page--r { background: var(--paper); box-shadow: none; border-radius: 4px 4px 0 0; } .bb-page--r { border-radius: 0 0 4px 4px; padding-left: 34px; padding-top: 0; box-shadow: 2px 2px 0 #cfc6b3, 4px 4px 0 #c9bfab; } }
@media (max-width: 640px) { .bb-page, .bb-page--r { padding: 22px 20px; } .bb-page--r { padding-top: 0; }  .bb-block--row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bb, .bb .bb-tag, .bb-photo img { transition: none !important; transform: none !important; opacity: 1 !important; } }
/* Why now: a clean two-panel Create screen. Left: the picked ad, big. Right: the chat. app.js plays it. */
.cx-frame { position: relative; margin-top: 28px; }
.cx { --ink:#f6f5f1; --ink2:rgba(246,245,241,.7); --ink3:rgba(246,245,241,.42); --line:rgba(255,255,255,.08);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; padding: 28px; border-radius: 30px;
  background: #141416; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.8);
  height: clamp(700px, calc(100svh - 120px), 1000px); font-size: 14px; color: var(--ink); }
.cx-stage { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #0c0c0d; display: flex; flex-direction: column; min-height: 0; }
/* the ad itself, framed like a placed creative */
.cx-show { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 82px 22px 22px;
  background: radial-gradient(80% 70% at 50% 40%, rgba(255,255,255,.06), transparent 70%); }
.cx-box { position: relative; height: 100%; aspect-ratio: 4 / 5; max-width: 100%; transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.cx-box.is-story { aspect-ratio: 9 / 16; }
.cx-box.is-swap { opacity: 0; transform: scale(.985); }
.cx-big { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); }
@keyframes cx-pop { from { opacity: 0; transform: scale(.6); } }
.cx-chat { display: flex; flex-direction: column; gap: 14px; min-height: 0; border-radius: 22px; background: #202022; padding: 18px; }
.cx-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; display: flex; flex-direction: column; gap: 16px; padding: 6px 6px 6px 4px; }
.cx-log .msg--you { align-self: flex-end; max-width: 88%; }
.cx-log .msg--you p { margin: 0; padding: 10px 14px; border-radius: 16px; background: #2d2d30; color: var(--ink2); line-height: 2; font-size: 13.5px; }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 4px; margin: 0 2px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--ink); font-weight: 500; vertical-align: middle; line-height: 1; white-space: nowrap; }
.cx-chip img, .cx-chip .lg { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: 0 0 auto; }
.cx-chip .lg { display: inline-grid; place-items: center; background: #1c2a3a; color: #f6f1e7; font-size: 8px; font-weight: 700; letter-spacing: .02em; }
.cx-log .msg--hully { display: flex; flex-direction: column; gap: 7px; }
.cx-ads { display: grid; gap: 8px; }
.cx-ads--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cx-ads--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50%; }
.cx-ads--1 { grid-template-columns: minmax(0, 190px); }
.cx-ad--video { cursor: default; }
.cx-ad--video:hover { transform: none; }
.cx-ad { position: relative; display: block; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.cx-ad img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cx-ad--story img { aspect-ratio: 9 / 16; }
.cx-ad:hover { transform: translateY(-3px); }
.cx-ad:focus-visible { outline: 2px solid var(--white, #fff); outline-offset: 3px; }
/* selected ring drawn inside the card, so the scrolling chat never clips it */
.cx-ad::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .35s ease; pointer-events: none; }
.cx-ad.is-on::after { box-shadow: inset 0 0 0 2px #fff; }
.cx-ad video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cx-vb { position: absolute; left: 6px; bottom: 6px; height: 20px; padding: 0 7px 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(12,12,14,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cx-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); }
.cx-sc { position: absolute; top: 6px; right: 6px; height: 20px; min-width: 26px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: rgba(12,12,14,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cx-meta { font-size: 12px; color: var(--ink3); }
/* each finished ad sits beside the shot pictures Hully made for it; while making, the slots shimmer and fill in turn */
.cx-row { display: flex; align-items: flex-start; gap: 14px; }
.cx-col { display: flex; flex-direction: column; gap: 7px; flex: 0 0 190px; }
.cx-col .cx-ads--1 { grid-template-columns: minmax(0, 1fr); }
.cx-shots { flex: 1; min-width: 0; max-width: 500px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cx-shots--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cx-shot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-shot img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); transition: opacity .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.cx-shot figcaption { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .5s ease; }
.msg.is-making .cx-shot:not(.is-on) img { opacity: 0; transform: scale(.96); }
.msg.is-making .cx-shot:not(.is-on) figcaption { opacity: 0; }
.cx-shot { position: relative; }
.msg.is-making .cx-shot:not(.is-on)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; border-radius: 10px; background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.04) 70%) 0 0 / 220% 100%, #262628; animation: cx-shine 1.4s linear infinite; }
.msg.is-making .cx-ad { background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.04) 70%) 0 0 / 220% 100%, #262628; animation: cx-shine 1.4s linear infinite; }
.msg.is-making .cx-ad > *, .msg.is-making .cx-meta { opacity: 0; }
.cx-ad > *, .cx-meta { transition: opacity .5s ease; }
@media (max-width: 640px) { .cx-row { flex-wrap: wrap; } .cx-col { flex-basis: 150px; } .cx-shots { flex-basis: 100%; } }

.cx-making { display: grid; gap: 8px; }
.cx-making i { display: block; aspect-ratio: 4 / 5; border-radius: 12px; background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.04) 70%) 0 0 / 220% 100%, #262628; animation: cx-shine 1.4s linear infinite; }
.cx-making.is-story i { aspect-ratio: 9 / 16; }
@keyframes cx-shine { to { background-position: -220% 0, 0 0; } }
.cx-input { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 18px; border-radius: 18px; background: #2d2d30; color: var(--ink3); font-size: 14px; flex: 0 0 auto; }
.cx-input span:first-child { flex: 1; }
.cx-send { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--yellow); color: #111; }
/* empty stage until the first ad is made; a soft shimmer while Hully makes each one */
.cx-box.is-empty .cx-vid, .cx-box.is-making .cx-vid { opacity: 0; }
.cx-vid { transition: opacity .6s ease; }
.cx-wait { position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; border: 1.5px dashed rgba(255,255,255,.14); opacity: 0; transition: opacity .5s ease; }
.cx-box.is-empty .cx-wait, .cx-box.is-making .cx-wait { opacity: 1; }
.cx-box.is-making .cx-wait { border-style: solid; border-color: rgba(255,255,255,.08);
  background: linear-gradient(110deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.03) 70%) 0 0 / 220% 100%, #1a1a1c; animation: cx-shine 1.4s linear infinite; }
.cx-wait-t { font-size: 13px; color: var(--ink3); }
/* brand check: a pop-up at the top of the stage while the ad is made */
.cx-pop { position: absolute; top: 18px; left: 50%; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; min-width: 280px;
  background: rgba(24,24,27,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -18px rgba(0,0,0,.8);
  opacity: 0; transform: translate(-50%, -10px) scale(.98); transition: opacity .45s ease, transform .6s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.cx-pop.is-on { opacity: 1; transform: translate(-50%, 0); }
.cx-pop-ic { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.15); border-top-color: #f6f5f1; animation: cx-spin .9s linear infinite; }
.cx-pop.is-done .cx-pop-ic { animation: none; border: 0; background: #7fe3a8 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5.5 12.5l4.2 4.2L18.5 7.5'/></svg>") center / 16px no-repeat; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-pop-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; margin-right: auto; }
.cx-pop-t b { font-size: 13.5px; font-weight: 600; }
.cx-pop.is-done .cx-pop-t b { color: #7fe3a8; }
.cx-pop-s { font-size: 12px; color: var(--ink3); white-space: nowrap; }
.cx-pop-n { font-family: var(--display); font-size: 30px; line-height: .8; color: var(--yellow); }
/* the prompt is typed into the box, then sent */
.cx-typed { flex: 1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-typed:empty::before { content: attr(data-ph); color: var(--ink3); }
.cx-typed.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: #f6f5f1; animation: cx-caret 1s steps(1) infinite; }
@keyframes cx-caret { 50% { opacity: 0; } }
.cx-send { transition: transform .2s ease; }
.cx-send.is-press { transform: scale(.86); }
/* reveal */
.cx-log .msg.is-pending { display: none; }
.cx-log .msg.is-new { animation: cx-in .8s cubic-bezier(.22,1,.36,1) both; }
.cx-log .msg.is-new .cx-ad { animation: cx-in .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes cx-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) {
  .cx { grid-template-columns: 1fr; height: auto; padding: 14px; gap: 14px; border-radius: 24px; }
  .cx-stage { height: 470px; }
  .cx-pop { min-width: 0; left: 12px; right: 12px; transform: translateY(-10px); } .cx-pop.is-on { transform: none; } .cx-pop-s { white-space: normal; }
  .cx-show { padding-top: 104px; }
  .cx-stage { height: 520px; }
  .cx-chat { height: 440px; padding: 12px; }
  .cx-ads--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-ads--2 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .cx-box, .cx-ad { transition: none; } .cx-pop, .cx-pop-ic { transition: none; animation: none; } .cx-log .msg.is-new, .cx-log .msg.is-new .cx-ad, .cx-making i { animation: none; } }

/* Steps */
.step { padding: clamp(112px, 11vw, 160px) 0; }
.step__row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.step--flip .step__copy { order: 2; }
.step__row > *, .split > * { min-width: 0; }
.step__copy h2 { margin-bottom: 26px; }
.note { margin-top: 24px; font-size: .84rem; color: var(--faint); }

.screen { background: var(--raised); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow), 0 0 0 1px var(--edge) inset; }
.step--raised .screen { background: var(--raised-2); }
.screen__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--edge); }
.url { flex: 1; font-size: .86rem; color: var(--dim); background: var(--ground); border-radius: 999px; padding: 8px 14px; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; }
.kit__photos { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 150px; gap: 10px; height: 150px; }
.kit__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.kit__block { background: var(--ground); border-radius: var(--r-md); padding: 14px; box-shadow: 0 0 0 1px var(--edge) inset; }
.kit h3 { font-size: .78rem; font-weight: 400; color: var(--faint); margin-bottom: 10px; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 30px; height: 30px; border-radius: 999px; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; background: var(--raised-2); padding: 5px 10px; border-radius: 999px; }
.kit__big { margin: 0; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.kit__big span { font-family: var(--sans); font-size: .8rem; color: var(--dim); margin-left: 4px; }
.kit__dl { margin: 0; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--yellow); color: var(--black); font-weight: 600; font-size: .85rem; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 148px; gap: 12px; }
.fmt { margin: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.fmt > :first-child { flex: 1; min-height: 0; }
.fmt figcaption { font-size: .78rem; color: var(--dim); }
.fmt--tall { grid-row: span 2; }
.ad--fill { width: 100%; aspect-ratio: auto; padding: 14px; }
.ad--fill .ad__line { font-size: 1.25rem; }
.page, .mail, .deck, .poster { border-radius: var(--r-md); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.page { background: #f5efe4; color: #1f3d2b; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.page img { height: 46%; width: 100%; object-fit: cover; border-radius: 8px; }
.page b, .mail b, .deck b { font-size: .9rem; letter-spacing: -0.03em; }
.page i, .mail i { display: block; height: 5px; border-radius: 3px; background: rgba(31,61,43,.18); }
.page i + i, .mail i + i { width: 60%; }
.mail { background: #ffffff; color: #1f3d2b; padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.mail span { margin-top: auto; align-self: flex-start; font-size: .72rem; font-weight: 600; background: #1f3d2b; color: #fff; padding: 5px 10px; border-radius: 999px; }
.deck { background: #1f3d2b; color: #efe6d6; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.deck img { height: 100%; width: 100%; object-fit: cover; border-radius: 8px; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster b { position: absolute; left: 12px; right: 12px; top: 12px; font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.5rem; line-height: .95; color: #1f3d2b; }

/* Checks */
.checks { display: grid; gap: 16px; }
.check { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; background: var(--raised); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--edge) inset; }
.check--flag { box-shadow: var(--shadow), 0 0 0 1px rgba(255, 111, 176, .35) inset; }
.ad--thumb { width: 100%; padding: 12px; }
.ad--thumb .ad__line { font-size: .95rem; }
.check__score { margin: 0; font-family: var(--display); font-size: 4rem; line-height: .9; font-variant-numeric: tabular-nums; }
.check__score span { font-family: var(--sans); font-size: 1rem; color: var(--faint); margin-left: 4px; }
.check__score--pass { color: var(--yellow); }
.check__score--flag { color: var(--pink-text); }
.check__label { margin: 10px 0; }
.check__why { margin: 0; color: var(--dim); font-size: .95rem; }
.check__fix { margin: 12px 0 0; font-size: .92rem; background: var(--raised-2); color: var(--white); padding: 10px 14px; border-radius: var(--r-sm); }

/* Campaign */
.camp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--edge); }
.camp__name { margin: 0; font-weight: 600; font-size: 1.1rem; }
.camp__where { margin: 0; font-size: .84rem; color: var(--dim); }
.camp__ads { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 16px 0; }
.camp__ads img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.camp__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.camp__facts div { background: var(--ground); border-radius: var(--r-sm); padding: 12px; box-shadow: 0 0 0 1px var(--edge) inset; }
.camp__facts dt { font-size: .76rem; color: var(--faint); }
.camp__facts dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.camp__approve { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ground); box-shadow: 0 0 0 1px rgba(250,226,49,.35) inset; }
.camp__approve p { margin: 0; font-weight: 600; }

/* Sold */
.sold { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sold caption { text-align: left; font-size: .84rem; color: var(--faint); padding-bottom: 12px; }
.sold th { text-align: left; font-size: .78rem; font-weight: 400; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--edge); }
.sold td { padding: 12px 10px; border-bottom: 1px solid var(--edge); }
.sold td:first-child { display: flex; align-items: center; gap: 12px; }
.sold td img { width: 36px; height: 45px; object-fit: cover; border-radius: 8px; }
.sold th:not(:first-child), .sold td:not(:first-child) { text-align: right; }
.sold__win td { background: rgba(255,255,255,.04); font-weight: 600; }
.sold__win td:first-child { border-radius: 12px 0 0 12px; }
.sold__win td:last-child { border-radius: 0 12px 12px 0; }

/* Agencies */
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.clients span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--raised-2); font-size: .9rem; box-shadow: 0 0 0 1px var(--edge) inset; }
.clients img { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; }
.ticks { list-style: none; margin: 0 0 32px; padding: 0; }
.ticks li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--edge); font-size: 1.12rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 16px; height: 9px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }

/* FAQ */
.faq__list details { border-bottom: 1px solid var(--edge); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 1.15rem; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__list details p { color: var(--dim); max-width: 60ch; padding-bottom: 8px; }

/* Close */
.close__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.close h2 { font-size: clamp(3.2rem, 8vw, 6rem); }

/* Footer */
.foot { padding: 32px 0; border-top: 1px solid var(--edge); }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; color: var(--faint); font-size: .84rem; }
.foot { padding: 40px 0 48px; }
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__links a { color: var(--dim); font-size: .9rem; text-decoration: none; transition: color .2s ease; }
.foot__links a:hover { color: var(--white, #fff); }
@media (max-width: 640px) { .foot__row { flex-direction: column; align-items: flex-start; gap: 20px; } .foot__links { gap: 14px 22px; } }

/* nav: current section highlighted; menu panel on small screens */
.nav.is-open { background: rgba(16,16,18,.97); border-bottom-color: var(--edge); }
.nav__links { gap: 22px; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a.is-on { color: var(--white); }
.nav__links a.is-on::after { transform: scaleX(1); }
.nav__menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 1px var(--edge) inset; cursor: pointer; position: relative; flex: 0 0 auto; }
.nav__menu span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); border-radius: 1px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__menu span:first-child { top: 16px; } .nav__menu span:last-child { top: 23px; }
.nav__menu[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }
.nav__panel { display: flex; flex-direction: column; gap: 4px; padding: 10px var(--gutter, 20px) 22px; background: rgba(16,16,18,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge); }
.nav__panel[hidden] { display: none; }
.nav__panel a:not(.btn) { padding: 14px 0; font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--white); text-decoration: none; border-bottom: 1px solid var(--edge); }
.nav__panel .btn { margin-top: 18px; justify-content: center; }
@media (max-width: 960px) { .nav__menu { display: block; } .nav .btn--sm { margin-left: auto; } }
@media (min-width: 961px) { .nav__panel { display: none !important; } }
@media (max-width: 640px) { .nav .btn--sm { display: none; } .nav__menu { margin-left: auto; } }
/* Responsive */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; gap: 24px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 8rem); }  /* one column: headline spans the full width */
  .wall { height: 520px; margin-right: 0; margin-bottom: 40px; }
  .split, .step__row { grid-template-columns: 1fr; gap: 40px; }
  .step--flip .step__copy { order: 0; }
  section, .step { padding: 80px 0; }
}
@media (max-width: 640px) {
  .nav__date { display: none; }
  .nav__row { justify-content: space-between; gap: 12px; }
  .hero__copy { padding-block: 108px 8px; }
  .join__fields { flex-direction: column; border-radius: var(--r-lg); }
  .field input { border-radius: 14px; background: var(--ground); }
  .join--on-yellow .field input { background: #1b1b1f; }
  .join .btn { width: 100%; }
  .wall { height: 440px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wall__col:nth-child(3) { display: none; }
  .wall__track { gap: 12px; }
  .wall .ad:not(.ad--real) { padding: 12px; }
  .wall .ad__cta { font-size: .7rem; padding: 7px 10px; }
  .wall .ad > .score { right: 8px; bottom: 10px; }
  .wall .ad--real > .score { top: 8px; bottom: auto; }
  /* the gradient border is an absolute ::before, which scrolls away inside the sheet */
  .why__body p { font-size: .88rem; }
  .why__body p:first-child { font-size: .95rem; }
  .formats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
  .kit__photos { height: 110px; }
  .check { grid-template-columns: 104px 1fr; gap: 14px; }
  .check__score { font-size: 3rem; }
  .camp__ads { grid-template-columns: repeat(3, 1fr); }
  .sold { font-size: .9rem; }
  .sold td, .sold th { padding-inline: 6px; }
  .sold td:first-child { flex-wrap: wrap; gap: 8px; }
  .pill--win { margin-left: 0; }
  .camp__facts { grid-template-columns: 1fr 1fr; }
  .camp__facts div:last-child { grid-column: 1 / -1; }
  .camp__approve { flex-direction: column; align-items: stretch; border-radius: var(--r-md); text-align: center; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall__track { animation: none; }
  * { transition: none !important; }
}

/* Phone pass (29 Nov): no frame-in-a-frame, bigger ads, readable steps, less dead space */
@media (max-width: 640px) {
  .hero__copy { padding-block: 92px 0; }
  .join__small { margin-top: 8px; }
  /* Create: the chat drops its outer frame and the video uses the full width */
  .cx { padding: 0; gap: 12px; background: none; box-shadow: none; border-radius: 0; }
  .cx-stage { height: auto; background: none; border-radius: 16px; }
  .cx-show { padding: 0; background: none; }
  .cx-box { height: auto; width: 100%; }
  .cx-big { border-radius: 16px; }
  .cx-pop { top: 12px; }
  .cx-chat { height: 420px; border-radius: 16px; }
  /* Run ads: plain step names, readable, and the ads at a size you can see */
  .lp-n { display: none; }
  .lp-step { color: rgba(246, 245, 241, .62); padding-top: 14px; }
  .lp-step p { font-size: .88rem; }
  .lp-stage { height: 430px; margin-top: 18px; }
  .lp-ad { --w: 36vw; }
  .lp-stage { --w: 36vw; }
  .lp[data-step="3"] .lp-ad--win { transform: translate(-50%, -50%) translateY(-40px) scale(1.05); }
  .lp[data-step="3"] .lp-ad:not(.lp-ad--win) { opacity: 0; }
  .lp-stats { right: 0; left: 0; top: auto; bottom: 22px; flex-direction: row; justify-content: center; gap: 28px; transform: translateY(10px); }
  .lp[data-step="3"] .lp-stats { transform: none; }
  .lp-stats b { font-size: 40px; }
  .lp-stats span { font-size: 12px; }
  .lp[data-step="4"] .lp-ad--win { transform: translate(-50%, -50%) translateY(-80px) scale(.9); }
  .lp[data-step="4"] .lp-var { transform: translate(-50%, -50%) translateX(calc((var(--v) - 2) * (var(--vw) + 8px))) translateY(130px); }
  /* Brand Brain: steps readable before they light up, and the book is there as soon as you reach it */
  .bb-step { color: rgba(255, 255, 255, .7); }
  .bb.is-reading { transform: none; opacity: 1; }
}

/* Turnstile bot check under each waiting-list form (live page only) */
.join__check { margin-top: 10px; min-height: 0; }
.join.is-done .join__check { display: none; }

/* Phone hero: one film (Inbetween's first shoot) instead of the ad wall */
.hero__film { display: none; }
@media (max-width: 640px) {
  .wall { display: none; }
  .hero__film { display: block; margin: 4px 0 48px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #0c0c0d; box-shadow: 0 0 0 1px var(--edge), 0 40px 70px -30px rgba(0, 0, 0, .9); }
  .hero__film video { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* Phone waiting-list form: one compact line, email and button side by side */
@media (max-width: 640px) {
  .join__fields { display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 3px; background: var(--raised); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
  .field input { height: 40px; padding: 0 14px; border-radius: 999px; background: transparent; box-shadow: none; font-size: .92rem; }
  .field input:focus { background: var(--raised-2); box-shadow: none; }
  .join .btn { width: auto; flex: 0 0 auto; min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: .86rem; }
  .hero__agency { margin-top: 18px; }
}

/* Phone chat: no separate player; each reply carries its own film full width, then its shots, then one line */
@media (max-width: 640px) {
  .cx-stage { display: none; }
  .cx-chat { height: auto; }
  .cx-log { overflow: visible; }
  .cx-log .msg--hully { align-self: stretch; width: 100%; }
  .cx-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .cx-col { display: contents; }
  .cx-col .cx-ads { order: 1; grid-template-columns: minmax(0, 1fr); }
  .cx-shots { order: 2; flex-basis: auto; width: 100%; max-width: none; gap: 6px; }
  .cx-meta { order: 3; font-size: 12px; }
  .cx-ad { border-radius: 14px; }
  .cx-ad.is-on::after { box-shadow: none; }
  .cx-shot figcaption { display: none; }
}

/* Phone brand book: one plain paper page, no cloth cover, binder holes, stepped edge or lookbook photo */
@media (max-width: 640px) {
  .bb { padding: 0; border-radius: 14px; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
  .bb-page--l, .bb-page--r { background: none; box-shadow: none; border-radius: 0; }
  .bb-page--l::before, .bb-page--l::after { display: none; }
  .bb-page--l { padding-top: 24px; }
  .bb-photo { display: none; }
  .bb-page--r { padding-top: 4px; }
}

/* Phone text alignment: section heads, intros and the closing block sit left on phones (centred on wider screens) */
@media (max-width: 640px) {
  .why .split { justify-items: start; text-align: left; }
  .why__body p { margin-left: 0; margin-right: 0; }
  .close__inner { text-align: left; align-items: flex-start; }
  .lp, .rc { margin-left: 0; margin-right: 0; }
  .rc-out { justify-content: flex-start; }
}
