@charset "utf-8";

/* SI30 v4: home page only. The subpages keep /assets/si30.css.
   Graphite and alloy grounds with hard edges, amber accent, Archivo (variable width) only,
   machined 0-radius edges. THE ORB carries the page. */

/* ── tokens (copied from assets/si30.css :root) ─────────────────────── */

:root {
  --graphite: #14181C;
  --graphite-2: #1C2228;
  --alloy: #E6E9EC;
  --alloy-2: #D9DDE1;
  --ink: #0E1215;
  --paper: #F4F6F7;
  --amber: #FFB03B;
  --amber-deep: #C97A12;
  --signal-red: #FF4A3D;

  --container: 1280px;
  --pad: 32px;
  --rhythm: clamp(96px, 11vw, 168px);
  --gutter: 32px;
  --head-h: 72px;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── reset ──────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus, var(--amber));
  outline-offset: 3px;
}

main:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

/* ── grounds ────────────────────────────────────────────────────────── */

main > section { position: relative; z-index: 1; }

.band { padding-block: var(--rhythm); }

.band--graphite,
.hero,
.seams {
  color: var(--paper);
  --rule: var(--graphite-2);
  --panel: var(--graphite-2);
  --accent: var(--amber);
  --muted: rgba(244, 246, 247, 0.70);
  --hair: rgba(244, 246, 247, 0.14);
}

.band--graphite { background: var(--graphite); }

.band--alloy {
  background: var(--alloy);
  color: var(--ink);
  --rule: var(--alloy-2);
  --panel: #EDEFF1;
  --accent: var(--amber-deep);
  --focus: var(--ink);
  --muted: rgba(14, 18, 21, 0.68);
  --hair: rgba(14, 18, 21, 0.16);
}

.band--joined { border-top: 1px solid var(--rule); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── type ───────────────────────────────────────────────────────────── */

.h1 {
  font-size: clamp(48px, 8.4vw, 132px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 84, "wght" 720;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 70px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 86, "wght" 700;
  max-width: 16ch;
  text-wrap: balance;
}

.h2--wide { max-width: 22ch; }

.h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 92, "wght" 700;
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 60ch;
}

.body { max-width: 66ch; }

.small { font-size: 14px; line-height: 1.5; }

.muted { color: var(--muted); }

.num {
  font-weight: 700;
  font-variation-settings: "wdth" 75, "wght" 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link:hover { text-decoration-thickness: 2px; }

/* masked line reveal (classes are added by home.js, never in the markup) */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln__in { display: block; will-change: transform; }
.is-revealing { opacity: 0; animation: reveal-failsafe 0s linear 2.5s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; } }

/* ── skip link ──────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--amber);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
}

.skip:focus { left: 0; }

/* ── header: transparent over the hero, graphite after 40px ─────────── */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--paper);
  background: var(--graphite);
  border-bottom: 1px solid var(--graphite-2);
  transition: background-color 280ms var(--ease-out), border-color 280ms var(--ease-out);
}

/* transparent over the hero only when home.js is running to turn it solid again */
.js-head .site-head:not(.is-solid) {
  background: rgba(20, 24, 28, 0);
  border-bottom-color: transparent;
}

.site-head.is-solid {
  background: var(--graphite);
  border-bottom-color: var(--graphite-2);
}

.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: var(--head-h);
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variation-settings: "wdth" 88, "wght" 700;
}

