/* =========================================================
   Future Playing Cards — collector's-plate edition
   Palette sampled from the deck itself:
     violet  #30246c  (the bolt on the tuck box)
     crimson #901818  (the diamond pips)
   ========================================================= */

:root {
  --ink:        #100f14;
  --ink-soft:   #1c1a24;
  --violet:     #30246c;
  --violet-lit: #6a58cf;
  --crimson:    #901818;
  --paper:      #f6f3ee;
  --paper-2:    #ece7de;
  --white:      #ffffff;
  --muted:      #7d786f;
  --line:       #d8d2c7;

  --radius: 4px;
  --max: 1180px;
  --header-h: 60px;
  /* notch / status-bar allowance — the page opts into viewport-fit=cover,
     so the header must reserve it or it sits under the status bar */
  --safe-top: env(safe-area-inset-top, 0px);
  --header-total: calc(var(--header-h) + var(--safe-top));

  /* Fluid rhythm */
  --gut:   clamp(20px, 5vw, 56px);
  --stack: clamp(48px, 8vw, 110px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Questrial", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (min-width: 900px) { :root { --header-h: 72px; } }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection { background: var(--violet); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--violet-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--white);
  font-family: var(--font-mono); font-size: .78rem;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(.66rem, 1.7vw, .74rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 clamp(16px, 3vw, 22px);
}
.eyebrow svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.eyebrow--light { color: rgba(255,255,255,.82); }

.display {
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.022em;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 14px clamp(26px, 5vw, 38px);
  font-size: clamp(.92rem, 2.4vw, 1rem);
  letter-spacing: .05em;
  /* The hover fill is painted as a background layer, not a pseudo-element:
     button labels are bare text nodes, so an ::after overlay would either sit
     behind the opaque --btn-bg (invisible fill, white-on-white text) or cover
     the label entirely. */
  background-color: var(--btn-bg);
  background-image: linear-gradient(var(--violet), var(--violet));
  background-repeat: no-repeat;
  /* border-box origin, or the fill stops at the padding edge and the 1px
     transparent border leaks a ring of --btn-bg around the hover state.
     The extra 1px bleed on every edge covers rounding: at fractional
     border-box sizes the gradient rasterises a hair short of the colour
     fill and leaves a white line along the bottom. overflow:hidden and the
     pill radius clip the bleed back. */
  background-origin: border-box;
  background-position: 50% calc(100% + 1px);
  background-size: calc(100% + 2px) 0%;
  color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              color .3s var(--ease), background-size .45s var(--ease);
}
.btn > * { position: relative; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--dark  { --btn-bg: var(--ink);   --btn-fg: var(--white); }
.btn--ghost { --btn-bg: transparent;  --btn-fg: var(--white); border-color: rgba(255,255,255,.45); }

@media (hover: hover) {
  .btn:hover, .btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16,15,20,.24);
    color: var(--white);
    background-size: calc(100% + 2px) calc(100% + 2px);
  }
  .btn--ghost:hover { border-color: transparent; }
}
.btn:active { transform: translateY(-1px); }

/* ---------- Scroll progress (top hairline) ---------- */
.progress {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: 2px; background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--violet-lit) 55%, var(--crimson));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Desktop section rail ---------- */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    position: fixed; z-index: 55;
    right: max(18px, env(safe-area-inset-right));
    top: 50%; transform: translateY(-50%);
    display: block;
  }
  .rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .rail a {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 7px 4px;
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
    color: var(--muted); opacity: .66;
    transition: opacity .3s var(--ease), color .3s var(--ease);
  }
  .rail__t {
    text-transform: uppercase;
    max-width: 0; overflow: hidden; white-space: nowrap;
    transition: max-width .45s var(--ease);
  }
  .rail__n { position: relative; padding-right: 22px; }
  .rail__n::after {
    content: ""; position: absolute; right: 0; top: 50%;
    width: 14px; height: 1px; background: currentColor;
    transform-origin: 100% 50%; transform: scaleX(.55);
    transition: transform .4s var(--ease);
  }
  .rail a:hover, .rail a.is-active { opacity: 1; color: var(--ink); }
  .rail a:hover .rail__t, .rail a.is-active .rail__t { max-width: 90px; }
  .rail a.is-active { color: var(--violet); }
  .rail a:hover .rail__n::after, .rail a.is-active .rail__n::after { transform: none; }

  /* rail flips to light type over the dark plates */
  .rail.on-dark a { color: rgba(255,255,255,.75); }
  .rail.on-dark a:hover, .rail.on-dark a.is-active { color: var(--white); }

  /* step aside rather than straddle the footer edge */
  .rail { transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .rail.is-hidden { opacity: 0; pointer-events: none; transform: translate(14px, -50%); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 70;
  height: var(--header-total);
  padding-top: var(--safe-top);
  color: var(--white);
  background: linear-gradient(180deg, rgba(16,15,20,.72), rgba(16,15,20,.28));
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: rgba(255,255,255,.12); opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(16,15,20,.9);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header.is-stuck::after { opacity: 1; }

.header__inner {
  max-width: 1400px; height: 100%; margin: 0 auto;
  padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right));
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
  width: 18px; height: 18px; fill: var(--violet-lit); flex: none;
  transition: transform .6s var(--ease);
}
@media (hover: hover) { .logo:hover .logo__mark { transform: rotate(72deg) scale(1.12); } }
.logo__text {
  font-size: clamp(.95rem, 3.4vw, 1.16rem);
  letter-spacing: .04em; white-space: nowrap;
}
.logo__text em { font-style: normal; opacity: .62; }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: clamp(18px, 2.2vw, 32px); margin-left: 12px; }
  .nav a {
    position: relative; padding: 4px 0;
    font-size: .95rem; letter-spacing: .03em; opacity: .82;
    transition: opacity .25s var(--ease);
  }
  .nav a::after {
    content: ""; position: absolute; inset: auto 0 0; height: 1px;
    background: var(--violet-lit);
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .4s var(--ease);
  }
  .nav a:hover { opacity: 1; }
  .nav a:hover::after, .nav a.is-active::after { transform: none; }
  .nav a.is-active { opacity: 1; }
}

