/*
  Shufti website.
  Design system: TypeUI "Dramatic" skill (typeui.sh), plus the TypeUI fundamentals.
    surface #09090B · text #FAFAFA · primary #8B5CF6 · secondary #F43F5E
    Outfit at weights 400 and 900 only · JetBrains Mono for labels
    spacing on a 4 point grid: 4 / 8 / 12 / 16 / 24 / 32, then 48 / 64 / 96 / 128
    radius 4 and 8
  House rules carried over from the fundamentals:
    display headings use line-height 1 and a 32px bottom margin
    body copy and button labels never below 16px, supporting copy never below 14px
    sizes under 14px only on chips and timecodes
    buttons are never underlined; chips hug their label
*/

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}

:root {
  --surface: #09090B;
  --surface-2: #111114;
  --surface-3: #1A1A1F;
  --text: #FAFAFA;
  --muted: #A1A1AA;
  --line: rgba(250, 250, 250, 0.12);
  --line-strong: rgba(250, 250, 250, 0.28);
  --primary: #8B5CF6;
  --primary-soft: #A78BFA;
  --secondary: #F43F5E;
  --secondary-soft: #FB7185;
  --success: #16A34A;
  --beam: linear-gradient(100deg, var(--primary) 0%, var(--secondary) 100%);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;

  --r-sm: 4px;
  --r-md: 8px;

  --sans: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: 16px;
  --section: var(--s16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; --section: var(--s24); } }
@media (min-width: 1100px) { :root { --gutter: 48px; --section: var(--s32); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Film grain over everything, very faint. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p a, li a:not(.btn) { color: var(--primary-soft); text-underline-offset: 3px; }
p a:hover { color: var(--text); }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text);
  white-space: nowrap;
}
::selection { background: var(--primary); color: var(--surface); }
:focus-visible { outline: 3px solid var(--secondary-soft); outline-offset: 3px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  padding: var(--s3) var(--s4); background: var(--text); color: var(--surface);
  font-weight: 900; text-decoration: none; border-radius: var(--r-sm);
}
.skip:focus { top: var(--s4); }

/* Scroll position drawn as a playhead across the top of the page. */
.scrub { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.scrub__bar { height: 100%; width: 100%; background: var(--beam); transform: scaleX(0); transform-origin: 0 50%; }

/* Type */

.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  font-family: var(--mono); font-size: 14px; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--s6);
}
.kicker__n {
  color: var(--surface); background: var(--text); font-weight: 700;
  padding: 2px var(--s2); border-radius: var(--r-sm); letter-spacing: 0.06em;
}

h1, h2 {
  font-weight: 900; line-height: 1; letter-spacing: -0.02em; word-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: var(--s8); text-wrap: balance;
}
h2 { font-size: clamp(40px, 8.4vw, 120px); }
h3 { font-weight: 900; font-size: 20px; line-height: 1.15; letter-spacing: -0.01em; }

.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text); max-width: 34em; }
.section__lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); max-width: 36em; }
.fineprint { font-size: 14px; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: var(--s2); width: fit-content; max-width: 100%;
  font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); padding: 7px var(--s2); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  white-space: nowrap;
}
.chip--live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); animation: blink 1.6s steps(2, jump-none) infinite; }
.chip--key { border-color: var(--primary-soft); color: var(--primary-soft); }
@keyframes blink { 50% { opacity: 0.2; } }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s6);
  font-family: var(--sans); font-size: 16px; font-weight: 900; line-height: 1.1; letter-spacing: 0.01em;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r-md);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--text); color: var(--surface); box-shadow: 4px 4px 0 var(--primary); }
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--secondary); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--secondary); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--text); background: rgba(250, 250, 250, 0.06); }
.btn--ghost:active { background: rgba(250, 250, 250, 0.12); }
.btn--small { min-height: 40px; padding: var(--s2) var(--s4); }
.btn--small.btn--primary { box-shadow: 3px 3px 0 var(--primary); }
.btn--small.btn--primary:hover { box-shadow: 5px 5px 0 var(--secondary); }
.btn--big { min-height: 64px; padding: var(--s4) var(--s8); font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }

/* Nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: var(--s6); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--text); margin-right: auto; }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-weight: 900; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.nav__links { display: none; gap: var(--s6); }
.nav__links a { font-size: 16px; color: var(--muted); text-decoration: none; padding: var(--s2) 0; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__tc { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 11ch; }
@media (min-width: 860px) { .nav__links { display: flex; } }
@media (min-width: 1100px) { .nav__tc { display: block; } }

/* Hero */

.hero { position: relative; padding-block: var(--s12) var(--s16); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(1200px, 130vw); aspect-ratio: 1; right: -30%; top: -40%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.34), rgba(139, 92, 246, 0) 70%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, 110vw); aspect-ratio: 1; left: -25%; top: 38%;
  background: radial-gradient(closest-side, rgba(244, 63, 94, 0.2), rgba(244, 63, 94, 0) 70%);
}
@media (min-width: 720px) { .hero { padding-top: var(--s12); } }

.hero__title { font-size: 17.4vw; letter-spacing: -0.03em; word-spacing: 0.04em; margin-bottom: var(--s8); }
@media (min-width: 720px) { .hero__title { font-size: clamp(120px, 14.4vw, 216px); } }
.hero__line { display: block; white-space: nowrap; }
.hero__line--lit {
  background: var(--beam); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--secondary);
  padding-bottom: 0.06em; margin-bottom: -0.06em; width: fit-content; padding-right: 0.04em;
}

/* The viewfinder: a camera that frames one word of the headline at a time, as the product's
   own camera does with a real interface. Built by site.js, so without script (or with reduced
   motion) the headline is simply the headline. */
.hero__title.is-lens { position: relative; }
.lens__base { display: block; }
.lens__copy { position: absolute; inset: 0; display: block; pointer-events: none; clip-path: inset(0 100% 0 0); }
/* Inside the frame the colours swap, so whatever the camera is on reads as "in shot". */
.lens__copy .hero__line {
  background: var(--beam); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--secondary);
  padding-bottom: 0.06em; margin-bottom: -0.06em; width: fit-content; padding-right: 0.04em;
}
.lens__copy .hero__line--lit { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.lens__frame { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; }
.lens__frame i { position: absolute; width: 0.1em; height: 0.1em; min-width: 12px; min-height: 12px; border: 0 solid var(--text); }
.lens__frame i:nth-child(1) { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; }
.lens__frame i:nth-child(2) { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; }
.lens__frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; }
.lens__frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; }
.lens__chip {
  position: absolute; bottom: calc(100% + 6px); display: none; align-items: center; gap: var(--s2);
  padding: 2px var(--s2); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-strong);
  font: 400 12px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.lens__chip--rec { left: 0; }
.lens__chip--zoom { right: 0; color: var(--muted); }
.lens__chip b { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
@media (min-width: 720px) { .lens__chip { display: inline-flex; } }
@media (forced-colors: active) { .lens__copy, .lens__frame { display: none; } }

.hero__row { display: grid; gap: var(--s8); margin-bottom: var(--s12); }
@media (min-width: 960px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s16); align-items: end; }
  .hero__row .lead { max-width: 38em; }
}

.slate { display: grid; margin-top: var(--s12); border-top: 1px solid var(--line-strong); }
.slate > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); align-items: baseline; }
.slate dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.slate dd { font-size: 16px; }
@media (min-width: 960px) {
  .slate { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s8); border-top: 0; margin-top: var(--s16); }
  .slate > div { grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding-block: var(--s4) 0; border-bottom: 0; border-top: 1px solid var(--line-strong); align-content: start; }
  .slate dd { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; }
}

