/* CUTUPP — site styles. One accent, black canvas, the reel does the talking. */
:root {
  --bg: #050506;
  --bg-2: #0b0c0f;
  --text: #f4f5f7;
  --text-2: #a3a8b0;
  --text-3: #6d727a;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #ff6a1f;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--text); color: #000; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- type */
.overline {
  margin: 0 0 18px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.headline {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.lede { margin: 20px 0 0; max-width: 56ch; color: var(--text-2); font-size: clamp(16px, 1.35vw, 19px); }
.meta { margin: 22px 0 0; font: 400 12.5px/1 var(--mono); color: var(--text-3); letter-spacing: 0.02em; }
.meta .dot { display: inline-block; width: 6px; height: 6px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--text); color: #050506;
  font: 600 15px/1 var(--sans); letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.45); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.btn--small { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--big { height: 60px; padding: 0 30px; font-size: 16px; margin-top: 34px; }

/* ---------- top bar: a floating pill */
.bar {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; gap: 30px;
  height: 58px; padding: 0 8px 0 20px;
  border-radius: 16px;
  background: rgba(12, 12, 15, 0.5);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 40px -18px rgba(0, 0, 0, 0.7);
  transition: background 0.4s var(--ease), transform 0.6s var(--ease);
}
.bar.is-solid { background: rgba(12, 12, 15, 0.82); }
.bar__logo img { width: 112px; height: auto; }
.bar__nav { display: flex; gap: 24px; font-size: 14px; color: var(--text-2); }
.bar__nav a { position: relative; transition: color 0.2s; }
.bar__nav a:hover { color: var(--text); }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.bar__nav a:hover::after { transform: scaleX(1); }
.bar .btn--small { margin-left: auto; height: 42px; padding: 0 18px; border-radius: 11px; }
.bar .btn--small svg { width: 16px; height: 16px; }
body.is-watching .bar { transform: translate(-50%, -150%); }

/* ---------- hero: the reel, blurred, behind a centred title */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: #000 url("/assets/video/reel-bg-poster.jpg") center / cover no-repeat; }
.hero__bg, .hero__reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg { transform: scale(1.06); }   /* the blur is baked in; this keeps its softened edges out of view */
.hero__reel { opacity: 0; transition: opacity 0.9s var(--ease); }
body.is-sharp .hero__reel { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(5, 5, 6, 0.22) 0%, rgba(5, 5, 6, 0.42) 65%, rgba(5, 5, 6, 0.66) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.45) 0%, rgba(5, 5, 6, 0) 20%, rgba(5, 5, 6, 0) 72%, var(--bg) 100%);
  transition: opacity 0.8s var(--ease);
}
.hero__grain {
  position: absolute; inset: -50%; opacity: 0.05; pointer-events: none;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px var(--pad) 100px; text-align: center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.chips { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px; border-radius: 999px;
  background: rgba(16, 16, 20, 0.42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  font-size: 14px; color: rgba(244, 245, 247, 0.78);
}
.chips b { color: var(--text); font-weight: 650; }
.hero__title { margin: 0; }
.hero__title img { width: min(80vw, 800px); height: auto; filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.45)); }
.hero__lede { margin: 30px auto 0; max-width: 50ch; font-size: clamp(16px, 1.45vw, 20px); color: rgba(244, 245, 247, 0.86); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__actions .btn--ghost { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__note { margin: 20px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(244, 245, 247, 0.62); }
.hero__note svg { width: 13px; height: 13px; opacity: 0.85; }
.hero__next {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 16, 20, 0.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: var(--text-2); transition: color 0.2s, background 0.2s, opacity 0.5s var(--ease);
}
.hero__next:hover { color: var(--text); background: rgba(40, 40, 46, 0.6); }
.hero__next svg { width: 16px; height: 16px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }

/* the live caption */
.cue {
  position: absolute; right: var(--pad); bottom: 36px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px;
  width: min(300px, 40vw);
  font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.cue.is-on { opacity: 1; }
.cue__count { color: var(--text-3); }
.cue__label { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.3s; }
.cue__track { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.cue__fill { display: block; height: 100%; width: 0; background: var(--accent); }

/* watch mode: the reel alone, in focus */
.exit {
  position: absolute; top: 24px; right: var(--pad); z-index: 2;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(5, 5, 6, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
body.is-watching { overflow: hidden; }
body.is-watching .hero__content { opacity: 0; transform: scale(0.98); pointer-events: none; }
body.is-watching .hero__next { opacity: 0; pointer-events: none; }
body.is-watching .hero__shade { opacity: 0.2; }
body.is-watching .exit { opacity: 1; pointer-events: auto; }
body.is-watching .cue { bottom: 32px; }

/* ---------- sections */
.section { position: relative; padding: clamp(96px, 14vw, 180px) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--bg-2); aspect-ratio: 16 / 10; }
.tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.2s var(--ease), filter 0.6s var(--ease); filter: saturate(0.95); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 45%); }
.tile figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; }
.tile figcaption span { font: 800 italic 22px/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.tile figcaption em { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.tile:hover img { transform: scale(1.05); filter: saturate(1.05); }

.section--split { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__media { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 26px; }
.points li { padding-top: 22px; border-top: 1px solid var(--line); }
.points h3 { margin: 0 0 6px; font: 600 16px/1.3 var(--sans); }
.points p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.section--numbers { padding-top: 0; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: 44px 0 40px; display: grid; gap: 12px; }
.num + .num { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.num__v { font: 800 italic clamp(48px, 7vw, 96px)/0.9 var(--display); font-stretch: 125%; letter-spacing: -0.03em; }
.num__k { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }

.section--download { text-align: center; }
.dl { max-width: 760px; margin: 0 auto; }
.dl__mark { width: 120px; height: auto; margin: 0 auto 30px; opacity: 0.95; }
.dl .lede { margin-left: auto; margin-right: auto; }
.specs { margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; text-align: left; border-top: 1px solid var(--line); }
.specs div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 24px; }
.specs dt { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 15px; color: var(--text); }
.note { margin: 28px auto 0; max-width: 52ch; font-size: 13.5px; color: var(--text-3); }
.note b { color: var(--text-2); font-weight: 600; }

.foot { padding: 64px var(--pad) 48px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 10px; text-align: center; }
.foot__mark { width: 40px; height: auto; opacity: 0.45; }
.foot p { margin: 0; font-size: 13px; color: var(--text-3); }
.foot__fine { max-width: 60ch; }

/* ---------- credits */
.credits .section__head { margin-bottom: 0; }
.credits__group { margin-top: clamp(56px, 7vw, 96px); }
.credits__title { margin: 0 0 22px; font: 800 italic clamp(22px, 2.2vw, 30px)/1.1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.credits__by { margin: -8px 0 22px; color: var(--text-2); font-size: 15px; }
.credit p a, .credits__by a, .notes a, .foot a, .dl__credit a {
  color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px; transition: text-decoration-color 0.2s, color 0.2s;
}
.credit p a:hover, .credits__by a:hover, .notes a:hover, .foot a:hover, .dl__credit a:hover { text-decoration-color: var(--accent); }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.credit { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.credit h3 { margin: 0; font: 600 16px/1.3 var(--sans); }
.credit p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.credit .credit__based { font-size: 13.5px; color: var(--text-3); }
.lic {
  justify-self: start; margin-top: 4px; padding: 6px 9px; border-radius: 6px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--text-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: color 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.lic:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.credit-list--compact .credit { grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.credit-list--compact .lic { margin-top: 0; }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.notes h3 { margin: 0 0 6px; font: 600 16px/1.3 var(--sans); }
.notes p { margin: 0; color: var(--text-2); font-size: 15px; }
.dl__credit { margin: 14px auto 0; max-width: 60ch; font-size: 13.5px; color: var(--text-3); }
.foot a { color: var(--text-2); }

/* ---------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- small screens */
@media (max-width: 900px) {
  .bar__nav { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .section--split { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .num:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cue { left: var(--pad); right: auto; bottom: 22px; width: min(260px, 70vw); display: none; }
  body.is-watching .cue { display: grid; }
  .hero__title img { width: 86vw; }
}
@media (max-width: 700px) {
  .notes, .credit-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(odd) { padding-right: 0; }
  .btn { height: 48px; padding: 0 20px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .chips li { height: 32px; padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__grain, .hero__next svg { animation: none; }
}
