/* ============================================================
   Unchained Music × The Great Escape — Spring 2027, Brighton
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink — sampled from the top edge of the hero video's sky, so the artwork
     joins the page with no seam. Re-sample if the hero video changes. */
  --ink:        #020409;
  --ink-raise:  #060a13;
  --ink-card:   #0b0f1b;
  --line:       #1b2130;
  --line-soft:  #141926;

  --paper:      #f4f2ee;
  --paper-dim:  #a7adbd;
  --paper-mute: #6d7488;

  /* Neon callouts, pulled from the hero frame */
  --magenta:    #ff2e9f;
  --teal:       #14d9d0;
  --amber:      #ffb65c;
  --violet:     #a855f7;

  --font-sans: "Helvetica Neue", "Inter", "SF Pro Display", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --pad:      clamp(1.25rem, 5vw, 6rem);
  --stack:    clamp(5rem, 12vw, 11rem);   /* vertical section rhythm */
  --maxw:     78rem;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.55vw + 0.88rem, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

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

::selection { background: var(--magenta); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Typography primitives ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: flex;
  align-items: center;
  gap: 0.85em;
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: var(--magenta);
  flex: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.35rem, 7vw, 6rem);
  text-transform: uppercase;
  font-weight: 800;
}
.h2 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); text-transform: uppercase; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--paper-dim);
  letter-spacing: -0.015em;
  max-width: 34ch;
}

.hl { color: var(--paper); }
.hl-magenta { color: var(--magenta); }
.hl-teal    { color: var(--teal); }
.hl-amber   { color: var(--amber); }

/* ---------- 4. Layout ---------- */
.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--stack); position: relative; }
.section--raise { background: var(--ink-raise); }

.rule {
  height: 1px;
  background: var(--line-soft);
  border: 0;
}

.section-head {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 62rem) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

/* ============================================================
   5. Reveal engine  (driven by IntersectionObserver in main.js)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--rv-y, 1.75rem), 0);
  transition:
    opacity 0.9s var(--ease) var(--rv-delay, 0s),
    transform 1.05s var(--ease) var(--rv-delay, 0s),
    filter 0.9s var(--ease) var(--rv-delay, 0s);
  filter: blur(var(--rv-blur, 0px));
  /* No will-change here on purpose — there are ~40 of these, and promoting
     them all permanently costs far more than the one-off transition saves. */
}
[data-reveal="in"] {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Word-by-word heading build (words wrapped by main.js) */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;   /* room for descenders inside the mask */
  margin-bottom: -0.06em;
}
.word > i {
  display: inline-block;
  font-style: inherit;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 42ms);
}
[data-reveal="in"] .word > i,
.is-lit .word > i { transform: none; }

/* Vertical hairline that draws itself */
.tick {
  width: 1px;
  background: var(--line);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.1s var(--ease);
}
[data-reveal="in"] .tick { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="in"] {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .word > i { transform: none; transition: none; }
  .tick { transform: scaleY(1); transition: none; }
}

/* ============================================================
   5b. Access gate
   ============================================================ */
/* Locked: hide everything except the gate, before first paint */
html.is-locked body > *:not(#gate) { display: none !important; }
html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
/* Unlocked: the gate never shows at all */
html:not(.is-locked) #gate { display: none; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  background: var(--ink);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease);
}
.gate.is-open {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(14px);
  pointer-events: none;
}

/* Slow magenta bloom behind the lockup */
.gate__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% 42%,
      color-mix(in srgb, var(--magenta) 13%, transparent), transparent 70%),
    radial-gradient(45% 35% at 50% 44%,
      color-mix(in srgb, var(--teal) 7%, transparent), transparent 72%);
  animation: gateGlow 9s var(--ease-io) infinite alternate;
}
@keyframes gateGlow {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.09); }
}

.gate__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
  text-align: center;
  width: 100%;
  max-width: 34rem;
}

