/* ORRA — orracore.com
 * ─────────────────────────────────────────────────────────────────────────
 * Palette discipline. Three accents, ranked, never used at equal weight:
 *
 *   Cyan     #22d3ee  ENERGISED. Live values, field lines, the single link
 *                     hover state, the frequency numerals. The page's one
 *                     "this is on" colour.
 *   Indigo   #4257c4  STRUCTURE. Rules, section chrome, panel borders,
 *                     inactive states. Never a call to action.
 *   Crimson  #c8102e  ACTION. The primary button and the ORRA mark's C.
 *                     Nothing else, so it still means something.
 *
 * Red #ff4438 and amber exist only inside diagram fills, where they stand
 * for the 660 nm emitter and warm thermal — they never appear in chrome.
 *
 * Type. Instrument Sans for display, Inter for body, IBM Plex Mono for part
 * numbers, frequencies and dimensions ONLY. A headline set in mono reads as
 * a terminal template rather than as a brand.
 *
 * Motion. One WebGL scene (home hero) and one Canvas 2D layer (waveforms).
 * Everything else is a border, an underline, or a state change. There are no
 * drifting blurred colour orbs on this site, no cursor spotlight, and no
 * text-shadow glow on labels — if everything glows, nothing reads as live.
 */

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

:root {
  --bg: #05070f;
  --bg-1: #080d1c;
  --bg-2: #0b1226;
  --panel: #0a1020;
  --panel-2: #0e1730;

  --ink: #ffffff;
  --ink-2: #e3e8f5;
  --muted: #9aa5c2;
  --muted-2: #6b7695;

  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.42);
  --cyan-wash: rgba(34, 211, 238, 0.09);
  --indigo: #4257c4;
  --indigo-wash: rgba(66, 87, 196, 0.14);
  --crimson: #c8102e;
  --crimson-hi: #e01936;

  --rule: rgba(255, 255, 255, 0.09);
  --rule-2: rgba(66, 87, 196, 0.3);

  --font-display: 'Instrument Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: 22px;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 600; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; letter-spacing: -0.021em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.15rem); }
h2 { font-size: clamp(1.72rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.115rem; letter-spacing: -0.012em; }
h4 { font-size: 0.79rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 40px; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--crimson); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 15, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; min-height: 46px; }
.brand img { width: 40px; height: 40px; }
.brand__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.16rem;
  letter-spacing: 0.16em; color: var(--ink);
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  font-size: 0.905rem; color: var(--muted); padding: 9px 12px; border-radius: 7px;
  transition: color 0.16s ease, background 0.16s ease; white-space: nowrap;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.045); }
.nav__link.is-active { color: var(--cyan); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* products mega menu — CSS-only, opens on hover or keyboard focus */
.nav__has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: -22px;
  width: min(920px, 88vw);
  background: var(--panel-2);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62);
  padding: 24px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav__has-menu:hover .menu,
.nav__has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 22px; }
.menu__eyebrow {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px;
}
.menu__item { display: block; padding: 8px 10px; border-radius: 8px; transition: background 0.14s ease; }
.menu__item:hover { background: rgba(34, 211, 238, 0.08); }
.menu__item-name { display: block; font-weight: 500; color: var(--ink); font-size: 0.925rem; }
.menu__item-sub { display: block; font-size: 0.78rem; color: var(--muted-2); line-height: 1.35; }
.menu__col--feature { border-left: 1px solid var(--rule); padding-left: 22px; }
.menu__feature { display: block; }
.menu__feature-title { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-bottom: 6px; }
.menu__feature-body { display: block; font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.menu__feature-cta { display: block; margin-top: 12px; font-size: 0.83rem; color: var(--cyan); }

/* mobile drawer */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 40px; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.drawer { display: none; border-top: 1px solid var(--rule); background: var(--bg-1); padding: 10px var(--gutter) 22px; }
.drawer__link, .drawer__group summary {
  display: block; padding: 13px 2px; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); font-size: 1rem; cursor: pointer; list-style: none;
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary::after { content: '+'; float: right; color: var(--muted-2); }
.drawer__group[open] summary::after { content: '-'; }
.drawer__sub { padding: 6px 0 10px 14px; }
.drawer__sub a { display: block; padding: 9px 0; color: var(--muted); font-size: 0.93rem; }

@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .drawer[data-open="1"] { display: block; }
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.955rem;
  padding: 13px 24px; border-radius: 9px; border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  cursor: pointer; white-space: nowrap;
}
.btn--sm { padding: 9px 17px; font-size: 0.875rem; }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-hi); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.18); color: var(--ink); }
.btn--ghost:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.link { color: var(--cyan); font-size: 0.93rem; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.16s; }
.link:hover { border-color: var(--cyan-dim); }

