/* ═══════════════════════════════════════════════════════════
   MACHINA — global.css · 360labs visual system · LIGHT MODE
   STRICT PALETTE: void #0A0C18 · porcelain #F4F9FB · indigo #2E2C64
   (+ alpha tints only). Sharp 90° corners · 1px hairlines ·
   zero shadows · zero gradients · zero imagery beyond the mark.
   Type: Inter (display+body) · Space Mono (HUD micro).
   ═══════════════════════════════════════════════════════════ */

:root {
  --void: #0A0C18;
  --porcelain: #F4F9FB;
  --indigo: #2E2C64;

  /* ink = void tints on porcelain */
  --ink-80: rgba(10, 12, 24, 0.82);
  --ink-60: rgba(10, 12, 24, 0.60);
  --ink-45: rgba(10, 12, 24, 0.55);

  /* hairlines = indigo tints */
  --line: rgba(46, 44, 100, 0.20);
  --line-soft: rgba(46, 44, 100, 0.10);
  /* hover washes = indigo tints */
  --card: rgba(46, 44, 100, 0.05);
  --card-2: rgba(46, 44, 100, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "Space Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink-60);
  font: 400 17px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--indigo); color: var(--porcelain); }

h1, h2, h3 { font-family: "Inter"; font-weight: 800; color: var(--void); }

a { color: inherit; text-decoration: none; }

/* ── HUD micro-type (the 360labs "technical dashboard" voice) ─ */
.mono {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-45);
}

/* ── scroll progress hairline ───────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--indigo); z-index: 60;
}

/* parallax back-structure texture: single marks at minimal presence */
.seal-clip { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.seal-bg {
  position: absolute; width: clamp(320px, 44vw, 620px);
  opacity: 0.07; pointer-events: none;
  will-change: transform;
}
.seal-bg img { width: 100%; height: auto; display: block; }
/* part-only textures: thinner ink than the full mark => a touch more presence */
.seal-bg.tx-ring    { opacity: 0.10; }
.seal-bg.tx-lattice { opacity: 0.08; width: clamp(280px, 36vw, 480px); }
.seal-bg.tx-face    { opacity: 0.12; width: clamp(240px, 30vw, 400px); }
.seal-bg.tx-p1      { opacity: 0.07; }
/* part motion — rotation lives on the <img>, parallax owns the wrapper (no conflict) */
.tx-ring img { animation: tx-spin 90s linear infinite; }
@keyframes tx-spin { to { transform: rotate(360deg); } }
.tx-face img { animation: tx-float 7s ease-in-out infinite; }
@keyframes tx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* the 360labs positions */
.seal-bg.right { right: -6%; top: 8%; }
.seal-bg.left { left: -6%; bottom: 4%; }
.seal-bg.left-top { left: -6%; top: 8%; }
.seal-bg.right-bottom { right: -6%; bottom: 4%; }
.section > .wrap { position: relative; z-index: 1; }
.frame > .hero { position: relative; }

/* ── terminal readout (Nous-style data aesthetic) ───────────── */
.readout {
  position: fixed; left: 16px; bottom: 16px; z-index: 55;
  display: flex; gap: 14px; align-items: baseline;
  border: 1px solid var(--line); background: var(--porcelain);
  padding: 8px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-45); text-transform: uppercase;
}
.readout b { font-weight: 700; color: var(--void); }
.readout .ro-dot {
  width: 6px; height: 6px; background: var(--indigo); display: inline-block;
}

/* ── marquee strip (infinite, CSS-only) ─────────────────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  white-space: nowrap;
}
.marquee .track { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-60);
}
.marquee .item::before {
  content: ""; width: 6px; height: 6px; background: var(--indigo);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── reveal (restrained) ────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── top frame: 1px box holding nav + hero (the 360labs box) ─ */
.frame {
  border: 1px solid var(--line);
  background: var(--porcelain);
  min-height: max(560px, min(100svh, 860px));
  display: flex; flex-direction: column;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; font: 800 15px/1 "Inter"; letter-spacing: 0.26em; color: var(--void); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); }
.nav a:hover { color: var(--void); }
.top-actions { display: flex; gap: 10px; }

/* sharp, hairline buttons — invert on hover */
.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--line);
  color: var(--void); background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--indigo); border-color: var(--indigo); color: var(--porcelain); opacity: 1; }
