:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --panel: #12161d;
  --panel-2: #1a1f28;
  --line: #242a35;
  --line-strong: #353d4b;
  --text: #e8eaef;
  --muted: #99a1b0;
  --accent: #5b9bd5;
  --accent-2: #8a7ff0;
  --rec: #e0566f;
  --green: #67c275;
  --amber: #e0a042;
  --radius: 2px;
  --maxw: 1200px;
  --display: 'Chakra Petch', Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(153, 161, 176, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: Inter, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* small uppercase HUD label */
.tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(91, 155, 213, 0.45);
  background: rgba(91, 155, 213, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius);
}

/* text scramble: the real letter holds its width, the random one sits on top */
.scramble-character { position: relative; color: transparent; }
.scramble-glyph { position: absolute; left: 0; right: 0; text-align: center; color: var(--scramble-color); }
.scramble-character.revealed { color: inherit; }
.scramble-character.revealed .scramble-glyph { display: none; }

/* L-shaped corner marks */
.brackets { position: relative; }
.brackets::before,
.module::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) top right / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 14px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 2px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 14px;
  background-repeat: no-repeat;
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled,
.nav.menu-open {
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); font-size: 16px; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current='page'] { color: var(--text); }
.nav-links a[aria-current='page']:not(.btn) { box-shadow: 0 2px 0 var(--accent); }
.nav-group { position: relative; }
.nav-group-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-group-button::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-group:hover .nav-group-button,
.nav-group.open .nav-group-button,
.nav-group.current .nav-group-button { color: var(--text); }
.nav-group.current .nav-group-button { box-shadow: 0 2px 0 var(--accent); }
.nav-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  padding: 8px;
  background: rgba(10, 12, 16, 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
/* bridge the gap so the menu stays open while the pointer moves down to it */
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group.open .nav-menu { display: flex; }
.nav-links .nav-menu a {
  padding: 10px 12px;
  border-left: 2px solid transparent;
  box-shadow: none;
  color: var(--text);
}
.nav-links .nav-menu a:hover,
.nav-links .nav-menu a[aria-current='page'] { background: var(--panel-2); border-left-color: var(--accent); box-shadow: none; }
.inline-link { color: var(--accent); }
.inline-link:hover { text-decoration: underline; }
.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-button span { display: block; width: 18px; height: 2px; background: var(--text); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-lg { padding: 14px 26px; font-size: 14px; }
.btn-primary { color: #06080b; background: var(--accent); }
.btn-primary:hover { background: #7db3e3; box-shadow: 0 0 24px -4px rgba(91, 155, 213, 0.7); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* heroes */
main { position: relative; z-index: 1; }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 130px 24px 90px;
}
.hero-copy { max-width: 620px; }
.hero-copy.centered { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-copy .tag { margin-bottom: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); margin: 0 0 24px; font-weight: 700; }
.hero-line { display: block; }
.hero-line.accent { color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.centered .lede { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scene { display: block; width: 100%; }

/* Studio: full-bleed scene behind the copy */
.hero-full { min-height: max(640px, 100vh); display: flex; align-items: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 12, 16, 0.86) 34%, rgba(10, 12, 16, 0.2) 62%, transparent 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%);
}
.hero-hud {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 22px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero-hud > span { display: inline-flex; align-items: center; gap: 8px; }
.rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px var(--rec);
  animation: blink 1.3s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
#hud-armed { color: var(--text); }

/* Home: one centered line over a full-bleed scene */
.hero-welcome .hero-inner { padding-top: 80px; padding-bottom: 160px; }
.hero-welcome .hero-copy.centered { max-width: none; }
.hero-welcome h1 { font-size: clamp(40px, 5.9vw, 108px); margin-bottom: 18px; }
.hero-welcome h1 .accent { color: var(--accent); }
.hero-welcome .lede { font-size: clamp(18px, 1.8vw, 24px); color: var(--text); max-width: none; }
.hero-welcome .hero-cta { justify-content: center; }
.hero-welcome .hero-shade {
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 16%);
}

/* Workflow: copy above a full-width scene */
.hero-stacked .hero-inner { padding-bottom: 60px; }
.scene-band { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.scene-band .scene { height: 300px; }

/* Plain page header */
.hero-page .hero-inner { padding: 150px 24px 60px; }

/* sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 24px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin: 0 0 44px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 18px 0 0; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

/* cards */
.module,
.role {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: background 0.2s ease;
}
.module::before { opacity: 0; transition: opacity 0.2s ease; }
.module:hover { background: var(--panel-2); }
.module:hover::before { opacity: 1; }
.module-code,
.role-code {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.module h3, .role h3 { font-size: 21px; margin: 14px 0 10px; }
.module p, .role p { color: var(--muted); margin: 0; }
.role { border-left: 3px solid var(--accent); }
.role-code { color: var(--text); }

/* screenshots */
.shot { margin: 0; background: var(--bg-2); border: 1px solid var(--line); padding: 10px; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); }

/* illustrative app mockups */
.mock { container: mock / inline-size; font-family: Inter, system-ui, sans-serif; font-size: 11px; color: var(--text); user-select: none; }
.mock-record, .mock-track-head span, .mock-option, .mock-select, .mock-stat { white-space: nowrap; }
.mock-track-head { min-width: 86px; }
.mock-ruler-spacer { min-width: 86px; }
.mock-window { display: flex; background: #0c0e12; border: 1px solid var(--line); min-height: 100%; }
.mock-label, .mock-head strong, .mock-label { font-size: 9px; color: var(--muted); }
.mock-main { flex: 1; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mock-head strong { font-size: 13px; }
.mock-saved { font-size: 9px; color: var(--green); border: 1px solid rgba(103, 194, 117, 0.5); padding: 1px 6px; }
.mock-transport { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); background: var(--panel); }
.mock-time { font-family: var(--display); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }
.mock-record { background: var(--rec); color: #fff; font-weight: 600; font-size: 10px; padding: 4px 10px; }
.mock-button { width: 44px; height: 20px; border: 1px solid var(--line-strong); }
.mock-level { margin-left: auto; width: 70px; height: 5px; background: var(--line); }
.mock-level i { display: block; width: 45%; height: 100%; background: linear-gradient(90deg, var(--green), var(--amber)); }
.mock-ruler { display: flex; font-size: 8px; color: var(--muted); }
.mock-ruler-spacer { width: 18%; flex: none; }
.mock-ruler div { flex: 1; display: flex; justify-content: space-between; padding-right: 8%; }
.mock-tracks { display: flex; flex-direction: column; border: 1px solid var(--line); }
.mock-track { display: flex; height: 42px; border-left: 3px solid var(--track); }
.mock-track + .mock-track { border-top: 1px solid var(--line); }
.mock-track-head { width: 18%; flex: none; padding: 6px 8px; display: flex; flex-direction: column; justify-content: space-between; background: var(--panel); font-weight: 600; font-size: 10px; }
.mock-track-head em {
  font-style: normal;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  font-size: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.mock-track:first-child .mock-track-head { background: color-mix(in srgb, var(--track) 12%, var(--panel)); }
.mock-track:first-child .mock-track-head em { background: var(--track); border-color: var(--track); color: #fff; }
.mock-lane { position: relative; flex: 1; background: #101318; }
.mock-clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--track) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--track) 45%, transparent);
}
.mock-clip svg { width: 100%; height: 70%; opacity: 0.9; }
.mock-rail { width: 24%; min-width: 150px; padding: 12px 12px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.mock-card { display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1px solid var(--line); background: var(--panel); }
.mock-wide-button { height: 18px; background: var(--rec); opacity: 0.85; }
.mock-line { height: 5px; background: var(--line); }
.mock-line.short { width: 60%; }
.mock-pass { font-weight: 600; color: var(--green); }
.mock-stat { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.mock-stat i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.mock-stat b { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.mock-lab { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mock-lab-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-lab-row.two { grid-template-columns: 1fr 1.4fr; }
.mock-select { padding: 5px 8px; border: 1px solid var(--line-strong); background: var(--bg-2); font-weight: 600; border-left: 3px solid var(--track, var(--line-strong)); }
.mock-check { display: flex; align-items: center; gap: 6px; }
.mock-check::before { content: ''; width: 9px; height: 9px; background: var(--accent); }
.mock-range { position: relative; height: 4px; background: var(--line-strong); margin: 6px 0; }
.mock-range i { position: absolute; left: 0; top: 0; bottom: 0; width: 55%; background: var(--accent); }
.mock-range i::after { content: ''; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.mock-option { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); }
.mock-option.selected { border-color: var(--accent); color: var(--text); }
.mock-chips { display: flex; gap: 6px; }
.mock-chips span { font-size: 10px; padding: 2px 8px; border: 1px solid var(--accent); color: var(--accent); }
.mock-eq { display: flex; justify-content: space-around; padding-top: 4px; }
.mock-band { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); }
.mock-band b { font-weight: 600; }
.mock-slider { position: relative; width: 4px; height: 70px; background: var(--line-strong); }
.mock-slider i { position: absolute; left: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translateY(50%); }

/* script reader */
.mock-column { flex-direction: column; }
.mock-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock-count { font-size: 10px; color: var(--muted); margin: 0 auto; font-variant-numeric: tabular-nums; }
.mock-tools { display: flex; gap: 4px; }
.mock-tools span { font-size: 9px; font-weight: 600; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--muted); }
.mock-tools span.on { border-color: var(--accent); color: var(--accent); }
.mock-reader { padding: 22px 12% 26px; display: flex; flex-direction: column; gap: 12px; }
.mock-read-line { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); opacity: 0.75; padding-left: 12px; border-left: 2px solid transparent; }
.mock-read-line.spoken { border-left-color: color-mix(in srgb, var(--track) 55%, transparent); }
.mock-read-line.current { color: var(--text); opacity: 1; font-size: 17px; border-left-color: var(--rec); background: rgba(255, 255, 255, 0.03); padding-top: 6px; padding-bottom: 6px; }
.mock u { color: var(--track); text-decoration-color: var(--track); text-underline-offset: 3px; }

/* transcript editor */
.mock-head-tools { display: flex; align-items: center; gap: 6px; }
.mock-head-tools .mock-count { margin: 0 6px 0 0; }
.mock-chip-button { font-size: 9px; font-weight: 600; padding: 3px 8px; border: 1px solid var(--line-strong); white-space: nowrap; }
.mock-editor { border: 1px solid var(--line); background: var(--panel); padding: 10px 0; }
.mock-script-row { display: flex; gap: 12px; padding: 1px 12px; min-height: 12px; font-size: 12px; line-height: 1.6; }
.mock-script-row em { font-style: normal; width: 16px; flex: none; text-align: right; color: var(--muted); opacity: 0.5; font-size: 9px; padding-top: 3px; }
.mock mark { background: color-mix(in srgb, var(--amber) 18%, transparent); color: inherit; outline: 1px dashed var(--amber); outline-offset: 1px; }
.mock-cast-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 6px 8px; border-left: 3px solid var(--track); }
.mock-chips.small span { font-size: 8px; padding: 1px 5px; border-color: var(--line-strong); color: var(--muted); }

/* character manager */
.mock-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-person { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); background: var(--panel); border-right: 3px solid var(--track); }
.mock-person.selected { border-color: var(--accent); border-right-color: var(--track); }
.mock-person i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 700; color: #fff; background: var(--track); }
.mock-person span { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.mock-person b { font-size: 11px; white-space: nowrap; }
.mock-person em { font-style: normal; font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 0 3px; }
.mock-person small { width: 100%; font-size: 9px; color: var(--muted); }
.mock-profile { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.mock-field { display: flex; flex-direction: column; gap: 4px; }
.mock-quote { font-style: italic; color: var(--text); line-height: 1.5; }
.mock-record.small { align-self: flex-start; font-size: 9px; padding: 3px 8px; }

/* post processing */
.mock-step { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); background: var(--panel); }
.mock-flag { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); }
.mock-flag i { width: 8px; height: 8px; background: var(--track); }
.mock-flag span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-flag.resolved { opacity: 0.45; text-decoration: line-through; }
.mock-lab-row.even { grid-template-columns: 1fr 1fr; }
.mock-stat.fail i { background: var(--rec); }
.mock-exports { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-exports span { font-size: 10px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line-strong); }
.mock-exports span.primary { background: var(--rec); border-color: var(--rec); color: #fff; }

/* text beside a visual */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-copy h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 18px 0 16px; }
.split-copy p { color: var(--muted); font-size: 17px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--green);
  background: rgba(103, 194, 117, 0.2);
}

/* workflow stages */
.stages { display: grid; gap: 16px; }
.stage {
  display: flex;
  gap: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.stage-number { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); }
.stage-body h3 { font-size: 24px; margin: 10px 0 10px; }
.stage-body p { color: var(--muted); margin: 0; max-width: 760px; }

/* About page principles: full-width stacked rows */
.principles { display: grid; gap: 16px; }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 36px 40px;
}
.principle-number { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 0.9; color: var(--accent); }
.principle h3 { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 12px; }
.principle p { color: var(--muted); font-size: 17px; margin: 0; max-width: 820px; }
@media (max-width: 640px) {
  .principle { grid-template-columns: 1fr; gap: 12px; padding: 26px 22px; }
  .principle-number { font-size: 44px; }
}

/* ACX panel */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-family: var(--display);
}
.panel-head, .panel-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-foot { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.status-pass { color: var(--green); }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 0; }
.meter-row + .meter-row { border-top: 1px dashed var(--line); }
.meter-label { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.meter-target { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.1em; }
.meter-value { font-size: 30px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; align-self: center; }
.meter-bar { grid-column: 1 / -1; height: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 8px); }
.meter-bar span {
  display: block;
  height: 100%;
  width: calc(var(--fill) * 100%);
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 8px);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.in .meter-bar span { transform: scaleX(1); }

/* call to action */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 40px;
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 8px; }
.cta-band p { color: var(--muted); margin: 0; }

