/* ==========================================================================
   STEMX — global stylesheet

   Aesthetic: full-bleed black, hard-edged Bauhaus blocks, uppercase type.
   Black and white carry the whole page; space purple is the only colour, and
   it is reserved almost entirely for the moment something responds to you.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --black: #000000;
  --off-black: #050505;
  --panel: #0b0b0b;
  --white: #ffffff;
  --smoke: #f4f4f4;
  --ash: #a7a7a7;
  --slate: #6f6f6f;
  --hairline: rgba(255, 255, 255, 0.28);
  --hairline-soft: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;

  /* ---- space purple ----
     The site's single colour. Used for hover, focus and the geometric
     ornaments; never for body copy. White on --purple is 6.4:1, so button
     labels stay legible when the fill lands. */
  --purple:      #6e2bf0;
  --purple-deep: #4413a8;
  --purple-lit:  #a96bff;
  --purple-veil: rgba(110, 43, 240, 0.16);
  --purple-glow: rgba(139, 78, 255, 0.42);

  /* ---- block system ----
     Bauhaus geometry: square corners, one heavy border weight, and a hard
     unblurred drop shadow that the element presses into on hover. */
  --edge: 2px;
  --block: 6px;
  --block-sm: 4px;

  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;

  --nav-h: 96px;
  --gutter: clamp(20px, 5vw, 80px);

  --track-wide: 0.22em;
  --track-mid: 0.12em;

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

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

p { margin: 0; }

::selection { background: var(--purple); color: var(--white); }

/* thin scrollbar to match the theme */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #262626; border-left: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ---------- shared primitives ---------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 22px;
}

.display {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: 0.01em;
}

.headline {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  /* Evens out the line lengths instead of leaving one word stranded on the
     last line. Ignored by browsers that do not support it, which just get the
     normal greedy wrap. */
  text-wrap: balance;
}

.lede {
  color: var(--ash);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  max-width: 62ch;
}

.rule {
  height: 1px;
  background: var(--hairline-soft);
  border: 0;
  margin: 0;
}

/* ---------- block button ----------
   A hard square with a solid unblurred shadow offset down-right. On hover it
   travels exactly that offset, so the button appears to be pressed down flat
   onto its own shadow, and the vacated surface fills with purple. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 16px 32px;
  border: var(--edge) solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--block) var(--block) 0 rgba(255, 255, 255, 0.16);
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    transform 0.28s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--purple);
  border-color: var(--purple-lit);
  color: var(--white);
  outline: none;
  transform: translate(var(--block), var(--block));
  box-shadow: 0 0 30px var(--purple-glow);
}
.btn:active {
  background: var(--purple-deep);
  transform: translate(var(--block), var(--block)) scale(0.985);
}

.btn--solid {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--block) var(--block) 0 var(--purple);
}
.btn--solid:hover,
.btn--solid:focus-visible { background: var(--purple); color: var(--white); }

.btn--ghost { border-color: var(--hairline); color: var(--ash); box-shadow: none; }
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--purple-lit);
  background: var(--purple);
  color: var(--white);
  transform: none;
}

/* wide enough that a shadowed button never collides with its neighbour */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
}

/* text link with arrow — the underline thickens and turns purple */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: var(--edge) solid var(--hairline);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease), color 0.3s var(--ease);
}
.arrow-link:hover,
.arrow-link:focus-visible {
  border-color: var(--purple-lit);
  color: var(--purple-lit);
  gap: 18px;
  outline: none;
}
.arrow-link span { transition: transform 0.3s var(--ease); }

/* ---------- starfield / atmosphere backdrops ---------- */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1.6px 1.6px at 44% 26%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 61% 74%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.3px 1.3px at 76% 34%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.1px 1.1px at 8% 82%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 34% 8%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.2px 1.2px at 70% 90%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 93% 12%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.4px 1.4px at 18% 45%, rgba(255,255,255,0.55), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}