.btn-solid { background: var(--indigo); border-color: var(--indigo); color: var(--porcelain); }
.btn-solid:hover { background: var(--void); border-color: var(--void); }

/* micro-interactions */
.btn { position: relative; }
.magnetic { transition: transform 0.2s var(--ease); }
.nav a, .contact-sub a, .foot-meta a {
  position: relative;
}
.nav a::after, .contact-sub a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--void);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .contact-sub a:hover::after { transform: scaleX(1); transform-origin: left; }

.case { transition: background 0.3s var(--ease); position: relative; }
.case:hover { background: var(--card-2); }
.cap { transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.cap:hover { background: var(--card-2); border-color: var(--line); }
.tag-hover { transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.tag-hover:hover { border-color: var(--indigo); color: var(--void); }

/* ── hero: HUD meta + animated agent-in-browser mock + mega cropped word ── */
.hero {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 24px; overflow: hidden;
}
.hero-grid { position: relative; z-index: 2; display: grid; justify-items: center; gap: 34px; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; margin: 0; }
.hero-meta .m {
  border-left: 1px solid var(--line); padding-left: 16px; margin: 0 0 0 28px;
  width: 148px; line-height: 1.6;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
}
.hero-meta .m:first-child { margin-left: 0; }

/* agent mock: a hairline browser where the machine works — the product, at a glance */
.agent-mock {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--mono);
  position: relative;
}
.am-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45);
}
.am-dot { width: 8px; height: 8px; background: var(--indigo); animation: term-pulse 1.6s steps(2, end) infinite; flex: none; }
.am-step { margin-left: auto; color: var(--void); font-weight: 700; white-space: nowrap; }
.am-page {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1fr;
  gap: 10px; padding: 14px;
}
.am-cell {
  position: relative; border: 1px solid var(--line-soft);
  padding: 26px 10px 10px; min-height: 92px;
}
.am-cell > span { position: absolute; top: 7px; right: 9px; font-size: 8px; letter-spacing: 0.16em; color: var(--ink-45); }
.am-cell i { display: block; height: 3px; background: var(--line); margin: 8px 0; }
.am-cell em { display: block; width: 10px; height: 10px; border: 1px solid var(--indigo); margin: 8px 0; position: relative; }
.am-cell em::after { content: ""; position: absolute; inset: 2px; background: var(--indigo); }
.am-cell .am-btn {
  position: absolute; bottom: 10px; right: 10px;
  font: 700 9px/1 var(--mono); letter-spacing: 0.14em;
  background: var(--void); color: var(--porcelain);
  padding: 7px 12px;
}
.am-hl {
  position: absolute; width: 0; height: 0;
  border: 1px solid var(--indigo); background: rgba(46, 44, 100, 0.06);
  pointer-events: none; opacity: 0;
}
.am-cursor {
  position: absolute; z-index: 3;
  width: 0; height: 0;
  border-left: 9px solid var(--void);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  pointer-events: none; opacity: 0;
}
.am-log {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.1em; color: var(--ink-60);
  min-height: 38px; white-space: nowrap; overflow: hidden;
}
.am-log-dot { width: 7px; height: 7px; background: var(--indigo); animation: term-pulse 1.6s steps(2, end) infinite; flex: none; }
.am-log-text { overflow: hidden; text-overflow: ellipsis; }

.mega {
  font: 900 calc((100vw - 48px) / 4.8) / 0.8 "Inter";
  letter-spacing: -0.03em; color: var(--void);
  white-space: nowrap; margin: 0;
  margin-bottom: -0.14em;   /* descender crop — the 360labs bleed */
}

/* ── section primitives ──────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 150px 0; position: relative; overflow: hidden; }
#proof { overflow: visible; } /* pinned rail: ScrollTrigger pin-spacer must not be clipped */
.section + .section { padding-top: 0; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 20px; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 26px; }
.lede { color: var(--ink-60); font-size: 18px; line-height: 1.75; margin: 0; }

/* ── intro: statement + lede + CTAs, then positioning strip ── */
.intro { padding-top: 130px; }
.stmt { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 34px; }
.intro-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; margin-bottom: 84px; }
.intro-grid .hero-row { display: flex; gap: 12px; flex-wrap: wrap; }

