/* MANAVEX studio — one stylesheet for the whole site.
   Two modes, switched on <html>:
     .has-3d  the WebGL studio sits fixed behind the page and scrolling flies the camera
     (none)   no WebGL / reduced motion / small screens: a plain, fully readable page */

:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-2: #121418;
  --panel: color-mix(in srgb, var(--bg) 82%, transparent);
  --panel-solid: #13161a;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #ece8df;
  --ink-2: #b9b5ac;
  --muted: #8a877f;
  --cool: #6fd3ff;
  --warm: #ffb46b;
  --accent: var(--cool);
  --ok: #4cff9a;
  --danger: #ff8a7a;
  --term: #7cf0ff;     /* AI terminal and device */
  --warm-ink: #ffd9a0; /* contact headline and steps */
  --field: #0b0d10;    /* form inputs */
  --radius: 14px;
  --gutter: clamp(16px, 5vw, 88px);
  --col: min(600px, calc(100vw - 2 * var(--gutter)));
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --dim: 0;
  --light: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); letter-spacing: -0.045em; }
/* The wordmark (studio/_wordmark.html) stands in for the brand name everywhere. */
.wordmark { display: block; height: auto; overflow: visible; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
em { font-style: normal; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type bits */
.eyebrow, .kicker {
  font: 500 0.74rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2em;
}
.kicker { color: var(--accent); }
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); margin-right: 10px; vertical-align: 1px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--ink-2); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap;
  min-height: 46px; padding: 0 1.25em;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink);
  font: 500 0.95rem var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: color-mix(in srgb, var(--bg) 50%, transparent); }
.btn--sm { min-height: 38px; padding: 0 1em; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* ---------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: linear-gradient(color-mix(in srgb, var(--bg) 85%, transparent), rgba(11, 12, 14, 0));
}
:root:not(.has-3d) .nav { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.nav__brand .wordmark { width: 132px; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.9rem; color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }


/* ------------------------------------------------------------ 3D canvas layer */
#studio-canvas { display: none; }
.has-3d #studio-canvas { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
.has-3d.ready #studio-canvas { opacity: 1; }
/* Darkens toward the project colour when the camera is "inside" a monitor. */
.immerse { display: none; }
.has-3d .immerse {
  display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: calc(0.5 + var(--dim) * 0.45);
  background:
    radial-gradient(120% 90% at 75% 50%, transparent 0%, color-mix(in srgb, var(--bg) 60%, transparent) 55%, color-mix(in srgb, var(--bg) 92%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 48%, color-mix(in srgb, var(--bg) 10%, transparent) 100%);
}
/* The exit scene gets brighter. */
.has-3d body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(80% 70% at 85% 45%, rgba(255, 246, 232, 0.55), rgba(255, 246, 232, 0) 70%);
  opacity: calc(var(--light) * 0.85);
}
.loader { display: none; }
/* Full-screen loading card over everything until the model, lightmap, textures
   and shaders are ready; the page can't scroll underneath it meanwhile.
   --progress (0–1, set by landing.js) drives everything: the sketches draw
   themselves group by group, the logo's outline traces, then its solid copy
   fills in left to right behind a scan line. When ready, the swooshes glow and
   "Scroll down" appears; the first scroll, click or key dismisses it. */
.has-3d:not(.ready) { overflow: hidden; }
.has-3d .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 50%, #0d1014, #050607 75%);
  color: var(--ink);
  transition: opacity 0.8s ease, visibility 0s 0.8s;
}
.has-3d.ready .loader { cursor: pointer; }

.loader__art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(150, 190, 215, 0.24); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.loader__art * { vector-effect: non-scaling-stroke; }
.loader__art .sk { --draw: clamp(0, calc((var(--progress, 0) * 1.6 - var(--d, 0)) / 0.6), 1); }
.loader__art .sk :not(g, .sk--dash) { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); transition: stroke-dashoffset 0.7s ease; }
.loader__art .sk--dash { stroke-dasharray: 5 9; opacity: var(--draw); transition: opacity 0.7s ease; }
.loader__art .sk--faint, .loader__art .sk--faint * { stroke: rgba(150, 190, 215, 0.14); }
.has-3d.ready .loader:not(.story-on) .loader__art { opacity: 0.75; }
/* The story's own sketches (landing.js): each group draws in with --draw, then
   its fills and line colour arrive with --fill. Strokes scale with the zoom, so
   close-ups read as bold pen lines. */