.wordmark svg { width: 30px; height: 30px; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(244, 246, 247, 0.80);
  padding-block: 6px;
  transition: color 180ms var(--ease-out);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.nav a:hover { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }

/* ── buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  font-variation-settings: "wdth" 95, "wght" 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.hero .btn--primary,
.band--graphite .btn--primary,
.band--alloy .readout .btn--primary {
  background: var(--amber);
  color: var(--ink);
}

.band--alloy .btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}

.btn--text {
  background: transparent;
  color: inherit;
  padding-inline: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── hero ───────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--head-h) + 40px) 96px;
  overflow: clip;
}

.hero__in { position: relative; }

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 60%);
}

.hero__sub {
  max-width: 44ch;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
}

.hero__cta { margin-top: 36px; }

.hero__note {
  margin-top: 18px;
  color: var(--muted);
}

.hero__orb {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: calc((100vw - min(100vw, var(--container))) / -2 - var(--pad) - 5vw);
  width: 56vw;
  max-width: 1040px;
  transform: translateY(-50%);
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero__stage { cursor: grab; }
.hero__stage:active { cursor: grabbing; }

.hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 700ms var(--ease-out);
  -webkit-user-drag: none;
}

.is-3d .hero__poster { opacity: 0; }

.orb-caption {
  margin: -3% 0 0 22%;
  max-width: 32ch;
  font-size: 14px;
  color: var(--muted);
}

/* the scroll cue: one hairline drawing downward */
.scroll-cue {
  position: absolute;
  left: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: opacity 400ms var(--ease-out);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--paper);
  transform-origin: top;
  animation: cue 2.4s var(--ease-out) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.has-scrolled .scroll-cue { opacity: 0; pointer-events: none; }

/* ── the 3D canvas + its label overlay ─────────────────────────────── */

.orb-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}

.orb-canvas.is-on { opacity: 1; }
.orb-canvas.is-idle { visibility: hidden; }

.orb-labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.orb-label {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  font-variation-settings: "wdth" 90, "wght" 600;
  white-space: nowrap;
  color: var(--paper);
  opacity: 0;
  will-change: transform, opacity;
}

.orb-label > span {
  display: block;
  transform: translate(-50%, calc(-100% - 14px));
}

.orb-label > span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 10px;
  margin-top: 3px;
  background: rgba(244, 246, 247, 0.5);
}

.orb-label--gap { color: var(--signal-red); }
.orb-label--gap > span { transform: translate(-50%, 12px); }
.orb-label--gap > span::after { top: auto; bottom: 100%; margin: 0 0 3px; background: rgba(255, 74, 61, 0.6); }

.orb-five > span { transform: translate(clamp(56px, 6vw, 110px), -20%); }
.orb-five > span::after { display: none; }
.orb-five ul { border-left: 2px solid var(--amber); padding-left: 14px; }

@media (max-width: 1023px) {
  .orb-label { font-size: 12px; }
  .orb-label:not(.orb-five):not(.orb-label--gap) > span { white-space: normal; width: 10ch; text-align: center; }
  .orb-five li { font-size: 13px; }
}
.orb-five li { font-size: 15px; line-height: 1.55; }

/* ── the seams ──────────────────────────────────────────────────────── */

.seams { padding-block: var(--rhythm); }

.seams__stage,
.beat__stage,
.beat__name,
.beat__verdict { display: none; }

.beat + .beat,
.beat + .thesis,
.thesis + .beat { margin-top: 56px; }

.beat--1 .lede { margin-top: 28px; color: var(--muted); }

/* static: v3 quotes in three columns */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
}

.quote { padding: 28px 28px 28px 0; border-right: 1px solid var(--hair); }
.quote:last-child { border-right: 0; padding-right: 0; }
.quote + .quote { padding-left: 28px; }

.quote p {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  font-variation-settings: "wdth" 96, "wght" 500;
}

.quote footer {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* static thesis diagram (reduced motion, no WebGL, no JS) */
.thesis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}

.thesis__col > h3 {
  font-size: 15px;
  font-weight: 600;
  font-variation-settings: "wdth" 100, "wght" 600;
  margin-bottom: 14px;
}

.blk {
  background: var(--graphite-2);
  border: 1px solid var(--hair);
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
}

.seam {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--signal-red);
}

.seam::before,
.seam::after {
  content: "";
  flex: 1;
  border-top: 1px dashed rgba(255, 74, 61, 0.55);
}

.blk--solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  padding: 0;
}

.blk--solid li { padding: 14px 18px; font-size: 15px; font-weight: 500; }
.blk--solid li + li { border-top: 1px solid rgba(14, 18, 21, 0.14); }

.verdict { margin-top: 14px; font-size: 15px; font-weight: 600; }
.verdict--accent { color: var(--amber); }

.beat__close { margin-top: 0; color: var(--muted); }

/* scene: desktop, pinned (class added by home.js) */
.seams.is-scene--desk { padding-block: 0; }

.is-scene--desk .seams__pin {
  height: 100vh;
  display: flex;
  align-items: center;
}

.is-scene--desk .seams__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  align-items: center;
  padding-top: var(--head-h);
}