/* ── hero ──────────────────────────────────────────────────────────────────
   Two layouts, not one scaled down.

   Desktop: the canvas is a full-bleed background and a horizontal scrim
   darkens the left 60% so the headline always sits on near-black. The scene
   itself is positioned to the right of frame in hero-scene.js; the scrim is
   the belt to that braces.

   Mobile: the canvas stops being a background and becomes its own block
   BELOW the copy. A 3D scene behind body text at 375px is not a hero, it is
   a legibility failure — the first build of this page had exactly that and
   the paragraph was unreadable over the exploded stack. */
.hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  /* Poster frame, painted under the canvas so first paint is branded rather
     than black while the WebGL module loads. */
  background:
    radial-gradient(110% 86% at 74% 44%, rgba(66, 87, 196, 0.22) 0%, transparent 58%),
    radial-gradient(64% 58% at 80% 54%, rgba(34, 211, 238, 0.14) 0%, transparent 62%),
    linear-gradient(180deg, #060a16 0%, #05070f 100%);
}
.hero__stage { position: absolute; inset: 0; z-index: 0; }
#heroCanvas {
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.9s ease;
}
#heroCanvas.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  /* The copy column ends at ~50% of a 1440 viewport, so the scrim is opaque
     to 38%, falls off across 44-54%, and is gone by 60%. Any later and it
     eats the object it is meant to sit beside. */
  background: linear-gradient(90deg,
    rgba(5, 7, 15, 0.97) 0%,
    rgba(5, 7, 15, 0.94) 38%,
    rgba(5, 7, 15, 0.6) 47%,
    rgba(5, 7, 15, 0.12) 56%,
    transparent 64%);
}
.hero__inner { position: relative; z-index: 1; padding: 96px 0 86px; }
.hero__copy { max-width: 600px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 16px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero__lede { font-size: 1.11rem; color: var(--ink-2); max-width: 560px; }
.hero__sub { margin-top: 18px; font-size: 0.95rem; color: var(--muted); max-width: 540px; }

.hero__readouts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 40px; max-width: 760px;
}

@media (max-width: 980px) {
  .hero { display: flex; flex-direction: column; }
  .hero__stage { position: relative; inset: auto; order: 2; height: 320px; width: 100%; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.86) 0%, rgba(5, 7, 15, 0.18) 30%, transparent 60%, rgba(5, 7, 15, 0.9) 100%);
  }
  .hero__inner { order: 1; padding: 60px 0 26px; }
  .hero__readouts { grid-template-columns: 1fr; margin-top: 30px; }
}

/* the small readout panel beside the hero */
.readout {
  border: 1px solid var(--rule-2); border-radius: 12px;
  background: rgba(8, 13, 28, 0.68); backdrop-filter: blur(6px);
  padding: 16px 18px;
}
.readout__k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.readout__v { font-family: var(--font-mono); font-size: 1.28rem; color: var(--cyan); margin-top: 4px; }
.readout__n { font-size: 0.78rem; color: var(--muted-2); margin-top: 4px; line-height: 1.4; }

/* ── page head ─────────────────────────────────────────────────────────── */
.pagehead { padding: 76px 0 44px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, #070c1a 0%, var(--bg) 100%); }
.crumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--cyan); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 760px; margin-top: 18px; }
.lede--sec { margin-bottom: 32px; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }

/* ── sections ──────────────────────────────────────────────────────────── */
.sec { padding: 74px 0; border-bottom: 1px solid var(--rule); }
.sec--tight { padding: 52px 0; }
.sec--panel { background: var(--bg-1); }
.sec--deep { background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%); }
.sec h2 { margin-bottom: 4px; }
.sec .eyebrow { margin-bottom: 12px; }
.prose { max-width: 760px; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); }
.prose h3 { margin: 30px 0 10px; color: var(--ink); }
.prose ul { margin: 14px 0 0 20px; color: var(--muted); }
.prose li { margin-bottom: 9px; }

/* ── stats ─────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; margin-top: 30px; }
.stat { background: var(--panel); padding: 22px 20px; }
.stat__v { font-family: var(--font-mono); font-size: 1.62rem; color: var(--cyan); letter-spacing: -0.02em; }
.stat__l { font-size: 0.88rem; color: var(--ink-2); margin-top: 6px; }
.stat__n { font-size: 0.775rem; color: var(--muted-2); margin-top: 5px; line-height: 1.45; }

/* ── cards ─────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; margin-top: 30px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 12px;
  padding: 24px; transition: border-color 0.16s ease, background 0.16s ease;
}
a.card:hover { border-color: var(--cyan-dim); background: var(--panel-2); }
.card__eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 11px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.925rem; color: var(--muted); }
.card__foot { margin-top: 14px; font-size: 0.83rem; color: var(--cyan); }

/* Product cards carry a render and a price line.
   The media band is full-bleed, so the card's own padding moves to __body. */
.pcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
/* Square, because the source is square. build-renders.mjs writes every thumb at
   720x720 and hard-fails a non-square source, so a 4/3 frame here (what this was
   until 2026-09-01) did not letterbox — with object-fit:cover it silently cut a
   quarter of the height off a centred product and clipped the Node's cord and
   the Dome's brim. Match the source and nothing is thrown away. */
.pcard__media {
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  overflow: hidden;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.pcard__price { font-family: var(--font-mono); font-size: 1.02rem; color: var(--ink); margin-top: auto; padding-top: 16px; }
.pcard__price span { font-size: 0.7rem; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; margin-left: 8px; }

/* ── product renders ───────────────────────────────────────────────────────
   The frame is the same panel and rule as .fig, so a photographic render and
   a drawn SVG figure sit in one visual system rather than reading as two
   different sites. Renders are never full-bleed on the page background: an
   image whose own edges are dark navy, floated on dark navy, has no edge, and
   the reader cannot tell where the picture stops.                            */
.shot {
  margin-top: 30px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }
.shot__cap {
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.83rem;
  color: var(--muted-2);
  line-height: 1.55;
}
.shot__cap .link { font-size: inherit; }

/* A full source sheet. Wider caption measure, and the whole image is a link
   to itself so the annotations can actually be read at 1:1. */
.shot--sheet { margin-top: 34px; border-color: var(--rule-2); }
.shot--sheet a { display: block; }
.shot--sheet img { background: #0d1b34; }

/* Every render is square. Not "usually" — build-renders.mjs exits non-zero on a
   source that is not, so this is enforced upstream rather than hoped for here.
   Stating it anyway means one non-square file slipped past a future change
   cannot drag a row of frames out of alignment: it gets matted, and the layout
   holds. This is the rule that replaced .shot--tall, a max-height cap that
   existed only because the crop era produced renders from 0.36:1 to 1.11:1. */
.shot:not(.shot--sheet) img { aspect-ratio: 1 / 1; object-fit: contain; }

/* Three across, because there are exactly nine units. auto-fit put five in the
   first row and four in the second, which reads as "however many fitted" rather
   than as a complete set — and left a hole in the bottom-right corner. */
.shotgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (max-width: 720px) { .shotgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shotgrid .shot { margin-top: 0; }
/* Was 3/4 with object-fit:cover, which cut the top and bottom off nine square
   product shots to force them into portrait cells. The source is square; the
   cell is square. */
.shotgrid .shot img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Inside a .split column the frame should not add its own top margin — the
   grid gap already spaces it from the copy beside it.
   This said `:first-child` until 2026-09-01, so in a split holding TWO figures
   the second one kept .shot's 30px margin-top and the pair sat 30px out of
   alignment. Two framed images side by side with mismatched top edges is the
   single most visible way a two-column layout looks unmade. */
.split > .shot, .split > div > .shot:first-child { margin-top: 0; }

/* A split holding two renders rather than copy-plus-render. Both images are
   square and both columns are 1fr, so the pictures are already the same height;
   this makes the FRAMES the same height too by pushing each caption bar to the
   bottom of its own frame. Without it a one-line caption and a two-line caption
   leave the two panels ending at different heights. Deliberately separate from
   .split--top: stretching a copy column to match a picture would strand the
   text against the top of a tall empty box. */
.split--pair { align-items: stretch; }
.split--pair > .shot { display: flex; flex-direction: column; }
.split--pair > .shot img { flex: 0 0 auto; }
.split--pair > .shot .shot__cap { margin-top: auto; }

/* ── tables ────────────────────────────────────────────────────────────── */
.tablewrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.t { width: 100%; border-collapse: collapse; font-size: 0.905rem; min-width: 540px; }
.t th {
  text-align: left; padding: 13px 16px; background: var(--bg-2);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.t td { padding: 14px 16px; border-bottom: 1px solid var(--rule); color: var(--muted); vertical-align: top; }
.t tbody tr:last-child td { border-bottom: 0; }
.t td:first-child { color: var(--ink-2); font-weight: 500; }
.t--mono td:nth-child(2) { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan); }
.t--num td:last-child { font-family: var(--font-mono); color: var(--ink); text-align: right; white-space: nowrap; }

/* ── mode chips ────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  border: 1px solid var(--rule); border-left-width: 3px; border-radius: 9px;
  padding: 12px 18px 12px 15px; background: var(--panel); min-width: 148px;
}
.chip--cyan { border-left-color: var(--cyan); }
.chip--indigo { border-left-color: var(--indigo); }
.chip--crimson { border-left-color: var(--crimson); }
.chip__hz { display: block; font-family: var(--font-mono); font-size: 1.06rem; color: var(--ink); }
.chip__name { display: block; font-size: 0.9rem; color: var(--ink-2); margin-top: 3px; }
.chip__band { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }

/* ── layer stack list (product pages) ──────────────────────────────────── */
.stack { margin-top: 30px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.stack__row { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--rule); background: var(--panel); }
.stack__row:last-child { border-bottom: 0; }
.stack__n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--cyan); padding-top: 2px; }
.stack__d { font-size: 0.93rem; color: var(--ink-2); }
.stack__x { font-size: 0.83rem; color: var(--muted-2); margin-top: 4px; }
@media (max-width: 640px) { .stack__row { grid-template-columns: 1fr; gap: 6px; } }

/* ── notes / callouts ──────────────────────────────────────────────────── */
.note {
  margin-top: 24px; padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--rule); border-left: 3px solid var(--indigo);
  background: var(--indigo-wash); font-size: 0.9rem; color: var(--ink-2);
}
.note--warn { border-left-color: var(--crimson); background: rgba(200, 16, 46, 0.1); }
.note--live { border-left-color: var(--cyan); background: var(--cyan-wash); }