/* Each piece drifts up in sequence on load */
.gate__inner > *,
.gate__logos { animation: gateIn 0.95s var(--ease) both; }
.gate__logos { animation-delay: 0.05s; }
.gate__title { animation-delay: 0.28s; }
.gate__hint  { animation-delay: 0.36s; }
.gate__form  { animation-delay: 0.46s; }
.gate__foot  { animation-delay: 0.6s; }
@keyframes gateIn {
  from { opacity: 0; transform: translate3d(0, 1.1rem, 0); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.gate__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(0.5rem, 2vw, 1.25rem);
}
.gate__logo--um { width: clamp(9rem, 26vw, 14rem); }
.gate__logo--mm { width: clamp(6.5rem, 19vw, 10rem); }
.gate__x {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--magenta);
  text-shadow: 0 0 18px color-mix(in srgb, var(--magenta) 65%, transparent);
}

.gate__title {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.gate__hint {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* -- the four digit boxes -- */
.pin {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.6vw, 0.85rem);
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}
.pin__box {
  width: clamp(3.1rem, 8vw, 4rem);
  height: clamp(3.8rem, 9.5vw, 4.9rem);
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  color: var(--paper);
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  caret-color: var(--magenta);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  -moz-appearance: textfield;
}
.pin__box::-webkit-outer-spin-button,
.pin__box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pin__box:focus {
  border-color: var(--magenta);
  background: color-mix(in srgb, var(--magenta) 8%, var(--ink-card));
  box-shadow: 0 0 0 1px var(--magenta), 0 0 2.5rem -0.5rem var(--magenta);
  transform: translateY(-2px);
}
.pin__box.is-filled { border-color: color-mix(in srgb, var(--magenta) 45%, var(--line)); }

.pin.is-wrong { animation: shake 0.5s var(--ease-io); }
.pin.is-wrong .pin__box {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 1px #ff4d4d;
}
@keyframes shake {
  0%, 100%      { transform: translateX(0); }
  15%, 55%      { transform: translateX(-8px); }
  35%, 75%      { transform: translateX(8px); }
  90%           { transform: translateX(-3px); }
}

.pin.is-ok .pin__box {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 0 2.5rem -0.5rem var(--teal);
  transform: translateY(-3px);
}

.gate__msg {
  /* Reserved height keeps the layout still, plus room so the message never
     crowds the boxes — including while they're mid-shake. */
  margin-top: clamp(1.1rem, 2.6vw, 1.6rem);
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.gate__msg.is-error { color: #ff6b6b; }

.gate__foot {
  margin-top: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* The page easing itself in behind the departing gate.
   Scoped to real content only — the fixed-position UI (the nav, which parks at
   translateY(-100%), and the lightbox, which sits at opacity 0) must keep its
   own resting state, or the animation drags it into view and then drops it. */
html.is-revealing body > section,
html.is-revealing body > .band,
html.is-revealing body > footer {
  animation: siteIn 1.1s var(--ease) both;
}
@keyframes siteIn {
  from { opacity: 0; transform: scale(0.988); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gate, .gate__glow, .gate__inner > *, .gate__logos,
  html.is-revealing body > section,
  html.is-revealing body > .band,
  html.is-revealing body > footer { animation: none; transition: none; }
  .gate.is-open { opacity: 0; transform: none; filter: none; }
}

/* ============================================================
   6. Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  /* Deliberately no backdrop-filter: blurring a fixed bar over the whole
     scrolling page is the single most expensive thing this layout could do.
     A near-opaque ink fill reads the same and costs nothing. */
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease), border-color 0.7s var(--ease);
  will-change: transform;
}
.nav.is-shown { transform: none; border-bottom-color: var(--line-soft); }

.nav__mark { height: 0.95rem; width: auto; opacity: 0.95; }
.nav__mark img { height: 100%; width: auto; }

.nav__links {
  display: none;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@media (min-width: 54rem) { .nav__links { display: flex; } }

.nav__links a {
  text-decoration: none;
  color: var(--paper-mute);
  transition: color 0.3s var(--ease);
  position: relative;
  padding-block: 0.25rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--paper); }

.nav__date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* ============================================================
   7. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  background: var(--ink);
  overflow: hidden;
}

/* The artwork is 2.33:1 — wider than any viewport — so it always spans the
   full width and is never cropped or scaled down, at any screen size. The
   spacers below sit it above centre: --hero-lift < 1 pulls it upwards. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink);
  transform-origin: 50% 50%;
  display: flex;
  flex-direction: column;
  --hero-lift: 0.7;
}

.hero__bg video,
.hero__bg img {
  flex: none;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
}

/* Sky above — the video's own top row is --ink, so this joins seamlessly */
.hero__bg::before {
  content: "";
  flex: var(--hero-lift) 1 0;
  min-height: 0;
}

/* Ground below. The artwork's bottom edge is a warm lit promenade (~#231a16),
   so this picks that up and falls away into ink instead of banding. */
.hero__bg::after {
  content: "";
  flex: calc(2 - var(--hero-lift)) 1 0;
  min-height: 0;
  background: linear-gradient(to bottom,
    #1c1512 0%,
    #100e10 26%,
    #07080c 60%,
    var(--ink) 100%);
}

/* Legibility + seam: darken the middle, fade both edges into --ink */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* pool of shade behind the lockup */
    radial-gradient(100% 62% at 50% 30%,
      rgba(2, 4, 9, 0.6) 0%,
      rgba(2, 4, 9, 0.3) 52%,
      rgba(2, 4, 9, 0.62) 100%),
    /* an even wash over the whole frame so the artwork reads as atmosphere
       rather than a crisp photograph, and settles into the page */
    linear-gradient(to bottom,
      var(--ink) 0%,
      rgba(2, 4, 9, 0.4) 16%,
      rgba(2, 4, 9, 0.34) 48%,
      rgba(2, 4, 9, 0.5) 80%,
      rgba(2, 4, 9, 0.9) 100%);
}

.hero__inner {
  /* Anchored from the top rather than centred: the artwork now sits above
     centre, so the lockup needs a fixed berth in the open sky above the
     rooftops instead of drifting with the available height. */
  align-self: start;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(5.5rem, 15vh, 9rem) var(--pad) clamp(2rem, 6vh, 4rem);
  text-align: center;
}

/* --- The lockup: [unchained music] × [THE GREAT ESCAPE] --- */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3.2vw, 2.1rem);
}
@media (min-width: 60rem) {
  .lockup { flex-direction: row; justify-content: center; gap: clamp(1.75rem, 3.5vw, 3.25rem); }
}

