:root {
  --blue: #2f6bff;
  --blue-bright: #6ea0ff;
  --blue-deep: #1e4fd6;
  --orange: #ff7a2e;
  --orange-deep: #e85a0a;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", "Avenir Next", Avenir, sans-serif;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue-bright);
  --panel: rgba(8, 14, 28, 0.78);
  --panel-border: rgba(238, 242, 248, 0.14);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f2f4f8;
  --bg-elevated: #ffffff;
  --bg-deep: #e6eaf2;
  --fg: #0b1220;
  --muted: #445062;
  --border: rgba(11, 18, 32, 0.12);
  --header-bg: rgba(242, 244, 248, 0.97);
  --pillar-bg: rgba(255, 255, 255, 0.88);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(11, 18, 32, 0.12);
  --blue-bright: #2458e0;
  --orange: #d45508;
  --hero-shade: linear-gradient(
    105deg,
    rgba(242, 244, 248, 0.96) 0%,
    rgba(242, 244, 248, 0.82) 38%,
    rgba(242, 244, 248, 0.4) 62%,
    rgba(242, 244, 248, 0.18) 100%
  );
  --cta-shade: rgba(242, 244, 248, 0.55);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue-bright);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #050a14;
  --bg-elevated: #0d1628;
  --bg-deep: #02060e;
  --fg: #f3f6fb;
  --muted: #b4becd;
  --border: rgba(238, 242, 248, 0.14);
  --header-bg: rgba(5, 10, 20, 0.96);
  --pillar-bg: rgba(11, 20, 36, 0.82);
  --panel: rgba(8, 14, 28, 0.82);
  --panel-border: rgba(238, 242, 248, 0.16);
  --hero-shade: linear-gradient(
    105deg,
    rgba(5, 10, 20, 0.92) 0%,
    rgba(5, 10, 20, 0.7) 36%,
    rgba(5, 10, 20, 0.3) 60%,
    rgba(5, 10, 20, 0.1) 100%
  );
  --cta-shade: rgba(5, 10, 20, 0.45);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* Kill the sideways swipe-to-navigate gesture on trackpads. */
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

body.is-intro-locked {
  overflow: hidden;
}

body.is-intro-locked .site {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.theme-toggle:focus-visible,
.pillar:focus-visible,
.mission:focus-visible,
.service:focus-visible,
.resource:focus-visible,
.metric:focus-visible,
.intro__skip:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.text-blue {
  color: var(--blue-bright);
}

.text-orange {
  color: var(--orange);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* ========== CINEMATIC INTRO ========== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #01040a;
  color: #eef2f8;
  overflow: hidden;
  isolation: isolate;
  transition:
    opacity 1.3s var(--ease),
    visibility 1.3s var(--ease),
    transform 1.4s var(--ease-out),
    filter 1.2s var(--ease);
}

/* Exit: the overlay pulls back and defocuses while the content lifts away,
   handing off to the site pushing in underneath it. */
.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.08);
  filter: blur(14px);
}

.intro__center {
  transition:
    transform 1.1s var(--ease-out),
    opacity 0.75s var(--ease);
}

.intro.is-done .intro__center {
  opacity: 0;
  transform: translateY(-30px) scale(1.05);
}

.intro__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 50% 40%, rgba(47, 107, 255, 0.18), transparent 55%);
  animation: vignetteBreath 4s var(--ease) infinite;
}

.intro__rings,
.intro__scan {
  display: none;
}

.intro__center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
}

.intro__mark {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 1.75rem auto 0;
  overflow: hidden;
  border-radius: 3%;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  box-shadow: 0 10px 34px rgba(232, 89, 12, 0.4);
}

.intro__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro.is-active .intro__mark {
  animation: markRise 1.2s var(--ease-out) 3.55s forwards;
}

@keyframes markRise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.intro__title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28em 0.38em;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: none;
}

.intro__word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(22px) scale(0.94);
  color: #f4f7fc;
  text-shadow: 0 0 40px rgba(77, 133, 255, 0.25);
  will-change: opacity, filter, transform;
}

.intro__word--accent {
  color: var(--orange);
  text-shadow: 0 0 36px rgba(255, 106, 26, 0.35);
}

/* Cadence: "The Future" arrives as a quick pair, a beat before "is", then a
   longer hold so "Now" lands on its own. */
.intro.is-active .intro__word {
  animation: wordReveal 1s var(--ease-out) forwards;
}

.intro.is-active .intro__word:nth-child(1) {
  animation-delay: 0.35s;
}
.intro.is-active .intro__word:nth-child(2) {
  animation-delay: 0.52s;
}
.intro.is-active .intro__word:nth-child(3) {
  animation-delay: 1.12s;
}

.intro.is-active .intro__word--accent {
  animation: wordRevealNow 1.5s var(--ease-out) 1.95s forwards;
}

@keyframes wordRevealNow {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(20px) scale(1.18);
  }
  55% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.intro__word::before {
  content: attr(data-word);
}

.intro__line {
  width: min(280px, 55vw);
  height: 1px;
  margin: 1.6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--blue-bright), var(--orange), transparent);
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Draws left → right in lockstep with "Now" landing. */
.intro.is-active .intro__line {
  animation: lineGrow 1.15s var(--ease-out) 1.95s forwards;
}

.intro__tagline {
  margin: 1.1rem 0 0;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
}

.intro.is-active .intro__tagline {
  animation: fadeRise 1s var(--ease-out) 4.35s forwards;
}

.intro__skip {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d7a90;
  cursor: pointer;
  opacity: 0;
  transition: color 0.25s var(--ease);
}

.intro.is-active .intro__skip {
  animation: fadeRise 0.6s var(--ease) 1.2s forwards;
}

.intro__skip:hover {
  color: #eef2f8;
}

.site {
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(0.97);
  transition:
    opacity 1.1s var(--ease),
    visibility 1.4s var(--ease),
    transform 1.4s var(--ease-out);
}

.site.is-revealed {
  opacity: 1;
  visibility: visible;
  transform: none;
}


