/* XM3 Studios, site styles
   Palette and type are defined once here; every page reuses these tokens. */

@font-face { font-family: "Anybody"; src: url("../fonts/anybody-var.woff2") format("woff2-variations"), url("../fonts/anybody-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --void: #000000;        /* the capture viewport */
  --bone: #F4F2EE;        /* primary text */
  --bone-2: #B8B5AE;      /* secondary text on black */
  --marker: #8A8F98;      /* tertiary text, unlit markers */
  --carbon: #16171A;      /* interface panels only */
  --line: rgba(244, 242, 238, 0.14);
  --line-strong: rgba(244, 242, 238, 0.28);
  --strobe: #FF6600;      /* brand orange, IR strobe */
  --strobe-hot: #FF8533;
  --ink: #0A0A0A;         /* text on bone sections */
  --ink-2: #4A4843;
  --axis-x: #E5484D; --axis-y: #46A758; --axis-z: #3E63DD;

  --display: "Anybody", "Arial Black", system-ui, sans-serif;
  --text: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1360px;
  --header: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--void); color: var(--bone);
  font: 400 17px/1.62 var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
:focus-visible { outline: 2px solid var(--strobe); outline-offset: 3px; }
::selection { background: var(--strobe); color: #000; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--strobe); color: #000; padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 800; font-stretch: 135%; line-height: .92; letter-spacing: -0.012em; text-wrap: balance; }
.t-hero { font-size: clamp(42px, 5.5vw, 92px); }
.t-1 { font-size: clamp(40px, 5.4vw, 86px); }
.t-2 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 750; font-stretch: 125%; line-height: 1; }
.t-3 { font-family: var(--display); font-size: clamp(21px, 1.7vw, 25px); font-weight: 700; font-stretch: 118%; line-height: 1.12; }
.lede { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--bone-2); max-width: 54ch; }
.body-copy { color: var(--bone-2); max-width: 62ch; }
.body-copy p + p { margin-top: 1em; }
.body-copy h2 { color: var(--bone); }
.readout { font: 500 12px/1.4 var(--mono); color: var(--marker); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.readout strong { color: var(--bone); font-weight: 500; }

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px 16px 22px;
  font: 600 15px/1 var(--text); letter-spacing: .01em; color: #000; text-decoration: none;
  background: linear-gradient(225deg, transparent 11px, var(--strobe) 11px);
  transition: background .2s;
}
.btn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #000; }
.btn:hover { background: linear-gradient(225deg, transparent 11px, var(--strobe-hot) 11px); }
.btn--small { padding: 11px 16px 11px 14px; font-size: 14px; }
.textlink { font-weight: 500; color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 7px; transition: text-decoration-color .2s, color .2s; }
.textlink:hover { color: var(--strobe); text-decoration-color: var(--strobe); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.site-header.is-solid { background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { position: relative; padding: 6px 0; font-size: 15px; color: var(--bone-2); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--strobe); box-shadow: 0 0 10px var(--strobe); }
.header-tc { min-width: 88px; text-align: right; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-strong); background: transparent; color: var(--bone); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 55; background: #000; padding: calc(var(--header) + 32px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav nav a { font-family: var(--display); font-weight: 800; font-stretch: 130%; font-size: clamp(40px, 12vw, 64px); line-height: 1.05; text-decoration: none; }
.mobile-nav nav a[aria-current="page"] { color: var(--strobe); }
html.nav-open { overflow: hidden; }

/* ---------- Story (home hero, three takes) ---------- */
.story { position: relative; height: 380vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 0% 100%, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,0) 70%); }
.stage__hud { position: absolute; z-index: 3; top: calc(var(--header) + 18px); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; gap: 24px; pointer-events: none; }
.stage__hud > div { display: flex; flex-direction: column; gap: 4px; }
.stage__hud > div:last-child { text-align: right; }
.panel { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(44px, 10vh, 120px); width: min(800px, 55vw); opacity: 0; visibility: hidden; transform: translateY(22px); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .8s var(--ease) .1s, visibility 0s; }
.panel .lede { margin-top: 24px; }
.panel--hero .display { animation: stretch-in 1.6s var(--ease) .15s backwards; }
@keyframes stretch-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.takes { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(44px, 10vh, 120px); display: grid; gap: 14px; width: 190px; list-style: none; margin: 0; padding: 0; }
.take { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; color: var(--marker); transition: color .3s; }
.take.is-active { color: var(--bone); }
.take__bar { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.take__bar i { position: absolute; inset: 0; background: var(--strobe); transform-origin: left; transform: scaleX(0); }
.mlabel { position: absolute; z-index: 2; left: 0; top: 0; display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); color: var(--bone-2); white-space: nowrap; pointer-events: none; opacity: 0; will-change: transform; }
.mlabel::before { content: ""; width: 16px; height: 1px; background: var(--line-strong); }
.stage.no-webgl .stage__canvas { display: none; }
.stage.no-webgl { background: #000 url("../img/xm3-mark-white.svg") 72% 42% / min(46vw, 560px) auto no-repeat; }
.scroll-cue { margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 26px; background: linear-gradient(var(--strobe), transparent); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 12vw, 176px); }
.section--tight { padding-block: clamp(72px, 8vw, 120px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .lede { justify-self: end; }

/* Ways in (home) */
.ways { border-top: 1px solid var(--line); }
.way { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 16px 48px; align-items: end; padding: clamp(28px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 44px) 34px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.way::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--marker); transition: background .3s, box-shadow .3s; }
.way__name { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 9.2vw, 150px); line-height: .84; font-stretch: 100%; letter-spacing: -0.02em; transition: color .3s; }
.way__text { color: var(--bone-2); }
.way__go { display: inline-block; margin-top: 14px; color: var(--bone); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 7px; }
a.way:hover .way__name, a.way:focus-visible .way__name { color: var(--strobe); }
a.way:hover::before, a.way:focus-visible::before { background: var(--strobe); box-shadow: 0 0 14px var(--strobe); }
a.way:hover .way__go { text-decoration-color: var(--strobe); }
.way--soon .way__name { color: var(--marker); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--bone); font-weight: 500; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--strobe); box-shadow: 0 0 10px var(--strobe); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Bone (inverted) band */
.bone { background: var(--bone); color: var(--ink); }
.bone ::selection { background: #000; color: var(--bone); }
.statement { font-family: var(--display); font-weight: 760; font-stretch: 112%; font-size: clamp(32px, 4.5vw, 72px); line-height: 1.02; letter-spacing: -0.015em; max-width: 21ch; text-wrap: balance; }
.statement-foot { display: flex; justify-content: flex-end; gap: 18px; margin-top: clamp(40px, 5vw, 72px); align-items: flex-start; }
.statement-foot p { max-width: 460px; }
.statement-foot p { color: var(--ink-2); font-size: 18px; }
.statement-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--strobe); margin-top: 8px; }