.story__art { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; fill: none; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.loader.story-on .story__art { visibility: inherit; } /* hides with the loader when the story ends */
.story__art .sk { stroke: color-mix(in oklab, var(--c) calc(var(--fill, 0) * 90%), rgba(170, 205, 228, 0.55)); }
.story__art .sk > :not(.sk--dash) { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0)); }
.story__art .sk--dash { stroke-dasharray: 4 7; opacity: var(--draw, 0); }
.story__art .sk--faint { stroke-opacity: 0.45; }
.story__art .f { fill: var(--f); fill-opacity: calc(var(--fill, 0) * var(--fo, 0.85)); }
.loader__route { fill: none; stroke: rgba(111, 211, 255, 0.22); stroke-dasharray: 3 9; opacity: 0; vector-effect: non-scaling-stroke; }
.loader__trail { fill: none; stroke: var(--cool); stroke-width: 2; opacity: 0.85; vector-effect: non-scaling-stroke; }
.loader__pulse { fill: #f4fbff; stroke: var(--cool); stroke-width: 3; opacity: 0; transition: opacity 0.4s ease; vector-effect: non-scaling-stroke; }
.story { display: none; }
.has-3d .story { display: block; height: 600vh; }
@media (prefers-reduced-motion: reduce) { .has-3d .story { height: 200vh; } }
.has-3d.ready .loader.story-on .loader__scroll { opacity: 0; transition: opacity 0.4s ease; }

.loader__logo { position: relative; width: min(78vw, 820px); }
.loader__logo .wordmark { width: 100%; }
.loader__trace .wordmark path { fill: none; stroke: rgba(236, 232, 225, 0.55); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, var(--progress, 0) * 1.5)); transition: stroke-dashoffset 0.6s ease; }
.loader__trace .wordmark g:last-of-type path { stroke: rgba(244, 155, 45, 0.75); }
.loader__fill { position: absolute; inset: 0; clip-path: inset(-20% calc(100% - var(--progress, 0) * 100%) -20% 0); transition: clip-path 0.6s ease; }
.loader__scan {
  position: absolute; top: -14%; bottom: -14%; left: calc(var(--progress, 0) * 100%); width: 2px; margin-left: -1px;
  background: linear-gradient(transparent, var(--cool), transparent); box-shadow: 0 0 18px 2px rgba(111, 211, 255, 0.55);
  transition: left 0.6s ease, opacity 0.6s ease;
}
.has-3d.ready .loader__trace, .has-3d.ready .loader__scan { opacity: 0; transition: opacity 0.8s ease; }
.has-3d.ready .loader__fill { clip-path: none; animation: logo-glow 2.8s ease-in-out 0.4s infinite; }
/* Faint logo banners scrolling along the very top and bottom of the screen, in
   opposite directions, around the still logo; they step aside for the story.
   Each reel holds two identical halves (the wordmark, then the name in other
   scripts from content.COMPANY), so sliding it by -50% loops seamlessly.
   Non-Latin scripts fall back to the system's fonts. */
.loader__band {
  position: absolute; left: 0; right: 0; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1s ease 0.4s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.loader__band--top { top: 1vh; }
.loader__band--bot { bottom: 0.5vh; }
.has-3d.ready .loader__band { opacity: 0.08; }
.has-3d.ready .loader.story-on .loader__band { opacity: 0; transition: opacity 0.4s ease; }
/* Sized to the screen (vh), so the banners scale with the window. */
.loader__reel { display: flex; align-items: center; width: max-content; animation: reel 90s linear infinite; }
.loader__band--bot .loader__reel { animation-direction: reverse; }
.loader__reel .wordmark { width: auto; height: 8vh; margin-right: 11vw; }
.loader__reel span { margin-right: 11vw; font-size: 6.4vh; font-weight: 700; line-height: 8vh; white-space: nowrap; }
@keyframes reel { to { transform: translateX(-50%); } }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(244, 155, 45, 0.25)); }
  50% { filter: drop-shadow(0 0 18px rgba(244, 155, 45, 0.6)); }
}

.loader__scroll {
  position: absolute; left: 50%; bottom: calc(7vh + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; margin: 0;
  font: 500 0.72rem var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2);
  opacity: 0; transition: opacity 0.8s ease 0.5s;
}
.has-3d.ready .loader__scroll { opacity: 1; }
.loader__chev { width: 10px; height: 10px; border-right: 1.5px solid var(--warm); border-bottom: 1.5px solid var(--warm); transform: rotate(45deg); animation: chev 1.6s ease-in-out infinite; }
@keyframes chev { 50% { transform: translateY(6px) rotate(45deg); opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) {
  .has-3d.ready .loader__fill, .loader__chev, .loader__reel { animation: none; }
  .loader__art .sk *, .loader__trace .wordmark path, .loader__fill, .loader__scan { transition: none; }
}

main, .foot { position: relative; z-index: 2; }

/* Markers and travel spacers only exist for the camera. */
.cam { display: block; height: 0; }
.travel { height: 70vh; }
.travel--short { height: 40vh; }
:root:not(.has-3d) .travel { display: none; }

/* -------------------------------------------------------------------- hero */
.hero { min-height: 100svh; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; position: relative; }
/* The brand sits on the bottom-left edge of the first screen (hero is taller in 3D mode). */
.hero .hero__lead { position: absolute; left: var(--gutter); right: var(--gutter); top: 100svh; transform: translateY(-100%); padding-bottom: max(5vh, 96px); } /* clear the cookie strip and AI button */
/* No 3D (phones, no WebGL): the brand artwork is the first screen, faded into
   the page, with the one-line pitch under it; the h1 stays in the page for
   search and screen readers. */
:root:not(.has-3d) .hero { min-height: 0; padding-top: calc(64px + min(66.6vw, 740px)); padding-bottom: 8px; }
:root:not(.has-3d) .hero::before {
  content: ""; position: absolute; top: 64px; left: 0; right: 0; height: min(66.6vw, 740px);
  background: url("../img/loader.37bb47afe092.webp") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); mask-image: radial-gradient(closest-side, #000 82%, transparent);
}
:root:not(.has-3d) .hero .hero__lead { position: static; padding: 0; transform: none; text-align: center; }
:root:not(.has-3d) .hero__line { margin: 0 auto; }
.hero__line { margin: 18px 0 0; max-width: 36ch; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--ink-2); }
.has-3d .hero { min-height: 175vh; justify-content: flex-start; padding-top: 13vh; }
.has-3d .hero__hold { margin-top: 70vh; }
.has-3d .hero__next { margin-top: auto; }
.has-3d .hero__line { display: none; } /* in 3D the first screen is the studio itself (scene.js hero pose) */
/* ------------------------------------------------------------------ panels */
.panel, .case__intro, .member__card, .terminal, .case__cta {
  width: var(--col);
  margin-left: var(--gutter);
}
.panel, .member__card, .terminal {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  margin-block: 14vh;
}
:root:not(.has-3d) .terminal { background: var(--panel-solid); }
/* Panels are bare text over the studio; a soft shadow keeps it legible. */
.panel { background: none; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6); }
.panel :is(.btn, input, textarea, select) { text-shadow: none; }
:root:not(.has-3d) .panel, :root:not(.has-3d) .member__card, :root:not(.has-3d) .terminal { margin-block: 28px; }
.panel--wide { --col: min(760px, calc(100vw - 2 * var(--gutter))); }
.panel--split { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .panel--split { grid-template-columns: 1fr; } }

