:root {
  /* The page is a lit paper studio — never let auto-dark repaint it */
  color-scheme: only light;

  /* Warm studio-paper tones pulled from the footage backdrop */
  --paper: #d8d4cc;
  --ink: #2b2721;
  --ink-soft: #47423b;
  --ink-dim: rgba(43, 39, 33, 0.6);
  --hairline: rgba(43, 39, 33, 0.16);
  --light: #ece9e3;
  --light-dim: rgba(236, 233, 227, 0.62);
  --steel-dark: #1d1f22;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --grot: "Archivo", system-ui, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;

  --pad-inline: clamp(20px, 4.5vw, 52px);
  --measure: 1140px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--grot);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

/* ---- Shared kit ------------------------------------------------------- */

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--light);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip:focus-visible {
  top: 16px;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.eyebrow--light {
  color: var(--light-dim);
}

.section-head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}

.section-title {
  margin: 0 0 44px;
  font-family: var(--grot);
  font-weight: 600;
  font-stretch: 98%;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}

/* Frosted glass panels */
.glass {
  position: relative;
  overflow: hidden;
  background: rgba(250, 249, 246, 0.16);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  box-shadow:
    0 12px 32px rgba(30, 28, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.2) 50%, transparent 58%);
}

/* Faint crease-pattern field behind the paper sections; the glass panels
   frost it, which is what makes them read as glass. */
.creased {
  position: relative;
}

.creased::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(24deg, rgba(110, 104, 94, 0.09) 0 1px, transparent 1px 130px),
    repeating-linear-gradient(-32deg, rgba(110, 104, 94, 0.07) 0 1px, transparent 1px 170px),
    repeating-linear-gradient(78deg, rgba(110, 104, 94, 0.05) 0 1px, transparent 1px 210px);
}

.creased > * {
  position: relative;
}

/* Scroll-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 100ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- Top bar ---------------------------------------------------------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px var(--pad-inline);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

.topbar__mark {
  pointer-events: auto;
  font-family: var(--grot);
  font-weight: 700;
  font-stretch: 118%;
  font-size: 15px;
  letter-spacing: 0.34em;
  text-decoration: none;
  color: inherit;
}

.topbar__mark:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.topbar__status {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .topbar__status {
    display: none;
  }
}

/* ---- Opening film ----------------------------------------------------- */

.film {
  position: relative;
  height: 240vh;
}

.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  background: var(--paper);
}

.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screens no wider than the film's native 1280px: scale to fit the whole
   frame and sink it toward the lower half — the letterbox above becomes
   the intro's room instead of dead space. */
@media (max-width: 1280px) {
  .film__video {
    object-fit: contain;
    object-position: center 64%;
  }
}

/* ---- Intro — informative before any scroll ---------------------------- */

.film__intro {
  position: absolute;
  inset: 0 0 auto;
  margin-inline: auto;
  max-width: var(--measure);
  padding: clamp(72px, 11vh, 120px) var(--pad-inline) 0;
  pointer-events: none;
}

.film__intro-eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.film__intro-name {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 280;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(216, 212, 204, 0.9);
}

.film__intro-line {
  margin: 0;
  max-width: 34ch;
  font-family: var(--grot);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-shadow:
    0 1px 10px rgba(216, 212, 204, 0.95),
    0 0 22px rgba(216, 212, 204, 0.8);
}

@media (prefers-reduced-motion: no-preference) {
  .film__intro > * {
    opacity: 0;
    transform: translateY(14px);
    animation: intro-in 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }

  .film__intro > *:nth-child(2) { animation-delay: 0.12s; }
  .film__intro > *:nth-child(3) { animation-delay: 0.24s; }
}

@keyframes intro-in {
  to { opacity: 1; transform: none; }
}

/* Soft edge grade so HUD text sits legibly on the light footage */
.film__grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(216, 212, 204, 0.6), transparent 20%),
    linear-gradient(to bottom, rgba(216, 212, 204, 0.35), transparent 15%);
}

/* Glass card that rises in as the film settles (driven by JS) */
.film__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16vh;
  margin-inline: auto;
  width: min(520px, calc(100% - 40px));
  padding: 30px 34px 26px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.film__panel-line {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
}