.strip { border-block: 1px solid var(--line); }
.strip .row { display: flex; flex-wrap: wrap; }
.strip .cell { flex: 1 1 220px; padding: 30px 28px; border-left: 1px solid var(--line-soft); }
.strip .cell:first-child { border-left: none; }
.strip .cell strong { display: block; font-family: "Inter"; font-weight: 700; font-size: 17px; letter-spacing: 0.01em; margin: 0 0 8px; color: var(--void); }
.strip .cell span { color: var(--ink-60); font-size: 14.5px; line-height: 1.6; display: block; }

/* ── case studies ────────────────────────────────────────────── */
.case { display: grid; grid-template-columns: 110px 1fr; gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); align-items: start; }
.case:last-child { border-bottom: 1px solid var(--line); }
.case .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-45); padding-top: 8px; }
.case h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--void); }
.case p { color: var(--ink-60); font-size: 16.5px; margin: 0 0 18px; max-width: 62ch; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 7px 13px; color: var(--ink-60);
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 26px; max-width: 640px; }
.stat-row div { border-left: 1px solid var(--line-soft); padding: 4px 18px 0 18px; }
.stat-row div:first-child { border-left: none; padding-left: 0; }
.stat-row strong { display: block; font-family: "Inter"; font-weight: 800; font-size: 30px; letter-spacing: -0.01em; margin: 0 0 4px; color: var(--void); }
.stat-row span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-45); }

/* case study: the reel (autoplays on load) + a compact, centered live-run box below it */
.reel {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--void); border: 1px solid var(--line); margin: 0 0 10px;
}
.reel-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-45); margin: 0 0 34px;
}
/* scene-graph beats (narrated screengraphs): same treatment as the reel, one-click sound toggle */
.beat-frame {
  position: relative;
  margin: 44px 0 10px;
}
.beat-frame .beat {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--void); border: 1px solid var(--line); margin: 0;
}
.beat-sound {
  position: absolute; right: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  padding: 5px 9px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(10, 12, 24, 0.72);
  color: var(--porcelain); transition: background 0.2s;
}
.beat-sound[aria-pressed="true"] {
  background: var(--indigo); border-color: var(--indigo);
}
.beat-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-45); margin: 0 0 34px;
}
.runbox {
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--porcelain);
  font-family: var(--mono);
  max-width: 540px;
  margin: 0 auto;
}
.runbox-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(46, 44, 100, 0.55);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244, 249, 251, 0.55);
}
.runbox-bar b { color: var(--porcelain); font-weight: 700; }
.runbox .term-tags { display: inline-flex; gap: 8px; margin-left: auto; }
.runbox .term-tab.is-on { border-color: var(--porcelain); }
.runbox .term-log { min-height: 132px; padding: 16px 14px; font-size: 11.5px; }
.term {
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--porcelain);
  font-family: var(--mono);
  margin: 0 0 56px;
  position: relative;
}
.term-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(46, 44, 100, 0.55);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244, 249, 251, 0.55);
}
.term-bar b { color: var(--porcelain); font-weight: 700; }
.term-dot {
  width: 8px; height: 8px; background: var(--indigo);
  animation: term-pulse 1.6s steps(2, end) infinite;
}
@keyframes term-pulse { 50% { opacity: 0.25; } }
.term-tabs { margin-left: auto; display: flex; gap: 8px; }
.term-tab {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(46, 44, 100, 0.55);
  color: rgba(244, 249, 251, 0.55); padding: 5px 10px; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.term-tab:hover { color: var(--porcelain); border-color: var(--porcelain); }
.term-tab.is-on { background: var(--porcelain); color: var(--void); border-color: var(--porcelain); }
.term-log {
  margin: 0; padding: 22px 16px;
  min-height: 208px;
  font-size: 12.5px; line-height: 2;
  white-space: pre-wrap;
  color: rgba(244, 249, 251, 0.85);
}
.term-log .tl-ok { color: var(--porcelain); }
.term-log .term-cursor {
  display: inline-block; width: 8px; height: 14px; background: var(--indigo);
  vertical-align: -2px; margin-left: 2px;
  animation: term-pulse 1s steps(2, end) infinite;
}

/* ── the math: interactive estimator ─────────────────────────── */
.est {
  border: 1px solid var(--line);
  margin-top: 56px;
  background: var(--card);
}
.est-ctrl {
  display: grid; grid-template-columns: auto 1fr; gap: 40px;
  padding: 34px 32px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.est-jobs { display: flex; flex-direction: column; gap: 8px; }
.est-job {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line); color: var(--ink-60);
  padding: 11px 18px; cursor: pointer; text-align: left;
  transition: all 0.25s var(--ease);
  min-width: 148px;
}
.est-job:hover { color: var(--void); border-color: var(--void); }
.est-job.is-on { background: var(--void); color: var(--porcelain); border-color: var(--void); }
.est-slider { min-width: 0; }
.est-slider label {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em;
  color: var(--ink-45); margin-bottom: 14px;
}
.est-slider .row { display: flex; align-items: center; gap: 18px; }
input[type="range"].est-range {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 160px;
  height: 1px; background: var(--line); outline: none; cursor: ew-resize;
}
input[type="range"].est-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; background: var(--void); border: 1px solid var(--indigo);
  cursor: ew-resize;
}
input[type="range"].est-range::-moz-range-thumb {
  width: 13px; height: 13px; background: var(--void); border: 1px solid var(--indigo);
  border-radius: 0; cursor: ew-resize;
}
input[type="range"].est-range::-moz-range-track { height: 1px; background: var(--line); }
.est-slider output {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--void); font-weight: 700; min-width: 64px; text-align: right;
}
.est-out {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line-soft);
}
.est-out { border-left: none; }
.est-num {
  padding: 30px 32px;
  border-left: 1px solid var(--line-soft);
}
.est-num:first-child { border-left: none; padding-left: 32px; }
.est-num strong {
  display: block; font-family: "Inter"; font-weight: 800;
  font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -0.02em;
  color: var(--void); margin: 0 0 10px; font-variant-numeric: tabular-nums;
}
.est-num span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45); line-height: 1.7;
}
.est-num.est-fixed strong { color: var(--indigo); }
.est-note {
  padding: 18px 32px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-45); margin: 0;
}