.is-scene--desk .seams__text { display: grid; }
.is-scene--desk .beat { grid-area: 1 / 1; margin: 0; align-self: center; }
.is-scene--desk .thesis { display: none; }

.is-scene--desk .seams__stage {
  display: block;
  width: min(100%, calc(100vh - var(--head-h) - 190px));
  justify-self: center;

  cursor: grab;
}

.is-scene--desk .quotes { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 0; }
.is-scene--desk .quote { grid-area: 1 / 1; padding: 0; border: 0; }

.is-scene--desk .quote p,
.is-scene--mob .quote p {
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88, "wght" 600;
  text-wrap: balance;
}

.is-scene--desk .quote footer { margin-top: 24px; font-size: 15px; }

.is-scene--desk .beat__name,
.is-scene--mob .beat__name {
  display: block;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 72, "wght" 720;
}

.is-scene--desk .beat__verdict,
.is-scene--mob .beat__verdict {
  display: block;
  margin-top: 18px;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 700;
  font-variation-settings: "wdth" 90, "wght" 700;
  color: var(--amber);
}

.is-scene--desk .beat__close,
.is-scene--mob .beat__close { margin-top: 24px; }

/* scene: mobile, three stacked panels, no pin */
.is-scene--mob .thesis { display: none; }
.is-scene--mob .beat__stage { display: block; width: min(100%, 520px); margin: 32px auto 0; }
.is-scene--mob .beat + .beat,
.is-scene--mob .thesis + .beat { margin-top: 72px; }
.is-scene--mob .quotes { grid-template-columns: 1fr; border-top: 0; }
.is-scene--mob .quote { border: 0; padding: 0; }
.is-scene--mob .quote + .quote { padding: 32px 0 0; }
.is-scene--mob .quote p { font-size: 24px; }

/* ── the check ──────────────────────────────────────────────────────── */

.check__lede { margin-top: 28px; }

.check__nojs { margin-top: 32px; font-size: 18px; }

.check__app { margin-top: 56px; max-width: 920px; }

.check__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.check__progress { display: flex; gap: 6px; }

.check__progress li {
  width: 36px;
  height: 4px;
  background: var(--hair);
  transition: background-color 240ms var(--ease-out);
}

.check__progress li.is-done { background: var(--ink); }
.check__progress li.is-now:not(.is-done) { background: rgba(14, 18, 21, 0.4); }

.check__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 420px) {
  .check__progress li { width: 28px; }
}

.check__steps { display: grid; overflow: clip; }
.cq { grid-area: 1 / 1; }

.cq__q {
  display: block;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 88, "wght" 700;
  margin-bottom: 28px;
  max-width: 24ch;
}

