/* ==========================================================================
   ELTA IT — site.css
   Hand-written design system. No frameworks, no template libraries.
   Concept: an engineering dossier / instrument panel. Bone paper, ink,
   signal orange, one technical mono. Sharp corners. Rules, not cards.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset) ---------------------------------- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragment-mono-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-400.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --paper: #efebe2;
  --paper-2: #e7e1d4;
  --paper-3: #ddd5c4;
  --ink: #14150f;
  --ink-2: #2d2f26;
  --muted: #5d6053;
  --muted-2: #7c7f70;
  --line: #cfc8b8;
  --line-2: #b3ab99;
  --sig: #e24a1b;
  --sig-deep: #a8330f;
  --sig-on-night: #ff5b23;
  --night: #101210;
  --night-2: #171a15;
  --night-3: #1e221b;
  --night-line: #2d3128;
  --bone: #efebe2;
  --bone-muted: #a4a698;
  --led: #a6e85a;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --pad: clamp(20px, 4.2vw, 64px);
  --maxw: 1500px;
  --head-h: 74px;
  --util-h: 32px;

  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --dur: 0.32s;
}

/* ---- Reset -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* paper grain — generated turbulence, kept very quiet */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
table {
  border-collapse: collapse;
  width: 100%;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow {
  max-width: 1080px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: none;
}

/* ---- Type helpers ------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .idx {
  color: var(--sig-deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--bare::before {
  display: none;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.sig {
  color: var(--sig);
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.h-display {
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-size: clamp(46px, 6.4vw, 96px);
}
.h-section {
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-size: clamp(34px, 4.4vw, 64px);
  max-width: 18ch;
}
.h-sub {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-size: clamp(22px, 2.2vw, 30px);
}

/* ---- Buttons / tags / links -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 20px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn .ar {
  transition: transform var(--dur) var(--ease);
  font-size: 13px;
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn:hover .ar {
  transform: translate(3px, -3px);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--sig-deep);
  border-color: var(--sig-deep);
  color: #fff;
}
.btn--ghost {
  border-color: var(--line-2);
}
.btn--night {
  border-color: var(--bone-muted);
  color: var(--bone);
}
.btn--night:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color var(--dur), border-color var(--dur);
}
.tlink:hover {
  color: var(--sig-deep);
  border-color: var(--sig-deep);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-2);
  padding: 4px 9px 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--sig);
}
.tag--plain::before {
  display: none;
}
.tag--night {
  border-color: var(--night-line);
  color: var(--bone-muted);
}

/* ---- Utility bar -------------------------------------------------------- */
.util {
  background: var(--ink);
  color: var(--bone-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  height: var(--util-h);
}
.util .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
  white-space: nowrap;
}
.util .util-group {
  min-width: 0;
}
.util .util-group > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.util-group {
  display: flex;
  align-items: center;
  gap: 26px;
}
.util .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--led);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 6px rgba(166, 232, 90, 0.8);
}
.util strong {
  color: var(--bone);
  font-weight: 400;
}
.util a:hover {
  color: var(--bone);
}
@media (max-width: 860px) {
  .util-mid {
    display: none;
  }
}
@media (max-width: 560px) {
  .util-right .hide-xs {
    display: none;
  }
}

/* ---- Header ------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: var(--head-h);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-word {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-word span {
  color: var(--sig);
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  margin-top: 4px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--sig);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav a[aria-current="page"] {
  color: var(--ink);
}
.head-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.head-cta .btn {
  padding: 11px 16px;
  font-size: 10.5px;
  gap: 14px;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 13px;
}
.nav-toggle i {
  display: block;
  width: 16px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
@media (max-width: 1160px) {
  .nav {
    display: none;
  }
  .head-cta .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }
}

/* Mobile nav overlay */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad) 28px;
  transform: translateY(-102%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.mnav.is-open {
  transform: none;
  visibility: visible;
}
.mnav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--head-h) + var(--util-h) + 1px);
  border-bottom: 1px solid var(--line);
}
.mnav-close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 13px;
}
.mnav-links {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}
.mnav-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.mnav-links a .n {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--sig-deep);
  width: 22px;
  flex-shrink: 0;
}
.mnav-foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
body.nav-locked {
  overflow: hidden;
}

/* Progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--sig);
  z-index: 950;
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding: clamp(44px, 6vw, 88px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* hairline grid behind hero, barely there */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(20, 21, 15, 0.055) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, transparent 6%, #000 42%, transparent 96%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: end;
}
.hero-copy {
  grid-column: 1 / span 8;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(22px, 3vw, 40px);
}
.hero-kicker .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  padding: 5px 10px 4px;
  color: var(--ink-2);
}
.hero-kicker .pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sig);
}
.hero h1 {
  font-size: clamp(44px, 7.9vw, 122px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 0;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: block;
  animation: rise 1s var(--ease) both;
}
.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.1s;
}
.hero h1 .line:nth-child(3) > span {
  animation-delay: 0.2s;
}
@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--sig);
  font-size: 1.04em;
  padding-right: 0.06em;
}
.hero-sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  margin-top: clamp(26px, 3.4vw, 46px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-sub p {
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-2);
}
.hero-meta {
  display: grid;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.hero-meta b {
  font-weight: 400;
  color: var(--ink);
}
.hero-actions {
  margin-top: clamp(26px, 3vw, 38px);
}
.hero-panel {
  grid-column: 9 / span 4;
  align-self: end;
}
@media (max-width: 1080px) {
  .hero-copy {
    grid-column: 1 / -1;
  }
  .hero-panel {
    grid-column: 1 / -1;
    max-width: 560px;
  }
  .hero-sub {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    text-align: left;
    grid-auto-flow: column;
    justify-content: start;
    gap: 18px;
  }
}

/* ---- Signal panel (hero instrument) ------------------------------------ */
.panel {
  position: relative;
  background: var(--night);
  color: var(--bone);
  border: 1px solid var(--ink);
  box-shadow: 15px 15px 0 var(--sig);
  isolation: isolate;
}
.panel::before {
  /* technical grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(239, 235, 226, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 235, 226, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 100%);
}
.corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--bone);
  opacity: 0.55;
  z-index: 2;
}
.corner--tl {
  top: 9px;
  left: 9px;
  border-left: 1px solid;
  border-top: 1px solid;
}
.corner--tr {
  top: 9px;
  right: 9px;
  border-right: 1px solid;
  border-top: 1px solid;
}
.corner--bl {
  bottom: 9px;
  left: 9px;
  border-left: 1px solid;
  border-bottom: 1px solid;
}
.corner--br {
  bottom: 9px;
  right: 9px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.panel-top .code {
  margin-left: auto;
  color: var(--bone);
}
.led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 8px rgba(166, 232, 90, 0.9);
  animation: ledpulse 2.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ledpulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.panel-bus {
  width: 100%;
  height: auto;
  display: block;
}
.bus-path {
  fill: none;
  stroke: var(--night-line);
  stroke-width: 1;
}
.bus-live {
  fill: none;
  stroke: var(--sig-on-night);
  stroke-width: 1.4;
  stroke-dasharray: 5 9;
  animation: flow 1.8s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -28;
  }
}
.bus-node {
  fill: var(--night-2);
  stroke: #3a3f34;
  stroke-width: 1;
}
.bus-core {
  fill: var(--ink);
  stroke: var(--sig-on-night);
  stroke-width: 1.4;
}
.bus-text {
  font-family: var(--font-mono);
  font-size: 7.6px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  fill: var(--bone);
}
.bus-text--dim {
  fill: var(--bone-muted);
  font-size: 6.6px;
}
.bus-text--sig {
  fill: var(--sig-on-night);
}
.panel-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--night-line);
}
.panel-readouts div {
  padding: 12px 14px 13px;
  border-right: 1px solid var(--night-line);
}
.panel-readouts div:last-child {
  border-right: 0;
}
.panel-readouts span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: 5px;
}
.panel-readouts b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px 13px;
  border-top: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.panel-foot b {
  font-weight: 400;
  color: var(--sig-on-night);
}

/* ---- Ticker ------------------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--bone);
  border-top: 1px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 13px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-muted);
  white-space: nowrap;
}
.ticker-item b {
  font-weight: 400;
  color: var(--bone);
}
.ticker-item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--sig-on-night);
  transform: rotate(45deg);
  margin-right: 26px;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---- Sections ----------------------------------------------------------- */
.section {
  padding: clamp(68px, 9vw, 128px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section--flush {
  border-top: 0;
}
.section--night {
  background: var(--night);
  color: var(--bone);
  border-top-color: var(--night);
}
.section--night .eyebrow {
  color: var(--bone-muted);
}
.section--night .eyebrow .idx {
  color: var(--sig-on-night);
}
.section--night .caption {
  color: var(--bone-muted);
}
.section--paper2 {
  background: var(--paper-2);
}
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
  margin-bottom: clamp(36px, 5vw, 64px);
  align-items: end;
}
.sec-head .eyebrow {
  grid-column: 1 / span 12;
  margin-bottom: 4px;
}
.sec-head h2 {
  grid-column: 1 / span 8;
}
.sec-head .sec-note {
  grid-column: 10 / span 3;
  justify-self: end;
  text-align: right;
  color: var(--muted);
  font-size: 14px;
  max-width: 30ch;
}
.section--night .sec-head .sec-note {
  color: var(--bone-muted);
}
@media (max-width: 900px) {
  .sec-head h2 {
    grid-column: 1 / -1;
  }
  .sec-head .sec-note {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    max-width: 44ch;
  }
}

/* ---- Capability list ---------------------------------------------------- */
.cap-list {
  border-top: 1px solid var(--line-2);
}
.cap {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.15fr) minmax(0, 1.5fr) 40px;
  gap: clamp(16px, 2.4vw, 40px);
  align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 14px clamp(24px, 3vw, 36px) 10px;
  border-bottom: 1px solid var(--line-2);
  position: relative;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    padding-left var(--dur) var(--ease);
}
.cap:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 20px;
}
.cap:hover .cap-num {
  color: var(--sig-on-night);
}
.cap:hover .cap-desc {
  color: #c9c6b9;
}
.cap:hover .cap-ar {
  transform: translate(4px, -4px);
  color: var(--sig-on-night);
}
.cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sig-deep);
}
.cap h3 {
  font-weight: 700;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.cap-desc {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 62ch;
  transition: color var(--dur);
}
.cap-ar {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 18px;
  transition: transform var(--dur) var(--ease), color var(--dur);
}
@media (max-width: 860px) {
  .cap {
    grid-template-columns: 42px 1fr 24px;
  }
  .cap-desc {
    grid-column: 2 / span 2;
    grid-row: 2;
    margin-top: 4px;
  }
}

/* ---- Stack / layered architecture -------------------------------------- */
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3.4vw, 54px);
  align-items: start;
}
.stack-map {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--night-line);
}
.stack-layer {
  text-align: left;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  padding: 19px 12px 19px 14px;
  border-bottom: 1px solid var(--night-line);
  color: var(--bone-muted);
  transition: color var(--dur), background var(--dur), padding-left var(--dur);
  position: relative;
}
.stack-layer .sl-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--bone-muted);
}
.stack-layer .sl-name {
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -0.02em;
  color: var(--bone);
}
.stack-layer .sl-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-top: 5px;
}
.stack-layer .sl-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  justify-self: end;
  opacity: 0;
  transition: opacity var(--dur), transform var(--dur);
}
.stack-layer:hover {
  background: var(--night-2);
}
.stack-layer:hover .sl-mark {
  opacity: 0.6;
}
.stack-layer.is-active {
  background: var(--night-2);
  box-shadow: inset 2px 0 0 var(--sig-on-night);
  padding-left: 20px;
}
.stack-layer.is-active .sl-num {
  color: var(--sig-on-night);
}
.stack-layer.is-active .sl-mark {
  opacity: 1;
  color: var(--sig-on-night);
}
.stack-panel {
  position: relative;
  border: 1px solid var(--night-line);
  padding: clamp(24px, 2.8vw, 38px);
  min-height: 360px;
  background: var(--night-2);
}
.stack-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(239, 235, 226, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}
.stack-pane {
  display: none;
  position: relative;
}
.stack-pane.is-active {
  display: block;
  animation: panein 0.42s var(--ease);
}
@keyframes panein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.stack-pane .sp-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sig-on-night);
  margin-bottom: 14px;
}
.stack-pane h3 {
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.stack-pane p {
  color: var(--bone-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
}
.stack-pane .sp-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
  margin: 22px 0;
}
.stack-pane .sp-spec div {
  background: var(--night-2);
  padding: 10px 12px;
}
.stack-pane .sp-spec span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: 4px;
}
.stack-pane .sp-spec b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--bone);
}
.stack-pane .tag {
  border-color: var(--night-line);
  color: var(--bone-muted);
}
.stack-pane .tag::before {
  background: var(--sig-on-night);
}
@media (max-width: 900px) {
  .stack {
    grid-template-columns: 1fr;
  }
}

