/* Zack Chmeis: base, components, sections. Values come from tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 72% 34% at 50% 42%, rgba(99, 116, 139, 0.035), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film grain over everything, very quiet */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: var(--text-inverse); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: var(--s-3); left: var(--s-3); z-index: var(--z-toast);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
  background: var(--text); color: var(--text-inverse); font-size: var(--fs-small);
  transform: translateY(-200%); transition: transform var(--t-base) var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Type helpers ---------- */
.eyebrow,
.kicker {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--tracking-mono); text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.eyebrow { justify-content: center; flex-wrap: wrap; row-gap: var(--s-1); color: var(--text-2); }
.eyebrow__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.kicker span { color: var(--accent); }
.kicker::after { content: ""; flex: 0 1 64px; height: 1px; background: var(--line-strong); }
.kicker--center { justify-content: center; }
.kicker--center::before { content: ""; flex: 0 1 64px; height: 1px; background: var(--line-strong); }

.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--accent); }
.prose { display: grid; gap: var(--s-4); color: var(--text-2); font-size: var(--fs-lead); max-width: 56ch; }

/* ---------- Button ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 46px; padding: 0 var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--text); color: var(--text-inverse); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(236, 232, 224, 0.02); }
.btn--ghost:hover { border-color: var(--text-3); background: rgba(236, 232, 224, 0.06); }
.btn--ghost .icon { transition: transform var(--t-base) var(--ease-out); }
.btn--ghost:hover .icon { transform: translateY(2px); }
.btn--sm { height: 36px; padding: 0 var(--s-4); font-size: var(--fs-small); }
.btn .spinner { position: absolute; opacity: 0; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .spinner { opacity: 1; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Input ---------- */
.input {
  width: 100%; min-width: 0; height: 48px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent-line); }