@keyframes vignetteBreath {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scanSweep {
  from {
    top: -35%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  to {
    top: 110%;
    opacity: 0;
  }
}

@keyframes ringExpand {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  25% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes wordReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  /* Own compositor layer — backdrop blur over parallax was flickering on scroll. */
  transform: translateZ(0);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  border-radius: 0.35rem;
}

/* Brand tile: the artwork is already a near-square tile with its own ~2% corner
   radius and the "24" tucked into the top-left, so only shave the white corner
   pixels — anything rounder crops into the mark. */
.logo__mark {
  display: block;
  width: 2.3rem;
  height: 2.3rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3%;
  box-shadow: 0 4px 14px rgba(232, 89, 12, 0.3);
}

.logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo__text {
  display: grid;
  gap: 0.1rem;
  line-height: 1.1;
}

.logo__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.logo__tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.logo--lg .logo__mark {
  width: 3.1rem;
  height: 3.1rem;
}

.logo--lg .logo__name {
  font-size: 1.3rem;
}

.logo--lg .logo__tag {
  font-size: 0.75rem;
}

.nav {
  display: none;
  gap: 1.35rem;
  justify-self: center;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav a {
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a.is-active {
  color: var(--fg);
}

.nav a.is-active::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Desktop without touch: normal hover underline. */
@media (hover: hover) and (pointer: fine) {
  html:not(.has-touch) .nav a:hover {
    color: var(--fg);
  }

  html:not(.has-touch) .nav a:hover::after {
    transform: scaleX(1);
  }
}

/* Touch-capable (iPad): kill sticky finger-hover by default. */
html.has-touch .nav a:hover:not(.is-active) {
  color: inherit;
}

html.has-touch .nav a:hover:not(.is-active)::after {
  transform: scaleX(0);
}

/* iPad + trackpad/mouse: JS adds has-fine-hover after a real mouse move.
   Hover paint returns; first click still navigates via pointerdown. */
html.has-touch.has-fine-hover .nav a:hover {
  color: var(--fg);
}

html.has-touch.has-fine-hover .nav a:hover::after {
  transform: scaleX(1);
}

.nav--context {
  gap: 1.1rem;
}

.nav__home {
  color: var(--blue-bright);
  font-weight: 600;
}

.nav__home::after {
  background: var(--blue-bright);
}

.nav__label {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__subs {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-left: 0.35rem;
  border-left: 1px solid var(--border);
  margin-left: 0.15rem;
}

.header.is-context .nav--primary {
  display: none !important;
}

.header.is-context .nav--context:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.55rem;
}

body.is-subpage {
  overflow: auto;
}

body.is-subpage #landing {
  display: none;
}

.subpages {
  min-height: 70vh;
  padding-bottom: 4rem;
}

.subpage__hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.subpage__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.subpage__hero-shade {
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
}

.subpage__hero-copy {
  position: relative;
  z-index: 1;
  padding: 7rem 0 2.5rem;
}

.subpage__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
}

.subpage__lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.subpage__body {
  display: grid;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  padding-bottom: 3rem;
}

.subpage__body p {
  margin: 0;
}

.subpage__body a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.subpage__body a:hover,
.subpage__body a:focus-visible {
  color: var(--fg);
}

.subpage--legal .subpage__body {
  max-width: 46rem;
  margin-inline: auto;
  padding-top: 5.5rem;
  gap: 0.95rem;
}

.subpage--legal .subpage__title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--fg);
}

.subpage__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.subpage__meta {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.subpage__hero-copy .subpage__meta {
  margin-top: 0.75rem;
}

.subpage__body ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.subpage__body li {
  padding-left: 0.15rem;
}

.subpage__body strong {
  color: var(--fg);
  font-weight: 650;
}

.subpage__heading {
  margin: 1.75rem 0 0.25rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg);
}

.subpage__quote {
  margin: 0.35rem 0;
  padding: 1.15rem 1.25rem 1.2rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 0.55rem 0.55rem 0;
  background: var(--panel);
}

.subpage__quote p {
  margin: 0 0 0.75rem;
  color: var(--fg);
  font-style: italic;
}

.subpage__quote footer {
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
}

.subpage__principles {
  display: grid;
  gap: 1rem;
  margin: 0.75rem 0 0.5rem;
}

.subpage__principles article {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--orange);
  border-radius: 0.65rem;
  background: var(--panel);
}

.subpage__principles h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.subpage__principles p {
  color: var(--muted);
  font-size: 0.98rem;
}

.subpage__faq {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.subpage__faq details {
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel);
  padding: 0.85rem 1.1rem 0.95rem;
}

.subpage__faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.subpage__faq summary::-webkit-details-marker {
  display: none;
}

.subpage__faq summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-weight: 700;
}

.subpage__faq details[open] summary::after {
  content: "–";
}

.subpage__faq details p {
  margin-top: 0.75rem;
}