.header__icons { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-width: 44px; min-height: 44px; padding: 10px;
  background: none; border: 0; color: inherit;
  font-family: inherit; font-size: .92rem; letter-spacing: .04em;
  cursor: pointer; border-radius: 999px;
  transition: background .25s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .icon-btn:hover { background: rgba(255,255,255,.12); } }

/* hide the decorative header icons on small screens — menu is what matters */
.header__icons .icon-btn:not(.menu-btn) { display: none; }
@media (min-width: 620px) { .header__icons .icon-btn:not(.menu-btn) { display: inline-flex; } }

.menu-btn { padding-inline: 12px; }
.menu-btn__label { display: none; }
@media (min-width: 900px) { .menu-btn__label { display: inline; } }

/* two-line burger that becomes an X */
.burger { position: relative; width: 20px; height: 12px; flex: none; }
.burger i {
  position: absolute; left: 0; right: 0; height: 1.6px;
  background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease), width .4s var(--ease);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { bottom: 0; width: 70%; }
@media (hover: hover) { .menu-btn:hover .burger i:nth-child(2) { width: 100%; } }
.burger.is-x i:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.is-x i:nth-child(2) { bottom: 50%; width: 100%; transform: translateY(50%) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .62s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer__inner {
  height: 100%;
  padding: max(var(--gut), env(safe-area-inset-top)) max(var(--gut), env(safe-area-inset-right))
           max(var(--gut), env(safe-area-inset-bottom)) max(var(--gut), env(safe-area-inset-left));
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer__close { align-self: flex-end; margin: -6px -6px 0 0; }

.drawer__nav {
  margin: auto 0; display: grid;
  gap: clamp(2px, 1vw, 8px);
}
.drawer__nav a {
  display: flex; align-items: baseline; gap: clamp(14px, 4vw, 26px);
  padding: clamp(8px, 1.6vw, 14px) 0;
  font-size: clamp(2rem, 11vw, 3.6rem); line-height: 1.06;
  letter-spacing: -.02em;
  border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer.is-open .drawer__nav a:nth-child(1) { transition-delay: .13s; }
.drawer.is-open .drawer__nav a:nth-child(2) { transition-delay: .19s; }
.drawer.is-open .drawer__nav a:nth-child(3) { transition-delay: .25s; }
.drawer.is-open .drawer__nav a:nth-child(4) { transition-delay: .31s; }
.drawer.is-open .drawer__nav a:nth-child(5) { transition-delay: .37s; }
.drawer.is-open .drawer__nav a:nth-child(6) { transition-delay: .43s; }
.drawer.is-open .drawer__nav a:nth-child(7) { transition-delay: .49s; }
.drawer__n {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .16em; color: var(--violet-lit); flex: none;
}
@media (hover: hover) { .drawer__nav a:hover { color: var(--violet-lit); } }

.drawer__foot {
  display: grid; gap: 8px; padding-top: clamp(18px, 4vw, 28px);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  color: rgba(255,255,255,.6);
}
.stamp-line { display: flex; align-items: center; gap: 9px; margin: 0; text-transform: uppercase; }
.stamp-line svg { width: 12px; height: 12px; fill: var(--violet-lit); }
.drawer__mail { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); justify-self: start; }

/* =========================================================
   HERO
   ========================================================= */
.hero, .cover {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: center;
  color: var(--white);
  overflow: clip;
}
.hero { margin-top: calc(var(--header-total) * -1); }
.hero__media, .cover__media { position: absolute; inset: -12% 0; z-index: -2; }
.hero__media img, .cover__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* lighter than it needs to be for text, because the panel handles that —
     this is now only atmosphere and bottom-edge weight for the scroll cue */
  background:
    radial-gradient(115% 85% at 50% 44%, rgba(16,15,20,.04), rgba(16,15,20,.52) 80%),
    linear-gradient(180deg, rgba(16,15,20,.46), rgba(48,36,108,.14) 46%, rgba(16,15,20,.7));
}
/* fine grain for depth — pure CSS, no asset */
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) .5px, transparent .6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  width: 100%; max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--header-total) + clamp(48px, 12vh, 120px)) var(--gut) clamp(110px, 18vh, 160px);
  text-align: center;
}