/* ---------- Navbar: one floating bar ---------- */
.nav {
  position: fixed; inset: var(--s-3) 0 auto; z-index: var(--z-nav);
  display: flex; justify-content: center; padding-inline: var(--s-3); pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-5);
  height: 52px; padding: 0 var(--s-2) 0 var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(9, 11, 15, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: background-color var(--t-base) ease, border-color var(--t-base) ease;
}
.nav.is-scrolled .nav__bar { background: rgba(9, 11, 15, 0.86); border-color: var(--line-strong); }
.nav__brand { display: flex; align-items: center; padding: var(--s-2) 0; transition: opacity var(--t-fast) ease; }
.nav__brand img { height: 20px; width: auto; opacity: 0.9; }
.nav__brand:hover { opacity: 0.75; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  font-size: var(--fs-small); color: var(--text-2);
  transition: color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.nav__links a:hover { color: var(--text); background: rgba(236, 232, 224, 0.06); }
.nav__links a.is-active { color: var(--text); background: rgba(236, 232, 224, 0.08); }
.nav__cta { flex: none; }
.nav__cta-short { display: none; }
.nav__links a { white-space: nowrap; }

/* ---------- Hero film ---------- */
.film {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 600px;
  background: var(--bg);
}
.film__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.film__fallback {
  position: absolute; inset: 0; z-index: 0; display: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(242, 196, 109, 0.06), transparent 70%),
    radial-gradient(ellipse at 50% 0%, #10161f, var(--bg) 70%);
}
/* History wall: the story racing past behind the signature (motion in history.js) */
.history {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-evenly;
  padding-block: 72px 24px;
  opacity: 0; transition: opacity 1.4s var(--ease-out);
  /* quiet behind the signature and the text under it, fading out at the edges */
  -webkit-mask-image:
    radial-gradient(ellipse 46% 40% at 50% 50%, rgba(0, 0, 0, 0.08) 45%, #000 92%),
    linear-gradient(to bottom, transparent 4%, #000 18%, #000 82%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 46% 40% at 50% 50%, rgba(0, 0, 0, 0.08) 45%, #000 92%),
    linear-gradient(to bottom, transparent 4%, #000 18%, #000 82%, transparent 98%);
  mask-composite: intersect;
}
.history.is-on { opacity: 1; }
@media (max-width: 639px) {
  /* the text runs full width on a phone, so the quiet zone does too */
  .history {
    -webkit-mask-image:
      radial-gradient(ellipse 90% 38% at 50% 52%, rgba(0, 0, 0, 0.08) 50%, #000 95%),
      linear-gradient(to bottom, transparent 4%, #000 18%, #000 82%, transparent 98%);
    mask-image:
      radial-gradient(ellipse 90% 38% at 50% 52%, rgba(0, 0, 0, 0.08) 50%, #000 95%),
      linear-gradient(to bottom, transparent 4%, #000 18%, #000 82%, transparent 98%);
  }
}
.history__row { white-space: nowrap; }
.history__track {
  display: inline-flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem);
  padding-right: clamp(1.25rem, 3vw, 3rem);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, min(9vw, 11.5vh), 9rem); line-height: 1; letter-spacing: -0.02em;
  will-change: transform;
}
.history__track span { color: transparent; -webkit-text-stroke: 1px rgba(236, 232, 224, 0.2); }
.history__track span:nth-of-type(even) { -webkit-text-stroke: 0; color: rgba(236, 232, 224, 0.06); }
.history__track em { font-style: italic; }
.history__track span:has(em) { -webkit-text-stroke: 1px rgba(242, 196, 109, 0.5); color: transparent; }
.history__track i { width: 0.14em; height: 0.14em; flex: none; transform: rotate(45deg); background: rgba(242, 196, 109, 0.35); }
.film.no-webgl .film__sky { display: none; }
.film.no-webgl .film__fallback { display: block; }
/* Fade the film into the page below */
.film::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22vh; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}

/* The resting hero: the signature is the mark, the name sits small beneath it */
.film__rest {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 88px var(--gutter) clamp(4.5rem, 10vh, 6.5rem);
  text-align: center; pointer-events: none;
}
.film__mark { width: min(680px, 84vw); }
.film__mark .signature { width: 100%; height: auto; overflow: visible; }
.sig-ink { fill: var(--text); }
.sig-pen {
  fill: none; stroke: #fff; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1.05;
}
.film__mark.is-drawing .sig-pen-a { stroke-dashoffset: 0; transition: stroke-dashoffset 0.62s var(--ease-in-out); }
.film__mark.is-drawing .sig-pen-b { stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s var(--ease-out) 0.5s; }
.film__mark.is-drawn .sig-pen { stroke-dashoffset: 0; transition: none; }

.film__meta {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  /* the name sits close under the signature */
  margin-top: clamp(0.5rem, 1vw, 0.875rem);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
}
.film__rest.is-visible { pointer-events: auto; }
.film__rest.is-visible .film__meta { opacity: 1; transform: none; }
.film__title {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem); line-height: 1.2;
  letter-spacing: 0.34em; text-transform: uppercase; padding-left: 0.34em;
}
.film__role {
  margin-top: var(--s-2); max-width: 14ch; text-wrap: balance;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em;
}
.film__role em { font-style: italic; color: var(--accent); }
.film__titles {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) 0;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--text-2);
}
.film__titles li { display: flex; align-items: center; white-space: nowrap; }
.film__titles li + li::before {
  content: ""; width: 4px; height: 4px; margin-inline: var(--s-3); border-radius: 50%; background: var(--accent);
}
.film__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: linear-gradient(90deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
}
.about::before,
.alongside + .section::before { display: none; }
.section-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); max-width: 900px; }

/* 01 The work */
.about__grid { display: grid; gap: var(--s-8); align-items: center; }
.about__body { display: grid; gap: var(--s-6); }

.portrait {
  --lx: 30%;
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background:
    radial-gradient(circle at var(--lx) 30%, rgba(242, 196, 109, 0.16), transparent 55%),
    radial-gradient(ellipse at 50% 100%, #10141b, var(--bg-raised) 70%);
  transition: --lx var(--t-slow) ease;
}
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0%;
  transform: scale(1.04) translateY(4%);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
}
.portrait__light {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(242, 196, 109, 0.08) 0%, transparent 38%, transparent 52%, rgba(5, 6, 8, 0.78) 100%);
}

.stats { display: grid; border-top: 1px solid var(--line); container-type: inline-size; }
.stat {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: var(--s-5);
  padding-block: var(--s-4); border-bottom: 1px solid var(--line);
}
.stat__value {
  order: -1; min-width: 4.2ch;
  font-family: var(--font-display); font-size: var(--fs-stat); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__label { font-size: var(--fs-small); color: var(--text-3); line-height: 1.35; }

.facts { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-small); }
.facts strong { font-weight: 500; color: var(--accent); }