.wall-intro { padding-top: 8vh; }
:root .wall-intro .panel { opacity: 0.5; }

/* -------------------------------------------------------------- case study */
.case { position: relative; }
.case__intro { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-block: 8vh; }
:root:not(.has-3d) .case__intro { min-height: 0; padding-top: 96px; }
.case__intro h2 { font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -0.05em; margin-bottom: 0.15em; }
.case__intro h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 18px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.case__tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); max-width: 28ch; }
/* Monitor tour: inside the screen. Without JS it is a plain stack of text and frames. */
.tour { padding-inline: var(--gutter); }
.tour__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2em; max-width: 34ch; }
.tour__steps .kicker { margin-bottom: 0.4em; }
.tour__steps p:not(.kicker) { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink); }
.tour__strip { display: grid; gap: 4vh; margin-top: 2em; }
.tour__strip img { display: block; width: 100%; height: auto; border-radius: 10px; }
.tour.is-live { height: 420vh; padding: 0; }
.tour.is-live .tour__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 34ch) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 4vw;
  padding-inline: var(--gutter);
}
/* Stepping inside: the room fades to dark as the tour arrives and leaves (--in). */
.tour.is-live .tour__stage::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #07080a; opacity: var(--in, 0); pointer-events: none; }
.tour.is-live .tour__steps > li { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
/* Exclusive: the incoming step waits until the outgoing one has faded, so fast scrolling never stacks two. */
.tour.is-live .tour__steps > li[data-on], .tour.is-live .tour__steps > li:focus-within { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.35s 0.18s, transform 0.35s 0.18s; }
.tour.is-live .tour__view {
  align-self: stretch; perspective: 1100px;
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
/* The strip lies back like a long page on a desk and rolls away from you. */
.tour.is-live .tour__strip { --tilt: 24deg; margin: 0; transform-origin: 50% var(--o, 50vh); transform: rotateX(var(--tilt)) translateY(var(--y, 0px)); will-change: transform; }
.tour.is-live .tour__strip img { opacity: 0.32; transform: scale(0.94); transition: opacity 0.5s, transform 0.5s, box-shadow 0.5s; }
.tour.is-live .tour__strip img.is-on { opacity: 1; transform: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent); }
/* A tour without copy (monitor 01): the frames take the whole screen and the
   final link sits over them at the bottom. */
.tour--bare.is-live .tour__stage { grid-template-columns: minmax(0, 1fr); }
.tour--bare.is-live .tour__steps { grid-area: 1 / 1; align-self: end; justify-self: center; position: relative; z-index: 1; padding-bottom: 6vh; }
.tour--bare.is-live .tour__view { grid-area: 1 / 1; }
@media (max-width: 900px) {
  .tour.is-live .tour__stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; padding-top: 88px; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .tour.is-live .tour__strip { --tilt: 0deg; } }
/* Phones: the frames are a swipe row, not pinned (landing.js); the live stage
   fits the visible screen, not the one behind the browser's URL bar. */
@media (max-width: 899px) {
  .tour__strip {
    grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; margin: 1.5em calc(-1 * var(--gutter)) 0;
    padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .tour__strip img { scroll-snap-align: start; }
  .tour--bare:not(.is-live) .tour__stage { display: flex; flex-direction: column-reverse; }
  .tour--bare:not(.is-live) .tour__steps { gap: 0; margin-top: 1.5em; }
  .tour.is-live .tour__stage { height: 100svh; }
}
/* Live tour: the real site fills the screen with its edges dissolving into the
   dark room; the link shows once its story is through. */
.tour--live .tour__stage { display: grid; gap: 1.5em; justify-items: center; }
.tour__site { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #05070a; }
.tour.tour--live.is-live .tour__stage { grid-template-columns: 1fr; grid-template-rows: 1fr; align-items: end; padding-block: 0 6vh; }
.tour--live.is-live .tour__site {
  position: absolute; inset: 0; height: 100%; aspect-ratio: auto; background: none; pointer-events: none;
  mask-image: linear-gradient(transparent, #000 16%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.tour--live.is-live .tour__link { position: relative; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.tour--live.is-live .tour__link[data-on], .tour--live.is-live .tour__link:focus-visible { opacity: 1; pointer-events: auto; }

.case__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 10vh 14vh; }
.case .btn--primary { background: var(--accent); border-color: var(--accent); color: #0b0c0e; }

.chips { list-style: none; padding: 0; margin: 1.2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 0.74rem var(--mono); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); }
.chips--lg li { font-size: 0.82rem; padding: 8px 12px; }

.why { display: grid; gap: 20px; margin: 0; }
.why div { border-left: 2px solid var(--accent); padding-left: 16px; }
.why dt { font: 500 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.why dd { margin: 0; color: var(--ink-2); }

.flow { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; counter-reset: f; }
.flow li { font: 500 0.82rem var(--mono); padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); }
.flow li:not(:last-child)::after { content: "→"; position: relative; left: 13px; color: var(--accent); }
.flow li:not(:last-child) { margin-right: 14px; }
.flow--sm li { font-size: 0.72rem; padding: 6px 9px; }

.arch { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.arch li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; position: relative; }
.arch li:not(:last-child)::after { content: ""; position: absolute; left: 56px; bottom: -11px; width: 1px; height: 10px; background: var(--accent); }
.arch__layer { font: 500 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.arch__items { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink); font-size: 0.94rem; }
@media (max-width: 480px) { .arch li { grid-template-columns: 1fr; gap: 4px; } .arch li::after { display: none; } }

.outcomes { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.outcomes li { padding-left: 22px; position: relative; color: var(--ink-2); }
.outcomes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--accent); }

/* The fallback mode shows each screen's animation inline instead of on a monitor. */
.fallback-screen { display: none; }
:root:not(.has-3d) .fallback-screen { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 1.4em 0 0.4em; border-radius: 10px; border: 1px solid var(--line); background: #05070a; }

/* --------------------------------------------------------------------- team */
.team { padding-top: 10vh; }
/* Member cards follow a sci-fi system poster's layout: portrait, name spine and
   terminal across the top; log and nodes under the portrait; the identity box and
   a viewport at the foot. White rules on black in mono type, red for commands,
   the member's colour for live values. Stacks into one column when narrow. */
.member__card {
  --hud: #ecebe6; --red: #e0313b;
  --stripe: repeating-linear-gradient(-45deg, var(--hud) 0 4px, transparent 4px 9px);
  container-type: inline-size;
  font: 500 0.8rem/1.55 var(--mono); letter-spacing: 0.03em; text-transform: uppercase; color: var(--hud);
  border-radius: 0;
  background: repeating-linear-gradient(rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px), #0b0b0c;
}
.member__card em { font-style: normal; color: var(--accent); }
.member__card :is(p, dl, dd, figure) { margin: 0; }
.hud__top { display: flex; align-items: flex-start; gap: 16px; margin: 0 52px 16px 0; }
.hud__stripe { display: block; width: min(42%, 240px); height: 12px; background: var(--stripe); }
.hud__uplink { flex: 1; text-align: right; font-size: 0.64rem; line-height: 1.8; border-top: 1.5px solid var(--hud); padding-top: 3px; }
.hud {
  display: grid; gap: 14px 10px;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.15fr);
  grid-template-areas: "portrait spine term" "log spine term" "log spine exit" "id spine view";
}
/* Portrait in a double rule, black and white like a print. */
.hud__portrait { grid-area: portrait; padding: 6px; }
.hud__portrait img, .hud__mono {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%;
  border: 1.5px solid var(--hud); outline: 1.5px solid var(--hud); outline-offset: 5px;
  filter: grayscale(1) contrast(1.35);
}
.hud__mono { display: grid; place-items: center; font: 600 5rem/1 var(--mono); filter: none; background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--accent) 35%, #1a1b1d), #0b0b0c 70%); }
.hud__portrait figcaption { margin-top: 16px; font-size: 0.68rem; }
/* The name, upright down a pill on a rule joining the top to the viewport. */
.hud__spine { grid-area: spine; position: relative; display: flex; align-items: center; justify-content: center; }
.hud__spine::before { content: ""; position: absolute; top: 18px; bottom: 30%; left: 50%; border-left: 1.5px solid var(--hud); }
.hud__spine span {
  position: relative; padding: 14px 7px; border: 1.5px solid var(--hud); border-radius: 999px; background: #0b0b0c;
  writing-mode: vertical-rl; text-orientation: upright; font-size: 1rem; line-height: 1; letter-spacing: 0.3em; white-space: nowrap;
}
.hud__term { grid-area: term; border: 1.5px solid var(--hud); padding: 0 14px 14px; font-size: 0.72rem; }
.hud__bar { display: flex; align-items: center; gap: 10px; margin: 0 -14px 4px; padding: 6px 10px; border-bottom: 1.5px solid var(--hud); }
.hud__bar i { flex: 1; height: 10px; background: var(--stripe); }
.hud__bar b { font-weight: 500; }
.hud__term dt { margin-top: 12px; }
.hud__term dt em { color: var(--red); }
.hud__term dd { color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.hud__term dd:not(:has(ol, ul))::before { content: "→ "; color: var(--hud); }
.hud__term h3 { display: inline; margin: 0; font: inherit; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hud); }
.hud__term .member__role { color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.hud__term .member__headline { color: var(--hud); text-transform: uppercase; }
.member__card .flow { margin: 6px 0 0; gap: 4px; }
.member__card .flow li { font-size: 0.66rem; padding: 4px 7px; border-radius: 0; background: none; border-color: var(--line-2); text-transform: uppercase; }
.member__card .flow li:not(:last-child)::after { left: 11px; }
.member__card .flow li:not(:last-child) { margin-right: 12px; }
.member__card .outcomes { margin-top: 6px; gap: 4px; }
.member__card .outcomes li { padding-left: 16px; }
.member__card .outcomes li::before { content: "→"; top: 0; width: auto; height: auto; background: none; color: var(--hud); }
.hud__exit { grid-area: exit; padding-left: 28%; font-size: 0.72rem; line-height: 1.9; }
.hud__log { grid-area: log; display: grid; align-content: start; gap: 16px; padding-top: 6px; font-size: 0.66rem; line-height: 1.7; }
.hud__log em:first-of-type { color: var(--red); }
/* Breadth bars (views._team): each count against the team's highest. */
.hud__bars { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hud__bars span { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 0.06em; }
.hud__bars i { display: block; height: 9px; margin-top: 2px; border: 1.5px solid var(--hud); background: linear-gradient(90deg, var(--hud) var(--w), transparent 0); }
/* Specialties as mounted nodes: NODE_01: /TECHNOLOGY */
.member__card .chips { display: grid; gap: 2px; margin: 0; counter-reset: node; }
.member__card .chips li { padding: 0; border: 0; border-radius: 0; font-size: 0.7rem; color: var(--hud); counter-increment: node; }
.member__card .chips li::before { content: "NODE_" counter(node, decimal-leading-zero) ": /"; }
.hud__identity { grid-area: id; align-self: end; border: 1.5px solid var(--hud); clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.hud__title { padding: 6px; border-bottom: 1.5px solid var(--hud); text-align: center; font-size: 0.95rem; letter-spacing: 0.14em; }
.hud__identity > p + p { padding: 10px 14px 0; font-size: 1rem; line-height: 1.7; }
.hud__identity > p + p::after { content: ""; display: block; height: 10px; margin: 10px -14px 0; background: var(--stripe); }
.hud__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 14px 12px; }
.member__card .links { margin: 0; font-size: 0.85rem; }
.member__card .links a { min-height: 0; color: var(--hud); }
.member__card .links a::before { content: "["; }
.member__card .links a::after { content: " ↗]"; }
.hud__view { grid-area: view; display: grid; align-content: end; gap: 8px; }
/* A grid corridor to the vanishing point (in the plain page, the member's monitor instead). */
.hud__tunnel { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1.5px solid var(--hud); background: radial-gradient(circle at 50% 50%, #2a2b2e, #050506 45%); }
.hud__tunnel::before, .hud__tunnel::after {
  content: ""; position: absolute; left: -40%; right: -40%; height: 50%; opacity: 0.5;
  background: linear-gradient(var(--hud) 1px, transparent 1px) 0 0 / 100% 18px, linear-gradient(90deg, var(--hud) 1px, transparent 1px) 50% 0 / 26px 100%;
}
.hud__tunnel::before { bottom: 0; transform-origin: 50% 100%; transform: perspective(200px) rotateX(64deg); }
.hud__tunnel::after { top: 0; transform-origin: 50% 0; transform: perspective(200px) rotateX(-64deg); }
.hud__holo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; } /* scene.js holograms */
:root:not(.has-3d) .hud__tunnel .fallback-screen { position: relative; z-index: 1; margin: 0; border: 0; border-radius: 0; }
.member__desk { font-size: 0.64rem; line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--muted); }
.member__desk span { color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
.hud__foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 0.85rem; letter-spacing: 0.1em; }
.hud__foot .hud__stripe { width: 28%; }
.hud__foot i { flex: 1; border-top: 1.5px solid var(--hud); }
@container (max-width: 640px) {
  .hud { grid-template-columns: minmax(0, 1fr); grid-template-areas: "portrait" "term" "exit" "log" "id" "view"; }
  .hud__spine { display: none; }
  .hud__portrait { max-width: 280px; }
  .hud__exit { padding-left: 0; }
}
/* In 3D each member's details wait behind the tablet on their desk (scene.js);
   clicking it grows this card, a terminal readout, out of it to the middle of the
   screen. The first marker's margin keeps the camera at the desk for a while; the
   card no longer takes up scroll length itself. */
.has-3d .member > .cam:first-child { padding-bottom: 90vh; } /* padding: an empty block's margin would collapse away */
.has-3d .member__card {
  position: fixed; inset: 0; z-index: 30; margin: auto;
  width: min(880px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 100px); overflow-y: auto;
  padding: clamp(20px, 2.6vw, 32px);
  transform: scale(0.12); opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.has-3d .member.is-open .member__card, .has-3d .member__card:focus-within { transform: scale(1); opacity: 1; pointer-events: auto; }
.has-3d .member.is-open::before { content: ""; position: fixed; inset: 0; z-index: 29; background: rgba(4, 5, 7, 0.35); }
.member__close { display: none; }
.has-3d .member__close {
  display: grid; place-items: center; position: sticky; top: 0; float: right; margin: -6px 10px 0 12px;
  width: 34px; height: 34px; border-radius: 0; border: 1.5px solid var(--hud);
  background: #0a0a0b; color: var(--hud); line-height: 1; cursor: pointer;
}
.has-3d .member__close:hover, .has-3d .member__close:focus-visible { background: var(--hud); color: #0a0a0b; }
/* The identity box's [CLOSE], like the poster's bracketed buttons. */
.has-3d .member__close.hud__shut { display: inline; position: static; float: none; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--hud); }
.has-3d .member__close.hud__shut:hover, .has-3d .member__close.hud__shut:focus-visible { background: none; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .has-3d .member__card { transition: opacity 0.2s linear; transform: none; } }
/* Points at the tablet on the desk in view until a first card has been opened
   (scene.js positions it on the card and sets --hint to the member's colour). */
.vcard-hint {
  position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 26px));
  background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity 0.4s ease;
}
.vcard-hint.is-on { opacity: 1; }
.vcard-hint::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px;
  background: inherit; border-right: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(45deg);
}
.vcard-hint__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hint, #6fd3ff); animation: hint-ping 1.6s ease-out infinite; }
@keyframes hint-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hint, #6fd3ff) 70%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
:root:not(.has-3d) .vcard-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .vcard-hint__dot { animation: none; } }
.links { list-style: none; padding: 0; margin: 1em 0 0; display: flex; flex-wrap: wrap; gap: 14px; font: 500 0.76rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--accent); text-decoration: none; }
.links a::after { content: " ↗"; }
.links a:hover { text-decoration: underline; }

.capabilities { list-style: none; padding: 0; margin: 1.5em 0 2em; display: flex; flex-wrap: wrap; gap: 8px; }
.capabilities li { font: 600 0.82rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-2); }
.shared { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.shared li { display: grid; grid-template-columns: 110px 170px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shared__area { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cool); }
.shared li span:last-child { color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 640px) { .shared li { grid-template-columns: 1fr; gap: 2px; } }

/* ----------------------------------------------------------------- services */
.service-grid { list-style: none; padding: 0; margin: 1.4em 0 2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.service-grid > li { background: var(--panel-solid); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.service-grid .kicker { margin: 0; }
.service-grid strong { font-size: 1.15rem; letter-spacing: -0.01em; }
.service-grid span { color: var(--muted); font-size: 0.9rem; }
.service-grid .chips { margin: 0.4em 0 0; }
.pillar__cta { margin-top: auto; padding-top: 0.8em; font: 500 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cool); text-decoration: none; }
.pillar__cta:hover { text-decoration: underline; }
.approach { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }

/* ------------------------------------------------------------- AI terminal */
.ai { padding-top: 6vh; }
.terminal { border: 1px solid color-mix(in srgb, var(--term) 35%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--term) 6%, transparent), 0 30px 80px rgba(0, 0, 0, 0.5); }
.terminal__bar { font: 500 0.7rem var(--mono); letter-spacing: 0.16em; color: var(--term); display: flex; align-items: center; gap: 10px; }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--term); box-shadow: 0 0 12px var(--term); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.suggest { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 8px; }
.suggest button, .chat__suggest button {
  width: 100%; text-align: left; font: 400 0.92rem var(--font); color: var(--ink-2);
  background: color-mix(in srgb, var(--term) 4%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer;
}
.suggest button::before { content: "› "; color: var(--term); font-family: var(--mono); }
.suggest button:hover, .chat__suggest button:hover { border-color: var(--term); color: var(--ink); }

/* ------------------------------------------------------------------ contact */
.contact { min-height: 100vh; padding: 14vh 0 10vh; }
.contact__inner { width: min(860px, calc(100vw - 2 * var(--gutter))); margin-left: var(--gutter); }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -0.05em; }
.contact em { color: var(--warm-ink); }
.contact__grid { display: grid; gap: 16px; margin-top: 5vh; align-items: start; }
/* How a project starts: three short steps under the headline. */
.steps { list-style: none; margin: 5vh 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.steps__n { font: 600 0.72rem var(--mono); letter-spacing: 0.16em; color: var(--warm-ink); }
.steps strong { color: var(--ink); font-weight: 600; }
.steps li > span:last-child { color: var(--ink-2); font-size: 0.9rem; }
@media (min-width: 1100px) {
  .contact__inner { width: min(1180px, calc(100vw - 2 * var(--gutter) - 60px)); }
  .contact__grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
  .contact__grid .direct { grid-column: 2; grid-row: 1; }
  .contact__grid .inquiry { grid-column: 1; grid-row: 1; }
}
.direct { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); }
.direct .kicker { margin-bottom: 1em; }
.direct__email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.direct__email a { overflow-wrap: anywhere; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.direct .actions { margin-top: 1.2em; }
.partners { margin-top: 1.6em; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.partners .kicker { margin-bottom: 0.8em; }
.partners ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.partners li { display: grid; gap: 2px; }
.partners strong { font: 600 0.8rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.partners span { font-size: 0.86rem; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 1.4em 0 0; font: 500 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.inquiry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.inquiry.is-primed { border-color: var(--cool); box-shadow: 0 0 0 3px rgba(111, 211, 255, 0.18); }
.inquiry h3, .inquiry .notice, .field--full, .inquiry button { grid-column: 1 / -1; }
.inquiry button { justify-self: start; }
.inquiry button:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 640px) { .inquiry { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font: 500 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.opt { text-transform: none; color: var(--muted); letter-spacing: 0; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink);
  background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cool); outline-offset: 0; border-color: transparent; }
[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.86rem; margin: 0; }
.notice { padding: 12px 14px; border-radius: 10px; background: rgba(76, 255, 154, 0.08); border: 1px solid rgba(76, 255, 154, 0.35); color: var(--ink); margin: 0; }
.notice--error { background: rgba(255, 138, 122, 0.08); border-color: rgba(255, 138, 122, 0.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { padding: 56px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 0.88rem; background: var(--bg); }
.foot p { margin: 0; color: var(--muted); }
.foot__grid { display: grid; gap: 32px 40px; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__brand { display: grid; gap: 12px; max-width: 36ch; }
.foot__brand .badge { margin: 0; }
.foot .foot__name { color: var(--ink); }
.foot .foot__name .wordmark { width: 170px; }
.foot__col .kicker { margin-bottom: 0.9em; }
.foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__bar a { color: var(--ink-2); }
.foot__bar .foot__credit { font-size: 0.76rem; }
.foot__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
/* Fingers: small text links get a taller hit area. */
@media (pointer: coarse) {
  .foot__links { gap: 0; }
  .foot__links a, .foot__bar a, .pillar__cta { display: inline-block; padding-block: 10px; }
}
.foot__links a { overflow-wrap: anywhere; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }

/* -------------------------------------------- AI device (persistent opener) */
.device {
  position: fixed; z-index: 30;
  right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px; min-height: 52px;
  background: linear-gradient(180deg, #1a1d22, #0e1013);
  border: 1px solid color-mix(in srgb, var(--term) 28%, transparent); border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.55);
  color: var(--ink); font: 500 0.78rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.device:hover { border-color: var(--term); }
.device__ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--term); box-shadow: 0 0 14px color-mix(in srgb, var(--term) 70%, transparent), inset 0 0 8px color-mix(in srgb, var(--term) 50%, transparent); position: relative; }
.device__ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--term); animation: pulse 2.4s ease-in-out infinite; }
.device__wave { display: flex; align-items: center; gap: 2px; height: 16px; }
.device__wave i { width: 2px; height: 100%; background: var(--term); border-radius: 1px; animation: wave 1.2s ease-in-out infinite; transform-origin: center; }
.device__wave i:nth-child(2) { animation-delay: 0.15s; } .device__wave i:nth-child(3) { animation-delay: 0.3s; }
.device__wave i:nth-child(4) { animation-delay: 0.45s; } .device__wave i:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@media (max-width: 480px) { .device__wave { display: none; } }

/* --------------------------------------------------------- studio: Explore */
/* Entry point (3D only, once the studio is ready): the nav's button.
   explore.js does the rest. */
.modes { display: none; }
.has-3d.ready .modes { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.modes__btn {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 0.8rem var(--font); color: var(--ink-2);
}
.modes__btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
/* A phone's nav: logo, Explore and Start a project on one line. */
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav__brand .wordmark { width: 108px; }
  .modes__more { display: none; }
  .nav .btn--sm { padding: 0 0.9em; font-size: 0.82rem; }
}

/* In the studio the page steps aside: no scrolling, no reading column.
   An open member card (from a panel) still shows. */
.in-studio, .in-studio body { overflow: hidden; }
.in-studio main, .in-studio .foot, .in-studio .vcard-hint, .in-studio .modes { visibility: hidden; }
.in-studio .member.is-open .member__card, .in-studio .member.is-open::before { visibility: visible; }
.in-studio:has(.member.is-open) .focus { visibility: hidden; }
.studio-ui [hidden], .studio-ui[hidden] { display: none !important; }

.modebar {
  position: fixed; z-index: 25; left: 50%; top: calc(74px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.modebar__label { display: flex; align-items: center; gap: 10px; margin: 0 6px 0 0; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); --term: var(--cool); }

/* The focused panel: one layout for screens, desks, artefacts and fixtures,
   on the left where the page's reading column was. A terminal sheet like the
   member cards: white rules on black, mono type, hazard stripes. */
.focus {
  --hud: #ecebe6; --red: #e0313b;
  position: fixed; z-index: 25; left: var(--gutter); top: calc(136px + env(safe-area-inset-top, 0px));
  width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 250px); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 22px 22px;
  font: 500 0.8rem/1.55 var(--mono); color: var(--hud);
  background: repeating-linear-gradient(rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px), #0b0b0c;
  border: 1.5px solid var(--hud); border-radius: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  animation: rise 0.3s ease;
}
.focus::before { content: ""; display: block; height: 10px; margin: 16px 52px 14px 0; background: repeating-linear-gradient(-45deg, var(--hud) 0 4px, transparent 4px 9px); }
.focus__close {
  float: right; display: grid; place-items: center; width: 34px; height: 34px; margin: -28px -6px 0 12px;
  border-radius: 0; border: 1.5px solid var(--hud); background: #0b0b0c; color: var(--hud); cursor: pointer;
}
.focus__close:hover, .focus__close:focus-visible { background: var(--hud); color: #0b0b0c; }
.focus .kicker { color: var(--hud); letter-spacing: 0.2em; margin-bottom: 0.8em; }
.focus__title { font: 600 clamp(1.4rem, 2.2vw, 1.8rem)/1.15 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.3em; }
.focus__title::before { content: "$ "; color: var(--red); }
.focus__title:focus { outline: none; }
.focus__title:focus-visible { outline: 2px solid var(--cool); outline-offset: 4px; }
.focus__sub { font: 500 0.74rem/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent, var(--cool)); }
.focus__sub::before { content: "→ "; color: var(--hud); }
.focus__text { font-size: 0.78rem; color: var(--ink-2); margin-top: 0.8em; }
.focus__details { display: grid; gap: 2px; margin: 0.4em 0 1em; counter-reset: node; }
.focus__details li { padding: 0; border: 0; border-radius: 0; font-size: 0.7rem; color: var(--hud); text-transform: uppercase; counter-increment: node; }
.focus__details li::before { content: "NODE_" counter(node, decimal-leading-zero) ": /"; }
.focus__note { font-size: 0.72rem; color: var(--muted); }
.focus__note::before { content: "[on the desk] "; content: "[on the desk] " / ""; color: var(--red); text-transform: uppercase; }
.focus__actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.2em; }
.focus__actions .btn { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--hud); font: 500 0.8rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.focus__actions .btn::before { content: "["; }
.focus__actions .btn::after { content: "]"; }
.focus__actions .btn--primary { color: var(--accent, var(--hud)); }
.focus__actions .btn:hover, .focus__actions .btn:focus-visible { text-decoration: underline; }

/* Every object in the room, as buttons (keyboard and screen-reader route to the same panels). */
.hotspots {
  position: fixed; z-index: 25; right: 18px; top: calc(136px + env(safe-area-inset-top, 0px));
  width: 250px; max-height: calc(100vh - 230px); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 12px 12px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
/* The list is the overview; a focused panel takes its place (closing it returns here). */
.studio-ui:has(.focus:not([hidden])) .hotspots { display: none; }
.hotspots .kicker { margin: 0.4em 6px 0.5em; color: var(--muted); }
.hotspots ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.hotspots button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px; text-align: left;
  border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer;
  font: 400 0.88rem var(--font); color: var(--ink-2);
}
.hotspots button:hover, .hotspots button:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.hotspots button[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--accent, var(--cool)) 55%, transparent); background: color-mix(in srgb, var(--accent, var(--cool)) 12%, transparent); font-weight: 600; }
.hotspots__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 0.64rem var(--mono); color: var(--accent, var(--muted)); }