/* Once the panel is dismissed the copy is on bare photography, which measured
   1.5:1 against the brightest pixel behind the headline. This edgeless pool of
   shade restores usable contrast without reinstating anything box-shaped —
   it dims the middle of the shot rather than drawing a card around the text. */
.hero__content::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .65s var(--ease);
  background: radial-gradient(62% 54% at 50% 41%,
    rgba(9, 8, 14, .80), rgba(9, 8, 14, .66) 54%, rgba(9, 8, 14, .30) 74%, rgba(9, 8, 14, 0) 88%);
}
.hero__content.is-bare::before { opacity: 1; }

/* The copy rides on its own plate rather than bare photography — it keeps
   the type legible over any part of the shot, and lets the scrim stay light
   enough to actually see the deck. Shaped like a card: soft corners, a
   hairline edge, and an inset rule standing in for a card's inner border. */
.hero__panel {
  position: relative;
  /* keeps the surface layer (::after, z-index -1) behind the copy instead of
     dropping out the back of the hero. The panel's own backdrop-filter still
     samples the page, since isolation only makes a backdrop root for children. */
  isolation: isolate;
  padding: clamp(26px, 6vw, 52px) clamp(20px, 5vw, 56px) clamp(28px, 6vw, 54px);
  border-radius: clamp(16px, 3.4vw, 26px);
  transition: -webkit-backdrop-filter .65s var(--ease), backdrop-filter .65s var(--ease);
}

/* The card surface lives on its own layer so it can fade out on dismiss.
   Painting it on .hero__panel directly would make the background
   un-animatable — you cannot interpolate a gradient to `none`. */
