/* GitTol marketing site. Separate from the product UI (webapp/src/app/web): nothing here is loaded by the app. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FDFCF7;
  --paper-subtle: #F7F3EC;
  --paper-deep: #EFE8DC;
  --ink: #171411;
  --ink-muted: #6D625A;
  --ink-faint: #9A8F86;
  --line: rgba(76, 44, 27, .20);
  --line-strong: rgba(76, 44, 27, .40);
  --dark: #160F0B;
  --dark-surface: #221711;
  --dark-line: rgba(221, 183, 149, .18);
  --brown: #4C2C1B;
  --accent: #9A6240;
  --accent-warm: #B37952;
  --tan: #DDB795;
  --select-fill: rgba(179, 121, 82, .12);
  --danger: #9B2C1F;
  --ok: #3F6B3A;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --frame: 8px;                         /* drawing-sheet inset */
  --gutter: clamp(16px, 2.4vw, 36px);
  --gap: clamp(12px, 1.2vw, 18px);
  --header: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);   /* ease-out-expo-ish */
  --ease-roll: cubic-bezier(.625, .05, 0, 1);

  --t-h1: clamp(38px, 5.1vw, 84px);
  --t-h2: clamp(30px, 3.6vw, 58px);
  --t-h3: clamp(18px, 1.45vw, 23px);
  --t-body: clamp(15px, 1.02vw, 16.5px);
  --t-small: 13px;
  --t-label: 11.5px;
  --t-micro: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.5;
  font-weight: 420; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .92em; }
::selection { background: var(--tan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--mono); font-size: 12px; text-decoration: none; }
.skip:focus { top: 16px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- drawing sheet */
.sheet { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.sheet-frame { position: absolute; inset: var(--frame); border: 1px solid var(--line-strong); }
.ruler { position: absolute; --tick: var(--line-strong); }
.ruler-top, .ruler-bottom { left: var(--frame); right: var(--frame); height: 5px;
  background: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px);
  background-size: 100% 5px, 100% 3px; background-repeat: no-repeat; }
.ruler-top { top: var(--frame); }
.ruler-bottom { bottom: var(--frame); transform: scaleY(-1); }
.ruler-left, .ruler-right { top: var(--frame); bottom: var(--frame); width: 5px;
  background: repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 40px), repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 8px);
  background-size: 5px 100%, 3px 100%; background-repeat: no-repeat; }
.ruler-left { left: var(--frame); }
.ruler-right { right: var(--frame); transform: scaleX(-1); }
body::before { /* paper grid, very faint */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px; opacity: .22;
}
main, .site-footer { position: relative; z-index: 1; }
main { padding: calc(var(--header) + var(--frame)) calc(var(--frame) + 1px) 0; }

.mark { position: absolute; width: 11px; height: 11px; pointer-events: none; z-index: 2; }
.mark::before, .mark::after { content: ""; position: absolute; background: var(--ink); }
.mark::before { left: 5px; top: 0; width: 1px; height: 11px; }
.mark::after { top: 5px; left: 0; height: 1px; width: 11px; }
.mark.tl { left: -6px; top: -6px; } .mark.tr { right: -6px; top: -6px; } .mark.bl { left: -6px; bottom: -6px; } .mark.br { right: -6px; bottom: -6px; }

/* ---------------------------------------------------------------- type system */
.label { display: inline-flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); font-weight: 450; }
.label-index { font-family: var(--mono); font-size: var(--t-label); color: var(--accent); letter-spacing: .02em; font-weight: 500; }
h1, h2, .statement-text, .name-eq { font-weight: 640; text-transform: uppercase; letter-spacing: -.025em; line-height: .96; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 560; letter-spacing: -.01em; line-height: 1.2; }
.section-text, .hero-desc { color: var(--ink-muted); max-width: 58ch; }
.hero-desc { font-size: clamp(16px, 1.15vw, 18.5px); line-height: 1.5; }
.text-link { font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; display: inline-flex; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line-strong); transition: color .3s var(--ease), border-color .3s var(--ease); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* split headlines (JS wraps lines/words in .sw) */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.sw > span { display: inline-block; will-change: transform; }

