/* AccuraTrials launch site: tokens and the chrome shared by the home page and
   the Evidence Log (rails, nav, star button, hatch divider, footer, mobile menu).
   Page styles live in home.css and blog/post.css. */
/* Newsreader, the display face (SIL Open Font License 1.1, see
   fonts/Newsreader-OFL.txt), served from this site so no page waits on a
   third-party stylesheet before it can paint. One variable file per script
   range (weight 400 to 500, optical size 6 to 72); Latin is preloaded. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/launch/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/launch/fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* One palette for every page (static, blog and Angular): navy-black ground,
     cool neutral ink, one cyan accent. Green means passed or live, red means
     flagged, and nothing else uses either. */
  --bg: #05080D;
  --fg: #ECEFF4;
  --muted: #9AA3B2;
  --card: #0A0F17;
  --well: #070B12;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  /* Text on --bg: --label is the lowest alpha that still clears WCAG AA. */
  --label: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.5);
  --flag: #FF453A;
  --live: #6ee7b7;
  --accent: #5CC8FF;
  --accent-soft: rgba(92, 200, 255, 0.35);
  --accent-faint: rgba(92, 200, 255, 0.08);
  --edge: rgba(120, 170, 220, 0.16);
  --comet: #36cfff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --measure: 720px;
  --frame: 1400px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255, 255, 255, 0.25); color: #fff; }