/* ── figures / diagrams ────────────────────────────────────────────────── */
.fig { margin-top: 34px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); padding: 26px 22px 18px; }
.fig svg { width: 100%; height: auto; }
.fig__cap { margin-top: 16px; font-size: 0.83rem; color: var(--muted-2); font-family: var(--font-mono); letter-spacing: 0.02em; }
.fig--flush { padding: 0; overflow: hidden; }
.fig--flush img { width: 100%; }

.canvasfig { margin-top: 30px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); overflow: hidden; }
.canvasfig canvas { width: 100%; display: block; }
.canvasfig__cap { padding: 14px 20px; border-top: 1px solid var(--rule); font-size: 0.83rem; color: var(--muted-2); font-family: var(--font-mono); }

/* ── split (copy beside a figure) ──────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 34px; }
.split--copyfirst { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
/* Two renders of different aspect ratios centred against each other leaves a
   tall empty band above the shorter one. Top-align any split that holds a
   picture; the ragged bottom edge is the correct reading of a two-column
   layout, the floating image is not. */
.split--top { align-items: start; }
@media (max-width: 900px) { .split, .split--copyfirst { grid-template-columns: 1fr; gap: 28px; } }

/* ── closing band ──────────────────────────────────────────────────────── */
.closing { padding: 72px 0; background: linear-gradient(180deg, var(--bg-1) 0%, #070c1a 100%); border-bottom: 1px solid var(--rule); }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; }
.closing h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.closing p { color: var(--muted); max-width: 520px; }
.closing__cols { display: grid; gap: 30px; align-content: center; }
.closing__cols h3 { margin-bottom: 7px; }
.closing__cols p { font-size: 0.91rem; margin-bottom: 10px; }
@media (max-width: 900px) { .closing__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { padding: 60px 0 40px; background: var(--bg); }
.foot__top { display: grid; grid-template-columns: auto minmax(0, 520px); gap: 40px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.brand--foot img { width: 40px; height: 40px; }
.foot__blurb { font-size: 0.9rem; color: var(--muted-2); }
.foot__map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; padding: 40px 0; }
.foot__col h4 { margin-bottom: 14px; }
.foot__col a { display: block; font-size: 0.87rem; color: var(--muted); padding: 4px 0; transition: color 0.14s; }
.foot__col a:hover { color: var(--cyan); }
.foot__legal { padding-top: 28px; border-top: 1px solid var(--rule); }
.foot__disclaimer { font-size: 0.8rem; color: var(--muted-2); line-height: 1.6; max-width: 900px; margin-bottom: 22px; }
.foot__disclaimer strong { color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.79rem; color: var(--muted-2); }
.foot__links a { margin-left: 20px; }
.foot__links a:first-child { margin-left: 0; }
.foot__links a:hover { color: var(--cyan); }
.foot__powered { margin-top: 20px; font-size: 0.79rem; color: var(--muted-2); }
.foot__powered a { color: var(--muted); border-bottom: 1px solid var(--rule); }
.foot__powered a:hover { color: var(--cyan); }
@media (max-width: 900px) {
  .foot__top { grid-template-columns: 1fr; gap: 20px; }
  .foot__map { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ── contact form ──────────────────────────────────────────────────────── */
.form { margin-top: 30px; max-width: 620px; display: grid; gap: 16px; }
.form label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 7px; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--panel); border: 1px solid var(--rule);
  border-radius: 9px; padding: 12px 14px; color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--cyan-dim); }
.form textarea { min-height: 128px; resize: vertical; }

/* ── reveal (the only entrance animation on the site) ──────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  #heroCanvas { opacity: 1; }
}
