/* ==========================================================================
   RAU TECH SOLUTIONS V2 · «DRAFTLINE» — the living blueprint
   Base: blueprint navy. Cyan hairlines = drawn. Amber = forged/CTA.
   Green = verified. Red = the thing we're not.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #0a0f16;
  --bg-deep: #070b11;
  --panel: #111826;
  --panel-2: #0e1520;
  --line: rgba(79, 209, 224, 0.16);
  --line-soft: rgba(79, 209, 224, 0.09);
  --grid-minor: rgba(79, 209, 224, 0.07);
  --grid-major: rgba(79, 209, 224, 0.13);
  --cyan: #4fd1e0;
  --cyan-dim: rgba(79, 209, 224, 0.55);
  --cyan-soft: rgba(79, 209, 224, 0.12);
  --amber: #ff9a3c;
  --amber-hot: #ffb84d;
  --amber-soft: rgba(255, 154, 60, 0.14);
  --green: #3fd07e;
  --red: #ff4d4d;
  --text: #f2f5f8;
  --t2: #aeb9c6;
  --t3: #8a97a8;
  --anno: #cfe8ee;
  --sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --pad: 24px;
  --maxw: 1180px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blueprint field: grid + vignette. The shader canvas paints over this when live. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 120% 90% at 50% 12%, transparent 42%, rgba(7, 11, 17, 0.55) 100%);
  pointer-events: none;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: none;
}
#bg.live { display: block; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.mono { font-family: var(--mono); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--amber);
  color: #131313;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

::selection { background: rgba(79, 209, 224, 0.28); }

:focus-visible {
  outline: 1px dashed var(--cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ------------------------------------------------- fixed chrome: regmarks */
.regmarks { position: fixed; inset: 14px; z-index: 90; pointer-events: none; }
.rm { position: absolute; width: 22px; height: 22px; opacity: 0.55; }
.rm::before, .rm::after { content: ''; position: absolute; background: var(--cyan); }
.rm::before { width: 100%; height: 1px; }
.rm::after { width: 1px; height: 100%; }
.rm-tl { top: 0; left: 0; }
.rm-tr { top: 0; right: 0; transform: rotate(90deg); }
.rm-br { bottom: 0; right: 0; transform: rotate(180deg); }
.rm-bl { bottom: 0; left: 0; transform: rotate(270deg); }
.js .rm { animation: rm-in 0.5s var(--ease) both 0.15s; }
@keyframes rm-in {
  from { opacity: 0; scale: 1.6; }
  to { opacity: 0.55; scale: 1; }
}

/* ------------------------------------------------------ reticle cursor */
.reticle {
  position: fixed;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  z-index: 300;
  pointer-events: none;
  display: none;
  translate: -50% -50%;
}
.rt-c { position: absolute; width: 8px; height: 8px; transition: inset 0.22s var(--ease); }
.rt-c::before, .rt-c::after { content: ''; position: absolute; background: var(--cyan); }
.rt-c::before { width: 100%; height: 1px; }
.rt-c::after { width: 1px; height: 100%; }
.rt-1 { top: 0; left: 0; }
.rt-2 { top: 0; right: 0; rotate: 90deg; }
.rt-3 { bottom: 0; right: 0; rotate: 180deg; }
.rt-4 { bottom: 0; left: 0; rotate: 270deg; }
.rt-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  translate: -50% -50%;
  border-radius: 99px;
  background: var(--cyan);
  transition: background-color 0.2s ease, scale 0.2s ease;
}
.reticle.hover .rt-1 { top: -6px; left: -6px; }
.reticle.hover .rt-2 { top: -6px; right: -6px; }
.reticle.hover .rt-3 { bottom: -6px; right: -6px; }
.reticle.hover .rt-4 { bottom: -6px; left: -6px; }
.reticle.hover .rt-dot { background: var(--amber); scale: 1.7; }
.reticle.text .rt-c { opacity: 0; }
.reticle.text .rt-dot { scale: 0.8; }

html.js.cursor-on { cursor: none; }
html.js.cursor-on a, html.js.cursor-on button, html.js.cursor-on label { cursor: none; }
html.js.cursor-on .reticle { display: block; }
html.js.cursor-on input, html.js.cursor-on textarea { cursor: text; }

