/* HorneSci — Swiss DNA. Black and white, cool lean, no beige anywhere.
   The old palette was warm by construction (--paper at hue 85, amber --key).
   Everything here leans blue-black instead: same restraint, different temperature. */

:root {
  /* Two tones. Swiss restraint means the palette IS the discipline. */
  --bg:        oklch(0.99 0.003 250);   /* cool near-white, never #fff */
  --fg:        oklch(0.10 0.012 250);   /* blue-black, never #000 */
  --fg-muted:  oklch(0.46 0.010 250);
  --line:      oklch(0.88 0.006 250);
  --bg-invert: oklch(0.09 0.012 250);   /* the footer slab */
  --fg-invert: oklch(0.96 0.004 250);
  --muted-invert: oklch(0.62 0.008 250);

  /* One structural accent, used for measurement only — never decoration. */
  --live:      oklch(0.72 0.17 145);

  /* No webfont request. privacy.html states the site makes "no third-party
     requests", and loading fonts.googleapis.com would have made that false --
     a page that contradicts its own privacy policy is worse than a page with
     a slightly less distinctive face. To self-host later: drop the woff2 into
     assets/ and add an @font-face here; nothing else needs to change. */
  --font-display: "Helvetica Neue", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* ---- type scale: three distinct steps, varying size AND weight AND tracking --- */

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 1.2rem + 7.2vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 1.5rem;
}

.lede { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.45; max-width: 34ch; }
p { max-width: 62ch; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--fg-muted); }

/* ---- hero: prod's landing shape, on the ink ------------------------------------
   The structure is prod's (src/style.css): the 72px survey grid with two diagonal
   scan streaks on a slow 18s crawl, the statement on top, and the camera frame
   with the live tile diff contained below it. The surface is this design's:
   blue-black ink, inverted type, and the streaks in grey rather than prod's
   green/teal — black and white is the palette, the accent is for measurement
   only, and the only colour on the landing is the tiles marking motion. */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, oklch(0.96 0.004 250 / 0.05) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.96 0.004 250 / 0.04) 1px, transparent 1px),
    var(--bg-invert);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--fg-invert);
  isolation: isolate;
  --field-scan-distance: 3rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  background:
    linear-gradient(115deg, transparent 0 38%, oklch(0.96 0.004 250 / 0.07) 38% 39%, transparent 39% 100%),
    linear-gradient(115deg, transparent 0 61%, oklch(0.96 0.004 250 / 0.05) 61% 62%, transparent 62% 100%);
  animation: field-scan 18s linear infinite;
}

.hero::after {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 9rem,
      oklch(0.92 0.004 250 / 0.03) 9rem 9.06rem
    );
  opacity: 0.8;
}

@keyframes field-scan {
  0% {
    transform: translateX(calc(var(--field-scan-distance) * -1));
  }
  100% {
    transform: translateX(var(--field-scan-distance));
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
  /* top clearance for the absolute nav, then prod's gap down to the frame */
  padding-block: clamp(8rem, 6rem + 8vh, 12rem) clamp(3rem, 7vw, 6rem);
}

.hero .h-display { color: var(--fg-invert); }

/* Flat ink under the type again, so the muted pair calibrated against the
   footer slab holds here too. */
.hero .eyebrow { color: var(--muted-invert); }

.hero-sub {
  margin: 1.75rem 0 0;
  max-width: 46ch;
  color: var(--muted-invert);
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.25rem);
}

/* The camera frame, as prod presents it: contained, hairline border, the tile
   diff drawn on a canvas the exact size of the video box. The overlay script
   (prod's initCamera, ported) measures the <video>, not the wrapper, so the
   1px border must stay on .video-frame. */
