/* HRX Nexus — site.css (orbit edition)
   Near-black space, warm brass, one display face with a point of view, and motion as material. */

@font-face { font-family: 'Clash Display'; src: url('../fonts/ClashDisplay-Variable.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/Satoshi-Variable.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #0c0e15;
  --panel: #12151d;
  --panel-2: #181c26;
  --fg: #ece9e2;
  --fg-strong: #fff8ec;
  --muted: #9b968e;
  --faint: #5f5b55;
  --accent: #c99a5b;
  --accent-2: #e8c58e;
  --line: rgba(236, 233, 226, 0.1);
  --line-2: rgba(236, 233, 226, 0.22);

  --font-display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(4.5rem, 10.5vw, 10.5rem);

  --margin: clamp(1.25rem, 3vw, 3rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --max: 1680px;
  --section-gap: clamp(7rem, 16vh, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-color: var(--panel-2) var(--bg); }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--panel-2); }
html.is-smooth body { overscroll-behavior: none; }
body {
  margin: 0; font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; color: var(--fg); background: var(--bg);
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
p { max-width: 62ch; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; hyphens: none; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.95; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 90; background: var(--fg); color: var(--bg); padding: 0.6rem 1rem; text-decoration: none; font-weight: 500; transition: top var(--t-ui) var(--ease-out); }
.skip:focus-visible { top: var(--margin); }
body.cursor-ready, body.cursor-ready a, body.cursor-ready button, body.cursor-ready input { cursor: none; }

/* ---------- controls ---------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  background: var(--fg); color: var(--bg); font: inherit; font-weight: 600; font-size: var(--step-body); line-height: 1;
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; overflow: hidden;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--sm { min-height: 42px; padding: 0 1.15rem; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--fg-strong); }
}
.textlink { position: relative; text-decoration: none; font-weight: 500; padding-bottom: 2px; }
.textlink::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(1); transform-origin: left; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover::after { transform: scaleX(0); transform-origin: right; } }

/* ---------- load: the page waits while the sphere builds itself ---------- */
.boot { display: none; position: fixed; left: 50%; bottom: calc(var(--margin) + 0.25rem); transform: translateX(-50%); z-index: 70; width: min(260px, 60vw); justify-content: space-between; font-size: var(--step-small); color: var(--muted); pointer-events: none; }
html.is-loading .boot { display: flex; }
.boot__count { color: var(--fg); font-variant-numeric: tabular-nums; }
html.is-building body { overflow: hidden; }
html.is-building .nav, html.is-building .orbit__hero { opacity: 0; }

/* ---------- cursor and grain ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity 300ms; mix-blend-mode: difference; }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-visible { opacity: 1; }
.cursor__dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--fg); }
.cursor__ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid rgba(236, 233, 226, 0.55); transition: transform 260ms var(--ease-out), background-color 260ms ease, border-color 260ms ease; }
.cursor__label { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%) scale(0.7); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--bg); opacity: 0; transition: opacity 200ms, transform 260ms var(--ease-out); }
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--fg); }
.cursor.is-view .cursor__ring { transform: scale(2.3); background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-view .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (pointer: coarse) { .cursor { display: none; } }
.grain { position: fixed; inset: -50%; z-index: 94; pointer-events: none; opacity: 0.045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.4s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, 6%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 2rem;
  padding: 1rem var(--margin); transition: transform 500ms var(--ease-out), background-color 400ms ease, backdrop-filter 400ms ease;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled { background: rgba(7, 8, 12, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--fg); }
.nav__globe { color: var(--fg); animation: spin 26s linear infinite; transform-origin: 50% 50%; }
.nav__node { fill: var(--accent); }
.nav__logo:hover .nav__globe { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__word { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; }
.nav__word em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 0.3rem; }
.nav__links { display: flex; justify-content: center; gap: 2.2rem; font-size: var(--step-small); font-weight: 500; }
.nav__links a { position: relative; text-decoration: none; color: var(--muted); transition: color var(--t-hover) ease; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--fg); } .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; padding: 0; place-items: center; align-content: center; gap: 5px; cursor: pointer; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform 320ms var(--ease-out); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 79; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: 7rem var(--margin) var(--margin); clip-path: inset(0 0 100% 0); transition: clip-path 640ms var(--ease-in-out); visibility: hidden; }
.menu.is-open { clip-path: inset(0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 11vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; padding: 0.35rem 0; transform: translateY(30px); opacity: 0; transition: transform 600ms var(--ease-out), opacity 400ms ease; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 60ms; } .menu.is-open .menu__links a:nth-child(3) { transition-delay: 120ms; } .menu.is-open .menu__links a:nth-child(4) { transition-delay: 180ms; } .menu.is-open .menu__links a:nth-child(5) { transition-delay: 240ms; }
.menu__foot { color: var(--muted); font-size: var(--step-small); }

/* ---------- the orbit scene ---------- */
.orbit { position: relative; background: var(--bg); }
.orbit__stage { position: relative; height: 100svh; overflow: clip; }
html.js .orbit.is-live { height: 860svh; }
html.js .orbit.is-live .orbit__stage { position: sticky; top: 0; }
.orbit__canvas, .orbit__still { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit__still { object-fit: cover; display: none; opacity: 0.9; }
html:not(.js) .orbit__still, .orbit.no-gl .orbit__still { display: block; }
html:not(.js) .orbit__canvas, .orbit.no-gl .orbit__canvas { display: none; }
.orbit__copy { position: absolute; inset: 0; pointer-events: none; }
.orbit__copy a, .orbit__copy button { pointer-events: auto; }
.orbit__title { position: absolute; inset: 0; font-size: var(--step-display); line-height: 0.9; text-align: center; color: var(--fg-strong); }
.orbit__line { position: absolute; left: 0; right: 0; display: block; overflow: clip; padding: 0.06em 0; }
.orbit__line--a { top: calc(8svh + 2.5rem); }
.orbit__line--b { bottom: 15svh; }
.orbit__word { display: inline-block; }
.orbit__word .char { display: inline-block; }
.orbit__lead { position: absolute; left: var(--margin); bottom: calc(var(--margin) + 0.25rem); max-width: 42ch; font-size: var(--step-body); line-height: 1.4; color: var(--fg); }
.orbit__actions { position: absolute; right: var(--margin); bottom: calc(var(--margin) + 0.25rem); display: flex; align-items: center; gap: 1.6rem; }
.orbit__break { display: grid; place-items: center; padding: var(--margin); opacity: 0; }
.orbit__statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.5vw, 2.25rem); line-height: 1.18; letter-spacing: -0.02em; text-align: center; max-width: 30ch; color: var(--fg-strong); }
.orbit__statement .line { display: block; overflow: clip; padding: 0.08em 0; margin: -0.08em 0; }
.orbit__statement .line > div { display: block; }
.orbit__place { left: var(--margin); right: auto; top: auto; bottom: calc(var(--margin) + 1rem); max-width: 34rem; opacity: 0; }
.orbit__placeTitle { font-size: var(--step-lead); font-weight: 600; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.orbit__beat { position: absolute; left: 1.3rem; right: 1.3rem; top: 3.5rem; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; }
.orbit[data-beat="0"] .orbit__beat[data-beat="0"], .orbit[data-beat="1"] .orbit__beat[data-beat="1"], .orbit[data-beat="2"] .orbit__beat[data-beat="2"] { visibility: visible; opacity: 1; transform: none; transition: opacity 420ms ease 240ms, transform 600ms var(--ease-out) 240ms, visibility 0s linear 240ms; }
.orbit__place { width: min(30rem, calc(100vw - 2 * var(--margin))); min-height: 9.5em; padding: 1.1rem 1.3rem; background: rgba(7, 8, 12, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; }
html:not(.js) .orbit__break, html:not(.js) .orbit__place, .orbit.is-rest .orbit__break, .orbit.is-rest .orbit__place { display: none; }
.orbit__labels span, .route__labels span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) translate(var(--x, -100px), var(--y, -100px)); font-size: var(--step-small); font-weight: 500; line-height: 1; color: var(--fg-strong); background: rgba(7, 8, 12, 0.82); padding: 0.4rem 0.7rem 0.4rem 1.45rem; border-radius: 999px; opacity: var(--o, 0); white-space: nowrap; pointer-events: none; }
.orbit__labels span::before, .route__labels span::before { content: ''; position: absolute; left: 0.65rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--accent); border-radius: 50%; }
.orbit__labels span.is-home { font-weight: 700; padding-left: 1.6rem; }
.orbit__labels span.is-home::before { width: 9px; height: 9px; margin-top: -4.5px; border-radius: 2px; }
.route__labels span { transition: opacity 300ms ease; }
.route__labels span:not(.is-on) { color: var(--fg); }
.route__labels span:not(.is-on)::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- ticker ---------- */
.ticker { position: relative; overflow: hidden; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.ticker__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; will-change: transform; }
.ticker__track i { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }

/* ---------- work: stacked sheets ---------- */
.work { padding-top: var(--section-gap); background: var(--bg); }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.work__title, .route__title, .studio__title, .contact__title { font-size: var(--step-head); }
.cap__title { font-size: clamp(2.2rem, 3.6vw, 3.8rem); }
.work__lede { max-width: 38ch; color: var(--muted); }
.stack { position: relative; display: flow-root; }
.sheet {
  position: relative; display: grid; grid-template-columns: 8fr 4fr; grid-template-rows: auto auto; align-content: center; gap: clamp(0.9rem, 2vh, 1.5rem) clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.1rem, 2.4vh, 1.75rem) var(--margin) var(--margin);
  background: var(--bg-2); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0;
  transform-origin: 50% 0; will-change: transform;
}
.sheet__name { grid-column: 1 / -1; font-size: clamp(2.6rem, 6.4vw, 6.6rem); line-height: 1; color: var(--fg-strong); overflow: clip; padding-bottom: 0.08em; }
.sheet__name span { display: block; will-change: transform; }
.sheet__frame { display: block; position: relative; overflow: clip; border-radius: 14px; background: var(--panel); aspect-ratio: 16 / 10; }
.sheet__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; will-change: transform; transition: filter 400ms ease; }
.sheet__frame--scan canvas { width: 100%; height: 100%; }
.sheet__side { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 0; }
.sheet__about { font-size: var(--step-lead); line-height: 1.3; max-width: 28ch; color: var(--fg); }
.sheet__foot { display: grid; gap: 1.1rem; justify-items: start; }
.sheet__note { font-size: var(--step-small); color: var(--muted); max-width: 30ch; }
.sheet__terms { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sheet__terms li { font-size: var(--step-small); color: var(--muted); padding: 0.35rem 0.75rem; border: 1px solid var(--line-2); border-radius: 999px; }
@media (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  html.js .sheet { position: sticky; top: 0; height: 100svh; margin-bottom: 45svh; padding-top: clamp(4.6rem, 10vh, 6rem); }
  html.js .sheet:last-child { margin-bottom: 0; }
  html.js .stack::after { content: ''; display: block; height: 45svh; }
  html.js .sheet__frame { width: min(100%, calc((100svh - 6.5rem - clamp(2.6rem, 6.4vw, 6.6rem) - 4.5rem) * 1.6)); }
}
.also { padding: var(--section-gap) 0 calc(var(--section-gap) * 0.8); position: relative; background: var(--bg); }
.work .also { width: 100%; max-width: none; padding-inline: max(var(--margin), calc((100% - var(--max)) / 2)); }
.also__title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.4rem; color: var(--muted); }
.also__row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; position: relative; padding: 1.1rem 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.also__rows li:last-child .also__row { border-bottom: 1px solid var(--line); }
.also__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; transition: transform 500ms var(--ease-out), color 200ms ease; }
.also__kind { font-size: var(--step-small); color: var(--muted); text-align: right; }
.also__row img { position: absolute; right: 22%; top: 50%; width: clamp(180px, 20vw, 300px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; opacity: 0; transform: translateY(-50%) scale(0.92) rotate(-2deg); transition: opacity 240ms ease, transform 500ms var(--ease-out); pointer-events: none; z-index: 2; }
@media (hover: hover) and (pointer: fine) {
  a.also__row:hover .also__name { transform: translateX(0.6rem); color: var(--accent-2); }
  a.also__row:hover img { opacity: 1; transform: translateY(-50%) scale(1) rotate(-2deg); }
}
@media (hover: none) { .also__row img { display: none; } }

/* ---------- capabilities ---------- */
.cap { padding: var(--section-gap) 0; background: var(--bg-2); }
.cap__grid { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.cap__aside { position: sticky; top: 12vh; display: grid; gap: 1.6rem; }
.cap__lede { color: var(--muted); max-width: 36ch; }
.cap__visual { display: grid; gap: 1.6rem; }
.cap:not(.has-shape) .cap__visual { display: none; }
.cap__shape { width: min(100%, 360px); aspect-ratio: 1; margin-top: 0.5rem; }
.cap__shape canvas { width: 100%; height: 100%; }
.cap__count { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.cap__count span { color: var(--fg); font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin-right: 0.3rem; }
.cap__row { min-height: 58vh; display: grid; align-content: center; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); transition: opacity 500ms ease; }
.cap__row:first-child { border-top: 0; }
html.js .cap__row:not(.is-active) { opacity: 0.4; }
.cap__row h3 { font-size: clamp(1.9rem, 3.4vw, 3.4rem); color: var(--fg-strong); }
.cap__row p { max-width: 40ch; color: var(--fg); }
.cap__terms { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cap__terms li { font-size: var(--step-small); color: var(--muted); padding: 0.35rem 0.75rem; border: 1px solid var(--line-2); border-radius: 999px; }

/* ---------- process: the route across the map ---------- */
.route { position: relative; background: var(--bg); }
.route__stage { display: none; overflow: clip; }
.route__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.route__labels { position: absolute; inset: 0; pointer-events: none; }
.route__intro { padding-top: var(--section-gap); }
.route__title { width: fit-content; }
.route__lede { color: var(--muted); max-width: 40ch; margin-top: 1.2rem; }
.route__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--gutter); margin-top: 3.5rem; padding-bottom: var(--section-gap); }
.route__card { height: 100%; padding: 1.4rem 1.5rem 1.6rem; background: var(--panel); border-radius: 16px; }
.route__card h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); color: var(--fg-strong); }
.route__card p { margin-top: 0.8rem; }
/* live: the map holds the screen while the stops pass over it */
html.js .route.is-live .route__stage { display: block; position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: clip; }
.route.is-live .route__intro { position: relative; min-height: 92svh; }
.route.is-live .route__steps { display: block; position: relative; margin-top: 0; padding-bottom: 75svh; }
.route.is-live .route__step { min-height: 82svh; display: flex; align-items: center; }
.route.is-live .route__card { width: min(26rem, 100%); height: auto; background: rgba(7, 8, 12, 0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.route.is-live .route__card > * { transition: opacity 500ms ease; }
.route.is-live .route__step:not(.is-active) .route__card > * { opacity: 0.38; }
/* still: under reduced motion the finished map is a picture between the heading and the stops */
.route.is-still { display: flex; flex-direction: column; }
.route.is-still .route__stage { display: block; order: 1; position: relative; height: min(64svh, 52vw); margin-top: 3rem; }
.route.is-still .route__steps { order: 2; }

/* ---------- band ---------- */
.band { margin: 0; overflow: clip; background: #04050a; }
.band__frame { height: 110svh; overflow: clip; }
.band__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.18); will-change: transform; }
.band__caption { display: flex; justify-content: space-between; gap: 2rem; padding: 1.2rem 0 1.6rem; font-size: var(--step-small); color: var(--muted); }
.band__caption span { max-width: 44ch; } .band__caption span:last-child { text-align: right; }

/* ---------- studio ---------- */
.studio { padding: var(--section-gap) 0; background: var(--bg); }
.studio__statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; margin: 2.4rem 0 4rem; color: var(--fg); }
.studio__statement .word { display: inline-block; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: -0.03em; line-height: 1; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.figures__label { display: block; margin-top: 0.5rem; font-size: var(--step-small); color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 4rem; }
.person { position: relative; padding: 1.6rem; background: var(--panel); border-radius: 16px; display: grid; gap: 0.5rem; align-content: start; min-height: 260px; transition: transform 400ms var(--ease-out), background-color 300ms ease; }
@media (hover: hover) and (pointer: fine) { .person:hover { transform: translateY(-6px); background: var(--panel-2); } }
.person__initials { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.person__name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; }
.person__role { font-size: var(--step-small); color: var(--muted); }
.person__links { display: flex; gap: 1rem; margin-top: auto; padding-top: 1rem; font-size: var(--step-small); }
.person__links a { text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line-2); transition: border-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .person__links a:hover { color: var(--accent); border-color: var(--accent); } }