/* ------------------------------------------------------ pinned titleblock */
.titleblock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  pointer-events: none;
}
.tb-sheet { font-size: 16px; font-weight: 700; color: var(--cyan); letter-spacing: 0.06em; }
.tb-meta { font-size: 9px; letter-spacing: 0.12em; color: var(--t3); }
@media (max-width: 1099px) { .titleblock { display: none; } }

/* --------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--pad);
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-mark { align-self: center; fill: none; stroke: var(--cyan); stroke-width: 1.3; }
.logo-mark rect { fill: var(--amber); stroke: none; }
.logo-name { font-size: 16px; }
.logo-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--t3); }

.links { display: flex; gap: 30px; font-size: 13.5px; }
.links a { color: var(--t2); text-decoration: none; position: relative; padding: 4px 0; transition: color 0.2s ease; }
.links a:hover { color: var(--text); }
.links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.3s var(--ease);
}
.links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.wiretoggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.wiretoggle:hover { border-color: var(--cyan-dim); }
.wt-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--t3); transition: color 0.2s ease; }
.wiretoggle[aria-pressed='false'] .wt-label:last-of-type,
.wiretoggle[aria-pressed='true'] .wt-label:first-of-type { color: var(--cyan); }
.wt-track {
  position: relative;
  width: 26px;
  height: 12px;
  border: 1px solid var(--cyan-dim);
  border-radius: 99px;
}
.wt-knob {
  position: absolute;
  top: 1px;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--cyan);
  transition: left 0.25s var(--ease), background-color 0.2s ease;
}
.wiretoggle[aria-pressed='true'] .wt-knob { left: 1px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-amber {
  background: linear-gradient(120deg, var(--amber), var(--amber-hot));
  color: #12161d;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 154, 60, 0.35); }
.btn-ghost { border-color: var(--line); color: var(--t2); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan-dim); color: var(--text); }
.nav-cta { font-size: 13px; padding: 9px 18px; }

.menu-toggle { display: none; }
.menu { display: none; }

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 0;
  pointer-events: none;
}

/* --------------------------------------------------------- shared type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.dim-tick { width: 28px; height: 1px; background: var(--cyan-dim); position: relative; }
.dim-tick::before, .dim-tick::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--cyan-dim);
}
.dim-tick::before { left: 0; }
.dim-tick::after { right: 0; }

.section-title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 640;
  font-variation-settings: 'wght' 640;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 18px;
  max-width: 780px;
}
.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--t2);
  max-width: 620px;
  margin-top: 20px;
}
.lede strong { color: var(--anno); }

/* ----------------------------------------------- draft-text (wire → fill) */
.draft-text { position: relative; }
.draft-text .dt-wire {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan-dim);
  pointer-events: none;
  user-select: none;
}
/* JS on: fill starts clipped, wire pens on first, heat edge sweeps */
.js .draft-text .dt-wire {
  opacity: 0;
  -webkit-mask-image: linear-gradient(100deg, #000 46%, transparent 54%);
  mask-image: linear-gradient(100deg, #000 46%, transparent 54%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}
.js .draft-text .dt-fill {
  display: inline-block;
  clip-path: inset(-5% 101% -5% -1%);
}
.js .draft-text.in .dt-wire {
  opacity: 1;
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
  transition: -webkit-mask-position 0.7s var(--ease-io), mask-position 0.7s var(--ease-io), opacity 0.15s ease;
}
.js .draft-text.in .dt-fill {
  clip-path: inset(-5% -1% -5% -1%);
  transition: clip-path 0.9s var(--ease-io) 0.45s;
}
/* amber heat edge riding the fill reveal */
.draft-text::after {
  content: '';
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--amber-hot) 30%, var(--amber-hot) 70%, transparent);
  box-shadow: 0 0 18px rgba(255, 154, 60, 0.7);
  opacity: 0;
  pointer-events: none;
}
.js .draft-text.in::after { animation: heat-sweep 0.9s var(--ease-io) 0.45s both; }
@keyframes heat-sweep {
  0% { left: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ------------------------------------------------------------- reveal sys */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }
/* draft-text titles handle their own reveal */
.js .draft-text[data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; overflow: clip; }
.hero-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 108px var(--pad) 88px;
}
.js .hload { animation: rise 0.8s var(--ease) both; animation-delay: var(--hd, 0ms); }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(46px, 7.4vw, 100px);
  font-weight: 640;
  font-variation-settings: 'wght' 640;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 30px;
  max-width: 1000px;
}
.hero .sub {
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--t2);
  max-width: 640px;
  margin-top: 28px;
}
.hero .sub strong { color: var(--anno); font-weight: 600; }
.hero .cta { display: flex; align-items: center; gap: 14px; margin-top: 40px; }