.subpage__contact {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.subpage__contact a {
  color: var(--blue-bright);
  font-weight: 600;
}

.subpage__note {
  color: var(--orange);
  font-size: 0.92rem;
}

/* Resource libraries (press / briefs / blog) */
.resource-library {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.resource-library__item {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

a.resource-library__item:hover,
a.resource-library__item:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue-bright) 45%, transparent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  background: color-mix(in srgb, var(--panel) 88%, var(--blue) 12%);
}

.resource-library__item time {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.resource-library__item strong {
  color: var(--fg);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.resource-library__item span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.resource-library__item .resource-library__byline {
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.resource-library__item .resource-library__cta {
  margin-top: auto;
  color: var(--blue-bright);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.resource-library__item--soon {
  opacity: 0.85;
}

/* Resource cards are links, but body <a> underlines must not paint every line. */
.subpage__body a.resource-library__item,
.subpage__body a.resource-library__item:hover,
.subpage__body a.resource-library__item:focus-visible,
.subpage__body a.resource-library__item *,
.subpage__body a.resource-library__item:hover *,
.subpage__body a.resource-library__item:focus-visible * {
  text-decoration: none;
}

.subpage__body a.resource-library__item .resource-library__cta {
  color: var(--blue-bright);
}

.subpage__body a.resource-library__item:hover .resource-library__cta,
.subpage__body a.resource-library__item:focus-visible .resource-library__cta {
  color: var(--fg);
}

.resource-library--squares {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.resource-library--squares > li {
  min-width: 0;
}

.resource-library--squares .resource-library__item {
  aspect-ratio: 1;
  align-content: start;
  overflow: hidden;
}

.resource-library--squares .resource-library__item span:not(.resource-library__byline):not(.resource-library__cta) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

a.resource-library__item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 14px 32px rgba(0, 0, 0, 0.18);
}

@media (min-width: 720px) {
  .resource-library--squares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .resource-library--squares {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resource-library--squares .resource-library__item span:not(.resource-library__byline):not(.resource-library__cta) {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 720px) {
  .resource-library__item {
    padding: 1.05rem 1.05rem 1.15rem;
  }

  .resource-library__item strong {
    font-size: 1.02rem;
  }
}

@media (min-width: 720px) {
  .subpage__principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Inside a reading column, three cramped cards are harder to scan than a stack. */
.subpage--article .subpage__principles {
  grid-template-columns: 1fr;
}

.subpage__subhead {
  margin: 0.4rem 0 0;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--fg);
}

.brief-chart,
.brief-flow {
  --chart-legacy: #e4eaf3;
  --chart-raw: #d5dce6;
  --chart-parsed: #8b95a6;
  --chart-grid: rgba(243, 246, 251, 0.2);
  margin: 0.35rem 0 0.15rem;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

[data-theme="light"] .brief-chart,
[data-theme="light"] .brief-flow {
  --chart-legacy: #1a1f2b;
  --chart-raw: #5c6574;
  --chart-parsed: #2a3140;
  --chart-grid: rgba(11, 18, 32, 0.16);
}

.brief-chart figcaption,
.brief-flow figcaption {
  color: var(--fg);
  font-size: 1.02rem;
  line-height: 1.55;
}

.brief-chart__plot {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel);
  padding: 0.75rem 0.5rem 0.35rem;
}

.brief-chart__svg {
  width: 100%;
  min-width: 34rem;
  height: auto;
  display: block;
  color: var(--muted);
  font-family: var(--font);
}

.brief-chart__svg .grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.brief-chart__svg .axis {
  fill: var(--muted);
  font-size: 12px;
}

.brief-chart__svg .axis-title {
  fill: var(--fg);
  font-size: 13px;
  font-weight: 650;
}

.brief-chart__svg .value {
  fill: var(--fg);
  font-size: 13px;
  font-weight: 650;
}

.brief-chart__svg .series-legacy {
  fill: none;
  stroke: var(--chart-legacy);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.brief-chart__svg .series-chunk {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.brief-chart__svg .series-cold {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.brief-chart__svg .bar-raw {
  fill: var(--chart-raw);
}

.brief-chart__svg .bar-parsed {
  fill: var(--chart-parsed);
}

.brief-chart__svg .bar-chunk {
  fill: var(--orange);
}

.brief-chart__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.brief-chart__legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 0;
}

.brief-chart__swatch {
  width: 1.35rem;
  height: 0.7rem;
  border-radius: 0.15rem;
  flex-shrink: 0;
}

.brief-chart__swatch--legacy {
  background: var(--chart-legacy);
}

.brief-chart__swatch--chunk,
.brief-chart__swatch--hot {
  background: var(--orange);
}

.brief-chart__swatch--cold {
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0 0.45rem,
    transparent 0.45rem 0.7rem
  );
  border: 1px solid var(--orange);
}

.brief-chart__swatch--raw {
  background: var(--chart-raw);
}

.brief-chart__swatch--parsed {
  background: var(--chart-parsed);
}

.brief-chart__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brief-flow__canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brief-flow__node {
  width: min(100%, 22rem);
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel);
  text-align: center;
}

.brief-flow__node strong {
  display: block;
  color: var(--fg);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.brief-flow__node span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.brief-flow__node--router {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.brief-flow__node--end {
  background: var(--orange);
  border-color: var(--orange);
}

.brief-flow__node--end strong,
.brief-flow__node--end span {
  color: #0b1220;
}

.brief-flow__stem {
  width: 2px;
  height: 1.35rem;
  background: var(--orange);
  position: relative;
}

.brief-flow__stem::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--orange);
}

.brief-flow__fork {
  display: none;
  width: min(100%, 44rem);
  height: 2.4rem;
  color: var(--orange);
}

.brief-flow__pair {
  width: min(100%, 44rem);
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.brief-flow__pair .brief-flow__node {
  width: min(100%, 22rem);
}

@media (min-width: 720px) {
  .brief-flow__stem--split {
    display: none;
  }

  .brief-flow__fork {
    display: block;
  }

  .brief-flow__pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    justify-items: stretch;
  }

  .brief-flow__pair .brief-flow__node {
    width: 100%;
  }
}

@media (max-width: 719px) {
  .brief-flow__pair .brief-flow__node:first-child {
    position: relative;
    margin-bottom: 1.6rem;
  }

  .brief-flow__pair .brief-flow__node:first-child::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1.25rem;
    width: 2px;
    height: 0.85rem;
    background: var(--orange);
    transform: translateX(-50%);
  }
}

.token-flip {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.token-flip__label {
  margin: 0;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.token-flip__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.token-flip__tab {
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.45rem;
  background: var(--panel);
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.token-flip__tab span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.token-flip__tab[aria-selected="true"] {
  border-color: var(--orange);
  box-shadow: inset 0 -2px 0 var(--orange);
  background: color-mix(in srgb, var(--orange) 16%, var(--panel));
}

.token-flip__tab[aria-selected="true"] span {
  color: var(--fg);
}

.token-flip__panel p {
  margin: 0;
}

.token-flip__code {
  margin: 0;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--bg-deep);
  color: var(--fg);
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.token-flip__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.65rem;
}

.header__demo-short {
  display: none;
}

.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.theme-toggle:hover {
  background: var(--bg-elevated);
  border-color: color-mix(in srgb, var(--blue-bright) 45%, transparent);
  color: var(--blue-bright);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

[data-theme="light"] .mission__shade {
  background: linear-gradient(
    to top,
    rgba(242, 244, 248, 0.7),
    transparent 45%,
    rgba(242, 244, 248, 0.25)
  );
}

/* Screen blending disappears on high-key plates, so tint by multiply instead */
[data-theme="light"] .hero__flare {
  mix-blend-mode: multiply;
  background:
    radial-gradient(ellipse at 72% 42%, rgba(47, 107, 255, 0.14), transparent 38%),
    radial-gradient(ellipse at 82% 70%, rgba(255, 106, 26, 0.12), transparent 32%);
}

/* One glyph at a time: it shows the theme the button switches you to. */
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.4rem;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.32);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  box-shadow: 0 14px 36px rgba(47, 107, 255, 0.45);
}

.btn--ghost {
  color: var(--orange);
  padding-inline: 0.55rem;
  border-bottom: 1px solid transparent;
}

.btn--ghost:hover {
  border-bottom-color: var(--orange);
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.74rem;
}

.btn--lg {
  min-height: 3.1rem;
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -8% 0 -8%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 8%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 8%,
    #000 78%,
    transparent 100%
  );
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.08);
  animation: heroKen 22s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
}

.hero__flare {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 42%, rgba(47, 107, 255, 0.18), transparent 35%),
    radial-gradient(ellipse at 82% 70%, rgba(255, 106, 26, 0.16), transparent 30%);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: flarePulse 6s var(--ease) infinite;
}

@keyframes heroKen {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes flarePulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 2.5rem));
  margin: auto 0 2.5rem max(1.25rem, calc((100% - 1120px) / 2));
  padding-top: 7rem;
}

.hero__title {
  margin: 0 0 1.1rem;
  /* Hug the longest line so the centered middle line reads against the text edges,
     not the column. */
  width: fit-content;
  max-width: 100%;
  font-size: clamp(2.15rem, 5.4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
}

.hero__title-line--mid {
  text-align: center;
}

.hero__lede {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero__rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__rail .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.75;
}

/* ========== ABOUT ========== */
.about {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

.about__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.about__shade {
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
}

.about__content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 2.5rem));
  margin: auto 0 2.25rem max(1.25rem, calc((100% - 1120px) / 2));
  padding-top: 7rem;
}

.about__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
}