/* step progress bars (Hermes "process bar" move, on-system) */
.step-bar { height: 3px; background: var(--line-soft); margin: 22px 0 10px; position: relative; overflow: hidden; }
.step-fill {
  position: absolute; inset: 0; background: var(--indigo);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease) 0.3s;
}
.step-pct { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-45); }

/* capability cards: spec-chip reveals on hover */
.cap { position: relative; overflow: hidden; transition: background 0.25s var(--ease); }
.cap:hover { background: var(--card); }
.cap-chip {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--indigo); border: 1px solid var(--line);
  padding: 5px 9px;
  opacity: 0; transform: translateY(-5px);
  transition: all 0.3s var(--ease);
}
.cap:hover .cap-chip { opacity: 1; transform: translateY(0); }

/* ── case-study rail: pinned horizontal journey (desktop) ────── */
.rail { height: 100svh; overflow: hidden; border-block: 1px solid var(--line); }
.rail-track { display: flex; height: 100%; will-change: transform; }
.slide {
  width: 100%; flex: 0 0 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px; position: relative;
}
.slide + .slide { border-left: 1px solid var(--line-soft); }
.slide .slide-num { position: absolute; top: 44px; right: 48px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-45); }
.slide h3 { font-size: clamp(30px, 4vw, 54px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.05; margin: 0 0 18px; color: var(--void); max-width: 16ch; }
.slide p { color: var(--ink-60); font-size: 17px; line-height: 1.7; margin: 0 0 24px; max-width: 56ch; }
.slide .stat-row { max-width: 560px; }
.slide .cta {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--void); border-bottom: 1px solid var(--line); padding-bottom: 10px;
  align-self: flex-start;
}
.slide .cta::after { content: "→"; }

/* rail is desktop-only; stacked cases are the fallback (mobile + reduced-motion + no-JS) */
@media (min-width: 821px) {
  .cases-stack { display: none; }
}
@media (max-width: 820px) {
  .rail { display: none; }
}
@media (min-width: 821px) and (prefers-reduced-motion: reduce) {
  .rail { display: none; }
  .cases-stack { display: block; }
}

/* ── how it works ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.step { padding: 44px 32px; border-left: 1px solid var(--line); }
.step:first-child { border-left: none; }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-45); display: block; margin: 0 0 20px; }
.step h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; color: var(--void); }
.step p { color: var(--ink-60); font-size: 15px; margin: 0; line-height: 1.65; }

/* ── capabilities ────────────────────────────────────────────── */
.caps { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.cap { padding: 36px 32px; border: 0 solid var(--line-soft); }
.cap:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.cap:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
.cap h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--void); }
.cap p { color: var(--ink-60); font-size: 15px; margin: 0; line-height: 1.65; }