.dimline {
  display: flex;
  align-items: center;
  margin-top: 54px;
  color: var(--anno);
}
.dl-text {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 38, 0.6);
  white-space: nowrap;
}
.dl-arrow { width: 54px; height: 1px; background: var(--cyan-dim); position: relative; }
.dl-arrow::before, .dl-arrow::after { content: ''; position: absolute; background: var(--cyan-dim); }
.dl-arrow::before { top: -3.5px; width: 1px; height: 8px; }
.dl-l::before { left: 0; }
.dl-r::before { right: 0; }
.dl-arrow::after { top: -2px; width: 6px; height: 1px; }
.dl-l::after { left: 0; transform: rotate(38deg); transform-origin: 0 0; }
.dl-r::after { right: 0; transform: rotate(-38deg); transform-origin: 100% 0; }

.chips { display: flex; gap: 26px; margin-top: 40px; font-size: 13px; color: var(--t3); list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: transparent;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  flex: none;
}

/* --------------------------------------------------------------- ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 13px 0;
  white-space: nowrap;
  position: relative;
  background:
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 24px) top / 100% 5px no-repeat,
    transparent;
}
.track { display: inline-flex; animation: marquee 36s linear infinite; will-change: transform; }
@keyframes marquee { to { transform: translateX(-50%); } }
.seq {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--t3);
}
.seq i { width: 5px; height: 5px; border: 1px solid var(--cyan-dim); transform: rotate(45deg); }

/* --------------------------------------------------------------- stats */
.stats { border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.stat { padding: 46px 56px; position: relative; }
.stat:first-child { padding-left: 0; }
.stat:not(:last-child) { border-right: 1px solid var(--line); }
.stat-n {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-c { font-size: 13px; color: var(--t3); margin-top: 6px; }

/* ------------------------------------------------------------- sections */
.services, .proof, .process, .signoff { padding-block: 110px; border-bottom: 1px solid var(--line); position: relative; }

/* --------------------------------------------------------------- parts */
.parts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 60px;
}
.part {
  position: relative;
  padding: 32px;
  border: 1px dashed var(--cyan-dim);
  background: transparent;
  transition: background-color 0.7s ease, border-color 0.7s ease, transform 0.3s var(--ease),
    box-shadow 0.3s ease;
  overflow: clip;
}
.js .part.in, html:not(.js) .part {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
/* one-shot heat sweep across the card as it "builds" */
.part::before {
  content: '';
  position: absolute;
  inset: -10% 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--amber-hot), transparent);
  box-shadow: 0 0 22px rgba(255, 154, 60, 0.65);
  opacity: 0;
  pointer-events: none;
}
.js .part.in::before { animation: heat-sweep 0.85s var(--ease-io) 0.1s both; }
.part:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45); border-color: var(--cyan-dim); }
/* perimeter light trace on hover */
.part::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--cyan);
  opacity: 0;
  clip-path: inset(0 100% 98% 0);
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.part:hover::after { opacity: 0.9; animation: trace 1.1s var(--ease-io) both; }
@keyframes trace {
  0% { clip-path: inset(0 100% calc(100% - 1px) 0); }
  25% { clip-path: inset(0 0 calc(100% - 1px) 0); }
  50% { clip-path: inset(0 0 0 calc(100% - 1px)); }
  75% { clip-path: inset(calc(100% - 1px) 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

.part-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.part-no { font-size: 10px; letter-spacing: 0.16em; color: var(--cyan); }
.part-badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--amber);
  border: 1px solid rgba(255, 154, 60, 0.4);
  padding: 4px 9px;
}
.part-icon {
  width: 46px;
  height: 46px;
  margin-top: 24px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .part-icon :is(path, rect, circle, line) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .part.in .part-icon :is(path, rect, circle, line) {
  animation: icon-draw 0.8s var(--ease-io) forwards;
}
.js .part.in .part-icon :nth-child(1) { animation-delay: 0.3s; }
.js .part.in .part-icon :nth-child(2) { animation-delay: 0.45s; }
.js .part.in .part-icon :nth-child(3) { animation-delay: 0.6s; }
.js .part.in .part-icon :nth-child(4) { animation-delay: 0.7s; }
.js .part.in .part-icon :nth-child(5) { animation-delay: 0.8s; }
.js .part.in .part-icon :nth-child(6) { animation-delay: 0.9s; }
@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}
.part h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-top: 18px; }
.part-desc { font-size: 15px; line-height: 1.6; color: var(--t2); margin-top: 10px; }
.part-bullets { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--t3); }
.part-bullets li { display: flex; gap: 9px; align-items: baseline; }
.part-bullets li::before { content: '—'; color: var(--cyan-dim); flex: none; }