.cq__opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 14px 20px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.opt > span::before {
  content: "";
  display: inline-block;
  vertical-align: -1px;
  width: 12px;
  height: 12px;
  margin-right: 14px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.opt:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.opt:has(input:checked) { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:checked) > span::before { background: var(--amber); box-shadow: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.owners { display: grid; gap: 8px; }

.owners__row {
  display: grid;
  grid-template-columns: 130px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.owners__row > legend {
  float: left;
  display: flex;
  align-items: center;
  min-height: 60px;
  font-size: 18px;
  font-weight: 700;
  font-variation-settings: "wdth" 92, "wght" 700;
}

.opt--seg { justify-content: flex-start; }

.check__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}

.check__back {
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.check__nav .btn { margin-left: auto; min-width: 180px; }

/* result: a graphite instrument panel on the alloy ground */
.check__result { margin-top: 56px; }

.readout {
  background: var(--graphite);
  color: var(--paper);
  --muted: rgba(244, 246, 247, 0.70);
  --hair: rgba(244, 246, 247, 0.14);
  --focus: var(--amber);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(24px, 4.5vw, 72px);
}

.readout__dial svg { display: block; width: 100%; max-width: 440px; height: auto; }

.readout__legend {
  margin-top: 24px;
  max-width: 440px;
  border-top: 1px solid var(--hair);
}

.readout__legend li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}

.readout__legend li > span:last-child { display: flex; align-items: center; gap: 10px; color: var(--muted); }

.readout__legend li > span:last-child::before {
  content: "";
  width: 12px;
  height: 12px;
}

.own--us > span:last-child::before { background: var(--amber); }
.own--contractor > span:last-child::before { background: var(--alloy-2); }
.own--none > span:last-child::before { box-shadow: inset 0 0 0 1.5px rgba(244, 246, 247, 0.5); background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(244,246,247,0.0) 2px 4px); }

.readout__seams {
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 70, "wght" 720;
  font-variant-numeric: tabular-nums;
}

.readout__seams:focus:not(:focus-visible) { outline: none; }

.readout__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.readout__risks { margin-top: 36px; }

.readout__risks ol {
  margin-top: 12px;
  counter-reset: risk;
  border-top: 1px solid var(--hair);
}

.readout__risks li {
  counter-increment: risk;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 16px;
  line-height: 1.5;
}

.readout__risks li::before {
  content: counter(risk);
  font-weight: 700;
  font-variation-settings: "wdth" 75, "wght" 700;
  color: var(--amber);
}

.readout__none { margin-top: 36px; color: var(--muted); }

.readout__start { margin-top: 32px; font-size: 18px; }
.readout__start .readout__label { display: block; margin-bottom: 4px; }
.readout__start strong { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; font-variation-settings: "wdth" 88, "wght" 700; color: var(--amber); }
.readout__meta { color: var(--muted); }

.readout__actions { margin-top: 32px; }
.readout__status { margin-top: 12px; min-height: 21px; color: var(--muted); }

/* ── rate card ──────────────────────────────────────────────────────── */

.rate { margin-top: 56px; border-top: 1px solid var(--rule); }

.rate__row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 260px 120px;
  column-gap: var(--gutter);
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.rate__row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .rate__row:hover::before { transform: scaleX(1); }
}

.rate__key {
  font-size: 20px;
  font-weight: 700;
  font-variation-settings: "wdth" 75, "wght" 700;
  color: var(--muted);
  padding-top: 6px;
}

.rate__name {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 92, "wght" 700;
}

.rate__what { margin-top: 8px; max-width: 58ch; color: var(--muted); font-size: 16px; }

.rate__flag,
.rate__tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--amber-deep);
  padding: 4px 10px;
}

.rate__tag { background: var(--amber); margin-left: 0; }
.rate__flag + .rate__tag { margin-left: 8px; }

.rate__price {
  font-size: clamp(32px, 3.3vw, 52px);
  line-height: 0.95;
  font-variation-settings: "wdth" 68, "wght" 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.rate__time { font-size: 16px; color: var(--muted); padding-top: 8px; }

.rate__foot { margin-top: 32px; max-width: 72ch; color: var(--muted); font-size: 16px; }

/* ── proof ──────────────────────────────────────────────────────────── */

.notes { margin-top: 64px; }

.note {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--gutter);
  padding: 48px 0;
  border-top: 1px solid var(--hair);
  align-items: start;
}

.note:last-child { border-bottom: 1px solid var(--hair); }

.note__num {
  font-size: clamp(64px, 10vw, 160px);
  line-height: 0.82;
  font-variation-settings: "wdth" 66, "wght" 720;
  letter-spacing: -0.03em;
  color: var(--amber);
  white-space: nowrap;
}

.note__title {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 92, "wght" 700;
}

.note__body { margin-top: 12px; max-width: 64ch; color: var(--muted); }

/* ── mechanical ─────────────────────────────────────────────────────── */

.mech__lede { margin-top: 28px; color: var(--muted); }

.mech {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gutter);
  align-items: start;
}

.mech__frame { transform-origin: 50% 50%; }

.mech video {
  width: 100%;
  background: #000;
  border: 1px solid var(--hair);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mech__body { margin-top: 14px; }

.stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  border-top: 1px solid var(--hair);
  padding-top: 28px;
}

.stat__v { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; display: block; }
.stat__k { margin-top: 8px; display: block; font-size: 14px; color: var(--muted); }

/* ── ORB teaser + sideways strip ────────────────────────────────────── */

.teaser__copy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  align-items: start;
}

.teaser__copy .h2 { font-size: clamp(56px, 8vw, 128px); line-height: 0.88; letter-spacing: -0.04em; font-variation-settings: "wdth" 72, "wght" 720; }

