/* ============================================================================
   AxionOrbital — Transformer Supply
   Cinematic design system: petrol-graphite stage, porcelain document panels,
   Bebas Neue display, JetBrains Mono technical labels, DM Sans body.

   Palette is drawn from the materials of the product itself — copper winding,
   porcelain insulator, and the cyan of an arc — rather than a generic
   red-on-black. Every text pair below is verified at 4.5:1 or better.

   Colour is delivered through contextual tokens (--bg/--text/--line/...), so
   a section only has to redeclare the tokens and every component inside it
   adapts. That is what lets `section.alt` flip to a cream document panel
   without a single component override.
   ========================================================================== */

/* ------------------------------------------------------------- tokens ---- */

:root {
  /* brand constants — copper metal, porcelain insulator, arc light */
  --petrol:      #070c10;
  --petrol-2:    #0b1218;
  --petrol-3:    #101a21;
  --petrol-4:    #16232c;
  --porcelain:   #e9ecec;
  --porcelain-2: #dde2e2;
  --porcelain-3: #ccd4d4;
  --ink:         #0d2830;
  --copper:      #a85f23;   /* white on this = 4.85:1 */
  --copper-deep: #9d5820;   /* on porcelain = 4.59:1 */
  --copper-2:    #c4762f;
  --copper-3:    #e0913f;   /* on petrol = 7.76:1 */
  --arc:         #47cfe0;   /* on petrol = 10.5:1 */
  --arc-2:       #8fe8f2;
  --brass:       #d9a53c;
  --brass-deep:  #8a6416;
  --ok:          #3fb98f;
  --ok-deep:     #1f6b52;

  /* contextual — petrol stage is the default */
  --bg:        var(--petrol);
  --bg-2:      var(--petrol-2);
  --surface:   rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .056);
  --line:      rgba(143, 232, 242, .13);
  --line-2:    rgba(180, 226, 235, .26);
  --display:   #ffffff;
  --text:      #eef2f3;
  --text-2:    #b9c2c6;
  --text-3:    #7d8a90;
  --accent:    var(--copper-3);
  --amber:     var(--brass);
  --accent-ink:#ffffff;

  --font-display: 'Bebas Neue', 'Haettenschweiler', 'Arial Narrow', Impact, sans-serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --wrap-narrow: 900px;
  --gut: 2.5rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  color-scheme: dark;
}

/* porcelain document panel */
section.alt, .cream {
  --bg:        var(--porcelain);
  --bg-2:      var(--porcelain-2);
  --surface:   rgba(13, 40, 48, .038);
  --surface-2: rgba(13, 40, 48, .075);
  --line:      rgba(13, 40, 48, .16);
  --line-2:    rgba(13, 40, 48, .32);
  --display:   var(--ink);
  --text:      var(--ink);
  --text-2:    #33484e;   /* 8.1:1 on porcelain */
  --text-3:    #56686d;   /* 4.9:1 on porcelain */
  --accent:    var(--copper-deep);
  --amber:     var(--brass-deep);
  --ok:        var(--ok-deep);
}

/* deepest stage */
section.band {
  --bg:        #04080b;
  --bg-2:      var(--petrol-2);
  --surface:   rgba(255, 255, 255, .032);
  --surface-2: rgba(255, 255, 255, .06);
}

/* ---------------------------------------------------------------- base --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--petrol);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -.002em;
  color: var(--text-2);
  background: var(--petrol);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }

::selection { background: var(--copper); color: #fff; }

/* film grain + vignette over the whole document, very low opacity */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- a11y ---- */

.skip {
  position: fixed; left: 1rem; top: -120px; z-index: 10000;
  background: var(--copper); color: #fff;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .85rem 1.35rem; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

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

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- layout --- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: var(--wrap-narrow); }

section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
  background: var(--bg);
  color: var(--text-2);
}
section.tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }

/* hairline seam between stacked sections */
section + section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line); opacity: .8;
}
section.alt + section::before, section + section.alt::before { opacity: 1; }

.measure { max-width: 62ch; }
.measure-wide { max-width: 76ch; }
.center { text-align: center; }
.center .measure, .center .measure-wide { margin-inline: auto; }

/* ---------------------------------------------------------------- type --- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--display);
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 8.4vw, 7rem); line-height: .87; }
h2 { font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: .92; }

h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.06;
  text-transform: uppercase; letter-spacing: .015em;
  color: var(--display); margin: 0 0 .7rem;
}
h4 {
  font-family: var(--font-mono); font-weight: 500;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 .9rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
section.alt a:hover { color: var(--copper-2); }

strong, b { color: var(--text); font-weight: 700; }

/* bracketed mono eyebrow, as on axionorbital.space */
.eyebrow {
  display: block;
  font-family: var(--font-mono); font-weight: 400;
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 1.5rem;
}
.eyebrow::before { content: "[ "; opacity: .55; }
.eyebrow::after  { content: " ]"; opacity: .55; }
.eyebrow.muted { color: var(--text-3); }

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.72; color: var(--text-2);
}
.small { font-size: .875rem; line-height: 1.65; }
.xs { font-size: .78rem; }
.muted { color: var(--text-3); }
.mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* lists */
ul.plain, ul.checks { list-style: none; padding: 0; margin: 0 0 1.15rem; }
ul.plain > li { position: relative; padding-left: 1.6rem; margin-bottom: .8rem; }
ul.plain > li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .7rem; height: 1px; background: var(--accent);
}
ul.checks > li {
  position: relative; padding-left: 1.9rem; margin-bottom: .85rem;
}
ul.checks > li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: .85rem; height: .42rem;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* -------------------------------------------------------- scroll meter --- */