/* --------------------------------------------------------------- proof */
.cluster { margin-top: 56px; display: grid; gap: 22px; }

.gauge-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 40px 36px 30px;
}
.gauge-row { display: flex; align-items: center; gap: 40px; position: relative; flex-wrap: wrap; }
.gauge { position: relative; width: 92px; text-align: center; }
.gauge svg { width: 92px; height: 92px; transform: rotate(-90deg); overflow: visible; }
.gg-track { fill: none; stroke: rgba(79, 209, 224, 0.14); stroke-width: 2; }
.gg-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(63, 208, 126, 0.55));
}
.in .gg-fill, html:not(.js) .gg-fill { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease-io) 0.2s; }
.gg-num {
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.gg-label { display: block; margin-top: 8px; font-size: 9.5px; letter-spacing: 0.16em; color: var(--t3); }
.gauge-caption { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 10.5px; letter-spacing: 0.08em; color: var(--t3); }
.gauge-caption a { color: var(--cyan); text-decoration: none; }
.gauge-caption a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* stamps */
.stamp {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  transform: rotate(-7deg);
  margin-left: auto;
  opacity: 0.9;
}
.stamp-amber { border-color: var(--amber); color: var(--amber); }
.stamp-inline { font-size: 10px; padding: 4px 9px; letter-spacing: 0.12em; margin-left: 12px; vertical-align: middle; transform: rotate(-4deg); }
.js [data-stamp] { opacity: 0; transform: rotate(-7deg) scale(2.4); }
.js .in [data-stamp], .js [data-stamp].in {
  opacity: 0.9;
  transform: rotate(-7deg) scale(1);
  transition: opacity 0.3s ease 1.3s, transform 0.4s cubic-bezier(0.2, 1.4, 0.3, 1) 1.3s;
}
.js .in .stamp-inline, .js .stamp-inline.in { transform: rotate(-4deg) scale(1); }

/* takeoff table */
.takeoff {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 30px 36px;
}
.takeoff-title { font-size: 10.5px; letter-spacing: 0.16em; color: var(--cyan); }
.takeoff-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 12px; }
.takeoff-table th, .takeoff-table td { text-align: left; padding: 12px 8px; border-top: 1px solid var(--line-soft); font-weight: 400; }
.takeoff-table th { color: var(--t3); letter-spacing: 0.1em; font-size: 10.5px; width: 190px; }
.takeoff-table td { color: var(--anno); font-variant-numeric: tabular-nums; }
.tt-pass { color: var(--green) !important; text-align: right !important; font-size: 10.5px; letter-spacing: 0.1em; white-space: nowrap; width: 90px; }
.takeoff-ts { margin-top: 16px; font-size: 9.5px; letter-spacing: 0.12em; color: var(--t3); }

