/* casttit.com — the brand book's look: ink first, Sora + Manrope, one signal-orange payoff, the beam. */
@font-face { font-family: Sora; src: url("fonts/Sora-Variable.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/Manrope-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --ink: #0E1014; --ink-2: #12141A; --panel: #171A20; --panel-2: #1D2027; --line: #262A33; --line-2: #353A45;
  --text: #F2F1EE; --muted: #A9ADB6; --subtle: #80858F;
  --signal: #FF5B2E; --signal-2: #FF7A55; --signal-soft: rgba(255, 91, 46, .14); --live: #3BD18A; --paper: #F6F5F2;
  --display: "Sora", "Segoe UI", system-ui, sans-serif; --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px; --gutter: 20px; --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--signal-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.25; }
em { font-style: normal; color: var(--signal); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.kicker { font: 800 13px/1 var(--body); letter-spacing: 3.5px; text-transform: uppercase; color: var(--signal); }
.muted { color: var(--muted); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #D7D8DB; max-width: 58ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px; font: 700 16px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--signal); color: #14080A; }
.btn-primary:hover { background: var(--signal-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(14, 16, 20, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.brand span { font: 700 22px var(--display); letter-spacing: -.5px; }
.brand b { color: var(--signal); font-weight: 700; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 15px; }

/* hero */
.hero { padding-block: 72px 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(255, 91, 46, .22), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.beam { height: 4px; width: min(440px, 70%); border-radius: 2px; background: linear-gradient(90deg, var(--signal), rgba(255, 91, 46, 0)); box-shadow: 0 0 18px rgba(255, 91, 46, .55); }
.made { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.heart { width: 16px; height: 15px; flex: none; }
.film { margin-top: 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .55); aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }

/* sections */
section { padding-block: 84px; scroll-margin-top: 70px; }
section + section { border-top: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot img { width: 100%; height: auto; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step .n { display: flex; align-items: center; gap: 12px; font: 700 15px var(--display); color: var(--signal); }
.step .n i { width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: #14080A; font-style: normal; display: grid; place-items: center; font-size: 14px; }
.step p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.feature .t { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.feature p { color: var(--muted); font-size: 16px; }
.feature.free { justify-content: center; background: linear-gradient(160deg, #1E1512, var(--panel) 60%); }
.feature.free .big { font: 700 44px/1 var(--display); letter-spacing: -.03em; padding: 26px 22px 0; }

/* early access */
.access { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.access .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.perks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #D7D8DB; }
.perks li { display: flex; gap: 12px; }
.perks li::before { content: ""; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: var(--signal); flex: none; }
form { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label, legend { font-size: 14px; font-weight: 700; color: #D7D8DB; display: block; margin-bottom: 6px; }
.opt { color: var(--subtle); font-weight: 600; }
input[type="text"], input[type="email"], select, textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); font: 500 16px var(--body); }
textarea { height: 92px; padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices label { margin: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; }
.choices input { accent-color: var(--signal); }
.choices label:has(input:checked) { border-color: var(--signal); background: var(--signal-soft); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); font-weight: 500; margin: 0; }
.consent input { margin-top: 4px; accent-color: var(--signal); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { font-weight: 600; min-height: 1.6em; }
.status.ok { color: var(--live); }
.status.err { color: #FF8A80; }
form button[disabled] { opacity: .6; cursor: progress; }
.done { text-align: center; padding: 30px 10px; display: grid; gap: 12px; justify-items: center; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: rgba(59, 209, 138, .14); color: var(--live); display: grid; place-items: center; font: 800 26px var(--body); }

/* the story: the launch film, scrubbed by scrolling (website/story/, drawn live) */
section.story { padding-block: 0; }
.story-track { position: relative; height: calc(var(--story-secs, 63) * 28vh + 100vh); }   /* about 28 % of a screen per film second */
.story-sticky { position: sticky; top: 68px; height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow: hidden;
  background: var(--ink) url("img/story-start.jpg") center / contain no-repeat; }   /* the opening scene, until the story has drawn */
@media (orientation: portrait) { .story-sticky { background-image: url("img/story-start-vertical.jpg"); } }
.story-sticky iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: transparent; }
.chapters { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.chapters button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 5px 6px; border-radius: 6px; font: 700 12.5px var(--body); color: var(--subtle); }
.chapters button i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; transition: transform .2s, background .2s; }
.chapters button span { opacity: 0; white-space: nowrap; transition: opacity .2s; }
.chapters:hover button span, .chapters button.on span, .chapters button:focus-visible span { opacity: 1; }
.chapters button.on { color: var(--text); }
.chapters button.on i { background: var(--signal); box-shadow: 0 0 10px var(--signal); transform: scale(1.35); }
.chapters button.done i { background: rgba(255, 91, 46, .55); }
.chapters button:focus-visible { outline: 2px solid var(--signal); }
.story-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; background: rgba(26, 29, 36, .92); border: 1px solid var(--line-2); font: 700 13px var(--body); transition: opacity .3s; pointer-events: none; }
.story-hint svg { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.story-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .06); }
.story-bar i { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.story-bar span { display: none; }
.story-sound { position: absolute; left: 16px; bottom: 16px; z-index: 2; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(26, 29, 36, .92); color: var(--text); font: 700 13.5px var(--body); cursor: pointer; }
.story-sound:hover { border-color: var(--muted); }
.fallback { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .story { display: none; } .fallback { display: block; } }
@media (max-width: 760px) {
  .chapters { display: none; }
  .story-bar { height: 30px; background: rgba(14, 16, 20, .88); border-top: 1px solid var(--line); }
  .story-bar span { display: block; position: absolute; left: 16px; bottom: 7px; font: 700 12px var(--body); color: var(--muted); }
  .story-sound { left: auto; right: 12px; bottom: 40px; height: 34px; font-size: 13px; }
  .story-hint { bottom: 44px; }
}

/* the films, with sound */
dialog#film-dialog { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); color: var(--text); }
dialog#film-dialog::backdrop { background: rgba(5, 6, 8, .82); }
.film-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.film-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.film-tabs button { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 700 14px var(--body); cursor: pointer; }
.film-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--signal); background: var(--signal-soft); }
.film-close { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 16px; cursor: pointer; flex: none; }
#film-video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }

/* requirements + faq */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--subtle); background: var(--panel); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; }
.reqs { display: grid; gap: 20px; }
.faq { display: grid; gap: 10px; max-width: 860px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 18px var(--display); letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--signal); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
footer .tag { font: 700 18px var(--display); }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
footer .links a { color: var(--muted); }
.mail { user-select: all; color: var(--text); }

/* privacy page */
.doc { padding-block: 64px 80px; }
.doc .wrap { max-width: 820px; display: grid; gap: 18px; }
.doc h2 { font-size: 26px; margin-top: 18px; }
.doc p, .doc li { color: #D7D8DB; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .split, .access .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding-block: 60px; }
  .hero { padding-block: 44px 24px; }
  .steps, .features, .row { grid-template-columns: minmax(0, 1fr); }
  form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