#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, var(--copper-2), var(--arc));
  box-shadow: 0 0 14px rgba(71,207,224,.55);
  transition: width .1s linear;
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 1.75rem;
  font-family: var(--font-sans); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-outline {
  background: transparent; color: var(--text); border-color: var(--line-2);
}
.btn-outline:hover { border-color: var(--text); background: var(--surface-2); color: var(--text); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: #fff; }

.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: #fff; color: var(--petrol); }

.btn-sm { padding: .7rem 1.15rem; font-size: .7rem; letter-spacing: .12em; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: .2rem;
}
.textlink:hover { text-decoration: none; border-bottom-color: currentColor; color: var(--accent); }
.textlink .arrow { transition: transform .3s var(--ease-out); }
.textlink:hover .arrow { transform: translateX(4px); }

/* -------------------------------------------------------------- header --- */

.topbar {
  background: var(--petrol); color: var(--text-3);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; z-index: 60;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .2rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-top: .6rem; padding-bottom: .6rem;
}
.topbar a { color: var(--text-2); text-decoration: none; display: inline-block; padding: .3rem 0; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar .dot { opacity: .4; margin: 0 .55rem; }

.masthead {
  position: sticky; top: 0; z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease);
}
.masthead.stuck {
  background: rgba(7, 12, 16, .9);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: rgba(255,255,255,.1);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-top: 1rem; padding-bottom: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 46px; height: 46px; flex: none; color: #fff; margin-left: -4px; }
.brand .bn {
  display: block; font-family: var(--font-display); font-size: 1.5rem;
  line-height: .95; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.brand .bn i { font-style: normal; color: #fff; }
.brand .bs {
  display: block; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--text-3);
  margin-top: .2rem;
}

nav.primary ul { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
nav.primary a {
  display: block; padding: .6rem .85rem;
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-2); text-decoration: none; position: relative;
  transition: color .25s var(--ease);
}
nav.primary a:hover { color: #fff; text-decoration: none; }
nav.primary a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { transform: scaleX(1); }
nav.primary a[aria-current="page"] { color: #fff; }

.head-tools { display: flex; align-items: center; gap: .7rem; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text-2); cursor: pointer; border-radius: 0;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.icon-btn:hover { border-color: #fff; color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
#themetoggle { display: none; }
.burger { display: none; }

#mobilenav {
  display: none; background: var(--petrol-2);
  border-top: 1px solid var(--line); padding: .5rem 0 1.5rem;
}
#mobilenav.open { display: block; }
#mobilenav ul { list-style: none; margin: 0; padding: 0; }
#mobilenav a {
  display: block; padding: 1rem .2rem;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line);
}
#mobilenav a:hover, #mobilenav a[aria-current="page"] { color: #fff; text-decoration: none; }
#mobilenav .actions { margin-top: 1.5rem; }
#mobilenav .btn { width: 100%; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative; overflow: hidden;
  min-height: min(94vh, 940px);
  display: flex; align-items: center;
  background: var(--petrol);
  padding: clamp(3rem, 7vw, 6rem) 0 0;
  margin-top: -78px; padding-top: 78px;   /* header sits over the stage */
}
.hero > .wrap { position: relative; z-index: 3; width: 100%; }

/* three.js stage */
#stage {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s var(--ease-out);
}
#stage.ready { opacity: 1; }
@media (max-width: 760px) { #stage.ready { opacity: .58; } }

/* fallback / underlay so the hero never looks empty */
.hero .stage-fallback {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(920px 640px at 66% 40%, rgba(71,207,224,.15), transparent 66%),
    radial-gradient(720px 520px at 24% 70%, rgba(196,118,47,.16), transparent 68%),
    linear-gradient(180deg, #060b0f 0%, #0a1116 55%, #070c10 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  /* keeps the headline legible on the left without crushing the 3D subject */
  background:
    linear-gradient(90deg, rgba(7,12,16,.94) 0%, rgba(7,12,16,.72) 34%, rgba(7,12,16,.12) 62%, rgba(7,12,16,0) 100%),
    radial-gradient(130% 100% at 62% 50%, transparent 46%, rgba(7,12,16,.6) 100%);
}

.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em {
  font-style: normal; display: block;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255,255,255,.55);
}
.hero .lede { color: #c3c3ce; max-width: 52ch; }
.hero .lede strong { color: #fff; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 2rem; align-items: center;
}

/* HUD chrome over the stage */
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hud .brackets span {
  position: absolute; width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,.3);
}
.hud .brackets span:nth-child(1) { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.hud .brackets span:nth-child(2) { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.hud .brackets span:nth-child(3) { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.hud .brackets span:nth-child(4) { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }

.hud .readout {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
  text-align: right; line-height: 2.3;
  background: none; border: 0; padding: 0;
}
.hud .readout b { color: rgba(255,255,255,.8); font-weight: 500; }
.hud .readout i { font-style: normal; color: var(--arc); }

.hud .scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(71,207,224,.55), transparent);
  animation: scan 7s var(--ease-in-out) infinite;
}
@keyframes scan { 0%,100% { top: 12% } 50% { top: 88% } }

.hud .ticker {
  position: absolute; left: 28px; bottom: 58px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.34);
  display: flex; align-items: center; gap: .6rem;
}
.hud .ticker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
  animation: blip 2.4s var(--ease) infinite;
}
@keyframes blip { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

/* labels projected from the 3D scene */
#stage-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.slabel {
  position: absolute; transform: translate(0, -50%);
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.72);
  white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease);
  display: flex; align-items: center; gap: .5rem;
}
.slabel.on { opacity: 1; }
.slabel::before {
  content: ""; width: 26px; height: 1px; background: rgba(255,255,255,.35);
}
.slabel b {
  display: inline-block; color: var(--arc); font-weight: 500;
}

