/* ========================================
   Our World To Fix — Global Styles
   Static homepage starter
======================================== */

:root {
  --navy-950: #061b2d;
  --navy-900: #08263f;
  --navy-800: #0b3454;
  --navy-700: #12486f;
  --green-800: #005c38;
  --green-700: #087143;
  --green-100: #e8f5ef;
  --sky-100: #e9f4f8;
  --ink: #0b2137;
  --muted: #607085;
  --muted-dark: #94a6ba;
  --line: #d8e0e8;
  --line-soft: #e8eef3;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --surface-blue: #eef4f8;
  --shadow-sm: 0 8px 22px rgba(8, 38, 63, 0.07);
  --shadow-md: 0 16px 42px rgba(8, 38, 63, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1360px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--green-700);
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 72px, 680px);
  margin-inline: auto;
}

.skip-link,
.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:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: white;
}

/* ========================================
   Header
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--navy-900);
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--navy-900);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.brand em {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.35vw, 1.45rem);
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--navy-900);
}

.primary-nav a {
  padding-block: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy-900);
}

.icon-button:hover {
  background: var(--surface-soft);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  padding: 0.7rem;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 999px;
}

/* ========================================
   Buttons / links
======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 54px;
  padding: 0.9rem 1.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green-800);
  color: white;
  box-shadow: 0 10px 22px rgba(0, 92, 56, 0.16);
}

.button-primary:hover {
  background: var(--green-700);
  color: white;
}

.button-secondary {
  border-color: var(--green-800);
  color: var(--navy-900);
  background: white;
}

.button-secondary:hover {
  background: var(--green-100);
  color: var(--green-800);
}

.button-small {
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy-900);
  font-weight: 850;
  font-size: 0.9rem;
}

.text-link:hover,
.card-link:hover {
  color: var(--green-700);
}

/* ========================================
   Hero
======================================== */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  min-height: 580px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-copy {
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 0% 0%, rgba(8, 113, 67, 0.09), transparent 30%),
    linear-gradient(180deg, #fff, #fbfdff);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--green-800);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  font-size: 0.78rem;
}

.hero h1 {
  max-width: 640px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.067em;
  color: var(--navy-900);
}

.hero-lede {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: #2f455e;
  font-weight: 560;
}

.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.trust-note span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--green-700);
  border-radius: 50%;
  color: var(--green-700);
  font-size: 0.78rem;
}

.hero-visual {
  min-height: inherit;
  overflow: hidden;
}

.hero-landscape {
  position: relative;
  height: 100%;
  min-height: 580px;
  isolation: isolate;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.96) 0 7%, transparent 8%),
    linear-gradient(160deg, transparent 0 38%, rgba(7, 34, 49, 0.7) 39% 40%, transparent 41%),
    linear-gradient(140deg, transparent 0 45%, rgba(6, 42, 55, 0.8) 46% 47%, transparent 48%),
    linear-gradient(150deg, #dcebf3 0 26%, transparent 27%),
    linear-gradient(128deg, transparent 0 17%, #b8ccd9 18% 31%, transparent 32%),
    linear-gradient(132deg, transparent 0 30%, #8ca7b6 31% 46%, transparent 47%),
    linear-gradient(120deg, transparent 0 47%, #274f45 48% 63%, transparent 64%),
    linear-gradient(135deg, transparent 0 55%, #113925 56% 78%, transparent 79%),
    linear-gradient(180deg, #eef8fb 0%, #c3d7e5 38%, #7194a9 47%, #223b3a 100%);
}

.hero-landscape::before {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background:
    linear-gradient(8deg, transparent 0 46%, rgba(255,255,255,0.5) 47% 48%, transparent 49%),
    radial-gradient(ellipse at 45% 38%, rgba(222, 240, 242, 0.9) 0 15%, rgba(61, 117, 132, 0.75) 16% 20%, transparent 21%),
    linear-gradient(130deg, transparent 0 33%, rgba(11, 59, 44, 0.9) 34% 56%, transparent 57%),
    linear-gradient(45deg, rgba(18, 68, 49, 0.8), rgba(4, 25, 30, 0.95));
  z-index: -1;
}

.hero-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,38,63,0.11), transparent 20%, rgba(8,38,63,0.18)),
    radial-gradient(circle at 50% 45%, transparent 0 20%, rgba(0,0,0,0.1) 100%);
}

.quote-card {
  position: absolute;
  right: clamp(2rem, 5vw, 4.5rem);
  bottom: clamp(3rem, 6vw, 5rem);
  z-index: 1;
  width: min(330px, 78%);
  padding: 2rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 38, 63, 0.94);
  color: white;
  box-shadow: var(--shadow-md);
}

.quote-mark {
  display: block;
  height: 2.4rem;
  color: #9ac8d4;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.8;
}

.quote-card p {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.quote-card small {
  font-weight: 800;
  color: #d7e7ef;
}

/* ========================================
   Sections / grids
======================================== */

.section {
  padding: clamp(2.6rem, 5.6vw, 5rem) 0;
}

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

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin-bottom: 0.18rem;
  color: var(--navy-900);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-bottom: 0;
  color: #2f455e;
  font-weight: 560;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.compact-heading {
  align-items: center;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.info-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 113, 67, 0.34);
  box-shadow: var(--shadow-sm);
}

.line-icon,
.repo-icon,
.stat-icon {
  color: var(--green-800);
  font-size: 3rem;
  line-height: 1;
}

.threat-card h3 {
  margin: 1.2rem 0 1rem;
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--navy-900);
}