.lockup__logo {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0) scale(0.97);
  filter: blur(10px);
  transition: opacity 1.25s var(--ease), transform 1.4s var(--ease), filter 1.25s var(--ease);
}
.lockup__logo img { width: 100%; height: auto; }

/* Optical sizing: the two wordmarks have very different aspect ratios,
   so they're balanced by cap-height rather than by box width. */
.lockup__logo--um { width: clamp(15rem, 38vw, 30rem); }
.lockup__logo--ge { width: clamp(9.5rem, 24vw, 18.5rem); }

.lockup__x {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.6vw, 2.35rem);
  font-weight: 300;
  color: var(--magenta);
  line-height: 1;
  opacity: 0;
  transform: scale(0.4) rotate(-25deg);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
  text-shadow: 0 0 24px color-mix(in srgb, var(--magenta) 65%, transparent);
}

.is-ready .lockup__logo,
.is-ready .lockup__x { opacity: 1; transform: none; filter: blur(0); }
.is-ready .lockup__logo--um { transition-delay: 0.15s; }
.is-ready .lockup__x        { transition-delay: 0.62s; }
.is-ready .lockup__logo--ge { transition-delay: 0.78s; }

.hero__sub {
  margin-top: clamp(1.75rem, 4.5vw, 3rem);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.15vw, 0.95rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 1s var(--ease) 1.15s, transform 1s var(--ease) 1.15s;
}
.is-ready .hero__sub { opacity: 0.9; transform: none; }
.hero__sub span { color: var(--paper-mute); }

/* The staged intro is decorative — show the lockup at once instead. */
@media (prefers-reduced-motion: reduce) {
  .lockup__logo, .lockup__x, .hero__sub, .hero__foot {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .hero__sub { opacity: 0.9; }
}

.hero__foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--pad) clamp(1.5rem, 4vh, 2.75rem);
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  opacity: 0;
  transition: opacity 1s var(--ease) 1.5s;
}
.is-ready .hero__foot { opacity: 1; }