.hero__panel::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(14, 13, 20, .70), rgba(14, 13, 20, .84));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    0 44px 90px -34px rgba(0, 0, 0, .78),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: opacity .65s var(--ease);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hero__panel {
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
  }
  .hero__panel::after {
    background: linear-gradient(180deg, rgba(14, 13, 20, .56), rgba(14, 13, 20, .72));
  }
}
/* inset rule, standing in for a card's inner border */
.hero__panel::before {
  content: "";
  position: absolute; inset: clamp(7px, 1.4vw, 11px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: clamp(9px, 2.2vw, 17px);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}

/* ---- Dismiss control ----
   Hidden until JS arms it a beat after load, so it doesn't compete with the
   hero's staggered entrance. visibility:hidden also keeps it out of the tab
   order and the accessibility tree until it is genuinely available. */
.hero__dismiss {
  position: absolute; z-index: 2;
  top: clamp(9px, 1.5vw, 15px);
  right: clamp(9px, 1.5vw, 15px);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: scale(.8);
  transition: opacity .55s var(--ease), transform .55s var(--ease),
              background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}
.hero__dismiss svg { width: 16px; height: 16px; }
.hero__panel.is-armed .hero__dismiss { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .hero__dismiss:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
    color: var(--white);
  }
}
.hero__dismiss:active { transform: scale(.92); }

/* ---- Dismissed ----
   Only the surface goes. Padding is untouched, so the copy and buttons do
   not move a pixel. The type picks up a shadow because it is now sitting on
   bare photography, which is what the panel was compensating for. */
.hero__panel.is-dismissed { backdrop-filter: blur(0px) saturate(1); -webkit-backdrop-filter: blur(0px) saturate(1); }
.hero__panel.is-dismissed::after,
.hero__panel.is-dismissed::before { opacity: 0; }
.hero__panel.is-dismissed .hero__dismiss {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hero__panel.is-dismissed .eyebrow,
.hero__panel.is-dismissed .hero__title,
.hero__panel.is-dismissed .hero__sub {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 4px 18px rgba(0, 0, 0, .8), 0 0 44px rgba(0, 0, 0, .6);
}
.hero__panel.is-dismissed .eyebrow,
.hero__panel.is-dismissed .hero__sub { color: #fff; }
/* centred eyebrows stack their mark above the label so a wrapped
   two-line label stays optically centred instead of hanging off the icon */
.hero__content .eyebrow,
.cover__content .eyebrow {
  flex-direction: column; gap: 10px;
  justify-content: center; text-align: center;
  text-wrap: balance;
}
@media (min-width: 760px) {
  .hero__content .eyebrow,
  .cover__content .eyebrow { flex-direction: row; gap: 10px; }
}

.hero__title {
  font-size: clamp(2.55rem, 11.5vw, 6.4rem);
  font-weight: 400; line-height: .96; letter-spacing: -.03em;
  margin: 0 0 clamp(18px, 3vw, 26px);
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(1.02rem, 3.6vw, 1.32rem);
  color: rgba(255,255,255,.86);
  margin: 0 auto clamp(30px, 5vw, 42px);
  max-width: 42ch;
  text-wrap: pretty;
}
/* the authored line break only helps once there's room for it */
@media (max-width: 759px) {
  .hero__sub br { display: none; }
  .hero__sub { max-width: 30ch; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.scroll-cue {
  position: absolute; z-index: 2;
  left: 50%; bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.scroll-cue__line {
  width: 1px; height: clamp(34px, 7vh, 56px);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.75));
  transform-origin: 50% 0;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  position: relative; z-index: 3;
  background: var(--ink); color: var(--white);
  border-block: 1px solid rgba(255,255,255,.1);
  padding: clamp(11px, 2.4vw, 15px) 0;
  overflow: hidden;
  --ticker-dur: 34s;
}
/* the marquee runs on the `translate` longhand so JS can own `transform`
   (the scroll-velocity lean) without clobbering the animation */
.ticker__track {
  display: flex; width: max-content;
  animation: ticker var(--ticker-dur) linear infinite;
  will-change: translate, transform;
  transition: transform .5s var(--ease-out);
}
.ticker__group {
  display: flex; align-items: center; gap: clamp(18px, 4vw, 34px);
  padding-right: clamp(18px, 4vw, 34px);
}
.ticker b {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(.68rem, 2.1vw, .8rem);
  letter-spacing: .26em; text-transform: uppercase;
  white-space: nowrap;
}
.ticker svg { width: 11px; height: 11px; fill: var(--violet-lit); flex: none; }
@keyframes ticker { from { translate: 0 0; } to { translate: -50% 0; } }

/* =========================================================
   COVER
   ========================================================= */
.cover { align-items: end; }
.cover__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,15,20,.34) 30%, rgba(16,15,20,.9));
}
.cover__content {
  position: relative;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(90px, 18vh, 160px) var(--gut) clamp(60px, 13vh, 120px);
  text-align: center;
}
/* Soft pool of shade under the cover copy instead of a hard panel — this
   section reads as full-bleed photography, and a card here would fight the
   hero's. Measured: the eyebrow sat at 4.22:1 on the photo without it. */