/* The player. */
.stage { position: relative; }
.stage__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-md); background: #050506;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 120px -20px rgba(139, 92, 246, 0.45), 0 24px 80px -30px rgba(244, 63, 94, 0.5);
}
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage__empty {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(40% 60% at 78% 30%, rgba(244, 63, 94, 0.16), transparent 70%),
    #060608;
}
.stage__lens { position: absolute; width: auto; height: 150%; max-width: none; animation: turn 80s linear infinite; }
.stage__iris { transform-origin: 200px 200px; animation: breathe 9s var(--ease) infinite alternate; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { from { transform: scale(0.82) rotate(-8deg); } to { transform: scale(1.12) rotate(10deg); } }

.stage__corner { position: absolute; width: clamp(16px, 4vw, 40px); aspect-ratio: 1; border: 2px solid var(--text); opacity: 0.85; }
.stage__corner--tl { left: 4%; top: 7%; border-right: 0; border-bottom: 0; }
.stage__corner--tr { right: 4%; top: 7%; border-left: 0; border-bottom: 0; }
.stage__corner--bl { left: 4%; bottom: 7%; border-right: 0; border-top: 0; }
.stage__corner--br { right: 4%; bottom: 7%; border-left: 0; border-top: 0; }

.stage__note {
  position: relative; display: grid; justify-items: center; gap: var(--s3); text-align: center;
  padding: var(--s4) var(--s6); max-width: 86%;
  background: rgba(9, 9, 11, 0.72); border: 1px solid var(--line); border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.stage__note p { font-size: clamp(16px, 2.2vw, 24px); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.stage__meta { position: absolute; bottom: 7%; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); display: none; }
.stage__meta--l { left: calc(4% + 56px); }
.stage__meta--r { right: calc(4% + 56px); }
@media (min-width: 720px) { .stage__meta { display: block; } }

/* The edit timeline under the player: eight clips and a playhead. */
.track { position: relative; margin-top: var(--s4); }
.track__clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s1); }
.track__clips li {
  display: grid; gap: var(--s1); padding: var(--s2) var(--s2) var(--s3);
  font-size: 12px; font-weight: 900; line-height: 1.1; letter-spacing: 0; text-transform: uppercase;
  background: var(--surface-2); border-top: 3px solid var(--line-strong); border-radius: 0 0 var(--r-sm) var(--r-sm);
  animation: clip 16s linear infinite;
  min-width: 0;
}
.track__clips li span { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: var(--muted); }
.track__clips li:nth-child(2) { animation-delay: 2s; }
.track__clips li:nth-child(3) { animation-delay: 4s; }
.track__clips li:nth-child(4) { animation-delay: 6s; }
.track__clips li:nth-child(5) { animation-delay: 8s; }
.track__clips li:nth-child(6) { animation-delay: 10s; }
.track__clips li:nth-child(7) { animation-delay: 12s; }
.track__clips li:nth-child(8) { animation-delay: 14s; }
@keyframes clip {
  0%, 12.4% { background: var(--surface-3); border-top-color: var(--secondary); }
  12.5%, 100% { background: var(--surface-2); border-top-color: var(--line-strong); }
}
.track__head { display: none; }
@media (min-width: 860px) {
  .track__clips { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .track__clips li { padding: var(--s3) var(--s3) var(--s4); font-size: 16px; }
  .track__head {
    display: block; position: absolute; top: -8px; bottom: -8px; left: 0; width: 100%;
    pointer-events: none; animation: sweep 16s linear infinite;
  }
  .track__head::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--secondary); }
  .track__head::after {
    content: ''; position: absolute; left: -7px; top: -2px;
    border: 7px solid transparent; border-top: 9px solid var(--secondary); border-bottom: 0;
  }
}
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Sections */