/* comparison bars */
.compare {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 30px 36px;
}
.cmp-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 16px; }
.cmp-row + .cmp-row { margin-top: 16px; }
.cmp-label { font-size: 10px; letter-spacing: 0.14em; color: var(--t3); }
.cmp-val { font-size: 12px; color: var(--anno); text-align: right; font-variant-numeric: tabular-nums; }
.cmp-bar { height: 10px; border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.cmp-fill { position: absolute; inset: 1px auto 1px 1px; width: var(--w); background: var(--red); opacity: 0.75; transform: scaleX(0); transform-origin: 0 0; }
.cmp-green .cmp-fill { background: var(--green); opacity: 0.95; box-shadow: 0 0 10px rgba(63, 208, 126, 0.5); }
.in .cmp-fill, html:not(.js) .cmp-fill { transform: scaleX(1); transition: transform 1.2s var(--ease-io) 0.3s; }
.cmp-note { margin-top: 20px; font-size: 10.5px; letter-spacing: 0.1em; color: var(--green); }

/* --------------------------------------------------------------- process */
.datum { position: relative; margin-top: 64px; padding-left: 56px; }
.datum-list { list-style: none; margin: 0; padding: 0; }
.datum-line {
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(79, 209, 224, 0.3);
}
.datum-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--amber));
  transform: scaleY(var(--p, 0));
  transform-origin: 0 0;
  box-shadow: 0 0 12px rgba(79, 209, 224, 0.4);
}
.datum-reticle {
  position: absolute;
  left: 18.5px;
  top: calc(6px + (100% - 12px) * var(--p, 0));
  translate: -50% -50%;
  width: 14px;
  height: 14px;
  border: 1px solid var(--amber);
  rotate: 45deg;
  background: var(--bg);
  box-shadow: 0 0 14px rgba(255, 154, 60, 0.55);
}
.station {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 150px;
  gap: 28px;
  padding-block: 40px;
  border-top: 1px solid var(--line-soft);
}
.station:last-child { border-bottom: 1px solid var(--line-soft); }
/* hidden (not dimmed) until revealed: dimmed text would fail contrast for
   anyone parked mid-scroll, and axe skips opacity-0 elements */
.js .station { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.8s var(--ease); }
.js .station.in { opacity: 1; transform: none; }
.station::before {
  content: '';
  position: absolute;
  left: -42.5px;
  top: 52px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--cyan-dim);
  rotate: 45deg;
  background: var(--bg);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.station.in::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(79, 209, 224, 0.7); }
.stn-no { font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); padding-top: 6px; }
.stn-body h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.01em; }
.stn-body p { font-size: 15px; line-height: 1.6; color: var(--t2); margin-top: 10px; max-width: 600px; }
.stn-time { font-size: 11px; letter-spacing: 0.12em; color: var(--t3); text-align: right; padding-top: 8px; }

/* --------------------------------------------------------------- signoff */
.signoff { text-align: center; border-bottom: none; }
.about-line { font-size: 17px; line-height: 1.7; color: var(--t2); max-width: 640px; margin: 26px auto 0; }
.about-line strong { color: var(--text); }
.cta-title {
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 640;
  font-variation-settings: 'wght' 640;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 70px auto 0;
  max-width: 800px;
  scroll-margin-top: 110px;
}

