/*
Theme Name: Professaur
Theme URI: https://professaur.com/
Author: Professaur
Description: A lightweight, accessible theme for Professaur science adventures.
Version: 1.0.32
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: professaur
*/

:root {
  --ink: #12232b;
  --ink-soft: #40535b;
  --night: #0d2631;
  --night-2: #163946;
  --green: #68bb73;
  --green-dark: #26704a;
  --mint: #c7f0de;
  --aqua: #8be6df;
  --cream: #fff8e8;
  --cream-2: #f5efdf;
  --white: #ffffff;
  --sun: #ffc95d;
  --coral: #ff826c;
  --line: rgba(18, 35, 43, 0.14);
  --shadow: 0 22px 55px rgba(13, 38, 49, 0.14);
  --shadow-small: 0 10px 30px rgba(13, 38, 49, 0.1);
  --radius: 26px;
  --radius-small: 16px;
  --wrap: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #174f35; }
button, input, select, textarea { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: var(--white);
  color: var(--ink);
  display: block;
  height: auto;
  left: 12px;
  padding: 12px 16px;
  top: 12px;
  width: auto;
  z-index: 10000;
}

.site-wrap { width: var(--wrap); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(18,35,43,.08);
  background: rgba(255,248,232,.92);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.36rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-dark);
  font-size: 1.35rem;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
}
.brand-tm { margin-left: 2px; font-size: .43em; letter-spacing: 0; vertical-align: super; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a {
  color: var(--ink);
  font-size: .89rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green-dark); }
