/* ===== Design tokens ===== */
/* Palette sampled from the hero video: green-tinted ink → ash → phosphor bone */
:root {
  --ink: #050705;        /* deepest black, video shadows */
  --ink-2: #0c0f0c;      /* section surface */
  --ink-3: #151915;      /* raised surface */
  --ash: #3d403d;
  --smoke: #727472;
  --bone: #c9cec3;       /* primary text, bright glyphs */
  --phosphor: #b4c4a4;   /* accent: brightest glyph tint */
  --phosphor-dim: #8e9d80;

  /* legacy names mapped onto the new palette */
  --brand: var(--phosphor);
  --on-brand: var(--ink);
  --grey: var(--bone);
  --black: var(--ink);
  --black-24: rgba(201, 206, 195, .12);
  --grey-24: rgba(201, 206, 195, .16);

  --bg: var(--ink-2);
  --text: var(--bone);
  --border: var(--black-24);

  --font-heading: "Inter Tight", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  /* fluid unit: 16px at a 1920px-wide viewport */
  --container: clamp(992px, 100vw, 2240px);
  --u: calc(var(--container) / 120);
  --gutter: calc(var(--u) * 1);
}
@media (max-width: 991px) {
  :root { --u: 16px; --gutter: 16px; }
}

.theme-dark { --bg: var(--black); --text: var(--grey); --border: var(--grey-24); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--u); }
body {
  background: var(--ink-2);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--phosphor); color: var(--ink); }

section, footer { background: var(--bg); color: var(--text); position: relative; }

/* ===== Type scale ===== */
.h-xl { font-family: var(--font-heading); font-size: 2.5rem; line-height: 1.04; font-weight: 500; letter-spacing: -0.04em; }
.h-l  { font-family: var(--font-heading); font-size: 2rem;   line-height: 1;    font-weight: 500; letter-spacing: -0.04em; }
.l    { font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.025em; }
.m    { font-size: 1rem;   line-height: 1.2; font-weight: 400; letter-spacing: -0.025em; display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.xs   { font-size: .6rem;  line-height: 1.1; }
.center { text-align: center; }
.muted { opacity: .45; }
.dim { opacity: .5; }

/* Small icons */
.ico { display: inline-block; width: .6em; height: .6em; background: currentColor; flex: none; }
.ico--tri { clip-path: polygon(0 0, 0 100%, 100% 100%); }
.ico--flip { transform: scaleX(-1); }
.ico--dot { border-radius: 50%; }
.ico--sq { }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 1.5em;
  font-family: var(--font-heading); font-size: 1rem;
  padding: .7em 1em; color: var(--grey); background: var(--black);
  border: 1px solid var(--grey-24);
  position: relative; overflow: hidden;
  transition: background .3s, color .3s;
}
.btn::before, .btn::after {
  content: ""; position: absolute; width: 3px; height: 3px; background: currentColor;
}
.btn::before { top: 3px; left: 3px; }
.btn::after  { bottom: 3px; right: 3px; }
.btn span { transition: transform .3s; }

.btn:hover span { transform: translateX(.3em); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem var(--gutter) .55rem;
  color: var(--bone);
  font-size: .8rem;
}
/* Dark band behind the nav: solid ink at the top, fading (with a soft blur) into the video
   so every label reads clearly over the ASCII texture without a hard edge */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -2.6rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,7,5,.94) 0%, rgba(5,7,5,.82) 55%, rgba(5,7,5,0) 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
/* hairline under the band's solid part */
.nav::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--grey-24) 15%, var(--grey-24) 85%, transparent);
}
/* Logo lockup: same logo-to-letter ratio as the loader (logo = 1.06em of the type) */
.nav__logo { --logo: 3.6rem; display: flex; align-items: flex-end; flex: none; }
.nav__logo-img { display: block; width: var(--logo); height: auto; }
.nav__km {
  display: block; overflow: hidden;
  font-family: var(--font-heading); font-weight: 500;
  font-size: calc(var(--logo) / 1.06); line-height: .8; letter-spacing: -0.05em;
  padding: .02em .01em .04em .02em; margin-bottom: .06em;
}
.nav__km > span { display: inline-block; }
.nav__groups { display: flex; align-items: flex-start; gap: 5rem; margin-left: 7rem; flex: 1; }
.nav__group { display: flex; flex-direction: column; gap: .1em; line-height: 1.25; }
.nav__group a { padding-left: 1.1em; color: var(--smoke); transition: color .25s, background-size .45s cubic-bezier(.7,0,.2,1); }
.nav__group a:hover { color: var(--bone); }
.nav__label { display: flex; align-items: center; gap: .5em; color: var(--bone); }
.nav__clock { display: flex; gap: .6em; align-items: flex-start; color: var(--smoke); }
.clock-box {
  border: 1px solid var(--grey-24); padding: .15em .4em; font-size: .6rem; color: var(--bone);
  font-family: "JetBrains Mono", monospace; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.nav__toggle {
  align-self: center; border: 1px solid var(--grey-24); padding: .45em .9em; font-size: .75rem;
  transition: background .3s, color .3s, border-color .3s;
}
.nav__toggle:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--grey); color: var(--black);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.7,0,.2,1);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__list { list-style: none; text-align: center; }
.menu__list a { font-family: var(--font-heading); font-size: 5rem; line-height: 1.05; letter-spacing: -0.05em; }
.menu__list a:hover { color: var(--smoke); }
.menu__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; background: var(--ink); color: var(--bone);
  padding: .8em 1em; font-size: .8rem;
}

/* ===== HUD: one floating control surface =====
   Contact, journey progress and sound share a single glass pill, so nothing
   floats over content independently; the footer reserves exactly this height. */
:root { --hud-h: 3.4rem; --hud-gap: 1.1rem; }
.hud {
  position: fixed; left: 0; right: 0; bottom: calc(var(--hud-gap) + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 0 auto;
  display: flex; align-items: stretch; gap: .3rem; padding: .3rem; height: var(--hud-h);
  border-radius: 999px; font-size: .7rem; color: var(--bone);
  background: rgba(12, 15, 12, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--grey-24);
  box-shadow: 0 1.2rem 3rem -1rem rgba(0,0,0,.85), inset 0 1px 0 rgba(201,206,195,.08);
}
.hud > * { border-radius: 999px; display: flex; align-items: center; }

.hud__cta {
  gap: 1.1rem; padding: 0 1.1rem 0 1.3rem; background: var(--bone); color: var(--ink);
  font-family: var(--font-heading); font-size: .85rem; transition: background .3s;
}
.hud__cta:hover { background: var(--phosphor); }
.hud__arrow { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.hud__cta:hover .hud__arrow { transform: translateX(.3rem); }

.hud__chapter {
  position: relative; overflow: hidden; gap: .9rem; padding: 0 1.1rem 0 .3rem;
  background: var(--ink-3); color: var(--bone); cursor: pointer; border: 0; font: inherit; font-size: .7rem;
}
.hud__mark {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--phosphor); color: var(--ink); font-family: var(--font-heading); font-size: .9rem;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hud__chapter:hover .hud__mark { transform: rotate(-90deg); }
.dock__chapter { min-width: 11.5em; text-align: left; letter-spacing: 0; }
.dock__progress { font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--smoke); }
.hud__progress { position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 2px; background: var(--grey-24); }
.hud__progress i { display: block; height: 100%; background: var(--phosphor); transform-origin: left; transform: scaleX(0); }

.hud__player { background: var(--ink-3); padding: 0 .3rem; gap: 0; }
.player > * { padding: 0 .8rem; height: 100%; display: flex; align-items: center; border-radius: 999px; }
.player__toggle { gap: .6em; }
.player__toggle:hover, .player__next:hover { background: var(--bone); color: var(--ink); }
.player__info { flex-direction: column; justify-content: center; align-items: flex-start; line-height: 1.15; min-width: 9.5em; }
.player__title { white-space: nowrap; }
.player__artist { opacity: .55; }
.player__next { font-size: .9rem; }

.bars { display: flex; align-items: flex-end; gap: 2px; height: .9em; }
.bars i { display: block; width: 2px; height: 30%; background: currentColor; transition: height .3s; }
.player.is-playing .bars i { animation: eq 1s ease-in-out infinite; }
.player.is-playing .bars i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.player.is-playing .bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.2s; }
.player.is-playing .bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ===== Placeholder media ===== */
.ph {
  --h: 355;
  position: absolute; inset: 0;
  /* monochrome phosphor placeholders; --h now just shifts brightness per card */
  --l: calc(22% + var(--h) * 0.05%);
  background:
    radial-gradient(120% 90% at 30% 20%, hsl(95 9% var(--l)) 0%, transparent 60%),
    radial-gradient(90% 80% at 80% 90%, hsl(100 7% 12%) 0%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(5,7,5,.35) 0 1px, transparent 1px 3px),
    hsl(100 10% 5%);
  display: grid; place-items: center;
}
.ph span { font-size: .7rem; opacity: .5; color: var(--grey); }
.ph--hover { opacity: 0; transition: opacity .4s; }