.camera-stage {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.video-frame {
  position: relative;
  /* the hairline, translated for ink: a step lighter than the ground, exactly
     as prod's sits a step darker than the paper */
  border: 1px solid oklch(0.30 0.01 250);
  background: var(--bg-invert);
  overflow: hidden;
}
.video-frame video { display: block; width: 100%; height: auto; }
.video-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* ---- the three sections: asymmetric split, deliberately NOT cards ------------ */

.band { width: min(100% - 3rem, 82rem); margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 5vw, 7rem);
  padding-block: clamp(5rem, 3rem + 9vw, 11rem);
  border-top: 1px solid var(--line);
}
.split:first-of-type { border-top: 0; }
.split > div > p + p { margin-top: 1.1rem; }

.ledger { margin: 2.25rem 0 0; border-top: 1px solid var(--line); }
.ledger div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger dt { font-size: 0.9375rem; }
.ledger dd { margin: 0; font-family: var(--font-data); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.ledger .note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--fg-muted); max-width: 60ch; }

.cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 0.15em;
  transition: letter-spacing 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cta:hover { letter-spacing: 0.005em; border-color: var(--fg-muted); }

/* ---- the black slab: full site map ------------------------------------------- */

.slab {
  background: var(--bg-invert);
  color: var(--fg-invert);
  margin-top: clamp(4rem, 2rem + 6vw, 8rem);
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem) 3rem;
}
.slab a { color: var(--muted-invert); text-decoration: none; }
.slab a:hover { color: var(--fg-invert); text-decoration: underline; text-underline-offset: 0.25em; }

.slab-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.2rem + 6vw, 6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2.5rem 2rem;
}
.map h3 {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.52 0.008 250);
  margin: 0 0 1rem;
}
.map ul { list-style: none; margin: 0; padding: 0; }
.map li { margin-bottom: 0.6rem; font-size: 0.9375rem; }

.colophon {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-top: 1.75rem;
  border-top: 1px solid oklch(0.24 0.01 250);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: oklch(0.52 0.008 250);
}

/* ---- nav --------------------------------------------------------------------- */

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
  padding-block: 1.75rem;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem;
}
/* Inverted, over flat ink — the slab's calibration applies; it stays absolute
   so the field runs under it to the very top of the viewport. */
.nav a { text-decoration: none; color: var(--muted-invert); font-size: 0.9375rem; }
.nav a:hover { color: var(--fg-invert); }
.nav .mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -0.01em; color: var(--fg-invert);
}
.nav nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }

/* ---- content pages: the same system without a hero -------------------------- *
   The home page carries the field hero; every other page opens on the plain
   cool near-white. These primitives give those pages the same nav, type and
   slab footer, so the site reads as one object. No new palette, no new fonts. */

/* Nav in normal flow on light ground — the hero's .nav is absolute and inverted. */
.topbar {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
  padding-block: 1.75rem;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.topbar .mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -0.01em; color: var(--fg); text-decoration: none;
}
.topbar nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: var(--fg-muted); font-size: 0.9375rem; }
.topbar nav a:hover { color: var(--fg); }
.topbar nav a[aria-current="page"] { color: var(--fg); }

/* Page head: the typographic opening a content page gets in place of the hero.
   One step down from .h-display so it never competes with the home statement. */
.page-head {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(2rem, 1rem + 3vw, 4rem);
}
.page-head .h-display { font-size: clamp(2.5rem, 1.5rem + 5vw, 6rem); }
.page-head .lede { margin-top: 1.75rem; max-width: 46ch; color: var(--fg-muted); }
.page-head .cta { margin-top: 2rem; }
.page-head .fine { margin-top: 1.25rem; font-size: 0.875rem; color: var(--fg-muted); }

/* Prose inside the split's right column: lists the home page never needed. */
.split ol, .split ul { max-width: 62ch; margin: 1.1rem 0 0; padding-left: 1.15rem; }
.split li { margin-bottom: 0.6rem; }
.split li::marker { color: var(--fg-muted); }
.split ol { list-style: decimal; }
.split ol li::marker { font-family: var(--font-data); font-size: 0.9em; }