/* 02 On the record */
.credits { border-top: 1px solid var(--line); }
.credit {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  display: grid; align-items: center; gap: var(--s-2) var(--s-4);
  grid-template-columns: 2.5rem 1fr auto;
  grid-template-areas:
    "num title tag"
    "num role role"
    "num meta meta";
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-base) ease;
}
.credit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 65%);
  transition: opacity var(--t-base) ease;
}
.credit:hover::before { opacity: 1; }
.credit__num { grid-area: num; align-self: start; padding-top: 0.6em; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-3); }
.credit__role { grid-area: role; line-height: 1.5; text-wrap: balance; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.credit__title {
  grid-area: title;
  font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-snug);
  transition: color var(--t-base) ease, transform var(--t-base) var(--ease-out);
}
.credit__title em { font-style: italic; }
.credit:hover .credit__title { color: var(--accent-strong); }
.credit__meta { grid-area: meta; font-size: var(--fs-small); line-height: 1.45; color: var(--text-2); }
.credit__tag {
  grid-area: tag; justify-self: end;
  display: inline-flex; align-items: center; gap: var(--s-1);
  height: 26px; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.credit__tag--link { color: var(--text-2); border-color: var(--line-strong); transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.credit__tag--link:hover { color: var(--text-inverse); background: var(--accent); border-color: var(--accent); }
.credit__tag--link .icon { width: 12px; height: 12px; }

/* Two quiet lines under the record */
.lines { display: grid; margin-top: var(--s-8); }
.line { display: grid; gap: var(--s-3); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line__label {
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.1em; line-height: 1.5;
  text-transform: uppercase; color: var(--text-3); text-wrap: balance;
}
.line__value { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.25; text-wrap: balance; }

/* Alongside */
.alongside {
  position: relative; padding-block: var(--s-9); border-block: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(242, 196, 109, 0.035) 50%, transparent),
    var(--bg-raised);
}
.alongside__label {
  margin-bottom: var(--s-6); text-align: center;
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--text-3);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 54s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; flex: none; }
.marquee__list li {
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  font-family: var(--font-display); font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5.5rem);
  line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap;
  /* Names light up as they pass under the centre of the screen */
  color: transparent;
  background: radial-gradient(ellipse 20vw 120vh at 50% 50%, var(--text) 0%, #696b70 58%, #303238 100%) fixed;
  -webkit-background-clip: text; background-clip: text;
}
.marquee__list li::after {
  content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg);
  background: var(--accent-line);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* 03 In the field */
.places__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.place {
  position: relative; display: grid; align-content: space-between; gap: var(--s-6);
  min-height: 9.5rem; padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-base) ease;
}
.place:nth-child(even) { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.place::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.place:hover::after { transform: scaleX(1); }
.place__num { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-3); }
.place__name {
  font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1; letter-spacing: -0.02em; transition: color var(--t-base) ease;
}
.place:hover .place__name { color: var(--accent-strong); }
.place__region {
  grid-row: 1; justify-self: end; grid-column: 2;
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); text-align: right;
}
.place { grid-template-columns: auto 1fr; }
.place__name { grid-column: 1 / -1; }