/* ---- Device matrix ------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  align-items: center;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.filter span {
  color: var(--muted-2);
}
.filter:hover {
  border-color: var(--ink);
}
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.filter.is-active span {
  color: var(--sig-on-night);
}
.matrix-wrap {
  border-top: 1px solid var(--ink);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.matrix {
  min-width: 720px;
}
.matrix thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.matrix thead th:last-child {
  text-align: right;
}
.matrix tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}
.matrix tbody tr:hover {
  background: var(--paper-2);
}
.matrix tbody tr.is-hidden {
  display: none;
}
.matrix td {
  padding: 15px 14px;
  font-size: 14.5px;
  vertical-align: middle;
  color: var(--ink-2);
}
.matrix .model {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.matrix .cls {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.matrix .proto {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.matrix .iface {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.matrix .ok {
  text-align: right;
  color: var(--sig-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.matrix-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---- Code terminal ------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
.split--rev {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.split-aside {
  position: sticky;
  top: calc(var(--head-h) + 26px);
}
.split h2 {
  margin-bottom: 18px;
}
.split p + p {
  margin-top: 14px;
}
.split .btn-row {
  margin-top: 26px;
}
@media (max-width: 920px) {
  .split,
  .split--rev {
    grid-template-columns: 1fr;
  }
  .split-aside {
    position: static;
  }
  .split--rev .split-aside {
    order: -1;
  }
}
.term {
  border: 1px solid var(--ink);
  background: var(--night);
  color: var(--bone);
  box-shadow: 12px 12px 0 var(--sig);
}
.term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.term-head .dots {
  display: flex;
  gap: 5px;
}
.term-head .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--night-line);
}
.term-head .dots i:first-child {
  background: var(--sig-on-night);
}
.term-head .tag {
  margin-left: auto;
  border-color: var(--night-line);
  color: var(--bone-muted);
  font-size: 8px;
  padding: 3px 7px 2px;
}
.term-head .tag::before {
  background: var(--led);
}
.term-body {
  padding: 20px 20px 22px;
  overflow-x: auto;
}
.term pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: #cdcabf;
  tab-size: 2;
}
.term .c-key {
  color: var(--sig-on-night);
}
.term .c-str {
  color: var(--led);
}
.term .c-mute {
  color: #6d7164;
}
.term .c-method {
  color: var(--bone);
  font-weight: 400;
}
.term-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--night-line);
}
.term-split > div + div {
  border-left: 1px solid var(--night-line);
}
.term-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-muted);
  padding: 10px 20px 0;
}
.term-foot {
  border-top: 1px solid var(--night-line);
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.term-foot b {
  font-weight: 400;
  color: var(--led);
}
@media (max-width: 640px) {
  .term-split {
    grid-template-columns: 1fr;
  }
  .term-split > div + div {
    border-left: 0;
    border-top: 1px solid var(--night-line);
  }
}

/* ---- Dashboard ---------------------------------------------------------- */
.console {
  border: 1px solid var(--ink);
  background: var(--night);
  color: var(--bone);
  box-shadow: 14px 14px 0 var(--paper-3);
}
.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.console-head .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bone);
}
.console-body {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1px;
  background: var(--night-line);
}
.console-cell {
  background: var(--night);
  padding: 16px;
}
.console-cell--chart {
  grid-row: span 2;
}
.console-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: 12px;
}
.console-big {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--bone);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.console-big small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--led);
}
.chart {
  width: 100%;
  height: auto;
  margin-top: 8px;
}
.chart .grid {
  stroke: var(--night-line);
  stroke-width: 1;
}
.chart .area {
  fill: url(#areaFill);
}
.chart .line {
  fill: none;
  stroke: var(--sig-on-night);
  stroke-width: 1.6;
}
.chart .draw {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}
.is-in .chart .draw {
  animation: draw 2.2s var(--ease) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.chart .axis {
  font-family: var(--font-mono);
  font-size: 6.4px;
  fill: var(--bone-muted);
  letter-spacing: 0.1em;
}
.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--night-line);
}
.kpi {
  background: var(--night);
  padding: 13px 15px;
}
.kpi span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: 6px;
}
.kpi b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.kpi b i {
  font-style: normal;
  font-size: 9px;
  color: var(--led);
  margin-left: 4px;
}
.dev-list {
  display: grid;
  gap: 0;
}
.dev {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--bone-muted);
}
.dev:last-child {
  border-bottom: 0;
}
.dev .d-name {
  color: var(--bone);
}
.dev .d-proto {
  margin-left: auto;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dev .d-state {
  width: 44px;
  text-align: right;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dev .d-state.ok {
  color: var(--led);
}
.dev .d-state.warn {
  color: var(--sig-on-night);
}
.console-note {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
@media (max-width: 860px) {
  .console-body {
    grid-template-columns: 1fr;
  }
  .console-cell--chart {
    grid-row: auto;
  }
}

/* ---- Feature grid (inner pages) ---------------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}
.feature {
  padding: clamp(22px, 2.8vw, 36px) clamp(18px, 2.4vw, 34px) clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line-2);
}
.feature:nth-child(odd) {
  border-right: 1px solid var(--line-2);
  padding-right: clamp(22px, 3vw, 48px);
}
.feature:nth-child(even) {
  padding-left: clamp(22px, 3vw, 48px);
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--sig-deep);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.feature p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 46ch;
}
@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature:nth-child(odd),
  .feature:nth-child(even) {
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---- Prose / inner page content ---------------------------------------- */
.page-hero {
  padding: clamp(40px, 5.6vw, 78px) 0 clamp(38px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -40%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 40px rgba(20, 21, 15, 0.018), 0 0 0 120px rgba(20, 21, 15, 0.012);
  pointer-events: none;
}
.page-hero .crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: clamp(26px, 3.4vw, 44px);
  position: relative;
  z-index: 1;
}
.page-hero .crumbs a:hover {
  color: var(--ink);
}
.page-hero .crumbs .sep {
  color: var(--line-2);
}
.page-hero .eyebrow {
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(44px, 6.4vw, 104px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 17ch;
  position: relative;
  z-index: 1;
}
.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sig);
  letter-spacing: -0.015em;
}
.page-hero .lede {
  margin-top: clamp(22px, 2.6vw, 34px);
  position: relative;
  z-index: 1;
}
.page-hero .hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero .hero-meta-row b {
  font-weight: 400;
  color: var(--ink);
}

.prose {
  max-width: 74ch;
}
.prose h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 20px;
}
.prose h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 34px 0 10px;
}
.prose p {
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 68ch;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1px;
  background: var(--sig);
}
.prose .muted {
  color: var(--muted);
}
.prose--tight p {
  max-width: 62ch;
}
.band {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.band--first {
  border-top: 0;
}
.band--night {
  background: var(--night);
  color: var(--bone);
  border-top-color: var(--night);
}
.band--night .prose p,
.band--night .prose ul li {
  color: var(--bone-muted);
}
.band--paper2 {
  background: var(--paper-2);
}
.band-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.band-head h2 {
  max-width: 20ch;
}

/* number + text columns without cards */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.cols-3 > div {
  background: var(--paper);
  padding: 26px 24px 30px;
}
.section--night .cols-3,
.band--night .cols-3 {
  background: var(--night-line);
  border-color: var(--night-line);
}
.band--night .cols-3 > div {
  background: var(--night);
}
.cols-3 h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.cols-3 p {
  color: var(--muted);
  font-size: 14.5px;
}
.band--night .cols-3 p {
  color: var(--bone-muted);
}
.cols-3 .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--sig-deep);
  margin-bottom: 16px;
}
.band--night .cols-3 .num {
  color: var(--sig-on-night);
}
@media (max-width: 820px) {
  .cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ---- Callout ------------------------------------------------------------ */
.callout {
  background: var(--paper-2);
  border-left: 3px solid var(--sig);
  padding: 22px 26px;
  max-width: 74ch;
}
.callout p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.callout .caption {
  display: block;
  margin-top: 8px;
}

/* ---- Pricing / spec table ---------------------------------------------- */
.spec {
  border-top: 1px solid var(--ink);
  margin-top: 6px;
}
.spec table {
  min-width: 640px;
}
.spec-scroll {
  overflow-x: auto;
}
.spec thead th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.spec thead th:last-child {
  text-align: right;
}
.spec tbody td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}
.spec tbody td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink);
}
.spec .svc {
  font-weight: 600;
  color: var(--ink);
}
.spec .note {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
  max-width: 46ch;
}
.spec .unit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
}
.spec-foot .mono {
  font-size: 10px;
  color: var(--muted-2);
}