.about__lede {
  margin: 0 0 1.6rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.about__rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__rail .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.75;
}

/* ========== SECTIONS ========== */
.section,
.metrics,
.cta,
.hero,
.about,
.ask {
  scroll-margin-top: 5.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section--tight {
  padding-top: 2rem;
}

/* Soft photographic section plates — fade into neighbors as you scroll.
   Keep overflow clipping on the plate itself so nested horizontal scroll
   (missions) still works on iPad Safari. */
.section--scene {
  overflow: visible;
}

.section--scene + .section--scene {
  margin-top: -2.5rem;
  padding-top: calc(6.5rem + 2.5rem);
}

.section--scene > .container,
.metrics.section--scene > .container {
  position: relative;
  z-index: 1;
  /* Bound descendants so overflow-x scrollports can shrink correctly. */
  min-width: 0;
  max-width: 100%;
}

.section__scene {
  position: absolute;
  inset: -14% 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 16%,
    #000 76%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 16%,
    #000 76%,
    transparent 100%
  );
}

.section__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
  opacity: 0.6;
}

.section__scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 18%, color-mix(in srgb, var(--bg) 78%, transparent) 55%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent 34%, transparent 66%, var(--bg) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(47, 107, 255, 0.1), transparent 45%),
    radial-gradient(ellipse at 30% 70%, rgba(255, 122, 46, 0.08), transparent 42%);
}

/* Light plates are already high-key, so they need far less knock-back */
[data-theme="light"] .section__scene img {
  opacity: 0.9;
}

[data-theme="light"] .section__scene-shade {
  background:
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 20%, color-mix(in srgb, var(--bg) 62%, transparent) 55%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, transparent 34%, transparent 66%, var(--bg) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(47, 107, 255, 0.06), transparent 45%),
    radial-gradient(ellipse at 30% 70%, rgba(255, 122, 46, 0.05), transparent 42%);
}

.section__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-transform: uppercase;
  text-wrap: balance;
}

.section__title--ruled {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.section__title--ruled::before,
.section__title--ruled::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.section__lede {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.section__head {
  margin-bottom: 2.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.75rem;
}

.pillar {
  padding: 1.45rem 1.3rem 1.55rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  cursor: default;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.pillar:hover,
.pillar:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--blue-bright) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue-bright) 35%, transparent), 0 20px 48px rgba(0, 0, 0, 0.24);
  background: color-mix(in srgb, var(--panel) 88%, var(--blue) 12%);
}

[data-theme="light"] .pillar {
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.06);
}

[data-theme="light"] .pillar:hover,
[data-theme="light"] .pillar:focus-visible {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--blue-bright) 28%, transparent),
    0 12px 28px rgba(11, 18, 32, 0.08);
}

.pillar__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 0.55rem;
}

.pillar__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.pillar__icon--blue {
  color: var(--blue-bright);
  background: rgba(47, 107, 255, 0.14);
  box-shadow: 0 0 24px rgba(47, 107, 255, 0.22);
}

.pillar__icon--orange {
  color: var(--orange);
  background: rgba(255, 122, 46, 0.14);
  box-shadow: 0 0 24px rgba(255, 122, 46, 0.28);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.missions-rail,
.resources-rail {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.missions-rail::before,
.missions-rail::after,
.resources-rail::before,
.resources-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0.35rem;
  width: 2.5rem;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.missions-rail::before,
.resources-rail::before {
  left: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 40%, transparent) 55%,
    transparent 100%
  );
}

.missions-rail::after,
.resources-rail::after {
  right: 0;
  background: linear-gradient(
    270deg,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 40%, transparent) 55%,
    transparent 100%
  );
}

.missions-rail.has-fade-left::before,
.missions-rail.has-fade-right::after,
.resources-rail.has-fade-left::before,
.resources-rail.has-fade-right::after {
  display: block;
}

.missions-scroller,
.resources-scroller {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  /* Overlay orange bar — visible while scrolling, idle-hidden (native). */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--orange) 70%, transparent) transparent;
}

.missions-scroller::-webkit-scrollbar,
.resources-scroller::-webkit-scrollbar {
  height: 0.35rem;
}

.missions-scroller::-webkit-scrollbar-track,
.resources-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.missions-scroller::-webkit-scrollbar-thumb,
.resources-scroller::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--orange) 70%, transparent);
  border-radius: 999px;
}

.missions-scroller::-webkit-scrollbar-thumb:hover,
.resources-scroller::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.missions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  max-width: none;
  padding: 0.35rem 0 0.85rem;
  box-sizing: border-box;
}