.hero__note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  max-width: 22ch;
  line-height: 1.7;
  text-align: left;
}
@media (max-width: 44rem) { .hero__note { display: none; } }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-mute);
  text-decoration: none;
}
.scroll-cue__line {
  width: 1px; height: 3rem;
  background: linear-gradient(to bottom, var(--magenta), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--magenta);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0%       { transform: translateY(-100%); }
  55%, 100%{ transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__line::after { animation: none; opacity: 0.4; }
}

/* ============================================================
   8. Premise — oversized statement
   ============================================================ */
.premise__quote {
  font-size: clamp(2rem, 5.6vw, 4.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.97;
  max-width: 22ch;
}
.premise__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 48rem) and (max-width: 61.999rem) {
  .premise__grid { grid-template-columns: repeat(2, 1fr); }
}
/* Above the split breakpoint the items stack, since the still takes the
   right-hand column. */

.premise__item { display: grid; gap: 0.7rem; align-content: start; }
.premise__item h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.premise__item p  { color: var(--paper-dim); font-size: 0.975rem; line-height: 1.6; }
.premise__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--magenta);
}

/* ============================================================
   9. Figures — the night in numbers
   ============================================================ */
.figures {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
@media (min-width: 34rem) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .figures { grid-template-columns: repeat(4, 1fr); } }

.figure {
  background: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  display: grid;
  gap: 0.4rem;
  align-content: start;
  transition: background 0.5s var(--ease);
}
.figure:hover { background: var(--ink-card); }
.figure__val {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.figure__val small { font-size: 0.42em; font-weight: 600; letter-spacing: 0.02em; }
.figure__key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.figure__note { font-size: 0.85rem; color: var(--paper-dim); line-height: 1.5; }

/* ============================================================
   10. Experience cards
   ============================================================ */
.xp {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 46rem) { .xp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .xp { grid-template-columns: repeat(3, 1fr); } }

.xp__card {
  position: relative;
  overflow: hidden;
  background: var(--ink-card);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-height: clamp(12rem, 20vw, 15rem);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.xp__card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent, var(--magenta)), transparent 65%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
/* Accent bloom on hover — the "bright callout" on a dark card */
.xp__card::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 90%;
  background: radial-gradient(60% 100% at 50% 0%,
    color-mix(in srgb, var(--accent, var(--magenta)) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.xp__card:hover { border-color: color-mix(in srgb, var(--accent, var(--magenta)) 40%, var(--line)); transform: translateY(-3px); }
.xp__card:hover::before { transform: scaleX(1); }
.xp__card:hover::after  { opacity: 1; }

.xp__idx {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent, var(--magenta));
}
.xp__card h3 { font-size: 1.15rem; }
.xp__card p { color: var(--paper-dim); font-size: 0.94rem; line-height: 1.6; }

/* ============================================================
   11. Restraint strip — "what this is not"
   ============================================================ */
.restraint {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 62rem) {
  .restraint { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: start; }
}
.nots { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden; }
.not {
  background: var(--ink);
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.4vw, 1.6rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: background 0.4s var(--ease);
}
.not:hover { background: var(--ink-card); }
.not__x {
  font-family: var(--font-mono);
  color: var(--magenta);
  font-size: 0.8rem;
  flex: none;
  line-height: 1.75;
}
.not p { font-size: 0.98rem; }
.not p b { font-weight: 700; }
.not p span { color: var(--paper-mute); }

/* ============================================================
   12. Venues — game-style selector
   ============================================================ */
.venues { overflow: hidden; }

.stage {
  position: relative;
  margin-top: clamp(1rem, 3vw, 2rem);
  /* Bleed the rail past the shell so neighbours can sit off-canvas */
  margin-inline: calc(var(--pad) * -1);
}

/* -- the horizontal rail of venue plates -- */
.rail {
  position: relative;
  height: clamp(21rem, 46vw, 34rem);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  cursor: grab;
}
.rail.is-dragging { cursor: grabbing; }

.plate {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(17rem, 46vw, 36rem);
  aspect-ratio: 16 / 11;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-card);
  /* --dx / --s / --o are written by venues.js on each selection change */
  transform: translate(-50%, -50%) translate3d(var(--dx, 0), 0, 0) scale(var(--s, 1));
  opacity: var(--o, 1);
  transition:
    transform 0.85s var(--ease),
    opacity 0.85s var(--ease),
    filter 0.85s var(--ease),
    border-color 0.85s var(--ease);
  filter: saturate(var(--sat, 1)) brightness(var(--br, 1));
}
/* The active plate's image drifts continuously, and re-running a filter over a
   large photo every frame is expensive — so the selected plate carries none. */
.plate[data-state="active"] { filter: none; }
.plate[data-state="side"] { cursor: pointer; }
.plate[data-state="side"]:hover { --br: 0.8; --sat: 0.75; }
.plate[data-state="active"] {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 2.5rem 5rem -1.5rem rgba(0, 0, 0, 0.85),
    0 0 7rem -2rem color-mix(in srgb, var(--accent) 55%, transparent);
}

/* The frame clips a slow drift so the selected plate never sits dead still */
.plate__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.plate__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.plate[data-state="active"] .plate__img {
  animation: drift 26s var(--ease-io) infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.02) translate3d(-0.8%, 0.4%, 0); }
  to   { transform: scale(1.11) translate3d(1%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .plate[data-state="active"] .plate__img { animation: none; }
}

.plate__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(3,5,11,0.92) 0%, rgba(3,5,11,0.15) 52%, rgba(3,5,11,0.5) 100%);
  transition: opacity 0.7s var(--ease);
}