/* In the field: a solid map, one glowing point per place with its name */
.section-lead { max-width: 52ch; color: var(--text-2); font-size: var(--fs-lead); text-wrap: pretty; }
.atlas { overflow: hidden; }
.atlas .section-head { margin-bottom: var(--s-6); }
/* the map runs edge to edge and fades out at the sides */
.worldmap {
  max-width: 1900px; margin-inline: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.worldmap__canvas { position: relative; aspect-ratio: 850 / 340; }
.worldmap__land, .worldmap__points { position: absolute; inset: 0; width: 100%; height: 100%; }
.worldmap__points { overflow: visible; }

/* arrival: the land settles in from a slight zoom, then the points land one by one */
.worldmap__land {
  opacity: 0; transform: scale(1.1); transition: opacity 1.4s ease, transform 2.2s var(--ease-out);
  /* the land fades in from the top, so it never ends in a hard line under the text */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%); mask-image: linear-gradient(to bottom, transparent, #000 20%);
}
.worldmap.is-in .worldmap__land { opacity: 1; transform: none; }
.worldmap__pt { --i: 0; --d: calc(0.7s + var(--i) * 0.11s); }
.worldmap__dot, .worldmap__ring { transform-box: fill-box; transform-origin: center; }
.worldmap__dot { fill: var(--accent-strong); transform: scale(0); transition: transform 0.7s var(--ease-out) var(--d); }
.worldmap__glow { opacity: 0; transition: opacity 1.2s ease var(--d); }
.worldmap__ring { fill: none; stroke: var(--accent); stroke-width: 0.6; opacity: 0; }
.worldmap__leader { fill: none; stroke: var(--accent-line); stroke-width: 0.4; opacity: 0; transition: opacity 0.6s ease calc(var(--d) + 0.3s); }
.worldmap__label {
  font-family: var(--font-mono); font-size: 6.2px; letter-spacing: 0.1em; text-transform: uppercase;
  fill: var(--text-2); opacity: 0; transition: opacity 0.6s ease calc(var(--d) + 0.3s);
}
.worldmap.is-in .worldmap__dot { transform: none; }
.worldmap.is-in .worldmap__glow, .worldmap.is-in .worldmap__leader, .worldmap.is-in .worldmap__label { opacity: 1; }
/* one ripple as each point lands, then stillness */
.worldmap.is-in .worldmap__ring { animation: worldmap-ring 1.5s var(--ease-out) var(--d) 1 both; }
@keyframes worldmap-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(7); opacity: 0; } }

.worldmap__mobile { display: none; }

/* what the work was, over open water */
.worldmap__word {
  --i: 0;
  font-family: var(--font-display); font-style: italic; font-size: 13px; letter-spacing: -0.01em;
  fill: var(--text); opacity: 0; transition: opacity 1.4s ease calc(2.2s + var(--i) * 0.25s);
}
.worldmap.is-in .worldmap__word { opacity: 0.62; }

/* The number */
.bigstat { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); padding-block: var(--s-6); border-block: 1px solid var(--line); }
.bigstat__value {
  font-family: var(--font-display); font-size: clamp(5rem, 33vw, 17rem);
  line-height: 0.82; letter-spacing: -0.035em; color: var(--accent);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bigstat__body { display: grid; gap: var(--s-4); max-width: 30rem; }
.bigstat__lead { font-size: var(--fs-lead); color: var(--text); text-wrap: balance; }
.bigstat__clients { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; text-wrap: balance; }
.bigstat__clients span {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--text-3);
}

/* Pre-Align, short: the pitch and three photographs of the guide */
.prealign__head { display: grid; gap: var(--s-6); margin-bottom: var(--s-8); }
.prealign__head .section-head { margin-bottom: 0; }
.showcase { display: grid; gap: var(--s-3); }
.showcase__item { overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-raised); }
.showcase__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.showcase__item:hover img { transform: scale(1.03); }

/* 04 Pre-Align */
.prealign__grid { display: grid; gap: var(--s-8); align-items: center; }
.prealign__intro { display: grid; gap: var(--s-6); justify-items: start; min-width: 0; }
.prealign__proof { color: var(--text-2); }
.prealign__proof strong { font-weight: 500; color: var(--accent); }

.buy {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5);
  width: 100%; padding: var(--s-5);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--bg-raised);
}
.buy__price { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.buy__amount { font-family: var(--font-display); font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem); line-height: 0.9; letter-spacing: -0.02em; }
.buy__terms { max-width: 22ch; font-size: var(--fs-small); line-height: 1.4; color: var(--text-2); }
.buy__button .icon { transition: transform var(--t-base) var(--ease-out); }
.buy__button:hover .icon { transform: translateX(3px); }

/* The mock-up: three pages of the PDF, fanned. Hover spreads them. */
.mock { display: grid; gap: var(--s-5); min-width: 0; }
.mock__stack { position: relative; aspect-ratio: 16 / 10.6; }
.mock__page {
  position: absolute; left: 0; bottom: 0; width: 86%; height: auto;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transform-origin: 0% 100%;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) ease;
}
.mock__page--back { transform: translate(16.2%, -18%) rotate(0deg); opacity: 0.6; }
.mock__page--mid { transform: translate(8.1%, -9%); opacity: 0.85; }
.mock__page--front { transform: none; }
.mock:hover .mock__page--back { transform: translate(16.2%, -21%) rotate(1.5deg); opacity: 0.85; }
.mock:hover .mock__page--mid { transform: translate(8.1%, -11%) rotate(0.75deg); opacity: 1; }
.mock__caption {
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--text-3);
}
.mock__caption span:first-child { color: var(--text-2); }

