:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-strong: #e8e8e8;
  --fg: #000000;
  --muted: #484848;
  --faint: #707070;
  --inverse-bg: #090909;
  --inverse-fg: #ffffff;
  --inverse-muted: #c7c7c7;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.09);
  --font-body: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --wrap: 80rem;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #111111;
  --surface-strong: #1b1b1b;
  --fg: #ffffff;
  --muted: #c9c9c9;
  --faint: #9b9b9b;
  --inverse-bg: #f7f7f7;
  --inverse-fg: #000000;
  --inverse-muted: #484848;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 18rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

[data-wordmark] {
  filter: grayscale(1) brightness(0);
}

:root[data-theme="dark"] [data-wordmark] {
  filter: grayscale(1) brightness(0) invert(1);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 0.18rem solid currentColor;
  outline-offset: 0.25rem;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-180%);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 6.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.header-inner > * {
  pointer-events: auto;
}

.wordmark-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.wordmark-link img {
  width: auto;
  height: 2.7rem;
  object-fit: contain;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.3rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.2rem;
  padding-inline: 0.75rem;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--fg);
}

.icon-button,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-weight: 800;
}

.menu-button {
  padding-inline: 0.85rem;
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  overflow: auto;
  padding: 6rem 1.25rem 2rem;
  background: var(--bg);
  color: var(--fg);
  pointer-events: auto;
}