.scrollcue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.4);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
}
.scrollcue i {
  width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,.5), transparent);
  animation: cue 2.6s var(--ease-in-out) infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.35); opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ---------------------------------------------------------- stat strip --- */

.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0; margin: 0; position: relative; z-index: 3;
  border-top: 1px solid var(--line);
}
.metrics > div {
  padding: 1.9rem 1.6rem 1.9rem 0;
  border-right: 1px solid var(--line);
}
.metrics > div:last-child { border-right: 0; }
.metrics dt {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: .7rem;
}
.metrics dd {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: .9;
  color: #fff; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap;
}
.metrics dd .u {
  font-family: var(--font-mono); font-size: .58rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
}
.metrics dd small {
  display: block; width: 100%; margin-top: .55rem;
  font-family: var(--font-sans); font-size: .76rem; font-weight: 400;
  letter-spacing: 0; color: var(--text-3); line-height: 1.5;
}

/* --------------------------------------------------------------- cards --- */

.grid { display: grid; gap: 1px; background: var(--line); }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid.four  { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--bg); padding: 2.25rem 2rem 2.4rem;
  border: 0; border-radius: 0;
  transition: background-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card.lift:hover { background: var(--surface); }
.card.lift:hover::before { transform: scaleX(1); }
.card > .ico {
  width: 42px; height: 42px; margin-bottom: 1.5rem;
  display: grid; place-items: center; color: var(--accent);
  border: 1px solid var(--line); border-radius: 0;
}
.card > .ico svg { width: 20px; height: 20px; }
.card .n, .card .rank {
  display: block; font-family: var(--font-mono); font-size: .66rem;
  font-weight: 500; letter-spacing: .2em; color: var(--accent);
  margin-bottom: .9rem;
}
.card p { font-size: .93rem; }
.card p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- tables --- */

.table-wrap {
  position: relative; overflow-x: auto; margin: 2rem 0;
  border: 1px solid var(--line); background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; text-align: left; }
caption {
  caption-side: top; text-align: left; padding: 1.2rem 1.5rem .5rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-3);
}
th, td { padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  background: var(--surface-2); white-space: nowrap;
}
tbody th { font-weight: 700; color: var(--text); width: 28%; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr { transition: background-color .25s var(--ease); }
tbody tr:hover { background: var(--surface); }
td.num, .tnum { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.table-wrap.scrollable::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg));
}
.scrollhint {
  display: none; align-items: center; gap: .5rem; margin: -1.4rem 0 1.6rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3);
}
.table-wrap.scrollable + .scrollhint { display: flex; }

/* ------------------------------------------------------------ callouts --- */

.callout {
  position: relative; margin: 2rem 0; padding: 1.75rem 2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 2px solid var(--accent); border-radius: 0;
}
.callout h3, .callout h4 { margin-top: 0; }
.callout.warn { border-left-color: var(--amber); }
.callout.warn h3, .callout.warn h4 { color: var(--amber); }
.callout.ok { border-left-color: var(--ok); }
.callout.ok h3, .callout.ok h4 { color: var(--ok); }
.callout p:last-child { margin-bottom: 0; }

blockquote.pitch {
  margin: 2.5rem 0; padding: 0 0 0 2.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-sans); font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.6; color: var(--text); font-weight: 400;
}
blockquote.pitch p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- lead-time comparison --
   Segmented waiting blocks versus one solid copper bar — the device from
   axionorbital.space, applied to lead time.                              */