.plate__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.85rem;
  pointer-events: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.plate__idx {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.plate__name {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--paper);
  transition: font-size 0.6s var(--ease);
}
.plate[data-state="active"] .plate__name { font-size: clamp(0.72rem, 1.15vw, 0.9rem); }
.plate[data-state="side"] .plate__label { opacity: 0; }

/* Accent hairline along the bottom of the selected plate */
.plate::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.9s var(--ease) 0.1s;
  z-index: 2;
}
.plate[data-state="active"]::after { transform: scaleX(1); }

/* -- rail controls -- */
.rail-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: clamp(3rem, 4.6vw, 4rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  display: grid;
  place-content: center;
  color: var(--paper);
  box-shadow: 0 1rem 2.5rem -1rem rgba(0, 0, 0, 0.9);
  transition:
    border-color 0.4s var(--ease), background 0.4s var(--ease),
    transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.rail-nav:hover:not(:disabled) {
  border-color: var(--magenta);
  background: color-mix(in srgb, var(--magenta) 22%, var(--ink));
  transform: translateY(-50%) scale(1.08);
}
.rail-nav:disabled { opacity: 0.2; cursor: not-allowed; }
.rail-nav--prev { left: clamp(0.5rem, 2.5vw, 3rem); }
.rail-nav--next { right: clamp(0.5rem, 2.5vw, 3rem); }
.rail-nav svg { width: 42%; height: auto; }

/* A nudge outward on an enabled arrow, so the affordance reads as "more
   this way" without needing a hover. */
.rail-nav:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--magenta);
  opacity: 0;
  animation: pulse 3.4s var(--ease-io) infinite;
}
.rail-nav--next:not(:disabled)::after { animation-delay: 1.7s; }
@keyframes pulse {
  0%       { opacity: 0.55; transform: scale(1); }
  45%, 100%{ opacity: 0;    transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .rail-nav::after { animation: none; }
}

.rail-hint {
  margin-top: clamp(0.9rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.rail-hint svg { width: 0.85rem; color: var(--paper-dim); }

/* -- dots / index -- */
.rail-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
.rail-dot {
  width: 2.25rem; height: 2px;
  background: var(--line);
  border-radius: 2px;
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}
.rail-dot[data-selected="true"] { background: var(--accent, var(--magenta)); transform: scaleY(2); }
.rail-dot:hover { background: var(--paper-mute); }

/* -- venue detail panel -- */
.detail {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.detail__panel {
  display: none;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.detail__panel.is-current { display: grid; }
@media (min-width: 64rem) {
  .detail__panel.is-current {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

/* Panels animate in on switch via .is-entering added by JS */
.detail__panel > * {
  opacity: 1;
  transform: none;
}
.detail__panel.is-entering > * {
  animation: panelIn 0.75s var(--ease) both;
}
.detail__panel.is-entering > *:nth-child(2) { animation-delay: 0.09s; }
@keyframes panelIn {
  from { opacity: 0; transform: translate3d(0, 1.25rem, 0); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .detail__panel.is-entering > * { animation: none; }
}

.detail__head { display: grid; gap: 1rem; align-content: start; }
.detail__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--accent, var(--magenta));
  text-transform: uppercase;
}
.detail__name {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.detail__body { display: grid; gap: 1.1rem; }
.detail__body p { color: var(--paper-dim); font-size: 0.98rem; line-height: 1.65; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.spec {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 0.8rem;
}
.spec--hero {
  color: var(--ink);
  background: var(--accent, var(--magenta));
  border-color: transparent;
  font-weight: 700;
}

.detail__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.detail__link:hover { border-color: var(--accent, var(--magenta)); gap: 0.95rem; }
.detail__link svg { width: 0.7rem; }

/* -- gallery -- */
.gallery { display: grid; gap: 0.9rem; }
.gallery__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(13rem, 30vw, 19rem);
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.gallery__strip::-webkit-scrollbar { height: 4px; }
.gallery__strip::-webkit-scrollbar-track { background: var(--line-soft); }
.gallery__strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.shot {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  padding: 0;
  background: var(--ink-card);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.85) brightness(0.9);
}
.shot:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }

.gallery__meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* -- lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  border-radius: 3px;
  transform: scale(0.96);
  transition: transform 0.55s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.lightbox__close:hover { color: var(--paper); }

/* ============================================================
   12b. Mood imagery — stills from previous productions
   ============================================================ */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink-card);
  /* Reveal as a rising mask rather than a fade — reads as a curtain */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease) var(--rv-delay, 0s);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: saturate(0.9);
  transition: transform 1.7s var(--ease) var(--rv-delay, 0s);
}
[data-reveal="in"].frame,
[data-reveal="in"] .frame { clip-path: inset(0 0 0 0); }
[data-reveal="in"].frame img,
[data-reveal="in"] .frame img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .frame { clip-path: none; }
  .frame img { transform: none; }
}

/* A soft accent wash so stills sit in the page's world, not on top of it */
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 5, 11, 0.55), transparent 55%);
}

