/*
 * FOUKOU Smash: the design of video C, measured from its frames (see SPEC-video-C-exact.md).
 * Desktop is authored at the video's 1440 x 800 page; app.js zooms the page to the window, so every px value
 * here is the video's px value. --w and --vh are the window's width and height in page px.
 * This file: tokens, type, buttons, nav, the two pinned film stages, the ticker.
 * sections.css: menu, smash captions, events, find, footer. panels.css: dialogs and forms. phone.css: under 820 px.
 */
:root {
  --black: #0a0a0a;
  --night: #060a0e;            /* the menu's blue-black */
  --card: #10171c;
  --yellow: #ffdd00;
  --yellow-hot: #ffea55;
  --orange: #f2630f;
  --teal: #22cdb8;
  --mint: #4ee6b8;
  --ink: #141003;              /* text on yellow */
  --soft: rgb(255 255 255 / 0.9);
  --mute: rgb(255 255 255 / 0.72);
  --faint: rgb(255 255 255 / 0.62);
  --line: rgb(255 255 255 / 0.14);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z: 1;
  --w: 1440px;
  --vh: 800px;
  --nav-h: 72px;
  --edge: 77px;                /* where the hero text starts */
  --box-tilt: 0deg;            /* the yellow headline boxes measure level in the straightened frames */
  --ticker-tilt: 0deg;         /* measured level in the straightened frames */
}
* { box-sizing: border-box; }
html { background: var(--black); color: #fff; font: 500 17px/1.56 var(--sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset, address { margin: 0; padding: 0; border: 0; font-style: normal; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.site { width: var(--w); zoom: var(--z); }
.wrap { width: 1200px; margin: 0 auto; }

/* ---------- type ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 800 12.5px/16px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); }
.eyebrow .bar { width: 27px; height: 2px; background: var(--yellow); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.dot-mint { background: var(--mint); box-shadow: 0 0 10px rgb(78 230 184 / 0.7); }
.label { font: 800 10.5px/14px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* the heavy caps headline; one line sits black on a yellow box */
.shout { font: 400 55px/1 var(--display); text-transform: uppercase; color: #fff; }
.shout > span { display: block; width: fit-content; }
.shout .box { margin: 0.155em 0 0.075em; padding: 0.18em 0.17em 0.02em; background: var(--yellow); color: var(--ink); transform: rotate(var(--box-tilt)); transform-origin: 0 100%; }
.shout .box:last-child { margin-bottom: 0; }
.shout-hero { font-size: 66px; }
.script { font: 400 0.86em/1 var(--script); text-transform: none; font-style: normal; color: var(--yellow); margin-left: 0.22em; }
.lede { max-width: 362px; margin-top: 19px; font: 500 17px/26.5px var(--sans); color: var(--soft); }
.shout-hero + .lede { margin-top: 23px; }

/* three lines: white, yellow outline, orange script */
.trio { font: 400 85px/98px var(--display); text-transform: uppercase; }
.trio > span { display: block; }
.trio .hollow { color: transparent; -webkit-text-stroke: 2px var(--yellow); }
.trio .script { margin: 18px 0 0 4px; font-size: 74px; line-height: 80px; color: var(--orange); }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 27px; border-radius: 999px; font: 800 15px/1 var(--sans); white-space: nowrap; transition: transform 200ms var(--ease), box-shadow 200ms, background 200ms, border-color 200ms, color 200ms; }
.pill svg { width: 17px; height: 17px; }
.pill:active { transform: scale(0.97); }
.pill-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 1px rgb(255 221 0 / 0.5), 0 6px 26px rgb(255 221 0 / 0.3); }
.pill-yellow:hover { background: var(--yellow-hot); box-shadow: 0 0 0 1px rgb(255 234 85 / 0.7), 0 8px 34px rgb(255 221 0 / 0.5); transform: translateY(-2px); }
.pill-yellow:hover:active { transform: scale(0.97); }
.pill-line { border: 1.5px solid rgb(255 255 255 / 0.72); color: #fff; background: rgb(0 0 0 / 0.28); }
.pill-line:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.pill-ink { background: #110e09; color: var(--yellow); height: 46px; padding: 0 34px; font-size: 14px; }
.pill-ink:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); }
.status { display: flex; align-items: center; gap: 8px; font: 700 13.5px/18px var(--sans); color: #fff; }
.status.is-open .dot { background: var(--mint); box-shadow: 0 0 10px rgb(78 230 184 / 0.7); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 40; top: 0; left: 0; width: var(--w); height: var(--nav-h); zoom: var(--z); display: flex; align-items: center; padding: 0 54px 0 52px; border-bottom: 1px solid transparent; transition: background 300ms, border-color 300ms; }
.nav.is-solid { background: rgb(10 10 10 / 0.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: rgb(255 255 255 / 0.09); }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-badge { width: 62px; height: 62px; transition: transform 500ms var(--ease); }
.logo:hover .logo-badge { transform: rotate(-10deg) scale(1.05); }
.logo-name { display: grid; font: 400 26px/27px var(--script); }
.logo-name b { font-weight: 400; color: #fff; }
.logo-name i { font-style: normal; color: var(--yellow); margin-left: 17px; }
.links { position: absolute; left: 378px; top: 0; height: 100%; display: flex; align-items: center; gap: 29px; font: 700 14px/1 var(--sans); }
.links a { position: relative; padding: 8px 0; transition: color 200ms; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.links a:hover { color: var(--yellow); }
.links a:hover::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-call { display: flex; align-items: center; gap: 8px; padding: 8px 0; font: 700 14px/1 var(--sans); color: #fff; transition: color 200ms; }
.nav-call svg { width: 15px; height: 15px; color: var(--yellow); }
.nav-call:hover { color: var(--yellow); }
.pill-nav { height: 40px; min-width: 259px; padding: 0 22px; font-size: 14px; font-weight: 700; }
.short, .menu-btn { display: none; }   /* the phone's shorter button words and its sections menu */

/* ---------- the pinned film stages (the burger, the smash) ---------- */
.pinned { position: relative; background: #000; }
.stack { height: calc(var(--vh) * 5.4); }
.smash { height: calc(var(--vh) * 4); }
.stage { position: sticky; top: 0; height: var(--vh); overflow: hidden; }
/* --grow, --grow-y and --floor-y come from film.js, which measures the finished burger in its own picture */
.film-box { position: absolute; inset: 0; transform: scale(calc(1 + var(--grow, 0))); transform-origin: 50% var(--grow-y, 50%); will-change: transform; }
/* the burger stands on black, so in a window wider than the film it is shown whole, not cropped top and bottom */
.stack .film-box { inset: 0 auto 0 50%; width: min(100%, calc(var(--vh) * 16 / 9)); translate: -50% 0; }
.film-box > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster { object-fit: cover; }
.stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.dip { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
/* light pooling on the floor under the finished burger, drawn in code */
.floor { position: absolute; left: 50%; top: calc(var(--floor-y, 77%) + 14px); width: 760px; height: 150px; margin-left: -380px; opacity: var(--glow, 0); pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgb(255 236 200 / 0.2), rgb(255 200 120 / 0.06) 60%, transparent), linear-gradient(90deg, transparent, rgb(255 255 255 / 0.26) 30%, rgb(255 255 255 / 0.26) 70%, transparent) center top / 100% 1px no-repeat; }

/* text that swaps as the film plays */
.cap, .side { position: absolute; top: 50%; opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 16px)); filter: blur(6px); transition: opacity 380ms, transform 520ms var(--ease), filter 380ms, visibility 0s 380ms; }
.cap { left: var(--edge); width: 420px; }
.side { right: 80px; text-align: right; }
.cap.is-on, .side.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); filter: none; transition-delay: 120ms, 120ms, 120ms, 0s; }
.cap .shout { margin-top: 19px; }
.cap-hero .shout { margin-top: 21px; }
#stack-caps .cap { margin-top: 3px; }   /* the steps sit 3 px under the stage's middle in the video */
.actions { display: grid; justify-items: start; gap: 9px; margin: 25px 0 0 2px; }
/* the video's button sizes, so the column lines up with it whatever our words are */
.cap-hero .pill-yellow { min-width: 281px; }
.cap-hero .pill-line { min-width: 218px; }
.cap .status { margin-top: 20px; margin-left: 4px; }
.cap-final .shout { margin-top: 23px; font-size: 72px; }
#stack-caps .cap-final { margin-top: 1px; }
.cap-final .shout .box { padding-top: 0.22em; }
.cap-final .pill-line { height: 47px; }

.side-hero { right: 78px; font: 400 46px/47.3px var(--display); text-transform: uppercase; color: #fff; }
.side-hero b { font-weight: 400; color: var(--yellow); }
.count { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; font: 400 180px/1 var(--display); color: var(--yellow); }
.count small { font-size: 44px; color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.6); letter-spacing: 0.02em; }
.side .label { margin-top: 3px; color: #fff; letter-spacing: 0.2em; }
.side-final .label:first-child { margin: 0 0 7px; color: var(--yellow); }
.big-price { font: 400 128px/1 var(--display); color: var(--yellow); text-shadow: 0 0 34px rgb(255 190 0 / 0.5), 0 0 90px rgb(255 140 0 / 0.3); }

.hint { position: absolute; left: 0; right: 0; bottom: 60px; text-align: center; font: 800 10px/14px var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #fff; transition: opacity 300ms; pointer-events: none; }
.hint.is-off { opacity: 0; }
.rail { position: absolute; left: 65px; right: 65px; bottom: 51px; height: 1px; background: rgb(255 255 255 / 0.2); }
.rail-fill { position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--yellow); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.rail ol { position: absolute; left: 0; right: 0; top: 5px; display: flex; justify-content: space-between; }
.rail button { padding: 6px 0; font: 800 10.5px/14px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); transition: color 250ms; }
.rail button:hover { color: #fff; }
.rail .is-on button { color: var(--yellow); }

/* ---------- 3. the ticker band ---------- */
.ticker { position: relative; z-index: 2; height: 67px; overflow: hidden; background: var(--yellow); color: var(--ink); transform: rotate(var(--ticker-tilt)); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: ticker 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: flex; align-items: center; font: 400 34px/1 var(--display); letter-spacing: 0.035em; text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; margin: 0 36px; border-radius: 50%; background: #a85a00; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* things that come in as they are scrolled to (only when scripts run) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 600ms, transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .cap, .side { transition: opacity 200ms, visibility 0s 200ms; transform: translateY(-50%); filter: none; }
  .film-box { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .logo-badge { transition: none; }
}