.mission {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.35s var(--ease);
  /* Fixed track size — avoid min()/vw in flex-basis (iPad Safari wrap bugs). */
  flex: 0 0 16.75rem;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 16.75rem;
  min-width: 16.75rem;
  max-width: 16.75rem;
}

.mission:hover,
.mission:focus-visible,
.mission.is-active {
  transform: translateY(-4px);
}

.mission:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.mission__frame {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 0.55rem;
  display: block;
  -webkit-mask-image: radial-gradient(
    ellipse 94% 90% at 50% 45%,
    #000 48%,
    rgba(0, 0, 0, 0.7) 72%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 94% 90% at 50% 45%,
    #000 48%,
    rgba(0, 0, 0, 0.7) 72%,
    transparent 100%
  );
}

.mission__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 122, 46, 0.14) 52%,
    transparent 64%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.mission:hover .mission__frame::after,
.mission:focus-visible .mission__frame::after,
.mission.is-active .mission__frame::after {
  opacity: 1;
}

.mission img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

.mission:hover img,
.mission:focus-visible img,
.mission.is-active img {
  transform: scale(1.05);
}

.mission__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 10, 20, 0.62),
    transparent 48%,
    rgba(5, 10, 20, 0.22)
  );
  pointer-events: none;
}

.mission__label {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0.35rem 0.5rem;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

.mission__label::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 122, 46, 0.7);
  transition: width 0.3s var(--ease);
}

.mission:hover .mission__label::after,
.mission:focus-visible .mission__label::after,
.mission.is-active .mission__label::after {
  width: 48px;
}

.mission-detail {
  margin-top: 1.75rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid var(--panel-border);
  border-top: 2px solid var(--orange);
  border-radius: 0.65rem;
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.mission-detail[hidden] {
  display: none;
}

.mission-detail__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.mission-detail__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}

.mission-detail__body {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Ask — full-bleed plate like About, copy left, photo fades into the page */
.ask {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

.ask__media {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Push plate right so copy sits on quiet dark room, not the analyst. */
  left: 18%;
  right: -12%;
  will-change: transform;
}

.ask__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  /* Soft edge fade on all sides — sides wider than top/bottom so no hard crop. */
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 10%,
      #000 22%,
      #000 78%,
      rgba(0, 0, 0, 0.35) 90%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 12%,
      rgba(0, 0, 0, 0.65) 24%,
      #000 38%,
      #000 62%,
      rgba(0, 0, 0, 0.65) 76%,
      rgba(0, 0, 0, 0.2) 88%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 10%,
      #000 22%,
      #000 78%,
      rgba(0, 0, 0, 0.35) 90%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 12%,
      rgba(0, 0, 0, 0.65) 24%,
      #000 38%,
      #000 62%,
      rgba(0, 0, 0, 0.65) 76%,
      rgba(0, 0, 0, 0.2) 88%,
      transparent 100%
    );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Left-only readability wash for copy — does not feather the photo edges. */
.ask__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--bg) 45%, transparent) 28%,
    transparent 52%
  );
  pointer-events: none;
}

[data-theme="light"] .ask__shade {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg) 72%, transparent) 22%,
    color-mix(in srgb, var(--bg) 28%, transparent) 42%,
    transparent 58%
  );
}

.ask__content {
  position: relative;
  z-index: 2;
  width: min(480px, calc(100% - 2.5rem));
  margin: 4.5rem 0 4.5rem max(1.25rem, calc((100% - 1120px) / 2));
}

.ask__content .section__lede {
  margin-bottom: 1.5rem;
}

/* Truman detail expand (Explore Truman) */
.truman-detail {
  position: relative;
  padding: 3.5rem 0 4.25rem;
  border-top: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--bg) 92%, var(--blue-deep));
  scroll-margin-top: 5.5rem;
}

.truman-detail[hidden] {
  display: none;
}

.truman-detail__inner {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.truman-detail__head .section__title {
  max-width: 28ch;
}

.truman-detail__block {
  max-width: 46rem;
}

.truman-detail__block--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.truman-detail__block--split-reverse .truman-detail__copy {
  order: 2;
}

.truman-detail__block--split-reverse .truman-detail__visual {
  order: 1;
}

.truman-detail__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}

.truman-detail__block p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.truman-detail__lead {
  margin-bottom: 0.65rem !important;
  color: var(--fg) !important;
  font-weight: 550;
}

.truman-detail__list,
.truman-detail__caps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.truman-detail__list li,
.truman-detail__caps li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.truman-detail__list li::before,
.truman-detail__caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue-bright);
}

.truman-detail__caps li strong {
  color: var(--fg);
  font-weight: 650;
}

.truman-detail__visual {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  /* Soft edge fade into the page — no card border or fill. */
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.truman-diagram {
  width: 100%;
  height: auto;
  max-height: 100%;
  overflow: visible;
  font-family: var(--font);
}

.truman-diagram__orbit {
  opacity: 0.7;
}

.truman-diagram__spokes line,
.truman-diagram__flows path {
  stroke-linecap: round;
}

.truman-diagram__node circle {
  fill: color-mix(in srgb, var(--bg) 55%, var(--blue-deep));
  stroke: color-mix(in srgb, var(--blue-bright) 55%, transparent);
  stroke-width: 1.5;
}

.truman-diagram__node text {
  fill: var(--fg);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: middle;
}

.truman-diagram__hub circle {
  fill: color-mix(in srgb, var(--blue-deep) 72%, var(--bg));
  stroke: var(--blue-bright);
  stroke-width: 2;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--blue) 45%, transparent));
}

.truman-diagram__hub-title {
  fill: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-anchor: middle;
}