.frame--tall  { aspect-ratio: 3 / 4; }
.frame--wide  { aspect-ratio: 16 / 10; }
.frame--squat { aspect-ratio: 3 / 2; }

.cap {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.cap b { color: var(--paper-dim); font-weight: 400; }
.cap::before {
  content: "";
  width: 0.85rem; height: 1px;
  background: var(--line);
  flex: none;
  transform: translateY(-0.25em);
}

/* Text-and-image split used by the premise and the night */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }
  .split--flip > *:first-child { order: 2; }
}

/* Two stills side by side */
.duo {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
@media (min-width: 48rem) { .duo { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   12b-ii. Reel — auto-scrolling loop of stills.
   Uniform height with natural widths, so portrait and landscape shots sit
   side by side without being cropped square.
   ============================================================ */
/* The experience section above already ends on a full --stack gutter, so this
   one opens tight rather than stacking a second one on top. Its own bottom
   gutter lives on .reel below. */
#previous { padding-top: clamp(2rem, 4.5vw, 3.5rem); padding-bottom: 0; }

.reel {
  margin-top: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: var(--stack);
}
.reel__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.reel__track {
  display: flex;
  width: max-content;
  /* Two identical rows, so translating by half wraps seamlessly */
  animation: marquee 58s linear infinite;
}
/* Lives here because the reel is now the only user — it was previously
   defined alongside the client strip, which no longer scrolls. */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.reel:hover .reel__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .reel__track { animation: none; }
  .reel__viewport { overflow-x: auto; }
}

.reel__row {
  display: flex;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  padding-right: clamp(0.6rem, 1.4vw, 1rem);
}

.reel__shot {
  flex: none;
  height: clamp(15rem, 32vw, 24rem);
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  background: var(--ink-card);
  margin: 0;
  cursor: zoom-in;
}
.reel__shot img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
  transition: filter 0.6s var(--ease);
}
.reel__shot:hover img { filter: saturate(1) brightness(1); }

/* ============================================================
   12c. Video band — full-bleed separator between text sections
   ============================================================ */
.band {
  position: relative;
  width: 100%;
  /* Tall enough to read the room top to bottom */
  height: clamp(26rem, 82vh, 48rem);
  overflow: hidden;
  isolation: isolate;
  /* Each edge blends into whatever section it actually touches, so a band
     sitting between a raised and a plain section leaves no seam. */
  --band-top: var(--ink);
  --band-bottom: var(--ink);
  background: linear-gradient(to bottom, var(--band-top), var(--band-bottom));
}
.section--raise + .band      { --band-top: var(--ink-raise); }
.band:has(+ .section--raise) { --band-bottom: var(--ink-raise); }

/* The band already carries its own breathing room via the feathered edges, so
   the sections either side pull their gutters in rather than stacking a full
   --stack of empty space against it. */
.section:has(+ .band) { padding-bottom: clamp(1.75rem, 4vw, 3.25rem); }
.band + .section      { padding-top:    clamp(1.75rem, 4vw, 3.25rem); }

/* The loop is 4:3. Height drives the size and the width follows, so it is
   never stretched and never upscaled — the sides simply run out, and the mask
   feathers all four edges into the band background. */
.band video,
.band > img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
  z-index: -2;
  /* Only the sides need a mask (they are video-relative, and the video is
     narrower than the band). Top and bottom line up with the band exactly, so
     those are handled by the painted overlay below — one single-axis mask over
     a playing video instead of two composited ones. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

/* Top and bottom feather, painted once — no per-frame mask work */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--band-top) 0%, transparent 16%),
    linear-gradient(to top,    var(--band-bottom) 0%, transparent 18%);
}