/* Inspector panel */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .lede { margin-top: 22px; }
.inspector { background: var(--carbon); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.inspector__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.gizmo { display: flex; gap: 10px; }
.gizmo span { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--mono); color: var(--marker); }
.gizmo span::before { content: ""; width: 14px; height: 2px; background: var(--c); }
.inspector dl { margin: 0; }
.inspector__row { display: grid; grid-template-columns: minmax(118px, 190px) minmax(0, 1fr); gap: 24px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.inspector__row:last-child { border-bottom: 0; }
.inspector dt { font: 500 13px/1.6 var(--mono); color: var(--marker); }
.inspector dd { margin: 0; color: var(--bone); }

/* Closing call to action */
.closer { border-top: 1px solid var(--line); }
.closer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.closer .lede { margin-bottom: 4px; }

/* ---------- Page heroes (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header) + clamp(72px, 10vw, 150px)); padding-bottom: clamp(56px, 7vw, 104px); }
.page-hero .display { max-width: 14ch; }
.page-hero .lede { margin-top: 28px; }

/* Capture volume hero */
.volume { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #000; }
.volume__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.volume::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 38%, rgba(0,0,0,0) 62%), linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 30%); }
.volume__copy { position: absolute; z-index: 3; left: var(--pad); bottom: clamp(48px, 11vh, 128px); width: min(700px, 90vw); }
.volume__copy .lede { margin-top: 26px; }
.volume__hud { position: absolute; z-index: 3; top: calc(var(--header) + 18px); right: var(--pad); display: flex; flex-direction: column; gap: 4px; text-align: right; pointer-events: none; }
.volume.no-webgl .volume__canvas { display: none; }