/* ===== Hero ===== */
.hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: flex; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--black); }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 25%; will-change: transform;
}
/* soft vignette that melts the video into the ink surface below */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5,7,5,.55) 100%),
    linear-gradient(to top, var(--ink-2) 0%, rgba(12,15,12,.6) 18%, rgba(5,7,5,0) 45%);
}
.hero__content {
  position: relative; z-index: 2; margin-top: auto; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 4rem;
  padding-bottom: 3rem;
}
.corners i { position: absolute; width: 5px; height: 5px; background: var(--grey); z-index: 2; }
.corners i:nth-child(1) { left: 33.33%; top: 80%; }
.corners i:nth-child(2) { left: 66.66%; top: 80%; }
.corners i:nth-child(3) { left: 33.33%; bottom: 2rem; }
.corners i:nth-child(4) { left: 66.66%; bottom: 2rem; }

/* ===== Manifesto ===== */
.manifesto { padding: 14rem var(--gutter); display: flex; flex-direction: column; gap: 10rem; align-items: center; }
.guides { position: absolute; inset: 0; pointer-events: none; }
.guides i { position: absolute; top: 0; bottom: 0; width: 1px; }
.guides i:nth-child(1) { left: 33.33%; }
.guides i:nth-child(2) { left: 50%; }
.guides i:nth-child(3) { left: 66.66%; }
.guides i::before, .guides i::after { content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: var(--smoke); }
.guides i::before { top: 1rem; } .guides i::after { bottom: 1rem; }




/* ===== Block (Works / Insights) ===== */
.block { padding: 8rem 0 6rem; }
.block__head {
  display: grid; grid-template-columns: 1fr 2fr 2fr 1.5fr; align-items: start;
  padding: 0 var(--gutter); margin-bottom: 12rem;
}
.block__meta { display: flex; flex-direction: column; gap: .8rem; }
.block__intro { grid-column: 3 / 4; margin-top: 10rem; }

.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5rem 1px; padding: 0 var(--gutter); }
.case { display: flex; flex-direction: column; gap: .15em; }
.case--s { grid-column: span 3; }
.case--m { grid-column: span 6; }
.case--w { grid-column: span 12; }
.case--s:nth-child(2) { grid-column: span 3; }
.case:nth-child(3) { grid-column: span 6; }
.case:nth-child(4), .case:nth-child(5) { grid-column: span 6; }
.case__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: .6rem; }
.case--m .case__img { aspect-ratio: 8 / 5; }
.case:nth-child(4) .case__img, .case:nth-child(5) .case__img { aspect-ratio: 4 / 5; }
.case--w .case__img { aspect-ratio: 21 / 9; }
.case__img .ph { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.case:hover .ph--hover, .insight:hover .ph--hover { opacity: 1; }
.case:hover .case__img .ph, .insight:hover .case__img .ph { transform: scale(1.06); }

/* ===== The Log (experience) ===== */
.log__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 0 var(--gutter); margin: -6rem 0 6rem;
}
.log__stat { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.4rem 1.4rem; min-height: 11rem; }
.log__stat .xs { color: rgba(5,7,5,.6); }
.log__stat strong {
  font-family: var(--font-heading); font-weight: 500; font-size: 4rem; line-height: .9;
  letter-spacing: -0.05em; margin-top: auto; font-variant-numeric: tabular-nums;
}
.log__stat > span:last-child { font-size: .8rem; line-height: 1.25; color: rgba(5,7,5,.72); }

.log__list { list-style: none; margin: 0 var(--gutter); border-top: 1px solid var(--border); }
.log__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 3.2rem 1.6fr 1.2fr 11rem 2.2rem; align-items: center; column-gap: 1rem;
  padding: 1.5rem .8rem; border-bottom: 1px solid var(--border);
  transition: color .45s cubic-bezier(.2,.8,.2,1);
}
/* phosphor fill wipes up from the baseline on hover */
.log__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: .4rem;
  background: linear-gradient(135deg, #bccbad 0%, var(--phosphor) 50%, #98a98a 100%);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.7,0,.2,1);
}
.log__row:hover { color: var(--ink); }
.log__row:hover::before { transform: scaleY(1); }
.log__no { font-size: .65rem; color: var(--smoke); transition: color .3s; }
.log__role { font-family: var(--font-heading); font-size: 1.7rem; line-height: 1.05; letter-spacing: -0.04em; }
.log__org { color: var(--smoke); font-size: 1rem; transition: color .3s; }
.log__date { font-size: .65rem; color: var(--smoke); text-align: right; transition: color .3s; }
.log__row:hover .log__no, .log__row:hover .log__org, .log__row:hover .log__date { color: rgba(5,7,5,.65); }
.log__go { justify-self: end; font-size: 1.1rem; transform: rotate(-45deg) scale(.6); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.log__row:hover .log__go { transform: none; opacity: 1; }
/* description unfolds under the role */
.log__desc { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1); }
.log__desc > p { overflow: hidden; font-size: .95rem; line-height: 1.35; max-width: 42rem; opacity: 0; transition: opacity .4s, padding .55s; }
.log__row:hover .log__desc { grid-template-rows: 1fr; }
.log__row:hover .log__desc > p { opacity: .8; padding-top: .7rem; }

/* ===== Services: "The Passage" ===== */
.services { padding: 10rem var(--gutter) 9rem; overflow: hidden; }
.services__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: center;
  max-width: 120rem; margin: 0 auto;
}
.slider { position: relative; width: 100%; display: grid; }
.slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 2.4rem;
  visibility: hidden; pointer-events: none;
}
.slide.is-active { visibility: visible; pointer-events: auto; }
.services__controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 3rem; }
.services__index { color: var(--smoke); font-variant-numeric: tabular-nums; }
.slider__btn {
  width: 3rem; height: 3rem; border: 1px solid var(--border); border-radius: 50%;
  font-size: 1.1rem; transition: background .25s, color .25s, border-color .25s;
}
.slider__btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.services__pass { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; perspective: 1400px; }
.services__hint { color: var(--smoke); }

/* ===== Boarding pass ===== */
.pass { display: block; width: 100%; max-width: 50rem; }
.pass__card {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: 1fr 12rem;
  color: var(--ink); border-radius: 1.1rem; overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, #d3dcc8 0%, transparent 55%),
    linear-gradient(135deg, #bccbad 0%, var(--phosphor) 45%, #98a98a 100%);
  box-shadow: 0 2.5rem 5rem -1.5rem rgba(0,0,0,.8), 0 0 0 1px rgba(201,206,195,.25) inset;
  transform-style: preserve-3d; will-change: transform;
}
/* perforation notches: two "bites" out of the card at the tear line */
.pass__card::before, .pass__card::after {
  content: ""; position: absolute; right: calc(12rem - 1.1rem); width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--ink-2); z-index: 3;
}
.pass__card::before { top: -1.1rem; }
.pass__card::after { bottom: -1.1rem; }

.pass__main { position: relative; z-index: 2; padding: 2rem 2.4rem 1.8rem; display: flex; flex-direction: column; gap: 1.8rem; }
.pass__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pass__head .xs { opacity: .65; }
.pass__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-size: 1.1rem; }
.pass__brand img { width: 1.8rem; height: auto; filter: invert(1) brightness(.15); }

.pass__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem; }
.pass__stop { display: flex; flex-direction: column; gap: .3rem; }
.pass__stop--to { text-align: right; align-items: flex-end; }
.pass__city { font-family: var(--font-heading); font-weight: 500; font-size: 4.2rem; line-height: .85; letter-spacing: -0.05em; }
.pass__path { position: relative; height: 2.4rem; }
.pass__dots {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(to right, rgba(5,7,5,.55) 0 .35rem, transparent .35rem .8rem);
}
.pass__plane {
  position: absolute; top: 50%; left: 0; width: 2.4rem; height: auto; transform: translate(-10%, -50%);
  filter: invert(1) brightness(.12); transition: left 1.2s cubic-bezier(.7,0,.2,1);
}
.pass:hover .pass__plane { left: calc(100% - 2.4rem); }