/* A wash over the footage so it reads as atmosphere and sits back in the page
   rather than jumping forward as a crisp video. Edge blending is handled by
   the mask on the video and the ::after overlay. */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(2, 4, 9, 0.34), rgba(2, 4, 9, 0.34)),
    radial-gradient(68% 82% at 50% 50%,
      rgba(2, 4, 9, 0.2), rgba(2, 4, 9, 0.62));
}


/* ============================================================
   12d. Client strip — a plain, static row of marks
   ============================================================ */
.strip {
  /* No band background and no borders: the marks sit directly on the page */
  padding-block: clamp(2rem, 5vw, 3.5rem);
  padding-inline: var(--pad);
  display: grid;
  justify-items: center;
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}
.strip__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.strip__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.strip__logos img {
  /* Sized by height so marks of different proportions sit on one optical line */
  height: clamp(1.1rem, 2vw, 1.6rem);
  width: auto;
  /* Flattens any source colour to a single white silhouette, keeping alpha */
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease);
}
.strip__logos img:hover { opacity: 0.85; }

/* Optical sizing — these marks have very different proportions, so matching
   them by box height alone makes the chunky ones shout. */
.strip__logos img[alt="Hargreaves Lansdown"] { height: clamp(1.5rem, 2.8vw, 2.2rem); }
.strip__logos img[alt="Cleo"]                { height: clamp(0.9rem, 1.6vw, 1.3rem); }
/* Phase One's mark is nearly square and the brackets pad it out, so it needs
   roughly double the box height to match the others' cap height. */
.strip__logos img[alt="Phase One"]           { height: clamp(2.2rem, 4vw, 3.1rem); }


/* ============================================================
   12e. Team
   ============================================================ */
.crew {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  list-style: none;
  padding: 0;
}
.crew__member {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem) 1rem;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  transition: background 0.45s var(--ease);
}
.crew__member:hover { background: var(--ink-card); }
.crew__face {
  width: clamp(3.5rem, 6vw, 5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  /* Sources are square headshots, so this only trims the circle's corners */
  object-position: 50% 30%;
  border: 1px solid var(--line);
  /* Desaturated at rest so seven different backdrops read as one set */
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.5s var(--ease), border-color 0.5s var(--ease);
}
.crew__member:hover .crew__face {
  filter: grayscale(0) contrast(1) brightness(1);
  border-color: var(--magenta);
}
.crew__name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.crew__note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
  text-align: center;
}

