/* The Beast Lab · opening day landing page
   Language: the end screens Menachem designed for the launch films (O-output/156, type/beast-type.ai):
   black, red #E30613 tilted bands, yellow #FFD200 blocks, cream #EFE3C6, black and white footage.
   v2 (25.11, his notes): the prizes in the hero's language (no fight card), the new address with X2, paper cutouts
   on the track cards, a glove for the bullets, one floating "אני בפנים" that never gets cut.
   No arcade, no pills: squared buttons, plain bars. Text colours are kept apart from decorative ones (WebKit 4.5:1 rule). */

:root {
  --ink: #0d0d0d;
  --ink-2: #171717;
  --ink-3: #242424;
  --paper: #efe3c6;
  --paper-ink: #141414;
  --grey: #b7b4ae;
  --white: #f6f3ec;
  --red: #e30613;          /* fills and big type only */
  --red-btn: #c8060f;      /* button fill: white text passes 4.5:1 in WebKit */
  --red-text: #b0000f;     /* small red text on paper */
  --red-on-dark: #ff3b3b;  /* small red text on black */
  --yellow: #ffd200;
  --muted: #a9a59c;        /* small text on black, 7:1 */

  --f-en: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-en-it: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --f-he: "Noto Sans Hebrew", "Arial Hebrew", system-ui, sans-serif;
  --f-serif: "Frank Ruhl Libre", "Times New Roman", serif;

  --gut: 16px;
  --bar-h: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --slam: cubic-bezier(.3, 1.4, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-he);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: 800; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[lang="en"] { font-family: inherit; }

/* ---------- Buttons: squared, small, exact ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--red-btn); color: #fff;
  font: 800 18px/1 var(--f-he);
  text-decoration: none; letter-spacing: .01em;
  border: 0; border-radius: 4px; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s;
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(227, 6, 19, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .link:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible + span {
  outline: 3px solid var(--yellow); outline-offset: 3px;
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-ghost {
  background: transparent; color: currentColor;
  box-shadow: inset 0 0 0 2px currentColor; min-height: 44px; font-size: 16px;
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px currentColor, 0 10px 24px -14px rgba(0,0,0,.6); }
.link { color: var(--white); font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Top bar: plain strip ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gut);
  padding-top: env(safe-area-inset-top);
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.bar-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; transform: scale(1.06); clip-path: circle(46%); }
.bar-brand span { font: 400 19px/1 var(--f-en); letter-spacing: .04em; }
.bar-round { font: 700 14px/1 var(--f-en-it); letter-spacing: .12em; color: #c9c5bb; direction: ltr; display: none; }
.bar-round b { color: var(--white); font-size: 16px; display: inline-block; min-width: .7em; text-align: center; transition: transform .3s var(--slam); }
.bar-round b.bump { transform: scale(1.5); }
.bar-progress { position: absolute; inset: auto 0 -1px 0; height: 3px; background: var(--red); transform-origin: right; transform: scaleX(var(--p, 0)); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--bar-h) + 24px) var(--gut) 28px;
  overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #111; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,.6) 0%, rgba(13,13,13,.2) 18%, rgba(13,13,13,.55) 36%, rgba(13,13,13,.9) 64%, #0d0d0d 100%);
}
.hero-flash { position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
.hero-flash.go { animation: flash .32s steps(2, end); }
@keyframes flash { 0% { opacity: .75; } 50% { opacity: .35; } 100% { opacity: 0; } }

.hero-copy { width: 100%; max-width: 640px; }
.kicker { text-shadow: 0 1px 10px rgba(0,0,0,.7); margin: 0 0 10px; font: 700 14px/1 var(--f-en-it); letter-spacing: .2em; color: var(--white); opacity: .9; }
.kicker span { font-family: var(--f-he); letter-spacing: 0; font-weight: 700; }
.hero-title { margin: 0; }
.hero-title .en {
  display: block; text-align: right; text-shadow: 0 2px 24px rgba(0,0,0,.35);
  font: 400 clamp(64px, 21vw, 168px)/.86 var(--f-en);
  letter-spacing: -.005em; text-transform: uppercase; color: var(--white);
}
.hero-title .w { display: inline-block; }
.band {
  display: inline-block; margin: 14px 0 0;
  background: var(--red); color: #fff;
  transform: rotate(-3.5deg); transform-origin: right center;
  padding: 6px 18px 8px;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.8);
}
.band span { display: block; font: 900 clamp(30px, 9vw, 56px)/1 var(--f-he); font-stretch: 62.5%; font-style: normal; transform: skewX(8deg); }
.lead { margin: 22px 0 0; font-size: 18px; line-height: 1.55; max-width: 34ch; color: var(--white); }
.lead b { color: #fff; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.hero-actions .btn { min-width: 168px; }

.clock {
  display: flex; align-items: stretch; gap: 0; margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px;
  direction: rtl;
}
.clock-label { font-size: 13px; font-weight: 700; color: var(--muted); align-self: center; margin-inline-end: 14px; line-height: 1.2; max-width: 4.5em; }
.clock-cell { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 0 8px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.clock-cell:first-of-type { border-inline-start: 0; }
.clock-cell b { font: 400 30px/1 var(--f-en); font-variant-numeric: tabular-nums; color: #fff; direction: ltr; }
.clock-cell small { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Ticker ---------- */
.ticker-wrap { position: relative; z-index: 2; overflow: hidden; padding: 14px 0; margin: -20px 0 -8px; }
.ticker {
  position: relative;
  background: var(--red-btn); color: #fff;
  transform: rotate(-2deg); width: 112%; margin: 0 -6%;
  overflow: hidden; padding: 12px 0;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.9);
}
.ticker-track { display: flex; width: max-content; gap: 18px; animation: tick 28s linear infinite; }
.ticker-track span { font: 900 26px/1 var(--f-he); font-stretch: 62.5%; white-space: nowrap; font-style: italic; }
.ticker-track i { font-style: normal; }
@keyframes tick { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Round tags ---------- */
.round-tag {
  margin: 0 0 18px; direction: rtl;
  font: italic 900 15px/1 var(--f-en-it); letter-spacing: .14em; color: var(--muted);
}
.round-tag span { font: 800 15px/1 var(--f-he); letter-spacing: 0; font-style: normal; color: var(--white); }
.round-tag-light, .round-tag-light span { color: #fff; }

/* ---------- ROUND 1 · prizes, in the hero's language (v2) ---------- */
.prizes { position: relative; padding: 72px var(--gut) 56px; max-width: 980px; margin: 0 auto; }
/* Short titles stay on one line (his rule: a block of five words or fewer never breaks); sizes measured at 375 and 980. */
.prizes-title { margin: 0; font: 900 clamp(38px, 12.2vw, 116px)/.9 var(--f-he); font-stretch: 62.5%; white-space: nowrap; }
.band-prizes { margin-top: 14px; }
.band-prizes span { font-size: clamp(28px, 8vw, 48px); }
.js .band-prizes.rv { transform: rotate(-3.5deg) translateX(-40px); }
.js .band-prizes.rv.in { transform: rotate(-3.5deg); transition: opacity .25s, transform .45s var(--slam); }
.prize-list { list-style: none; margin: 36px 0 0; padding: 0; }
.prize { padding: 18px 0 20px; border-top: 1px solid rgba(255,255,255,.14); }
.prize:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.prize-tag { margin: 0; font: 800 15px/1.2 var(--f-he); color: var(--muted); }
.prize-name { margin: 6px 0 0; font: 900 clamp(34px, 10.6vw, 80px)/.95 var(--f-he); font-stretch: 62.5%; white-space: nowrap; }
.prize-main { background: var(--yellow); color: var(--ink); padding: 20px 20px 22px; border: 0; }
.prize-main .prize-tag { color: var(--ink); }
.prize-main .prize-name { font-size: clamp(64px, 20vw, 140px); line-height: .88; }
.prize-worth { margin: 8px 0 0; font: 800 20px/1.2 var(--f-he); }
.prize-worth b { font: 400 30px/1 var(--f-en); letter-spacing: .02em; }
.prizes-note { margin: 22px 0 0; font: 700 17px/1.4 var(--f-he); }

/* ---------- ROUND 2 · the new place ---------- */
.place { position: relative; }
.place-head { padding: 72px var(--gut) 0; max-width: 980px; margin: 0 auto; }
.addr { margin: 0; }
.addr-k { display: block; font: 800 clamp(22px, 6vw, 34px)/1.2 var(--f-he); color: var(--muted); }
.addr-v { display: block; margin-top: 6px; font: 900 clamp(36px, 11.3vw, 110px)/.92 var(--f-he); font-stretch: 62.5%; color: var(--yellow); white-space: nowrap; }

.place-list { padding: 32px var(--gut) 80px; max-width: 980px; margin: 0 auto; }
.place-intro { margin: 0 0 18px; font-weight: 700; color: var(--muted); }
.feats { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.feat { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
.feat:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.feat-n { font: italic 900 18px/1 var(--f-en-it); color: var(--red-on-dark); grid-row: span 2; }
.feat-name { margin: 0; font: 900 clamp(40px, 12vw, 84px)/1 var(--f-he); font-stretch: 62.5%; letter-spacing: -.005em; }
.feat-name [lang="en"] { font-family: var(--f-en); font-weight: 400; font-stretch: normal; }
.feat p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.feat:hover .feat-name { color: var(--yellow); }
.feat-name { transition: color .2s, transform .3s var(--ease); }

.count { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 48px; padding: 22px 22px 20px; background: var(--yellow); color: var(--ink); }
.count-num { margin: 0; }
.count-num b { font: 400 clamp(96px, 30vw, 190px)/.82 var(--f-en); display: block; letter-spacing: -.01em; }
.count-text { margin: 0; font: 700 17px/1.4 var(--f-he); text-wrap: balance; }
.count-text b { font-weight: 900; font-size: clamp(22px, 7vw, 44px); line-height: 1.1; font-stretch: 62.5%; display: block; white-space: nowrap; }

/* ---------- ROUND 3 · tracks (a stack that piles up on scroll; v2: a paper cutout per card) ---------- */
.tracks { padding: 72px var(--gut) 40px; max-width: 980px; margin: 0 auto; }
.h2 { text-wrap: balance; margin: 0 0 32px; font: 900 clamp(46px, 13vw, 96px)/.95 var(--f-he); font-stretch: 62.5%; }
.stack { display: grid; gap: 18px; }
.track {
  --cut-h: 250px; --cut-r: 0px;
  position: sticky; top: calc(var(--bar-h) + 14px);
  overflow: hidden; isolation: isolate;
  padding: 24px 22px calc(var(--cut-h) + 6px);
  box-shadow: 0 -18px 40px -24px rgba(0,0,0,.9);
  transform-origin: center top;
}
.track:nth-child(2) { top: calc(var(--bar-h) + 30px); }
.track:nth-child(3) { top: calc(var(--bar-h) + 46px); }
.track-body { display: flex; flex-direction: column; position: relative; z-index: 1; }
.track-n { margin: 0; font: 400 22px/1 var(--f-en); }
.track-name { margin: 0; padding-top: 18px; font: 900 clamp(40px, 13.4vw, 110px)/.92 var(--f-he); font-stretch: 62.5%; white-space: nowrap; }
.track-kind { margin: 10px 0 0; font: 800 20px/1.3 var(--f-he); }
.track-kind [lang="en"] { font-family: var(--f-en); font-weight: 400; letter-spacing: .03em; }
.track-line { margin: 4px 0 18px; font-size: 16px; }
.track .btn { align-self: flex-start; }
/* The cutout: anchored to the card's bottom edge and right edge, where the photo itself cut the person
   (the kick into the bag for the kid and the woman; the floor line for all three). */
.track-cut {
  position: absolute; z-index: 0; bottom: 0; right: var(--cut-r);
  height: var(--cut-h); width: auto; max-width: none;
  filter: drop-shadow(-6px 8px 10px rgba(0,0,0,.32));
  pointer-events: none; user-select: none;
}
.track-adults { --cut-r: 22px; --cut-h: 300px; }
.track-women { --cut-h: 236px; }
.track-adults { background: var(--yellow); color: var(--ink); }
.track-kids { background: var(--red-btn); color: #fff; }
.track-women { background: var(--paper); color: var(--paper-ink); }

/* ---------- ROUND 4 · form ---------- */
.join { position: relative; padding: 80px var(--gut) 88px; background: var(--ink-2); border-top: 6px solid var(--red); }
.join-grid { max-width: 980px; margin: 0 auto; display: grid; gap: 28px; }
.join-title { margin: 0; font: 900 clamp(72px, 24vw, 150px)/.86 var(--f-he); font-stretch: 62.5%; }
.join-sub { margin: 14px 0 0; font-size: 18px; max-width: 30ch; }
.join-points { list-style: none; margin: 18px 0 0; padding: 0; }
.join-points li { position: relative; padding: 9px 34px 9px 0; border-top: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: 16px; }
/* v2: a boxing glove instead of the diamond (his note). Red on the dark section, drawn inline. */
.join-points li::before {
  content: ""; position: absolute; right: 0; top: 10px; width: 24px; height: 24px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-14 12 12)'%3E%3Cpath fill='%23ff3b3b' d='M8.2 15.6C5.7 15.6 3.9 13.4 3.9 10.8V8.6C3.9 5 6.8 2.1 10.4 2.1h3.3c3.8 0 6.7 3 6.7 6.8v2.2c0 2.6-2 4.5-4.5 4.5z'/%3E%3Crect fill='%23ff3b3b' stroke='%23171717' stroke-width='1.4' x='3.4' y='9.6' width='9.6' height='4.6' rx='2.3' transform='rotate(-30 8.2 11.9)'/%3E%3Crect fill='%23ff3b3b' x='7' y='16.7' width='10.4' height='5.2' rx='1.2'/%3E%3Crect fill='%23171717' x='7' y='18.8' width='10.4' height='1.1'/%3E%3C/g%3E%3C/svg%3E");
}

.form { display: grid; gap: 18px; background: var(--white); color: var(--ink); padding: 24px 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 800; font-size: 16px; margin-bottom: 6px; padding: 0; }
.field small { font-weight: 500; color: #5b5850; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 52px; padding: 0 14px;
  font: 600 18px/1 var(--f-he); color: var(--ink);
  background: #fff; border: 2px solid #1d1d1d; border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
}
.field input[type="tel"] { font-family: var(--f-en-it); font-weight: 700; font-size: 21px; letter-spacing: .04em; text-align: right; }
.field input::placeholder { color: #8a867c; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .2); }
.field.bad input { border-color: var(--red-text); }
.err { margin: 6px 0 0; min-height: 0; font-size: 14px; font-weight: 700; color: var(--red-text); }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid #1d1d1d; border-radius: 4px; font-weight: 800; font-size: 16px;
  transition: background-color .15s, color .15s, transform .15s var(--slam);
}
.chip input:checked + span { background: var(--ink); color: var(--yellow); transform: scale(1.03); }
.chip input:checked + span::before { content: "✓"; margin-inline-end: 6px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; color: #34322c; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.btn-submit { width: 100%; min-height: 56px; font-size: clamp(17px, 5.1vw, 22px); white-space: nowrap; padding: 0 14px; }
.btn-submit[disabled] { opacity: .65; cursor: wait; }
.fine { margin: -4px 0 0; font-size: 13px; color: #4e4b44; line-height: 1.5; }
.fine a { color: var(--ink); font-weight: 700; }
.form-error { margin: 0; font-weight: 700; color: var(--red-text); }
.form-error:empty { display: none; }

/* ---------- The ticket (success) ---------- */
.ticket { display: grid; grid-template-columns: 1fr; background: var(--paper); color: var(--paper-ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); outline: none; animation: ticketIn .6s var(--slam); }
.ticket[hidden] { display: none; }
@keyframes ticketIn { from { transform: rotate(-4deg) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket-main { padding: 24px 22px 20px; position: relative; }
.ticket-org { margin: 0; font: 700 14px/1 var(--f-en-it); letter-spacing: .22em; }
.ticket-hi { margin: 14px 0 0; font: 900 clamp(40px, 12vw, 64px)/1 var(--f-he); font-stretch: 62.5%; }
.ticket-label { margin: 16px 0 0; font-weight: 700; font-size: 15px; }
.ticket-no { margin: 2px 0 0; font: 400 clamp(64px, 20vw, 110px)/1 var(--f-en); color: var(--red); text-align: right; }
.ticket-meta { margin: 6px 0 0; font-weight: 700; font-size: 15px; }
.ticket-stub { padding: 18px 22px 22px; border-top: 3px dashed var(--paper-ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ticket-stub p { margin: 0; font: 900 26px/1 var(--f-he); font-stretch: 62.5%; }
.btn-wa { background: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding: 80px var(--gut) 64px; max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid rgba(255,255,255,.16); }
.faq details:last-of-type { border-bottom: 1px solid rgba(255,255,255,.16); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0 18px 36px; position: relative; font: 800 19px/1.35 var(--f-he); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; left: 4px; top: 12px; font: 400 30px/1 var(--f-en); color: var(--red-on-dark); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #d9d5cc; max-width: 56ch; }
.faq details a { color: var(--yellow); font-weight: 700; }

/* ---------- Closer ---------- */
.closer { padding: 72px var(--gut) 96px; text-align: right; max-width: 980px; margin: 0 auto; overflow: hidden; }
.closer-title { margin: 0; display: flex; flex-direction: column; align-items: flex-end; font: italic 900 clamp(76px, 25vw, 200px)/.82 var(--f-en-it); text-transform: uppercase; }
.closer-title span { display: block; }
.band-closer { margin-top: 18px; }
.closer-meta { margin: 26px 0 18px; font: 700 15px/1 var(--f-he); color: var(--muted); letter-spacing: .02em; }

/* ---------- Footer ---------- */
.foot { padding: 32px var(--gut) calc(110px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); color: var(--muted); font-size: 15px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: 10px; }
.foot-brand img { border-radius: 50%; clip-path: circle(46%); }
.foot-brand span { font: 400 20px/1 var(--f-en); letter-spacing: .04em; }
.foot p { margin: 4px 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--white); text-underline-offset: 4px; }

/* ---------- Floating "אני בפנים" (phone: plain strip; desktop: squared button in the corner) ----------
   Fixed in one place, never docks or follows. It only fades while another "אני בפנים" is on screen. */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 39;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(13,13,13,.96); border-top: 2px solid var(--red);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s .25s;
}
.dock.on { opacity: 1; visibility: visible; transition: opacity .25s var(--ease), visibility 0s; }
.dock p { margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dock p b { font-size: 15px; }
.dock p span { font-size: 13px; color: var(--muted); }

/* ---------- Terms dialog ---------- */
.terms { width: min(640px, calc(100% - 24px)); max-height: 86vh; border: 0; padding: 28px 22px 22px; background: var(--white); color: var(--ink); border-radius: 4px; }
.terms::backdrop { background: rgba(0,0,0,.72); }
.terms h2 { margin: 0 0 4px; font: 900 34px/1 var(--f-he); font-stretch: 62.5%; }
.terms-draft { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--red-text); }
.terms ol { margin: 0; padding-inline-start: 20px; font-size: 15px; line-height: 1.6; }
.terms li { margin-bottom: 8px; }
.terms-x { position: absolute; left: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .feat.rv { transform: translateX(-28px); }
.js .feat.rv.in { transform: none; }
.js .feat.rv.in .feat-name { animation: xrayText .36s steps(3, end); }
@keyframes xrayText { 0% { color: transparent; -webkit-text-stroke: 1.5px #fff; } 50% { color: var(--red-on-dark); } 100% { color: inherit; } }
.js .hero .w { opacity: 0; transform: translateY(30%) scale(1.06); }
.js .hero.in .w { opacity: 1; transform: none; transition: opacity .3s, transform .5s var(--slam); }
.js .hero.in .w:nth-child(2) { transition-delay: .12s; }
.js .hero.in .w:nth-child(3) { transition-delay: .24s; }
.js .hero .band-hero { opacity: 0; transform: rotate(-3.5deg) translateX(-40px); }
.js .hero.in .band-hero { opacity: 1; transform: rotate(-3.5deg); transition: opacity .25s .42s, transform .45s .42s var(--slam); }
.js .hero .lead, .js .hero .hero-actions, .js .hero .clock { opacity: 0; transform: translateY(14px); }
.js .hero.in .lead, .js .hero.in .hero-actions, .js .hero.in .clock { opacity: 1; transform: none; transition: opacity .5s .6s, transform .6s .6s var(--ease); }
.js .hero.in .hero-actions { transition-delay: .7s; }
.js .hero.in .clock { transition-delay: .8s; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --gut: 40px; --bar-h: 64px; }
  body { font-size: 18px; }
  .bar-round { display: block; }
  .hero { align-items: center; padding-top: calc(var(--bar-h) + 40px); padding-bottom: 56px; }
  .hero-media { inset: 0 auto 0 0; width: 46%; }
  .hero-media::after { background: linear-gradient(270deg, #0d0d0d 0%, rgba(13,13,13,.35) 30%, rgba(13,13,13,.05) 60%, rgba(13,13,13,.25) 100%); }
  .hero-copy { max-width: 58%; }
  .hero-title .en { font-size: clamp(110px, 10.5vw, 190px); }
  .lead { font-size: 21px; }
  .ticker-track span { font-size: 34px; }
  .prizes { padding-top: 104px; }
  .prize-list { margin-top: 48px; }
  .prize { display: grid; grid-template-columns: 200px 1fr; align-items: baseline; column-gap: 24px; padding: 22px 0 24px; }
  .prize-main { padding: 26px 28px 28px; }
  .prize-worth { grid-column: 2; }
  .place-head { padding-top: 104px; }
  .place-list { padding-top: 48px; }
  .feat { grid-template-columns: 70px 1fr 1fr; align-items: center; }
  .feat-n { grid-row: auto; }
  .feat p { margin: 0; text-align: left; }
  .feat-name { font-size: 64px; white-space: nowrap; }
  .stack { grid-template-columns: 1fr; }
  /* desktop card: the cutout stands in the right part, the words sit in the left half */
  .track { --cut-h: 400px; min-height: 440px; padding: 40px 40px 40px; }
  .track-body { width: 50%; margin-inline-start: auto; min-height: 360px; }
  .track-name { margin-top: auto; font-size: 68px; }
  .count { grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px 30px; }
  .track-adults { --cut-r: 12%; }
  .track-women { --cut-h: 380px; }
  .join-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 56px; }
  .form { padding: 32px 30px; }
  .ticket { grid-template-columns: 1fr; }
  /* desktop: the floating button alone, squared, bottom left corner (the bar holds the brand on the right) */
  .dock { inset: auto auto 28px 28px; padding: 0; background: none; border: 0; }
  .dock p { display: none; }
  .dock .btn { min-height: 54px; padding: 0 28px; font-size: 19px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); }
  .foot { padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .foot-brand { margin: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js .rv, .js .hero .w, .js .hero .band-hero, .js .hero .lead, .js .hero .hero-actions, .js .hero .clock { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero .band-hero, .js .band-prizes.rv { transform: rotate(-3.5deg) !important; }
  .ticket { animation: none; }
}

/* ---------- Very tall windows (a full-page capture, the WebKit check): no pins, everything shown ---------- */
@media (min-height: 2000px) {
  .hero { min-height: 900px !important; }
  .js .rv, .js .hero .w, .js .hero .lead, .js .hero .hero-actions, .js .hero .clock { opacity: 1 !important; transform: none !important; }
  .js .hero .band-hero, .js .band-prizes.rv { opacity: 1 !important; transform: rotate(-3.5deg) !important; }
  .track { position: relative; top: 0 !important; }
}