/* Pipeline timeline: a real sequence, so it is numbered */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 60px 0 0; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line-strong); }
.key { position: relative; }
.key::before { content: ""; position: absolute; top: -47px; left: 1px; width: 11px; height: 11px; background: var(--strobe); transform: rotate(45deg); box-shadow: 0 0 12px rgba(255, 102, 0, .55); }
.key__frame { display: block; margin-bottom: 14px; }
.key h3 { margin-bottom: 12px; }
.key p { color: var(--bone-2); font-size: 16px; }

/* Services list */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-content: start; gap: 4px 14px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service::before { content: ""; grid-row: 1 / 3; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; border: 1.5px solid var(--strobe); }
.service p { color: var(--bone-2); font-size: 16px; }

.wordrow { display: flex; flex-wrap: wrap; gap: .12em .42em; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.015em; }
.wordrow span { font-stretch: var(--w, 120%); }
.wordrow span:nth-child(even) { color: var(--marker); }

/* ---------- Library ---------- */
.catfield { display: flex; flex-wrap: wrap; align-items: baseline; gap: .06em .34em; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6.6vw, 108px); line-height: .98; letter-spacing: -0.02em; margin: 0; padding: 0; list-style: none; }
.catfield li { font-stretch: var(--w, 120%); }
.catfield li:nth-child(3n+2) { color: var(--marker); }
.catfield-note { margin-top: 36px; }
.dest { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(220px, 400px) 130px; gap: 16px 48px; align-items: center; padding: clamp(24px, 3vw, 38px) 0 clamp(24px, 3vw, 38px) 34px; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.dest::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--marker); transition: background .3s, box-shadow .3s; }
.dest__name { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 76px); line-height: .9; font-stretch: 100%; letter-spacing: -0.02em; white-space: nowrap; transition: color .3s; }
.dest__text { color: var(--bone-2); }
.dest__url { justify-self: end; }
.dest:hover .dest__name, .dest:focus-visible .dest__name { color: var(--strobe); }
.dest:hover::before, .dest:focus-visible::before { background: var(--strobe); box-shadow: 0 0 14px var(--strobe); }
.dests { border-top: 1px solid var(--line); }

/* ---------- About ---------- */
.origin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.figure-frame { position: relative; }
.figure-frame img { width: 100%; border-radius: 4px; }
.figure-frame figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--strobe); border-style: solid; border-width: 0; }
.corner--tl { left: -10px; top: -10px; border-left-width: 2px; border-top-width: 2px; }
.corner--br { right: -10px; bottom: 32px; border-right-width: 2px; border-bottom-width: 2px; }
.origin .body-copy { position: sticky; top: calc(var(--header) + 40px); }
.origin .t-2 { margin-bottom: 28px; }
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.founder img { width: 100%; max-width: 520px; border-radius: 4px; filter: contrast(1.04); }
.founder__name { font-size: clamp(36px, 4.2vw, 68px); font-stretch: 112%; }
.founder__role { margin: 12px 0 28px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 9px; font-size: 14px; color: var(--bone-2); }
.field label .opt { color: var(--marker); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; color: var(--bone); background: var(--carbon);
  border: 1px solid var(--line); border-radius: 6px; font: 400 16px/1.4 var(--text);
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--bone-2) 50%), linear-gradient(135deg, var(--bone-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--strobe); box-shadow: 0 0 0 3px rgba(255, 102, 0, .22); }
.field input::placeholder, .field textarea::placeholder { color: #5E626A; }
.form button.btn { border: 0; cursor: pointer; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.hp { display: none; }
.aside-block { padding: 22px 0; border-top: 1px solid var(--line); }
.aside-block:last-child { border-bottom: 1px solid var(--line); }
.aside-block h2 { font: 600 14px/1.4 var(--text); color: var(--bone-2); margin-bottom: 8px; }
.aside-block a { text-decoration: none; }
.aside-block a:hover { color: var(--strobe); }
.aside-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Message pages (thanks, 404) ---------- */
.message { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header); }
.message .lede { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(64px, 7vw, 96px) 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-mark img { width: min(200px, 60%); }
.footer-mark p { margin-top: 26px; color: var(--bone-2); max-width: 32ch; }
.footer-col h2 { font: 600 14px/1.4 var(--text); color: var(--marker); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--bone-2); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--strobe); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--marker); font-size: 14px; }