.mobile-panel[data-open="true"] {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-nav a[aria-current="page"]::after {
  content: "Current";
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-utilities {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.mobile-utilities a {
  color: var(--muted);
  font-weight: 800;
}

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

  .menu-button {
    display: none;
  }
}

.section,
.page-hero,
.home-hero {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.page-hero {
  padding-top: clamp(5rem, 9vw, 8rem);
}

.page-hero-grid,
.split-heading,
.editorial-grid,
.action-panel {
  display: grid;
  gap: 2rem;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero-copy {
  align-self: end;
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.page-hero-copy > * + * {
  margin-top: 1.5rem;
}

.section-soft {
  background: var(--surface);
}

.section-dark {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.section-dark .eyebrow,
.section-dark p,
.section-dark small {
  color: var(--inverse-muted);
}

.split-heading > p,
.editorial-grid .prose,
.action-panel .prose {
  align-self: end;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.section-dark .action-panel .prose {
  color: var(--inverse-muted);
}

.section-dark .split-heading > p,
.section-dark .editorial-grid .prose {
  color: var(--inverse-muted);
}

@media (min-width: 48rem) {
  .page-hero-grid,
  .split-heading,
  .editorial-grid,
  .action-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: clamp(3rem, 8vw, 8rem);
  }
}

.home-hero {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.home-hero-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(34rem, 70vh, 48rem);
  overflow: hidden;
  border-radius: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--inverse-bg);
  color: var(--inverse-fg);
}

.home-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
}

.home-hero-panel[data-video-active="true"]::before {
  opacity: 1;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.home-hero-panel[data-video-active="true"] .home-hero-video {
  opacity: 1;
}

.home-hero-panel[data-video-active="true"] {
  color: #ffffff;
}

.home-hero-panel[data-video-active="true"] .eyebrow,
.home-hero-panel[data-video-active="true"] .hero-copy p {
  color: #ffffff;
}

.home-hero-art span {
  position: absolute;
  z-index: 0;
  display: block;
  background: color-mix(in srgb, var(--inverse-fg) 8%, transparent);
}

.home-hero-art span:nth-child(1) {
  top: -14rem;
  right: -8rem;
  width: 31rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.home-hero-art span:nth-child(2) {
  top: 7rem;
  right: 7%;
  width: 8rem;
  height: 22rem;
  border-radius: 999px;
  transform: rotate(28deg);
}

.home-hero-art span:nth-child(3) {
  bottom: -10rem;
  right: 25%;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.home-hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 58rem);
  padding: clamp(2rem, 6vw, 5rem);
}

.home-hero-content .eyebrow,
.home-hero-content > p {
  color: var(--inverse-muted);
}

.home-hero-content h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
}

.home-hero-content > p:not(.eyebrow) {
  max-width: 39rem;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-solid {
  background: var(--fg);
  color: var(--bg);
}

.section-dark .button-solid,
.home-hero .button-solid {
  background: var(--inverse-fg);
  color: var(--inverse-bg);
}

.button-quiet {
  background: color-mix(in srgb, var(--inverse-fg) 10%, transparent);
  color: var(--inverse-fg);
}

.route-grid,
.fact-grid,
.card-grid,
.download-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.route-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem;
  min-height: 11rem;
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.route-card:hover {
  transform: translateY(-0.2rem);
  background: var(--surface-strong);
}

.route-number,
.fact-card > span,
.plain-card > span {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.route-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.route-card small {
  display: block;
  max-width: 30rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 44rem) {
  .route-grid,
  .fact-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-card-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 62rem) {
  .route-grid.three,
  .card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.fact-card,
.plain-card {
  min-height: 15rem;
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
}

.section-soft .fact-card,
.section-soft .plain-card {
  background: var(--bg);
}

.fact-card h3,
.plain-card h3 {
  margin-top: 2.5rem;
}

.fact-card p,
.plain-card p {
  margin-top: 1rem;
  color: var(--muted);
}

.create-list {
  display: grid;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.create-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--inverse-fg);
  text-decoration: none;
}

.create-list a + a {
  box-shadow: inset 0 1px color-mix(in srgb, var(--inverse-fg) 16%, transparent);
}

.create-list a > span {
  color: var(--inverse-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.create-list strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
}

.create-list small {
  grid-column: 2;
  color: var(--inverse-muted);
}

.trust-strip {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.trust-strip a {
  min-height: 10rem;
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  text-decoration: none;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.trust-strip span {
  margin-top: 1rem;
  color: var(--muted);
}

@media (min-width: 52rem) {
  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.status-note {
  margin-top: 1.5rem;
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.95rem;
}

.status-note .eyebrow {
  margin-bottom: 0.5rem;
}

.prose > * + *,
.legal-copy > * + * {
  margin-top: 1.25rem;
}

.prose h2,
.legal-copy h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 800;
}

.stacked-links {
  display: grid;
  align-self: end;
}

.stacked-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.stacked-links a + a {
  box-shadow: inset 0 1px color-mix(in srgb, currentColor 18%, transparent);
}

.timeline,
.capability-list,
.principle-list,
.definition-list {
  display: grid;
}

.timeline article,
.capability-list article,
.principle-list article,
.definition-list > div {
  display: grid;
  gap: 1rem;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.timeline article + article,
.capability-list article + article,
.principle-list article + article,
.definition-list > div + div {
  box-shadow: inset 0 1px color-mix(in srgb, var(--fg) 14%, transparent);
}

.timeline article > span,
.capability-list article > span,
.principle-list article > span {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline article p,
.capability-list article p,
.principle-list article p,
.definition-list dd {
  color: var(--muted);
}

.capability-list article {
  scroll-margin-top: 7rem;
}

@media (min-width: 44rem) {
  .timeline article,
  .capability-list article,
  .principle-list article,
  .definition-list > div {
    grid-template-columns: minmax(5rem, 0.25fr) minmax(0, 1fr);
  }
}

.definition-list {
  margin: 0;
}

.definition-list dt {
  font-weight: 800;
}

.definition-list dd {
  margin: 0;
}

.definition-list.compact > div {
  padding-block: 1rem;
}

.empty-state {
  max-width: 50rem;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.empty-state p:not(.eyebrow) {
  max-width: 39rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.empty-state .button {
  margin-top: 2rem;
}

.download-card {
  display: grid;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 1rem;
  text-decoration: none;
}

.wordmark-preview {
  display: grid;
  min-height: 15rem;
  place-items: center;
  border-radius: 0.8rem;
  padding: 2rem;
}

.wordmark-preview img {
  width: min(100%, 20rem);
  height: auto;
  object-fit: contain;
}

.light-preview .wordmark-preview {
  background: #ffffff;
  filter: grayscale(1) brightness(0);
}

.dark-preview .wordmark-preview {
  background: #000000;
  filter: grayscale(1) brightness(0) invert(1);
}

.download-card strong {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.download-card small {
  color: var(--muted);
}

.legal-copy {
  max-width: 48rem;
}

.legal-copy code {
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
  background: var(--surface-strong);
  font-size: 0.9em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1rem;
  color: var(--faint);
  font-size: 0.8rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer {
  padding-block: clamp(4rem, 8vw, 7rem) 1.5rem;
  background: var(--bg);
}

.footer-top {
  display: grid;
  gap: 3rem;
}

.footer-brand img {
  width: auto;
  height: 3.5rem;
  object-fit: contain;
}

.footer-brand p {
  max-width: 25rem;
  margin-top: 1rem;
  color: var(--muted);
}

.footer-groups {
  display: grid;
  gap: 2rem;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.footer-group p {
  margin-bottom: 0.35rem;
}

.footer-group a {
  color: var(--muted);
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 4rem;
  padding-top: 1.25rem;
  color: var(--faint);
  font-size: 0.8rem;
}

@media (min-width: 48rem) {
  .footer-top {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  }

  .footer-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.maintenance-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.maintenance-shell {
  width: min(100%, 48rem);
  text-align: center;
}

.maintenance-shell > img {
  width: auto;
  height: 4rem;
  margin-inline: auto;
  object-fit: contain;
}

.maintenance-shell h1 {
  margin-top: 3rem;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.maintenance-shell > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.maintenance-facts {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  text-align: left;
}

.maintenance-facts div {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
}

.maintenance-facts strong,
.maintenance-facts span {
  display: block;
}

.maintenance-facts span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.maintenance-theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--surface);
}

.not-found {
  min-height: 68vh;
  display: grid;
  align-items: center;
}

.not-found .page-hero-grid {
  align-items: end;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .button {
    display: none !important;
  }

  body,
  .section,
  .page-hero {
    background: #ffffff !important;
    color: #000000 !important;
  }

  a {
    text-decoration: underline;
  }
}
