:root {
  --accent: #a1876b;
  --accent-bright: #b69b80;
  --accent-soft: rgba(161, 135, 107, 0.18);
  --dark: #050607;
  --light: #f1f1f1;
  --paper: #f8f8f6;
  --paper-warm: #f1f1f1;
  --surface-muted: #e5e5e3;
  --surface-soft: #fafaf9;
  --surface-deep: #111416;
  --ink: #0d0f10;
  --ink-soft: #383632;
  --muted: #5f5d59;
  --faint: #817c75;
  --line: rgba(5, 6, 7, 0.15);
  --line-light: rgba(255, 255, 255, 0.17);

  --type-display: clamp(3.25rem, 7.6vw, 7.8rem);
  --type-hero: clamp(2.55rem, 4.8vw, 4.85rem);
  --type-h1: clamp(2.8rem, 5.2vw, 5.4rem);
  --type-h2: clamp(2.1rem, 3.8vw, 4rem);
  --type-h3: clamp(1.45rem, 2.1vw, 1.95rem);
  --type-h4: clamp(1.15rem, 1.45vw, 1.38rem);
  --type-body-lg: clamp(1.08rem, 1.5vw, 1.35rem);
  --type-body: 1rem;
  --type-body-sm: 0.9rem;
  --type-label: 0.68rem;
  --type-nav: 0.7rem;

  --space-one: clamp(88px, 8.5vw, 104px);
  --space-two: clamp(96px, 9.5vw, 112px);
  --space-three: clamp(104px, 10vw, 120px);

  --gutter: 32px;
  --max-width: 1320px;
  --radius-large: 28px;
  --radius-medium: 20px;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--light);
  font-family: "Helvetica Neue", "Inter", Arial, sans-serif;
  font-size: var(--type-body);
  line-height: 1.45;
  letter-spacing: -0.018em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  overflow: hidden;
}

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 5px;
}

::selection {
  color: var(--dark);
  background: var(--accent-bright);
}

.shell {
  width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.band {
  position: relative;
  border-top: 1px solid var(--line);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: #fff;
  background: rgba(5, 6, 7, 0.56);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.68rem;
  color: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  transition: opacity 220ms ease, transform 220ms ease;
}

.brand:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

.brand-name {
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 22px;
  flex: 0 0 23px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  display: block;
  content: "";
}

.brand-mark::before {
  top: 1px;
  left: 0;
  width: 14px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%);
  opacity: 0.88;
}

.brand-mark::after {
  right: 0;
  bottom: 0;
  width: 14px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 47%, 100% 100%, 0 53%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--type-nav);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 220ms ease, opacity 220ms ease;
}

.site-nav a:hover {
  color: #fff;
  opacity: 1;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(900px, 100svh);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-color: var(--dark);
  background:
    radial-gradient(circle at 75% 22%, rgba(161, 135, 107, 0.35), transparent 31%),
    linear-gradient(125deg, #08090a 0%, #25211e 100%);
  background-color: var(--dark);
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  filter: saturate(1.16) contrast(0.98);
}

.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.43) 0%, rgba(5, 6, 7, 0.05) 36%, rgba(5, 6, 7, 0.52) 100%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.48) 0%, rgba(5, 6, 7, 0.04) 64%, rgba(5, 6, 7, 0.24) 100%);
}

.hero-inner {
  display: flex;
  min-height: min(900px, 100svh);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(150px, 16vw, 220px);
  padding-bottom: clamp(100px, 12vw, 164px);
  text-align: center;
}

.eyebrow,
.section-marker,
.card-kicker,
.card-meta,
.footer-heading {
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent-bright);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  background: none;
  font-size: var(--type-hero);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-subhead {
  max-width: 820px;
  margin: 2rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--type-body-lg);
  line-height: 1.3;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.stats {
  display: flex;
  max-width: 560px;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1.1rem, 3vw, 3.2rem);
  margin: 1.45rem 0 1.65rem;
  padding: 0;
  opacity: 0.78;
  list-style: none;
}

.stats li {
  min-width: 112px;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  text-align: left;
}