/* ---------- header: floating pill nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 18px var(--gutter);
  pointer-events: none;
  transition: padding 0.45s var(--ease);
}
.site-header.is-stuck { padding-top: 12px; }

.nav-pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  width: 100%;
  max-width: 1080px;
  padding: 9px 9px 9px 26px;
  border-radius: 0;
  background: rgba(16, 16, 16, 0.66);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: var(--edge) solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: navDrop 1s var(--ease) both 0.15s;
  transition:
    max-width 0.55s var(--ease),
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.site-header.is-stuck .nav-pill {
  max-width: 940px;
  background: rgba(10, 10, 10, 0.88);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-26px) scale(0.965); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* sheen that sweeps across the pill once on arrival */
.nav-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.10) 50%, transparent 62%);
  opacity: 0;
  pointer-events: none;
  animation: navSheen 1.5s var(--ease) 0.9s;
}
@keyframes navSheen {
  0%   { opacity: 0; transform: translateX(-32%); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(32%); }
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: none;
}
.brand img {
  display: block;
  height: clamp(20px, 2vw, 25px);
  width: auto;
  transition: height 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.nav-pill .brand:hover img { transform: scale(1.05); }
.site-header.is-stuck .brand img { height: clamp(18px, 1.8vw, 23px); }
.footer-brand .brand img { height: 34px; }

/* centre link cluster + sliding highlight */
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.nav-links a {
  position: relative;
  z-index: 2;
  display: block;
  padding: 11px clamp(12px, 1.4vw, 20px);
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--white); }

/* the sliding highlight is a solid purple block, not a soft pill */
.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 38px;
  z-index: 1;
  border-radius: 0;
  background: var(--purple);
  border: 0;
  box-shadow: 0 0 22px var(--purple-glow);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, -50%);
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease),
    opacity 0.3s var(--ease);
}
.nav-indicator.is-on { opacity: 1; }

/* action pills */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px clamp(16px, 1.6vw, 24px);
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  white-space: nowrap;
  border: var(--edge) solid transparent;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.pill--ghost {
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
}
.pill--ghost:hover,
.pill--ghost:focus-visible {
  color: var(--white);
  background: var(--purple);
  border-color: var(--purple-lit);
  outline: none;
  box-shadow: 0 0 26px var(--purple-glow);
}
.pill--solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  box-shadow: var(--block-sm) var(--block-sm) 0 var(--purple);
}
.pill--solid:hover,
.pill--solid:focus-visible {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple-lit);
  outline: none;
  transform: translate(var(--block-sm), var(--block-sm));
  box-shadow: 0 0 30px var(--purple-glow);
}
.pill:active { transform: translate(var(--block-sm), var(--block-sm)) scale(0.97); }

/* The nav bar is tight; a shadow there would collide with the pill beside it. */
.nav-actions .pill--solid { box-shadow: none; }
.nav-actions .pill--solid:hover { transform: none; box-shadow: 0 0 26px var(--purple-glow); }

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  margin-right: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) 60px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}
.nav-drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer li { border-bottom: 1px solid var(--hairline-soft); }
.nav-drawer a {
  display: block;
  padding: 22px 0;
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: padding-left 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-drawer a:hover { padding-left: 14px; }
.nav-drawer .pill { margin-top: 40px; width: 100%; padding-block: 18px; }

/* drawer items rise in one after another once the panel is open */
.nav-drawer li,
.nav-drawer .pill {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-drawer.is-open li,
.nav-drawer.is-open .pill { opacity: 1; transform: none; }
.nav-drawer.is-open li:nth-child(1) { transition-delay: 0.16s; }
.nav-drawer.is-open li:nth-child(2) { transition-delay: 0.23s; }
.nav-drawer.is-open li:nth-child(3) { transition-delay: 0.30s; }
.nav-drawer.is-open li:nth-child(4) { transition-delay: 0.37s; }
.nav-drawer.is-open .pill { transition-delay: 0.44s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% 115%, rgba(255,255,255,0.16), transparent 62%),
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(255,255,255,0.07), transparent 65%),
    #000;
}