.section { padding-block: var(--section); position: relative; }
.section--band { background: var(--surface-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: var(--s12); }
@media (min-width: 720px) { .section__head { margin-bottom: var(--s16); } }

/* Shot list: the eight stages as a call sheet. */
.shots { border-top: 1px solid var(--line-strong); }
.shot {
  display: grid; gap: var(--s3); padding-block: var(--s6); border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
  transition: background-color 0.2s var(--ease);
}
.shot__n { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--primary-soft); }
.shot__name { font-size: clamp(32px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.02em; word-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s var(--ease); }
.shot__body { font-size: 16px; color: var(--muted); max-width: 38em; display: grid; gap: var(--s4); }
.shot .chip { margin-top: var(--s1); }
@media (min-width: 900px) {
  .shot {
    grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(176px, auto);
    gap: var(--s8); align-items: start; padding-block: var(--s8);
  }
  .shot__n { padding-top: 10px; }
  .shot__body { padding-top: 6px; }
  .shot .chip { margin-top: 8px; justify-self: end; }
  .shot:hover .shot__name { color: transparent; background: var(--beam); -webkit-background-clip: text; background-clip: text; }
}
.stacks { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s1); }
.stacks li {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1;
  padding: 6px var(--s2); border-radius: var(--r-sm); background: var(--surface-3); color: var(--text);
}

/* In and out. */
.io { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
.io__col { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s6); }
.io__col--out { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--beam) border-box; border: 2px solid transparent; }
.io__label { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s6); }
.io__col--out .io__label { color: var(--secondary-soft); }
.io__list li { display: grid; gap: 2px; padding-block: var(--s4); border-top: 1px solid var(--line); }
.io__list li:last-child { padding-bottom: 0; }
.io__list strong { font-size: 20px; font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; }
.io__list span { font-size: 16px; color: var(--muted); }
.io__arrow { display: grid; place-items: center; color: var(--secondary); }
.io__arrow svg { width: 40px; height: 40px; transform: rotate(90deg); }
@media (min-width: 960px) {
  .io { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: var(--s6); align-items: stretch; }
  .io__col { padding: var(--s12); }
  .io__arrow svg { transform: none; width: 56px; height: 56px; }
}
.ratios { --u: 6px; display: flex; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s6); }
@media (min-width: 480px) { .ratios { --u: 8px; } }
.ratio { display: grid; place-items: center; border: 2px solid var(--text); border-radius: var(--r-sm); background: rgba(250, 250, 250, 0.04); }
.ratio b { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; }
.ratio--wide { width: calc(var(--u) * 16); height: calc(var(--u) * 9); }
.ratio--tall { width: calc(var(--u) * 9); height: calc(var(--u) * 16); border-color: var(--primary-soft); }
.ratio--square { width: calc(var(--u) * 9); height: calc(var(--u) * 9); border-color: var(--secondary-soft); }

/* Templates. */
.reels { display: grid; gap: var(--s4); margin-bottom: var(--s4); }
.reel {
  position: relative; display: grid; gap: var(--s3); align-content: start;
  padding: var(--s6); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.reel:hover { transform: translateY(-4px); border-color: var(--primary); background: var(--surface-3); }
.reel__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--primary-soft); }
.reel h3 { font-size: 24px; text-transform: uppercase; letter-spacing: -0.02em; word-spacing: 0.05em; line-height: 1.05; }
.reel p { font-size: 16px; color: var(--muted); }
.reel .chip { margin-top: var(--s2); }
@media (min-width: 640px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
  .reels { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .reel { min-height: 320px; grid-template-rows: auto auto 1fr auto; }
  .reel h3 { font-size: 20px; min-height: 2.1em; }
}
@media (min-width: 1500px) { .reel h3 { font-size: 24px; } }
.keeps { display: grid; gap: var(--s8); margin-top: var(--s16); padding-top: var(--s8); border-top: 1px solid var(--line-strong); }
.keeps li { display: grid; gap: var(--s2); align-content: start; }
.keeps h3 { font-size: 24px; letter-spacing: -0.02em; }
.keeps p { color: var(--muted); max-width: 30em; }
@media (min-width: 860px) { .keeps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12); } }

