@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050607;
  --bg-2: #10141a;
  --ink: #f4f1ea;
  --muted: #c5ced6;
  --gold: #c8962e;
  --line: rgba(200, 150, 46, 0.45);
  --graphite: #1f2933;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 0.8rem;
  z-index: 6;
}
.skip:focus { top: 0.75rem; color: #111; }

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.wrap {
  width: min(72rem, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(5, 6, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.logo img { display: block; height: 2.4rem; width: auto; }
@media (min-width: 40rem) {
  .logo img { height: 2.8rem; }
}

.nav details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.nav details summary::-webkit-details-marker { display: none; }
.nav ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  text-decoration: none;
  padding: 0.35rem 0;
}
.nav a[aria-current="page"] { color: var(--gold); }
@media (min-width: 52rem) {
  .nav details summary { display: none; }
  .nav details[open] > ul,
  .nav ul {
    display: flex;
    gap: 1.4rem;
    margin: 0;
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: end;
  padding: 12vh 0 8vh;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.kicker {
  margin: 0 0 0.8rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
}
h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.button {
  display: inline-block;
  background: var(--gold);
  color: #14110a;
  text-decoration: none;
  font-weight: 500;
  padding: 0.85rem 1.2rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}
.button:hover { color: #14110a; background: #dbb25a; }
.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.button.ghost:hover { color: var(--gold); }

.rings {
  position: absolute;
  right: -6vw;
  top: 8vh;
  width: min(46rem, 80vw);
  height: auto;
  pointer-events: none;
}
.rings .ring {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-linecap: butt;
}
.rings .core { fill: var(--gold); }

.scene {
  border-top: 1px solid var(--line);
  padding: 12vh 0;
}
.scene-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 60rem) {
  .scene-grid { grid-template-columns: 8rem 1fr auto; align-items: end; }
}
.num {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.9;
  color: var(--gold);
  font-weight: 500;
}
.scene h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.scene p { margin: 0; max-width: 36rem; color: var(--muted); }

.chapter {
  display: grid;
  gap: 1.5rem;
  padding: 14vh 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 60rem) {
  .chapter { grid-template-columns: minmax(14rem, 0.7fr) 1.3fr; gap: 3rem; }
  .chapter-sticky { position: sticky; top: 6.5rem; }
}
.chapter h2 {
  margin: 0.3rem 0 0;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}
.marker {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--gold);
}

.cta-band {
  padding: 12vh 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  margin: 0 0 0.6rem;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.prose h1 { max-width: 18ch; }
.prose h2 { margin-top: 2.2rem; font-weight: 500; }
.prose a { color: var(--gold); }
.note { color: var(--muted); }
.draft {
  background: var(--graphite);
  color: var(--ink);
  margin: 0;
  padding: 0.55rem 0;
  font-weight: 500;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0; list-style: none; }
.legal-links a { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 4rem;
  color: var(--muted);
}
.site-footer p { margin: 0.2rem 0; }
.site-footer .logo { margin-bottom: 1rem; }
.site-footer .logo img { height: 2.2rem; }

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}
.form label { display: grid; gap: 0.35rem; font-size: 0.92rem; }
.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--ink);
  background: #0b0e12;
  border: 1px solid rgba(197, 206, 214, 0.35);
  padding: 0.75rem 0.8rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.totop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  background: var(--graphite);
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.totop:hover { color: var(--gold); }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress {
      animation: grow linear;
      animation-timeline: scroll();
    }
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise 0.9s both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    .rings .ring {
      stroke-dasharray: 220;
      stroke-dashoffset: 220;
      animation: draw 1.5s both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    .rings .core {
      transform-box: fill-box;
      transform-origin: center;
      animation: pop 0.6s both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }
}
.show .reveal,
.show .rings .ring,
.show .rings .core {
  animation: none;
  opacity: 1;
  transform: none;
  stroke-dashoffset: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}
@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fade-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 0.28s ease both; }
::view-transition-new(root) { animation: fade-in 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress { display: none; }
  .reveal, .rings .ring, .rings .core { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

.icon { width: 3rem; height: 3rem; color: #f4f1ea; display: block; }
.stage { height: 180vh; }
.stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
}
.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-pin .wrap { position: relative; z-index: 1; padding-bottom: 12vh; }
.stage-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #050607 0%, rgba(5,6,7,.2) 42%, rgba(5,6,7,.45) 100%);
}
.reel {
  display: grid;
  gap: 1.5rem;
  padding: 10vh max(1.2rem, 6vw);
  border-top: 1px solid var(--line);
}
@media (min-width: 60rem) {
  .reel { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem; }
}
.reel-visual {
  position: relative;
  min-height: 16rem;
  background: #10141a;
  overflow: hidden;
}
.reel-visual video {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
}
.reel-visual .icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(5,6,7,.72);
  padding: 0.45rem;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage-video {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: contain 0% contain 80%;
    }
    .reel-visual {
      animation: unclip linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    .icon {
      stroke-dasharray: 80;
    }
  }
}
@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@keyframes unclip {
  from { clip-path: inset(14% 10% 14% 10%); }
  to { clip-path: inset(0); }
}