.workorder {
  max-width: 680px;
  margin: 48px auto 0;
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  padding: 34px;
  position: relative;
}
.wo-head {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.wo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.workorder label { display: flex; flex-direction: column; gap: 9px; }
.wo-label { font-size: 9.5px; letter-spacing: 0.14em; color: var(--t3); }
.wo-label em { font-style: normal; color: var(--t3); }
.wo-wide { grid-column: 1 / -1; }
.workorder input, .workorder textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.65);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.workorder input:focus-visible, .workorder textarea:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(79, 209, 224, 0.25);
}
.workorder textarea { resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.wo-submit { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.wo-submit .btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.form-status { font-size: 13px; color: var(--amber); text-align: center; }
.form-status:empty { display: none; }
.form-status a { color: var(--cyan); }
.footnote { font-size: 12.5px; color: var(--t3); text-align: center; }
.email-link { color: var(--anno); text-underline-offset: 3px; }
.form-thanks { text-align: center; padding-block: 30px; }
.form-thanks .stamp { transform: rotate(-4deg); margin: 0 auto 18px; display: inline-block; }
.form-thanks p { font-size: 16px; color: var(--t2); }

/* --------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding-block: 44px 90px; }
.tblock {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr 0.7fr 0.7fr;
  border: 1px solid var(--line);
  background: rgba(17, 24, 38, 0.5);
}
.tb-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.tb-cell:nth-child(5) { border-right: none; }
.tb-sheets { grid-column: 1 / 3; border-bottom: none; }
.tb-wide { grid-column: 3 / 6; border-right: none; border-bottom: none; }
.tb-k { font-size: 8.5px; letter-spacing: 0.16em; color: var(--t3); }
.tb-v { font-size: 11px; letter-spacing: 0.06em; color: var(--anno); overflow-wrap: break-word; }
.tb-links { display: flex; flex-wrap: wrap; gap: 14px; }
.tb-links a { color: var(--anno); text-decoration: none; }
.tb-links a:hover { color: var(--cyan); }
.colophon { margin-top: 22px; font-size: 12px; color: var(--t3); }
.eof { color: var(--cyan); font-size: 10px; letter-spacing: 0.12em; margin-left: 8px; }

/* ============================================================ WIRE MODE */
html.wire body::before { opacity: 1.6; }
html.wire .part, html.wire .gauge-panel, html.wire .takeoff, html.wire .compare,
html.wire .workorder, html.wire .tblock, html.wire .dl-text {
  background: transparent !important;
  border: 1px dashed var(--cyan-dim) !important;
  box-shadow: none !important;
}
/* opacity (not visibility) keeps the heading's accessible name in the a11y tree */
html.wire .draft-text .dt-fill { opacity: 0; }
html.wire .draft-text .dt-wire {
  opacity: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
html.wire .hero h1, html.wire .section-title, html.wire .cta-title { color: transparent; }
html.wire body { color: var(--anno); }
html.wire .part-desc, html.wire .stn-body p, html.wire .lede, html.wire .sub,
html.wire .about-line, html.wire .stat-c { color: #9fc6d2; /* cyan ghost tint, ≥4.5:1 on navy */ }
html.wire .btn-amber {
  background: transparent;
  border: 1px dashed var(--amber);
  color: var(--amber);
  clip-path: none;
}
html.wire .gg-fill { stroke: var(--cyan-dim); filter: none; }
html.wire .cmp-fill { background: var(--cyan-dim) !important; box-shadow: none !important; }
html.wire .stamp { border-style: dashed; }
html.wire .stat-n, html.wire .gg-num, html.wire .part h3, html.wire .stn-body h3 { color: var(--anno); }
/* full-page sweep when toggling */
.wipe {
  position: fixed;
  inset: -10% 0;
  z-index: 250;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--amber-hot), transparent);
  box-shadow: 0 0 30px rgba(255, 154, 60, 0.8);
  pointer-events: none;
  opacity: 0;
}
.wipe.run { animation: wipe-down 0.55s var(--ease-io) both; }
@keyframes wipe-down {
  0% { top: -2%; opacity: 1; }
  100% { top: 102%; opacity: 1; }
}

/* ======================================================== RESPONSIVE */
@media (max-width: 1023px) {
  .parts-grid { gap: 16px; }
  .stat { padding: 36px 32px; }
}

@media (max-width: 860px) {
  /* full-width text sits directly on the grid here — quiet it down for legibility
     (mirrors the shader's u_dim factor) */
  :root {
    --grid-minor: rgba(79, 209, 224, 0.032);
    --grid-major: rgba(79, 209, 224, 0.06);
  }
  body::after {
    background: radial-gradient(ellipse 130% 80% at 50% 10%, transparent 30%, rgba(7, 11, 17, 0.72) 100%);
  }

  .links, .nav .wiretoggle { display: none; }
  .nav-cta { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s ease; }
  .menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 6px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s ease, visibility 0.3s;
  }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu > a:not(.menu-cta) {
    padding: 15px 2px;
    font-size: 15px;
    color: var(--t2);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .menu-cta { margin-top: 18px; }

  .regmarks { display: none; }

  .hero-in { align-items: stretch; text-align: left; padding: 64px 24px 52px; }
  .hero h1 { margin-top: 24px; }
  .hero .sub { font-size: 16px; margin-top: 18px; }
  .hero .cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 30px; }
  .eyebrow .dim-tick:last-child { display: none; }
  .dimline { margin-top: 38px; }
  .dl-arrow { flex: 1; min-width: 14px; }
  .dl-text {
    font-size: 9.5px;
    padding: 9px 12px;
    letter-spacing: 0.06em;
    white-space: normal;
    text-align: center;
    line-height: 1.7;
    min-width: 0;
  }
  .chips { flex-direction: column; gap: 10px; margin-top: 30px; }

  .stat-grid { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0; }
  .stat:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-n { font-size: 32px; }
  .stat-c { margin-top: 0; text-align: right; }

  .services, .proof, .process, .signoff { padding-block: 72px; }
  .parts-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .part { padding: 24px; }
  .part h3 { font-size: 18.5px; }
  .part-desc { font-size: 14px; }

  .cluster { margin-top: 40px; gap: 16px; }
  .gauge-panel { padding: 28px 22px 22px; }
  .gauge-row { gap: 0; justify-content: space-between; }
  .gauge { width: 23%; }
  .gauge svg { width: 100%; height: auto; }
  .gg-num { top: 34%; font-size: 17px; }
  .gg-label { font-size: 8px; letter-spacing: 0.1em; }
  .gauge-row .stamp { position: absolute; right: -6px; top: -46px; font-size: 10px; padding: 5px 10px; }
  .gauge-caption { font-size: 9px; }
  .takeoff, .compare { padding: 22px 18px; }
  .takeoff-table { font-size: 10.5px; }
  .takeoff-table th { width: 105px; font-size: 9px; }
  .tt-pass { width: 62px; font-size: 9px; }
  .cmp-row { grid-template-columns: 92px 1fr 70px; gap: 10px; }
  .cmp-note { font-size: 9.5px; }

  .datum { padding-left: 40px; margin-top: 44px; }
  .datum-line { left: 10px; }
  .datum-reticle { left: 10.5px; width: 12px; height: 12px; }
  .station { grid-template-columns: 1fr; gap: 8px; padding-block: 28px; }
  .station::before { left: -34.5px; top: 34px; }
  .stn-no { padding-top: 0; }
  .stn-body h3 { font-size: 19px; }
  .stn-body p { font-size: 14px; }
  .stn-time { text-align: left; padding-top: 2px; }
  .stamp-inline { display: inline-block; margin: 8px 0 0; }

  .about-line { font-size: 15px; }
  .cta-title { margin-top: 52px; scroll-margin-top: 90px; }
  .workorder { padding: 22px 18px; margin-top: 36px; }
  .wo-grid { grid-template-columns: 1fr; gap: 18px; }
  .workorder input, .workorder textarea { font-size: 16px; }
  .wo-submit { align-items: stretch; margin-top: 24px; }

  .footer { padding-block: 36px 56px; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-right: none; }
  /* cell 1 spans both columns, so the LEFT cell of each 2-up row is even-numbered */
  .tb-cell:nth-child(even) { border-right: 1px solid var(--line-soft); }
  .tb-project { grid-column: 1 / -1; border-right: none !important; }
  .tb-sheets { grid-column: 1 / -1; border-right: none !important; border-bottom: 1px solid var(--line-soft); }
  .tb-wide { grid-column: 1 / -1; border-right: none !important; border-bottom: none; }
  .colophon { font-size: 11px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 42px; }
  .gauge-row .stamp { display: none; }
}

/* ==================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hload { animation: none; }
  .js .rm { animation: none; }
  .js .draft-text .dt-wire { opacity: 0 !important; }
  .js .draft-text .dt-fill { clip-path: none !important; transition: none; }
  .js .draft-text.in::after, .js .part.in::before { animation: none; }
  .track { animation: none; }
  .js .part { border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
  .js .part-icon :is(path, rect, circle, line) { stroke-dashoffset: 0; animation: none; }
  .part:hover::after { animation: none; clip-path: inset(0); }
  .gg-fill { stroke-dashoffset: 0; transition: none !important; }
  .cmp-fill { transform: scaleX(1); transition: none !important; }
  .js .station { opacity: 1; transform: none; transition: none; }
  .js [data-stamp] { opacity: 0.9; transform: rotate(-7deg) scale(1); transition: none; }
  .js .stamp-inline { transform: rotate(-4deg) scale(1); }
  .wipe.run { animation: none; opacity: 0; }
  .datum-fill { transform: scaleY(1); }
  .datum-reticle { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* no-JS: everything visible and built (handled by :not(.js) throughout) */
html:not(.js) .reticle, html:not(.js) #bg { display: none; }