/* plans */
.plans { align-items: stretch; }
.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.plan.featured { border-color: rgba(91, 155, 213, 0.5); background: var(--panel-2); }
.plan-flag {
  position: absolute;
  top: -11px;
  left: 26px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #06080b;
  background: var(--accent);
  padding: 3px 10px;
}
.plan h3 { margin: 0 0 6px; font-size: 26px; }
.plan-sub { color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan li { color: var(--muted); padding-left: 22px; position: relative; }
.plan li::before { content: '//'; position: absolute; left: 0; font-family: var(--display); font-size: 12px; top: 2px; color: var(--accent); }
.plan { display: flex; flex-direction: column; }
.plan .btn { width: 100%; margin-top: auto; }

/* beta */
.beta { text-align: center; }
.beta-page { padding-top: 160px; min-height: 80vh; }
.beta-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 52px 34px;
}
.beta-card h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 18px 0 14px; }
.beta-card > p { color: var(--muted); font-size: 17px; margin: 0 auto 28px; max-width: 480px; }
.beta-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; flex-wrap: wrap; }
.beta-form input {
  flex: 1;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
}
.beta-form input:focus { outline: none; border-color: var(--accent); }
.beta-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.beta-note.ok { color: var(--green); }
.beta-note.err { color: var(--rec); }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 64px;
  color: var(--muted);
}
.foot-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-heading {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.foot-column a:not(.foot-brand) { font-size: 14px; transition: color 0.2s; }
.foot-column a:not(.foot-brand):hover { color: var(--text); }
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.foot-tag { margin: 8px 0 0; font-family: var(--display); letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; }
.foot-copy { font-size: 14px; margin: 0; }
.foot-launch { align-items: flex-end; text-align: right; }
.foot-launch .foot-heading { color: var(--accent); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal.in, .stages .reveal.in, .principles .reveal.in { transition-delay: var(--delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .meter-bar span { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 1080px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-launch { align-items: flex-start; text-align: left; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .menu-button { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current='page']:not(.btn) { box-shadow: none; color: var(--accent); }
  .nav-links .btn { margin-top: 16px; }
  .nav-group-button { width: 100%; padding: 12px 0 6px; cursor: default; }
  .nav-group-button::after { display: none; }
  .nav-group.current .nav-group-button { box-shadow: none; }
  .nav-menu { position: static; display: flex; min-width: 0; padding: 0 0 8px; background: none; border: 0; box-shadow: none; }
  .nav-menu::before { display: none; }
  .nav-links .nav-menu a { padding: 8px 12px; border-bottom: 0; }
    .nav-group { border-bottom: 1px solid var(--line); }
  .grid.three, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.7) 70%, rgba(10, 12, 16, 0.3) 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 18%);
  }
  .hero-hud { left: 24px; right: auto; flex-wrap: wrap; gap: 6px 18px; }
  .scene-band .scene { height: 620px; }
}
/* mockups adapt to the space they're given, not the screen */
@container mock (max-width: 760px) {
  .mock-rail { display: none; }
  .mock-lab-row { grid-template-columns: 1fr 1fr; }
  .mock-lab-row > :last-child { grid-column: 1 / -1; }
}
@container mock (max-width: 520px) {
  .mock-people { grid-template-columns: 1fr 1fr; }
  .mock-profile { grid-template-columns: 1fr; }
  .mock-reader { padding: 16px 14px 20px; }
  .mock-head-tools .mock-count { display: none; }
    .mock-lab-row, .mock-lab-row.two { grid-template-columns: 1fr; }
    .mock-button:last-of-type { display: none; }
}
@media (max-width: 640px) {
  .grid.four { grid-template-columns: 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .foot-inner { gap: 32px 24px; padding: 48px 16px 56px; }
  .section { padding: 72px 16px; }
  .nav-inner, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .nav-links { padding-left: 16px; padding-right: 16px; }
  .hero-hud { left: 16px; }
  .brand-name { letter-spacing: 0.22em; }
  .stage { flex-direction: column; gap: 10px; padding: 22px; }
  .cta-band { padding: 28px 22px; }
}
@media (min-width: 641px) and (max-width: 940px) {
  .scene-band .scene { height: 300px; }
}

/* Off-screen bot trap on the waitlist form */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