.threat-card p {
  color: #4a5d72;
  font-size: 0.86rem;
  line-height: 1.55;
}

.threat-card .card-link {
  margin-top: auto;
}

.repository-section {
  background: var(--surface-soft);
  border-block: 1px solid var(--line-soft);
}

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

.repository-card {
  min-height: 225px;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, white, #f7fafc);
  box-shadow: 0 1px 0 rgba(8, 38, 63, 0.04);
}

.repository-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  color: var(--navy-900);
}

.repository-card strong {
  margin: 0.85rem 0 0.45rem;
  color: var(--navy-900);
}

.repository-card span:not(.repo-icon) {
  color: #4b6074;
  font-size: 0.86rem;
}

.repository-card em {
  margin-top: auto;
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 850;
  font-style: normal;
}

/* ========================================
   Feature cards
======================================== */

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

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 1px 0 rgba(8, 38, 63, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-image {
  position: relative;
  min-height: 132px;
  background: var(--surface-blue);
  overflow: hidden;
}

.feature-image::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.94;
}

.feature-image span {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 92, 56, 0.9);
  color: white;
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.image-1::before {
  background:
    linear-gradient(145deg, transparent 0 42%, rgba(7,61,47,.9) 43% 63%, transparent 64%),
    linear-gradient(170deg, #bdd5e0 0 30%, #6f9aad 31% 45%, #244e3d 46% 100%);
}

.image-2::before {
  background: radial-gradient(circle at 55% 50%, #f6fbff 0 15%, #7fb1c6 16% 32%, #1d4e69 33% 62%, #09243a 63% 100%);
}

.image-3::before {
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(255,255,255,.55) 25% 26%, transparent 27%),
    linear-gradient(15deg, #bcd7e3 0 50%, #d6c48a 51% 100%);
}

.image-4::before {
  background:
    repeating-linear-gradient(90deg, rgba(50,24,12,.25) 0 14px, transparent 14px 26px),
    linear-gradient(135deg, #2d1d17, #865735 52%, #201716);
}

.image-5::before {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.38) 0 14px, transparent 14px 34px),
    linear-gradient(135deg, #eef3f5, #8798a4 48%, #273744);
}

.feature-body {
  padding: 1rem;
}

.feature-body h3 {
  margin-bottom: 0.5rem;
  color: var(--navy-900);
  font-size: 1.15rem;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.feature-body p {
  min-height: 3.7rem;
  color: #4c6075;
  font-size: 0.9rem;
}

.feature-body small {
  color: var(--muted);
  font-weight: 650;
}

/* ========================================
   Thinkers / Solutions
======================================== */

.section-two-col {
  padding-top: 0;
}

.two-col-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  gap: 3rem;
  align-items: start;
}

.thinker-carousel {
  position: relative;
}

.thinker-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.thinker-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
}

.portrait {
  height: 148px;
  background:
    radial-gradient(circle at 50% 31%, #d8d8d8 0 22%, transparent 23%),
    radial-gradient(ellipse at 50% 95%, #c4c4c4 0 28%, transparent 29%),
    linear-gradient(135deg, #f1f1f1, #a6a6a6);
  filter: grayscale(1);
}

.portrait-2 { background-color: #d9dde0; }
.portrait-3 { background-color: #d7d7d7; }
.portrait-4 { background-color: #e2e2e2; }

.thinker-card h3,
.thinker-card small,
.thinker-card p {
  padding-inline: 0.9rem;
}

.thinker-card h3 {
  margin: 0.9rem 0 0.1rem;
  color: var(--navy-900);
  font-size: 0.98rem;
  line-height: 1.15;
}

.thinker-card small {
  display: block;
  margin-bottom: 0.45rem;
  color: #31475f;
  font-weight: 750;
}

.thinker-card p {
  margin-bottom: 1rem;
  color: #4c6075;
  font-size: 0.82rem;
  line-height: 1.45;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.carousel-controls button {
  width: 42px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--navy-900);
  font-weight: 900;
}

.carousel-controls button:hover {
  border-color: var(--green-700);
  color: var(--green-700);
}

.solution-list {
  border-top: 1px solid var(--line);
}

.solution-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.solution-item:hover strong {
  color: var(--green-700);
}

.solution-thumb {
  display: block;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--surface-blue);
}

.thumb-1 { background: linear-gradient(145deg, #9ec0ca, #e7d58d 55%, #143b52 56% 100%); }
.thumb-2 { background: linear-gradient(145deg, #d7b68d, #5e8764 49%, #163d35 50% 100%); }
.thumb-3 { background: radial-gradient(circle at 68% 30%, #9bd8ec, #1a6b8a 34%, #102b44 72%); }
.thumb-4 { background: linear-gradient(145deg, #b7d7df, #3b7851 52%, #113526 53% 100%); }

.solution-item small {
  display: block;
  color: var(--green-800);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.02rem;
  line-height: 1.15;
}

.solution-item em {
  display: block;
  color: #4c6075;
  font-size: 0.86rem;
  font-style: normal;
}

.solution-item b {
  color: var(--navy-900);
  font-size: 1.8rem;
  font-weight: 500;
}

/* ========================================
   Stats
======================================== */

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

.stats-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 1.6rem 2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f8fbfd, #eef4f7);
}

.stat-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
}

.stat-icon {
  grid-row: 1 / span 2;
}

.stat-item strong {
  color: var(--green-800);
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-item span:last-child {
  color: #31475f;
  font-weight: 650;
  line-height: 1.2;
}

/* ========================================
   Footer
======================================== */

.site-footer {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1.35fr) repeat(3, minmax(120px, 0.55fr)) minmax(260px, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: 3rem 0 2.4rem;
}

.brand-footer {
  color: white;
}

.brand-footer .brand-mark {
  color: white;
}

.brand-footer em,
.footer-about p,
.site-footer a,
.newsletter-box p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
}

.footer-about p {
  max-width: 330px;
  margin: 1rem 0 1.2rem;
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  color: white;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.38rem;
}

.site-footer a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 850;
}

.newsletter-box form {
  display: grid;
  gap: 0.75rem;
}

.newsletter-box input {
  min-height: 46px;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
}

.newsletter-box .button {
  justify-self: start;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
}

.form-message {
  min-height: 1.2rem;
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a + a {
  margin-left: 1.2rem;
}

/* ========================================
   Search dialog
======================================== */

.search-dialog {
  width: min(92vw, 720px);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-md);
}

.search-dialog::backdrop {
  background: rgba(6, 27, 45, 0.55);
  backdrop-filter: blur(4px);
}

.search-dialog-inner {
  position: relative;
  padding: 2rem;
}

.close-button {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 1.5rem;
}

.search-dialog label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.search-dialog input {
  width: 100%;
  min-height: 56px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
}

.search-dialog p {
  color: var(--muted);
  font-size: 0.9rem;
}

.search-results {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.search-result-item {
  display: block;
  padding: 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.search-result-item strong {
  display: block;
  color: var(--navy-900);
}

.search-result-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 1180px) {
  .header-inner {
    min-height: 78px;
  }

  .primary-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 24px 1.2rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }

  body.menu-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .menu-button {
    display: inline-block;
  }

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

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

  .two-col-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .container,
  .container-narrow {
    width: min(100% - 32px, var(--container));
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-block: 4rem;
  }

  .hero-landscape,
  .hero-visual {
    min-height: 420px;
  }

  .quote-card {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

  .card-grid-8,
  .repository-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 620px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.25rem;
  }

  .brand em {
    display: none;
  }

  .header-actions .button-small,
  .header-actions .icon-button {
    display: none;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .card-grid-8,
  .repository-grid,
  .feature-grid,
  .thinker-track,
  .stats-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .repository-card {
    min-height: auto;
  }

  .solution-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .solution-item b {
    display: none;
  }

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

  .footer-bottom a + a {
    margin-left: 0.8rem;
  }
}