.awards {
  margin-top: clamp(2.5rem, 5.5vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  justify-items: center;
}
.awards__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.awards__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Without this the items stretch to the tallest badge and the short
     wordmarks pin to the top instead of sitting on the same centre line. */
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.awards__row li { display: flex; align-items: center; }
.awards__row img {
  width: auto;
  /* Medallions carry their own colour — no silhouette filter here */
  height: clamp(3.4rem, 5.6vw, 4.6rem);
  opacity: 0.9;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.awards__row img:hover { opacity: 1; transform: translateY(-2px); }

/* VAULT is black artwork with the wordmark knocked out, so flipping it to
   white lets the page ink read through the letters. */
.awards__row img[alt="VAULT Festival"] {
  filter: brightness(0) invert(1);
  opacity: 0.75;
  height: clamp(2.9rem, 4.8vw, 3.9rem);
}
.awards__row img[alt="VAULT Festival"]:hover { opacity: 0.95; }

/* A wide wordmark, so it is sized by cap height rather than box height */
.awards__row img[alt="The Offies"] { height: clamp(1.3rem, 2.2vw, 1.8rem); }

/* ============================================================
   13. Included
   ============================================================ */
.incl {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
@media (min-width: 44rem) { .incl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .incl { grid-template-columns: repeat(3, 1fr); } }

.incl__item {
  background: var(--ink);
  padding: clamp(1.15rem, 2.4vw, 1.6rem);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  transition: background 0.4s var(--ease);
}
.incl__item:hover { background: var(--ink-card); }
.incl__item svg { width: 0.7rem; flex: none; color: var(--teal); transform: translateY(0.05rem); }
.incl__item span { font-size: 0.95rem; }

/* ============================================================
   14. Pricing
   ============================================================ */
.tiers {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
}
@media (min-width: 56rem) { .tiers { grid-template-columns: repeat(2, 1fr); } }

.tier {
  position: relative;
  overflow: hidden;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-content: start;
  transition: border-color 0.6s var(--ease), transform 0.7s var(--ease);
}
.tier:hover { transform: translateY(-4px); }
.tier--a { border-color: color-mix(in srgb, var(--magenta) 32%, var(--line)); }
.tier--a::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto -20%;
  height: 100%;
  background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--magenta) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.tier--b::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto -20%;
  height: 100%;
  background: radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--teal) 13%, transparent), transparent 70%);
  pointer-events: none;
}
.tier > * { position: relative; }

.tier__top { display: grid; gap: 0.9rem; }
.tier__flag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper-mute);
}
.tier__flag b { color: var(--paper); font-weight: 700; }
.tier--a .tier__dot, .tier--b .tier__dot {
  width: 0.4rem; height: 0.4rem; border-radius: 50%; flex: none;
}
.tier--a .tier__dot { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.tier--b .tier__dot { background: var(--teal);    box-shadow: 0 0 12px var(--teal); }

.tier__name { font-size: clamp(1.35rem, 2.4vw, 1.85rem); text-transform: uppercase; }

.tier__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
}
.tier--a .tier__price { color: var(--magenta); }
.tier--b .tier__price { color: var(--teal); }
.tier__est {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  font-weight: 400;
  letter-spacing: 0.2em;
}
.tier__sub { color: var(--paper-dim); font-size: 0.95rem; line-height: 1.6; }

.tier__list { display: grid; gap: 0.7rem; list-style: none; padding: 0; }
.tier__list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.94rem;
  color: var(--paper-dim);
  line-height: 1.55;
}
/* The text is wrapped in a span so the whole sentence is one flex item —
   otherwise a <b> mid-sentence becomes its own item and the line breaks up. */
.tier__list li > span { flex: 1; }
.tier__list svg { width: 0.65rem; flex: none; color: var(--paper-mute); transform: translateY(0.05rem); }

.tier__pending {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* The estimates carry a hard caveat — it gets its own block, not a footnote */
.ballpark {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--amber) 32%, var(--line));
  border-left-width: 2px;
  border-left-color: var(--amber);
  border-radius: 3px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--amber) 9%, transparent),
      transparent 55%),
    var(--ink-card);
  padding: clamp(1.15rem, 2.6vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 0.7rem;
}
.ballpark__flag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ballpark__flag::before {
  content: "!";
  display: grid;
  place-content: center;
  width: 1.15rem; height: 1.15rem;
  border: 1px solid var(--amber);
  border-radius: 50%;
  font-size: 0.65rem;
  flex: none;
}
.ballpark__body {
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 68ch;
}
.ballpark__body strong { color: var(--paper); font-weight: 700; }

.tier__lead {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding-top: clamp(1rem, 2.2vw, 1.35rem);
  border-top: 1px solid var(--line);
}
.tier__list li b { color: var(--paper); font-weight: 700; }

.price-note {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--paper-mute);
  max-width: 62ch;
}

/* ============================================================
   15. Footer
   ============================================================ */
.footer {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-soft);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.footer__mark { width: clamp(11rem, 22vw, 16rem); opacity: 0.9; }
.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mute);
  line-height: 2;
  text-align: right;
}
@media (max-width: 40rem) { .footer__meta { text-align: left; } }