.hero--short { min-height: 74svh; }

.hero .wrap { position: relative; z-index: 3; padding-top: var(--nav-h); }

.hero-horizon {
  position: absolute;
  left: 50%;
  bottom: -26vh;
  width: 220vw;
  height: 62vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #1c1c1c 0%, #0a0a0a 42%, #000 70%);
  box-shadow: 0 -1px 60px rgba(255, 255, 255, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  z-index: 2;
  pointer-events: none;
}

.hero-content { max-width: 900px; }
.hero-content .display { margin-bottom: 26px; }
.hero-content .lede { max-width: 54ch; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  margin-bottom: 30px;
  border: var(--edge) solid var(--hairline-soft);
  border-left: var(--edge) solid var(--purple-lit);
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ash);
}
/* a square, not a dot — the pulse is the only motion allowed in the tag */
.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--purple-lit);
  box-shadow: 0 0 0 0 var(--purple-glow);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--purple-glow); }
  70%  { box-shadow: 0 0 0 12px rgba(139, 78, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 78, 255, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ash);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: drop 2.2s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* page hero for interior pages */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(90px, 14vh, 170px)) 0 clamp(70px, 11vh, 130px);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
  background:
    radial-gradient(ellipse 90% 120% at 15% 0%, rgba(255,255,255,0.10), transparent 60%),
    #000;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .display { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 24px; }

/* ---------- section shell ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 150px) 0;
  border-top: 1px solid var(--hairline-soft);
}
.section--flush { border-top: 0; }
.section--panel { background: var(--panel); }

/* The eyebrow sits directly above the headline as one left-hand group. It used
   to be space-between across the full width, which on a wide screen threw the
   label and the heading to opposite edges with a void in between. Any trailing
   link stays on the right, aligned to the bottom of the heading. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 40px;
  margin-bottom: clamp(40px, 6vh, 70px);
}
.section-head .eyebrow  { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.section-head .headline { grid-column: 1; grid-row: 2; max-width: 24ch; }
.section-head .arrow-link { grid-column: 2; grid-row: 2; justify-self: end; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-soft);
  border-left: 1px solid var(--hairline-soft);
}
.stat {
  position: relative;
  padding: clamp(28px, 4vw, 48px) clamp(18px, 2.4vw, 34px);
  border-right: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  transition: background 0.4s var(--ease);
}
.stat:hover { background: var(--purple-veil); }

/* a purple bar grows along the top edge of the cell under the cursor */
.stat::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--purple-lit);
  transition: width 0.45s var(--ease);
}
.stat:hover::before { width: 100%; }
.stat-num {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
}
.stat-label {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- mission panels (full-bleed stacked) ----------
   Two columns: the copy on one side, a technical plate on the other. These
   panels are ~790px tall, so a single corner of text left most of the screen
   empty on the way down the page. */
.panel {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--hairline-soft);
}
.panel .wrap {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  padding-block: clamp(50px, 9vh, 110px);
}
.panel-inner { max-width: 640px; }
.panel-inner .headline { margin-bottom: 20px; }

/* The copy stays first in the DOM so it is read before the diagram; `order`
   is what flips the columns visually on the alternating panel. */
.panel--right .panel-inner { order: 2; }
.panel--right .panel-media { order: 1; }

.panel-bg { position: absolute; inset: 0; z-index: 1; }
.panel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.25) 100%);
}