.site-nav .nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-dark);
}
.site-nav .nav-cta:hover { color: var(--white); background: #195c3b; }
.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: .79rem;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.25;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255,130,108,.18);
}
h1, h2, h3, h4 {
  margin: 0 0 .65em;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.06;
}
h1 { font-size: clamp(3rem, 7vw, 6.6rem); max-width: 12ch; }
h2 { font-size: clamp(2.15rem, 4vw, 4rem); max-width: 15ch; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.05rem; letter-spacing: -.02em; }
p { margin: 0 0 1.2em; }
.lede { color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.38rem); max-width: 640px; }
.section-intro { max-width: 680px; color: var(--ink-soft); }
.kicker { color: var(--coral); font-weight: 850; }
.highlight {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: none;
}
.highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: .045em;
  height: .13em;
  border-radius: 999px 82% 999px 74%;
  background: var(--sun);
  transform: rotate(-1.2deg);
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--white);
  background: var(--green-dark);
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 7px 0 #164a32;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible {
  color: var(--white);
  background: #1d6240;
  transform: translateY(2px);
  box-shadow: 0 5px 0 #164a32;
}
.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 0 7px 0 var(--ink);
}
.button.secondary:hover { color: var(--ink); background: var(--mint); box-shadow: 0 5px 0 var(--ink); }
.button.sun { color: var(--ink); background: var(--sun); box-shadow: 0 7px 0 #cb8725; }
.button.sun:hover { color: var(--ink); background: #ffd477; box-shadow: 0 5px 0 #cb8725; }
.button.small { min-height: 44px; padding: 9px 18px; font-size: .88rem; }

.hero { position: relative; overflow: hidden; padding: 72px 0 60px; }
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  right: -250px;
  top: -250px;
  background: rgba(139,230,223,.28);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,420px); gap: clamp(32px,3vw,48px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { max-width: none; font-size: clamp(3.25rem,4.45vw,3.75rem); }
.hero-line { display: block; width: fit-content; max-width: 100%; }
.build-line { white-space: normal; letter-spacing: -.055em; }
.build-words { white-space: nowrap; }
.brilliant {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}
.build-line.is-split::after { content: none; }
.build-line.is-split .brilliant {
  display: block;
  width: fit-content;
  max-width: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M4 8 C50 5 108 9 196 6' fill='none' stroke='%23ffc95d' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% .16em;
}
.build-line.is-split .brilliant::after { content: none; }
.hero .lede { margin-top: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 29px; color: var(--ink-soft); font-size: .87rem; font-weight: 750; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero-visual { position: relative; min-height: 520px; isolation: isolate; }
.hero-orbit {
  position: absolute;
  overflow: visible;
  width: 450px;
  aspect-ratio: 1;
  right: 0;
  top: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #c6f4f0 0%, var(--aqua) 74%);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(18,35,43,.28);
}
.hero-orbit::before { inset: 32px; }
.hero-orbit::after { inset: 76px; }
.professaur-picture {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
}
.professaur-mascot {
  display: block;
  width: 114%;
  height: auto;
  filter: drop-shadow(0 18px 14px rgba(13,38,49,.16));
}
.lab-box {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 18px;
  width: 210px;
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--sun);
  box-shadow: 12px 14px 0 var(--ink);
  transform: rotate(-2deg);
}
.lab-box strong { display: block; font-size: 1.35rem; letter-spacing: -.04em; line-height: 1; }
.lab-box small { display: block; margin-top: 9px; font-size: .82rem; font-weight: 750; line-height: 1.3; }
.proof-strip { border-block: 1px solid var(--line); background: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-item { padding: 24px 18px; text-align: center; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 1rem; }
.proof-item span { display: block; color: var(--ink-soft); font-size: .8rem; }

.section { padding: 105px 0; }
.section.compact { padding: 72px 0; }
.section.white { background: var(--white); }
.section.mint { background: var(--mint); }
.section.night { color: var(--white); background: var(--night); }
.section.night h2, .section.night h3, .section.night h4 { color: var(--white); }
.section.night .section-intro, .section.night .lede { color: #cfe0e5; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head > :last-child { max-width: 520px; }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 8px 9px 0 rgba(18,35,43,.95);
}
.card p { color: var(--ink-soft); }
.card .card-link { font-weight: 850; }
.card-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--sun);
  font-weight: 900;
}
.card.aqua { background: var(--aqua); }
.card.green { background: #bce9b8; }
.card.sun { background: #ffe2a0; }
.card.coral { background: #ffd0c7; }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.story-panel {
  position: relative;
  min-height: 470px;
  border: 3px solid var(--ink);
  border-radius: 36px;
  background: var(--green);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.story-panel img { position: absolute; width: 410px; right: -50px; bottom: -110px; }
.story-panel img.story-animation {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.story-note {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: 32px;
  max-width: 250px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  font-weight: 850;
  line-height: 1.35;
  transform: rotate(-2deg);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 34px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 750;
}
.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--white); }
.breadcrumbs .site-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 13px; color: var(--ink-soft); font-size: .78rem; }
.breadcrumbs a { font-weight: 750; }
.breadcrumbs [aria-current="page"] { overflow: hidden; max-width: 46ch; text-overflow: ellipsis; white-space: nowrap; }
.article-meta span + span::before { content: "•"; margin-right: 18px; color: var(--green); }
.text-button {
  margin-left: auto;
  padding: 7px 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.text-button:hover { color: var(--ink); }
.related-content { margin-top: 78px; padding-top: 50px; border-top: 2px solid var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.related-grid article { padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius-small); background: var(--white); box-shadow: 6px 7px 0 var(--ink); }
.related-grid h3 { margin-top: 0; }
.related-grid p { color: var(--ink-soft); }
.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; padding-left: 34px; margin: 13px 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-dark); font-weight: 900; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; }
.check-list li { position: relative; padding: 13px 0 13px 38px; border-bottom: 1px solid var(--line); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 12px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--green-dark); font-size: .75rem; }