/* What is inside */
.kit { display: grid; gap: var(--s-6); margin-top: var(--s-9); }
.kit__item { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: var(--s-4); }
.kit__frame {
  grid-column: 1 / -1; overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-raised);
  transition: border-color var(--t-base) ease;
}
.kit__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.kit__item:hover .kit__frame { border-color: var(--accent-line); }
.kit__item:hover .kit__frame img { transform: scale(1.035); }
.kit__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: var(--lh-snug); }
.kit__text { margin-top: var(--s-1); color: var(--text-2); font-size: 0.9375rem; max-width: 34ch; }
.kit__count {
  display: inline-flex; align-items: center; height: 26px; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}

.moves { display: grid; margin-top: var(--s-9); border-top: 1px solid var(--line-strong); counter-reset: move; }
.move {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  border-bottom: 1px solid var(--line); background: transparent;
  transition: border-color var(--t-base) ease, background-color var(--t-base) ease;
}
.move::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--accent-soft), transparent 70%);
  transition: opacity var(--t-base) ease;
}
.move:hover { border-color: var(--accent-line); background: rgba(242, 196, 109, 0.035); }
.move:hover::before { opacity: 1; }
.move__num { font-family: var(--font-display); font-style: italic; font-size: 3.25rem; line-height: 0.9; color: var(--accent); }
.move__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.35rem + 0.8vw, 2.1rem); line-height: 1.05; margin-bottom: var(--s-2); }
.move__text { color: var(--text-2); font-size: 0.9375rem; }

/* 05 Notes */
.notes { overflow: hidden; text-align: center; padding-block: calc(var(--section-y) * 1.15); }
.notes__inner { position: relative; display: grid; justify-items: center; gap: var(--s-5); }
.notes__title { max-width: 14ch; }
.notes__lead { max-width: 44ch; color: var(--text-2); font-size: var(--fs-lead); }

