/* Pivotal Nova design system */
:root {
  --bg: #060810;
  --surface: #0b0f1c;
  --surface-2: #111729;
  --line: rgba(150, 165, 210, 0.15);
  --line-strong: rgba(150, 165, 210, 0.3);
  --text: #f3f5fb;
  --muted: #a7b1c8;
  --faint: #8590ab;
  --accent: #6fc4ff;
  --sky: #35b4ff;
  --blue: #3b5bff;
  --violet: #8a63ff;
  --grad: linear-gradient(105deg, var(--sky), var(--blue) 52%, var(--violet));
  --btn-bg: #ffffff;
  --btn-fg: #070a14;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: clamp(1320px, 86vw, 1840px); /* Fixed up to laptop widths, then grows with the screen */
  --hero-col: 35rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.75rem, 8.5vw, 8rem);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.light {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #e9edf6;
  --line: rgba(12, 18, 34, 0.12);
  --line-strong: rgba(12, 18, 34, 0.26);
  --text: #0c1222;
  --muted: #475168;
  --faint: #5b667d;
  --accent: #2742e0;
  --btn-bg: #0c1222;
  --btn-fg: #ffffff;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.06; letter-spacing: -0.032em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 4.5vw, 4.25rem); letter-spacing: -0.042em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.018em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.08rem, 1.32vw, 1.24rem); color: var(--muted); max-width: 40em; line-height: 1.56; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section + .section:not(.light) { border-top: 1px solid var(--line); }
.light + .section { border-top: 0 !important; }
.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 4.5vw, 4rem); max-width: 50rem; }
.eyebrow { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--accent); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reveal: visible by default, only animated when scripting is available */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font: 500 0.98rem/1 var(--font); letter-spacing: -0.008em; padding: 0.95rem 1.3rem; border-radius: 8px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease; white-space: nowrap; }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--blue)); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 0.68rem 0.95rem; font-size: 0.92rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); text-decoration: none; font-weight: 500; }
.text-link span { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color 0.16s ease; }
.text-link:hover span { border-color: currentColor; }
.text-link .arrow { transition: transform 0.18s ease; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 8, 16, 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color 0.2s ease, background-color 0.2s ease; }
.site-header.scrolled, .site-header.open { border-bottom-color: var(--line); background: rgba(6, 8, 16, 0.95); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font: 500 1.12rem/1 var(--font); letter-spacing: -0.025em; }
.brand img { height: 1.7rem; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; }
.nav > ul > li { display: flex; align-items: center; }
.menu-btn { display: inline-flex; align-items: center; }
.nav a:not(.btn), .menu-btn { color: var(--muted); text-decoration: none; font: 400 0.96rem/1 var(--font); background: none; border: 0; padding: 0.5rem 0; cursor: pointer; transition: color 0.15s ease; }
.nav a:not(.btn):hover, .menu-btn:hover, .nav a[aria-current="page"], .has-menu.current .menu-btn { color: var(--text); }
.has-menu { position: relative; }
.menu-btn::after { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin-left: 0.5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(45deg); }

/* Closed until hovered or opened. ".nav .menu" must out-rank ".nav ul", which sets display: flex on every list in the nav. */
.nav .menu { position: absolute; top: calc(100% + 0.65rem); left: -1rem; width: 21rem; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.45rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.9); }
.nav .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.has-menu.open .menu, .has-menu:hover .menu { display: flex; }
html:not(.js) .has-menu:focus-within .menu { display: flex; }
.nav .menu a { display: block; padding: 0.72rem 0.8rem; border-radius: 8px; color: var(--text); font-weight: 500; line-height: 1.25; }
.nav .menu a:hover { background: rgba(255, 255, 255, 0.06); }
.nav .menu a[aria-current="page"] { background: rgba(255, 255, 255, 0.05); }
.menu small { display: block; color: var(--muted); font-size: 0.86rem; font-weight: 400; margin-top: 0.22rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 0.55rem 0.75rem; font: 500 0.92rem var(--font); cursor: pointer; }