/* ── anatomy of the mark: interactive assembly (3 component parts) ── */
.anatomy-grid { display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 64px; align-items: start; margin-top: 44px; }
.anat-stage {
  aspect-ratio: 1; border: 1px solid var(--line); position: relative;
  overflow: hidden; background: var(--card);
}
.anat-part { position: absolute; left: 50%; top: 50%; width: 86%; transform: translate(-50%, -50%); will-change: transform, opacity; }
.anat-part svg, .anat-part img { width: 100%; height: 100%; display: block; }
/* DEPTH LAYERING — ring back (biggest) > lattice middle (gap to ring) > face front
   ink-radius (measured): ring .444·w  lattice .442·w  face .558·w
   widths chosen so rendered ink = ring .444 > lattice .318 (a .126 gap) > face .279 */
.anat-part.p-ring    { width: 100%; z-index: 1; }
.anat-part.p-lattice { width: 72%;  z-index: 2; }
.anat-part.p-face    { width: 36%;  z-index: 4; }
/* solid "window" disc: BETWEEN face ink (r≈38px @380 stage) and lattice ink (r≈60px),
   leaving a ~14px visible lattice band so the web stays readable (lattice-not-eaten).
   Scales proportionally: @460 stage -> band ~18px */
.face-knockout {
  position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: rgb(234, 239, 243); /* opaque composite of --card over the porcelain section — invisible against the stage, knocks out the lattice behind the face */
  border-radius: 50%; z-index: 3;
  pointer-events: none;
}
/* HUD list rows */
.anat-list { display: grid; align-content: start; }
.anat-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft); cursor: default;
  transition: background 0.25s var(--ease);
}
.anat-row:first-child { border-top: 1px solid var(--line-soft); }
.anat-row .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-45); letter-spacing: 0.1em; }
.anat-row h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--void); }
.anat-row p { font-size: 14px; color: var(--ink-60); margin: 0; line-height: 1.55; }
.anat-row .state {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-45); border: 1px solid var(--line-soft); padding: 6px 10px; white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.anat-row:hover { background: var(--card); }
.anat-row:hover .state { border-color: var(--indigo); color: var(--indigo); }
/* isolated state: dim other parts when a row is hovered */
.anat-stage[data-isolate="ring"] .anat-part:not(.p-ring),
.anat-stage[data-isolate="lattice"] .anat-part:not(.p-lattice),
.anat-stage[data-isolate="face"] .anat-part:not(.p-face) { opacity: 0.1; }
.anat-stage .anat-part { transition: opacity 0.3s var(--ease); }
/* 3D depth stage (three.js, lazy-loaded near #mark; 2D parts are the fallback) */
.anat-3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 5; opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.anat-stage.is-3d .anat-3d { opacity: 1; }
.anat-stage.is-3d .anat-part,
.anat-stage.is-3d .face-knockout { display: none; }
.anat-caption { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); margin-top: 14px; }
.anat-toggle {
  margin-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--void); background: transparent; border: 1px solid var(--line); padding: 12px 18px;
  cursor: pointer; transition: all 0.25s var(--ease);
}
.anat-toggle:hover { background: var(--void); border-color: var(--void); color: var(--porcelain); }

/* continuous + scrubbed motion, all transform-only */
.anat-part.p-ring { animation: anat-spin 90s linear infinite; }
@keyframes anat-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.anat-part.p-face { animation: anat-float 6s ease-in-out infinite; }
@keyframes anat-float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }

@media (max-width: 820px) {
  .anatomy-grid { grid-template-columns: 1fr; gap: 40px; }
  .anat-stage { max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .anat-part.p-ring, .anat-part.p-face { animation: none; }
}

/* ── about / operator ────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.about-mark { width: 180px; height: 180px; }
.about p { color: var(--ink-60); margin: 0 0 18px; font-size: 16.5px; }
.about p strong { color: var(--void); font-weight: 700; }
.creds { list-style: none; padding: 0; margin: 30px 0 0; }
.creds li { padding: 13px 0 13px 28px; position: relative; color: var(--ink-60); border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.creds li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 8px; height: 8px; background: var(--void);   /* square marker — sharp system */
}
.creds li:last-child { border-bottom: none; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font: 600 18px/1.4 "Inter"; color: var(--void);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-45); font-size: 18px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-60); font-size: 15.5px; line-height: 1.7; margin: 0; padding: 0 0 26px; max-width: 64ch; }