.mission-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.mission-card {
  min-height: 278px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 22px;
  background: var(--night-2);
}
.mission-card:nth-child(even) { background: #214b50; }
.mission-card .mission-no { color: var(--aqua); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.mission-card h3 { font-size: 1.45rem; }
.mission-card p { color: #cfe0e5; font-size: .89rem; }
.mission-card .status { display: inline-flex; align-self: flex-start; border-radius: 999px; padding: 5px 10px; color: var(--ink); background: var(--sun); font-size: .68rem; font-weight: 850; }

.quote-block { max-width: 880px; margin-inline: auto; text-align: center; }
.quote-block blockquote { margin: 0; font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 850; letter-spacing: -.05em; line-height: 1.08; }
.quote-block p { margin-top: 24px; color: var(--ink-soft); }

.content-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.content-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-small); }
.content-card-visual { min-height: 180px; display: grid; place-items: center; padding: 24px; background: var(--aqua); font-size: 4rem; }
.content-card:nth-child(2) .content-card-visual { background: #ffe0a0; }
.content-card:nth-child(3) .content-card-visual { background: #ffcfc5; }
.content-card-body { padding: 25px; }
.content-card-meta { margin-bottom: 9px; color: var(--green-dark); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.content-card h3 { margin-bottom: 10px; }
.content-card p { color: var(--ink-soft); font-size: .9rem; }

.faq-list { max-width: 850px; margin: 44px auto 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 50px 23px 0; cursor: pointer; list-style: none; font-weight: 850; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 7px; top: 17px; font-size: 1.6rem; color: var(--green-dark); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 50px 22px 0; color: var(--ink-soft); }

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px,7vw,85px);
  border: 3px solid var(--ink);
  border-radius: 38px;
  background: var(--sun);
  box-shadow: 12px 14px 0 var(--ink);
}
.cta-panel::after { content: "?"; position: absolute; right: 5%; bottom: -42%; color: rgba(255,255,255,.5); font-size: 25rem; font-weight: 900; line-height: 1; transform: rotate(10deg); }
.cta-panel > * { position: relative; z-index: 2; }
.cta-panel p { max-width: 610px; }

.page-hero { padding: 80px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 13ch; font-size: clamp(3rem, 6vw, 5.8rem); }
.page-hero-grid { display: grid; grid-template-columns: 1fr .5fr; gap: 50px; align-items: end; }
.page-badge { justify-self: end; max-width: 300px; padding: 23px; border: 2px solid var(--ink); border-radius: 20px; background: var(--white); box-shadow: 7px 8px 0 var(--ink); font-weight: 800; transform: rotate(2deg); }

.article-wrap { width: min(820px, calc(100vw - 40px)); margin-inline: auto; }
.article { padding: 75px 0 110px; }
.article h2 { margin-top: 1.5em; font-size: clamp(1.8rem,3vw,2.8rem); }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: #2c424b; }
.article li { margin-bottom: .55em; }
.article img { border-radius: 24px; }
.quick-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 32px 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--ink); }
.quick-facts > div { padding: 16px; background: var(--white); }
.quick-facts strong { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); }
.quick-facts span { display: block; margin-top: 4px; font-weight: 800; }
.callout { margin: 34px 0; padding: 25px; border-left: 7px solid var(--coral); border-radius: 0 18px 18px 0; background: #fff0eb; }
.mission-steps { counter-reset: mission-step; list-style: none; padding: 0; }
.mission-steps li { position: relative; min-height: 70px; padding: 10px 0 22px 72px; counter-increment: mission-step; }
.mission-steps li::before { content: counter(mission-step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900; }

.archive-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.archive-card { padding: 30px; border: 2px solid var(--ink); border-radius: 24px; background: var(--white); box-shadow: 8px 9px 0 var(--ink); }
.archive-card .meta { color: var(--green-dark); font-size: .76rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.archive-card h2 { margin-top: 12px; font-size: 2rem; }

.waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.waitlist-form { padding: 30px; border: 2px solid var(--ink); border-radius: 24px; background: var(--white); box-shadow: 9px 10px 0 var(--ink); }
.form-row { margin-bottom: 17px; }
.form-row label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 850; }
.form-row input[type="email"], .form-row select {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
}
.form-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 20px 0; font-size: .78rem; color: var(--ink-soft); }
.form-check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--green-dark); }
.form-note { margin-top: 16px; color: var(--ink-soft); font-size: .75rem; }
.form-success { margin-bottom: 22px; padding: 17px 19px; border: 2px solid var(--green-dark); border-radius: 14px; background: var(--mint); font-weight: 800; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { padding: 65px 0 30px; color: #d7e5e7; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,.7fr); gap: 45px; }
.site-footer .brand { color: var(--white); }
.footer-blurb { max-width: 390px; margin-top: 18px; color: #b8cdd1; font-size: .9rem; }
.footer-title { margin-bottom: 15px; color: var(--aqua); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #d7e5e7; font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 55px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); color: #9fb5ba; font-size: .76rem; }

.empty-state { padding: 45px; border: 2px dashed var(--line); border-radius: 22px; text-align: center; background: rgba(255,255,255,.45); }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 1100px) {
  .site-nav { gap: 15px; }
  .site-nav a { font-size: .8rem; }
  .hero-grid, .story-grid, .page-hero-grid, .waitlist { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.35rem,6.5vw,4.8rem); }
  .hero-visual { min-height: 495px; width: min(520px,100%); margin: 14px auto 0; }
  .hero-orbit { right: 50%; width: min(450px, calc(100% - 8px)); transform: translateX(50%); }
  .lab-box { left: 10px; }
  .story-grid { gap: 42px; }
  .story-panel { order: 2; }
  .mission-grid { grid-template-columns: repeat(2,1fr); }
  .page-badge { justify-self: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { display: none; }
}

@media (max-width: 780px) {
  body { font-size: 17px; }
  :root { --wrap: min(100% - 28px, 1180px); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 28px;
    border-bottom: 2px solid var(--ink);
    background: var(--cream);
    box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 13px 4px; font-size: 1rem; }
  .site-nav .nav-cta { margin-top: 8px; padding-inline: 16px; text-align: center; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(3.2rem,8vw,4.2rem); }
  .hero-visual { min-height: 445px; width: min(460px,100%); }
  .hero-orbit { width: min(370px, calc(100% - 32px)); }
  .lab-box { left: 6px; bottom: 20px; width: 185px; padding: 18px; }
  .proof-grid, .card-grid, .content-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 78px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .archive-list { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .build-line { white-space: normal; }
  .build-line::after { content: none; }
  .build-words, .brilliant { display: block; width: fit-content; max-width: none; }
  .brilliant {
    width: max-content;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M4 8 C50 5 108 9 196 6' fill='none' stroke='%23ffc95d' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 100% .16em;
  }
  .brilliant::after { content: none; }
}

@media (max-width: 540px) {
  h1 { font-size: 3.2rem; }
  .hero h1 { max-width: none; font-size: clamp(2.3rem,11.8vw,3rem); }
  .hero .button-row { flex-direction: column; align-items: stretch; }
  .hero .button { width: 100%; }
  .hero-visual { min-height: 370px; margin-top: 28px; }
  .hero-orbit { top: 0; width: min(300px, calc(100% - 28px)); }
  .lab-box { left: 4px; bottom: 4px; width: 164px; padding: 15px; }
  .lab-box strong { font-size: 1.15rem; }
  .lab-box small { font-size: .75rem; }
  .proof-grid, .card-grid, .content-grid, .mission-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .story-panel { min-height: 390px; }
  .story-panel img { width: 360px; right: -65px; }
  .story-note { left: 20px; top: 20px; max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .article-meta { align-items: flex-start; flex-direction: column; }
  .article-meta span + span::before { content: none; }
  .text-button { margin-left: 0; }
}

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

@media print {
  .site-header, .site-footer, .button-row, .article-cta, .related-content, .text-button { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  .article { padding: 0; }
  .article-wrap { width: 100%; }
  .page-hero { padding: 20px 0; background: white; }
  .page-hero-grid { display: block; }
  .page-badge { margin-top: 16px; }
  a { color: black; text-decoration: none; }
}