.film__panel-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* On narrow screens the contained video sits low and the JS panel would
   float over its middle — instead the intro itself becomes the glass
   card, floating on the creased letterbox above the film. */
@media (max-width: 820px) {
  .film__panel {
    display: none;
  }

  /* Creases on the stage's letterbox paper give the glass something
     to frost. Positioned children (the video) still paint above. */
  .film__stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      repeating-linear-gradient(24deg, rgba(110, 104, 94, 0.09) 0 1px, transparent 1px 130px),
      repeating-linear-gradient(-32deg, rgba(110, 104, 94, 0.07) 0 1px, transparent 1px 170px),
      repeating-linear-gradient(78deg, rgba(110, 104, 94, 0.05) 0 1px, transparent 1px 210px);
  }

  .film__intro {
    inset: auto 16px auto 16px;
    top: calc(58px + 2svh);
    padding: 24px 22px 22px;
    overflow: hidden;
    background: rgba(250, 249, 246, 0.16);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    box-shadow:
      0 12px 32px rgba(30, 28, 24, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .film__intro::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.2) 50%, transparent 58%);
  }
}

.film__hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.film__timecode {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(14px, 2.5vw, 32px);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.film__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.5vw, 32px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
  transition: opacity 0.6s ease;
}

.film__cue--hidden {
  opacity: 0;
}

.film__cue-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.film__cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink-dim), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .film__cue-line {
    animation: cue-drop 2.2s ease-in-out infinite;
  }
}

@keyframes cue-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Statement -------------------------------------------------------- */

.statement {
  background: var(--paper);
  padding: clamp(110px, 16vh, 180px) 0;
}

.statement__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}

.statement__display {
  margin: 0 0 34px;
  max-width: 14ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 280;
  font-size: clamp(2.9rem, 6.5vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.statement__body {
  margin: 0;
  max-width: 46ch;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---- Coming — three glass cards --------------------------------------- */

.coming {
  background: linear-gradient(180deg, var(--paper), #c7c7c4);
  padding: clamp(96px, 14vh, 150px) 0 clamp(110px, 15vh, 170px);
}

.coming__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--pad-inline);
  max-width: var(--measure);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.coming__card {
  padding: 26px 24px 30px;
}

/* The first card is still paper; the last is nearly machined. */
.coming__card:nth-child(1) {
  border-style: dashed;
  border-color: rgba(102, 95, 84, 0.6);
  background: rgba(224, 214, 196, 0.26);
}

.coming__card:nth-child(3) {
  background: rgba(240, 244, 246, 0.22);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 16px 40px rgba(30, 28, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Each panel catches the light differently */
.coming__card:nth-child(2)::after {
  transform: translateX(22%);
}

.coming__card:nth-child(3)::after {
  transform: translateX(-20%);
}

.coming__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}

.coming__name {
  margin: 14px 0 10px;
  font-family: var(--grot);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.005em;
}

.coming__copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .coming__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* ---- Closer — the metal world ----------------------------------------- */

.closer {
  background: linear-gradient(180deg, #c7c7c4 0%, #55575a 30%, #26282b 62%, var(--steel-dark) 100%);
  padding: clamp(130px, 20vh, 220px) 0 clamp(120px, 18vh, 200px);
  text-align: center;
}

.closer__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}

.closer__display {
  margin: 0 auto 30px;
  max-width: 17ch;
  font-family: var(--grot);
  font-weight: 700;
  font-stretch: 116%;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.chrome-text {
  background: linear-gradient(100deg, #e9eae8 0%, #b4b6b5 26%, #f6f7f5 50%, #8d908f 74%, #d9dbd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closer__body {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(231, 229, 223, 0.78);
}

.closer__note {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 34px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  border: 1px solid rgba(236, 235, 230, 0.42);
  border-radius: 6px;
}

.closer__note--link {
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.closer__note--link:hover {
  border-color: rgba(236, 235, 230, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.closer__note--link:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 4px;
}

/* ---- Footer ----------------------------------------------------------- */

.footer {
  background: #17191b;
  color: var(--light-dim);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 30px var(--pad-inline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
  }
}

/* ---- Reduced motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