.pass__fields { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(5,7,5,.18); padding-top: 1.2rem; }
.pass__fields dt { font-family: "JetBrains Mono", monospace; font-size: .55rem; letter-spacing: 0; text-transform: uppercase; opacity: .55; margin-bottom: .25rem; }
.pass__fields dd { font-size: 1.05rem; }
.pass__status { display: flex; align-items: center; gap: .4em; }
.pass__status i { width: .5em; height: .5em; border-radius: 50%; background: var(--ink); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.pass__cta {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: var(--bone); padding: 1rem 1.3rem; border-radius: .6rem;
  font-family: var(--font-heading); font-size: 1.3rem;
}
.pass__arrow { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pass:hover .pass__arrow { transform: translateX(.5rem); }

/* stub: tears slightly away from the main card on hover */
.pass__stub {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 2rem 1.2rem 1.6rem; border-left: 2px dashed rgba(5,7,5,.35);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.pass:hover .pass__stub { transform: translateX(.9rem) rotate(3deg); }
.pass__admit {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-heading); font-size: 1.9rem; letter-spacing: -0.03em; text-transform: uppercase;
}
.pass__barcode { display: flex; align-items: stretch; gap: 2px; height: 4.2rem; width: 100%; }
.pass__barcode i { background: var(--ink); }
/* punched hole left by clicking the pass */
.pass__hole {
  position: absolute; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ink-2);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6); transform: translate(-50%, -50%) scale(0); z-index: 4;
}

/* holographic sheen + paper grain */
.pass__sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: overlay; opacity: 0;
  background:
    radial-gradient(40rem circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 40%),
    conic-gradient(from 90deg at var(--mx) var(--my), rgba(255,255,255,0), rgba(210,240,200,.35), rgba(255,255,255,0), rgba(190,210,255,.25), rgba(255,255,255,0));
  transition: opacity .4s;
}
.pass:hover .pass__sheen { opacity: 1; }
.pass__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(5,7,5,.06) 0 1px, transparent 1px 3px);
}

/* ===== Insights ===== */
.insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0 var(--gutter); }
.insight { position: relative; display: flex; flex-direction: column; gap: .15em; }
.insight .case__img { aspect-ratio: 3 / 4; }
.insight .l:nth-of-type(2) { margin-bottom: 1rem; }
.plus { position: absolute; top: .5rem; right: .7rem; z-index: 2; color: var(--grey); font-size: 1.2rem; }

/* ===== Footer ===== */
.footer { padding: 0 var(--gutter) calc(var(--hud-h) + var(--hud-gap) * 2 + 1rem); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; }
.footer__cell {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .4em;
  height: 12rem; font-size: 2rem;
}
.footer__cell::before, .footer__cell::after {
  content: ""; position: absolute; top: -2px; width: 5px; height: 5px; background: var(--grey);
}
.footer__cell::before { left: 0; } .footer__cell::after { right: 0; }
.footer__cell:nth-child(odd)::after { display: none; }
a.footer__cell span { transition: transform .3s; }
a.footer__cell:hover span { transform: translateX(.3em); }
a.footer__cell:hover { color: #eef2ea; }

/* "End of transmission" line — fills the space above the lockup */
.footer__end {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
  margin: 7rem 0 2rem; color: var(--smoke);
}
.footer__end > :last-child { justify-self: end; }
.footer__end-line { color: var(--bone); text-align: center; }

/* Giant name lockup: T [logo] R U N  K M — the same mark that opened the site closes it */
.footer__band {
  position: relative; overflow: hidden; border-radius: .8rem;
  background:
    repeating-linear-gradient(0deg, rgba(180,196,164,.05) 0 1px, transparent 1px 4px),
    radial-gradient(80% 140% at 50% 120%, rgba(180,196,164,.22), transparent 60%),
    var(--ink-3);
  border: 1px solid var(--grey-24);
  padding: 3.5rem 1rem 2.6rem;
}
.footer__name {
  display: flex; justify-content: center; align-items: flex-end; overflow: hidden;
  font-family: var(--font-heading); font-weight: 500; color: var(--bone);
  font-size: 17vw; line-height: .8; letter-spacing: -0.05em; white-space: nowrap;
  padding-bottom: .04em;
}
.footer__name .ch { display: inline-block; will-change: transform; }
.footer__name .ch--space { width: .26em; }
.footer__logo { height: 1.06em; width: auto; display: block; margin: 0 .01em; will-change: transform; }
.footer__bottom { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 1.5rem; }
.footer__bottom > * { font-size: 1.1rem; line-height: 1.1; border-left: 1px solid var(--border); padding: .4rem 0; }
.footer__bottom > *:first-child { border-left: 0; }

/* ===== Loader ===== */
body.is-loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 100;
  color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
}
/* frosted ink veil over the hero video, which is already playing underneath */
.loader__veil {
  position: absolute; inset: 0; z-index: 0;
  background: rgba(5, 7, 5, .9);
  -webkit-backdrop-filter: blur(28px) saturate(.6);
  backdrop-filter: blur(28px) saturate(.6);
}
/* faint scanlines — a nod to the video's terminal texture */
.loader__veil::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(201,206,195,.035) 0 1px, transparent 1px 4px);
}
.loader__top, .loader__bottom, .loader__center { position: relative; z-index: 2; }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; opacity: 0; }
.loader__top .xs, .loader__bottom .xs { opacity: .55; }

.loader__center { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.loader__name {
  display: flex; justify-content: center; align-items: flex-end;
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(3.5rem, 13vw, 16rem); line-height: .8; letter-spacing: -0.05em;
}
.lt { display: block; overflow: hidden; padding: .02em .01em .04em; }
.lt > span, .lt > img { display: block; transform: translateY(110%); }
.lt--space { width: .28em; }
.lt--logo { align-self: stretch; display: flex; align-items: flex-end; padding: 0 .02em .04em; }
.lt--logo img { height: 1.06em; width: auto; }

/* one thin line, one counter */
.loader__meta {
  display: grid; grid-template-columns: 1fr minmax(8rem, 22rem) 1fr; align-items: center; gap: 1.2rem;
  width: min(100%, 60rem); opacity: 0;
}
.loader__meta > .xs:first-child { justify-self: end; opacity: .55; }
.loader__line { position: relative; height: 1px; background: var(--grey-24); overflow: hidden; }
.loader__line i {
  position: absolute; inset: 0; background: var(--bone); transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(180,196,164,.6);
}
.loader__count { font-variant-numeric: tabular-nums; justify-self: start; }
.mono { font-family: "JetBrains Mono", monospace; letter-spacing: 0; }

/* clone of the logo that flies from the loader into the nav */
.loader__fly { position: fixed; z-index: 101; transform-origin: 0 0; pointer-events: none; }
.loader__fly--txt {
  font-family: var(--font-heading); font-weight: 500; line-height: .8; letter-spacing: -0.05em;
  color: var(--bone); white-space: nowrap; will-change: transform;
}
body.is-loading .nav__logo-img, body.is-loading .nav__km { opacity: 0; }

/* ===== Motion helpers ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line__in { display: block; will-change: transform; }
.w { display: inline-block; }
.ch { display: inline-block; will-change: transform; }

.case__inner { position: absolute; inset: -8% 0; will-change: transform; }
.menu__list li { overflow: hidden; }
.menu__list a { display: inline-block; }

/* Custom cursor — a white disc in difference mode inverts whatever is beneath it */
.cursor {
  --s: 12px;
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .5s cubic-bezier(.2,.8,.2,1), height .5s cubic-bezier(.2,.8,.2,1), margin .5s cubic-bezier(.2,.8,.2,1), border-radius .4s;
}
/* black text inside a difference layer = a knockout that shows the original colours */
.cursor span {
  font-family: "JetBrains Mono", monospace; font-size: .7rem; letter-spacing: 0;
  color: #000; opacity: 0; transition: opacity .2s; text-transform: uppercase;
}
.cursor.is-link  { --s: 48px; }
.cursor.is-major { --s: 130px; }
.cursor.is-view  { --s: 120px; }
.cursor.is-text  { --s: 6px; border-radius: 1px; width: 3px; height: 2.4em; margin: -1.2em 0 0 -1.5px; }
.cursor.is-view span { opacity: 1; }
.cursor.is-down { --s: 8px; }
.cursor.is-hidden { opacity: 0; }
.cursor-trail {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 119;
  pointer-events: none; mix-blend-mode: difference;
}
/* native cursor hidden only when the custom one is active */
html.has-cursor, html.has-cursor * { cursor: none !important; }
@media (pointer: coarse) { .cursor, .cursor-trail { display: none; } }

/* ===== ASCII pieces ===== */
.mono { font-family: "JetBrains Mono", monospace; letter-spacing: 0; }
.sc { display: inline-block; }
.ascii-overlay { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* Interactive ASCII band */
.ascii-band { min-height: 90vh; display: grid; place-items: center; overflow: hidden; background: var(--ink); }
.ascii-band__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ascii-band__content {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2rem;
  pointer-events: none; text-shadow: 0 0 1.5rem var(--ink), 0 0 .5rem var(--ink);
}
.ascii-band__content .xs, .ascii-band__content .m { font-family: "JetBrains Mono", monospace; letter-spacing: 0; opacity: .75; }
.ascii-band .h-xl { font-size: 4.5rem; }

/* ===== Continuity: sections melt into each other instead of cutting ===== */
.ascii-band__canvas {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.ascii-band { background: linear-gradient(to bottom, var(--ink-2), var(--ink) 20%, var(--ink) 80%, var(--ink-2)); }
.footer { background: linear-gradient(to bottom, var(--ink-2) 0, var(--ink) 14rem); }
.manifesto, .block, .services { background: var(--ink-2); }

/* ===== Chapter labels (inserted by JS at the top of each section) ===== */
.chapter {
  position: absolute; top: 2.2rem; left: var(--gutter); right: var(--gutter); z-index: 3;
  display: flex; align-items: center; gap: 1rem; pointer-events: none;
  font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: 0; color: var(--smoke);
}
.chapter__no { color: var(--phosphor); }
.chapter__rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--grey-24), transparent); transform-origin: left; }
.hero .chapter { top: auto; bottom: 7.5rem; }