.timeline { margin: 2.5rem 0 .5rem; display: grid; gap: 1.9rem; }
.trow { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.trow .tlab {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3);
}
.trow .tlab small {
  display: inline; font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .18em; color: var(--text-3);
}
.trow .tbar { position: relative; height: 34px; background: var(--surface); overflow: hidden; }
.trow .tfill {
  position: absolute; inset: 0 auto 0 0; width: 0; height: 100%;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 1rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  transition: width 1.5s var(--ease-out);
}
.trow .tfill span { text-shadow: 0 1px 4px rgba(0,0,0,.85); }
section.alt .trow.dom .tfill span { text-shadow: 0 1px 3px rgba(245,240,232,.9); }
.trow.us .tfill { background: var(--copper); }
section.alt .trow.us .tfill { background: var(--copper-deep); }
.trow.dom .tfill {
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,.09) 0 78px, transparent 78px 86px);
  background-color: rgba(255,255,255,.05);
  color: var(--text-2);
}
section.alt .trow.dom .tfill {
  background-image: repeating-linear-gradient(90deg,
    rgba(27,59,46,.14) 0 78px, transparent 78px 86px);
  background-color: rgba(27,59,46,.06);
}
.scale {
  display: flex; justify-content: space-between; margin-top: .6rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em;
  color: var(--text-3);
}

/* ------------------------------------------------------------- stepper --- */

.stepper { counter-reset: st; margin: 2.5rem 0; }
.step { position: relative; padding: 0 0 2.2rem 4rem; counter-increment: st; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "0" counter(st);
  position: absolute; left: 0; top: -.1rem;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  color: var(--accent); letter-spacing: .04em;
}
.step::after {
  content: ""; position: absolute; left: 1.05rem; top: 2rem; bottom: .3rem;
  width: 1px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.step p { font-size: .92rem; margin-bottom: 0; }

/* ---------------------------------------------------------------- tabs --- */

.tabs { margin: 2.25rem 0; }
.tablist { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tablist button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
  padding: 1rem 1.4rem 1rem 0; margin-right: 1.8rem;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tablist button:hover { color: var(--text); }
.tablist button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ----------------------------------------------------------- accordion --- */

.acc { border: 1px solid var(--line); background: var(--surface); }
.acc + .acc { margin-top: -1px; }
.acc > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .02em; color: var(--display);
  padding: 1.5rem 1.75rem; transition: background-color .25s var(--ease);
}
.acc > button:hover { background: var(--surface-2); }
.acc .chev { flex: none; width: 18px; height: 18px; color: var(--accent); transition: transform .35s var(--ease-out); }
.acc > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc .accbody { padding: 0 1.75rem 1.75rem; font-size: .93rem; }
.acc .accbody[hidden] { display: none; }

/* --------------------------------------------------------------- tools --- */

.tool { background: var(--surface); border: 1px solid var(--line); }
.tool > header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding: 1.6rem 1.9rem; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.tool > header .t {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-3);
}
.tool > header h3 { margin: .5rem 0 0; font-size: 1.5rem; }
.tool .body { padding: 1.9rem; }
.tool .foot {
  padding: 1.3rem 1.9rem; border-top: 1px solid var(--line);
  font-size: .78rem; line-height: 1.7; color: var(--text-3);
}
.tool-grid { display: grid; gap: 2.25rem; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }

.field { display: flex; flex-direction: column; margin-bottom: 1.35rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .6rem;
}
.field label .opt { letter-spacing: .1em; opacity: .7; }
.field .hint { font-size: .78rem; color: var(--text-3); margin-top: .5rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-mono); font-size: .92rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 0;
  padding: .85rem 1rem; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.6; font-family: var(--font-sans); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.field .with-unit, .field .with-prefix { position: relative; }
.field .with-unit .unit, .field .with-prefix .pre {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--text-3); pointer-events: none;
}
.field .with-unit .unit { right: 1rem; }
.field .with-prefix .pre { left: 1rem; }
.field .with-unit input { padding-right: 3.6rem; }
.field .with-prefix input { padding-left: 2rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }

.readout { background: var(--petrol); border: 1px solid rgba(255,255,255,.12); padding: 1.9rem; }
.readout .rlabel {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: #7e7e8b; margin-bottom: .8rem;
}
.readout .rbig {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: .9; color: #fff; letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.readout .rsub { font-size: .82rem; color: #7e7e8b; margin-top: .8rem; line-height: 1.6; }

.stackbar { display: flex; height: 8px; overflow: hidden; margin: 1.6rem 0 1rem; background: rgba(255,255,255,.08); }
.stackbar > span { display: block; transition: width .8s var(--ease-out); min-width: 0; }
.stackbar .s1 { background: #64757e; }
.stackbar .s2 { background: var(--copper-2); }
.stackbar .s3 { background: var(--arc); }
.legend {
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: #7e7e8b;
}
.legend span { display: inline-flex; align-items: center; gap: .5rem; }
.legend i { width: 9px; height: 9px; flex: none; }
.legend .k1 { background: #64757e; } .legend .k2 { background: var(--copper-2); } .legend .k3 { background: var(--arc); }

.bars { display: grid; gap: 1rem; }
.bar .blabel {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: #9a9aa6;
  padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.bar .blabel b { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* verdict */
.verdict { border: 1px solid var(--line); border-left: 2px solid var(--line-2); background: var(--surface); padding: 1.9rem; }
.verdict.yes { border-left-color: var(--ok); }
.verdict.no  { border-left-color: var(--amber); }
.verdict .vt {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.05;
  text-transform: uppercase; color: var(--display); margin-bottom: .9rem;
}
.verdict .vt .vi {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .8rem; color: #fff; background: var(--line-2);
}
.verdict.yes .vt .vi { background: var(--ok); }
.verdict.no .vt .vi { background: var(--amber); }
.verdict p:last-child { margin-bottom: 0; }

/* chips */
.qgroup { margin-bottom: 2rem; }
.qgroup > p.q {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text); margin-bottom: .9rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  appearance: none; cursor: pointer; border-radius: 0;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-2);
  background: transparent; border: 1px solid var(--line-2);
  padding: .7rem 1rem; min-height: 40px;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; }

/* ---------------------------------------------------- anatomy explorer --- */

.anatomy { display: grid; gap: 2rem; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: start; }
.anatomy .stage {
  position: relative; overflow: hidden;
  background: #030305; border: 1px solid var(--line); padding: 1rem;
}
.anatomy .stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 320px at 50% 8%, rgba(71,207,224,.12), transparent 68%);
}
.hotspot { cursor: pointer; }
.hotspot circle.grab { fill: transparent; stroke: none; }
.hotspot circle.hit {
  fill: rgba(71,207,224,.2); stroke: var(--accent); stroke-width: 1.2;
  transition: fill .25s var(--ease);
}
.hotspot text { fill: #e8e8ee; font-size: 11px; font-weight: 500; font-family: var(--font-mono); pointer-events: none; }
.hotspot:hover circle.hit { fill: rgba(71,207,224,.55); }
.hotspot[aria-pressed="true"] circle.hit { fill: var(--accent); stroke: #fff; }
.hotspot[aria-pressed="true"] text { fill: #fff; }
.hotspot:focus-visible circle.hit { stroke: #fff; stroke-width: 2.5; }

.partinfo { background: var(--surface); border: 1px solid var(--line); padding: 1.9rem; min-height: 230px; }
.partinfo .pnum {
  display: block; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.partinfo h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.partinfo p { font-size: .92rem; }
.partinfo .hintline { font-size: .78rem; color: var(--text-3); }

.partpicker { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 1.5rem; background: var(--line); }
.partpicker button {
  appearance: none; cursor: pointer; border: 0; border-radius: 0;
  min-height: 44px; padding: .7rem .95rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-2); background: var(--bg);
  transition: all .22s var(--ease);
}
.partpicker button:hover { color: #fff; background: var(--surface-2); }
.partpicker button[aria-pressed="true"] { background: var(--copper); color: #fff; }
.partnav { display: flex; gap: 1px; margin-top: 1.5rem; }

/* -------------------------------------------------------- range tool ---- */

.rangetool .out { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); margin-top: 2rem; background: var(--line); }
.rangetool .cell { background: var(--bg); padding: 1.3rem 1.4rem; }
.rangetool .cell .k {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .6rem;
}
.rangetool .cell .v {
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1;
  color: var(--display); letter-spacing: .02em; text-transform: uppercase;
}
.rangetool .cell .v.ok { color: var(--ok); }
.rangetool .cell .v.no { color: var(--amber); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 40px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 26px;
  margin-top: -12px; background: var(--copper); border: 0; border-radius: 0;
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 26px; background: var(--copper); border: 0; border-radius: 0; }
.rangescale {
  display: flex; justify-content: space-between; margin-top: .4rem;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; color: var(--text-3);
}

/* ----------------------------------------------------------- datablock --- */

.datablock { border: 1px solid var(--line); background: var(--surface); margin: 2rem 0; }
.datablock > header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.1rem 1.5rem; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.datablock > header h3 {
  margin: 0; font-family: var(--font-mono); font-size: .64rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
.datablock .tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.datablock pre {
  margin: 0; padding: 1.75rem; font-family: var(--font-mono);
  font-size: .8rem; line-height: 1.95; color: var(--text);
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}

/* ------------------------------------------------------------- stripe --- */

.stripe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 3rem; padding: .5rem 0; }
.stripe span {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}

/* --------------------------------------------------- industries filter --- */

.filterbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 2.25rem 0 2.5rem; }
.filterbar .flabel {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-3); margin-right: .8rem;
}
.segcard { display: flex; flex-direction: column; }
.segcard .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 0; }
.segcard .tag {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .35rem .6rem;
  border: 1px solid var(--line-2); color: var(--text-3);
}
.segcard .tag.warn { border-color: var(--amber); color: var(--amber); }
.segcard[hidden] { display: none; }
.emptyfilter { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: var(--text-3); padding: 1.5rem 0; }

.segments { columns: 2; column-gap: 3rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.segments li { break-inside: avoid; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.segments li strong { display: block; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; color: var(--display); font-weight: 400; letter-spacing: .02em; margin-bottom: .3rem; }
.segments li span { font-size: .88rem; color: var(--text-3); }

/* --------------------------------------------------------- breadcrumb --- */

.crumb {
  display: block; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
  margin: 0 0 1.5rem; line-height: 1.9;
}
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--accent); text-decoration: none; }
.crumb .sep { opacity: .4; margin: 0 .6rem; }

/* --------------------------------------------------------- contact bits -- */

.contact-line { display: flex; gap: 1.1rem; align-items: baseline; margin-bottom: 1.2rem; }
.contact-line dt {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3); min-width: 74px; flex: none;
}
.contact-line dd { margin: 0; font-size: 1rem; }
address { font-style: normal; line-height: 1.85; }

/* -------------------------------------------------------------- footer --- */

footer.site {
  background: #030305; color: var(--text-3);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 6vw, 6rem) 0 2.5rem;
  font-size: .9rem;
}
footer.site a { color: var(--text-2); }
footer.site a:hover { color: #fff; text-decoration: none; }
footer.site h4 { color: var(--text-3); margin-bottom: 1.3rem; }
.foot-top {
  display: grid; gap: 3rem; grid-template-columns: minmax(0,1.6fr) repeat(auto-fit, minmax(150px,1fr));
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.foot-top ul { list-style: none; margin: 0; padding: 0; }
.foot-top li { margin-bottom: .1rem; }
.foot-top ul a {
  display: inline-block; padding: .4rem 0;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
footer.site address a { display: inline-block; padding: .2rem 0; }
footer.site .fbrand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; }
footer.site .fbrand .mark { width: 44px; height: 44px; color: #fff; margin-left: -4px; }
footer.site .fbrand .bn {
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.foot-legal {
  padding-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem 3rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: #55555f;
}
.foot-legal .ent { color: var(--text-3); }
.addr-block { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); margin-top: 1.5rem; }

/* ------------------------------------------------------- floating bits --- */

#totop {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 88;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(7,12,16,.85); backdrop-filter: blur(10px);
  color: var(--text-2); border: 1px solid var(--line-2); border-radius: 0;
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease-out), color .25s var(--ease);
}
#totop.show { opacity: 1; pointer-events: auto; transform: none; }
#totop:hover { color: #fff; border-color: #fff; }
#totop svg { width: 18px; height: 18px; }

#mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 92;
  display: none; gap: 1px; padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease-out);
}
#mcta.show { transform: none; }
#mcta .btn { flex: 1; padding: 1.15rem 1rem; padding-bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px)); }
#mcta .btn-outline { flex: 0 0 auto; background: var(--petrol); }

/* ------------------------------------------------------------ intro ----- */

#boot { display: none; }
html.js #boot {
  position: fixed; inset: 0; z-index: 9997;
  background: var(--petrol); display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
#boot.done { opacity: 0; visibility: hidden; }
#boot .bi { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
#boot .mark { width: 78px; height: 78px; color: #fff; opacity: .9; }
#boot .bl {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--text-3);
}
#boot .bt { width: 180px; height: 1px; background: rgba(255,255,255,.14); overflow: hidden; }
#boot .bt i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease); }