/* ---------------------------------------------------------------- buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { --h: 48px; display: inline-flex; align-items: stretch; height: var(--h); text-decoration: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; border: 1px solid var(--ink); }
.btn-roll { display: inline-grid; place-items: center; padding: 0 20px; overflow: hidden; position: relative; }
.btn-roll > span, .nav-roll > span { display: block; transition: transform .48s var(--ease-roll); }
.btn-roll::after, .nav-roll::after { content: attr(data-text); position: absolute; left: 0; right: 0; text-align: center; top: 100%; transition: transform .48s var(--ease-roll); }
.btn-roll::after { line-height: var(--h); top: 100%; }
.btn:hover .btn-roll > span, .nav-cell:hover .nav-roll > span { transform: translateY(-110%); }
.btn:hover .btn-roll::after, .nav-cell:hover .nav-roll::after { transform: translateY(-100%); }
.btn-icon { display: grid; place-items: center; width: var(--h); border-left: 1px solid currentColor; overflow: hidden; }
.btn-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
.btn:hover .btn-icon svg { animation: icon-slide .5s cubic-bezier(.23, 1, .32, 1); }
@keyframes icon-slide { 0% { transform: translateX(0); } 49% { transform: translateX(160%); } 50% { transform: translateX(-160%); } 100% { transform: translateX(0); } }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary .btn-icon { border-color: rgba(253, 252, 247, .25); background: var(--brown); }
.btn-primary:hover { background: var(--brown); border-color: var(--brown); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-subtle); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; z-index: 70; top: var(--frame); left: var(--frame); right: var(--frame); height: var(--header);
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: var(--paper); border: 1px solid var(--line-strong);
  transition: transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - var(--frame) - 2px)); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 20px 0 16px; text-decoration: none; border-right: 1px solid var(--line-strong); }
.brand-name { font-weight: 680; font-size: 17px; letter-spacing: -.02em; }
.brand-tag { font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-muted); letter-spacing: .06em; padding: 2px 5px; border: 1px solid var(--line); }
.nav ul { display: flex; height: 100%; }
.nav-item { position: relative; }
.nav-cell { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 20px; min-width: 120px; justify-content: center; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; text-decoration: none;
  font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease); }
.nav-roll { position: relative; overflow: hidden; display: block; line-height: 1.3; }
.nav-cell:hover { background: var(--paper-subtle); }
.is-current > .nav-cell::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
.chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .4s var(--ease); }
.has-menu.is-open .chev { transform: rotate(180deg); }
.has-menu.is-open > .nav-cell { background: var(--ink); color: var(--paper); }
.menu { position: absolute; top: calc(100% + 1px); left: -1px; width: 340px; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); background: var(--paper); border: 1px solid transparent; }
.has-menu.is-open .menu { grid-template-rows: 1fr; border-color: var(--line-strong); }
.menu ul { overflow: hidden; display: block; height: auto; }
.menu a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 8px; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .25s var(--ease); }
.menu li:last-child a { border-bottom: 0; }
.menu a:hover, .menu a:focus-visible { background: var(--paper-subtle); }
.menu-index { font-family: var(--mono); font-size: var(--t-micro); color: var(--accent); grid-row: span 2; padding-top: 3px; }
.menu-name { font-weight: 560; font-size: 14px; }
.menu-text { color: var(--ink-muted); font-size: 12.5px; line-height: 1.4; }
.header-actions { display: flex; }
.header-actions .nav-cell { border-right: 0; border-left: 1px solid var(--line); }
.header-cta { background: var(--ink); color: var(--paper); min-width: 190px; }
.header-cta:hover { background: var(--brown) !important; }
.menu-toggle { display: none !important; }
.menu-toggle i { width: 14px; height: 7px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] i { transform: scaleY(.2); }
.mobile-menu { position: fixed; z-index: 65; inset: calc(var(--frame) + var(--header) - 1px) var(--frame) var(--frame); background: var(--paper); border: 1px solid var(--line-strong); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mm-inner { padding: 20px var(--gutter) 28px; display: grid; gap: 22px; }
.mm-group { display: grid; border-top: 1px solid var(--line); padding-top: 14px; gap: 2px; }
.mm-group a { font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; padding: 6px 0; text-decoration: none; display: flex; gap: 12px; align-items: baseline; }
.mm-group a span { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 450; }

/* ---------------------------------------------------------------- loader */
.loader { display: none; }
.show-loader .loader { display: grid; position: fixed; inset: 0; z-index: 120; background: var(--paper); grid-template-columns: 1fr minmax(260px, 340px); align-items: center; gap: var(--gutter); padding: calc(var(--frame) + 40px) calc(var(--frame) + var(--gutter)); clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease); }
.show-loader body { overflow: hidden; }
.loader.is-done { clip-path: inset(50% 0 50% 0); }
.loader-grid { position: absolute; inset: var(--frame); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .5; }
.loader-drawing { position: relative; max-width: 760px; width: 100%; justify-self: center; }
.loader-drawing .part { --cad-dash: 1; animation: draw-part 1.2s var(--ease) var(--d, 0s) both; }
.loader-drawing .construction { --cad-off: 0; }
.loader-drawing [data-part="plate"] { --d: 0s; } .loader-drawing [data-part="motor"] { --d: .15s; } .loader-drawing [data-part="bracket"] { --d: .3s; } .loader-drawing [data-part="gear"] { --d: .45s; } .loader-drawing [data-part="arm"] { --d: .6s; }
.loader-drawing .dims { display: none; }
@keyframes draw-part { 0% { --cad-off: 1; --cad-fill: 0; } 75% { --cad-fill: 0; } 100% { --cad-off: 0; --cad-fill: 1; } }
.loader-panel { position: relative; border: 1px solid var(--line-strong); background: var(--paper); padding: 18px; font-family: var(--mono); font-size: 11.5px; }
.loader-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 650; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.loader-ver { margin-left: auto; font-family: var(--mono); font-weight: 450; font-size: 10px; color: var(--ink-muted); }
.loader-steps { padding: 12px 0; display: grid; gap: 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.loader-steps li { display: flex; gap: 10px; align-items: center; transition: color .2s; }
.ls-dot { width: 6px; height: 6px; border: 1px solid currentColor; }
.loader-steps li.is-done { color: var(--ink); }
.loader-steps li.is-done .ls-dot { background: var(--accent); border-color: var(--accent); }
.loader-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.loader-meta dt { color: var(--ink-faint); font-size: 9.5px; }
.loader-meta dd { margin: 0; }
.loader-bar { height: 2px; background: var(--line); margin-top: 6px; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.loader-pct { margin-top: 8px; text-align: right; }

/* ---------------------------------------------------------------- page transition */
.transition { position: fixed; inset: 0; z-index: 110; pointer-events: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.transition i { background: var(--ink); transform: scaleY(0); transform-origin: 50% 0; }
.is-leaving .transition i { transform: scaleY(1); transition: transform .42s var(--ease); }
.is-leaving .transition i:nth-child(2) { transition-delay: .05s; } .is-leaving .transition i:nth-child(3) { transition-delay: .1s; }
.is-entering .transition i { transform: scaleY(1); transform-origin: 50% 100%; }
.is-entered .transition i { transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.is-entered .transition i:nth-child(2) { transition-delay: .05s; } .is-entered .transition i:nth-child(3) { transition-delay: .1s; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 150px) var(--gutter); border-top: 1px solid var(--line-strong); position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4.5vw, 72px); max-width: 1100px; }
.section-head.split-head { grid-template-columns: repeat(12, 1fr); max-width: none; column-gap: var(--gap); align-items: end; }
.split-head .label { grid-column: 1 / -1; }
.split-head h2 { grid-column: 1 / 8; }
.split-head .section-text { grid-column: 9 / -1; }

/* meta block */
.meta-block { display: grid; margin: 0; border-top: 1px solid var(--line-strong); font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .03em; }
.meta-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.meta-row dt { color: var(--ink-faint); }
.meta-row dd { margin: 0; color: var(--ink); }

/* status badges */
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border: 1px solid var(--line-strong); white-space: nowrap; font-weight: 500; width: fit-content; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-beta { color: var(--ok); border-color: rgba(63, 107, 58, .45); }
.status-preview, .status-partial { color: var(--accent); border-color: rgba(154, 98, 64, .5); }
.status-planned, .status-not-verified, .status-not-attempted { color: var(--ink-muted); }
.status-planned i { background: transparent; border: 1px solid currentColor; }
.status-dev, .status-early, .status-demonstrated { color: var(--brown); }
.status-demonstrated { color: var(--ok); }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); min-height: calc(100svh - var(--header) - var(--frame) * 2); position: relative; border-bottom: 1px solid var(--line-strong); }
.hero-text { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; padding: 40px var(--gutter) 56px; position: relative; z-index: 3; pointer-events: none; }
.hero-text > * { pointer-events: auto; }
.hero-meta { max-width: 420px; }
.hero h1 { font-size: clamp(40px, 5vw, 86px); }
.hero-stage { grid-column: 6 / 13; position: relative; border-left: 1px solid var(--line-strong); min-height: 520px; overflow: hidden; touch-action: pan-y;
  background-image: radial-gradient(circle, var(--line-strong) .7px, transparent 1px); background-size: 24px 24px; background-position: 12px 12px; user-select: none; -webkit-user-select: none; }
.hero-stage .mark { z-index: 3; }
.hero-stage .mark.tl { left: 8px; top: 8px; } .hero-stage .mark.tr { right: 8px; top: 8px; } .hero-stage .mark.bl { left: 8px; bottom: 56px; } .hero-stage .mark.br { right: 8px; bottom: 56px; }
@media (pointer: fine) { .hero-stage { cursor: none; } .hero-stage .hotspot { cursor: pointer; } }
.stage-drawing { position: absolute; inset: 48px 32px 96px; display: grid; place-items: center; container-type: size; }
.fit { position: relative; aspect-ratio: var(--ar); width: min(100cqw, 100cqh * var(--ar)); }
.fit > .cad-drawing { width: 100%; height: 100%; }
.stage-caption { position: absolute; z-index: 2; display: grid; gap: 2px; font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.stage-tl { left: 28px; top: 24px; } .stage-tr { right: 28px; top: 24px; text-align: right; }
.stage-prompt { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); pointer-events: none; }
.prompt-touch { display: none; }
@media (hover: none) { .prompt-desktop { display: none; } .prompt-touch { display: inline; } }

/* CAD drawing. Geometry lives once in the <svg class="sprite"> and is instanced with <use>; selectors match the
   sprite originals, so per-instance styling flows through inherited custom properties set on the instance. */