a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}
img { max-width: 100%; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  font: 600 12px var(--font-ui);
}
.skip-link:focus { top: 12px; color: #000; }

@keyframes starOrbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
/* Starts at 0.1, not 0: Chrome does not count text first painted at (near) zero
   opacity as the largest contentful paint, so a 0 start reports LCP seconds late. */
@keyframes heroUp { from { opacity: 0.1; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.grad {
  display: block;
  background: linear-gradient(to bottom, #ffffff, #d4d4d8, #71717a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- rails and crosshair corners ---- */
.rails {
  pointer-events: none;
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  width: 100%;
  max-width: var(--frame);
}
.rails span {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  mix-blend-mode: difference;
}
.rails .l1 { left: 20px; }
.rails .l2 { left: 28px; }
.rails .r1 { right: 20px; }
.rails .r2 { right: 28px; }
/* The light field (scroll.js): three wide pools of light behind everything,
   drifting with the scroll. Behind the page's own content (z-index -1 over
   the canvas), so it tints the dark between sections and never the text. */
.lightfield { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lightfield i { position: absolute; display: block; width: 72vmax; height: 72vmax; border-radius: 50%; will-change: transform; }
.lightfield i:nth-child(1) { left: -24vmax; top: -18vmax; background: radial-gradient(circle, rgba(0, 122, 255, 0.13), rgba(0, 122, 255, 0) 62%); }
.lightfield i:nth-child(2) { right: -30vmax; top: 18vh; background: radial-gradient(circle, rgba(54, 207, 255, 0.09), rgba(54, 207, 255, 0) 60%); }
.lightfield i:nth-child(3) { left: 18vw; bottom: -44vmax; background: radial-gradient(circle, rgba(88, 96, 255, 0.09), rgba(88, 96, 255, 0) 60%); }

/* A card picks up light under the pointer (scroll.js adds .spot and the glow
   element). The glow sits behind the card's content, over its background. */
.spot { isolation: isolate; }
.spot__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(92, 200, 255, 0.11), rgba(92, 200, 255, 0) 62%);
}
.spot.is-spot > .spot__glow { opacity: 1; }

/* The light that runs the rails: a trail filled to the reader's place on the
   page and a beam at its head, from the first pixel to the last on every page
   (scroll.js sets --p, the progress, and --v, how fast the page is moving). */
.rails__trail,
.rails__beam { position: absolute; top: 0; display: block; width: 1px; animation: rails-in 1.2s ease both; }
@keyframes rails-in { from { opacity: 0; } }
.rails__trail.l, .rails__beam.l { left: 20px; }
.rails__trail.r, .rails__beam.r { right: 20px; }
.rails__trail {
  height: 100%;
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  background: linear-gradient(to bottom, rgba(92, 200, 255, 0), rgba(92, 200, 255, 0.34));
}
.rails__beam {
  height: 24vh;
  transform: translateY(calc(var(--p, 0) * 76vh));
  background: linear-gradient(to bottom, rgba(150, 220, 255, 0), rgba(205, 240, 255, 0.95) 50%, rgba(150, 220, 255, 0));
  box-shadow: 0 0 calc(8px + var(--v, 0) * 14px) rgba(92, 200, 255, calc(0.4 + var(--v, 0) * 0.4));
}
.rails__beam::before,
.rails__beam::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.rails__beam::after {
  width: 5px;
  height: 5px;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(150, 220, 255, 0.8), 0 0 46px 12px rgba(54, 207, 255, 0.25);
}
/* light spilling onto the page beside the beam */
.rails__beam::before {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(54, 207, 255, calc(0.07 + var(--v, 0) * 0.1)), rgba(54, 207, 255, 0) 70%);
}

.cross {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 20;
  pointer-events: none;
}
.cross::before, .cross::after {
  content: "";
  position: absolute;
  background: linear-gradient(to bottom, transparent, rgba(226, 232, 240, 0.65) 50%, transparent);
}
.cross::before {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  transform: translateX(-50%);
}
.cross::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent, rgba(226, 232, 240, 0.65) 50%, transparent);
}
.cross.tl { left: 0; top: 0; transform: translate(-50%, -50%); }
.cross.tr { right: 0; top: 0; transform: translate(50%, -50%); }
.cross.bl { left: 0; bottom: 0; transform: translate(-50%, 50%); }
.cross.br { right: 0; bottom: 0; transform: translate(50%, 50%); }

/* ---- header and nav ---- */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
}
.site-nav {
  position: relative;
  margin: 0 auto;
  width: calc(100% - 3.5rem);
  max-width: 1344px;
  transition: background-color 400ms ease, backdrop-filter 400ms ease;
}
.site-nav.is-solid {
  background-color: rgba(11, 11, 15, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.site-nav::before, .site-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(239, 238, 233, 0.1);
  z-index: 10;
}
.site-nav::before { top: 0; }
.site-nav::after { bottom: 0; }
.site-nav__row {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand span {
  font: 600 12px var(--font-ui);
  letter-spacing: 0.16em;
  color: #fff;
}
/* The primary nav: four category menus, then Blog and Contact, which are
   screens of their own. A menu opens on click, and on hover with a mouse. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a,
.nav-group__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 400 13.5px var(--font-ui);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-links > a:hover,
.nav-group__btn:hover,
.nav-group.is-open > .nav-group__btn { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-links > a[aria-current="page"],
.nav-group__btn.is-current { color: #fff; }
.nav-links > a:focus-visible,
.nav-group__btn:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 2px; }
.nav-group__btn i {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.7;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.nav-group.is-open .nav-group__btn i { transform: translateY(1px) rotate(225deg); }
.nav-group { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  z-index: 70;
  display: grid;
  gap: 2px;
  width: 300px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 12, 18, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top left;
  transition: opacity 140ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
/* The gap under the button still belongs to the menu, so a mouse can cross it. */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-menu--wide { width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-group.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  transition: background-color 140ms ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: rgba(255, 255, 255, 0.05); outline: none; }
.nav-menu a:focus-visible { box-shadow: inset 0 0 0 1px rgba(159, 216, 255, 0.6); }
.nav-menu b { font-size: 13.5px; font-weight: 600; }
.nav-menu span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.nav-menu a[aria-current="page"] b { color: var(--accent); }

/* A page's own sections, as ticks on the left rail: out of the way, named
   when the pointer or focus reaches them. Same frame as .rails. */
.sidenav {
  position: fixed;
  z-index: 55;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: var(--frame);
  transform: translateX(-50%);
  pointer-events: none;
}
.sidenav ol {
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
  pointer-events: auto;
}
.sidenav a { position: relative; display: flex; align-items: center; width: 34px; height: 24px; }
.sidenav i {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform 220ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.sidenav a:hover i { transform: scaleX(0.75); background: rgba(255, 255, 255, 0.7); }
.sidenav a[aria-current="true"] i { transform: none; background: var(--accent); box-shadow: 0 0 8px rgba(92, 200, 255, 0.8); }
.sidenav span {
  position: absolute;
  left: 34px;
  top: 50%;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(5, 8, 13, 0.9);
  font: 500 10px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
  pointer-events: none;
}
.sidenav ol:hover span, .sidenav ol:focus-within span { opacity: 1; transform: translate(0, -50%); }
.sidenav a[aria-current="true"] span { border-color: rgba(92, 200, 255, 0.4); color: #fff; }
.sidenav a:focus-visible { outline: none; }
.sidenav a:focus-visible span { border-color: #9fd8ff; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 14px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 200ms var(--ease-out), opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

/* ---- star-orbit button and solid button ---- */
.starbtn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  color: #fff;
  transition: transform 160ms var(--ease-out);
}
.starbtn .orbit {
  position: absolute;
  inset: 0;
  width: 110px;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center, #FAFAFA, transparent 55%, transparent);
  offset-path: var(--path);
  offset-distance: 0%;
  animation: starOrbit 3s linear infinite;
}
.starbtn .fill {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 4;
}
.starbtn .label {
  position: relative;
  z-index: 10;
  font: 600 11px var(--font-ui);
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #fff;
}
.starbtn--lg { height: 40px; padding: 0 20px; }
.starbtn--lg .label { font-size: 12.5px; }
.starbtn:active, .btn-solid:active { transform: scale(0.97); }
.starbtn:hover { color: #fff; }

.btn-solid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #fff;
  color: #000;
  font: 600 12.5px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.btn-solid::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 18px;
  top: 0;
  height: 1px;
  width: calc(100% - 36px);
  background: linear-gradient(to right, rgba(10, 10, 10, 0), #737373, rgba(10, 10, 10, 0));
}
.btn-solid:hover { color: #000; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }

/* ---- hatch divider ---- */
.hatch {
  position: relative;
  margin: 0 auto;
  height: 40px;
  width: calc(100% - 3.5rem);
  max-width: 1344px;
}
.hatch__bar {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 40px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: repeating-linear-gradient(135deg, transparent 0, transparent 6px, rgba(255, 255, 255, 0.06) 6px, rgba(255, 255, 255, 0.06) 7px);
}

/* ---- page background: the ambient field (stage.js + ambient3d.js) behind the
   opening of every page except home, which has the vortex. It sits under
   <main>, inside the rails, and fades into the ground below the fold. The
   canvas fades in with a transition, not an animation, so pausing motion can
   never freeze it half-drawn. ---- */
main { position: relative; z-index: 1; }
.page-ambient {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: calc(100% - 3.5rem);
  max-width: 1344px;
  height: min(100vh, 880px);
  height: min(100svh, 880px);
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}
/* The Angular pages open with a shorter lane and wider copy, so their field is
   shorter and its shade reaches further right. */
.page-ambient--short { height: min(78vh, 700px); height: min(78svh, 700px); }
.page-ambient canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease-out); }
.page-ambient.is-live canvas { opacity: 1; }
.page-ambient::before,
.page-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Copy sits on the left of every page opening, so the shade does too. */
.page-ambient::before {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 13, 0.9) 28%, rgba(5, 8, 13, 0.5) 48%, rgba(5, 8, 13, 0) 68%);
}
.page-ambient--short::before {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 13, 0.92) 40%, rgba(5, 8, 13, 0.55) 58%, rgba(5, 8, 13, 0) 78%);
}
.page-ambient::after {
  background: linear-gradient(to bottom, rgba(5, 8, 13, 0.45) 0%, rgba(5, 8, 13, 0) 22%, rgba(5, 8, 13, 0) 58%, var(--bg) 100%);
}