.stats strong {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.stats span {
  display: block;
  margin-top: 0.42rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--type-body-sm);
  line-height: 1.2;
}

a[href="/go"] {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25),
    0 15px 32px rgba(161, 135, 107, 0.38);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  transition:
    transform 280ms ease,
    background-color 280ms ease,
    box-shadow 280ms ease;
}

a[href="/go"]:hover {
  transform: translateY(-3px);
  background: var(--accent-bright);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28),
    0 22px 40px rgba(161, 135, 107, 0.44);
}

.hero a[href="/go"] {
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 15px 32px rgba(0, 0, 0, 0.3);
}

.hero a[href="/go"]:hover {
  color: var(--ink);
  background: #f5f5f3;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 22px 40px rgba(0, 0, 0, 0.36);
}

a[href="/go"]:active {
  transform: translateY(-1px);
}

.hero-console {
  width: min(720px, 100%);
  margin-top: clamp(2rem, 3.5vw, 2.8rem);
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(241, 241, 241, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 16px 38px rgba(0, 0, 0, 0.25);
  text-align: left;
  backdrop-filter: blur(18px);
}

.console-bar,
.console-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0.68rem 0.7rem;
  color: var(--ink);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.console-status i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #79c48b;
  box-shadow: 0 0 0 4px rgba(121, 196, 139, 0.13);
}

.console-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.7;
  border-radius: 13px;
  background: var(--surface-deep);
}

.console-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.58), transparent 58%);
  pointer-events: none;
}

.console-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.08) contrast(1.06) brightness(1.22);
}

.console-prompt {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  right: 0.85rem;
  left: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.65rem 0.7rem 0.65rem 1rem;
  border: 1px solid rgba(5, 6, 7, 0.12);
  border-radius: 12px;
  color: var(--ink-soft);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  font-size: 0.78rem;
  letter-spacing: -0.015em;
}

.console-prompt b {
  display: inline-grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--dark);
  font-size: 1rem;
  line-height: 1;
}