/* ---------- Page transition shutter ---------- */
.shutter { position: fixed; inset: 0; z-index: 150; pointer-events: none; background: #000; transform: scaleY(0); transform-origin: 50% 100%; }
.shutter::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--strobe); box-shadow: 0 0 22px 2px var(--strobe); }
html.is-leaving .shutter { transform: scaleY(1); transition: transform .38s cubic-bezier(.7, 0, .3, 1); }
html.is-entering .shutter { transform: scaleY(1); transform-origin: 50% 0%; }
html.is-entering .shutter::after { top: auto; bottom: 0; }
.shutter.is-lifting { transition: transform .5s cubic-bezier(.7, 0, .3, 1); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 72px; }
  .timeline::before { display: none; }
  .key { padding-top: 0; border-top: 1px solid var(--line-strong); padding-top: 34px; }
  .key::before { top: -6px; }
  .dest { grid-template-columns: max-content minmax(0, 1fr); }
  .dest__url { display: none; }
}
@media (max-width: 900px) {
  :root { --header: 66px; }
  .nav, .header-tc, .site-header .btn--small { display: none; }
  .menu-toggle { display: block; }
  .section-head, .split, .closer__inner, .origin, .founder, .contact, .statement-foot { grid-template-columns: minmax(0, 1fr); }
  .section-head .lede { justify-self: start; }
  .way { grid-template-columns: minmax(0, 1fr); padding-left: 26px; }
  .way::before, .dest::before { top: clamp(44px, 9vw, 70px); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .origin .body-copy { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-mark { grid-column: 1 / -1; }
  .panel { width: auto; right: var(--pad); }
  .takes { display: none; }
  .stage::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 34%, rgba(0,0,0,0) 62%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .dest { grid-template-columns: minmax(0, 1fr); padding-left: 26px; }
  .inspector__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stage__hud .hide-sm { display: none; }
  .t-hero { font-size: clamp(34px, 9.6vw, 44px); }
  .panel .lede { font-size: 16px; margin-top: 16px; }
  .panel .actions { margin-top: 24px; }
  .mlabel { display: none; }
  .volume::after { background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 80%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .shutter { display: none; }
}

/* ---------- Texture system: column guides, marker fields, path labels, registration marks ---------- */
/* Faint layout columns behind every page, like a calibration grid */
.guides { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.guides::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 2 * var(--pad), var(--max) - 2 * var(--pad));
  border-inline: 1px solid rgba(244, 242, 238, .045);
  background: repeating-linear-gradient(to right, transparent 0 calc(100% / 6 - 1px), rgba(244, 242, 238, .045) calc(100% / 6 - 1px) calc(100% / 6));
}
/* Dot field with a few lit markers and tracked rigid bodies, fading at the edges */
.has-field { position: relative; }
.field-dots {
  position: absolute; z-index: -1; top: 0; right: 0; width: min(760px, 62vw); height: 100%; pointer-events: none;
  background-image: url("../img/field-markers.svg"), radial-gradient(circle, rgba(244, 242, 238, .2) 1.1px, transparent 1.7px);
  background-size: 760px 560px, 20px 20px; background-position: right top, right top; background-repeat: no-repeat, repeat;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 68% 42%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 72% at 68% 42%, #000 18%, transparent 74%);
}
.field-dots--left { right: auto; left: 0; background-position: left top, left top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 16% 88%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 16% 88%, #000 15%, transparent 72%); }
/* Slash path labels above section headings */
.path { margin: 0 0 22px; font: 500 13px/1 var(--mono); color: var(--marker); letter-spacing: .02em; }
.path span { color: var(--strobe); margin-right: 2px; }
.bone .path { color: var(--ink-2); }
/* Section rule with registration marks at both ends */
.section--ruled { padding-top: 0; }
.ruled-top { position: relative; padding-top: clamp(80px, 10vw, 150px); }
.ruled-top::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); }
.ruled-top::after {
  content: ""; position: absolute; top: -5px; left: calc(var(--pad) - 5px); right: calc(var(--pad) - 5px); height: 11px;
  background:
    linear-gradient(var(--bone-2), var(--bone-2)) left 0 top 5px / 11px 1px no-repeat,
    linear-gradient(var(--bone-2), var(--bone-2)) left 5px top 0 / 1px 11px no-repeat,
    linear-gradient(var(--bone-2), var(--bone-2)) right 0 top 5px / 11px 1px no-repeat,
    linear-gradient(var(--bone-2), var(--bone-2)) right 5px top 0 / 1px 11px no-repeat;
}
.closer { border-top: 0; }
@media (max-width: 900px) { .field-dots { width: 100%; opacity: .45; } }

/* Per-page field art, each on the same dot grid */
.field--ring { right: auto; left: 0;
  background-image: url("../img/field-ring.svg"), radial-gradient(circle, rgba(244, 242, 238, .2) 1.1px, transparent 1.7px);
  background-position: left bottom, left top;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 36% 74%, #000 22%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 62% at 36% 74%, #000 22%, transparent 76%); }
.field--keys { background-image: url("../img/field-keys.svg"), radial-gradient(circle, rgba(244, 242, 238, .2) 1.1px, transparent 1.7px); }
.field--trail { background-image: url("../img/field-trail.svg"), radial-gradient(circle, rgba(244, 242, 238, .2) 1.1px, transparent 1.7px); }
.field--wand { background-image: url("../img/field-wand.svg"), radial-gradient(circle, rgba(244, 242, 238, .2) 1.1px, transparent 1.7px); }

/* Store buttons with platform marks */
.btn--logo::before { display: none; }
.btn--logo svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .2s, color .2s; }
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--bone); }