.subscribe { width: 100%; max-width: 480px; margin-top: var(--s-3); display: grid; gap: var(--s-3); }
.subscribe__row {
  display: flex; align-items: center; gap: var(--s-2); padding: 5px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: rgba(14, 17, 22, 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color var(--t-fast) ease;
}
.subscribe__row:hover { border-color: var(--text-3); }
.subscribe__row:focus-within { border-color: var(--accent-line); }
.subscribe__input, .subscribe__input:hover, .subscribe__input:focus { border: 0; background: transparent; height: 44px; padding-left: var(--s-4); }
.subscribe__button { height: 44px; flex: none; min-width: 92px; }
.subscribe__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe__help { font-size: var(--fs-small); color: var(--text-3); min-height: 1.6em; transition: color var(--t-fast) ease; }
.subscribe.is-invalid .subscribe__row { border-color: var(--danger); }
.subscribe.is-invalid .subscribe__help { color: var(--danger); }
.subscribe.is-success .subscribe__row { border-color: var(--accent-line); }
.subscribe.is-success .subscribe__help { color: var(--accent-strong); }

/* Two columns: what it is on the left, the form on the right (creators, waiting list) */
.split { display: grid; gap: var(--s-7); }
.split__intro { display: grid; gap: var(--s-5); align-content: start; }
.ticks { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--text-2); }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: baseline; }
.ticks li::before { content: ""; width: 6px; height: 6px; transform: translateY(-2px) rotate(45deg); background: var(--accent); }
.form { display: grid; gap: var(--s-5); align-content: start; }
.affix { position: relative; }
.affix__mark { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.affix__input { padding-left: calc(var(--s-4) + 1.2em); }
.field { display: grid; gap: var(--s-2); }
.field__label {
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--text-3);
}
.select { position: relative; }
.select__control { appearance: none; -webkit-appearance: none; padding-right: var(--s-8); cursor: pointer; }
.select__control:invalid { color: var(--text-3); }
.select__control option { background: var(--surface); color: var(--text); }
.select__chevron {
  position: absolute; right: var(--s-4); top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); color: var(--text-3); pointer-events: none;
  transition: transform var(--t-fast) ease, color var(--t-fast) ease;
}
.select:focus-within .select__chevron { color: var(--text); transform: translateY(-50%) rotate(180deg); }
.field.is-invalid .input { border-color: var(--danger); }
.field__error { font-size: var(--fs-small); color: var(--danger); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.form__status { font-size: var(--fs-small); color: var(--text-3); min-height: 1.6em; }
.form.is-error .form__status { color: var(--danger); }
.form.is-success .form__status { color: var(--accent-strong); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-5); background: var(--bg-raised); }
.footer__top { display: grid; gap: var(--s-7); padding-bottom: var(--s-8); }
.footer__brand { display: grid; justify-items: start; gap: var(--s-2); }
.footer__signature { width: min(260px, 70vw); height: auto; margin-bottom: var(--s-3); }
.footer__name { font-weight: 500; font-size: var(--fs-small); letter-spacing: 0.3em; text-transform: uppercase; }
.footer__role { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--text-3); }
.footer__nav { display: grid; align-content: start; justify-items: start; gap: var(--s-1); }
.footer__nav a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.3; color: var(--text-2);
  transition: color var(--t-fast) ease, transform var(--t-base) var(--ease-out);
}
.footer__nav a:hover { color: var(--accent-strong); transform: translateX(4px); }
.footer__nav .icon { width: 14px; height: 14px; }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-top: var(--s-5); border-top: 1px solid var(--line);
}
.footer__up {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
  transition: color var(--t-fast) ease;
}
.footer__up:hover { color: var(--text); }
.footer__up .icon { width: 12px; height: 12px; transition: transform var(--t-base) var(--ease-out); }
.footer__up:hover .icon { transform: translateY(-2px); }
.footer__legal { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; color: var(--text-3); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: var(--s-5); z-index: var(--z-toast);
  display: flex; align-items: center; gap: var(--s-3);
  max-width: calc(100vw - 2rem); padding: var(--s-3) var(--s-5);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: rgba(14, 17, 22, 0.92); color: var(--text); font-size: var(--fs-small); white-space: nowrap;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translate(-50%, 140%); pointer-events: none;
  transition: opacity var(--t-base) ease, transform var(--t-slow) var(--ease-out);
}
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .stat { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-5) var(--s-4) 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  /* Sized to the column so "$500K+" never runs into its neighbour */
  .stat__value { order: 0; font-size: clamp(2.5rem, 9.5cqi, 4.75rem); }
  .credit {
    /* fixed outer columns, so role, title and meta line up from row to row */
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.25fr) 8.5rem;
    grid-template-areas: "num role title meta tag";
    column-gap: var(--s-5);
    padding: var(--s-5) 0;
  }
  .credit__num { align-self: center; padding-top: 0; }
  .credit:hover .credit__title { transform: translateX(6px); }
  /* same first columns as the record rows above */
  .line { grid-template-columns: calc(2.5rem + var(--s-5)) minmax(0, 1fr) minmax(0, 2.5fr); column-gap: 0; align-items: baseline; }
  .line__label { grid-column: 2; padding-right: var(--s-5); }
  .line__value { grid-column: 3; }
  .showcase { grid-template-columns: 2fr 1fr; gap: var(--s-4); }
  .film__role { max-width: none; }
  .footer__top { grid-template-columns: 1fr auto; align-items: end; }
  .footer__nav { justify-items: end; }
  .footer__nav a:hover { transform: translateX(-4px); }
  .showcase__item--main { grid-row: span 2; aspect-ratio: auto; }
  .places__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place { padding: var(--s-5); min-height: 12rem; }
  .place:nth-child(even) { padding-left: var(--s-5); border-left: 0; }
  .place:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
  .place:nth-child(3n + 1) { padding-left: 0; }
  .kit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6) var(--s-5) var(--s-6) 0; }
  .move:nth-child(even) { padding-left: var(--s-5); border-left: 1px solid var(--line); }
}
@media (max-width: 959px) and (min-width: 640px) {
  .credit {
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr) 8.5rem;
    grid-template-areas: "num title title tag" "num role meta meta";
  }
}
@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(340px, 5fr) 7fr; gap: clamp(4rem, 7vw, 8rem); }
  .prealign__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); }
  .bigstat { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); }
  .bigstat__value { font-size: clamp(7rem, 19vw, 17rem); }
  .split { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 8rem); }
  .prealign__head { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 6vw, 6rem); align-items: end; }
  .moves { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .move, .move:nth-child(even) { padding: var(--s-6) var(--s-5); border-left: 1px solid var(--line); }
  .move:first-child { padding-left: 0; border-left: 0; }
  .credit { min-height: 88px; }
}