.teaser__text > p { max-width: 54ch; color: var(--muted); }
.teaser__text > p + p { margin-top: 14px; }
.teaser__text .teaser__cta { margin-top: 32px; }

.strip {
  margin-top: 72px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-inline: var(--pad);
}

.strip__track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.strip__item {
  width: clamp(280px, 44vw, 720px);
  scroll-snap-align: start;
}

.strip__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.strip.is-scrub { overflow: hidden; scroll-snap-type: none; }
.strip.is-scrub .strip__track { will-change: transform; }

/* ── also built ─────────────────────────────────────────────────────── */

.work { margin-top: 48px; border-top: 1px solid var(--rule); }

.work__row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 280px minmax(0, 1fr);
  column-gap: var(--gutter);
  padding: 22px 0 22px 18px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.work__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--amber-deep);
  transform: scaleY(0);
  transition: transform 180ms var(--ease-out);
}

.work__kind { font-size: 13px; color: var(--muted); font-weight: 500; }

.work__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 92, "wght" 700;
  transition: transform 180ms var(--ease-out);
}

.work__what { color: var(--muted); font-size: 16px; }

@media (hover: hover) and (pointer: fine) {
  .work__row:hover::before { transform: scaleY(1); }
  .work__row:hover .work__name { transform: translateX(8px); }
}

/* ── contact ────────────────────────────────────────────────────────── */

.contact__lede { margin-top: 28px; }

.form-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--gutter);
  align-items: start;
}

.field { display: block; }
.field + .field { margin-top: 20px; }

.field > span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: var(--panel);
  border: 1px solid rgba(14, 18, 21, 0.28);
  border-radius: 0;
  padding: 13px 14px;
}

.field input:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.field textarea { min-height: 170px; resize: vertical; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-actions { margin-top: 28px; }

.form-status { margin-top: 18px; font-size: 16px; font-weight: 500; }
.band--alloy .form-status[data-state="ok"] { color: var(--ink); }
.band--alloy .form-status[data-state="invalid"],
.band--alloy .form-status[data-state="error"] { color: #B32218; }

.aside-note {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 24px;
}

.aside-note p + p { margin-top: 12px; }

/* ── footer ─────────────────────────────────────────────────────────── */

.site-foot {
  position: relative;
  z-index: 1;
  background: var(--graphite);
  color: var(--paper);
  --muted: rgba(244, 246, 247, 0.70);
  --focus: var(--amber);
  border-top: 1px solid var(--graphite-2);
  padding-block: 56px;
}

.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: start;
}

.site-foot p { max-width: 52ch; font-size: 15px; color: var(--muted); }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }

/* ── responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .rate__row { grid-template-columns: 40px minmax(0, 1fr) 200px 100px; }
  .work__row { grid-template-columns: 80px 220px minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; --pad: 24px; }

  .quotes { grid-template-columns: 1fr; }
  .quote { border-right: 0; border-bottom: 1px solid var(--hair); padding: 24px 0; }
  .quote + .quote { padding-left: 0; }
  .quote:last-child { border-bottom: 0; }

  .mech { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .readout__dial svg { max-width: 360px; }
  .teaser__copy { grid-template-columns: 1fr; }
  .rate__row { grid-template-columns: 36px minmax(0, 1fr) 170px; row-gap: 8px; }
  .rate__time { grid-column: 3; }
}

@media (max-width: 767px) {
  :root { --pad: 20px; --head-h: 64px; }
  body { font-size: 16px; }

  /* the header scrolls away on phones; five nav items would otherwise pin two rows */
  .site-head { position: absolute; }
  .site-head__in { padding-block: 12px; }
  .nav { gap: 6px 16px; }
  .nav a { font-size: 14px; }

  .hero { display: block; min-height: 100svh; padding-block: 104px 88px; }
  .hero__in { display: flex; flex-direction: column-reverse; }
  .hero__copy { width: 100%; margin-top: 8px; }
  .hero__orb {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100vw;
    max-width: 560px;
    align-self: center;
  }
  .orb-caption { margin: 0 auto; text-align: center; max-width: 34ch; }
  .readout__dial svg { max-width: 260px; margin-inline: auto; }
  .scroll-cue { display: none; }

  .thesis { grid-template-columns: 1fr; row-gap: 36px; }

  .cq__opts { grid-template-columns: 1fr; }
  .owners__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owners__row > legend { float: none; min-height: 0; margin-bottom: 4px; grid-column: 1 / -1; }
  .opt--seg { font-size: 15px; padding: 12px; min-height: 56px; }
  .opt--seg > span::before { display: none; }
  .opt { min-height: 56px; }
  .check__nav .btn { min-width: 0; }

  .rate__row { grid-template-columns: 28px minmax(0, 1fr); row-gap: 10px; padding: 28px 0; }
  .rate__price, .rate__time { grid-column: 2; padding-top: 0; }

  .note { grid-template-columns: 1fr; row-gap: 16px; padding: 36px 0; }
  .work__row { grid-template-columns: 1fr; row-gap: 4px; }
  .stats { grid-template-columns: 1fr; row-gap: 24px; }
  .strip__item { width: 82vw; }
}