/* Catalog snapshot */
.catalog-shot img { border-radius: 4px; border: 1px solid var(--line); transition: border-color .3s; }
.catalog-shot a:hover img { border-color: var(--strobe); }
.catalog-shot figcaption { align-items: center; }

/* Lab block inside the bone band on About */
.lab { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(10, 10, 10, .14); align-items: start; }
.curve { margin: 0; }
.curve svg { width: 100%; height: auto; }
.curve figcaption { display: flex; gap: 28px; margin-top: 16px; color: var(--ink-2); }
.curve figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.curve figcaption span::before { content: ""; width: 18px; height: 2px; background: var(--c); }
.lab__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.lab__points li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 4px 14px; }
.lab__points li::before { content: ""; grid-row: 1 / 3; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--strobe); }
.lab__points h3 { color: var(--ink); }
.lab__points p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .lab { grid-template-columns: minmax(0, 1fr); } }

/* About band: headline and note share a row, lab block sits close beneath */
.statement-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.statement-row .statement { max-width: none; }
.statement-note { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 18px; max-width: 480px; }
.statement-note::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--strobe); }
.statement-row + .lab { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .statement-row { grid-template-columns: minmax(0, 1fr); } }

/* Program membership strip (home) */
.programs { padding-top: clamp(48px, 6vw, 80px); }
.programs__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.programs__text { color: var(--bone-2); max-width: 46ch; }
.programs__text .path { margin-bottom: 12px; }
.programs img { width: clamp(180px, 18vw, 230px); height: auto; }