.truman-diagram__hub-sub {
  fill: color-mix(in srgb, #fff 72%, var(--blue-bright));
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.truman-diagram__layer rect {
  fill: color-mix(in srgb, var(--bg) 48%, var(--panel));
  stroke: var(--panel-border);
  stroke-width: 1.25;
}

.truman-diagram__layer--core rect {
  fill: color-mix(in srgb, var(--blue-deep) 55%, var(--bg));
  stroke: color-mix(in srgb, var(--blue-bright) 65%, transparent);
  stroke-width: 1.75;
}

.truman-diagram__layer-title,
.truman-diagram__cap text:first-of-type {
  fill: var(--fg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.truman-diagram__layer--base .truman-diagram__layer-title {
  font-size: 12px;
}

.truman-diagram__layer--base text:not(.truman-diagram__layer-title) {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 550;
  text-anchor: middle;
}

.truman-diagram__layer-sub,
.truman-diagram__cap-sub {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.03em;
  text-anchor: middle;
}

.truman-diagram__layer--core .truman-diagram__layer-title,
.truman-diagram__layer--core .truman-diagram__layer-sub {
  fill: #fff;
}

.truman-diagram__layer--core .truman-diagram__layer-sub {
  fill: color-mix(in srgb, #fff 78%, var(--blue-bright));
}

.truman-diagram__cap rect {
  fill: color-mix(in srgb, var(--bg) 40%, var(--panel));
  stroke: color-mix(in srgb, var(--orange) 45%, var(--panel-border));
  stroke-width: 1.25;
}

@media (prefers-reduced-motion: no-preference) {
  .truman-diagram__spokes line,
  .truman-diagram__flows path {
    stroke-dasharray: 4 8;
    animation: trumanDiagramFlow 2.8s linear infinite;
  }
}

@keyframes trumanDiagramFlow {
  to {
    stroke-dashoffset: -24;
  }
}

.truman-detail__quote {
  margin: 1.35rem 0 0;
  padding: 1.15rem 1.25rem 1.2rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 0.55rem 0.55rem 0;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.truman-detail__quote p {
  margin: 0 0 0.75rem;
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
}

.truman-detail__quote footer {
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
}

.truman-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .truman-detail__block--split,
  .truman-detail__block--split-reverse {
    grid-template-columns: 1fr;
  }

  .truman-detail__block--split-reverse .truman-detail__copy,
  .truman-detail__block--split-reverse .truman-detail__visual {
    order: initial;
  }
}

@media (max-width: 720px) {
  .ask__media {
    left: 8%;
    right: -6%;
  }

  .truman-detail {
    padding: 2.5rem 0 3rem;
  }

  .truman-detail__inner {
    gap: 2.1rem;
  }

  .truman-detail__block p,
  .truman-detail__list li,
  .truman-detail__caps li {
    font-size: 0.95rem;
  }

  .truman-detail__quote {
    padding: 1rem 1.05rem;
  }

  .truman-detail__quote p {
    font-size: 0.98rem;
  }

  .truman-detail__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Managed Services */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.service {
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  cursor: default;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.service:hover,
.service:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  background: color-mix(in srgb, var(--panel) 86%, var(--orange) 14%);
}

.service h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.services__cta {
  margin-top: 1.75rem;
}

/* Resources — same sideways track as the mission areas. */
.resources {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  max-width: none;
  padding: 0.35rem 0 0.85rem;
  box-sizing: border-box;
}

.resource {
  display: grid;
  gap: 0.5rem;
  flex: 0 0 16.75rem;
  flex-shrink: 0;
  width: 16.75rem;
  min-width: 16.75rem;
  max-width: 16.75rem;
  min-height: 7.5rem;
  box-sizing: border-box;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.resource:hover,
.resource:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue-bright) 50%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  background: color-mix(in srgb, var(--panel) 88%, var(--blue) 12%);
}

.resource__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 650;
}

.resource strong {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.resource__meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.resource:hover .resource__meta,
.resource:focus-visible .resource__meta {
  color: var(--blue-bright);
}

/* Metrics */
.metrics {
  position: relative;
  padding: 4.75rem 0;
  overflow: hidden;
  border-block: 0;
}

.metrics .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
}

.metrics__title {
  margin: 0;
  max-width: none;
  font-size: clamp(0.82rem, 1.5vw, 1.1rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-transform: none;
  color: var(--fg);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .metrics__title {
    white-space: normal;
    text-wrap: balance;
    font-size: 0.92rem;
  }
}

.metrics__row {
  display: grid;
  gap: 1rem;
}

.metric {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.8rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  cursor: default;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.metric:hover,
.metric:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--blue-bright) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue-bright) 30%, transparent), 0 20px 48px rgba(0, 0, 0, 0.26);
  background: color-mix(in srgb, var(--panel) 86%, var(--blue) 14%);
}

.metric--glow {
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 25%, transparent),
    0 14px 40px rgba(0, 0, 0, 0.18),
    0 0 36px rgba(255, 122, 46, 0.12);
}

.metric--glow:hover,
.metric--glow:focus-visible {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--panel) 84%, var(--orange) 16%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 40%, transparent),
    0 20px 48px rgba(0, 0, 0, 0.26),
    0 0 48px rgba(255, 122, 46, 0.2);
}

[data-theme="light"] .metric {
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.06);
}

[data-theme="light"] .metric:hover,
[data-theme="light"] .metric:focus-visible {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--blue-bright) 28%, transparent),
    0 12px 28px rgba(11, 18, 32, 0.08);
}

[data-theme="light"] .metric--glow {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 22%, transparent),
    0 8px 24px rgba(11, 18, 32, 0.06),
    0 0 28px rgba(212, 85, 8, 0.08);
}

[data-theme="light"] .metric--glow:hover,
[data-theme="light"] .metric--glow:focus-visible {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 35%, transparent),
    0 12px 28px rgba(11, 18, 32, 0.08),
    0 0 36px rgba(212, 85, 8, 0.12);
}

.metric__value {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}

.metric__label {
  margin: 0.55rem 0 0;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 68vh;
  display: grid;
  align-items: center;
  background: var(--bg);
}

.cta__media {
  position: absolute;
  width: min(980px, 92vw);
  height: min(560px, 62vh);
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  will-change: transform;
}

.cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  filter: saturate(1.08) contrast(1.08) brightness(1.05);
  /* Feather every edge of the photo into the page — no hard rectangle. */
  -webkit-mask-image:
    radial-gradient(
      ellipse 70% 62% at 50% 48%,
      #000 8%,
      rgba(0, 0, 0, 0.92) 32%,
      rgba(0, 0, 0, 0.45) 55%,
      transparent 72%
    ),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image:
    radial-gradient(
      ellipse 70% 62% at 50% 48%,
      #000 8%,
      rgba(0, 0, 0, 0.92) 32%,
      rgba(0, 0, 0, 0.45) 55%,
      transparent 72%
    ),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.cta__lens {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  width: min(40rem, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 5rem 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.cta__inner .section__title {
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 10px 36px rgba(0, 0, 0, 0.8),
    0 0 56px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(0, 0, 0, 0.5);
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 28px rgba(0, 0, 0, 0.55));
}

.cta__inner .section__lede {
  text-align: center;
  color: #ffffff;
  opacity: 1;
  max-width: 36rem;
  /* Dark blown-out shadow so white copy holds over the campus plate. */
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 4px 14px rgba(0, 0, 0, 0.9),
    0 12px 40px rgba(0, 0, 0, 0.8),
    0 0 64px rgba(0, 0, 0, 0.7),
    0 0 110px rgba(0, 0, 0, 0.5);
  filter:
    drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 32px rgba(0, 0, 0, 0.65));
}

/* Light mode: washed campus plate + soft white veil (matches reference). */
[data-theme="light"] .cta__img {
  opacity: 0.68;
  filter: saturate(1.02) contrast(1.02) brightness(1.12);
}

[data-theme="light"] .cta__lens {
  display: block;
  background: radial-gradient(
    ellipse 68% 58% at 50% 48%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.28) 42%,
    rgba(255, 255, 255, 0.55) 68%,
    rgba(255, 255, 255, 0.82) 100%
  );
  -webkit-mask-image:
    radial-gradient(
      ellipse 70% 62% at 50% 48%,
      #000 8%,
      rgba(0, 0, 0, 0.92) 32%,
      rgba(0, 0, 0, 0.45) 55%,
      transparent 72%
    ),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image:
    radial-gradient(
      ellipse 70% 62% at 50% 48%,
      #000 8%,
      rgba(0, 0, 0, 0.92) 32%,
      rgba(0, 0, 0, 0.45) 55%,
      transparent 72%
    ),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

[data-theme="light"] .cta__inner .section__title {
  color: #ffffff;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.38),
    0 6px 22px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(0, 0, 0, 0.38);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.38));
}

[data-theme="light"] .cta__inner .section__lede {
  color: #ffffff;
  opacity: 1;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.38),
    0 5px 18px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(0, 0, 0, 0.38);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.38));
}

/* Footer */
.footer {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  align-items: start;
}

.footer__tag {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer h4 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.35rem;
  max-width: 28rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--blue-bright);
}

.footer__bar {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer__legal a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--blue-bright);
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .intro__tagline,
  .intro__word,
  .intro__line,
  .intro__scan,
  .intro__rings span,
  .hero__img,
  .hero__flare,
  .intro__mark,
  .metric--glow,
  .site {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .intro.is-done {
    display: none;
  }
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission {
    flex-basis: 17.25rem;
    width: 17.25rem;
    min-width: 17.25rem;
    max-width: 17.25rem;
  }

  .metrics__row {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 1rem;
  }

  .footer__grid {
    grid-template-columns: auto minmax(16rem, 1.35fr) minmax(10rem, 0.85fr);
    column-gap: 2rem;
  }
}

@media (min-width: 960px) {
  .nav--primary {
    display: flex;
  }

  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }

  .mission {
    flex-basis: 17.75rem;
    width: 17.75rem;
    min-width: 17.75rem;
    max-width: 17.75rem;
  }

  .resource {
    flex-basis: 17.75rem;
    width: 17.75rem;
    min-width: 17.75rem;
    max-width: 17.75rem;
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__content {
    margin-bottom: auto;
    padding-top: 18vh;
  }
}

/* ========== REQUEST MODAL ========== */
.request-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.request-modal[hidden] {
  display: none;
}

.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .request-modal__backdrop {
  background: rgba(11, 18, 32, 0.45);
}

.request-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(92vh, 44rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: 0.85rem;
  border: 1px solid var(--panel-border);
  background: var(--bg-elevated);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  color: var(--fg);
}

.request-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.request-modal__close:hover,
.request-modal__close:focus-visible {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  outline: none;
}

.request-modal__close:focus-visible {
  box-shadow: var(--focus-ring);
}

.request-modal__title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
}

.request-modal__lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.request-form {
  display: grid;
  gap: 0.9rem;
}

.request-form__row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 520px) {
  .request-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.request-form__field {
  display: grid;
  gap: 0.35rem;
}

.request-form__field span,
.request-form__interest legend {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.request-form__field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}

.request-form__field input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--blue-bright);
}

.request-form__interest {
  margin: 0.15rem 0 0;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  display: grid;
  gap: 0.55rem;
}

.request-form__interest legend {
  padding: 0 0.25rem;
}

.request-form__interest label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  color: var(--fg);
  font-size: 0.95rem;
}

.request-form__interest input {
  accent-color: var(--blue);
  width: 1rem;
  height: 1rem;
}

.request-form__captcha {
  min-height: 78px;
}

.request-form__captcha .g-recaptcha {
  transform-origin: left top;
}

.request-form__status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.request-form__status[data-tone="error"] {
  color: #e85a4a;
}

[data-theme="light"] .request-form__status[data-tone="error"] {
  color: #c0392b;
}

.request-form__status[data-tone="info"] {
  color: var(--muted);
}

.request-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.request-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

body.is-request-open {
  overflow: hidden;
}

/* Prevent page-level sideways scroll (missions rail scrolls inside itself).
   Only clip X on body — clipping both html+body makes iPad Chrome/Safari
   drop the viewport vertical scrollbar. */