/* Corner brackets and a name around the object under the pointer or focus (scene.js). */
.reticle {
  --c: rgba(240, 236, 228, 0.92); --l: 14px; --w: 1.5px;
  position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity 0.18s ease;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w), linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w), linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w), linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w), linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l);
  background-repeat: no-repeat;
}
.reticle.is-on { opacity: 1; }
.reticle__label {
  position: absolute; left: 0; bottom: calc(100% + 8px); white-space: nowrap; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid rgba(255, 255, 255, 0.18);
  font: 500 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}

/* A narrow window (the studio started wide, then shrank): the panel and the
   list become bottom sheets, and the list steps aside while a panel is open. */
@media (max-width: 900px) {
  .modebar { top: calc(64px + env(safe-area-inset-top, 0px)); padding-left: 12px; }
  .modebar__label { display: none; }
  .focus, .hotspots { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); max-height: 44vh; } /* clear of the AI device */
  .hotspots ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .focus { animation: none; } }

/* -------------------------------------------------------------- chat dialog */
.chat {
  width: min(460px, calc(100vw - 24px)); max-height: min(680px, calc(100vh - 40px));
  margin: auto 18px 18px auto; padding: 0;
  background: #0d0f12; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--term) 30%, transparent); border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  display: none; flex-direction: column;
}
.chat[open] { display: flex; animation: rise 0.28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.chat::backdrop { background: rgba(4, 5, 7, 0.55); }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #161a1f, #0d0f12); border-radius: 16px 16px 0 0; }
.chat__head p { margin: 0; display: flex; align-items: center; gap: 10px; font: 500 0.78rem var(--mono); letter-spacing: 0.14em; color: var(--term); }
.chat__sub { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-size: 0.7rem; }
.chat__close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.msg { margin: 0; padding: 10px 13px; border-radius: 12px; max-width: 88%; white-space: pre-wrap; font-size: 0.94rem; line-height: 1.5; }
.msg--ai { background: #161a1f; color: var(--ink); border: 1px solid var(--line); align-self: flex-start; }
.msg--you { background: var(--ink); color: var(--bg); align-self: flex-end; }
.msg--wait { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.msg--err { border-color: rgba(255, 138, 122, 0.45); }
.msg__scope {
  align-self: flex-start; margin-top: -2px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font: 500 0.76rem var(--mono); letter-spacing: 0.04em; color: #0b0c0e; background: var(--term); border: 1px solid var(--term);
}
.msg__scope:hover { background: #fff; border-color: #fff; }
.chat__suggest { list-style: none; margin: 0; padding: 0 16px 10px; display: grid; gap: 6px; }
.chat__suggest button { font-size: 0.84rem; padding: 8px 12px; }
.chat__form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat__form input { padding: 10px 12px; }
@media (max-width: 520px) { .chat { margin: auto 12px 12px; max-height: calc(100dvh - 24px); } }

/* --------------------------------------------------------------- motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------- consent banner + legal */
.legal__badge { margin: 0; font: 500 0.7rem/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cool); }
.tag { display: inline-block; margin: 0 0 0 6px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); vertical-align: 1px; }
.tag[hidden] { display: none; }
.tag--ok { margin: 0; color: var(--ok); border-color: rgba(76, 255, 154, 0.4); }

/* A slim strip along the bottom-left: bottom-right belongs to the AI device.
   The badge only names the section for screen readers. */
.consent-banner {
  position: fixed; z-index: 40; left: 1.5rem; right: 260px; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px 18px; max-width: 980px;
  padding: 10px 12px 10px 18px; border: 1px solid var(--line-2); border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.consent-banner[hidden] { display: none; }
.consent-banner .legal__badge { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.consent-banner p:not(.legal__badge) { flex: 1; margin: 0; font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); }
.consent-banner a { color: var(--ink); }
.consent-banner__actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; flex-shrink: 0; }
.consent-banner__prefs { margin-left: 4px; font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
/* Narrow screens: full width above the AI device, buttons under the text. */
@media (max-width: 900px) {
  .consent-banner { left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; padding: 12px 14px; }
  .consent-banner__actions { flex-wrap: wrap; }
}

.legal {
  width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  display: none; flex-direction: column;
}
.legal[open] { display: flex; animation: rise 0.28s ease; }
.legal::backdrop { background: rgba(4, 5, 7, 0.65); }
.legal__head { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.legal__date { margin: 0 0 0 auto; font: 500 0.68rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legal__tabs { display: flex; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.legal__tabs a { flex: none; white-space: nowrap; padding: 9px 12px; border-radius: 8px; font: 500 0.74rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
.legal__tabs a:hover { color: var(--ink); }
.legal__tabs a[aria-current] { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.legal__body { overflow-y: auto; padding: 8px 22px 28px; overscroll-behavior: contain; }
.legal__body section { max-width: 72ch; }
.legal__body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.8em 0 0.5em; }
.legal__body h3 { font-size: 1rem; letter-spacing: -0.01em; margin: 1.8em 0 0.6em; }
.legal__body p, .legal__body li, .legal__body dd { font-size: 0.93rem; }
.legal__body a { color: var(--cool); }
.legal__body .outcomes { gap: 8px; }
.legal__body .outcomes li::before { background: var(--cool); }
.legal__dl { display: grid; gap: 16px; margin: 0; }
.legal__dl div { border-left: 2px solid var(--line-2); padding-left: 14px; }
.legal__dl dt { font-weight: 600; margin-bottom: 4px; }
.legal__dl dd { margin: 0; color: var(--ink-2); }
.legal__contact { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.legal__contact p:last-child { margin: 0; }
@media (max-width: 560px) { .legal__date { display: none; } .legal__head .chat__close { margin-left: auto; } }

.consent { display: grid; gap: 1px; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.consent__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; background: var(--panel-solid); }
.consent__row p { margin: 0; }
.consent__row p + p { margin-top: 4px; font-size: 0.86rem; color: var(--muted); }
.consent__name { font-weight: 600; color: var(--ink); }
.consent__save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; background: var(--panel-solid); }
input[role="switch"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 24px; padding: 0; margin: 0;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--field); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
input[role="switch"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
input[role="switch"]:checked { background: color-mix(in srgb, var(--cool) 30%, transparent); border-color: var(--cool); }
input[role="switch"]:checked::after { transform: translateX(20px); background: var(--cool); }
input[role="switch"]:disabled { cursor: not-allowed; opacity: 0.7; }
input[role="switch"]:focus { outline: none; }
input[role="switch"]:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; }
.legal__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.legal__table th, .legal__table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table th { font: 500 0.68rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal__table td:first-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.legal__table td { color: var(--ink-2); }

.inquiry__note { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--muted); }
.inquiry__note a, .foot__legal a { color: var(--ink-2); }

.foot__legal a { font-size: 0.8rem; }