/* ===== Artifact cards — pass material, not pass format =====
   Same phosphor stock, ink print, scanline grain and holo sheen as the boarding pass,
   but shaped as instruments: readouts, specimens, a terminal, a status slip. */
.signal, .spec, .term, .avail, .log__stat {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--ink); border-radius: 1rem;
  background:
    radial-gradient(120% 140% at 0% 0%, #d3dcc8 0%, transparent 55%),
    linear-gradient(135deg, #bccbad 0%, var(--phosphor) 45%, #98a98a 100%);
  box-shadow: 0 1.8rem 3.5rem -1.4rem rgba(0,0,0,.85), 0 0 0 1px rgba(201,206,195,.25) inset;
}
/* grain */
.signal::before, .spec::before, .term::before, .avail::before, .log__stat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4; mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(5,7,5,.06) 0 1px, transparent 1px 3px);
}
/* holographic sheen that follows the pointer */
.signal::after, .spec::after, .term::after, .avail::after, .log__stat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0;
  background:
    radial-gradient(28rem circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 40%),
    conic-gradient(from 90deg at var(--mx) var(--my), rgba(255,255,255,0), rgba(210,240,200,.35), rgba(255,255,255,0), rgba(190,210,255,.25), rgba(255,255,255,0));
  transition: opacity .4s;
}
.signal:hover::after, .spec:hover::after, .term:hover::after, .avail:hover::after, .log__stat:hover::after { opacity: 1; }
/* registration marks: tiny print-shop corners */
.card-marks { position: absolute; inset: .45rem; pointer-events: none; }
.card-marks i { position: absolute; width: .45rem; height: .45rem; border: 1px solid rgba(5,7,5,.35); }
.card-marks i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.card-marks i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.card-marks i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.card-marks i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.signal__head, .spec__head, .avail__head {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 1px solid rgba(5,7,5,.18); color: rgba(5,7,5,.6);
}

/* Hero — live signal */
.signal {
  position: absolute; right: var(--gutter); bottom: calc(var(--hud-h) + var(--hud-gap) * 2 + 2rem); z-index: 3;
  width: 19rem; padding: 1rem 1.1rem;
}
.signal__head { justify-content: flex-start; }
.signal__freq { margin-left: auto; color: var(--ink); }
.signal__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 .2rem rgba(5,7,5,.12); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.signal__wave { font-size: .7rem; line-height: 1.05; color: var(--ink); background: rgba(5,7,5,.07); border-radius: .4rem; padding: .5rem .4rem; margin: 0 0 .8rem; white-space: pre; overflow: hidden; }
.signal__rows, .avail__rows { display: grid; gap: .35rem; }
.signal__rows div, .avail__rows div { display: flex; justify-content: space-between; gap: 1rem; }
.signal__rows dt, .avail__rows dt { color: rgba(5,7,5,.55); }

/* Manifesto — specimen cards */
.spec { position: absolute; z-index: 2; width: 15rem; padding: 1rem 1.1rem; transform-style: preserve-3d; }
.spec--palette { left: 4%; top: 22%; }
.spec--type { right: 4%; top: 56%; }
.spec__swatches { list-style: none; display: grid; gap: .45rem; }
.spec__swatches li { display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; gap: .6rem; font-size: .75rem; }
.spec__swatches i { width: 1.4rem; height: 1.4rem; border-radius: .35rem; background: var(--c); border: 1px solid rgba(5,7,5,.35); }
.spec__swatches code { font-family: "JetBrains Mono", monospace; font-size: .6rem; color: rgba(5,7,5,.6); }
.spec__foot { margin-top: .8rem; color: rgba(5,7,5,.55); }
.spec__glyph { font-family: var(--font-heading); font-size: 6rem; line-height: .9; letter-spacing: -0.06em; margin: .2rem 0 .8rem; }
.spec__fonts { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.spec__fonts .mono { font-size: .7rem; color: rgba(5,7,5,.6); }
.spec__scale { display: flex; justify-content: space-between; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid rgba(5,7,5,.18); color: rgba(5,7,5,.6); }

/* ASCII band — terminal */
.term { position: absolute; left: var(--gutter); bottom: 5rem; z-index: 2; width: 24rem; overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid rgba(5,7,5,.18); color: rgba(5,7,5,.6); }
.term__bar i { width: .55rem; height: .55rem; border-radius: 50%; border: 1px solid rgba(5,7,5,.5); }
.term__bar i:first-child { background: var(--ink); }
.term__bar span { margin-left: .5rem; }
.term__body { font-size: .7rem; line-height: 1.6; padding: .8rem 1rem 1rem; min-height: 8.5em; margin: 0; white-space: pre-wrap; }
.term__body { background: rgba(5,7,5,.06); }
.term__body .ok { color: rgba(5,7,5,.62); }
.term__caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--ink); animation: blink 1s steps(2, start) infinite; }

/* Footer — availability card in the fourth cell */
.footer__cell--card { padding: 1rem; }
.avail { width: min(100%, 24rem); padding: 1.1rem 1.2rem; }
.avail__status { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: -0.04em; margin-bottom: .9rem; }
.avail__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 .22rem rgba(5,7,5,.12); animation: pulse 1.8s ease-in-out infinite; }
.avail__months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 1rem; }
.avail__months span { display: grid; place-items: center; height: 1.6rem; border-radius: .3rem; font-family: "JetBrains Mono", monospace; font-size: .5rem; letter-spacing: 0; background: rgba(5,7,5,.06); color: rgba(5,7,5,.6); border: 1px solid rgba(5,7,5,.18); }
.avail__months span.is-booked { background: repeating-linear-gradient(45deg, rgba(5,7,5,.35) 0 2px, transparent 2px 5px); color: var(--ink); }
.avail__months span.is-now { background: var(--ink); color: var(--phosphor); border-color: var(--ink); }