.cover__content::before {
  content: "";
  position: absolute; inset: 4% -6% -12%;
  z-index: -1; pointer-events: none;
  background: radial-gradient(64% 92% at 50% 62%, rgba(12, 11, 18, .82), rgba(12, 11, 18, 0) 74%);
}
.cover__content .eyebrow { justify-content: center; }
.cover__title {
  font-size: clamp(2.2rem, 9.6vw, 5.2rem);
  font-weight: 400; line-height: 1; letter-spacing: -.028em;
  margin: 0 0 clamp(24px, 4vw, 34px);
  text-wrap: balance;
}

/* =========================================================
   THE DEAL — sticky-stacked plates
   Each plate is dealt on top of the last like a card
   onto a table. Mobile-first: safe single column.
   ========================================================= */
/* ink underlay so every rounded plate corner reveals a dark table */
.deal { position: relative; background: var(--ink); }

/* ---- Phone baseline ----
   Plates scroll naturally so long copy is never clipped, but each one
   still overlaps the last with a rounded lip + cast shadow, so the
   "dealt card" reading survives without a viewport-height straitjacket. */
.plate {
  position: relative;
  z-index: var(--z, 1);
  display: grid; align-items: center;
  padding: clamp(54px, 10vh, 96px) 0;
  background: var(--paper);
  border-radius: clamp(16px, 4.5vw, 26px) clamp(16px, 4.5vw, 26px) 0 0;
  box-shadow: 0 -20px 44px -18px rgba(16, 15, 20, .42);
  transform-origin: 50% 0;
}

/* ---- The stack ----
   Only engaged where a panel of content genuinely fits the viewport.
   Below this, sticky + overflow:clip would bury the body copy. */
@media (min-width: 900px) and (min-height: 700px) {
  .plate {
    position: sticky;
    top: var(--header-total);
    min-height: calc(100svh - var(--header-total));
    border-radius: clamp(10px, 2vw, 20px) clamp(10px, 2vw, 20px) 0 0;
    box-shadow: 0 -26px 60px -22px rgba(16, 15, 20, .4);
    overflow: clip;
  }
}

/* as the next plate is dealt over this one, this one recedes into shadow.
   --cover (0 -> 1) is written by app.js */
.plate::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: var(--ink); pointer-events: none;
  opacity: calc(var(--cover, 0) * 0.34);
}

.plate--paper  { background: var(--paper); }
.plate--paper2 { background: var(--paper-2); }
.plate--ink {
  background: var(--ink); color: var(--white);
  border-top-color: rgba(255,255,255,.14);
}
.plate--ink .plate__num,
.plate--ink .eyebrow { color: var(--violet-lit); }
.plate--ink .plate__sub { color: rgba(255,255,255,.74); }
.plate--ink .plate__desc p { color: rgba(255,255,255,.78); }

.plate__inner {
  width: 100%; max-width: var(--max);
  margin: 0 auto;
  padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right));
  display: grid; gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

@media (min-width: 900px) {
  .plate__inner { grid-template-columns: 1fr 1fr; }
  .plate--flip .plate__media { order: 2; }
  .plate--flip .plate__body  { order: 1; }
}