/* ---- Compliance / stamp ------------------------------------------------- */
.compliance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.stamp-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.stamp {
  width: min(300px, 74vw);
  height: auto;
  color: var(--sig-deep);
  animation: spin 64s linear infinite;
  opacity: 0.92;
}
.stamp text {
  fill: currentColor;
  font-family: var(--font-mono);
}
.stamp .stamp-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 45px;
  letter-spacing: -0.03em;
}
.stamp .stamp-sm {
  font-size: 7.4px;
  letter-spacing: 0.24em;
}
.stamp .stamp-mid {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stamp-static {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.compliance-list {
  border-top: 1px solid var(--line-2);
}
.compliance-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.compliance-list .n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--sig-deep);
}
.compliance-list b {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
}
.compliance-list span {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 860px) {
  .compliance {
    grid-template-columns: 1fr;
  }
  .stamp-wrap {
    order: -1;
  }
}

/* ---- Process ------------------------------------------------------------ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-block: 1px solid var(--line-2);
  counter-reset: step;
}
.step {
  background: var(--paper);
  padding: 26px 22px 32px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--sig);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--sig-deep);
  display: block;
  margin-bottom: 26px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* ---- CTA ---------------------------------------------------------------- */
.cta {
  background: var(--night);
  color: var(--bone);
  padding: clamp(64px, 9vw, 130px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(239, 235, 226, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 90% at 30% 20%, #000, transparent 75%);
  pointer-events: none;
}
.cta .wrap {
  position: relative;
}
.cta .eyebrow {
  color: var(--bone-muted);
  margin-bottom: 28px;
}
.cta .eyebrow .idx {
  color: var(--sig-on-night);
}
.cta h2 {
  font-size: clamp(46px, 7.6vw, 116px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 15ch;
}
.cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sig-on-night);
}
.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: 32px;
  border-top: 1px solid var(--night-line);
}
.cta-mail {
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--night-line);
  padding-bottom: 10px;
  transition: color var(--dur), border-color var(--dur);
  display: inline-block;
}
.cta-mail:hover {
  color: var(--sig-on-night);
  border-color: var(--sig-on-night);
}
.cta-meta {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
  justify-items: start;
}
.cta-meta b {
  font-weight: 400;
  color: var(--bone);
}
@media (max-width: 800px) {
  .cta-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---- Footer ------------------------------------------------------------- */
.site-foot {
  background: var(--night);
  color: var(--bone-muted);
  border-top: 1px solid var(--night-line);
}
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.75fr));
  gap: clamp(26px, 3vw, 48px);
  padding: clamp(44px, 5vw, 70px) 0 clamp(34px, 4vw, 52px);
}
.foot-brand .brand {
  margin-bottom: 18px;
}
.foot-brand .brand-word {
  color: var(--bone);
}
.foot-brand p {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
}
.foot-col h3 {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 16px;
}
.foot-col ul {
  display: grid;
  gap: 9px;
}
.foot-col a {
  font-size: 14px;
  color: var(--bone-muted);
  transition: color var(--dur);
}
.foot-col a:hover {
  color: var(--bone);
}
.foot-word {
  overflow: hidden;
  border-top: 1px solid var(--night-line);
  padding-top: 22px;
}
.foot-word span {
  display: block;
  font-weight: 900;
  font-size: clamp(60px, 23vw, 352px);
  line-height: 0.72;
  letter-spacing: -0.055em;
  color: var(--night-3);
  white-space: nowrap;
  user-select: none;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 24px;
  border-top: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-bottom .f-links {
  display: flex;
  gap: 18px;
}
.foot-bottom a:hover {
  color: var(--bone);
}
@media (max-width: 900px) {
  .foot-main {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .foot-main {
    grid-template-columns: 1fr;
  }
}

/* ---- Detail blocks / quote --------------------------------------------- */
.pull {
  border-left: 1px solid var(--line-2);
  padding-left: clamp(18px, 2.4vw, 30px);
  max-width: 34ch;
}
.pull blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pull figcaption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.contact-block {
  border-top: 1px solid var(--line-2);
  padding: 20px 0 24px;
}
.contact-block .caption {
  margin-bottom: 8px;
}
.contact-block .big {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.contact-block a.big:hover {
  color: var(--sig-deep);
}
.contact-block p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.form {
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}
.field {
  margin-bottom: 24px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 10px 0;
  font-size: 17px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--dur);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sig);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  max-width: 38ch;
}
.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sig-deep);
  min-height: 1.4em;
}
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Abstract map */
.map-board {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  margin-top: clamp(36px, 5vw, 60px);
}
.map-board svg {
  width: 100%;
  height: auto;
  display: block;
}
.map-board .map-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.map-board .map-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: 6px 10px 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.map-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.map-road {
  stroke: var(--line-2);
  stroke-width: 1.4;
  fill: none;
}
.map-ring {
  fill: none;
  stroke: var(--sig);
  opacity: 0.5;
}
.map-pin {
  fill: var(--sig);
}
.map-txt {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  fill: var(--muted);
}