/* Works — case tags */
.case__tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: .55rem; letter-spacing: 0;
  background: rgba(5,7,5,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--grey-24); color: var(--bone);
}
.case__tag b { color: var(--phosphor); font-weight: 500; }
.case__go {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; pointer-events: none;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bone); color: var(--ink); font-size: .9rem;
  transform: scale(0) rotate(-45deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.case:hover .case__go { transform: scale(1) rotate(0deg); }

/* ===== Hover upgrades ===== */
.btn {
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0%;
  transition: background-size .5s cubic-bezier(.7,0,.2,1), color .3s;
}
.btn:hover { background-color: var(--ink); background-size: 100% 100%; color: var(--on-brand); }

.nav__group a {
  background: linear-gradient(currentColor, currentColor) no-repeat 1.1em 100% / 0 1px;
  transition: background-size .45s cubic-bezier(.7,0,.2,1), opacity .2s;
}
.nav__group a:hover { text-decoration: none; background-size: calc(100% - 1.1em) 1px; }

.menu__list a { position: relative; transition: color .3s, transform .5s cubic-bezier(.2,.8,.2,1); }
.menu__list a::before {
  content: ">_"; position: absolute; right: 100%; top: 50%; transform: translate(-.2em, -50%);
  font-family: "JetBrains Mono", monospace; font-size: .35em; letter-spacing: 0; opacity: 0; transition: opacity .3s;
}
.menu__list a:hover::before { opacity: 1; }

.case h4, .insight h4 { transition: color .3s; }
.case:hover h4, .insight:hover h4 { color: var(--brand); }
.case p.l, .insight p.l { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.case:hover p.l { transform: translateX(.6rem); }
.case__img { transform-style: preserve-3d; }

.footer__cell .sc { transition: letter-spacing .5s cubic-bezier(.2,.8,.2,1); }
a.footer__cell:hover .sc { letter-spacing: -0.01em; }
.footer__name .ch { transition: color .3s; }
.footer__name .ch:hover { color: transparent; -webkit-text-stroke: 2px var(--phosphor); }
.footer__bottom a { transition: color .3s; }
.footer__bottom a:hover { color: var(--phosphor); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .nav__groups { display: none; }
  .h-xl { font-size: 1.8rem; }
  .h-l { font-size: 1.3rem; }
  .manifesto { padding: 8rem var(--gutter); gap: 6rem; }
  .block__head { grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 4rem; }
  .block__intro { grid-column: 1 / -1; margin-top: 2rem; }
  .cases { grid-template-columns: 1fr 1fr; gap: 3rem 1px; }
  .cases .case { grid-column: span 1 !important; }
  .cases .case--w { grid-column: 1 / -1 !important; }
  .case .case__img { aspect-ratio: 4 / 5 !important; }
  .insights { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .services__grid { grid-template-columns: 1fr; gap: 4rem; }
  .pass__card { grid-template-columns: 1fr 7rem; }
  .pass__card::before, .pass__card::after { right: calc(7rem - 1.1rem); }
  .pass__city { font-size: 2.6rem; }
  .pass__fields { grid-template-columns: repeat(3, auto); }
  .pass__admit { font-size: 1.2rem; }
  .footer__end { grid-template-columns: 1fr; text-align: center; }
  .footer__end > :last-child { justify-self: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cell { height: 7rem; font-size: 1.3rem; }
  .footer__bottom { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .menu__list a { font-size: 2.6rem; }
}
@media (max-width: 560px) {
  .hud__cta .sc, .dock__progress, .player__info, .player__state { display: none; }
  .dock__chapter { min-width: 0; }
  .player__info { display: none; }
  .ascii-band .h-xl { font-size: 2.2rem; }
  .cases, .insights { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }


}


/* =====================================================================
   Mobile & touch — the same story, re-composed for one column
   ===================================================================== */
@media (max-width: 991px) {
  .h-xl { font-size: 2rem; }
  .ascii-band .h-xl { font-size: 2.6rem; }

  /* nav: logo + Discover only, sized for thumbs */
  .nav { padding: .6rem var(--gutter); }
  .nav__logo { --logo: 2.8rem; }
  .nav__toggle { padding: .7em 1.1em; font-size: .8rem; }

  /* chapter labels: keep number + title, drop the long line */
  .chapter { top: 1.4rem; }
  .chapter__line { display: none; }
  .hero .chapter { top: 4.6rem; bottom: auto; }

  /* hero: signal becomes a compact readout under the nav */
  .hero__content { gap: 2.4rem; padding-bottom: calc(var(--hud-h) + var(--hud-gap) * 2 + 1.6rem); }
  /* signal card moves (via JS) into the manifesto flow, above the first statement */
  .signal.signal--inline {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    order: -1; width: 100%; max-width: 26rem; margin: -4rem auto 0; padding: 1rem 1.1rem;
  }
  .signal--inline .signal__wave { font-size: .62rem; }

  /* manifesto: specimen cards join the flow, side by side */
  .manifesto { flex-wrap: wrap; flex-direction: row; justify-content: center; gap: 5rem 1rem; }
  .manifesto h3 { flex-basis: 100%; }
  .spec { position: relative; left: auto; right: auto; top: auto; order: 10; width: calc(50% - .5rem); max-width: 18rem; }

  /* works / insights */
  .block { padding: 6rem 0 5rem; }
  .cases { gap: 2.5rem .75rem; }

  /* services + pass */
  .services { padding: 7rem var(--gutter) 6rem; }
  .services__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .pass { max-width: 34rem; }

  /* the static: terminal sits under the copy */
  .ascii-band { display: flex; flex-direction: column; justify-content: center; gap: 3rem; padding: 7rem var(--gutter); min-height: 80svh; }
  .term { position: relative; left: auto; bottom: auto; order: 2; width: 100%; max-width: 26rem; }

  /* footer */
  .footer__cell--card { height: auto; padding: 1.5rem 0; }
  .avail { width: 100%; max-width: 30rem; }
  .footer__band { padding: 2.2rem .6rem 1.6rem; }
  .footer__bottom { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .footer__bottom > * { border-left: 0; border-top: 1px solid var(--border); padding-top: .8rem; }
}

@media (max-width: 560px) {
  .h-xl { font-size: 1.7rem; }
  .ascii-band .h-xl { font-size: 2.1rem; }
  .l { font-size: 1rem; }

  .spec { width: 100%; max-width: 22rem; }

  /* pass: portrait layout — stub drops below, tear line runs across */
  .pass__card { --stub-h: 6.2rem; grid-template-columns: 1fr; grid-template-rows: 1fr var(--stub-h); border-radius: 1rem; }
  .pass__card::before, .pass__card::after { top: auto; right: auto; bottom: calc(var(--stub-h) - 1.1rem); }
  .pass__card::before { left: -1.1rem; }
  .pass__card::after { right: -1.1rem; }
  .pass__main { padding: 1.4rem 1.3rem 1.3rem; gap: 1.3rem; }
  .pass__head { flex-wrap: wrap; row-gap: .4rem; }
  .pass__route { gap: .7rem; }
  .pass__city { font-size: 2.3rem; }
  .pass__stop .dim:last-child { display: none; }
  .pass__plane { width: 1.8rem; }
  .pass__fields { grid-template-columns: repeat(3, 1fr); gap: .8rem .6rem; }
  .pass__fields dd { font-size: .9rem; }
  .pass__cta { font-size: 1.05rem; padding: .9rem 1rem; }
  .pass__stub { flex-direction: row; align-items: center; padding: 1rem 1.3rem; border-left: 0; border-top: 2px dashed rgba(5,7,5,.35); }
  .pass:hover .pass__stub { transform: none; }
  .pass__admit { writing-mode: horizontal-tb; transform: none; font-size: 1.1rem; white-space: nowrap; }
  .pass__barcode { height: 2.6rem; flex: 1; }

  .footer__cell { height: 6rem; font-size: 1.15rem; }
  .footer__end { margin: 4rem 0 1.5rem; gap: .8rem; }
  .footer__bottom > * { font-size: .95rem; }
  .avail__status { font-size: 1.35rem; }
  .avail__months span { height: 1.4rem; }

  /* HUD fits a 320px phone */
  .hud { gap: .25rem; padding: .25rem; }
  .hud__cta { padding: 0 1rem; }
  .hud__chapter { gap: .6rem; padding-right: .9rem; }
  .dock__chapter { font-size: .65rem; }
}

/* touch: no hover-only states left "stuck" after a tap */
@media (hover: none) {
  .case:hover p.l { transform: none; }
  .pass:hover .pass__plane { left: 0; }
  .case__go { transform: scale(1) rotate(0deg); }
}


/* ----- The Log on smaller screens ----- */
@media (max-width: 991px) {
  .log__stats { grid-template-columns: 1fr 1fr; margin: -2rem 0 4rem; gap: .75rem; }
  .log__stat { min-height: 9rem; }
  .log__stat strong { font-size: 2.8rem; }
  .log__row { grid-template-columns: 2.2rem 1fr auto; row-gap: .25rem; padding: 1.2rem .4rem; }
  .log__role { font-size: 1.3rem; grid-column: 2; }
  .log__org { grid-column: 2; grid-row: 2; font-size: .9rem; }
  .log__date { grid-column: 3; grid-row: 1; }
  .log__go { display: none; }
  .log__desc { grid-column: 2 / -1; }
}
@media (max-width: 560px) {
  .log__stat strong { font-size: 2.3rem; }
  .log__stat { padding: 1rem; }
}
/* touch: no hover, so the log reads open */
@media (hover: none) {
  .log__desc { grid-template-rows: 1fr; }
  .log__desc > p { opacity: .75; padding-top: .5rem; }
  .log__row::before { display: none; }
  .log__row:hover { color: inherit; }
}

/* ===== Collision fixes ===== */
/* the status card's cell grows with its content at every size (beats the fixed-height cell rules) */
.footer__cell.footer__cell--card { height: auto; min-height: 12rem; padding: 1.5rem 1rem; }
/* room for the chapter label above the first contact row */
.footer { padding-top: 5rem; }
@media (max-width: 991px) {
  .footer { padding-top: 4rem; }
  .footer__cell.footer__cell--card { min-height: 0; padding: 1.25rem 0 .5rem; }
  /* the chapter label already says "CH.07 — Arrival"; don't repeat it in the end line */
  .footer__end > :first-child { display: none; }
}
/* the stack line in The Static wraps instead of running off narrow screens */
.ascii-band__content { max-width: 100%; }
.ascii-band__content .m { white-space: normal; text-align: center; justify-content: center; flex-wrap: wrap; max-width: 44rem; line-height: 1.6; }
/* hero chapter line stops short of the signal card on desktop */
@media (min-width: 992px) { .hero .chapter { right: calc(var(--gutter) * 2 + 19rem); } }
/* pass stops: labels breathe above the big city names */
.pass__stop { gap: .5rem; }
.pass__city { line-height: .95; }
/* type specimen: font names get their own lines */
.spec__fonts { gap: .35rem; line-height: 1.3; }

/* ===== Alive: small continuous motion + tactile feedback ===== */
a, button { -webkit-tap-highlight-color: transparent; }
.btn:active, .hud__cta:active, .slider__btn:active, .nav__toggle:active, .player > button:active,
a.footer__cell:active, .footer__bottom a:active { transform: scale(.96); transition-duration: .1s; }
.log__row:active { background: rgba(180,196,164,.06); }

/* a scanning pulse travels along every chapter rule */
.chapter__rule { position: relative; overflow: hidden; }
.chapter__rule::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 5rem; height: 3px;
  background: linear-gradient(to right, transparent, var(--phosphor), transparent);
  animation: scan 4.5s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scan { from { transform: translateX(-6rem); } to { transform: translateX(110vw); } }

/* the pass idles like it's being held */
@keyframes hold { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-.4deg); } }
.services__pass { animation: hold 6s ease-in-out infinite; }
.services__pass:hover { animation-play-state: paused; }

/* HUD mark ticks round as chapters change (JS adds the rotation) */
.hud__mark { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .chapter__rule::after, .services__pass { animation: none !important; }
}

/* Footer lockup: the logo is 1.06em tall but the line box is .8em, so give the
   clipping mask headroom for the logo (the mask still hides the rise-in animation) */
.footer__name { padding-top: .3em; }
.footer__logo { margin-bottom: .01em; }
.footer__band { padding-top: 2.2rem; }
@media (max-width: 991px) {
  .footer__band { padding: 1.2rem .5rem 1.3rem; }
  .footer__name { font-size: 18.5vw; }
  .footer__end { margin-bottom: 1.2rem; }
}

/* =====================================================================
   Own language — replaces the reference site's scaffolding
   ===================================================================== */
/* nav: numbered groups */
.nav__idx { font-family: "JetBrains Mono", monospace; font-size: .55rem; letter-spacing: 0; color: var(--phosphor); margin-right: .45em; }
/* section heads: bracketed indices */
.idx { font-family: "JetBrains Mono", monospace; font-size: .7em; letter-spacing: 0; color: var(--phosphor); }

/* hero: crosshair registration marks instead of square dots */
.corners i {
  width: 11px; height: 11px; margin: -5px 0 0 -5px; background:
    linear-gradient(var(--bone), var(--bone)) center / 1px 100% no-repeat,
    linear-gradient(var(--bone), var(--bone)) center / 100% 1px no-repeat;
  opacity: .7;
}

/* manifesto: a left-aligned reading column with numbered tags */
.manifesto { align-items: center; }
.stmt { width: min(100%, 44rem); display: flex; flex-direction: column; gap: 1.1rem; }
.stmt__tag { display: flex; align-items: center; gap: .8rem; color: var(--phosphor); }
.stmt__tag::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, var(--grey-24), transparent); }
.stmt__text { text-align: left; }

/* victories: numbered stamp instead of "+" */
.plus {
  top: .7rem; right: .7rem; padding: .3rem .55rem; border-radius: 999px;
  font-family: "JetBrains Mono", monospace; font-size: .55rem; letter-spacing: 0;
  background: rgba(5,7,5,.6); border: 1px solid var(--grey-24); color: var(--phosphor);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* footer: numbered channel list + status card */
.footer__channels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.channels { list-style: none; border-top: 1px solid var(--border); }
.channel {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 3rem 8rem 1fr 2.4rem; align-items: center; gap: 1rem;
  padding: 1.7rem .8rem; border-bottom: 1px solid var(--border);
  transition: color .45s cubic-bezier(.2,.8,.2,1);
}
.channel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: .4rem;
  background: linear-gradient(135deg, #bccbad 0%, var(--phosphor) 50%, #98a98a 100%);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.7,0,.2,1);
}
.channel:hover { color: var(--ink); }
.channel:hover::before { transform: scaleY(1); }
.channel__no, .channel__kind { font-family: "JetBrains Mono", monospace; font-size: .65rem; letter-spacing: 0; color: var(--smoke); transition: color .3s; }
.channel:hover .channel__no, .channel:hover .channel__kind { color: rgba(5,7,5,.6); }
.channel__value { font-family: var(--font-heading); font-size: 2.3rem; line-height: 1; letter-spacing: -0.04em; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.channel:hover .channel__value { transform: translateX(.6rem); }
.channel__go { justify-self: end; font-size: 1.2rem; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.channel:hover .channel__go { transform: rotate(45deg); }
.footer__status { display: flex; justify-content: flex-end; }

/* one quiet meta line under the lockup */
.footer__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem;
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace; font-size: .65rem; letter-spacing: 0; color: var(--smoke);
}
.footer__meta a { color: var(--bone); transition: color .3s; }
.footer__meta a:hover { color: var(--phosphor); }

@media (max-width: 991px) {
  .manifesto .stmt { flex-basis: 100%; }
  .footer__channels { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__status { justify-content: stretch; }
  .footer__status .avail { max-width: none; }
  .channel { grid-template-columns: 2.2rem 1fr auto; row-gap: .3rem; padding: 1.3rem .4rem; }
  .channel__kind { grid-column: 2; grid-row: 1; }
  .channel__value { grid-column: 2; grid-row: 2; font-size: 1.6rem; }
  .channel__go { grid-column: 3; grid-row: 1 / 3; }
  .footer__meta { justify-content: center; text-align: center; }
  .footer__meta-role { flex-basis: 100%; order: -1; }
}
@media (hover: none) {
  .channel::before { display: none; }
  .channel:hover { color: inherit; }
}

/* ===== The guardian (animated angel in The Static) ===== */
.angel {
  position: absolute; z-index: 1; right: 3%; top: 50%; transform: translateY(-50%);
  width: clamp(18rem, 30vw, 34rem); aspect-ratio: 640 / 566; margin: 0;
  pointer-events: none;
  /* a faint phosphor aura so the engraving separates from the ink */
  filter: drop-shadow(0 0 2.2rem rgba(180, 196, 164, .22)) drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, .6));
}
.angel video, .angel img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* the figure dissolves into the field at its feet — a real alpha fade, so the
   ASCII texture shows through instead of a painted gradient */
.angel video, .angel img {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
@media (max-width: 991px) {
  .angel {
    position: relative; right: auto; top: auto; transform: none; order: 0;
    width: min(78%, 22rem); margin: 0 auto -1.5rem;
  }
  .ascii-band__content { order: 1; }
}

/* =====================================================================
   The guardian, everywhere it appears — one visual language
   ===================================================================== */
.angel-slot { margin: 0; pointer-events: none; }
.angel-slot video, .angel-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Menu: an ink engraving pressed into the bone panel */
.menu__angel {
  position: absolute; z-index: 0; right: -6%; bottom: -8%;
  height: 95vh; aspect-ratio: 640 / 566; opacity: 0;
  filter: invert(1) contrast(1.1); mix-blend-mode: multiply;
}
.menu__list, .menu__bar { position: relative; z-index: 1; }


/* ===== Kinetic tickers ===== */
.ticker {
  position: relative; overflow: hidden; background: var(--ink-2);
  border-block: 1px solid var(--border); padding: 1.3rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__run { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; }
.ticker__item {
  font-family: var(--font-heading); font-weight: 500; font-size: 3.2rem; line-height: 1;
  letter-spacing: -0.045em; white-space: nowrap; color: var(--bone);
}
.ticker--b .ticker__item { color: transparent; -webkit-text-stroke: 1px var(--smoke); }
.ticker__sep {
  flex: none; width: .55rem; height: .55rem; transform: rotate(45deg) translateY(-.05rem);
  background: var(--phosphor); box-shadow: 0 0 .8rem rgba(180,196,164,.6);
}
.ticker:hover .ticker__item { color: var(--phosphor); -webkit-text-stroke: 0; transition: color .4s; }

/* ===== Film grain — the whole site sits on the same stock as the video ===== */
.grain {
  position: fixed; inset: -50%; z-index: 110; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

@media (max-width: 991px) {
  .menu__angel { height: 70vh; right: -25%; bottom: -4%; opacity: 0; }
  .ticker { padding: .9rem 0; }
  .ticker__item { font-size: 2rem; }
  .ticker__sep { width: .4rem; height: .4rem; }
  .ticker__run { gap: 1.4rem; padding-right: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}


/* the lockup band keeps its distance from the contact channels */
.footer__band { margin-top: 6rem; }
@media (max-width: 991px) { .footer__band { margin-top: 3.5rem; } }

/* =====================================================================
   Plates — the engravings, printed on bone paper like catalogue specimens.
   The artwork multiplies into the paper, so its white disappears and the
   ink + sage accents stay exactly as drawn.
   ===================================================================== */
.plate {
  --paper: #e6e3d8;
  background:
    radial-gradient(120% 90% at 50% 45%, #efece3 0%, var(--paper) 55%, #d6d2c4 100%);
  box-shadow: inset 0 0 0 1px rgba(5,7,5,.12), inset 0 0 3rem rgba(5,7,5,.18);
}
/* paper tooth */
.plate::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .08  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
.plate .case__inner { z-index: 0; }
.plate .art {
  position: absolute; inset: 7% 9% 14%; width: 82%; height: 79%; object-fit: contain;
  mix-blend-mode: multiply; filter: contrast(1.06);
  transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform 1.2s cubic-bezier(.2,.8,.2,1), filter .6s;
}
.plate .art--hover { opacity: 0; transform: scale(.96); }
.case:hover .plate .art { transform: scale(1.04); }
.case:hover .plate .art:not(.art--hover) { opacity: 0; }
.case:hover .plate .art--hover { opacity: 1; transform: scale(1); }

/* victories: the plate is re-inked in phosphor on hover */
.plate--win::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(160deg, rgba(180,196,164,.55), rgba(142,157,128,.35)); mix-blend-mode: multiply;
  transition: opacity .6s;
}
.insight:hover .plate--win::after { opacity: 1; }
.insight:hover .plate .art { transform: scale(1.08) rotate(-1.2deg); filter: contrast(1.2); }

/* catalogue caption, printed at the foot of every plate */
.plate__cap {
  position: absolute; left: .9rem; right: .9rem; bottom: .8rem; z-index: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: .5rem; border-top: 1px solid rgba(5,7,5,.22);
  font-family: "JetBrains Mono", monospace; font-size: .55rem; letter-spacing: 0; color: rgba(5,7,5,.7);
  text-transform: uppercase;
}
.plate__cap b { font-weight: 500; color: var(--ink); }
.plate__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tags that sit on the plates switch to print colours */
.plate .case__tag { background: rgba(230,227,216,.8); color: var(--ink); border-color: rgba(5,7,5,.2); }
.plate .case__tag b { color: #5c6b4f; }
.plate ~ .plus, .insight .plus { background: rgba(230,227,216,.85); color: var(--ink); border-color: rgba(5,7,5,.2); }
.plate .case__go { background: var(--ink); color: var(--bone); }

@media (max-width: 560px) {
  .plate .art { inset: 6% 7% 16%; width: 86%; height: 78%; }
  .plate__cap { left: .7rem; right: .7rem; bottom: .6rem; }
}
/* keep the engraving clear of the caption strip across the whole parallax range */
.plate .art { inset: 5% 9% 23%; width: 82%; height: 72%; }
@media (max-width: 560px) { .plate .art { inset: 5% 7% 24%; width: 86%; height: 71%; } }

/* active chapter in nav + menu */
.nav__group a.is-active { color: var(--phosphor); background-size: calc(100% - 1.1em) 1px; }
.nav__group a.is-active::before { content: "›"; position: absolute; margin-left: -1em; color: var(--phosphor); }
.nav__group a { position: relative; }
.menu__list a.is-active { color: var(--smoke); }
.menu__list a.is-active::before { opacity: 1; }

/* Plates show the whole artwork: the parallax layer is exactly the paper, and the
   engraving sits inside a safe margin that survives drift (±2%) and hover zoom (≤1.08) */
.plate .case__inner { inset: 0; }
.plate .art { inset: 7% 9% 21%; width: 82%; height: 72%; object-fit: contain; object-position: 50% 50%; }
@media (max-width: 560px) { .plate .art { inset: 7% 7% 22%; width: 86%; height: 71%; } }

/* plain-language section name — the first thing read in every chapter tag */
.chapter__kind {
  font-family: var(--font-heading); font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1;
  color: var(--bone); text-transform: uppercase; padding: .35rem .7rem .3rem;
  border: 1px solid var(--grey-24); border-radius: 999px; background: rgba(5,7,5,.55);
}
.dock__chapter { min-width: 8.5em; }
@media (max-width: 991px) { .chapter__kind { font-size: .95rem; } .chapter__title { display: none; } }

/* performance: composite-only grain; skip it where it costs battery */
.grain { will-change: transform; }
@media (pointer: coarse) { .grain { animation: none; } }
.ticker__track, .case__inner, .hud { will-change: transform; }

/* =====================================================================
   Launch — a conversation on the loader's frosted veil
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.launch {
  position: fixed; inset: 0; z-index: 105; display: grid; place-items: center;
  padding: max(var(--gutter), env(safe-area-inset-top)) var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
}
.launch[hidden] { display: none; }
.launch__frame {
  width: min(100%, 44rem); height: min(88svh, 46rem);
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 1rem;
  padding: 1.2rem 1.3rem; border-radius: 1.2rem;
  background: rgba(12, 15, 12, .78); border: 1px solid var(--grey-24);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 2.5rem 6rem -2rem rgba(0,0,0,.9), inset 0 1px 0 rgba(201,206,195,.06);
}
.launch__head { display: flex; justify-content: space-between; align-items: center; color: var(--smoke); padding-bottom: .8rem; border-bottom: 1px solid var(--grey-24); }
.launch__status { display: flex; align-items: center; gap: .5rem; color: var(--bone); }
.launch__status i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 .6rem var(--phosphor); animation: pulse 1.8s ease-in-out infinite; }

.launch__thread {
  overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .9rem;
  padding: .4rem .2rem 1rem; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 2.5rem); mask-image: linear-gradient(to bottom, transparent, #000 2.5rem);
}
.launch__thread::-webkit-scrollbar { display: none; }
.launch__thread > :first-child { margin-top: auto; }
.msg { display: flex; align-items: flex-end; gap: .6rem; max-width: 88%; }
.msg__who { font-size: .55rem; letter-spacing: 0; color: var(--smoke); flex: none; padding-bottom: .5rem; }
.msg__bubble {
  font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.03em;
  padding: .75rem 1rem; border-radius: 1rem 1rem 1rem .3rem; color: var(--bone);
  background: var(--ink-3); border: 1px solid var(--grey-24); min-height: 2.9rem;
}
.msg--you { align-self: flex-end; }
.msg--you .msg__bubble {
  color: var(--ink); border-radius: 1rem 1rem .3rem 1rem; border-color: transparent;
  background: linear-gradient(135deg, #bccbad 0%, var(--phosphor) 50%, #98a98a 100%);
}
.msg__head { color: var(--phosphor); font-family: "JetBrains Mono", monospace; margin-left: .05em; }
.msg__dots { display: inline-flex; gap: .3rem; padding: .35rem 0; }
.msg__dots i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--smoke); animation: dot 1s ease-in-out infinite; }
.msg__dots i:nth-child(2) { animation-delay: .15s; } .msg__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-.2rem); } }

.launch__reply { min-height: 3.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 999px;
  border: 1px solid var(--grey-24); background: var(--ink-2); color: var(--bone);
  font-family: var(--font-heading); font-size: 1rem; letter-spacing: -0.02em;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.chip:hover, .chip:focus-visible { background: var(--bone); color: var(--ink); border-color: var(--bone); outline: none; transform: translateY(-2px); }
.chip__key { font-size: .55rem; letter-spacing: 0; opacity: .6; border: 1px solid currentColor; border-radius: .25rem; padding: 0 .3rem; }
.chip--solid { background: var(--phosphor); color: var(--ink); border-color: var(--phosphor); }
.name-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.name-form__prompt { color: var(--phosphor); font-size: 1.1rem; }
.name-form__input {
  flex: 1 1 12rem; min-width: 0; padding: .7rem .2rem; background: transparent; border: 0;
  border-bottom: 1px solid var(--grey-24); color: var(--bone); outline: none;
  font-family: var(--font-heading); font-size: 1.35rem; letter-spacing: -0.03em;
}
.name-form__input:focus { border-color: var(--phosphor); }
.name-form__input::placeholder { color: var(--ash); }

.launch__foot { display: flex; align-items: center; gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--grey-24); }
.launch__bar { flex: 1; height: 1px; background: var(--grey-24); position: relative; overflow: hidden; }
.launch__bar i { position: absolute; inset: 0; background: var(--phosphor); transform-origin: left; transform: scaleX(0); }
.launch__skip { color: var(--smoke); transition: color .25s; }
.launch__skip:hover, .launch__skip:focus-visible { color: var(--bone); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--hud-h) + var(--hud-gap) * 2 + 1rem); transform: translateX(-50%); z-index: 61;
  padding: .6rem 1rem; border-radius: 999px; background: var(--phosphor); color: var(--ink); pointer-events: none;
}

/* "Keep it calm": the site keeps its story but drops the ambient motion */
html.calm .grain, html.calm .cursor-trail { display: none; }
html.calm .chapter__rule::after, html.calm .services__pass { animation: none; }

@media (max-width: 560px) {
  .launch__frame { height: 100%; border-radius: 1rem; padding: 1rem; }
  .msg { max-width: 94%; }
  .msg__bubble { font-size: 1.1rem; }
  .chip { font-size: .95rem; padding: .75rem .95rem; }
}
.launch__privacy { color: var(--smoke); white-space: nowrap; transition: color .25s; }
.launch__privacy:hover { color: var(--bone); }
@media (max-width: 560px) { .launch__foot { flex-wrap: wrap; } .launch__bar { flex-basis: 100%; order: -1; } .launch__privacy { white-space: normal; flex: 1; } }
.spec__swatches .sw-1 { --c: #050705; } .spec__swatches .sw-2 { --c: #3d403d; } .spec__swatches .sw-3 { --c: #727472; }
.spec__swatches .sw-4 { --c: #c9cec3; } .spec__swatches .sw-5 { --c: #b4c4a4; }

/* ===== Image shield ===== */
img, video, canvas { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.plate .art, .angel-slot img, .angel-slot video, .hero__video, .footer__logo, .nav__logo-img, .lt--logo img { pointer-events: none; }
.shield { position: absolute; inset: 0; z-index: 2; background: transparent; -webkit-touch-callout: none; user-select: none; }
.hero__media .shield { z-index: 1; }
.plate__cap, .case__tag, .case__go { z-index: 3; }
/* printing the page prints the words, not the artwork */
@media print {
  img, video, canvas, .plate, .angel-slot, .hero__media, .grain, .cursor, .cursor-trail, .hud, .loader, .launch { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   Light mode — an optical negative of the whole signal.
   Everything (type, surfaces, artwork, video, ASCII fields) is inverted; the hue
   turn keeps the phosphor accent in its own colour family instead of flipping it.
   ===================================================================== */
html { background: var(--ink-2); }
html[data-theme="light"] { filter: invert(1) hue-rotate(180deg); }
/* a touch of extra contrast so the negative engravings read crisply on the bright page */
html[data-theme="light"] .plate .art { filter: contrast(1.12); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: .55em; align-self: center; margin-left: auto; margin-right: .8rem;
  padding: .45em .85em .45em .55em; border: 1px solid var(--grey-24); border-radius: 999px;
  font-size: .75rem; color: var(--bone); transition: background .3s, color .3s, border-color .3s;
}
.theme-toggle:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.theme-toggle__icon {
  position: relative; width: 1.05em; height: 1.05em; border-radius: 50%; border: 1.5px solid currentColor; overflow: hidden;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.theme-toggle__icon::after { content: ""; position: absolute; inset: 0 50% 0 0; background: currentColor; }
html[data-theme="light"] .theme-toggle__icon { transform: rotate(180deg); }
.nav__toggle { margin-left: 0; }
@media (max-width: 560px) { .theme-toggle__label { display: none; } .theme-toggle { padding: .6em; margin-right: .5rem; } }

/* circular wipe between themes (View Transitions API; skipped where unsupported or reduced-motion) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0%)); animation: vt-reveal .9s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes vt-reveal { to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0%)); } }

/* ===== Launch options — even, quiet, tactile ===== */
.launch__reply { min-height: 0; }
.opts { display: grid; gap: .55rem; }
.opts--2 { grid-template-columns: 1fr 1fr; }
.opts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: .8rem; min-height: 3.1rem; padding: .7rem .95rem;
  border-radius: .8rem; border: 1px solid var(--grey-24); background: rgba(12, 15, 12, .7);
  color: var(--bone); text-align: left; font-family: var(--font-heading); font-size: 1rem; letter-spacing: -0.02em; line-height: 1.15;
  transition: color .35s cubic-bezier(.2,.8,.2,1), border-color .35s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.opt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #bccbad 0%, var(--phosphor) 50%, #98a98a 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.7,0,.2,1);
}
.opt__key { font-size: .6rem; color: var(--smoke); letter-spacing: 0; flex: none; transition: color .35s; }
.opt__label { flex: 1; min-width: 0; }
.opt__go { flex: none; opacity: 0; transform: translateX(-.4rem); transition: opacity .3s, transform .45s cubic-bezier(.2,.8,.2,1); }
.opt:hover, .opt:focus-visible, .opt.is-chosen { color: var(--ink); border-color: transparent; outline: none; }
.opt:hover::before, .opt:focus-visible::before, .opt.is-chosen::before { transform: scaleX(1); }
.opt:hover .opt__key, .opt:focus-visible .opt__key, .opt.is-chosen .opt__key { color: rgba(5,7,5,.55); }
.opt:hover .opt__go, .opt:focus-visible .opt__go, .opt.is-chosen .opt__go { opacity: 1; transform: none; }
.opt:active { transform: scale(.98); }
.opt:disabled { cursor: default; }
.opt--solid { color: var(--ink); border-color: transparent; }
.opt--solid::before { transform: scaleX(1); }
.opt--solid .opt__go { opacity: 1; transform: none; }

/* name form: one clean field, two equal actions */
.name-form { display: grid; gap: .55rem; }
.name-form__field {
  display: flex; align-items: center; gap: .6rem; padding: .35rem .95rem; border-radius: .8rem;
  border: 1px solid var(--grey-24); background: rgba(5, 7, 5, .55); transition: border-color .3s, box-shadow .3s;
}
.name-form__field:focus-within { border-color: var(--phosphor); box-shadow: 0 0 0 3px rgba(180,196,164,.12); }
.name-form__input { border: 0; padding: .55rem 0; font-size: 1.25rem; flex: 1; }
.name-form__count { font-size: .55rem; color: var(--smoke); letter-spacing: 0; }
.name-form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }

/* the conversation owns the screen: no stray cursor glyphs over it */
body.launching .cursor-trail { opacity: 0; transition: opacity .3s; }
.launch__thread { padding-bottom: .6rem; }

@media (max-width: 560px) {
  .opts--grid { grid-template-columns: 1fr 1fr; }
  .opt { min-height: 2.9rem; padding: .65rem .8rem; font-size: .95rem; gap: .6rem; }
}
@media (max-width: 360px) { .opts--2, .opts--grid, .name-form__actions { grid-template-columns: 1fr; } }

/* the conversation panel never outgrows the screen: the thread scrolls inside it */
.launch__thread { min-height: 0; }
.launch__frame { max-height: calc(100svh - 2 * var(--gutter)); }
@media (max-width: 560px) {
  .launch__frame { height: calc(100svh - 2 * var(--gutter) - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: none; }
}