/* ---- Enlarged plate art ----
   Growing this art is two separate problems. Landscape cut-outs are
   width-bound by their grid column and need a wider column; portrait art
   is height-bound by max-height and needs a taller ceiling. Raising one
   does nothing for the other.

   A grown plate breaks the shared --max container and takes an asymmetric
   split, with --ratio sizing whichever column holds the art. Flipped
   plates put the art second, so the wide column swaps sides. */
.plate--grow { padding-block: clamp(28px, 4.5vh, 64px); }

@media (min-width: 900px) {
  .plate--grow .plate__inner {
    max-width: min(1400px, 100%);
    grid-template-columns: var(--ratio, 1.35fr) 1fr;
  }
  .plate--grow.plate--flip .plate__inner {
    grid-template-columns: 1fr var(--ratio, 1.35fr);
  }

  /* Ceilings track viewport height, not a fixed px. A plate in the sticky
     stack has to fit one viewport or its copy strands below the fold.
     88svh - 60px keeps ~40px of clearance under the panel at every height
     from 768 up; a flat px cap silently overflowed 1366x768. */
  .plate--grow .plate__media img { max-height: min(calc(88svh - 60px), 780px); }
}

/* Framed art is height-bound and carries a caption inside the figure, so it
   gets its own ceiling — 1.3x the ungrown clamp(260px, 52svh, 600px).
   Doubled up on .plate__media to outrank the equally-specific cut-out rule
   in the max-width block below, which would otherwise win on source order. */
.plate--grow .plate__media.plate__media--framed img {
  max-height: clamp(340px, 67.6svh, 780px);
}

/* Single column: the art already spans the content width, so width grows
   by bleeding edge to edge, and portrait art gains from a taller ceiling.
   overflow-x:clip pins the bleed and absorbs subpixel rounding. */
@media (max-width: 899px) {
  .plate--grow { overflow-x: clip; overflow-y: visible; }
  .plate--grow .plate__media { margin-inline: calc(var(--gut) * -1); }
  .plate--grow .plate__media img { max-height: clamp(300px, 65svh, 680px); }
}

/* ----- Plate media ----- */
.plate__media { margin: 0; position: relative; }
.plate__media img {
  width: 100%;
  max-height: clamp(230px, 50svh, 520px);
  object-fit: contain; object-position: center;
}
/* inside the stack the art has to share one viewport with the copy */
@media (min-width: 900px) and (min-height: 700px) {
  .plate__media img { max-height: min(62svh, 600px); }
}

.plate__media--cutout img {
  filter: drop-shadow(0 30px 40px rgba(16,15,20,.26));
}
.plate--ink .plate__media--cutout img {
  filter: drop-shadow(0 30px 44px rgba(0,0,0,.6));
}

.plate__media--framed img {
  max-height: clamp(260px, 52svh, 600px);
  width: auto; max-width: 100%; margin-inline: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -18px rgba(16,15,20,.34);
  /* wipe reveal */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s var(--ease-out);
}
.plate__media--framed.is-in img { clip-path: inset(0 0 0 0); }

.plate__cap {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}

/* ----- Plate body ----- */
.plate__num {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(.68rem, 2vw, .76rem);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 clamp(12px, 2.4vw, 18px);
}
.plate__num span { opacity: .5; }

.plate__title {
  font-size: clamp(1.95rem, 8vw, 3.4rem);
  font-weight: 400; line-height: 1.02; letter-spacing: -.026em;
  margin: 0 0 clamp(10px, 2vw, 16px);
  text-wrap: balance;
}
.plate__sub {
  font-size: clamp(1.05rem, 3.4vw, 1.32rem);
  margin: 0 0 clamp(16px, 3vw, 24px);
  color: var(--ink); opacity: .78;
}
.plate__desc p {
  font-size: clamp(.98rem, 2.9vw, 1.08rem);
  color: #34313a;
  margin: 0 0 clamp(12px, 2vw, 18px);
  max-width: 46ch;
}
.plate__desc + .btn { margin-top: clamp(8px, 2vw, 14px); }