/* ---- disclosure (disclose.js): a brief on screen, the rest on request ---- */
.pm-more { display: none; }
.pm-more--block { margin-top: 0.5rem; }
.is-open > .pm-more,
.is-open .pm-brief > .pm-more,
.is-open > * > .pm-more,
.pm-row.is-open .pm-more,
.pm-intro.is-open > .pm-more { display: inline; animation: pm-open 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.is-open .pm-more--block,
.is-open > .pm-more--block { display: block; }
@keyframes pm-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.pm-row { position: relative; padding-right: 4rem !important; cursor: pointer; transition: background-color 0.25s ease; }
.pm-row.is-open { background: rgba(92, 200, 255, 0.06); }
.pm-toggle {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, background-color 0.25s ease;
}
/* A drawn plus that turns into a cross. */
.pm-toggle::before,
.pm-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: #dbe6f1;
  transform: translate(-50%, -50%);
}
.pm-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-open > .pm-toggle { transform: rotate(45deg); border-color: rgba(92, 200, 255, 0.55); background: rgba(92, 200, 255, 0.1); }
@media (hover: hover) and (pointer: fine) {
  .pm-row:hover { background: rgba(92, 200, 255, 0.045); }
  .pm-row:hover .pm-toggle { border-color: rgba(92, 200, 255, 0.5); background: rgba(92, 200, 255, 0.08); }
}