/* Safety. */
.safe { display: grid; gap: var(--s12); }
@media (min-width: 1000px) { .safe { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s16); align-items: start; } }
.boxes {
  position: relative; display: grid; gap: var(--s4); padding: var(--s12) var(--s4) var(--s4);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
}
.boxes__tag { position: absolute; left: var(--s4); top: var(--s4); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.boxes__shufti, .boxes__sandbox { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--s2); padding: var(--s12) var(--s4) var(--s4); border-radius: var(--r-sm); }
.boxes__shufti { border: 1px solid var(--primary); background: rgba(139, 92, 246, 0.08); }
.boxes__sandbox { flex-direction: column; border: 2px dashed var(--secondary); background: rgba(244, 63, 94, 0.07); }
.boxes__sandbox strong { font-size: 20px; font-weight: 900; line-height: 1.15; }
.boxes__sandbox span:not(.boxes__tag) { font-size: 14px; color: var(--muted); }
.boxes__wall { display: grid; place-items: center; }
.boxes__wall span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary-soft); padding: var(--s1) var(--s2); border: 1px solid var(--secondary); border-radius: var(--r-sm); background: var(--surface); }
@media (min-width: 560px) {
  .boxes { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: var(--s12) var(--s6) var(--s6); align-items: stretch; }
  .boxes__wall { position: relative; padding-inline: var(--s2); }
  .boxes__wall::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dotted var(--line-strong); }
  .boxes__wall span { position: relative; writing-mode: vertical-rl; padding: var(--s2) var(--s1); }
  .boxes__shufti, .boxes__sandbox { min-height: 280px; }
}
.safe__list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.safe__list li { display: grid; gap: var(--s2); padding-block: var(--s6); border-bottom: 1px solid var(--line); }
.safe__list h3 { font-size: 24px; letter-spacing: -0.02em; }
.safe__list p { color: var(--muted); max-width: 36em; }

/* Download. */
.section--download { overflow: hidden; }
.section--download::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(1100px, 140vw); aspect-ratio: 1; left: 50%; top: 10%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.3), rgba(244, 63, 94, 0.1) 55%, transparent 72%);
}
.dl {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding: var(--s6);
  background: rgba(9, 9, 11, 0.7); border: 2px solid transparent; border-radius: var(--r-md);
  background: linear-gradient(rgba(12, 12, 15, 0.94), rgba(12, 12, 15, 0.94)) padding-box, var(--beam) border-box;
}
@media (min-width: 720px) { .dl { padding: var(--s12); gap: var(--s8); } }
.dl__status { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: var(--s2); }
.dl__status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dl[data-state='checking'] .dl__status::before { animation: blink 1s steps(2, jump-none) infinite; }
.dl[data-state='ready'] .dl__status::before { background: var(--success); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25); }
.dl[data-state='none'] .dl__status::before { background: var(--secondary); }
.dl__ready, .dl__none { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.dl__meta { font-size: 16px; color: var(--text); }
.dl__hint { font-size: 14px; color: var(--muted); max-width: 44em; }
.dl__none-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.dl__none > p { color: var(--muted); max-width: 40em; }
.dl__none > p.dl__none-title { color: var(--text); }
.dl__facts { display: grid; gap: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.dl__facts li { display: grid; gap: var(--s1); align-content: start; }
.dl__facts strong { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.dl__facts span { font-size: 16px; color: var(--muted); }
@media (min-width: 860px) { .dl__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s8); } }
.dl__more a { font-weight: 900; color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--secondary); text-decoration-thickness: 2px; }
.dl__more a:hover { color: var(--secondary-soft); }