/* ---------- contact ---------- */
.contact { padding: var(--section-gap) 0; background: var(--bg-2); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; justify-items: start; }
.contact__lede { color: var(--muted); max-width: 40ch; }
.contact__mail { display: inline-flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 5.6vw, 6rem); letter-spacing: -0.03em; line-height: 1; text-decoration: none; color: var(--fg-strong); margin: 1rem 0; }
.contact__arrow { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; transition: transform 400ms var(--ease-out); }
.contact__arrow svg { width: 50%; height: 50%; }
@media (hover: hover) and (pointer: fine) { .contact__mail:hover .contact__arrow { transform: rotate(-45deg) scale(1.06); } }
.contact__meta { color: var(--muted); font-size: var(--step-small); }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--bg); overflow: clip; padding-bottom: var(--margin); }
.foot__marquee { overflow: hidden; padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.foot__track { display: flex; gap: 0.35em; width: max-content; font-family: var(--font-display); font-weight: 600; font-size: clamp(5rem, 15vw, 15rem); letter-spacing: -0.04em; line-height: 0.9; color: var(--fg-strong); white-space: nowrap; will-change: transform; }
.foot__track span::after { content: '·'; color: var(--accent); margin: 0 0.18em; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: var(--gutter); align-items: start; padding-top: 2rem; font-size: var(--step-small); color: var(--muted); }
.foot__brand { font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); color: var(--fg); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.foot__links { display: grid; gap: 0.4rem; justify-items: start; }
.foot__links a, .foot__credits a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover, .foot__credits a:hover { color: var(--accent); border-color: var(--accent); } }
.foot__credits { max-width: none; line-height: 1.6; }