/* procedural "photography" for panels */
.bg-lab {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.20), transparent 45%),
    radial-gradient(circle at 22% 68%, rgba(255,255,255,0.10), transparent 50%),
    conic-gradient(from 210deg at 60% 40%, #131313, #050505, #1a1a1a, #060606, #131313);
}
.bg-engine {
  background:
    radial-gradient(circle at 50% 88%, rgba(255,255,255,0.30), transparent 42%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255,255,255,0.16), transparent 70%),
    linear-gradient(180deg, #000 0%, #0d0d0d 60%, #1a1a1a 100%);
}
.bg-orbit {
  background:
    radial-gradient(circle at 82% 22%, rgba(255,255,255,0.24), transparent 38%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 42px),
    linear-gradient(200deg, #101010, #000 70%);
}

/* ---------- card grids ---------- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #000;
  padding: clamp(30px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition: background 0.4s var(--ease);
}
.card:hover { background: #0e0e0e; }
.card h3 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.card p { color: var(--ash); font-size: 0.92rem; line-height: 1.75; }

/* the index number sits in a purple block that fills as the card is hovered */
.card .card-index {
  align-self: flex-start;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  color: var(--purple-lit);
  border: var(--edge) solid var(--purple);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.card:hover .card-index { background: var(--purple); color: var(--white); }
.card .arrow-link { margin-top: auto; align-self: flex-start; }

.card-icon {
  width: 42px;
  height: 42px;
  stroke: var(--white);
  stroke-width: 1;
  fill: none;
}

/* ---------- program split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split--reverse .split-media { order: 2; }

.split-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline-soft);
  overflow: hidden;
}
.split-media > .art { position: absolute; inset: 0; }

.spec-list { list-style: none; margin: 30px 0 0; padding: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.spec-list li span:first-child {
  text-transform: uppercase;
  letter-spacing: var(--track-mid);
  color: var(--ash);
  font-size: 11px;
}

/* ---------- Texas map ---------- */
.map-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.map-figure { position: relative; }
.map-figure svg { width: 100%; height: auto; overflow: visible; }
.tx-outline {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.tx-dot {
  fill: #fff;
  cursor: pointer;
  transition: r 0.25s var(--ease);
}
.tx-halo {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.3s var(--ease), r 0.4s var(--ease);
}
.tx-pin:hover .tx-halo,
.tx-pin.is-active .tx-halo { opacity: 1; }
.tx-pin:hover .tx-dot,
.tx-pin.is-active .tx-dot { r: 7; }
.tx-label {
  fill: var(--ash);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font);
  pointer-events: none;
  transition: fill 0.25s var(--ease);
}
.tx-pin:hover .tx-label,
.tx-pin.is-active .tx-label { fill: #fff; }

.chapter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-soft); }
.chapter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hairline-soft);
  cursor: pointer;
  transition: padding-left 0.35s var(--ease), background 0.35s var(--ease);
}
.chapter-row:hover, .chapter-row.is-active {
  padding-left: 16px;
  background: var(--purple-veil);
  box-shadow: inset 4px 0 0 var(--purple-lit);
}
.chapter-row h4 { font-size: 1rem; letter-spacing: var(--track-mid); }
.chapter-row .meta {
  font-size: 11px;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
}
.chapter-row .count {
  font-size: 12px;
  letter-spacing: var(--track-mid);
  color: var(--ash);
  white-space: nowrap;
}

/* chapter directory cards */
.chapter-card {
  background: #000;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.4s var(--ease);
}
.chapter-card:hover { background: #0e0e0e; }
.chapter-card .badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--purple-lit);
  border: var(--edge) solid var(--purple);
  padding: 6px 12px;
  border-radius: 0;
}
.chapter-card dl {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.chapter-card dt { color: var(--slate); text-transform: uppercase; font-size: 10px; letter-spacing: var(--track-mid); align-self: center; }
.chapter-card dd { margin: 0; color: var(--ash); }

/* ---------- timeline ----------
   A vertical spine of blocks. Each entry carries a square marker on the rule;
   hovering fills the marker and lights the row, so the eye can walk the list. */
.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: 38px 0 38px clamp(26px, 3vw, 44px);
  border-bottom: 1px solid var(--hairline-soft);
  border-left: var(--edge) solid var(--hairline);
  transition: border-left-color 0.4s var(--ease), background 0.4s var(--ease);
}
.timeline li:first-child { border-top: 1px solid var(--hairline-soft); }
.timeline li:hover {
  border-left-color: var(--purple-lit);
  background: linear-gradient(90deg, var(--purple-veil), transparent 55%);
}