.code { display: grid; grid-template-columns: minmax(0, 1fr); background: #050506; border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.code pre { margin: 0; padding: 0 var(--s4) var(--s4); overflow-x: auto; }
.code pre:focus-visible { outline-offset: -3px; }
.code code { display: block; padding: 0; background: none; font-size: 14px; line-height: 1.7; white-space: pre; color: var(--text); }
.code__copy {
  justify-self: end; margin: var(--s2) var(--s2) 0 0; min-height: 32px; padding: var(--s1) var(--s3);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  color: var(--text); background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.code__copy:hover { border-color: var(--text); }

/* FAQ. */
.faq { display: grid; gap: var(--s8); }
.faq .section__head { margin-bottom: 0; }
@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s16); align-items: start; }
  .faq .section__head { position: sticky; top: 112px; margin-bottom: 0; }
  .faq h2 { font-size: clamp(48px, 5vw, 72px); }
}
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding-block: var(--s6); cursor: pointer; list-style: none;
  font-size: clamp(20px, 2vw, 24px); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--secondary), var(--secondary)) center / 16px 2px no-repeat,
    linear-gradient(var(--secondary), var(--secondary)) center / 2px 16px no-repeat;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary-soft); }
.faq details p { padding-bottom: var(--s6); color: var(--muted); max-width: 40em; }

/* Footer. */
.foot { border-top: 1px solid var(--line-strong); padding-block: var(--s16) var(--s12); }
.foot__in { display: grid; gap: var(--s8); }
.foot__brand { display: grid; gap: var(--s2); justify-items: start; }
.foot__brand p {
  font-size: clamp(32px, 6vw, 72px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; word-spacing: 0.04em; text-transform: uppercase;
  width: fit-content; padding: 0 0.04em 0.06em 0; color: var(--secondary-soft);
  background: var(--beam); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.foot__links a { font-size: 16px; color: var(--text); text-decoration: none; padding-block: var(--s2); }
.foot__links a:hover { color: var(--primary-soft); }
.foot__legal { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) {
  .foot__in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .foot__legal { grid-column: 1 / -1; padding-top: var(--s6); border-top: 1px solid var(--line); }
}

/* Download page */

.page-hero { padding-block: var(--s12) var(--s12); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(1000px, 130vw); aspect-ratio: 1; right: -20%; top: -50%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.34), transparent 70%);
}
@media (min-width: 720px) { .page-hero { padding-top: var(--s16); } }
.page-hero h1 { font-size: clamp(48px, 11vw, 160px); letter-spacing: -0.03em; }
.page-hero .lead { color: var(--muted); }
.page-body { padding-bottom: var(--section); }
.page-body .dl { margin-bottom: var(--s16); }
.cols { display: grid; gap: var(--s12); }
@media (min-width: 960px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s16); } }
.cols h2 { font-size: clamp(32px, 4vw, 56px); }
.steps { counter-reset: step; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s4); padding-block: var(--s6); border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--primary-soft); padding-top: 4px; }
.steps strong { display: block; font-size: 20px; font-weight: 900; line-height: 1.2; margin-bottom: var(--s1); }
.steps span { color: var(--muted); }
.needs { border-top: 1px solid var(--line-strong); }
.needs li { display: grid; gap: var(--s1); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.needs strong { font-size: 20px; font-weight: 900; line-height: 1.2; }
.needs span { color: var(--muted); }
.note { margin-top: var(--s8); padding: var(--s6); border-left: 3px solid var(--secondary); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; display: grid; gap: var(--s2); }
.note h3 { font-size: 20px; }
.note p { color: var(--muted); }
.other { margin-top: var(--s16); padding-top: var(--s12); border-top: 1px solid var(--line-strong); display: grid; gap: var(--s8); }
@media (min-width: 960px) { .other { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s16); } }
.other > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-content: start; }
.other h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 0; }
.other p { color: var(--muted); }

/* Not found. */
.lost { min-height: 70vh; display: grid; align-content: center; padding-block: var(--section); }
.lost h1 { font-size: clamp(54px, 15vw, 200px); letter-spacing: -0.03em; }
.lost .actions { margin-top: var(--s8); }

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .track__head { display: none; }
  .track__clips li:first-child { border-top-color: var(--secondary); }
  .btn--primary:hover, .reel:hover { transform: none; }
}

@media (forced-colors: active) {
  .hero__line--lit, .foot__brand p { -webkit-text-fill-color: currentColor; background: none; }
  .btn { border-color: currentColor; }
}