@media (max-width: 400px) {
  :root { --pad: 16px; }
}

/* ── v5: products hub ───────────────────────────────────────────────── */

.hub__tiles {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.ptile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: var(--graphite-2);
  border: 1px solid var(--hair);
}

/* amber 2px top rule on hover (pointer devices only, below) */
.ptile::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}

.ptile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  container-type: inline-size;
}

.ptile__media picture,
.ptile__media img { display: block; width: 100%; height: 100%; }

.ptile__media img {
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.ptile--orb .ptile__media img { object-position: 76% 50%; }
.ptile--care .ptile__media img { object-position: 0 0; }

.ptile__body { padding: 24px 24px 28px; }

.ptile__name {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 84, "wght" 700;
}

.ptile__line { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }

.ptile__small { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--amber); }

@media (hover: hover) and (pointer: fine) {
  .ptile:hover::before { transform: scaleX(1); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ptile:hover .ptile__media img,
  .ptile:hover .invmock { transform: scale(1.03); }
}

/* the invoicing app: an HTML/CSS invoice (fictional data) until a real screenshot exists */
.ptile__media--mock {
  display: grid;
  place-items: center;
  background: #0B0E11;
}

.invmock {
  width: 76%;
  background: var(--paper);
  color: var(--ink);
  padding: 7% 8% 8%;
  font-size: 12px;
  font-size: 3.1cqi;
  line-height: 1.35;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 600ms var(--ease-out);
}

.invmock__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid var(--ink);
}

.invmock__kind { font-size: 1.3em; font-weight: 800; font-variation-settings: "wdth" 80, "wght" 800; }
.invmock__no { color: rgba(14, 18, 21, 0.62); font-variant-numeric: tabular-nums; }
.invmock__biz { margin-top: 0.8em; font-weight: 700; }
.invmock__biz span { font-weight: 400; color: rgba(14, 18, 21, 0.62); }
.invmock__lines { margin-top: 0.9em; }

.invmock__lines p,
.invmock__tot p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.8em;
  padding: 0.35em 0;
  border-bottom: 1px solid rgba(14, 18, 21, 0.14);
  font-variant-numeric: tabular-nums;
}

.invmock__lines p > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invmock__tot { margin: 0.3em 0 0 38%; }
.invmock__tot p { grid-template-columns: minmax(0, 1fr) auto; }
.invmock__due { font-weight: 800; border-bottom: 0 !important; }
.invmock__lines p.invmock__hd { font-size: 0.82em; opacity: 0.7; padding-top: 0; }
.ptile__note { margin-top: 6px; font-size: 13px; color: var(--muted, rgba(244, 246, 247, 0.7)); }

/* ── v5: Development opens the seams scene ──────────────────────────── */

.hub + .seams { border-top: 1px solid var(--graphite-2); }

.seams__intro { padding-bottom: 72px; }
.dev__lede { margin-top: 28px; color: var(--muted); }

.seams.is-scene--desk .seams__intro { padding-top: var(--rhythm); }

@media (max-width: 960px) {
  .hub__tiles { grid-template-columns: 1fr; max-width: 620px; }
  .ptile__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  .hub__tiles { margin-top: 40px; gap: 20px; }
  .ptile__body { padding: 20px 20px 24px; }
  .seams__intro { padding-bottom: 48px; }
}

/* ── reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scroll-cue i { transform: none; }
}