/* ----- Edition counter ----- */
.edition {
  position: relative;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 22px);
  margin: clamp(6px, 2vw, 14px) 0 clamp(20px, 4vw, 30px);
}
.edition__num {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(3.4rem, 15vw, 5.6rem);
  line-height: .86; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--ink) 25%, var(--violet) 75%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.edition__meta {
  display: grid; font-family: var(--font-mono);
  font-size: clamp(.66rem, 2vw, .74rem);
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
}
.edition__meta b { font-weight: 500; color: var(--crimson); }
.edition__meta i { font-style: normal; color: var(--muted); }

.edition__ring {
  position: absolute; right: 0; top: 50%;
  width: clamp(88px, 22vw, 120px); aspect-ratio: 1;
  transform: translateY(-50%);
  fill: var(--muted); opacity: .55;
  animation: spin 26s linear infinite;
  pointer-events: none;
}
.edition__ring text {
  font-family: var(--font-mono);
  font-size: 8.4px; letter-spacing: .13em; text-transform: uppercase;
}
@media (max-width: 560px) { .edition__ring { display: none; } }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* =========================================================
   THE FILM — full-bleed video panel
   Sits between the two sticky stacks. The player is sized to
   cover the panel the way object-fit:cover would, which an
   iframe cannot do on its own: the 16:9 stage overshoots
   whichever axis is short and the panel clips the rest.
   ========================================================= */
.film {
  /* the same viewport budget the plates take, so anchoring to #film lands the
     whole panel — controls included — inside the visible area */
  --film-h: max(calc(100svh - var(--header-total)), 420px);
  position: relative; z-index: 6;
  height: var(--film-h);
  background: #05050a;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(16px, 4.5vw, 26px) clamp(16px, 4.5vw, 26px) 0 0;
  box-shadow: 0 -20px 44px -18px rgba(16, 15, 20, .42);
}
.film__stage {
  position: absolute; top: 50%; left: 50%;
  width:  max(100%, calc(var(--film-h) * 16 / 9));
  height: max(var(--film-h), calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  /* the poster stands in for the film until the player is built, and sits on
     the stage rather than the panel so it is never seen framing itself */
  background: #05050a var(--film-poster, none) center / cover no-repeat;
}
.film__stage iframe,
.film__fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

.film__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,5,10,.66), rgba(5,5,10,0) 36%,
                            rgba(5,5,10,0) 64%, rgba(5,5,10,.66));
  transition: opacity .8s var(--ease);
}
.film.is-playing .film__scrim { opacity: .45; }

.film__ui {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  width: 100%; max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--header-total) + clamp(20px, 4vh, 44px)) var(--gut) 0;
  color: var(--white);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.film.is-playing .film__ui {
  opacity: 0; transform: translateY(-14px); pointer-events: none;
}
.film__title {
  font-size: clamp(2rem, 8vw, 4.2rem);
  font-weight: 400; line-height: 1; letter-spacing: -.028em;
  margin: 0; text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .55);
}

/* ----- Film controls ----- */
.film__ctrl {
  position: absolute; z-index: 3;
  right: max(var(--gut), env(safe-area-inset-right));
  bottom: max(calc(var(--gut) * .8), env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
}
.film__btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px; padding: 9px 18px;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.86);
  background: rgba(16,15,20,.42);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) {
  .film__btn:hover {
    color: var(--white);
    background: rgba(48,36,108,.72);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-2px);
  }
}
.film__btn:active { transform: translateY(0); }