.console-caption {
  position: absolute;
  z-index: 1;
  right: 1.15rem;
  bottom: 1rem;
  left: 1.15rem;
  max-width: 410px;
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.console-tags {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0.7rem 0.28rem 0.12rem;
}

.console-tags span {
  padding: 0.52rem 0.76rem;
  border: 1px solid rgba(5, 6, 7, 0.16);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}

.console-tags span:hover {
  border-color: rgba(5, 6, 7, 0.4);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.mission-band {
  padding: var(--space-three) 0 var(--space-one);
  background: var(--paper);
}

.mission-layout,
.section-header {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 8vw, 9rem);
  align-items: start;
}

.section-marker {
  padding-top: 0.62rem;
  color: var(--accent);
}

.section-title {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-size: var(--type-h2);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.mission-copy {
  max-width: 930px;
}

.mission-layout {
  display: block;
}

.mission-layout > .section-marker {
  margin-bottom: 1.6rem;
  text-align: center;
}

.mission-copy {
  margin-inline: auto;
  text-align: center;
}

.mission-lead {
  margin-inline: auto;
}

.mission-lead {
  max-width: 760px;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.mission-rule {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: clamp(3.6rem, 7vw, 6.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.mission-rule::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 54px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.mission-quote {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--type-h3);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.mission-aside {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.5;
}

.work-band {
  padding: var(--space-two) 0 var(--space-three);
  background: var(--surface-muted);
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5.6rem);
}

.section-heading {
  max-width: 900px;
}

.section-description {
  max-width: 700px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.34;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

main .card-text {
  max-width: 760px;
}

main .section-marker,
main .card-kicker,
main .footer-heading {
  color: #5f5044;
}

main .band-dark .section-marker,
main .band-dark .card-kicker,
main .band-dark .footer-heading,
main .research-band .section-marker,
main .research-band .card-kicker {
  color: #d6c7b8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.35rem;
}

.object-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.84),
    0 20px 50px rgba(5, 6, 7, 0.1);
  transition:
    transform 430ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 430ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease;
}

.object-card:hover {
  transform: translateY(-6px);
  border-color: rgba(161, 135, 107, 0.48);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 28px 64px rgba(5, 6, 7, 0.16);
}

.feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-column: span 6;
}

.feature-card--large {
  grid-column: span 7;
}

.feature-card--compact {
  grid-column: span 5;
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(161, 135, 107, 0.33), transparent 35%),
    linear-gradient(135deg, #d6cdc2 0%, #8b8178 100%);
}

.feature-card--compact .card-media {
  aspect-ratio: 4 / 3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.object-card:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  padding: 1.45rem 1.5rem 1.7rem;
}

.card-kicker {
  margin: 0 0 0.95rem;
  color: var(--accent);
}

.card-title {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-h3);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.card-text {
  max-width: 560px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.48;
  letter-spacing: -0.018em;
}

.research-band {
  overflow: hidden;
  padding: var(--space-three) 0 var(--space-two);
  color: var(--light);
  background:
    radial-gradient(circle at 86% 8%, rgba(161, 135, 107, 0.2), transparent 26%),
    radial-gradient(circle at 12% 92%, rgba(161, 135, 107, 0.12), transparent 28%),
    var(--dark);
  border-top-color: rgba(255, 255, 255, 0.13);
}

.research-band::after {
  position: absolute;
  right: -12%;
  bottom: 9%;
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  content: "";
  border: 1px solid rgba(161, 135, 107, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.research-band .section-title {
  color: #fff;
}

.research-band .section-description {
  color: rgba(241, 241, 241, 0.62);
}

.research-band .section-marker {
  color: var(--accent-bright);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.research-card {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--surface-deep);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 58px rgba(0, 0, 0, 0.3);
}

.research-card:hover {
  border-color: rgba(182, 155, 128, 0.52);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.11),
    0 30px 68px rgba(0, 0, 0, 0.42);
}

.research-card .card-kicker {
  color: var(--accent-bright);
}

.research-card .card-title {
  color: #fff;
}

.research-card .card-text {
  color: rgba(241, 241, 241, 0.62);
}

.recent-band {
  padding: var(--space-two) 0 var(--space-three);
  background: var(--surface-soft);
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.news-card {
  background: #fff;
}

.news-card .card-media {
  aspect-ratio: 16 / 10;
}

.news-card .card-body {
  padding-top: 1.35rem;
}

.card-meta {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(161, 135, 107, 0.55);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
}

main .card-meta {
  color: #5f5044;
}

main .band:not(.band-dark) .eyebrow,
main .band-tint .eyebrow {
  color: #5f5044;
}

main .band-dark .eyebrow,
main .research-band .eyebrow {
  color: #d6c7b8;
}

main .section-description + .checklist,
main .spec-wrap + .calc {
  margin-top: 1.5rem;
}

main .section-description + a[rel~="sponsored"] {
  margin-top: 1.2rem;
}

.news-card .card-title {
  font-size: var(--type-h4);
  line-height: 1.06;
}

.news-card .card-text {
  margin-top: 0.75rem;
}

.community-band {
  padding: var(--space-three) 0 var(--space-three);
  background: #e8dfd5;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.community-card {
  background: var(--paper-warm);
}

.community-card .card-media {
  aspect-ratio: 4 / 3;
}

.final-band {
  position: relative;
  overflow: hidden;
  padding: var(--space-three) 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(161, 135, 107, 0.28), transparent 34%),
    var(--dark);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.final-band::before,
.final-band::after {
  position: absolute;
  display: block;
  content: "";
  border: 1px solid rgba(161, 135, 107, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.final-band::before {
  top: -20vw;
  left: -10vw;
  width: 48vw;
  height: 48vw;
}

.final-band::after {
  right: -12vw;
  bottom: -26vw;
  width: 58vw;
  height: 58vw;
}

.final-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-inner .eyebrow {
  margin-bottom: 1.35rem;
}

.final-title {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.1vw, 3.6rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.final-copy {
  max-width: 560px;
  margin: 1.5rem 0 2.2rem;
  color: rgba(241, 241, 241, 0.67);
  font-size: var(--type-body-lg);
  line-height: 1.35;
  text-wrap: balance;
}

.fat-footer {
  padding: var(--space-three) 0 2rem;
  background: var(--light);
}

.footer-inner {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.brand--dark {
  color: var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 0.86fr) minmax(0, 1.7fr);
  gap: clamp(3rem, 9vw, 10rem);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

.footer-motto {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.4;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 1rem;
  color: var(--accent);
}

.footer-list {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.28;
  transition: color 220ms ease, transform 220ms ease;
}

.footer-list a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.footer-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

section[id] {
  scroll-margin-top: 1.5rem;
}

@media (max-width: 1040px) {
  :root {
    --gutter: 24px;
  }

  .site-nav {
    gap: 1rem;
  }

  .mission-layout,
  .section-header {
    gap: 3rem;
  }

  .feature-card--large,
  .feature-card--compact {
    grid-column: span 6;
  }

  .feature-card--large .card-media,
  .feature-card--compact .card-media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 860px) {
  .hero h1 {
    max-width: 780px;
  }

  .research-grid,
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-card:first-child {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner {
    padding-top: 128px;
    padding-bottom: 88px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 5.2rem);
  }

  .hero-subhead {
    max-width: 430px;
    margin-top: 1.55rem;
    font-size: 1.08rem;
  }

  .stats {
    width: 100%;
    max-width: 390px;
    gap: 0.75rem;
    margin: 2.3rem 0 2.55rem;
  }

  .stats li {
    min-width: 0;
    flex: 1 1 0;
    padding-left: 0.72rem;
  }

  .stats strong {
    font-size: 1.35rem;
  }

  .stats span {
    font-size: 0.78rem;
  }

  .mission-layout,
  .section-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-header {
    margin-bottom: 2.8rem;
  }

  .section-marker {
    padding-top: 0;
  }

  .mission-rule {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-grid,
  .research-grid,
  .recent-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--large,
  .feature-card--compact,
  .research-card:first-child {
    grid-column: 1;
  }

  .feature-card--large .card-media,
  .feature-card--compact .card-media,
  .research-card .card-media,
  .news-card .card-media {
    aspect-ratio: 16 / 10;
  }

  .community-card .card-media {
    aspect-ratio: 4 / 3;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.25rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

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

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

/* --- composition rules (visual-check.py: ragged image rows, stranded columns) --- */
main figure img,
main .ba img,
main .card-media img,
main .media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.section-heading {
  max-width: 780px;
  margin-inline: auto;
}
.faq-list {
  max-width: 860px;
  margin-inline: auto;
}
.ba-note {
  max-width: 820px;
  margin-inline: auto;
}


/* --- lumalabs composition fixes (hero CTA, hero alignment, calc grid, thin band) --- */
/* 1. The lead must start where the h1 does. `.hero-subhead` was `margin: 2rem auto 0`, which
      centres an 820px block inside a 1240px shell while the h1 runs full width — the two left
      edges differed by ~247px, and visual-check's leadIndent has been failing on this page since
      it was built. Keep the max-width; drop only the auto centring. */
.hero-subhead {
  margin-inline: 0;
}

/* 2. The primary CTA carried NO class, so it rendered as a 169x17 inline text link: transparent,
      no padding, no radius, no shadow, no arrow — as the one link whose whole job is to send the
      visitor to the partner. page-rules.md: "the primary CTA is a real button — filled, rounded,
      with a coloured shadow — never a bare text link". */
.hero-subhead + a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  background: var(--accent);
  color: #14100c;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
}
/* 92 not a literal arrow: site.css is served as text/css with no charset, so the browser
   decodes it as the document's encoding and a raw UTF-8 arrow came out as "â†'" on the button.
   A CSS escape has no encoding to get wrong. */
.hero-subhead + a::after {
  content: "\2192";
}

/* 3. base.css centres `.calc` (`margin: 0 auto`), but every text block in its band is left
      aligned, so the 544px card sat 90px inside the 474px text column and 16px below it — it read
      as a floating tooltip that had drifted, not as part of the layout. Align it to the column. */
main .calc {
  margin-inline: 0;
}