/* ---- Reveal ------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="clip"].is-in {
  clip-path: inset(0 0 0 0);
}

/* ---- No-JS fallback ---------------------------------------------------- */
.no-js .nav-toggle {
  display: none;
}

@media (max-width: 700px) {
  .util {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .util .util-tag,
  .util .hide-xs {
    display: none;
  }
  .util .util-group {
    gap: 14px;
  }
  .hero-meta {
    grid-auto-flow: row;
    gap: 4px;
    white-space: normal;
  }
  .hero-copy,
  .hero-sub {
    min-width: 0;
  }
  .hero-sub p {
    max-width: none;
  }
  .panel {
    box-shadow: 8px 8px 0 var(--sig);
  }
  .cap {
    padding-left: 4px;
  }
  .foot-word span {
    font-size: clamp(56px, 21vw, 120px);
  }
  .map-board svg {
    width: 100%;
    height: 250px;
  }
  .map-board .map-label {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
  }
  .map-board .map-tag {
    top: 10px;
    right: 10px;
  }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal="clip"] {
    clip-path: none;
  }
  .ticker-track {
    animation: none;
  }
  .stamp {
    animation: none;
  }
}

/* ---- Print ------------------------------------------------------------- */
@media print {
  body::before,
  .util,
  .site-head,
  .mnav,
  .progress,
  .ticker,
  .site-foot .foot-word {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .section,
  .cta,
  .band {
    padding: 18pt 0;
    break-inside: avoid;
  }
  .hero {
    min-height: 0;
    padding: 0 0 18pt;
  }
  .panel,
  .term,
  .console {
    box-shadow: none;
  }
  a {
    text-decoration: underline;
  }
}

/* ==========================================================================
   Products — added with the product-company repositioning
   ========================================================================== */
.products {
  display: grid;
  gap: clamp(56px, 8vw, 116px);
}
.product {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3.4vw, 54px);
  align-items: center;
}
.product-visual {
  grid-column: 1 / span 7;
  position: relative;
}
.product-copy {
  grid-column: 8 / span 5;
}
.product--rev .product-visual {
  grid-column: 6 / span 7;
  grid-row: 1;
}
.product--rev .product-copy {
  grid-column: 1 / span 5;
  grid-row: 1;
}
.product-frame {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 16px 16px 0 var(--sig);
}
.product-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.product-frame--night {
  background: var(--night);
  color: var(--bone);
}
.product-frame--night::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(239, 235, 226, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 235, 226, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.product-frame .phone {
  position: absolute;
  right: -20px;
  bottom: -26px;
  width: clamp(74px, 9vw, 132px);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.product-frame .phone img {
  display: block;
  width: 100%;
  height: auto;
}
.product-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 42px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.product-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sig-deep);
  margin-bottom: 10px;
}
.product-logo {
  height: clamp(26px, 2.6vw, 38px);
  width: auto;
  margin-bottom: 14px;
}
.product-name {
  font-size: clamp(36px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.product-lede {
  margin-top: 16px;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
.product-specs {
  margin-top: 20px;
  border-top: 1px solid var(--line-2);
}
.product-specs li {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.product-specs b {
  flex: 0 0 78px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.product-copy .tag-row {
  margin-top: 18px;
}
.product-copy .btn-row {
  margin-top: 24px;
}
.product--rev .product-code {
  color: var(--sig-deep);
}
@media (max-width: 980px) {
  .product,
  .product--rev {
    grid-template-columns: 1fr;
  }
  .product-visual,
  .product-copy,
  .product--rev .product-visual,
  .product--rev .product-copy {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .product-visual {
    max-width: 720px;
  }
  .product-frame .phone {
    right: -10px;
    bottom: -18px;
  }
}

/* SolarView gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: 18px;
}
.gallery figure {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 7px 7px 0 rgba(20, 21, 15, 0.16);
  overflow: hidden;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery figcaption {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 9px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* architecture chain */
.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-block: 1px solid var(--line-2);
  margin-top: 26px;
}
.chain > div {
  background: var(--paper);
  padding: 18px 18px 22px;
}
.chain .c-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--sig-deep);
  margin-bottom: 14px;
}
.chain h4 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.chain p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.band--night .chain {
  background: var(--night-line);
  border-color: var(--night-line);
}
.band--night .chain > div {
  background: var(--night);
}
.band--night .chain p {
  color: var(--bone-muted);
}
.band--night .chain h4 {
  color: var(--bone);
}
@media (max-width: 820px) {
  .chain {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .chain {
    grid-template-columns: 1fr;
  }
}

/* Inline product logo on night backgrounds */
.product-logo--light {
  filter: brightness(0) invert(1);
}

/* Product index table on the products page */
.index-table {
  border-top: 1px solid var(--ink);
}
.index-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.3fr) 130px 30px;
  gap: clamp(14px, 2vw, 32px);
  align-items: baseline;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line-2);
  transition: background var(--dur), color var(--dur), padding-left var(--dur);
}
.index-row:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 18px;
}
.index-row:hover .index-name {
  color: var(--paper);
}
.index-row:hover .index-desc {
  color: #c9c6b9;
}
.index-row:hover .index-code {
  color: var(--sig-on-night);
}
.index-row:hover .index-ar {
  color: var(--sig-on-night);
  transform: translate(4px, -4px);
}
.index-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--sig-deep);
}
.index-name {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.index-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 56ch;
}
.index-status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.index-ar {
  justify-self: end;
  font-family: var(--font-mono);
  transition: transform var(--dur) var(--ease), color var(--dur);
}
@media (max-width: 820px) {
  .index-row {
    grid-template-columns: 44px 1fr 24px;
  }
  .index-desc {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
  .index-status {
    display: none;
  }
}