.pm-inline {
  margin-left: 0.5rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid rgba(92, 200, 255, 0.32);
  border-radius: 999px;
  background: transparent;
  font: 500 0.625rem var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd8ff;
  vertical-align: 0.15em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pm-inline:hover { border-color: rgba(92, 200, 255, 0.6); background: rgba(92, 200, 255, 0.08); }
/* The pill reads small, but a thumb gets a full-size target. */
.pm-inline { position: relative; font-size: 0.6875rem; padding: 0.2rem 0.75rem; }
.pm-inline::after { content: ""; position: absolute; inset: -12px -8px; }
@media (pointer: coarse) {
  .pm-toggle { width: 2.75rem; height: 2.75rem; top: 0.6rem; right: 0.6rem; }
  .pm-row { padding-right: 4rem !important; }
}

/* A long table shows its first rows; the rest open below it. */
.pm-collapsed .pm-tr-more { display: none; }
.pm-collapsed { position: relative; }
.pm-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(5, 8, 13, 0.85));
  pointer-events: none;
}
.pm-showall {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 14px auto 0;
  padding: 0 20px;
  border: 1px solid rgba(92, 200, 255, 0.32);
  border-radius: 999px;
  background: rgba(92, 200, 255, 0.04);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd8ff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pm-showall::after { content: "+"; font-size: 14px; letter-spacing: 0; transition: transform 0.3s var(--ease-out); }
.pm-showall[aria-expanded="true"]::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .pm-showall:hover { border-color: rgba(92, 200, 255, 0.6); background: rgba(92, 200, 255, 0.1); }
}
@media (max-width: 700px) {
  .pm-row { padding-right: 3.5rem !important; }
  .pm-toggle { top: 0.85rem; right: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-more { animation: none !important; }
}

/* ---- smooth scrolling: Lenis (vendor/, started by stage.js) ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- the pause control, on every page with continuous motion ---- */
.motion-toggle {
  position: fixed;
  right: 20px;
  bottom: 16px;
  z-index: 65;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 24px;
  background: rgba(9, 11, 16, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #d4d9e2;
  font: 500 11px var(--font-ui);
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:disabled { cursor: default; color: #afb8c5; }
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after { animation-play-state: paused !important; }
html[data-motion="paused"] { scroll-behavior: auto; }

/* ---- footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  background: #000;
}
.site-footer__inner {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 56px;
}
.site-footer__grid {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr));
  gap: 32px;
}
.site-footer h2 {
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.site-footer .col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer .col a {
  font-size: 13px;
  color: var(--faint);
}
.site-footer .col a:hover { color: #fff; }
.site-footer .blurb {
  margin: 20px 0 18px;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--faint);
}
.site-footer .where {
  margin: 0;
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-footer .legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  font-size: 13px;
  color: var(--faint);
}
.site-footer .legal p { margin: 0; }
.site-footer .legal a { color: var(--faint); }
.site-footer .legal a:hover { color: #fff; }

@media (max-width: 1080px) {
  .site-footer__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .sidenav { display: none; }
}
@media (max-width: 1000px) {
  .nav-links > a, .nav-group__btn { padding: 0 9px; font-size: 13px; }
}
/* Below this the categories fold into the menu panel, each opening in place. */
@media (max-width: 900px) {
  .site-nav { width: calc(100% - 2rem); }
  .site-nav__row { padding: 0 12px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    padding: 8px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(11, 11, 15, 0.985);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a,
  .nav-group__btn {
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 15px;
  }
  .nav-links > a:last-child { border-bottom: none; }
  .nav-links > a:hover, .nav-group__btn:hover, .nav-group.is-open > .nav-group__btn { background: transparent; }
  .nav-menu, .nav-menu--wide {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: auto;
    padding: 4px 0 10px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-menu::before { display: none; }
  .nav-group.is-open .nav-menu { display: grid; }
  .nav-group.is-open .nav-group__btn { border-bottom-color: transparent; }
  .nav-menu a { padding: 9px 8px; }
}
@media (max-width: 760px) {
  /* On a phone the rails go, but the light stays: one slim beam in the left
     gutter, clear of the text. */
  .rails { left: 0; width: 8px; max-width: none; transform: none; }
  .rails span, .rails__beam.r, .rails__trail.r { display: none; }
  .rails__beam.l, .rails__trail.l { left: 5px; }
  .rails__beam { height: 18vh; transform: translateY(calc(var(--p, 0) * 82vh)); }
  .rails__beam::before { width: 110px; height: 110px; }
  .site-footer__inner { padding: 0 20px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; padding: 56px 0; }
  .site-footer .legal { flex-direction: column; align-items: flex-start; }
  .hatch { width: calc(100% - 2rem); }
  .page-ambient, .page-ambient--short { width: calc(100% - 2rem); height: min(62vh, 540px); height: min(62svh, 540px); }
  /* The Angular pages start their headline higher, so their band sits higher. */
  .page-ambient--short { height: min(36vh, 310px); height: min(36svh, 310px); }
  /* On a phone the copy spans the width: an even shade, and the field is gone
     before the first paragraph. */
  .page-ambient::before, .page-ambient--short::before { background: rgba(5, 8, 13, 0.4); }
  /* Behind a phone headline the field is a quiet band, not a pattern through
     the letters. */
  .page-ambient--short { height: min(30vh, 260px); height: min(30svh, 260px); }
  .page-ambient--short.is-live canvas { opacity: 0.5; }
  .page-ambient::after { background: linear-gradient(to bottom, rgba(5, 8, 13, 0.3) 0%, rgba(5, 8, 13, 0) 16%, rgba(5, 8, 13, 0) 38%, var(--bg) 88%); }
  /* On a phone the control is a small round icon, so it never sits over copy;
     its text stays as the accessible name. */
  .motion-toggle {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    opacity: 0.85;
  }
  .motion-toggle::before,
  .motion-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 3px;
    height: 12px;
    border-radius: 1px;
    background: #d4d9e2;
    transform: translateY(-50%);
  }
  .motion-toggle::before { left: 14px; }
  .motion-toggle::after { right: 14px; }
  /* Paused: a play triangle instead of two bars. */
  .motion-toggle[aria-pressed="true"]::before {
    left: 15px;
    width: 0;
    height: 0;
    border-radius: 0;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #d4d9e2;
    background: none;
  }
  .motion-toggle[aria-pressed="true"]::after { display: none; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand span { font-size: 11px; letter-spacing: 0.12em; }
  .site-nav .starbtn { padding: 0 12px; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none !important; }
  .starbtn, .btn-solid, .nav-toggle span { transition: none; }
  .nav-menu, .nav-group__btn i, .sidenav i, .sidenav span { transition: none; }
}
html[data-motion="paused"] .rails__trail, html[data-motion="paused"] .rails__beam { animation: none; }

/* ── story figures (scroll.js plays them) ──
   Visible by default; a scene the script arms hides what has not happened
   yet. Without the script, or at rest, the final frame shows. */
[data-seq] [data-at] { transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease; }
[data-seq]:not(.is-armed) [data-rest="off"],
[data-seq]:not(.is-armed) [data-off]:not([data-rest="on"]) { display: none; }
[data-seq].is-armed [data-at]:not(.is-on) { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { [data-seq] [data-at] { transition: none; } }

/* The frame of a story figure: one authored moment per page, a diagram of
   the page's own argument. Each says "Illustration" in its bar. */
.story {
  position: relative;
  margin: 40px 0 0;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid rgba(120, 170, 220, 0.16);
  border-radius: 16px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(30, 120, 220, 0.12), transparent 70%), #070b12;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}
.story svg { display: block; }
.story__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: calc(-1 * clamp(16px, 2.4vw, 28px)) calc(-1 * clamp(16px, 2.4vw, 28px)) clamp(16px, 2.4vw, 24px);
  padding: 12px clamp(16px, 2.4vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font: 500 10px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 163, 178, 0.85);
}
.story__bar b { flex: none; font-weight: 500; color: #9fd8ff; }
.story .ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── scrolly: steps on the left, one stage on the right that changes with
   them (scroll.js marks the active step). Each step's pane sits in the same
   sticky cell; on a phone, or without the script, every pane follows its
   own step. ── */
.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: repeat(var(--n, 4), minmax(64vh, auto));
  column-gap: clamp(32px, 5vw, 76px);
  margin-top: 16px;
}
.scrolly__step { display: contents; }
.scrolly__text { grid-column: 1; align-self: center; position: relative; padding: 48px 0 48px 28px; opacity: 0.32; transition: opacity 0.5s ease; }
.scrolly__text::before { content: ""; position: absolute; left: 0; top: 48px; bottom: 48px; width: 1px; background: rgba(255, 255, 255, 0.1); }
.scrolly__text::after { content: ""; position: absolute; left: -3px; top: 52px; width: 7px; height: 7px; border-radius: 50%; background: #5cc8ff; box-shadow: 0 0 12px rgba(92, 200, 255, 0.8); opacity: 0; transition: opacity 0.4s ease; }
.scrolly__text.is-active { opacity: 1; }
.scrolly__text.is-active::after { opacity: 1; }
.scrolly__n { font: 500 11px var(--font-mono); letter-spacing: 0.14em; color: #9fd8ff; }
.scrolly__title { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.012em; color: var(--fg); text-wrap: balance; }
.scrolly__body { margin: 14px 0 0; max-width: 44ch; font-size: 15.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.scrolly__pane {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  position: sticky;
  top: calc(50vh - 210px);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.scrolly__pane.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scrolly__pane > .story { margin: 0; }
html:not(.gs) .scrolly { display: block; }
html:not(.gs) .scrolly__step { display: block; margin-top: 40px; }
html:not(.gs) .scrolly__text { opacity: 1; padding: 0 0 0 28px; }
html:not(.gs) .scrolly__pane { position: static; opacity: 1; transform: none; margin-top: 18px; }
@media (max-width: 900px) {
  .scrolly { display: block; }
  .scrolly__step { display: block; margin-top: 44px; }
  .scrolly__text { opacity: 1; padding: 0 0 0 22px; }
  .scrolly__text::before { top: 0; bottom: 0; }
  .scrolly__text::after { top: 4px; opacity: 1; }
  .scrolly__pane { position: static; opacity: 1; transform: none; margin-top: 18px; pointer-events: auto; }
}