/* the square node straddling the spine */
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 42px;
  width: 16px;
  height: 16px;
  background: var(--purple);
  border: var(--edge) solid var(--black);
  box-shadow: 0 0 0 2px var(--purple-lit);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              transform 0.35s var(--ease);
}
.timeline li:hover::before {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--white), 0 0 18px var(--purple-glow);
  transform: rotate(45deg);
}

.timeline .year {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--purple-lit);
  padding-top: 4px;
}
.timeline .year small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: var(--track-mid);
  color: var(--slate);
}
.timeline h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-bottom: 14px; }
.timeline p { color: var(--ash); font-size: 0.94rem; line-height: 1.85; max-width: 62ch; }

/* ---------- people ---------- */
.person { background: #000; padding: 0; }
.person-photo {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
  background: linear-gradient(160deg, #191919, #050505);
  display: grid;
  place-items: center;
}
.person-photo .initials {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}
.person-body { padding: 26px clamp(20px, 2.4vw, 32px) 32px; }
.person-body h3 { font-size: 1rem; }
.person-body .role {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- quote ---------- */
.quote-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  margin: 0 0 30px;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.quote-block cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 15vh, 170px) 0;
  text-align: center;
  border-top: 1px solid var(--hairline-soft);
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255,255,255,0.16), transparent 60%),
    #000;
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .display { margin-bottom: 24px; }
.cta-band .lede { margin: 0 auto; text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* ---------- forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: border-color 0.3s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  padding-right: 28px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ash) 50%),
    linear-gradient(135deg, var(--ash) 50%, transparent 50%);
  background-position: calc(100% - 10px) 22px, calc(100% - 5px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: #000; color: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--purple-lit);
  box-shadow: 0 1px 0 var(--purple-lit);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.form-note {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.03em;
  margin-top: 18px;
  line-height: 1.7;
}
.form-status {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  display: none;
}
.form-status.is-visible { display: block; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--hairline-soft); }
.faq-item { border-bottom: 1px solid var(--hairline-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: transparent;
  border: 0;
  color: var(--white);
  text-align: left;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: var(--track-mid);
  cursor: pointer;
}
.faq-q:hover { color: var(--purple-lit); }
.faq-q .sign {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border: var(--edge) solid var(--hairline-soft);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-q:hover .sign,
.faq-item.is-open .sign { border-color: var(--purple-lit); background: var(--purple-veil); }
.faq-q .sign::before,
.faq-q .sign::after {
  content: "";
  position: absolute;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s linear;
}
/* centred in the 26px padding box left by the 2px border on .sign */
.faq-q .sign::before { left: 7px; right: 7px; top: 12px; height: 2px; }
.faq-q .sign::after { top: 7px; bottom: 7px; left: 12px; width: 2px; }
.faq-item.is-open .faq-q .sign::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-a p { color: var(--ash); font-size: 0.92rem; line-height: 1.85; padding-bottom: 28px; max-width: 78ch; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding: clamp(60px, 9vh, 100px) 0 40px;
  background: #000;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(30px, 4vw, 60px);
  padding-bottom: 60px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--slate); font-size: 12px; line-height: 1.9; max-width: 34ch; letter-spacing: 0.03em; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: var(--track-wide);
  color: var(--ash);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a {
  font-size: 12px;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.25s var(--ease);
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--slate);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px 26px; list-style: none; margin: 0; padding: 0; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav-pill { padding: 10px 10px 10px 22px; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split, .map-layout, .form-layout { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .panel { min-height: 0; }
  .panel .wrap { grid-template-columns: 1fr; gap: 46px; }
  /* stacked, so both panels read copy-then-diagram */
  .panel--right .panel-inner,
  .panel--right .panel-media { order: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* the cue collides with hero copy on short or narrow screens */
@media (max-width: 900px), (max-height: 780px) {
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
}

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