/* ------------------------------------------------------------ reveals --- */

html.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
html.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .09s } .rv.d2 { transition-delay: .18s }
.rv.d3 { transition-delay: .27s } .rv.d4 { transition-delay: .36s }
.rv.d5 { transition-delay: .45s } .rv.d6 { transition-delay: .54s }

/* display headings wipe up behind a mask */
html.js .rv h1, html.js .rv h2 { clip-path: inset(0 0 105% 0); transition: clip-path 1.1s var(--ease-out); }
html.js .rv.in h1, html.js .rv.in h2 { clip-path: inset(0 0 -20% 0); }

html.js .partsrc { display: none; }
.partsrc { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.partsrc > [data-part] { border: 1px solid var(--line); padding: 1.5rem; background: var(--surface); }
.partsrc > [data-part]::before {
  content: attr(data-title); display: block;
  font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase;
  color: var(--display); margin-bottom: .6rem; letter-spacing: .02em;
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 1180px) {
  nav.primary, .head-tools .desk { display: none; }
  .burger { display: inline-flex; }
  html { scroll-padding-top: 80px; }
  .anatomy, .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  :root { --gut: 1.75rem; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .segments { columns: 1; }
}

@media (max-width: 900px) {
  /* HUD chrome is desktop-only: on a narrow viewport the projected labels and
     ticker collide with the headline and CTAs instead of framing the subject */
  #stage-labels, .hud .ticker, .hud .scan { display: none; }
  #mcta { display: flex; }
  #totop { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: 4.8rem; }
  .hud .readout { display: none; }
}

@media (max-width: 700px) {
  :root { --gut: 1.35rem; }
  .scrollcue { display: none; }
  /* entity/NAICS line is repeated in the footer — drop it from the phone topbar
     so the bar is one line instead of three */
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: flex-start; }
  .hud .brackets { display: none; }
  body { font-size: 16.5px; }
  .hero { min-height: 88vh; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div { padding: 1.4rem 1.1rem 1.4rem 0; }
  .metrics > div:nth-child(2n) { border-right: 0; }
  .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .btn { white-space: normal; text-wrap: balance; }
  .actions .btn { width: 100%; }
  .tool > header .actions .btn, .datablock .tools .btn, .partpicker button { width: auto; flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  th, td { padding: .9rem 1.1rem; }
  thead th { white-space: normal; }
  .tool .body, .tool > header, .tool .foot { padding-left: 1.25rem; padding-right: 1.25rem; }
  .card { padding: 1.75rem 1.4rem 1.9rem; }
  blockquote.pitch { padding-left: 1.5rem; }
  .step { padding-left: 3.2rem; }
  .hud .brackets span { width: 18px; height: 18px; }
  .foot-top { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ------------------------------------------------------ reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .rv { opacity: 1; transform: none; }
  html.js .rv h1, html.js .rv h2 { clip-path: none; }
  .hud .scan, .scrollcue i { display: none; }
  body::after { display: none; }
}

/* --------------------------------------------------------------- print --- */

@media print {
  :root {
    --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #fff;
    --line: #bbb; --line-2: #888; --display: #000; --text: #000;
    --text-2: #111; --text-3: #444; --accent: #000;
  }
  body { background: #fff; color: #000; font-size: 10.5pt; padding-bottom: 0; }
  body::after, .topbar, nav.primary, #mobilenav, .head-tools, #progress, #totop, #mcta,
  #boot, .hud, .scrollcue, #stage, .stage-fallback, .actions, .datablock .tools,
  .tablist, .burger, .anatomy .stage, .partpicker, .partnav, .filterbar, .scrollhint {
    display: none !important;
  }
  .masthead { position: static; border-bottom: 1pt solid #000; background: #fff; }
  .brand .bn, .brand .bs, .brand .mark { color: #000 !important; }
  .hero { min-height: 0; margin-top: 0; padding: 1rem 0; background: #fff; }
  .hero::after { display: none; }
  .hero h1, .hero .lede, .hero .lede strong { color: #000 !important; }
  .hero h1 em { -webkit-text-stroke: 0; color: #000 !important; }
  section, section.alt, section.band, footer.site { background: #fff !important; color: #000 !important; padding: .85rem 0; }
  section + section::before { display: none; }
  .metrics dd, .metrics dt, .metrics dd .u, .metrics dd small,
  footer.site a, footer.site h4, .foot-legal, .foot-legal .ent,
  .readout .rbig, .readout .rlabel, .readout .rsub, .bar .blabel, .bar .blabel b, .legend { color: #000 !important; }
  .readout, .metrics > div { background: #fff !important; border-color: #888 !important; }
  .card, .callout, .datablock, .tool, .table-wrap, .verdict, .partinfo, .acc {
    background: #fff !important; border: 1pt solid #999 !important; break-inside: avoid;
  }
  .grid { background: #fff; gap: 1rem; }
  .tabpanel[hidden], .accbody[hidden] { display: block !important; }
  html.js .rv { opacity: 1 !important; transform: none !important; }
  html.js .rv h1, html.js .rv h2 { clip-path: none !important; }
  html.js .partsrc { display: grid !important; }
  .segcard[hidden] { display: flex !important; }
  a { color: #000; }
  table { break-inside: avoid; }
}

/* ============================================================================
   ENGINEERING PLATES & TECHNICAL REFERENCE
   Drafting-plate treatment for diagrams: corner ticks, a numbered caption bar,
   and a hairline grid field. Signals "drawing office" rather than "brochure".
   ========================================================================== */

.plate {
  position: relative; border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 34px 100%,
    var(--surface);
  background-blend-mode: normal;
}
.plate::before, .plate::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 1px solid var(--accent);
}
.plate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.plate::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.plate > .pbody { position: relative; padding: 1.75rem; }
.plate > figcaption, .plate > .pcap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding: .85rem 1.25rem;
  border-top: 1px solid var(--line); background: var(--bg);
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3);
}
.plate > figcaption b, .plate > .pcap b { color: var(--text); font-weight: 500; }
figure.plate { margin: 0; }

/* hairline technical field behind a whole section */
section.grid-field::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 46px 100%;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
}
section.grid-field > .wrap { position: relative; z-index: 1; }

/* drafting section numbers */
.plateno {
  display: inline-block; font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .2em; color: var(--accent); margin-bottom: .8rem;
}

/* --------------------------------------------------- cooling decoder ----- */

.decoder { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); background: var(--line); }
.decoder .dcell { background: var(--bg); padding: 1.4rem 1.2rem; }
.decoder .dpos {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .7rem;
}
.decoder .dltr {
  font-family: var(--font-display); font-size: 3rem; line-height: .82;
  color: var(--accent); letter-spacing: .02em;
}
.decoder .dmean { margin-top: .6rem; font-size: .84rem; color: var(--text-2); line-height: 1.5; }

/* --------------------------------------------------- vector groups ------- */

.vg { display: grid; gap: 2rem; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: start; }
.vg svg { width: 100%; height: auto; }
.vg .vmeta dt {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3); margin-top: 1.1rem;
}
.vg .vmeta dt:first-child { margin-top: 0; }
.vg .vmeta dd { margin: .35rem 0 0; font-size: .92rem; color: var(--text-2); }
.vg .vmeta dd strong { color: var(--text); }
.vgline { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linejoin: round; }
.vgdim  { stroke: var(--line-2); stroke-width: 1; fill: none; }
.vgtext { fill: var(--text-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; }
.vgtext.hi { fill: var(--text); }
.vghand { stroke: var(--arc); stroke-width: 2.5; stroke-linecap: round; }

/* --------------------------------------------------- spec data rows ----- */

.datarow {
  display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 1.5rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.datarow:first-of-type { border-top: 1px solid var(--line); }
.datarow dt {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); padding-top: .15rem;
}
.datarow dd { margin: 0; font-size: .95rem; }
.datarow dd code {
  font-family: var(--font-mono); font-size: .88em; color: var(--accent);
  background: var(--surface-2); padding: .1rem .4rem;
}

@media (max-width: 860px) {
  .vg { grid-template-columns: 1fr; }
  .decoder { grid-template-columns: 1fr 1fr; }
  .datarow { grid-template-columns: 1fr; gap: .4rem; }
  .plate > .pbody { padding: 1.15rem; }
}

/* Vector-group designations are case-significant — capital letter denotes the
   HV winding connection, lowercase the LV. Uppercasing them ("DYN11") is not
   valid notation, so these chips opt out of the global transform. */
.chip[data-vg] { text-transform: none; font-size: .72rem; letter-spacing: .06em; }
.vg .vmeta dd strong {
  font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .06em; color: var(--text);
}

/* The decoder and phasor plates are JS-rendered. Without JS the interactive
   versions are hidden and a static equivalent is shown, so the reference is
   still readable rather than presenting two empty frames. */
html:not(.js) .vg { display: none; }
html.js .vgsrc { display: none; }
.vgsrc { display: grid; gap: 1px; margin-top: 2rem; background: var(--line); }
.vgsrc > div { background: var(--bg); padding: 1.35rem 1.6rem; }
.vgsrc h3 {
  font-family: var(--font-mono); text-transform: none;
  font-size: 1rem; letter-spacing: .06em; margin-bottom: .5rem;
}
.vgsrc p { font-size: .92rem; margin-bottom: .4rem; }
.vgsrc p:last-child { margin-bottom: 0; }

/* ============================================================================
   3D INSPECTOR (/products.html)
   The SVG diagram is the baseline. The canvas only replaces it once WebGL has
   actually initialised, so a failed context leaves a working diagram behind.
   ========================================================================== */

#inspector3d {
  position: relative; width: 100%;
  height: clamp(400px, 54vh, 580px);
  opacity: 0; transition: opacity .9s var(--ease-out);
}
#inspector3d.ready { opacity: 1; }
#inspector3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#inspector3d canvas:active { cursor: grabbing; }
html:not(.has-inspector) #inspector3d { display: none; }
html.has-inspector #anatomy-svg { display: none; }

.i3bar { display: none; gap: 1px; background: var(--line); margin-top: 1rem; flex-wrap: wrap; }
html.has-inspector .i3bar { display: flex; }
.i3bar button {
  flex: 1 1 auto; min-height: 44px; padding: .75rem 1rem;
  appearance: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--bg); color: var(--text-2);
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.i3bar button:hover { background: var(--surface-2); color: #fff; }
.i3bar button[aria-pressed="true"] { background: var(--copper); color: #fff; }

.i3hint {
  display: none; align-items: center; gap: .6rem; margin-top: .9rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
}
html.has-inspector .i3hint { display: flex; }
.i3hint::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--arc); box-shadow: 0 0 8px var(--arc);
}

@media (max-width: 700px) {
  #inspector3d { height: clamp(320px, 46vh, 420px); }
  .i3bar button { flex: 1 1 40%; font-size: .6rem; letter-spacing: .1em; }
}