@property --cad-off { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --cad-fill { syntax: "<number>"; inherits: true; initial-value: 1; }
.cad-drawing { width: 100%; height: auto; overflow: visible; --cad-line: #171411; --cad-face: #FDFCF7; --cad-cap: #FFFEFA; --cad-face2: #F7F3EC; --cad-hole: #EFE8DC; --cad-faint: rgba(76, 44, 27, .4); --cad-centre: #9A8F86; --cad-accent: #9A6240; }
.gt-geo polygon, .gt-geo path, .gt-geo line { stroke: var(--cad-line); stroke-width: var(--cad-w, 1); stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--cad-dash, none); stroke-dashoffset: var(--cad-off); transition: stroke .3s, fill .3s; }
polygon.face { fill: var(--cad-face); fill-opacity: var(--cad-fill); }
polygon.cap { fill: var(--cad-cap); }
polygon.side { stroke-width: .45; stroke: var(--cad-facet, rgba(23, 20, 17, .38)); }
polygon.motor { fill: var(--cad-face2); }
polygon.hole, polygon.bore, polygon.bolt { fill: var(--cad-hole); fill-opacity: var(--cad-fill); }
polygon.changed { stroke: var(--cad-accent); }
polygon.hole-inner { fill: none; stroke: var(--cad-faint); }
path.fillet { fill: none; stroke: var(--cad-faint); stroke-dasharray: 3 2; }
line.centre { stroke: var(--cad-centre); stroke-width: .6; stroke-dasharray: 12 3 2 3; }
line.ghost { opacity: .5; }
.cad-drawing .dims { pointer-events: none; }
.cad-drawing .dims line { stroke-linecap: round; }
.cad-drawing .dim { opacity: 0; transition: opacity .35s var(--ease); }
.cad-drawing .dim.is-on { opacity: 1; }
.cad-drawing .dim line { stroke: var(--accent); stroke-width: .9; }
.cad-drawing .dim .ext { stroke-width: .6; }
.cad-drawing .dim text { font-family: var(--mono); font-size: 11px; fill: var(--accent); font-weight: 560; }
.cad-drawing .part { transition: transform .9s var(--ease), opacity .5s var(--ease); transform-box: view-box; }
.cad-drawing .part.is-hot { --cad-line: #9A6240; --cad-face: #FBF3EA; --cad-cap: #FDF6EE; }

/* crosshair */
.crosshair { position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .25s; }
.hero-stage.is-pointing .crosshair { opacity: 1; }
.ch-x, .ch-y { position: absolute; background: var(--ink); opacity: .55; }
.ch-x { left: 0; right: 0; height: 1px; top: 0; transform: translateY(var(--cy, 0)); }
.ch-y { top: 0; bottom: 0; width: 1px; left: 0; transform: translateX(var(--cx, 0)); }
.ch-read { position: absolute; left: 0; top: 0; transform: translate(calc(var(--cx, 0px) + 12px), calc(var(--cy, 0px) + 10px)); font-family: var(--mono); font-size: var(--t-micro); background: var(--ink); color: var(--paper); padding: 3px 6px; white-space: nowrap; letter-spacing: .04em; }

/* drag selection */
.select-rect { position: absolute; z-index: 5; border: 1px solid #9A6240; background: var(--select-fill); display: none; pointer-events: none; }
.select-rect.is-on { display: block; }
.select-rect span { position: absolute; right: -1px; bottom: -20px; font-family: var(--mono); font-size: var(--t-micro); color: var(--accent); white-space: nowrap; }

/* hotspots + diff cards */
.hotspot { position: absolute; z-index: 6; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.hs-ring { width: 14px; height: 14px; border: 1.5px solid var(--accent); background: var(--paper); transform: rotate(45deg); transition: transform .4s var(--ease), background .3s; }
.hs-ring::after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--accent); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.hotspot:nth-of-type(2) .hs-ring::after { animation-delay: .6s; } .hotspot:nth-of-type(3) .hs-ring::after { animation-delay: 1.2s; } .hotspot:nth-of-type(4) .hs-ring::after { animation-delay: 1.8s; }
@keyframes ping { 0% { opacity: .8; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.4); } }
.hotspot:hover .hs-ring, .hotspot[aria-expanded="true"] .hs-ring { background: var(--accent); transform: rotate(45deg) scale(1.15); }
.hs-tag { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: var(--t-micro); color: var(--accent); background: var(--paper); padding: 1px 4px; white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
.hotspot:hover .hs-tag, .hotspot:focus-visible .hs-tag { opacity: 1; }
.hotspot[aria-expanded="true"] .hs-tag { opacity: 0; }
.hero-card { position: absolute; z-index: 7; left: var(--x); top: var(--y); width: 248px; transform: translate(26px, -24px); }
.hero-card.side-left { transform: translate(calc(-100% - 26px), -24px); }
.hero-card.side-up { transform: translate(26px, calc(-100% + 24px)); }
.hero-card.side-left.side-up { transform: translate(calc(-100% - 26px), calc(-100% + 24px)); }
.hero-card[hidden] { display: block; visibility: hidden; }
.hero-card .diff-card { clip-path: inset(0 100% 100% 0); transition: clip-path .4s var(--ease); }
.hero-card.side-left .diff-card { clip-path: inset(0 0 100% 100%); }
.hero-card.is-open .diff-card { clip-path: inset(0 0 0 0); }
.diff-card { background: var(--paper); border: 1px solid var(--ink); font-family: var(--mono); font-size: 11.5px; box-shadow: 4px 4px 0 var(--select-fill); }
.diff-card p { padding: 7px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.diff-card p:last-child { border-bottom: 0; }
.diff-kind { text-transform: uppercase; font-size: var(--t-micro); letter-spacing: .06em; background: var(--ink); color: var(--paper); }
.diff-commit { color: var(--tan); }
.diff-entity { font-family: var(--font); font-weight: 640; font-size: 16px; letter-spacing: -.01em; }
.diff-field { color: var(--ink-muted); text-transform: uppercase; font-size: var(--t-micro); letter-spacing: .05em; }
.diff-values { justify-content: flex-start !important; align-items: baseline; font-size: 14px; }
.diff-values del { color: var(--ink-faint); }
.diff-values ins { text-decoration: none; color: var(--accent); font-weight: 600; }
.diff-new { color: var(--ink-faint); text-transform: uppercase; font-size: var(--t-micro); }
.diff-arrow { color: var(--ink-faint); }
.diff-source { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.diff-source b { color: var(--ink); font-weight: 560; margin-right: auto; margin-left: 6px; }
.diff-source span { color: var(--ink-faint); }

/* ticker */
.ticker { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); overflow: hidden; height: 44px; display: flex; align-items: center; background: var(--paper); position: relative; z-index: 3; }
.ticker ul { display: flex; gap: 28px; white-space: nowrap; animation: marquee 48s linear infinite; padding-left: 28px; font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .06em; }
.ticker li[aria-hidden] { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- statement */
.statement { display: grid; gap: 40px; padding-block: clamp(110px, 14vw, 220px); }
.statement-text { font-size: clamp(34px, 5.4vw, 92px); max-width: 17ch; }
.statement-text .w { color: var(--line-strong); transition: color .4s var(--ease); }
.statement-text .w.is-lit { color: var(--ink); }
.no-js .statement-text .w, .reduce .statement-text .w { color: var(--ink); }
.statement-support { margin-left: auto; max-width: 44ch; color: var(--ink-muted); font-size: clamp(16px, 1.2vw, 19px); }

/* ---------------------------------------------------------------- integration strip */
.int-strip { border-top: 1px solid var(--line-strong); padding: 26px var(--gutter) 30px; }
.int-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
/* flex + 1px gaps over a line-coloured ground: rows always fill, so any number of CAD systems wraps without holes */
.int-note { margin-top: 12px; font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-muted); letter-spacing: .02em; }

/* ---------------------------------------------------------------- problems */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); }
.problem-card { display: grid; grid-template-rows: auto auto auto 1fr; gap: 14px; padding: 18px 18px 26px; border-right: 1px solid var(--line); transition: background .4s var(--ease); }
.problem-card:last-child { border-right: 0; }
.problem-card header { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .05em; }
.problem-name { font-weight: 560; }
.problem-art { display: grid; border: 1px solid var(--line); background: var(--paper-subtle); overflow: hidden; }
.problem-card h3 { min-height: 2.45em; }
.problem-card p { color: var(--ink-muted); font-size: 14.5px; min-height: 5.6em; }
.problem-card:hover { background: var(--paper-subtle); }
.problem-card:hover .problem-art { background: var(--paper); }

/* mini illustrations (problem cards, workflow) */
.mini { width: 100%; max-width: 300px; overflow: visible; }
.mini .draw, .mini .wall { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: .014 .01; }
.mini .wall { stroke: var(--accent); stroke-dasharray: none; stroke-width: 1.4; }
.mini .accent-line { stroke: var(--accent); }
.mini .accent-fill { fill: var(--accent); stroke: none; }
.mini .dashed { stroke-dasharray: .01 .012; }
.mini .node { fill: var(--ink); }
.mini .node.accent { fill: var(--accent); }
.mini .tag { fill: var(--ink); }
.mini .tag-text, .mini .inv { fill: var(--paper); }
.mini text { font-family: var(--mono); font-size: 9px; fill: var(--ink-muted); letter-spacing: .04em; }
.mini .tag-text { font-size: 10px; }
.problem-card:hover .mini .draw, .wf-stage.is-in .mini .draw, .problem-card:focus-within .mini .draw { animation: redraw 1s var(--ease) both; }
@keyframes redraw { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- story (pinned) */
.story { position: relative; height: 440vh; border-top: 1px solid var(--line-strong); }
.story-sticky { position: sticky; top: calc(var(--header) + var(--frame)); height: calc(100svh - var(--header) - var(--frame) * 2); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); overflow: hidden; }
.story-stage { grid-column: 1 / 9; position: relative; border-right: 1px solid var(--line-strong); background-image: radial-gradient(circle, var(--line-strong) .7px, transparent 1px); background-size: 24px 24px; }
.story-stage .mark.tl { left: 12px; top: 12px; } .story-stage .mark.tr { right: 12px; top: 12px; } .story-stage .mark.bl { left: 12px; bottom: 12px; } .story-stage .mark.br { right: 12px; bottom: 12px; }
.story-drawing { position: absolute; inset: 9% 8% 12%; display: grid; place-items: center; container-type: size; }
.story-window { position: absolute; top: 9%; bottom: 9%; width: 41%; border: 1px dashed var(--line-strong); display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 12px; font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story-window span:first-child { color: var(--ink); font-weight: 560; }
.sw-a { left: 5%; } .sw-b { right: 5%; }
.story-lossy-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; display: grid; gap: 3px; opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); z-index: 3; text-align: center; }
.story-lossy-tag span:first-child { color: var(--tan); }
.story-history { position: absolute; right: 4%; bottom: 7%; display: grid; gap: 14px; font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .05em; opacity: 0; transition: opacity .6s var(--ease); }
.story-history li { display: grid; grid-template-columns: 10px auto auto; gap: 8px; align-items: center; transform: translateX(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.story-history li i { width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); position: relative; }
.story-history li:not(:last-child) i::after { content: ""; position: absolute; left: 2.5px; top: 8px; width: 1px; height: 22px; background: var(--ink); }
.story-history li span { color: var(--ink-muted); }
.story-history .sh-head { display: block; color: var(--accent); opacity: 1; transform: none; }
.story-callout { position: absolute; left: var(--x); top: var(--y); z-index: 4; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; border: 0; background: none; padding: 6px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.story-drawing ~ .story-callout { margin-left: 0; }
.sc-dot { width: 13px; height: 13px; border: 1.5px solid var(--accent); background: var(--paper); transform: rotate(45deg); flex: none; }
.sc-tag { font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .05em; background: var(--paper); border: 1px solid var(--accent); color: var(--accent); padding: 3px 6px; white-space: nowrap; }
.story-callout[aria-pressed="true"] .sc-dot { background: var(--accent); }
.story-callout[aria-pressed="true"] .sc-tag { background: var(--accent); color: var(--paper); }
.story-card { position: absolute; left: 4%; bottom: 6%; z-index: 5; width: min(300px, 70%); background: var(--paper); border: 1px solid var(--ink); padding: 12px; box-shadow: 4px 4px 0 var(--select-fill); }
.story-card[hidden] { display: none; }
.sc-title { font-weight: 640; font-size: 17px; margin-bottom: 8px; }
.sc-ex { margin-top: 8px; font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-faint); text-transform: uppercase; }
.story-prompt { position: absolute; left: 0; right: 0; top: 5%; text-align: center; font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; color: var(--accent); opacity: 0; transition: opacity .4s; }
.story-caption { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 32px var(--gutter) 32px 8px; }
.story-count { font-family: var(--mono); font-size: var(--t-label); color: var(--ink-muted); }
.story-count span { color: var(--accent); }
.story-steps { display: grid; }
.story-steps li { grid-area: 1 / 1; display: grid; gap: 14px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.story-steps li.is-active { opacity: 1; transform: none; }
.story-steps p { font-size: clamp(24px, 2.3vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.story-progress { height: 2px; background: var(--line); }
.story-progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
/* states */
.story-stage[data-state="1"] .story-lossy-tag { opacity: 1; transform: translate(-50%, -50%); }
.story-stage[data-state="1"] .part { --cad-dash: .016 .012; --cad-fill: 0; --cad-line: #6D625A; }
.story-stage[data-state="2"] .story-window, .story-stage[data-state="3"] .story-window { opacity: 0; transform: scale(.98); }
.story-stage[data-state="2"] .story-history, .story-stage[data-state="3"] .story-history { opacity: 1; }
.story-stage[data-state="2"] .story-history li, .story-stage[data-state="3"] .story-history li { opacity: 1; transform: none; }
.story-stage[data-state="3"] .story-callout { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.story-stage[data-state="3"] .story-prompt { opacity: 1; }

/* ---------------------------------------------------------------- solution */
.solution { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.solution-text { grid-column: 1 / 7; display: grid; gap: 22px; }
.solution-list { display: grid; border-top: 1px solid var(--line-strong); margin-top: 10px; }
.solution-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
@keyframes wire { from { top: -14px; } to { top: 100%; } }

/* ---------------------------------------------------------------- products */
.product-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); border-top: 1px solid var(--line-strong); padding: clamp(28px, 3vw, 44px) 0; }
.product-row:last-child { border-bottom: 1px solid var(--line-strong); }
.product-text { grid-column: 1 / 5; display: grid; align-content: start; gap: 16px; position: sticky; top: calc(var(--header) + 40px); align-self: start; }
.product-index { font-family: var(--mono); color: var(--accent); font-size: var(--t-label); }
.product-text h3 { font-size: clamp(24px, 2.2vw, 36px); font-weight: 640; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.product-text p { color: var(--ink-muted); }
.product-visual { grid-column: 5 / 13; border: 1px solid var(--line-strong); background: var(--paper-subtle); padding: clamp(18px, 2.4vw, 40px); overflow: hidden; min-height: 460px; display: grid; place-items: center; }

/* mock CAD panels (simplified renderings of the real GitTol panels) */
.panels-visual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; width: 100%; }
.pv-item { margin: 0; display: grid; gap: 10px; }
.pv-item:nth-child(2) { margin-top: 36px; } .pv-item:nth-child(3) { margin-top: 72px; }
.pv-item figcaption { font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.mock-panel { --mp-bg: #faf9f6; --mp-ink: #51402f; --mp-line: #ded8ce; --mp-text: #2b241d; background: var(--mp-bg); color: var(--mp-text); border: 1px solid var(--mp-line); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 11px; line-height: 1.35; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(76, 44, 27, .35); overflow: hidden; }
.mp-window { font-size: 10px; padding: 5px 9px; background: #ece8e1; border-bottom: 1px solid var(--mp-line); color: #6b5f52; display: flex; gap: 6px; align-items: center; }
.mp-window::before { content: "● ● ●"; letter-spacing: -1px; color: #cfc6b9; font-size: 8px; }
.mp-head { display: flex; align-items: center; gap: 6px; padding: 9px 10px 4px; }
.mp-head b { font-weight: 650; font-size: 12px; }
.mp-mark { width: 11px; height: 11px; background: var(--mp-ink); outline: 1px solid var(--mp-ink); outline-offset: 1px; }
.mp-conn { margin-left: auto; color: #7a6c5d; font-size: 10px; display: flex; gap: 4px; align-items: center; }
.mp-conn i { width: 6px; height: 6px; border-radius: 50%; background: #5c8f55; }
.mp-doc { padding: 0 10px; font-weight: 650; font-size: 13px; }
.mp-meta { padding: 0 10px 8px; color: #7a6c5d; font-size: 10px; }
.mp-section { border-top: 1px solid var(--mp-line); padding: 8px 10px; display: grid; gap: 6px; }
.mp-label { font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #7a6c5d; display: flex; gap: 8px; align-items: center; }
.mp-label::after { content: ""; flex: 1; height: 1px; background: var(--mp-line, var(--line)); }
.mp-btn { display: block; text-align: center; padding: 6px 8px; border: 1px solid var(--mp-line); border-radius: 4px; background: #fff; font-weight: 550; }
.mp-primary { background: var(--mp-ink); color: #fff; border-color: var(--mp-ink); }
.mp-input { display: block; padding: 6px 8px; border: 1px solid var(--mp-line); border-radius: 4px; background: #fff; color: #5b4f43; }
.mp-hint { color: #8a7c6d; font-size: 10px; }
.mp-strong { font-weight: 600; }
.mp-coverage, .mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 10px; color: #6b5f52; }
.mp-grid { grid-template-columns: 1fr 1fr; }
.mp-coverage span, .mp-grid span { padding: 4px; background: rgba(0, 0, 0, .03); border-radius: 3px; }
.mp-coverage b, .mp-grid b { color: var(--mp-text); }
.mp-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; }
.mp-kv span { color: #7a6c5d; }
.mp-kv b { font-weight: 560; text-align: right; }
.mp-history { display: grid; gap: 4px; }
.mp-history li { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; font-size: 10px; }
.mp-history code { color: var(--mp-ink); font-size: 9.5px; }
.mp-history em { grid-column: 2; font-style: normal; color: #8a7c6d; font-size: 9.5px; }
.mp-compat { padding: 6px; border: 1px solid var(--mp-line); border-radius: 4px; display: grid; gap: 3px; }
.mp-foot { border-top: 1px solid var(--mp-line); padding: 6px 10px; color: #8a7c6d; font-size: 9.5px; }
.mp-onshape { --mp-bg: oklch(98.6% .004 75); --mp-ink: oklch(33% .035 55); --mp-line: oklch(90% .01 70); font-size: 10.5px; }
.mp-onshape .mp-window { background: #e9ecef; color: #495057; }
.mp-freecad { --mp-bg: #efefed; --mp-ink: #4c2c1b; --mp-line: #cfcfcb; font-family: -apple-system, "Segoe UI", sans-serif; }
.mp-freecad .mp-window { background: #dcdcd9; justify-content: center; font-weight: 600; }
.mp-freecad .mp-window::before { content: none; }
.mp-freecad .mp-btn { border-radius: 3px; background: linear-gradient(#fdfdfc, #ececea); }
.mp-freecad .mp-primary { background: var(--mp-ink); }

/* mock repository (brand dark theme of the real web app) */
.mock-repo { --r-bg: #151413; --r-sub: #1e1c1a; --r-line: #342e29; --r-line2: #49413a; --r-fg: #fdfcf7; --r-muted: #bcb0a5; width: 100%; background: var(--r-bg); color: var(--r-fg); font-family: -apple-system, "Segoe UI", sans-serif; font-size: 11.5px; border: 1px solid #000; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(22, 15, 11, .6); }
.mr-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #4c2c1b; }
.mr-title { font-size: 14px; } .mr-title b { font-weight: 650; }
.mr-chip { border: 1px solid rgba(253, 252, 247, .35); border-radius: 99px; padding: 1px 7px; font-size: 10px; color: var(--r-muted); }
.mr-actions { margin-left: auto; display: flex; gap: 6px; }
.mr-actions span { border: 1px solid rgba(253, 252, 247, .25); border-radius: 6px; padding: 3px 8px; font-size: 10.5px; }
.mr-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--r-line); overflow: hidden; }
.mr-tabs span { padding: 9px 9px; color: var(--r-muted); white-space: nowrap; }
.mr-tabs .is-active { color: var(--r-fg); box-shadow: inset 0 -2px 0 #b37952; }
.mr-bar { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--r-muted); font-size: 10.5px; }
.mr-branch { font-family: var(--mono); background: var(--r-sub); border: 1px solid var(--r-line2); border-radius: 6px; padding: 3px 8px; color: var(--r-fg); }
.mr-open { margin-left: auto; background: #9a6240; color: #fff; border-radius: 6px; padding: 4px 10px; font-weight: 600; }
.mr-commit { display: flex; gap: 8px; align-items: center; margin: 0 14px; padding: 8px 10px; border: 1px solid var(--r-line); border-radius: 8px 8px 0 0; background: var(--r-sub); color: var(--r-muted); }
.mr-commit b { color: var(--r-fg); font-weight: 600; }
.mr-avatar { width: 18px; height: 18px; border-radius: 50%; background: #b37952; color: #151413; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.mr-src { color: #f2a268; border: 1px solid rgba(242, 162, 104, .4); border-radius: 99px; padding: 0 6px; font-size: 9.5px; }
.mr-commit code { margin-left: auto; color: var(--r-muted); }
.mr-bench { display: grid; grid-template-columns: 1fr 2.2fr 1.1fr; margin: 0 14px 14px; border: 1px solid var(--r-line); border-top: 0; min-height: 270px; }
.mr-tree { border-right: 1px solid var(--r-line); padding: 8px; display: grid; align-content: start; gap: 2px; font-size: 10.5px; }
.rt-modes { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.rt-modes span { font-size: 9px; padding: 2px 5px; border-radius: 4px; color: var(--r-muted); border: 1px solid var(--r-line); }
.rt-modes .is-active { color: var(--r-fg); border-color: #75604f; }
.rt-group { color: var(--r-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.rt-item { padding: 2px 6px; border-radius: 4px; color: #e6ddd2; }
.rt-item.is-sel { background: rgba(179, 121, 82, .25); color: #fff; }
.mr-viewer { position: relative; background: radial-gradient(120% 90% at 50% 0%, #29241f 0%, #151413 100%); display: grid; place-items: center; padding: 30px 12px 12px; }
.mr-toolbar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; background: rgba(30, 28, 26, .85); border: 1px solid var(--r-line2); border-radius: 6px; padding: 2px; font-size: 9px; color: var(--r-muted); white-space: nowrap; }
.mr-toolbar span { padding: 2px 6px; border-radius: 4px; }
.mr-toolbar span:nth-child(2) { background: #292521; color: var(--r-fg); }
.mock-repo .cad-drawing, .mock-viewer .cad-drawing { --cad-facet: rgba(221, 183, 149, .4); --cad-line: #ddb795; --cad-w: 1.1; --cad-face: #2a2420; --cad-cap: #352c25; --cad-face2: #231e1a; --cad-hole: #151413; --cad-faint: rgba(221, 183, 149, .35); --cad-centre: #75604f; --cad-accent: #f0c79f; }
.mock-repo [data-part="bracket"] { --cad-line: #f0c79f; --cad-face: #4a3324; --cad-cap: #5a3e2b; }
.mock-repo .dims, .mock-viewer .dims { display: none; }
.mr-inspector { border-left: 1px solid var(--r-line); padding: 8px; display: grid; align-content: start; gap: 6px; font-size: 10.5px; }
.mr-inspector .mp-label { color: var(--r-muted); --mp-line: var(--r-line); }
.mr-inspector .mp-kv span, .mr-inspector .mp-hint { color: var(--r-muted); }
.mock-repo.is-compact .mr-bench { grid-template-columns: 1fr 2.4fr; }
.mock-repo.is-compact .mr-inspector { display: none; }

/* compare + history + viewer + misc mocks */
.mock-compare, .mock-history, .mock-dev { width: 100%; max-width: 560px; background: var(--paper); border: 1px solid var(--line-strong); padding: 16px; display: grid; gap: 12px; font-size: 13px; }
.mc-head { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.mc-head code { font-weight: 450; background: var(--paper-subtle); border: 1px solid var(--line); padding: 1px 6px; }
.mock-compare ul { display: grid; border-top: 1px solid var(--line); }
.mock-compare li { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mc-kind { font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; color: var(--ink-muted); letter-spacing: .05em; }
.mc-name { font-weight: 560; }
.mc-vals { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; }
.mc-vals del { color: #b0453a; background: rgba(176, 69, 58, .08); padding: 0 4px; }
.mc-vals ins { color: #2f6b2c; background: rgba(47, 107, 44, .1); text-decoration: none; padding: 0 4px; }
.mock-compare .mp-label::after, .mock-history .mp-label::after { background: var(--line); }
.mock-history ol { display: grid; }
.mock-history li { display: grid; grid-template-columns: 14px 70px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); position: relative; }
.mock-history li i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.mock-history li code { color: var(--accent); }
.mock-history li em { font-style: normal; font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-muted); text-transform: uppercase; }
.mock-viewer { width: 100%; max-width: 620px; position: relative; background: radial-gradient(120% 90% at 50% 0%, #29241f 0%, #151413 100%); padding: 44px 24px 16px; display: grid; gap: 10px; }
.mock-viewer .mr-toolbar { --r-line2: #49413a; --r-muted: #bcb0a5; --r-fg: #fdfcf7; }
.mock-viewer .mp-hint { color: #bcb0a5; text-align: center; }
.mock-dev { justify-items: center; text-align: center; border-style: dashed; }

/* ---------------------------------------------------------------- workflow */
.wf-list { display: grid; border-top: 1px solid var(--line-strong); }
.wf-stage { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 26px 0; border-bottom: 1px solid var(--line-strong); align-items: center; }
.wf-index { grid-column: 1 / 4; display: grid; gap: 10px; align-content: start; align-self: start; }
.wf-index b { font-size: clamp(30px, 3.4vw, 54px); font-weight: 650; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.wf-art { grid-column: 4 / 8; position: relative; border: 1px solid var(--line); background: var(--paper-subtle); display: grid; overflow: hidden; }
.wf-scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent); opacity: 0; box-shadow: 0 0 0 4px rgba(179, 121, 82, .08); pointer-events: none; }
.is-in > .wf-art .wf-scan, .tour-item.is-active .wf-scan { animation: scan 1.4s var(--ease) both; }
@keyframes scan { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.wf-text { grid-column: 9 / 13; display: grid; gap: 12px; }
.wf-text p { color: var(--ink-muted); }

/* ---------------------------------------------------------------- use cases */
.uc-list { border-top: 1px solid var(--line-strong); }
.uc-row { display: grid; grid-template-columns: 80px minmax(0, 4fr) minmax(0, 6fr) 40px; gap: var(--gap); align-items: center; padding: 20px 12px; border-bottom: 1px solid var(--line-strong); transition: background .35s var(--ease), color .35s var(--ease); }
.uc-row h3 { text-transform: uppercase; font-weight: 620; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: -.015em; }
.uc-row p { color: var(--ink-muted); transition: color .35s var(--ease); }
.uc-arrow { justify-self: end; transform: translateX(-8px); opacity: 0; transition: transform .4s var(--ease), opacity .3s; font-family: var(--mono); }
.uc-row:hover { background: var(--ink); color: var(--paper); }
.uc-row:hover p { color: var(--tan); }
.uc-row:hover .uc-arrow { transform: none; opacity: 1; }

/* ---------------------------------------------------------------- CTA */
.cta { min-height: clamp(520px, 62vh, 760px); display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--dark); color: var(--paper); border-top-color: #000; }
.cta-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.cta-grid::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, transparent calc(33.333% - .5px), var(--dark-line) calc(33.333% - .5px) calc(33.333% + .5px), transparent calc(33.333% + .5px) calc(66.666% - .5px), var(--dark-line) calc(66.666% - .5px) calc(66.666% + .5px), transparent calc(66.666% + .5px)), linear-gradient(180deg, transparent calc(33.333% - .5px), var(--dark-line) calc(33.333% - .5px) calc(33.333% + .5px), transparent calc(33.333% + .5px) calc(66.666% - .5px), var(--dark-line) calc(66.666% - .5px) calc(66.666% + .5px), transparent calc(66.666% + .5px)); }
.cta-tag { font-family: var(--mono); font-size: var(--t-micro); color: rgba(221, 183, 149, .5); padding: 10px; text-align: left; letter-spacing: .05em; grid-column: calc(var(--c) + 1); grid-row: calc(var(--r) + 1); }
.cta-inner { position: relative; display: grid; justify-items: center; gap: 24px; max-width: 980px; }
.cta .label { color: var(--tan); }
.cta h2 { font-size: clamp(36px, 5.4vw, 92px); }
.cta p { color: #cbbcae; max-width: 50ch; }
.cta .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn-primary .btn-icon { background: var(--tan); border-color: var(--tan); }
.cta .btn-primary:hover { background: var(--tan); border-color: var(--tan); }
.cta .btn-ghost { color: var(--paper); border-color: rgba(253, 252, 247, .5); }
.cta .btn-ghost:hover { background: rgba(253, 252, 247, .06); }
.cta .ctas { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: #e9dfd3; margin: 0 calc(var(--frame) + 1px) calc(var(--frame) + 1px); border-top: 1px solid var(--dark-line); }
.footer-top { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--gap); padding: 56px var(--gutter) 40px; }
.footer-intro { display: grid; gap: 18px; align-content: start; }
.footer-tag { color: #cbbcae; max-width: 34ch; }
.site-footer .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); width: fit-content; }
.site-footer .btn-primary .btn-icon { background: var(--tan); }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col .label { color: #a28f7f; }
.footer-col ul { display: grid; gap: 6px; }
.footer-col a { text-decoration: none; color: #e9dfd3; transition: color .25s; }
.footer-col a:hover, .footer-col a[aria-current] { color: var(--tan); }
.footer-status li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.site-footer .status-beta { color: #9ccf96; border-color: rgba(156, 207, 150, .35); }
.site-footer .status-preview { color: var(--tan); border-color: rgba(221, 183, 149, .35); }
.footer-mark { position: relative; padding: 10px var(--gutter) 6px; border-top: 1px solid var(--dark-line); }
.wordmark { width: 100%; height: auto; overflow: visible; }
.wordmark .guide { stroke: rgba(221, 183, 149, .16); stroke-width: .3; fill: none; stroke-dasharray: 2 2; }
.wordmark .letter { fill: none; stroke: var(--tan); stroke-width: .45; }
.wordmark .letter-fill { fill: url(#hatch); stroke: var(--tan); stroke-width: .9; }
.wordmark .hatch-line { stroke: var(--tan); stroke-width: 1.2; }
.wordmark .ink-probe { transition: r .5s var(--ease); }
.footer-mark-caption { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--t-micro); color: #a28f7f; letter-spacing: .06em; padding-top: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 16px var(--gutter) 22px; border-top: 1px solid var(--dark-line); font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .05em; color: #a28f7f; }
.footer-legal a { margin-left: auto; text-decoration: none; color: #e9dfd3; }

/* ---------------------------------------------------------------- product page template */
.page-hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); min-height: calc(100svh - var(--header) - var(--frame) * 2); border-bottom: 1px solid var(--line-strong); }
.page-hero-text { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding: 48px var(--gutter) 56px; }
.page-hero-text h1 { font-size: clamp(36px, 4.4vw, 72px); }
.page-meta { margin-top: 8px; }
.page-hero-visual { grid-column: 6 / 13; position: relative; border-left: 1px solid var(--line-strong); display: grid; place-items: center; padding: clamp(24px, 3vw, 56px); background: var(--paper-subtle); }
.page-hero-visual .mark.tl { left: 10px; top: 10px; } .page-hero-visual .mark.tr { right: 10px; top: 10px; } .page-hero-visual .mark.bl { left: 10px; bottom: 10px; } .page-hero-visual .mark.br { right: 10px; bottom: 10px; }
.page-hero-plain { display: grid; gap: 22px; padding-top: clamp(80px, 12vw, 180px); border-top: 0; }
.page-hero-plain h1 { max-width: 16ch; }

.tour { position: relative; }
.tour-tabs { position: sticky; top: calc(var(--header) + var(--frame)); z-index: 20; background: var(--paper); border-block: 1px solid var(--line-strong); transition: top .5s var(--ease); }
.header-hidden .tour-tabs { top: var(--frame); }
.tour-tabs ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow-x: auto; scrollbar-width: none; }
.tour-tabs a { display: grid; gap: 14px; padding: 12px 16px; min-height: 76px; text-decoration: none; border-right: 1px solid var(--line); transition: background .4s var(--ease), color .4s var(--ease); white-space: nowrap; }
.tour-tabs li:last-child a { border-right: 0; }
.tour-tabs b { font-family: var(--mono); font-weight: 500; font-size: var(--t-label); text-transform: uppercase; letter-spacing: .05em; align-self: end; }
.tour-tabs a.is-active { background: var(--ink); color: var(--paper); }
.tour-tabs a.is-active .label-index { color: var(--tan); }
.tour-tabs a:hover:not(.is-active) { background: var(--paper-subtle); }
.tour-item { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); min-height: 86vh; padding: clamp(48px, 6vw, 96px) var(--gutter); border-bottom: 1px solid var(--line-strong); align-items: center; scroll-margin-top: 140px; }
.tour-text { grid-column: 1 / 5; display: grid; gap: 18px; align-content: center; position: sticky; top: 180px; align-self: start; }
.tour-text h2 { font-size: clamp(28px, 2.8vw, 46px); }
.tour-text p { color: var(--ink-muted); }
.tour-visual { grid-column: 6 / 13; position: relative; border: 1px solid var(--line-strong); background: var(--paper-subtle); min-height: 480px; display: grid; place-items: center; padding: clamp(20px, 3vw, 48px); overflow: hidden; }
.tour-visual .mock-panel { width: 280px; }

.step-list { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.step { padding: 18px 20px 30px; border-right: 1px solid var(--line); display: grid; gap: 16px; align-content: start; min-height: 260px; }
.step:last-child { border-right: 0; }
.step-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--t-label); color: var(--ink-muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.step-head span:last-child { color: var(--accent); }
.step h3 { font-size: clamp(22px, 2vw, 30px); text-transform: uppercase; font-weight: 640; letter-spacing: -.02em; }
.step p { color: var(--ink-muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.faq-title { grid-column: 1 / 5; display: grid; gap: 18px; align-content: start; }
.faq-list { grid-column: 5 / 13; border-top: 1px solid var(--line-strong); }
.faq-row { border-bottom: 1px solid var(--line-strong); }
.faq-row h3 { font-size: inherit; }
.faq-row button { width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-size: clamp(15px, 1.1vw, 17px); font-weight: 560; text-transform: uppercase; letter-spacing: -.005em; }
.faq-row button i { position: relative; width: 14px; height: 14px; flex: none; transition: transform .4s var(--ease); }
.faq-row button i::before, .faq-row button i::after { content: ""; position: absolute; background: currentColor; left: 0; top: 6.5px; width: 14px; height: 1.5px; }
.faq-row button i::after { transform: rotate(90deg); }
.faq-row button[aria-expanded="true"] i { transform: rotate(45deg); color: var(--accent); }
.faq-row button:hover { color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a[hidden] { display: grid; visibility: hidden; }
.faq-a.is-open { grid-template-rows: 1fr; visibility: visible; }
.faq-a p { overflow: hidden; color: var(--ink-muted); max-width: 70ch; }
.faq-a.is-open p { padding: 0 4px 22px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); }
.status-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.status-table th, .status-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.status-table thead th { position: sticky; top: 0; background: var(--paper-subtle); font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; color: var(--ink-muted); }
.status-table tbody th { font-weight: 620; white-space: nowrap; }
.status-table td { color: var(--ink-muted); }
.status-table td:nth-child(3) { white-space: nowrap; }
.status-table tr.is-planned th { color: var(--ink-muted); font-weight: 500; }
.status-table tr:last-child th, .status-table tr:last-child td { border-bottom: 0; }

/* interop */
.team-workflow { width: 100%; max-width: 640px; display: grid; gap: 20px; padding: clamp(18px, 3vw, 36px); }
.tw-people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tw-people > div, .tw-project { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line-strong); }
.tw-people span, .tw-project span { font-size: 14px; color: var(--ink-muted); }
.tw-links { display: flex; justify-content: space-around; font-family: var(--mono); color: var(--accent); }
.tw-project { text-align: center; background: var(--paper-subtle); }
.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.record-grid li { display: grid; gap: 10px; align-content: start; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 170px; }
.record-grid li:nth-child(3n) { border-right: 0; }
.record-grid p { color: var(--ink-muted); }

/* forms */
.form-page { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-top: clamp(64px, 8vw, 120px); border-top: 0; }
.form-intro { grid-column: 1 / 6; display: grid; gap: 24px; align-content: start; }
.form-intro h1 { font-size: clamp(36px, 4.2vw, 68px); }
.form-wrap { grid-column: 7 / 13; }
.mk-form { display: grid; border-top: 1px solid var(--line-strong); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; }
.field-pair .field:first-child { border-right: 1px solid var(--line); }
.field { position: relative; border-bottom: 1px solid var(--line-strong); min-height: 76px; }
.field input, .field textarea, .field select { width: 100%; border: 0; background: transparent; padding: 32px 14px 10px; font: inherit; font-size: 17px; color: var(--ink); border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 110px; padding-top: 36px; }
.field label { position: absolute; left: 14px; top: 26px; font-size: 17px; color: var(--ink-faint); pointer-events: none; transform-origin: 0 0; transition: transform .3s var(--ease), color .3s; text-transform: uppercase; letter-spacing: .01em; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field-select label { transform: translateY(-15px) scale(.66); color: var(--ink-muted); font-family: var(--mono); letter-spacing: .06em; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field-select select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 38px, calc(100% - 15px) 38px; background-size: 5px 5px; background-repeat: no-repeat; }
.req { color: var(--accent); margin-left: 3px; }
.field.has-error { background: rgba(155, 44, 31, .04); }
.field.has-error::after { transform: scaleX(1); background: var(--danger); }
.field-error { position: absolute; right: 14px; top: 10px; font-family: var(--mono); font-size: var(--t-micro); color: var(--danger); text-transform: uppercase; letter-spacing: .04em; }
.field-checks { border: 0; border-bottom: 1px solid var(--line-strong); margin: 0; padding: 14px 14px 18px; display: grid; gap: 12px; }
.field-checks legend { float: left; width: 100%; font-family: var(--mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin-bottom: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; clear: both; }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: block; border: 1px solid var(--line-strong); padding: 7px 11px; font-size: 13.5px; transition: background .2s, color .2s, border-color .2s; }
.check input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-yesno { gap: 0; }
.yesno { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); clear: both; }
.yesno:first-of-type { border-top: 0; }
.yesno-q { font-size: 14.5px; }
.yesno-a { display: flex; gap: 6px; flex: none; }
.field input[type=number] { -moz-appearance: textfield; }
.field input[type=number]::-webkit-inner-spin-button, .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.form-submit { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; transition: background .3s var(--ease); margin-top: 18px; }
.form-submit:hover { background: var(--brown); }
.form-submit[disabled] { cursor: progress; background: var(--ink-muted); }
.form-spinner { width: 14px; height: 14px; border: 1.5px solid rgba(253, 252, 247, .35); border-top-color: var(--paper); border-radius: 50%; margin-left: auto; opacity: 0; }
.is-submitting .form-spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 1.5em; margin-top: 14px; font-size: 14.5px; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--ok); }
.mk-form.is-success .field, .mk-form.is-success .field-pair, .mk-form.is-success .field-checks, .mk-form.is-success .form-submit { display: none; }
.form-success { border: 1px solid var(--line-strong); padding: 26px; display: grid; gap: 12px; background: var(--paper-subtle); }
.form-success h2 { font-size: clamp(26px, 2.4vw, 38px); }
.form-note { font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.contact-cells { display: grid; border-top: 1px solid var(--line-strong); }
.contact-cells li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* about */
.about-hero { padding-top: clamp(90px, 12vw, 190px); display: grid; gap: 24px; border-top: 0; }
.about-hero h1 { max-width: 17ch; font-size: clamp(38px, 5.4vw, 92px); }
.about-story { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.about-art { grid-column: 1 / 6; }
.about-text { grid-column: 7 / 13; display: grid; gap: 20px; }
.about-text p:not(.label) { font-size: clamp(16px, 1.25vw, 20px); color: var(--ink-muted); max-width: 56ch; }
.about-text .label + p { color: var(--ink); }
.beaver-drawing { position: relative; margin: 0; max-width: 460px; aspect-ratio: 1; border: 1px solid var(--line-strong); background: var(--paper-subtle); }
.beaver-drawing img { position: absolute; inset: 14%; width: 72%; height: 72%; }
.beaver-construct { position: absolute; inset: 0; width: 100%; height: 100%; }
.bc-grid path { stroke: var(--line); fill: none; }
.bc-circle { fill: none; stroke: var(--accent); stroke-width: .8; stroke-dasharray: .01 .008; }
.bc-dim { stroke: var(--accent); fill: none; stroke-width: .8; }
.beaver-construct text { font-family: var(--mono); font-size: 9px; fill: var(--ink-muted); }
.beaver-construct text:first-of-type { fill: var(--accent); text-anchor: middle; }
.about-name { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.about-name > div { grid-column: 1 / 8; display: grid; gap: 20px; }
.about-name .section-text { grid-column: 9 / 13; }
.name-eq { font-size: clamp(44px, 7vw, 120px); display: flex; flex-wrap: wrap; gap: 0 .25em; align-items: baseline; }
.name-eq i { font-style: normal; color: var(--accent); font-weight: 400; }
.person { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; border: 1px solid var(--line-strong); padding: 20px; max-width: 760px; }
.person-mark { aspect-ratio: 1; display: grid; place-items: center; background: var(--paper-subtle); border: 1px solid var(--line); font-family: var(--mono); font-size: 34px; color: var(--accent); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; }
.person h3 { font-size: 26px; text-transform: uppercase; font-weight: 640; letter-spacing: -.02em; }
.person .label { margin: 6px 0 14px; }
.person p:last-child { color: var(--ink-muted); }

/* reveal (JS adds .is-in; without JS everything is visible) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav-cell { min-width: 0; padding: 0 14px; }
  .header-cta { min-width: 0; }
  .brand-tag { display: none; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-card:nth-child(2) { border-right: 0; }
  .problem-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: repeat(4, 1fr); }
  .footer-intro { grid-column: 1 / -1; }
  .mr-bench { grid-template-columns: 1fr 2fr; } .mr-inspector { display: none; }
}
@media (max-width: 1024px) {
  .hero, .page-hero { grid-template-columns: 1fr; }
  .hero-text, .page-hero-text { grid-column: 1; padding-top: 48px; padding-bottom: 36px; }
  .hero-stage, .page-hero-visual { grid-column: 1; border-left: 0; border-top: 1px solid var(--line-strong); min-height: 0; aspect-ratio: 4 / 3; }
  .page-hero-visual { aspect-ratio: auto; }
  .stage-drawing { inset: 44px 16px 92px; }
  .solution, .faq, .form-page, .about-story, .about-name { grid-template-columns: 1fr; row-gap: 36px; }
  .solution-text, .solution-orbit, .faq-title, .faq-list, .form-intro, .form-wrap, .about-art, .about-text, .about-name > div, .about-name .section-text { grid-column: 1; }
  .product-row { grid-template-columns: 1fr; row-gap: 24px; }
  .product-text, .product-visual { grid-column: 1; position: static; }
  .wf-stage { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .wf-index { grid-column: 1 / -1; }
  .wf-art { grid-column: 1; } .wf-text { grid-column: 2; }
  .tour-item { grid-template-columns: 1fr; row-gap: 28px; min-height: 0; }
  .tour-text, .tour-visual { grid-column: 1; position: static; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .story-stage { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .story-caption { grid-column: 1; padding: 20px var(--gutter) 24px; gap: 14px; }
  .story-steps p { font-size: clamp(20px, 3.4vw, 28px); }
  .split-head h2, .split-head .section-text { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav, .sign-in, .header-cta { display: none !important; }
  .menu-toggle { display: flex !important; min-width: 96px; }
  .brand { border-right: 0; margin-right: auto; }
  .site-header { grid-template-columns: 1fr auto; }
  .panels-visual { grid-template-columns: repeat(3, 240px); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .pv-item { scroll-snap-align: start; margin-top: 0 !important; }
  .product-visual { place-items: stretch; }
  .step-list, .resource-links, .record-grid { grid-template-columns: 1fr; }
  .step, .resource-links a, .record-grid li { border-right: 0 !important; border-bottom: 1px solid var(--line); min-height: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .uc-row { grid-template-columns: 56px 1fr; }
  .uc-row p { grid-column: 2; }
  .uc-arrow { display: none; }
  .update { grid-template-columns: 1fr; }
  .update-meta { grid-row: auto; display: flex; gap: 12px; }
  .person { grid-template-columns: 96px 1fr; }
}
@media (max-width: 600px) {
  :root { --frame: 5px; --header: 52px; }
  .ruler { display: none; }
  .hero-stage { aspect-ratio: 1 / 1.05; }
  .stage-drawing { inset: 48px 6px 96px; }
  .stage-caption { font-size: 9px; }
  .stage-tl { left: 16px; top: 16px; } .stage-tr { right: 16px; top: 16px; }
  .hero-card { width: min(230px, 64vw); }
  .hero-card, .hero-card.side-left { left: 50% !important; top: auto !important; bottom: 62px; transform: translateX(-50%); }
  .hero-card .diff-card, .hero-card.side-left .diff-card { clip-path: inset(100% 0 0 0); }
  .hero-card.is-open .diff-card { clip-path: inset(0); }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { border-right: 0 !important; border-bottom: 1px solid var(--line); min-height: 0; }
  .wf-stage { grid-template-columns: 1fr; }
  .wf-art, .wf-text { grid-column: 1; }
  .field-pair { grid-template-columns: 1fr; }
  .field-pair .field:first-child { border-right: 0; }
  .yesno { flex-direction: column; align-items: flex-start; gap: 6px; }
  .story-window { width: 44%; } .sw-a { left: 3%; } .sw-b { right: 3%; }
  .story-window span:last-child { display: none; }
  .story-history { display: none; }
  .story-card { left: 3%; right: 3%; width: auto; bottom: 3%; }
  .sc-tag { display: none; }
  .story-callout[aria-pressed="true"] .sc-tag { display: block; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal a { margin-left: 0; }
  .mock-compare li { grid-template-columns: 1fr; gap: 2px; }
  .product-visual, .tour-visual, .page-hero-visual { padding: 14px; min-height: 0; }
  .mr-bench { grid-template-columns: 1fr; } .mr-tree { display: none; }
  .mr-actions, .mr-chip, .mr-bar > span:not(.mr-branch):not(.mr-open) { display: none; }
  .mr-commit span:not(.mr-avatar) { display: none; }
  .cta-tag { font-size: 8.5px; padding: 6px; }
  .btn { --h: 46px; }
  .meta-row { grid-template-columns: 80px 1fr; }
}

/* ---------------------------------------------------------------- media slots (owner images; see media.py) */
.media-frame { margin: 0; width: 100%; aspect-ratio: var(--media-ratio, 8 / 5); display: grid; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: var(--media-fit, contain); object-position: var(--media-pos, 50% 50%); }
.tour-visual .mock-dev { padding: 12px; }
.page-hero-media .page-hero-text { justify-content: center; }
.page-hero-media .page-hero-visual { padding: clamp(24px, 2.6vw, 44px); place-items: center; }
.page-hero-media .media-frame { border: 1px solid var(--line-strong); background: var(--paper); }

/* ---------------------------------------------------------------- CAD orbits (A: ecosystem ellipse, B: project hub) */
@property --t { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.orbit { margin: 0; }
.orbit-stage { position: relative; container-type: inline-size; }
.orbit-ring { position: absolute; inset: 0; pointer-events: none; }
.orbit-node { position: absolute; left: 50%; top: 50%; width: var(--icon); height: var(--icon); margin: calc(var(--icon) / -2) 0 0 calc(var(--icon) / -2);
  transform: translate(calc(var(--sx) * var(--rx)), calc(var(--sy) * var(--ry))); will-change: transform; }
@supports (transform: translateX(calc(cos(0deg) * 1px))) {
  /* the only per-node motion: translation along the track, so artwork never rotates */
  .orbit-node { transform: translate(calc(cos(var(--a) + var(--t)) * var(--rx)), calc(sin(var(--a) + var(--t)) * var(--ry))); }
}
.orbit-float { display: block; width: 100%; height: 100%; }
.orbit-float img { width: 100%; height: 100%; object-fit: contain; }
/* B turns as one ring; A's icons are moved individually by site.js (inline transforms) while running */
.orbit[data-orbit-state="running"] .so-ring { animation: orbit-turn var(--period) linear infinite; }
.orbit[data-orbit-paused] .orbit-ring { animation-play-state: paused; }
@keyframes orbit-turn { to { --t: 360deg; } }
.orbit-trails { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit-node.is-hit .orbit-float { animation: orbit-hit .6s cubic-bezier(.3, .7, .4, 1); }
@keyframes orbit-hit { 35% { transform: scale(1.09); } }
.co-figure, .solution-orbit { display: grid; justify-items: center; }

/* Orbit A: centred message inside a broad ellipse; icons never enter the protected centre */
.cad-orbit { padding: 34px var(--gutter) 40px; }
.co-figure { width: 100%; }
.co-stage { --icon: 56px; --rx: 33cqi; --ry: 15.5cqi; width: 100%; aspect-ratio: 2.45 / 1; }
.co-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.co-title { max-width: 52cqi; font-size: clamp(34px, 5cqi, 72px); font-weight: 640; letter-spacing: -.025em; line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
.co-line { display: block; white-space: nowrap; }
.co-count { color: var(--accent); }
.co-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 22px; margin-top: 18px; text-align: center; }
.co-note { color: var(--ink-muted); font-size: 14.5px; }
.co-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.co-legend li { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; }
.co-legend img { width: 24px; height: 24px; object-fit: contain; }
.col-name { font-weight: 560; }
.cad-orbit .int-note { text-align: center; }

/* Orbit B: fixed circular project hub, ten nodes 36 degrees apart on one track */
.solution-orbit { grid-column: 7 / 13; gap: 0; }
.so-stage { --rx: 40cqi; --ry: 40cqi; --icon: clamp(32px, 10cqi, 56px); --period: 120s; width: min(100%, 560px); aspect-ratio: 1; }
.so-stage::before { content: ""; position: absolute; inset: 10cqi; border: 1px dashed var(--line-strong); border-radius: 50%; }
.so-hub { --hub: clamp(110px, 33cqi, 186px); transition: box-shadow .7s ease; position: absolute; left: 50%; top: 50%; width: var(--hub); height: var(--hub); overflow: hidden; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--ink); color: var(--paper); display: grid; place-content: center; justify-items: center; gap: 4px; padding: 13%; text-align: center; }
.so-hub img { width: clamp(22px, 7cqi, 40px); height: auto; }
.so-hub b { font-size: clamp(13px, 3.4cqi, 19px); letter-spacing: -.02em; line-height: 1.1; }
.so-hub span { font-family: var(--mono); font-size: clamp(8px, 1.8cqi, 10.5px); text-transform: uppercase; letter-spacing: .05em; color: var(--tan); text-wrap: balance; }
.so-hub.is-receiving { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent); transition-duration: .18s; }
.so-caption { margin-top: 14px; max-width: 48ch; display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--ink-muted); font-size: 14px; }

/* orbit and media responsive rules live here, after their base rules, so the cascade cannot undo them */
@media (max-width: 1024px) {
  .solution-orbit { grid-column: 1; }
  .co-stage { --icon: 44px; --rx: 37cqi; --ry: 21cqi; aspect-ratio: 1.8 / 1; }
  .co-title { max-width: 50cqi; font-size: clamp(28px, 6cqi, 56px); }
  .page-hero-media { min-height: 0; }
  .page-hero-media .page-hero-text { padding-bottom: 28px; }
  .page-hero-media .page-hero-visual { padding: 24px var(--gutter) 32px; }
}
@media (max-width: 600px) {
  .co-stage { --icon: 36px; --rx: 38cqi; --ry: 33cqi; aspect-ratio: 1.1 / 1; }
  .co-title { max-width: 60cqi; font-size: clamp(17px, 6.4cqi, 30px); line-height: 1.05; }
  .co-foot { flex-direction: column; align-items: center; }
  .co-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .co-legend li { flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; padding: 6px 8px; }
  .co-legend li .status { font-size: 9px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker ul { animation: none; flex-wrap: wrap; white-space: normal; }
  .hs-ring::after { display: none; }
}
.reduce .story { height: auto; }
.reduce .story-sticky { position: relative; top: 0; height: auto; min-height: 640px; }
.reduce .story-steps { gap: 18px; }
.reduce .story-steps li { grid-area: auto; opacity: 1; transform: none; }
.reduce .story-steps li p { font-size: clamp(18px, 1.6vw, 24px); }
.reduce .story-stage { min-height: 560px; }
.reduce .story-progress, .reduce .story-count { display: none; }
.reduce [data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .orbit-ring, .orbit-float { animation: none !important; } .orbit-trails { display: none; } }