/* A full-width prose band, for a page whose content isn't a two-column split. */
.band.prose { padding-block: clamp(3rem, 2rem + 4vw, 6rem); border-top: 1px solid var(--line); }
.band.prose:first-of-type { border-top: 0; }
.band.prose > * { max-width: 66ch; }
.band.prose h2 { margin: 2.5rem 0 0; }
.band.prose h2:first-child { margin-top: 0; }
.band.prose ol, .band.prose ul { padding-left: 1.15rem; }
.band.prose li { margin-bottom: 0.6rem; }

/* Data tables — hairline rules, mono numerics; the Swiss way, not a card. */
.band table, .split table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 0; font-size: 0.9375rem; }
.band th, .band td, .split th, .split td {
  text-align: left; padding: 0.7rem 1.25rem 0.7rem 0;
  border-bottom: 1px solid var(--line); vertical-align: baseline;
}
.band thead th, .split thead th {
  font-family: var(--font-data); font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted);
  border-bottom-color: var(--fg-muted);
}
.band td, .split td { font-variant-numeric: tabular-nums; }
.band table :is(td, th):last-child, .split table :is(td, th):last-child { padding-right: 0; }

@media (max-width: 46rem) {
  .split { grid-template-columns: 1fr; }
  /* prod shortens the scan on small screens so the streaks don't sweep the
     whole frame */
  .hero { --field-scan-distance: 1.45rem; }
  /* The hero nav used to be display:none here, which left the phone with a
     wordmark and no way anywhere -- while .topbar on every other page kept its
     links. They stay, under the mark: four links plus the wordmark do not fit
     on one 375px line (318px of the 327px available at 0.875rem, and a 320px
     phone is short by 46px), and wrapping in place orphans "Contact". */
  .nav { padding-block: 1.25rem; flex-wrap: wrap; row-gap: 0.75rem; }
  .nav nav { width: 100%; gap: 1.1rem; }
  .nav nav a { font-size: 0.875rem; }
  .topbar nav { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- programs strip in the slab ---------------------------------------------
   The vendors' own program badges: NVIDIA's Inception Program badge and AWS's
   "Powered by AWS" badge (d0.awsstatic.com/logos/powered-by-aws.png, the file
   AWS publishes on its co-marketing page). AWS does not publish an Activate
   badge, so "Powered by AWS" is the mark that actually exists for this.

   SELF-HOSTED in dev/assets/, never hotlinked -- privacy.html states the site
   makes no third-party requests, which is also why this file ships no webfont.
   Both are lazy with width/height attributes, so the box is reserved and a
   late fetch cannot shift the footer.

   Both badges are dark-artwork-on-transparent (the NVIDIA one carries its own
   near-white panel, #f3f4f4), so on the dark slab they sit on a plaque of that
   exact colour -- the NVIDIA panel then blends into it seamlessly instead of
   showing a seam. Fixed plaque height keeps two differently-proportioned
   badges optically level. */

.programs {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-top: 1.75rem;
  border-top: 1px solid oklch(0.24 0.01 250);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem clamp(1.5rem, 4vw, 3rem);
}
.programs h3 {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.52 0.008 250);
  margin: 0;
}
.programs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.program-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 0.9rem;
  background: #f3f4f4;
  border-radius: 2px;
  text-decoration: none;
  opacity: 0.94;
  transition: opacity 0.2s var(--ease);
}
.program-badge:hover,
.program-badge:focus-visible { opacity: 1; text-decoration: none; }
/* No width/height here on purpose: the <img> width/height ATTRIBUTES are the
   sizing (82x36 and 67x24, each the artwork's own ratio, picked so the two
   badges sit optically level). Setting `width:auto;height:auto` in CSS beats
   those attributes and both badges snap back to full natural size, blowing
   out of the plaque -- which is exactly what happened here once.

   No `max-width:100%` either: the plaque is a shrink-to-fit flex box, so a
   percentage max-width on its only child is circular and Chrome resolves the
   image to 0px wide. The attributes alone are the sizing. */
.program-badge img { display: block; }
.programs + .colophon { margin-top: 2.25rem; }
