/* atomEDU site styles. Cream, editorial, plain. */

:root {
  --cream: #f6f5f2;
  --cream-raised: #fffdf9;
  --ink: #1f2a36;
  --ink-soft: #3a4654;
  --muted: #6d6a61;
  --line: #d8d2c8;
  --line-soft: #e6e1d8;
  --accent: #bf5a2e;
  --accent-deep: #a2461f;
  --dark: #141b23;
  --max: 68rem;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.heading-display {
  font-family: 'Poiret One', 'Space Grotesk', sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.08;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 245, 242, 0.88);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom: 1px solid rgba(216, 210, 200, 0.9);
  box-shadow: 0 8px 22px rgba(31, 42, 54, 0.05);
}
.header-inner {
  max-width: 74rem;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .word { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.brand .word b { font-weight: 700; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  padding: 0.45rem 0.85rem; border-radius: 0.6rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.active { background: #ece6dc; color: var(--ink); }
.nav .cta { margin-left: 0.5rem; background: var(--ink); color: var(--cream); padding: 0.5rem 1rem; border-radius: 0.55rem; font-weight: 600; }
.nav .cta:hover { background: #0f1620; color: #fff; }

.menu-btn { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 0.3rem; }
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.4rem; border-radius: 0.55rem;
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #0f1620; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c2b9ab; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-light:hover { background: rgba(255,255,255,0.2); }

.textlink { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--accent); }
.textlink:hover { color: var(--ink); }

/* ---------- Hero image board ---------- */
.board {
  position: relative;
  margin-top: var(--header-h);
  width: 100%;
  height: clamp(360px, 50vw, 600px);
  overflow: hidden;
  background: #0b0f14;
  isolation: isolate;
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,14,20,0.86) 0%, rgba(10,14,20,0.62) 34%, rgba(10,14,20,0.18) 64%, rgba(10,14,20,0.08) 100%),
    linear-gradient(0deg, rgba(10,14,20,0.55) 0%, rgba(10,14,20,0) 42%);
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 74rem; margin: 0 auto; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 1.5rem; color: #fff;
}
.slide-content .inner { max-width: 34rem; }
.slide-label { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: #f0c3ac; margin: 0 0 0.9rem; }
.slide-title { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; margin: 0; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.slide-sub { margin: 1rem 0 0; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,0.86); max-width: 30rem; }
.slide-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.board-edge { position: absolute; top: 0; bottom: 0; width: 13%; z-index: 4; display: flex; align-items: center; }
.board-edge.left { left: 0; justify-content: flex-start; padding-left: 12px; background: linear-gradient(90deg, rgba(0,0,0,0.12), transparent); }
.board-edge.right { right: 0; justify-content: flex-end; padding-right: 12px; background: linear-gradient(270deg, rgba(0,0,0,0.12), transparent); }
.board-edge .arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  cursor: pointer; opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
}
.board-edge:hover .arrow { opacity: 1; }
.board-edge .arrow:hover { background: rgba(255,255,255,0.26); }

.board-dots { position: absolute; left: 20px; bottom: 18px; z-index: 5; display: flex; gap: 8px; }
.board-dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s ease, width 0.2s ease; }
.board-dots button.on { width: 26px; border-radius: 5px; background: rgba(255,255,255,0.9); }

.board-foot { position: absolute; right: 16px; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; }
.board-credit { font-size: 11.5px; color: rgba(255,255,255,0.75); text-align: right; max-width: 20rem; }
.board-info {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.25); color: #fff;
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 14px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.board-info:hover { background: rgba(0,0,0,0.45); }
.board-attrib {
  position: absolute; right: 16px; bottom: 52px; z-index: 6;
  width: min(30rem, 86vw); background: rgba(16,21,28,0.96); color: #e7e2d8;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 0.9rem; padding: 1.1rem 1.2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.board-attrib[hidden] { display: none; }
.board-attrib h3 { margin: 0 0 0.7rem; font-size: 0.95rem; color: #fff; }
.board-attrib p { margin: 0 0 0.7rem; font-size: 0.8rem; line-height: 1.5; color: #c3bdb2; }
.board-attrib p:last-child { margin-bottom: 0; }
.board-attrib a { color: #f0c3ac; }

.teacher-release-strip { scroll-margin-top: calc(var(--header-h) + 1rem); background: var(--dark); color: #f7f2ec; border-top: 1px solid rgba(255,255,255,.1); }
.teacher-release-inner { display: grid; grid-template-columns: minmax(16rem, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-top: 2.1rem; padding-bottom: 2.1rem; }
.teacher-release-strip .kicker { color: #f0a782; margin-bottom: .35rem; }
.teacher-release-strip h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 2.8vw, 2rem); }
.teacher-release-facts { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 1.1rem; margin: 0; }
.teacher-release-facts div { min-width: 0; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.18); }
.teacher-release-facts dt { color: #f0a782; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.teacher-release-facts dd { margin: .25rem 0 0; color: #e4e8ec; font-size: .9rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-sm { padding: 3rem 0; }
.band { background: var(--cream-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.col { max-width: 42rem; }
h1.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; line-height: 1.07; }
h2.block-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0; line-height: 1.12; }
h3.sub-title { font-size: 1.25rem; margin: 0; font-weight: 600; }
.section p, .col p { color: var(--ink-soft); }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.kicker { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin: 0 0 0.7rem; }

/* prose with bold lead-in terms */
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 700; }

/* two-column text */
.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.home-explainer-section { background: var(--cream-raised); border-bottom: 1px solid var(--line); }
.home-dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 7vw, 6.5rem); }
.home-dual article { min-width: 0; }
.home-dual article + article { padding-left: clamp(2rem, 5vw, 5rem); border-left: 1px solid var(--line); }
.home-dual .prose { margin-top: 1.1rem; }
.home-dual .textlink { margin-top: 1rem; }
.credibility-section { background: #f1eee8; }
.credibility-section .home-dual article + article { border-color: #d4ccc0; }
.faq-section { background: var(--cream-raised); border-top: 1px solid var(--line); }

/* plain reference list (no boxes, no icons, no hover) */
.deflist { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.deflist > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.deflist dt, .deflist .term { font-weight: 600; color: var(--ink); margin: 0; }
.deflist dd, .deflist .desc { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* mode blocks (features page): heading + prose, hairline separated */
.modes { margin-top: 2rem; }
.mode { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.mode:first-child { border-top: none; padding-top: 0.5rem; }
.mode h3 { font-size: 1.4rem; margin: 0 0 0.5rem; font-weight: 600; }
.mode p { margin: 0; color: var(--ink-soft); max-width: 44rem; }

/* inline class list, plain text */
.classes { margin-top: 1.2rem; font-size: 1.05rem; color: var(--ink-soft); }
.classes .now { color: var(--ink); font-weight: 600; }

/* free note */
.free-note {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.6rem 0.95rem;
  background: var(--cream-raised); font-size: 0.92rem; color: var(--ink-soft);
}
.free-note b { color: var(--accent-deep); }

/* maintainers */
.maintainers { margin-top: 0.8rem; font-weight: 500; color: var(--ink); }

/* featured partners */
.partners-section { padding: clamp(3.8rem, 7vw, 5.8rem) 0; background: #fbfaf7; }
.partners-section .wrap { max-width: 78rem; }
.partners-title { margin: 0; text-align: center; color: #171c25; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 500; letter-spacing: .035em; text-transform: uppercase; }
.partner-logo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 7vw, 6rem); margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 50rem; }
.partner-logo-unit { min-width: 0; min-height: 6rem; display: grid; place-items: center; }
.partner-mark { width: 100%; min-height: 5rem; display: grid; place-items: center; }
.partner-mark img { display: block; width: min(100%, 15rem); max-height: 5rem; object-fit: contain; }
.partner-vcboom img { width: min(100%, 13rem); }
.partner-med img { width: min(100%, 15rem); }

/* Product integrations are separate from featured partners. */
.integrations-section { padding: 3.4rem 0 4.4rem; }
.integrations-section .wrap { max-width: 78rem; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.integration-card { display: flex; align-items: flex-start; gap: 1.4rem; min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--cream-raised); }
.integration-card > div { min-width: 0; }
.integration-card img, .integration-placeholder { display: block; width: 80px; height: 80px; flex: none; }
.integration-card img { object-fit: contain; }
.github-integration img { width: 120px; }
.integration-placeholder { display: grid; place-items: center; border: 1px solid var(--line); border-radius: .8rem; color: var(--muted); font-size: 2rem; font-weight: 400; }
.integration-card h3 { margin: 0 0 .35rem; font-family: Roboto, Arial, sans-serif; font-size: 1.15rem; font-weight: 700; }
.integration-card p { margin: 0 0 .7rem; color: var(--ink-soft); font-size: .9rem; }
.integration-card p:last-child { margin-bottom: 0; }
.integration-card .textlink { font-size: .86rem; }
.integration-card .integration-status { display: inline-block; margin: .1rem 0 .65rem; padding: .25rem .55rem; border-radius: .35rem; background: #ece6dc; color: var(--ink); font-size: .75rem; font-weight: 600; }
.integration-attribution { margin: 1rem 0 0; color: var(--muted); font-size: .7rem; }
.integration-attribution + .integration-attribution { margin-top: .35rem; }
@media (max-width: 760px) { .integration-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .integration-card { gap: 1rem; padding: 1.1rem; } .integration-card img, .integration-placeholder { width: 56px; height: 56px; } }
@media (max-width: 520px) { .github-integration img { width: 88px; } }

/* founders */
.founder-grid {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.founder-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--cream-raised);
}
.founder-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.founder-card div { padding: 1rem; }
.founder-card h3 { margin: 0; font-size: 1.05rem; }
.founder-card p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.88rem; }

/* Q&A */
.qa { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.qa > div { padding: 1.3rem 0; border-bottom: 1px solid var(--line-soft); }
.qa h3 { margin: 0 0 0.4rem; font-size: 1.08rem; font-weight: 600; }
.qa p { margin: 0; color: var(--muted); }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--cream-raised); border: 1px solid var(--line);
  border-radius: 0.55rem; padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(191, 90, 46, 0.14);
}
.note-block { background: #f3e3d8; border: 1px solid var(--accent); border-radius: 0.8rem; padding: 1.2rem; }
.note-block h3 { margin: 0; color: var(--accent-deep); font-size: 1.05rem; }
.note-block p { margin: 0.35rem 0 0; color: var(--muted); }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.25rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-meta p { margin: 0; font-size: .9rem; }
.legal-meta strong { color: var(--ink); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-meta a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal h2 { font-size: 1.5rem; margin: 2.6rem 0 0.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.1rem; }
.legal li { margin: 0.3rem 0; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3.5rem; }
.footer-shell { max-width: 94rem; margin: 0 auto; padding: 0 1rem 1.2rem; }
.footer-card { background: var(--dark); border-radius: 1.8rem; overflow: hidden; }
.footer-banner { position: relative; border-radius: 1.4rem; overflow: hidden; margin: 0.9rem; min-height: 17rem; display: flex; align-items: center; }
.footer-banner .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer-banner .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,27,35,0.95) 0%, rgba(20,27,35,0.7) 45%, rgba(20,27,35,0.35) 100%); }
.footer-banner .content { position: relative; z-index: 2; padding: 2.4rem; max-width: 36rem; color: #f3eee7; }
.footer-banner h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0; line-height: 1.08; color: #f7f2ec; }
.footer-banner p { color: #cfc8bd; margin-top: 0.9rem; max-width: 30rem; }
.footer-banner .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding: 2rem 2.4rem; }
.footer-cols .word { font-size: 1.1rem; font-weight: 600; color: #f1ece4; }
.footer-cols .about { color: #9aa4ae; font-size: 0.9rem; margin-top: 0.7rem; }
.footer-cols h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #e8a179; margin: 0 0 0.9rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-cols a { color: #9aa4ae; font-size: 0.9rem; }
.footer-cols a:hover { color: #f1ece4; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 2.4rem; border-top: 1px solid rgba(255,255,255,0.08); color: #8b949d; font-size: 0.82rem; flex-wrap: wrap; }
.footer-bottom a { color: #8b949d; }
.footer-bottom a:hover { color: #f1ece4; }
.footer-site { font-family: 'Poiret One', sans-serif; font-size: 1rem; letter-spacing: 0.02em; color: #c8cfd6; }

/* ---------- 404 ---------- */
.not-found-page { min-height: 100vh; background: radial-gradient(circle at 80% 20%, #eadbd2 0, transparent 30%), var(--cream); }
.not-found-main { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 3rem) 1.5rem 3rem; }
.not-found-card { width: min(100%, 44rem); text-align: center; }
.not-found-orbit { position: relative; display: flex; justify-content: center; align-items: center; gap: 4.5rem; width: 15rem; height: 8rem; margin: 0 auto 1.3rem; color: var(--ink); font: 400 4.3rem/1 'Poiret One', sans-serif; }
.not-found-orbit::before, .not-found-orbit::after { content: ''; position: absolute; inset: 1rem 2.6rem; border: 1px solid #c98565; border-radius: 50%; transform: rotate(24deg); }
.not-found-orbit::after { transform: rotate(-24deg); }
.not-found-orbit i { position: absolute; z-index: 2; width: .85rem; height: .85rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px #f1ded4; }
.not-found-card h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 4.7rem); }
.not-found-card > p:not(.kicker) { max-width: 34rem; margin: 1.2rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.8rem; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.4rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.not-found-links a { color: var(--muted); font-size: .84rem; text-decoration: underline; text-underline-offset: 4px; }
.not-found-links a:hover { color: var(--accent-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .deflist > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 1.8rem; }
  .board { height: clamp(380px, 76vw, 460px); }
  .board-edge .arrow { opacity: 0.85; }
  .mobile-nav.open { display: block; border-top: 1px solid var(--line); background: rgba(246,245,242,0.97); backdrop-filter: blur(16px); }
  .mobile-nav .inner { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1.5rem; }
  .mobile-nav a { padding: 0.65rem 0.85rem; border-radius: 0.55rem; font-weight: 500; color: var(--muted); }
  .mobile-nav a.active { background: #ece6dc; color: var(--ink); }
  .mobile-nav .cta { background: var(--ink); color: var(--cream); text-align: center; font-weight: 600; }
  .founder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-dual { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-dual article + article { padding: 2.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .partner-logo-row { gap: 3rem; }
  .teacher-release-inner { grid-template-columns: 1fr; gap: 1.35rem; }
}
@media (max-width: 520px) {
  .board { height: clamp(480px, 100vw, 520px); }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .slide-content { padding: 0 1.2rem 42px; }
  .slide-label { margin-bottom: 0.6rem; }
  .slide-title { font-size: clamp(1.75rem, 7.8vw, 2.15rem); }
  .slide-sub { font-size: 0.95rem; margin-top: 0.75rem; }
  .slide-actions { margin-top: 1rem; gap: 0.5rem; }
  .slide-actions .btn { padding: 0.7rem 1rem; font-size: 0.88rem; }
  .founder-grid, .partner-logo-row { grid-template-columns: 1fr; }
  .partner-logo-row { margin-top: 3rem; }
  .partner-logo-unit { min-height: 8rem; }
  .teacher-release-facts { grid-template-columns: 1fr; gap: .8rem; }
}