/* ── contact: full-bleed indigo block (the one fill on the page) */
.contact {
  background: var(--indigo); color: var(--porcelain);
  padding: 96px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.contact-seal {
  position: absolute; width: clamp(300px, 40vw, 560px);
  right: -4%; bottom: -6%; opacity: 0.18;
  will-change: transform;
}
.contact > h2, .contact > p, .contact > .mail, .contact > .contact-sub { position: relative; z-index: 1; }
.contact h2 { color: var(--porcelain); font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 14px; }
.contact p { color: rgba(244, 249, 251, 0.7); margin: 0 0 40px; }
.mail {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(16px, 2.6vw, 24px); letter-spacing: 0.06em;
  display: inline-block; color: var(--porcelain);
}
.mail:hover { opacity: 0.8; }
.contact-sub { display: flex; gap: 32px; justify-content: center; margin-top: 26px; }
.contact-sub a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 249, 251, 0.55); }
.contact-sub a:hover { color: var(--porcelain); opacity: 1; }

/* ── footer: HUD meta-grid + mega anchor + legal line ───────── */
footer { border-top: 1px solid var(--line); }
.foot-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 36px 24px; max-width: 1180px; margin: 0 auto;
}
.foot-meta .fm { border-left: 1px solid var(--line-soft); padding: 0 0 0 16px; margin-left: 20px; }
.foot-meta .fm:first-child { border-left: none; margin-left: 0; padding-left: 0; }
.foot-meta .fm b { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 6px; }
.foot-meta .fm span { font-size: 13px; color: var(--ink-60); }
.foot-meta .fm a { color: var(--ink-60); }
.foot-meta .fm a:hover { color: var(--void); }
.mega-foot { overflow: hidden; text-align: left; padding: 0 24px; }
.mega-foot .mega { margin-bottom: -0.14em; }
.legal {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 22px 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45);
}
.legal .l { display: flex; align-items: center; gap: 10px; }
.legal img { width: 18px; height: 18px; }
.legal a { color: var(--ink-45); }
.legal a:hover { color: var(--void); }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .section { padding: 96px 0; }
  .intro { padding-top: 90px; }
  .topbar { gap: 14px; padding: 16px 18px; }
  .nav { gap: 16px; }
  .nav a { font-size: 10px; letter-spacing: 0.1em; white-space: nowrap; }
  /* HUD meta: 2×2 grid, text wraps within each cell — no right-edge clipping */
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; justify-content: center; }
  .hero-meta .m {
    width: auto; margin: 0; border-left: 1px solid var(--line); padding-left: 14px;
    line-height: 1.7; font-size: 9px; letter-spacing: 0.08em;
  }
  /* agent mock: 2×2 cells on phones */
  .hero-grid { gap: 22px; }
  .am-page { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .am-cell { min-height: 74px; padding: 22px 8px 8px; }
  .runbox { max-width: 100%; }
  .runbox .term-tags { margin-left: 0; }
  .stat-row { display: grid; grid-template-columns: 1fr; gap: 20px 0; max-width: none; }
  .stat-row div { border-left: none; padding: 14px 0; border-top: 1px solid var(--line-soft); }
  .stat-row div:first-child { border-top: none; padding-top: 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .case { grid-template-columns: 1fr; gap: 8px; padding: 36px 0; }
  .case .num { padding-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); }
  .step:first-child { border-top: none; }
  .caps { grid-template-columns: 1fr; }
  .cap:nth-child(odd) { border-right: none; }
  .cap { border-top: 1px solid var(--line-soft); }
  .cap:first-child { border-top: none; }
  /* estimator stacks on phones */
  .est-ctrl { grid-template-columns: 1fr; gap: 26px; }
  .est-jobs { flex-direction: row; flex-wrap: wrap; }
  .est-job { min-width: 0; flex: 1 1 96px; text-align: center; }
  .est-out { grid-template-columns: 1fr; }
  .est-num { border-left: none; border-top: 1px solid var(--line-soft); padding: 22px 32px; }
  .est-num:first-child { border-top: none; padding-left: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-mark { width: 120px; height: 120px; }
  .strip .cell { flex-basis: 100%; border-left: none; border-top: 1px solid var(--line-soft); }
  .strip .cell:first-child { border-top: none; }
  .foot-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-meta .fm { border-left: none; padding: 0; margin: 0; }
  .contact { padding: 72px 24px; }
}