/* ---------- legal pages ---------- */
.foot__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 0.7rem; }
.foot__legal a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot--plain { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.foot--plain .foot__legal { margin: 0.6rem 0 0; }
.legal { padding: clamp(7rem, 16vh, 10rem) 0 var(--section-gap); }
.legal__head { max-width: 62rem; margin-bottom: clamp(3rem, 7vh, 5rem); }
.legal h1 { font-size: var(--step-head); color: var(--fg-strong); }
.legal__date { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.legal__summary { margin-top: 1.6rem; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; color: var(--fg); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.legal__toc { position: sticky; top: 6rem; font-size: var(--step-small); }
.legal__toc ol { display: grid; gap: 0.55rem; }
.legal__toc a { color: var(--muted); text-decoration: none; transition: color var(--t-hover) ease; }
.legal__body section { scroll-margin-top: 6rem; }
.legal__body section + section { margin-top: clamp(2.5rem, 5vh, 3.5rem); }
.legal__body h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); color: var(--fg-strong); margin-bottom: 0.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.legal__body p, .legal__body li { max-width: 68ch; }
.legal__body p + p, .legal__body ul + p, .legal__table + p { margin-top: 0.9rem; }
.legal__body ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.legal__body li::marker { color: var(--accent); }
.legal__body a { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--accent); }
.legal__body strong { font-weight: 700; }
.legal__table { overflow-x: auto; margin-top: 0.4rem; }
.legal__table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--step-small); line-height: 1.45; }
.legal__table th { text-align: left; font-weight: 700; color: var(--fg-strong); padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line-2); }
.legal__table td { vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.legal__others { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(3rem, 7vh, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.legal__others a { font-size: var(--step-small); text-decoration: none; padding: 0.5rem 0.95rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); transition: color var(--t-hover) ease, border-color var(--t-hover) ease; }
.legal__others a[aria-current="page"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .legal__toc a:hover, .legal__others a:not([aria-current]):hover { color: var(--fg); } .foot__legal a:hover { color: var(--accent); border-color: var(--accent); } }
@media (max-width: 1100px) { .legal__grid { grid-template-columns: minmax(0, 1fr); } .legal__toc { display: none; } }

/* ---------- entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.has-motion [data-load] { opacity: 0; }
  html.has-motion .orbit__word .char { opacity: 0; }
  html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 520ms var(--ease-out), transform 820ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
  html.js [data-split-lines] .line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  html.js [data-split-lines] .line > div, html.js [data-split-lines] .line > span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .orbit.is-live { height: auto; } html.js .orbit.is-live .orbit__stage { position: relative; }
  .nav__globe { animation: none; }
  .band__frame img { transform: none !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav { grid-template-columns: auto 1fr auto auto; }
  .nav__links { display: none; }
  .nav__cta { grid-column: 3; justify-self: end; }
  .nav__burger { grid-column: 4; }
  .nav__burger { display: grid; }
  .sheet { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  html.js .sheet__frame { width: 100%; }
  .sheet__about { max-width: 44ch; }
  .cap__grid { grid-template-columns: 1fr; row-gap: 1.6rem; }
  /* the object rides in a band at the top while the rows pass under it */
  .cap__aside { display: contents; }
  .cap__visual { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-inline: calc(-1 * var(--margin)); padding: 4.4rem var(--margin) 0.4rem; background: var(--bg-2); }
  .cap__visual::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 2.5rem; background: linear-gradient(var(--bg-2), rgba(12, 14, 21, 0)); pointer-events: none; }
  .cap__shape { width: 170px; margin: 0; }
  .cap__row { min-height: 0; padding: 2.2rem 0; }
  .cap.has-shape .cap__row { min-height: min(52svh, 28rem); }
  .people { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__credits { grid-column: 1 / -1; }
}

/* ---------- portrait tablets and phones: the stops sit below the map ---------- */
@media (max-width: 1100px) and (orientation: portrait), (max-width: 767px) {
  .route.is-live .route__step { min-height: 88svh; align-items: flex-end; padding-bottom: 8svh; }
  .route.is-live .route__card { width: min(100%, 34rem); }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  html.js .orbit.is-live { height: 700svh; }
  :root { --section-gap: clamp(5rem, 14vh, 7rem); --step-body: 17px; }
  .nav { padding: 0.9rem var(--margin); gap: 1rem; }
  .nav__cta { display: none; }
  .orbit__title { font-size: 14vw; }
  .orbit__line--a { top: calc(7svh + 4rem); }
  .orbit__line--b { bottom: 24svh; }
  .orbit__lead { right: var(--margin); max-width: none; font-size: 18px; bottom: calc(var(--margin) + 4.2rem); }
  .orbit__actions { left: var(--margin); right: auto; bottom: var(--margin); gap: 1.2rem; }
  .orbit__statement { font-size: clamp(1.25rem, 5.6vw, 1.5rem); }
  .orbit__place { right: var(--margin); max-width: none; bottom: calc(var(--margin) + 0.5rem); }
  .orbit__beat { font-size: 17px; max-width: none; }
  .work__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sheet { border-radius: 18px 18px 0 0; }
  .sheet__name { font-size: clamp(2rem, 10vw, 3rem); }
  .sheet__about { max-width: none; font-size: 19px; }
  .also__kind { grid-column: 1; text-align: left; }
  .also__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .cap__shape { width: 150px; }
  .cap__row h3 { font-size: 2rem; }
  .route.is-live .route__card { padding: 1.2rem 1.25rem 1.35rem; }
  .route.is-still .route__stage { height: 72svh; }
  .figures { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
  .person { min-height: 0; }
  .contact__mail { font-size: 5.8vw; gap: 0.6rem; }
  .band__caption { flex-direction: column; gap: 0.5rem; }
  .band__caption span:last-child { text-align: left; }
  .foot__grid { grid-template-columns: 1fr; }
  .menu { padding-top: 6rem; }
}
