:root {
  color-scheme: dark;
  --bg: #030504;
  --surface: #080d0a;
  --surface-2: #0c1410;
  --ink: #f2f6f3;
  --muted: #a5b1aa;
  --soft: #718078;
  --line: rgba(218, 235, 225, 0.15);
  --line-soft: rgba(218, 235, 225, 0.08);
  --green: #25d08a;
  --green-bright: #54efa9;
  --green-deep: #0a6744;
  --focus: #9fffd0;
  --danger: #ff9999;
  --container: 1200px;
  --sans: "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
strong { font-weight: 700; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 1000; padding: 11px 15px; color: #001b10; background: var(--focus); font-weight: 750; }
.skip-link:focus { top: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3, 5, 4, 0.97); border-bottom: 1px solid var(--line-soft); }
.topbar { padding: 7px 16px; color: #bfffe0; background: #07110c; border-bottom: 1px solid var(--line-soft); text-align: center; font: 600 0.72rem/1.35 var(--mono); letter-spacing: 0.03em; }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 720; letter-spacing: -0.025em; }
.brand-logo { width: 82px; height: 44px; object-fit: contain; object-position: left center; }
.brand span { padding-left: 14px; border-left: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 24px; color: #c9d3cd; font-size: 0.88rem; }
.nav-links a { padding-block: 8px; border-bottom: 1px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.nav-links a:hover { color: var(--green-bright); border-color: var(--green); }
.nav-links .nav-cta { padding: 10px 14px; color: #caffE5; border: 1px solid rgba(37, 208, 138, 0.42); }
.nav-toggle { display: none; }

.hero { position: relative; min-height: calc(100svh - 100px); display: grid; align-items: center; overflow: clip; border-bottom: 1px solid var(--line-soft); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 72px 72px; opacity: 0.28; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero-stage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding-block: clamp(54px, 7vh, 84px) 34px; }
.hero-copy { grid-column: 1 / span 7; align-self: center; padding-right: clamp(18px, 4vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--green-bright); font: 700 0.72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.13em; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--green); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.044em; text-wrap: balance; }
h1 { max-width: 790px; font-size: clamp(3.25rem, 6.1vw, 6.45rem); line-height: 0.94; }
h2 { font-size: clamp(2.25rem, 4.45vw, 4.6rem); line-height: 1.01; }
h3 { font-size: 1.16rem; line-height: 1.25; letter-spacing: -0.025em; }
.hero-subtitle { max-width: 690px; margin-top: 24px; color: #c5d0ca; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 760; line-height: 1.15; transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #00170d; background: var(--green-bright); }
.btn-primary:hover { color: #00170d; background: #83ffc0; }
.btn-secondary { color: var(--ink); background: #070b09; border-color: var(--line); }
.btn-secondary:hover { border-color: var(--green); color: var(--green-bright); }
.btn-full { width: 100%; }
.microcopy { margin-top: 12px; color: var(--soft); font-size: 0.78rem; line-height: 1.5; }

.access-board { grid-column: 8 / -1; position: relative; align-self: center; padding: clamp(24px, 2.7vw, 38px); background: var(--surface-2); border: 1px solid rgba(37, 208, 138, 0.3); border-top: 3px solid var(--green); box-shadow: 22px 26px 0 #061009; }
.board-header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; font: 700 0.69rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.board-kicker { color: var(--green-bright); }
.access-board h2 { max-width: 480px; font-family: var(--sans); font-size: clamp(1.6rem, 2.3vw, 2.4rem); font-weight: 720; line-height: 1.05; letter-spacing: -0.045em; }
.access-board > p { margin-top: 13px; font-size: 0.9rem; line-height: 1.48; }
.capture-form { margin-top: 20px; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-fields label:last-child { grid-column: 1 / -1; }
.capture-form label { display: grid; gap: 6px; }
.capture-form label span { color: #d9e3dd; font-size: 0.78rem; font-weight: 700; }
.capture-form input:not([type="checkbox"]) { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: #040806; border: 1px solid var(--line); border-radius: 3px; }
.capture-form input::placeholder { color: #65736b; }
.capture-form .btn { margin-top: 12px; }
.existing-access { margin-top: 12px; color: var(--muted); font-size: 0.78rem; }
.existing-access a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 2px; }
.consent-row { display: flex; align-items: flex-start; gap: 11px; margin-top: 17px; }
.consent-row input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green-bright); }
.consent-row label { display: block; color: #d9e3dd; font-size: 0.77rem; line-height: 1.5; cursor: pointer; }
.consent-row a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 2px; }
.lesson-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 17px; border: 1px solid var(--line-soft); }
.lesson-stack span { padding: 9px 7px; color: #9cafA5; border-right: 1px solid var(--line-soft); font: 600 0.61rem/1.25 var(--mono); text-align: center; }
.lesson-stack span:last-child { border-right: 0; }
.hero-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-strip span { padding: 13px 20px; color: var(--muted); border-right: 1px solid var(--line); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-strip span:last-child { border-right: 0; }
.hero-strip strong { margin-right: 8px; color: var(--green-bright); font: 700 1rem/1 var(--mono); }

.section { position: relative; padding: clamp(84px, 10vw, 144px) 0; border-bottom: 1px solid var(--line-soft); }
.section-index { color: rgba(84, 239, 169, 0.3); font: 500 clamp(3rem, 6vw, 6.8rem)/0.8 var(--serif); letter-spacing: -0.06em; }
.section-copy > p:last-child, .section-heading > p:last-child, .route-heading .section-heading > p:last-child, .program-intro > p:last-child { max-width: 760px; margin-top: 22px; font-size: 1.03rem; }
.intro-layout { display: grid; grid-template-columns: 0.18fr 1.05fr 0.8fr; gap: clamp(30px, 5vw, 74px); align-items: start; }
.note-panel { padding-top: 18px; border-top: 1px solid var(--green); }
.note-panel h3 { margin-bottom: 20px; color: var(--green-bright); }
.dash-list, .check-list { list-style: none; display: grid; gap: 13px; }
.dash-list li, .check-list li { position: relative; padding-left: 27px; color: #d5ded9; }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-bright); font-weight: 800; }

.diagnostic-section { background: #050806; }
.diagnostic-layout { display: grid; grid-template-columns: 0.18fr 0.92fr 0.92fr; gap: clamp(30px, 5vw, 74px); align-items: start; }
.compact-list { margin-top: 24px; }

.route-section { background: var(--surface); }
.route-heading { display: grid; grid-template-columns: 0.18fr 1.82fr; gap: clamp(30px, 5vw, 74px); }
.route-heading .section-heading { max-width: 920px; }
.study-route { position: relative; margin-top: clamp(72px, 9vw, 120px); }
.study-route::before { content: ""; position: absolute; left: 45px; top: 295px; bottom: 75px; width: 1px; background: var(--green-deep); }
.program-intro { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; padding: 0 0 58px 112px; border-bottom: 1px solid var(--line); }
.program-intro .eyebrow { align-self: start; }
.program-intro h2 { grid-column: 2; font-family: var(--sans); font-size: clamp(1.9rem, 3.2vw, 3.1rem); font-weight: 680; letter-spacing: -0.05em; }
.program-intro > p:last-child { grid-column: 2; }
.route-step { position: relative; display: grid; grid-template-columns: 90px minmax(210px, 0.72fr) minmax(360px, 1.25fr); gap: clamp(22px, 4vw, 60px); padding: 48px 0; border-bottom: 1px solid var(--line); }
.route-marker { position: relative; z-index: 1; }
.route-marker span { width: 48px; height: 48px; display: grid; place-items: center; color: #00170d; background: var(--green-bright); font: 800 0.78rem/1 var(--mono); }
.route-axis { padding-top: 4px; }
.route-axis h3 { color: var(--green-bright); font-family: var(--serif); font-size: 1.62rem; font-weight: 500; }
.route-axis p { margin-top: 11px; }
.route-lessons { display: grid; grid-template-columns: 105px 1fr; gap: 8px 18px; padding-left: clamp(20px, 4vw, 58px); border-left: 1px solid var(--line); }
.route-lessons strong { grid-row: 1 / span 3; color: #8da097; font: 700 0.68rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; }
.route-lessons p { margin: 0; }
.route-lessons small { color: var(--soft); font-size: 0.83rem; }
.section-cta { margin: 42px 0 0 112px; }

.learning-section { background: #050806; }
.learning-layout { display: grid; grid-template-columns: 0.18fr 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; padding-top: 16px; }
.profile-layout { display: grid; grid-template-columns: 0.85fr 0.64fr 0.64fr; gap: clamp(28px, 4vw, 58px); }
.profile-layout .section-heading { padding-right: 20px; }
.fit-column { padding-top: 20px; border-top: 1px solid var(--line); }
.fit-column.positive { border-color: var(--green); }
.fit-column.negative { border-color: rgba(255, 153, 153, 0.45); }
.fit-column h3 { margin-bottom: 20px; }
.fit-column.positive h3 { color: var(--green-bright); }
.fit-column.negative h3 { color: #ffb4b4; }

.professor-section { background: var(--surface-2); }
.professor-layout { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr); gap: clamp(44px, 8vw, 110px); align-items: center; }
.professor-photo { position: relative; margin: 0; border-bottom: 4px solid var(--green); }
.professor-photo::before { content: ""; position: absolute; left: -18px; top: -18px; width: 56%; height: 56%; border-left: 1px solid var(--green); border-top: 1px solid var(--green); pointer-events: none; }
.professor-photo img { width: 100%; max-height: 530px; object-fit: cover; object-position: center top; filter: saturate(0.82) contrast(1.05); }
.professor-layout > div > p:not(.eyebrow) { max-width: 650px; margin-top: 21px; font-size: 1.02rem; }

.testimonials-section { overflow: hidden; }
.testimonials-section .section-heading { max-width: 880px; }
.testimonials-section .section-heading > p:last-child { margin-top: 22px; }
.testimonial-carousel { margin-top: 46px; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-shot { margin: 0; padding: 8px; background: #09100c; border: 1px solid var(--line); scroll-snap-align: start; }
.testimonial-shot img { width: 100%; }
.carousel-controls { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 18px; margin-top: 22px; }
.carousel-button { width: 48px; height: 48px; color: var(--green-bright); background: transparent; border: 1px solid var(--line); font-size: 1.55rem; }
.carousel-button:hover { border-color: var(--green); background: #08130d; }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.carousel-dot { width: 26px; height: 3px; padding: 0; background: #26332c; border: 0; }
.carousel-dot.is-active { background: var(--green-bright); }
.disclaimer-box { margin-top: 30px; padding: 20px 0 0; color: #9caaa2; border-top: 1px solid var(--line); font-size: 0.85rem; }

.faq-section { background: #050806; }
.faq-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(42px, 8vw, 110px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 46px 22px 0; color: var(--ink); cursor: pointer; font-weight: 680; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 17px; color: var(--green-bright); font: 400 1.7rem/1 var(--mono); }
details[open] summary::after { content: "−"; }
details p { max-width: 690px; padding: 0 46px 22px 0; }

.footer { padding: 58px 0; background: #010201; }
.footer-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(36px, 7vw, 90px); }
.footer strong { display: block; margin-bottom: 9px; color: var(--green-bright); }
.footer h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 0.92rem; font-weight: 700; letter-spacing: 0; }
.footer p { font-size: 0.83rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
input:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 480ms ease, transform 480ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero { min-height: auto; }
  .hero-copy { grid-column: 1 / span 7; }
  .access-board { grid-column: 8 / -1; box-shadow: 14px 16px 0 #061009; }
  h1 { font-size: clamp(3rem, 7vw, 5.3rem); }
  .intro-layout, .diagnostic-layout { grid-template-columns: 80px 1fr; }
  .intro-layout .note-panel, .diagnostic-layout > div:last-child { grid-column: 2; }
  .learning-layout { grid-template-columns: 80px 1fr; }
  .learning-layout .columns { grid-column: 2; }
  .profile-layout { grid-template-columns: 1fr 1fr; }
  .profile-layout .section-heading { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header { position: sticky; }
  .topbar { display: none; }
  .nav { min-height: 68px; }
  .brand-logo { width: 72px; }
  .brand span { font-size: 0.88rem; }
  .nav-toggle { width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; color: var(--ink); background: transparent; border: 1px solid var(--line); }
  .nav-toggle span:not(.sr-only) { width: 18px; height: 2px; margin-inline: auto; background: currentColor; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: calc(100% + 1px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px; background: #050a07; border: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .nav-links .nav-cta { margin-top: 6px; justify-content: center; }
  .hero-stage { grid-template-columns: 1fr; gap: 34px; padding-top: 58px; }
  .hero-copy, .access-board, .hero-strip { grid-column: 1; }
  .access-board { box-shadow: 10px 12px 0 #061009; }
  .hero-strip { margin-top: 8px; }
  .intro-layout, .diagnostic-layout, .route-heading, .learning-layout, .profile-layout, .professor-layout, .faq-layout, .footer-grid { grid-template-columns: 1fr; }
  .intro-layout .note-panel, .diagnostic-layout > div:last-child, .learning-layout .columns, .profile-layout .section-heading { grid-column: 1; }
  .section-index { font-size: 3.2rem; }
  .program-intro { display: block; padding-left: 76px; }
  .program-intro h2 { margin-top: 14px; }
  .route-step { grid-template-columns: 58px 1fr; gap: 20px; }
  .route-axis { padding-top: 9px; }
  .route-lessons { grid-column: 2; display: block; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line-soft); }
  .route-lessons strong { display: block; margin-bottom: 12px; }
  .route-lessons h3 { margin-bottom: 9px; }
  .route-lessons small { display: block; margin-top: 12px; }
  .study-route::before { left: 23px; top: 280px; }
  .section-cta { margin-left: 78px; }
  .professor-photo { max-width: 480px; }
  .testimonial-track { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand { gap: 9px; }
  .brand span { padding-left: 9px; }
  .section { padding: 78px 0; }
  .hero-stage { padding-top: 48px; }
  h1 { font-size: clamp(2.72rem, 13.5vw, 4rem); line-height: 0.97; }
  h2 { font-size: clamp(2.05rem, 10vw, 3.2rem); }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .access-board { padding: 22px 18px; box-shadow: 7px 8px 0 #061009; }
  .form-fields { grid-template-columns: 1fr; }
  .form-fields label:last-child { grid-column: 1; }
  .lesson-stack { grid-template-columns: 1fr 1fr; }
  .lesson-stack span:nth-child(2) { border-right: 0; }
  .lesson-stack span:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip span:nth-child(2) { border-right: 0; }
  .hero-strip span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .intro-layout, .diagnostic-layout, .learning-layout { gap: 28px; }
  .columns { grid-template-columns: 1fr; }
  .program-intro { padding-left: 0; }
  .route-step { grid-template-columns: 46px 1fr; gap: 14px; padding: 38px 0; }
  .route-marker span { width: 42px; height: 42px; }
  .study-route::before { left: 20px; top: 340px; }
  .route-axis h3 { font-size: 1.4rem; }
  .section-cta { margin-left: 0; }
  .section-cta .btn { width: 100%; }
  .testimonial-track { grid-auto-columns: 100%; }
  .carousel-controls { grid-template-columns: 44px 1fr 44px; gap: 10px; }
  .carousel-button { width: 44px; height: 44px; }
  .faq-layout { gap: 28px; }
}

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