/* ---------- Phone ---------- */
@media (max-width: 639px) {
  /* the hero already carries the signature, so the bar drops it on a phone */
  .nav__brand { display: none; }
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
  .nav__bar { width: 100%; justify-content: space-between; gap: var(--s-2); padding-left: var(--s-2); }
  .nav__links a { padding-inline: var(--s-3); }
  .film { min-height: 600px; }
  .film__actions { width: 100%; }
  .film__actions .btn { flex: 1 1 0; padding: 0 var(--s-4); }
  .credit__tag { height: 24px; }
  .portrait { max-width: 420px; }
  .section::before { left: var(--gutter); right: var(--gutter); }
  .about__grid { gap: var(--s-7); }
  .about__body { gap: var(--s-5); }
  .record .section-head { margin-bottom: var(--s-7); }
  .credit { padding-block: var(--s-6); }
  .credit__role { line-height: 1.5; }
  .alongside { padding-block: var(--s-8); }
  .prealign__intro { gap: var(--s-5); }
  /* a phone gets its own map: the whole world as points, then a labelled close-up of the busy part */
  .worldmap { -webkit-mask-image: none; mask-image: none; }
  .worldmap__scroll { display: none; }
  .worldmap__mobile { display: grid; gap: var(--s-4); }
  .worldmap__m { display: block; width: 100%; height: auto; overflow: visible; }
  .worldmap__m--world { aspect-ratio: 850 / 340; }
  .worldmap__m--world .worldmap__mland { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  .worldmap__m--inset {
    aspect-ratio: 240 / 140; width: calc(100% - var(--gutter) * 2); margin-inline: auto;
    border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-raised);
  }
  .worldmap__mland { opacity: 0; transition: opacity 1.4s ease; }
  .worldmap.is-in .worldmap__mland { opacity: 1; }
  .worldmap__frame { fill: none; stroke: var(--accent-line); stroke-width: 1.6; stroke-dasharray: 5 4; }
  .worldmap__label--big { font-size: 21px; fill: var(--text); }
  .worldmap__m--inset .worldmap__label { font-size: 6.6px; fill: var(--text); }
  .worldmap__inset-title {
    padding-inline: var(--gutter); margin-top: var(--s-3);
    font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-mono);
    text-transform: uppercase; color: var(--accent);
  }

  /* names: all seven at once, set as a block, instead of a strip that shows one and a half */
  .alongside__label {
    max-width: 30ch; margin-inline: auto; padding-inline: var(--gutter);
    font-family: var(--font-sans); font-size: 0.9375rem; letter-spacing: 0; text-transform: none;
    line-height: 1.5; color: var(--text-2); text-wrap: balance;
  }
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee__track { display: block; width: auto; animation: none; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); }
  .marquee__list li {
    padding-right: 0; font-size: 2.125rem; line-height: 1.15;
    color: var(--text); background: none;
  }
  .marquee__list li:nth-child(even) { color: var(--text-2); }
  .marquee__list li::after { content: none; }
  .buy { padding: var(--s-4); }
  .buy__button { width: 100%; }
  .kit, .moves { margin-top: var(--s-8); }
  .film__titles { flex-direction: column; align-items: center; gap: var(--s-2); }
  .film__titles li + li::before { content: none; }
  .move { grid-template-columns: 2.7rem 1fr; gap: var(--s-3); padding: var(--s-5) 0; }
  .move__num { font-size: 2.6rem; }
  .subscribe__row { padding: 4px; }
  .subscribe__input, .subscribe__input:hover, .subscribe__input:focus { padding-left: var(--s-3); }
}

@media (max-width: 359px) {
  .film__actions .btn { flex-basis: 100%; }
  .nav__links a { padding-inline: var(--s-2); }
  .nav .btn { padding-inline: var(--s-3); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .worldmap__land, .worldmap__dot, .worldmap__glow, .worldmap__leader, .worldmap__label, .worldmap__word { transition: none; }
  .worldmap.is-in .worldmap__ring { animation: none; }
}