/* the sound bars stand still until there is actually sound coming out */
.film__wave { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.film__wave i {
  width: 2px; height: 3px; background: currentColor; border-radius: 1px;
  transition: height .3s var(--ease);
}
.film__btn[aria-pressed="true"] .film__wave i { animation: filmWave 1s ease-in-out infinite; }
.film__btn[aria-pressed="true"] .film__wave i:nth-child(2) { animation-delay: .18s; }
.film__btn[aria-pressed="true"] .film__wave i:nth-child(3) { animation-delay: .36s; }
@keyframes filmWave {
  0%, 100% { height: 3px; }
  50%      { height: 12px; }
}

/* Autoplay with sound needs a gesture the page has not been given yet, so the
   control asks for one instead of silently failing. */
.film__btn.is-nudge {
  color: var(--white);
  border-color: rgba(255,255,255,.62);
  animation: filmNudge 2.6s var(--ease) infinite;
}
@keyframes filmNudge {
  0%, 68%, 100% { box-shadow: 0 0 0 0 rgba(106, 88, 207, 0); }
  84%           { box-shadow: 0 0 0 7px rgba(106, 88, 207, .28); }
}

@media (prefers-reduced-motion: reduce) {
  .film__btn[aria-pressed="true"] .film__wave i,
  .film__btn.is-nudge { animation: none; }
}

/* ---- Portrait ----
   Covering a tall panel with a 16:9 frame would crop the film to a sliver, so
   here the panel takes the film's shape instead of the other way round, and
   the copy stacks above it: a title laid over a band this short would fight
   both the film and the sticky header. Kept last so it outranks the
   equal-specificity .is-playing rules above. */
@media (max-aspect-ratio: 1 / 1) {
  .film {
    --film-h: auto;
    height: auto;
    padding-block: clamp(28px, 6vh, 56px);
    display: flex; flex-direction: column; gap: clamp(18px, 4vh, 30px);
  }
  .film__stage {
    position: relative; top: auto; left: auto;
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    transform: none;
    order: 2;
  }
  .film__ui,
  .film.is-playing .film__ui {
    position: static; order: 1;
    padding: 0 var(--gut);
    opacity: 1; transform: none; pointer-events: auto;
  }
  .film__ctrl {
    position: static; order: 3;
    padding-inline: var(--gut);
  }
  .film__scrim { display: none; }
}

/* ----- Contact ----- */
.contact { margin-top: clamp(20px, 4vw, 30px); }
.contact__title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 400;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 10px;
}
.contact__title svg { width: 12px; height: 12px; fill: currentColor; }
.contact p { margin: 2px 0; color: #34313a; }
.contact a {
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
@media (hover: hover) { .contact a:hover { color: var(--violet); border-color: var(--violet); } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative; z-index: 20;
  background: var(--ink); color: var(--white);
  padding: clamp(52px, 10vw, 88px) var(--gut)
           calc(clamp(40px, 8vw, 68px) + env(safe-area-inset-bottom));
}
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; justify-items: center; gap: 14px; text-align: center;
}
.footer__mark { width: 22px; height: 22px; fill: var(--violet-lit); }
.footer__brand {
  font-size: clamp(1.2rem, 5vw, 1.6rem); letter-spacing: .05em; margin: 0;
}
.footer__tag {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.footer__social a {
  display: inline-flex; min-width: 46px; min-height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  margin-top: 6px;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.footer__social svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .footer__social a:hover { background: var(--violet); border-color: var(--violet); }
}
/* =========================================================
   REVEAL / SPLIT ANIMATION PRIMITIVES
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word > i {
  display: inline-block; font-style: normal;
  transform: translateY(105%) rotate(3deg);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
[data-split].is-in .word > i { transform: none; }

/* =========================================================
   MOTION / ACCESSIBILITY OPT-OUT
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], .word > i { opacity: 1; transform: none; }
  .plate__media--framed img { clip-path: none; }
  .plate { transform: none !important; }
  .plate::after { opacity: 0 !important; }
  .ticker__track { animation: none; }
  .edition__ring { animation: none; }
  .scroll-cue__line { animation: none; transform: scaleY(1); }
}

/* Landscape phones: let the tall panels collapse to their content */
@media (max-height: 619px) {
  .hero, .cover { min-height: auto; }
  .hero__content { padding-block: calc(var(--header-total) + 64px) 96px; }
}

/* Print */
@media print {
  .site-header, .rail, .progress, .drawer, .cart, .ticker, .scroll-cue { display: none !important; }
  .plate { position: relative; min-height: auto; box-shadow: none; page-break-inside: avoid; }
  body { background: #fff; }
}