html {
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body {
  overflow-x: clip;
}

@media (max-width: 719px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
  }

  .logo__tag {
    display: none;
  }

  .logo__mark {
    width: 2rem;
    height: 2rem;
  }

  .logo__name {
    font-size: 0.92rem;
  }

  .header__demo-full {
    display: none;
  }

  .header__demo-short {
    display: inline;
  }

  .header__actions {
    gap: 0.4rem;
  }

  .theme-toggle {
    width: 2.4rem;
    height: 2.4rem;
  }

  .header.is-context {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 0.45rem;
  }

  .header.is-context .nav--context:not([hidden]) {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    gap: 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .header.is-context .nav--context:not([hidden])::-webkit-scrollbar {
    display: none;
  }

  .nav__subs {
    gap: 0.85rem;
    padding-left: 0.25rem;
    margin-left: 0;
    flex-shrink: 0;
  }

  .nav__label {
    flex-shrink: 0;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }

  .nav__home {
    flex-shrink: 0;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 100svh;
    justify-content: center;
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
  }

  .hero__content {
    width: calc(100% - 1.5rem);
    margin: 0 auto;
    padding-top: 0;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(1.7rem, 8.2vw, 2.35rem);
    margin: 0 auto 0.85rem;
    width: 100%;
  }

  .hero__title-line,
  .hero__title-line--mid {
    text-align: center;
  }

  .hero__lede {
    font-size: 0.98rem;
    margin: 0 auto 1.25rem;
    max-width: 28rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
  }

  .hero__ctas .btn--ghost {
    width: auto;
    padding-inline: 0.2rem;
  }

  .hero__rail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - 1.5rem);
    margin-inline: auto;
    justify-content: center;
    text-align: center;
    gap: 0.45rem 0.7rem;
    padding: 0.85rem 0 1.1rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .about__rail {
    width: calc(100% - 1.5rem);
    gap: 0.45rem 0.7rem;
    padding: 0.85rem 0 1.1rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .hero__img {
    object-position: 70% center;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section--tight {
    padding-top: 1.25rem;
  }

  .section--scene + .section--scene {
    margin-top: -0.75rem;
    padding-top: calc(3.75rem + 0.75rem);
  }

  .cta,
  .hero,
  .about,
  .ask,
  .truman-detail {
    scroll-margin-top: 4.5rem;
  }

  .section,
  #platform,
  #solutions,
  #services,
  #resources,
  #physical-ai,
  #truman-detail,
  #about,
  #cta {
    scroll-margin-top: 4.5rem;
  }

  #solutions .section__head {
    padding-top: 0.25rem;
  }

  .section__title {
    font-size: clamp(1.45rem, 6.5vw, 1.95rem);
  }

  .section__lede {
    font-size: 0.98rem;
  }

  .section__head {
    margin-bottom: 1.75rem;
  }

  .pillars,
  .missions,
  .services,
  .resources,
  .metrics__row {
    gap: 0.85rem;
  }

  .pillar,
  .service,
  .resource {
    padding: 1.15rem 1.05rem 1.25rem;
  }

  .mission__frame,
  .mission img {
    min-height: 180px;
  }

  .mission-detail {
    margin-top: 1.15rem;
    padding: 1.1rem 1.05rem 1.2rem;
  }

  .mission-detail__body {
    font-size: 0.95rem;
  }

  .ask {
    min-height: min(70svh, 520px);
    padding: 5rem 0 3.5rem;
  }

  .ask__media {
    left: 6%;
    right: -18%;
  }

  .ask__img {
    object-position: 20% center;
    -webkit-mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 8%,
        #000 18%,
        #000 82%,
        rgba(0, 0, 0, 0.35) 92%,
        transparent 100%
      ),
      linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 10%,
        #000 28%,
        #000 78%,
        rgba(0, 0, 0, 0.45) 90%,
        transparent 100%
      );
    mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 8%,
        #000 18%,
        #000 82%,
        rgba(0, 0, 0, 0.35) 92%,
        transparent 100%
      ),
      linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 10%,
        #000 28%,
        #000 78%,
        rgba(0, 0, 0, 0.45) 90%,
        transparent 100%
      );
  }

  .ask__shade {
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg) 92%, transparent) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 42%,
      transparent 72%
    );
  }

  [data-theme="light"] .ask__shade {
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg) 96%, transparent) 0%,
      color-mix(in srgb, var(--bg) 78%, transparent) 36%,
      color-mix(in srgb, var(--bg) 35%, transparent) 58%,
      transparent 78%
    );
  }

  .ask__content {
    width: calc(100% - 1.5rem);
    margin: 0 auto;
  }

  .about {
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  .about__content {
    width: calc(100% - 1.5rem);
    margin: 0 auto 1.5rem;
    padding-top: 5.5rem;
  }

  .about__title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .about__lede {
    font-size: 0.98rem;
  }

  .metrics {
    padding: 3.25rem 0;
  }

  .metrics .container {
    gap: 1.15rem;
  }

  .metrics__title {
    white-space: normal;
    text-wrap: balance;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
  }

  .metric {
    padding: 1.2rem 1rem;
  }

  .metric__value {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
  }

  .cta {
    min-height: auto;
  }

  .cta__media {
    width: min(980px, 100vw);
    height: min(420px, 48vh);
  }

  .cta__inner {
    width: calc(100% - 1.5rem);
    padding: 3.5rem 0;
    gap: 0.9rem;
  }

  .cta__inner .section__title {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .cta__inner .section__lede {
    font-size: 0.95rem;
  }

  .cta__inner .btn {
    width: 100%;
  }

  .footer {
    padding-top: 2.5rem;
  }

  .footer__grid {
    gap: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.85rem 0;
  }

  .subpage__hero {
    min-height: 42vh;
  }

  .subpage__hero-copy {
    padding: 5.5rem 0 1.75rem;
  }

  .subpage__title {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .subpage--legal .subpage__body {
    padding-top: 4.75rem;
  }

  .subpage__faq summary {
    font-size: 0.95rem;
    padding-right: 1.5rem;
  }

  .request-modal {
    padding: 0.75rem;
    align-items: end;
  }

  .request-modal__dialog {
    width: 100%;
    max-height: min(92svh, 40rem);
    padding: 1.35rem 1.1rem 1.25rem;
    border-radius: 0.85rem 0.85rem 0.55rem 0.55rem;
  }

  .intro__center {
    padding: 1rem;
  }

  .intro__mark {
    width: 4rem;
    height: 4rem;
  }

  .intro__title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.55rem 0.7rem;
  }

  .hero__content,
  .about__content,
  .ask__content,
  .cta__inner,
  .container {
    width: calc(100% - 1.25rem);
  }

  .hero__rail,
  .about__rail {
    width: calc(100% - 1.25rem);
  }

  .section {
    padding: 3.25rem 0;
  }

  .ask__media {
    left: 0;
    right: -22%;
    opacity: 0.92;
  }

  .btn--lg {
    min-height: 2.85rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.82rem;
  }
}