/* 3D stages */
.stage { position: relative; width: 100%; }
.stage canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease; }
.stage.live canvas { opacity: 1; }
.stage-fallback { display: none; position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
html:not(.js) .stage-fallback, .no-webgl .stage-fallback { display: block; }
.no-webgl .stage canvas, .stage.no-webgl canvas { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; margin-top: -4.5rem; padding-top: 4.5rem; min-height: min(100svh, 920px); display: flex; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(52% 58% at 76% 46%, rgba(59, 91, 255, 0.28), rgba(138, 99, 255, 0.09) 56%, transparent 76%),
    radial-gradient(34% 40% at 16% 8%, rgba(53, 180, 255, 0.1), transparent 72%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: 0.42; -webkit-mask-image: radial-gradient(70% 76% at 62% 40%, #000, transparent 80%); mask-image: radial-gradient(70% 76% at 62% 40%, #000, transparent 80%); }
.hero-inner { position: relative; z-index: 2; pointer-events: none; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero-copy { display: grid; gap: 1.7rem; justify-items: start; max-width: var(--hero-col); pointer-events: auto; }
.hero-visual { position: absolute; top: 4.5rem; bottom: 0; right: 0; left: calc(var(--edge) + var(--hero-col) + 0.5rem); }
.hero-visual .stage { position: absolute; inset: 0; }
.hero-visual .stage canvas { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%), linear-gradient(180deg, #000 86%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%), linear-gradient(180deg, #000 86%, transparent); mask-composite: intersect; }
.facts { list-style: none; margin: 0; padding: 1.35rem 0 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem; color: var(--muted); font-size: 0.93rem; border-top: 1px solid var(--line); width: 100%; }
.facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.facts svg { color: var(--accent); flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.intro > * { animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.intro > :nth-child(2) { animation-delay: 0.08s; }
.intro > :nth-child(3) { animation-delay: 0.16s; }
.intro > :nth-child(4) { animation-delay: 0.24s; }
.intro > :nth-child(5) { animation-delay: 0.32s; }

/* Labels that follow the layers of the stack */
.stack-labels { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; list-style: none; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.stack-labels.ready { opacity: 1; }
.stack-labels li { position: absolute; left: 0; top: 0; width: 11.9rem; pointer-events: auto; will-change: transform; }
.stack-labels a { display: grid; transform: translateY(-50%); text-decoration: none; padding: 0.4rem 0.5rem; border-radius: 8px; transition: background-color 0.3s ease; }
.stack-labels a:hover, .stack-labels .active a { background: rgba(255, 255, 255, 0.06); }
.sl-name { font-size: 1rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.sl-sub { color: var(--muted); font-size: 0.83rem; line-height: 1.3; margin-top: 0.14rem; }
.sl-line, .sl-dot { position: absolute; top: 0; pointer-events: none; }
.sl-line { right: calc(100% + 0.6rem); width: 100px; height: 1px; transform-origin: right center; background: linear-gradient(90deg, rgba(150, 190, 255, 0.85), rgba(150, 190, 255, 0.28)); }
.sl-dot { right: calc(100% + 0.6rem); width: 7px; height: 7px; margin: -3px -3px 0 0; border-radius: 50%; background: #d7e6ff; box-shadow: 0 0 10px 2px rgba(120, 170, 255, 0.85); }
.active .sl-line { background: #d7e6ff; }

/* Commitments strip */
.commitments { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.commitments ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.commitments li { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.1rem, 2vw, 2rem); display: grid; gap: 0.5rem; align-content: start; border-left: 1px solid var(--line); }
.commitments li:first-child { border-left: 0; padding-left: 0; }
.commitments strong { font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.commitments span { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }

/* Comparison */
.split-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 4.5vw, 4rem); }
.split-head > div { display: grid; gap: 1.2rem; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); font-weight: 400; line-height: 1.45; }
.compare thead th { border-top: 0; padding-block: 1rem; font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.compare tbody th { padding-left: 0; width: 22%; font-weight: 500; color: var(--text); }
.compare td { color: var(--muted); width: 39%; }
.compare .us { background: var(--surface-2); color: var(--text); position: relative; }
.compare thead .us { color: var(--text); border-radius: 12px 12px 0 0; box-shadow: inset 0 2px 0 0 var(--blue); }
.compare tbody tr:last-child .us { border-radius: 0 0 12px 12px; }

/* Services explorer */
.explorer { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: stretch; }
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-tab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); padding: 1.45rem 0 1.45rem 1.35rem; position: relative; cursor: pointer; font: inherit; display: grid; gap: 0.5rem; align-content: center; transition: color 0.2s ease; flex: 1 1 auto; }
.svc-tab::before { content: ""; position: absolute; left: 0; top: 1.45rem; bottom: 1.45rem; width: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease; }
.svc-name { font-size: clamp(1.4rem, 2.1vw, 1.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.svc-desc { display: none; max-width: 30em; font-size: 1rem; line-height: 1.5; }
.svc-tab[aria-selected="true"] { color: var(--text); }
.svc-tab[aria-selected="true"]::before { transform: scaleY(1); }
.svc-tab[aria-selected="true"] .svc-desc { display: block; color: var(--muted); }
.svc-tab:hover .svc-name { color: var(--text); }
.svc-stage { position: relative; background: radial-gradient(90% 80% at 62% 34%, rgba(59, 91, 255, 0.2), transparent 70%), var(--surface); border: 1px solid var(--line); border-radius: 16px; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.svc-stage .stage { flex: 1; min-height: 420px; }
.svc-stage .stage canvas { position: absolute; inset: 0; }
.svc-foot { display: grid; justify-items: start; gap: 0.8rem; padding: 1.05rem 1.4rem; border-top: 1px solid var(--line); background: rgba(6, 8, 16, 0.5); }
.svc-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; color: var(--muted); font-size: 0.9rem; }

/* Standards */
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.std-grid > div { padding: clamp(1.5rem, 2.6vw, 2.2rem) clamp(1.25rem, 2.6vw, 2.2rem); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; gap: 0.6rem; align-content: start; }
.std-grid > div:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.std-grid svg { color: var(--accent); margin-bottom: 0.65rem; }
.std-grid p { color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* Process */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 2.5rem 1.9rem 0 0; position: relative; display: grid; gap: 0.6rem; align-content: start; }
.steps li::before { content: "0" counter(s); position: absolute; top: 0; left: 0; background: var(--bg); padding-right: 0.7rem; color: var(--accent); font: 500 0.78rem/1.25rem var(--mono); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 0.62rem; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.steps h3 { font-size: 1.22rem; }
.steps p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.steps .output { margin-top: 0.5rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--text); }
.steps .output b { display: block; font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }

/* AI governance */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split .stack-copy { display: grid; gap: 1.2rem; justify-items: start; }
.checklist { list-style: none; padding: 0; margin: 0.4rem 0 0.8rem; display: grid; gap: 0.85rem; }
.checklist li { position: relative; padding-left: 1.75rem; color: var(--muted); line-height: 1.5; }
.checklist li strong { color: var(--text); font-weight: 500; }
.checklist svg { position: absolute; left: 0; top: 0.28em; color: var(--accent); }
.activity { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 110px -60px rgba(59, 91, 255, 0.75); }
.activity-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.95rem 1.3rem; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 0.98rem; }
.activity-head span:first-child { display: inline-flex; align-items: center; gap: 0.6rem; }
.activity-head span:first-child::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #7ee2b0; box-shadow: 0 0 10px rgba(126, 226, 176, 0.8); }
.activity-head span:last-child { color: var(--faint); font: 400 0.84rem var(--mono); }
.activity ul { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 3.3rem 1fr auto; gap: 1rem; align-items: center; padding: 0.95rem 1.3rem; border-bottom: 1px solid var(--line); font-size: 0.96rem; line-height: 1.35; }
.activity li:last-child { border-bottom: 0; }
.activity li.pending { background: rgba(255, 211, 122, 0.05); }
.activity time { color: var(--faint); font: 400 0.84rem var(--mono); }
.pill { font-size: 0.81rem; font-weight: 500; padding: 0.28rem 0.62rem; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.pill.ok { color: #8be6b9; border-color: rgba(126, 226, 176, 0.34); }
.pill.ask { color: #ffd98a; border-color: rgba(255, 211, 122, 0.5); background: rgba(255, 211, 122, 0.08); }
.caption { color: var(--faint); font-size: 0.88rem; margin-top: 0.85rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 1.4rem; justify-items: start; padding: clamp(2.5rem, 6vw, 5.5rem); border: 1px solid var(--line-strong); border-radius: 18px; background: radial-gradient(70% 130% at 100% 0%, rgba(59, 91, 255, 0.42), transparent 62%), radial-gradient(56% 100% at 76% 100%, rgba(138, 99, 255, 0.22), transparent 60%), var(--surface); }
.cta-band h2 { max-width: 15em; }

/* Pricing band */
.price-band { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid var(--line-strong); border-radius: 18px; background: radial-gradient(70% 120% at 0% 0%, rgba(53, 180, 255, 0.16), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(138, 99, 255, 0.16), transparent 60%), var(--surface); }
.price-copy { display: grid; gap: 1.2rem; justify-items: start; }
.price { font-size: clamp(2.7rem, 5.2vw, 4.75rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.price-note { color: var(--faint); font-size: 0.93rem; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
.price-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: baseline; padding-block: 0.95rem; border-bottom: 1px solid var(--line); line-height: 1.45; }
.price-list svg { color: var(--accent); align-self: center; }
@media (max-width: 980px) { .price-band { grid-template-columns: 1fr; } }

/* Service pages */
.page-hero { position: relative; overflow: hidden; margin-top: -4.5rem; padding-top: calc(4.5rem + clamp(1.5rem, 4vw, 3.5rem)); padding-bottom: clamp(3rem, 5vw, 4.5rem); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(50% 72% at 78% 44%, rgba(59, 91, 255, 0.27), rgba(138, 99, 255, 0.08) 58%, transparent 78%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.page-hero .hero-copy { max-width: none; }
.page-hero h1 { font-size: clamp(2.5rem, 4.1vw, 3.85rem); }
.page-hero .stage { height: clamp(320px, 38vw, 520px); }
.page-hero .stage canvas { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.crumbs { color: var(--muted); font-size: 0.88rem; font-family: var(--mono); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.prose { display: grid; gap: 1.25rem; }
.build-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.build-list li { padding: clamp(1.4rem, 2.4vw, 2rem) clamp(1.2rem, 2.4vw, 2rem); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.build-list li:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.build-list p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.standards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.standards > div { padding: clamp(1.4rem, 2.4vw, 2rem) clamp(1.1rem, 2vw, 1.8rem); border-left: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.standards > div:first-child { border-left: 0; padding-left: 0; }
.standards p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.faq { display: grid; max-width: 56rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.25rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; font-size: 1.12rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 0.8rem; max-width: 44em; }
.also { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.also a { text-decoration: none; padding: 1.5rem 1.6rem 1.6rem; display: grid; gap: 0.4rem; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 0.16s ease; align-content: start; }
.also a:first-child { border-left: 0; padding-left: 0; }
.also a span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.018em; }
.also a:hover span:first-child { color: var(--accent); }

/* Contact */
.contact-hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-copy { display: grid; gap: 1.3rem; justify-items: start; }
.contact-copy h1 { font-size: clamp(2.5rem, 4.1vw, 3.85rem); }
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 0.8rem 0 0; display: grid; border-top: 1px solid var(--line-strong); width: 100%; }
.next-steps li { counter-increment: n; padding: 1.15rem 0 1.15rem 2.7rem; position: relative; color: var(--muted); line-height: 1.5; border-bottom: 1px solid var(--line); }
.next-steps li strong { color: var(--text); display: block; font-weight: 500; }
.next-steps li::before { content: "0" counter(n); position: absolute; left: 0; top: 1.28rem; color: var(--accent); font: 500 0.78rem/1.25rem var(--mono); }
.form { display: grid; gap: 1.15rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: clamp(1.5rem, 3.6vw, 2.5rem); }
.field { display: grid; gap: 0.42rem; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form label { font-weight: 500; font-size: 0.93rem; }
.form label .muted { font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0.8rem 0.95rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(53, 180, 255, 0.2); }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; }
.form-status { color: var(--muted); font-size: 0.93rem; min-height: 1.4em; }
.form-note { color: var(--muted); font-size: 0.88rem; margin-top: -0.5rem; }
.form-note a { color: var(--text); text-underline-offset: 3px; }

/* Legal pages */
.legal-section { padding-top: clamp(2.5rem, 6vw, 5rem); }
.legal { max-width: 46rem; }
.legal-head { display: grid; gap: 1rem; justify-items: start; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line-strong); }
.legal-head h1 { font-size: clamp(2.5rem, 4.1vw, 3.85rem); }
.legal-date { font: 400 0.86rem var(--mono); color: var(--faint); }
.legal h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.02em; margin: 2.6rem 0 0.8rem; }
.legal p, .legal li, .legal address { color: var(--muted); }
.legal p + p { margin-top: 0.9rem; }
.legal ul { margin: 0.8rem 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal strong { color: var(--text); font-weight: 500; }
.legal address { font-style: normal; line-height: 1.7; }
.legal a { color: var(--text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-info { margin: 0.6rem 0 0; display: grid; gap: 0.85rem; width: 100%; }
.contact-info > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; }
.contact-info dt { font: 500 0.75rem/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.contact-info dd { margin: 0; line-height: 1.5; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.foot-grid address { font-style: normal; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.foot-grid address a { display: inline-block; margin-top: 0.4rem; color: var(--muted); text-decoration: none; }
.foot-grid address a:hover { color: var(--text); }
.foot-grid .blurb { color: var(--muted); margin-top: 1rem; max-width: 24rem; font-size: 0.98rem; line-height: 1.5; }
.social { display: flex; gap: 0.9rem; margin-top: 1.25rem; }
.social a { color: var(--muted); display: inline-flex; line-height: 0; }
.social a:hover { color: var(--text); }
.social svg { width: 20px; height: 20px; }
.foot-grid h4 { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.foot-grid ul a { color: var(--muted); text-decoration: none; font-size: 0.98rem; }
.foot-grid ul a:hover { color: var(--text); }
.foot-note { margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.89rem; line-height: 1.5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; }
.foot-legal { display: inline-flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Responsive */
/* Large screens: more room, so type and the 3D panel grow gently with it */
@media (min-width: 1700px) {
  :root { --hero-col: 38rem; }
  body { font-size: 1.125rem; }
  h1 { font-size: 4.6rem; }
  h2 { font-size: 3.5rem; }
  h3 { font-size: 1.32rem; }
  .lede { font-size: 1.3rem; }
  .page-hero h1, .contact-copy h1 { font-size: 4.2rem; }
  .svc-stage { min-height: 640px; }
  .page-hero .stage { height: 580px; }
}
/* Below this width the side-by-side hero would squeeze the stack into its labels, so copy and visual stack */
@media (max-width: 1280px) {
  .hero { display: block; min-height: 0; }
  .hero-inner { padding-bottom: 0; }
  .hero-copy { max-width: 44rem; }
  .hero-visual { position: relative; top: auto; left: auto; right: auto; bottom: auto; height: clamp(440px, 62vw, 700px); margin-top: 0.5rem; }
}
@media (max-width: 1180px) {
  .explorer, .split, .two-col, .contact-grid, .split-head { grid-template-columns: 1fr; }
  .split-head { align-items: start; }
  .svc-stage { min-height: 500px; }
  .hero-grid { grid-template-columns: 1fr; }
  .page-hero .stage { height: clamp(280px, 56vw, 460px); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .standards { grid-template-columns: 1fr 1fr; }
  .standards > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .standards > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .build-list, .std-grid { grid-template-columns: 1fr 1fr; }
  .build-list li, .std-grid > div { border-left: 1px solid var(--line) !important; padding-left: clamp(1.2rem, 2.4vw, 2rem) !important; }
  .build-list li:nth-child(odd), .std-grid > div:nth-child(odd) { border-left: 0 !important; padding-left: 0 !important; }
  .commitments ul { grid-template-columns: 1fr 1fr; }
  .commitments li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .commitments li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem; max-height: calc(100svh - 4.5rem); overflow-y: auto; }
  .site-header.open .nav { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { display: block; }
  .nav li > a:not(.btn), .menu-btn { display: block; width: 100%; text-align: left; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .menu-btn { color: var(--faint); cursor: default; }
  .menu-btn::after { display: none; }
  .nav .menu { position: static; width: auto; display: flex; box-shadow: none; border: 0; background: none; padding: 0.3rem 0 0.5rem 0; border-radius: 0; }
  .nav .menu::before { display: none; }
  .nav .menu a { padding: 0.65rem 0 !important; border-bottom: 0 !important; }
  .nav .menu a:hover { background: none; }
  .nav .btn { margin-top: 1rem; }
  .also { grid-template-columns: 1fr; }
  .also a, .also a:first-child { border-left: 0; padding-inline: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  .hero-visual { height: auto; display: grid; gap: 0.5rem; }
  .hero-visual .stage { position: relative; inset: auto; height: clamp(320px, 92vw, 460px); }
  .stack-labels, .stack-labels.ready { position: relative; inset: auto; opacity: 1; display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--gutter) 2.5rem; gap: 0.2rem 0.8rem; }
  .stack-labels li { position: static; width: auto; transform: none !important; }
  .stack-labels a { transform: none; padding: 0.55rem 0; background: none !important; }
  .sl-line, .sl-dot { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tbody tr { padding-block: 1.1rem; border-top: 1px solid var(--line); }
  .compare tbody th { width: auto; border: 0; padding: 0 0 0.6rem; }
  .compare td { border: 0; padding: 0.7rem 0.9rem; font-size: 0.97rem; }
  .compare td::before { content: attr(data-label); display: block; font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
  .compare td:not(.us) { padding-left: 0; }
  .compare td.us { border-radius: 8px !important; }
  .build-list, .field-row, .steps, .standards, .foot-grid, .std-grid, .commitments ul { grid-template-columns: 1fr; }
  .build-list li, .std-grid > div, .standards > div, .commitments li { border-left: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .standards > div + div, .commitments li + li { border-top: 1px solid var(--line); }
  .commitments li { padding-block: 1.25rem; }
  .steps li { padding-right: 0; }
  .activity li { grid-template-columns: 2.9rem 1fr; }
  .activity li .pill { grid-column: 2; justify-self: start; }
  .svc-stage { min-height: 430px; }
  .svc-stage .stage { min-height: 320px; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* If the 3D cannot run, the labels become a plain list beside the illustration */
html:not(.js) .stack-labels, .no-webgl .stack-labels { position: absolute; inset: auto 1rem 0.5rem 1rem; opacity: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.2rem 0.8rem; }
html:not(.js) .stack-labels li, .no-webgl .stack-labels li { position: static; width: auto; transform: none !important; }
html:not(.js) .stack-labels a, .no-webgl .stack-labels a { transform: none; }
html:not(.js) .sl-line, html:not(.js) .sl-dot, .no-webgl .sl-line, .no-webgl .sl-dot { display: none; }
.no-webgl .hero-visual .stage-fallback, html:not(.js) .hero-visual .stage-fallback { inset: 2% 8% 22%; width: 84%; height: 76%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
@media print {
  .hero-visual, .stage, .site-header { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
