@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #08100f;
  --deep: #050b0a;
  --panel: #0d1715;
  --ink: #e8ecf3;
  --muted: #8d9b99;
  --faint: #586762;
  --line: #263330;
  --accent: #b7f23a;
  --teal: #49d2bd;
  color: var(--ink);
  background: var(--bg);
  font: 400 16px/1.6 'Manrope', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); }
::selection { background: var(--accent); color: var(--deep); }
a { color: inherit; }
button { cursor: pointer; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -100px; padding: 10px 14px; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.topbar { height: 78px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 28px; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(8, 16, 15, .94); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font: 500 12px 'DM Mono', monospace; letter-spacing: .12em; white-space: nowrap; }
.brand em { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-style: normal; font-size: 9px; }
.brand-mark { display: flex; align-items: center; gap: 3px; height: 22px; }
.brand-mark i { display: block; width: 2px; height: 10px; background: var(--accent); }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; }
.brand-mark i:nth-child(4) { height: 7px; }
.course-nav { display: flex; align-items: center; gap: clamp(18px, 2.7vw, 40px); }
.course-nav > a { color: var(--muted); text-decoration: none; font: 500 10px 'DM Mono', monospace; letter-spacing: .07em; text-transform: uppercase; transition: color .18s; }
.course-nav > a:hover, .course-nav > a:focus-visible { color: var(--ink); }
.course-nav .explorer-link { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid #46513f; border-radius: 99px; color: var(--accent); }
.course-nav .explorer-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(183, 242, 58, .06); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); padding: 0; place-content: center; gap: 4px; }
.menu-button > span:not(.sr-only) { display: block; width: 16px; height: 1px; background: var(--ink); }

.hero { min-height: calc(100vh - 78px); padding: clamp(58px, 7vw, 112px) clamp(24px, 7vw, 112px) 0; position: relative; display: grid; grid-template-columns: minmax(480px, 1fr) minmax(420px, .85fr); grid-template-rows: 1fr auto; gap: 64px clamp(42px, 6vw, 110px); overflow: hidden; }
.hero-glow { position: absolute; width: 760px; height: 760px; right: -220px; top: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(73, 210, 189, .12), transparent 67%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0 0 auto 47%; height: 72%; opacity: .22; background-image: linear-gradient(rgba(73, 210, 189, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(73, 210, 189, .13) 1px, transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000); pointer-events: none; }
.hero-copy, .hero-signal { position: relative; z-index: 2; align-self: center; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--accent); font: 500 10px 'DM Mono', monospace; letter-spacing: .14em; }
.eyebrow span + span { color: var(--muted); }
.hero h1 { margin: 34px 0 30px; max-width: 820px; font-size: clamp(62px, 7.4vw, 126px); line-height: .84; letter-spacing: -.072em; font-weight: 500; }
.hero h1 span { color: var(--accent); }
.hero-copy > p { max-width: 700px; margin: 0; color: #a9b4b2; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.65; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.primary-button, .lab-button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border-radius: 99px; background: var(--accent); color: #0b130e; text-decoration: none; font-weight: 700; transition: transform .18s, box-shadow .18s; }
.primary-button:hover, .lab-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(183, 242, 58, .12); }
.text-link { color: var(--ink); text-decoration: none; font-size: 13px; }
.text-link span { margin-left: 9px; color: var(--accent); }
.support-note { margin-top: 30px; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 400 9px 'DM Mono', monospace; letter-spacing: .04em; }
.support-note i, .live-pulse, .week-lab-label i, .lab-topline i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(183, 242, 58, .1); }
.hero-signal { width: 100%; border: 1px solid rgba(73, 210, 189, .23); background: rgba(5, 12, 10, .76); box-shadow: 0 28px 80px rgba(0, 0, 0, .38), 0 0 42px rgba(73, 210, 189, .06); }
.signal-toolbar, .signal-readout { height: 44px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: #71817c; font: 500 8px 'DM Mono', monospace; letter-spacing: .1em; }
.signal-toolbar { border-bottom: 1px solid var(--line); }
.signal-toolbar span:first-child { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.signal-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-signal svg { width: 100%; height: auto; display: block; }
.trace { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace-muted { stroke: rgba(73, 210, 189, .24); stroke-width: 2; }
.trace-main { stroke: #52e3ce; stroke-width: 4; stroke-dasharray: 1500; animation: signal-draw 3s ease-out both, signal-glow 2.6s ease-in-out infinite alternate; }
.signal-readout { border-top: 1px solid var(--line); }
.signal-readout span:first-child { color: var(--teal); }
.signal-readout strong { color: #81908b; font-weight: 500; }
@keyframes signal-draw { from { stroke-dashoffset: 1500; } to { stroke-dashoffset: 0; } }
@keyframes signal-glow { from { opacity: .76; } to { opacity: 1; } }
.course-facts { grid-column: 1 / -1; margin: 0 calc(clamp(24px, 7vw, 112px) * -1); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7, 14, 13, .82); }
.course-facts div { min-height: 126px; padding: 22px clamp(24px, 4vw, 64px); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.course-facts div:last-child { border-right: 0; }
.course-facts strong { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.course-facts span { color: var(--muted); font: 400 9px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 90px clamp(24px, 7vw, 112px) 110px; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: start; margin-bottom: 64px; }
.section-number { padding-top: 10px; color: var(--accent); font: 500 10px 'DM Mono', monospace; }
.kicker { margin: 0; color: var(--accent); font: 500 9px 'DM Mono', monospace; letter-spacing: .15em; }
.section-heading h2 { margin: 17px 0 0; font-size: clamp(44px, 5.7vw, 88px); line-height: .94; letter-spacing: -.06em; font-weight: 500; }
.overview { background: #0b1412; }
.overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 130px); }
.overview-intro .lead { margin: 0 0 24px; color: var(--ink); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.38; letter-spacing: -.025em; }
.overview-intro > p:not(.lead) { color: var(--muted); max-width: 650px; }
.privacy-note { margin-top: 38px; padding: 18px 20px; border: 1px solid #3c512d; background: #121b13; display: flex; align-items: flex-start; gap: 14px; }
.privacy-note .live-pulse { margin-top: 7px; }
.privacy-note p { margin: 0; color: #91a08f; font-size: 12px; line-height: 1.7; }
.privacy-note strong { color: var(--ink); }
.overview-cards { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.overview-cards article { min-height: 210px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.overview-cards article:nth-child(2n) { border-right: 0; }
.overview-cards article:nth-last-child(-n+2) { border-bottom: 0; }
.overview-cards span { color: var(--accent); font: 500 8px 'DM Mono', monospace; letter-spacing: .13em; }
.overview-cards strong { display: block; margin: 44px 0 8px; font-size: 18px; }
.overview-cards p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.curriculum { background: var(--bg); }
.curriculum-heading { grid-template-columns: 72px 1fr auto; align-items: end; }
.curriculum-actions { width: 220px; display: grid; gap: 10px; justify-items: stretch; }
.curriculum-actions > span { color: var(--muted); font: 500 8px 'DM Mono', monospace; letter-spacing: .09em; }
.progress-track { width: 100%; height: 3px; background: #1b2824; overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .35s; }
#expand-all { justify-self: end; margin-top: 5px; padding: 0; border: 0; border-bottom: 1px solid #4c5c57; background: none; color: var(--muted); font: 500 9px 'DM Mono', monospace; }
#expand-all:hover { color: var(--ink); }
.week-list { border-top: 1px solid var(--line); }
.week { border-bottom: 1px solid var(--line); }
.week summary { min-height: 112px; padding: 20px 0; display: grid; grid-template-columns: 72px 1fr auto 48px; gap: 28px; align-items: center; list-style: none; cursor: pointer; transition: background .18s; }
.week summary::-webkit-details-marker { display: none; }
.week summary:hover { background: rgba(255, 255, 255, .018); }
.week-number { color: var(--faint); font: 500 10px 'DM Mono', monospace; }
.week-title { display: grid; gap: 6px; }
.week-title small { color: var(--accent); font: 500 8px 'DM Mono', monospace; letter-spacing: .12em; }
.week-title strong { font-size: clamp(20px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.035em; }
.week-lab-label { display: flex; align-items: center; gap: 10px; color: #7f8e89; font: 500 8px 'DM Mono', monospace; letter-spacing: .1em; }
.week-toggle { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.week-toggle::before, .week-toggle::after { content: ''; position: absolute; left: 13px; right: 13px; top: 20px; height: 1px; background: var(--ink); }
.week-toggle::after { transform: rotate(90deg); transition: transform .2s; }
.week[open] .week-toggle { border-color: #536830; }
.week[open] .week-toggle::after { transform: rotate(0); }
.week-content { padding: 12px 0 54px 100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: clamp(36px, 7vw, 110px); }
.lesson-materials h3 { margin: 30px 0 15px; color: #aeb9b6; font-size: 13px; font-weight: 600; }
.lesson-materials h3:first-child { margin-top: 0; }
.resource-list, .required-work, .question-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.resource-list li { min-height: 54px; display: grid; grid-template-columns: 58px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.resource-list li > span { color: var(--accent); font: 500 7px 'DM Mono', monospace; letter-spacing: .1em; }
.resource-list a, .resource-list p { margin: 0; color: #b3bfbc; text-decoration: none; font-size: 12px; }
.resource-list a { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; }
.resource-list a:hover { color: var(--ink); }
.resource-list b { color: var(--accent); font-weight: 400; }
.required-work li { padding: 15px 16px 15px 42px; border-bottom: 1px solid #4a4a2b; background: #17180f; color: #c8c9a2; position: relative; font-size: 12px; line-height: 1.7; }
.required-work li::before { content: 'TO DO'; position: absolute; left: 10px; top: 18px; color: var(--accent); font: 500 6px 'DM Mono', monospace; letter-spacing: .08em; }
.question-list { counter-reset: questions; }
.question-list li { min-height: 50px; padding: 13px 0 13px 42px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); font-size: 12px; }
.question-list li::before { counter-increment: questions; content: counter(questions, decimal-leading-zero); position: absolute; left: 0; top: 15px; color: var(--faint); font: 500 8px 'DM Mono', monospace; }
.muse-lab { min-height: 390px; padding: 26px; align-self: start; border: 1px solid #31423a; background: linear-gradient(145deg, #101b17, #0b1412); position: relative; overflow: hidden; }
.muse-lab::after { content: ''; position: absolute; width: 280px; height: 280px; right: -140px; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(73, 210, 189, .1), transparent 67%); pointer-events: none; }
.capstone-lab { border-color: #596e32; }
.lab-topline { display: flex; justify-content: space-between; align-items: center; color: var(--accent); font: 500 8px 'DM Mono', monospace; letter-spacing: .12em; }
.lab-topline span { display: flex; align-items: center; gap: 10px; }
.lab-topline em { color: var(--faint); font-style: normal; }
.muse-lab h3 { margin: 48px 0 13px; font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.muse-lab > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.lab-objective { margin-top: 24px; padding-top: 18px; display: grid; grid-template-columns: 72px 1fr; gap: 14px; border-top: 1px solid var(--line); }
.lab-objective span { color: var(--teal); font: 500 7px 'DM Mono', monospace; letter-spacing: .1em; }
.lab-objective p { margin: 0; color: #a7b4b0; font-size: 11px; line-height: 1.6; }
.lab-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 13px; position: relative; z-index: 2; }
.lab-button { min-height: 44px; padding: 0 17px; gap: 22px; font-size: 11px; }
.complete-button { min-height: 42px; padding: 0 13px; border: 1px solid #34423e; border-radius: 99px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; font-size: 10px; }
.complete-button i { width: 12px; height: 12px; border: 1px solid #586762; border-radius: 50%; position: relative; }
.complete-button:hover { color: var(--ink); border-color: #53635e; }
.complete-button.is-complete { color: var(--accent); border-color: #536b31; background: rgba(183, 242, 58, .05); }
.complete-button.is-complete i { border-color: var(--accent); background: var(--accent); }
.complete-button.is-complete i::after { content: ''; position: absolute; width: 5px; height: 3px; left: 3px; top: 3px; border-left: 1px solid var(--bg); border-bottom: 1px solid var(--bg); transform: rotate(-45deg); }
.noscript-note { padding: 22px; border: 1px solid #6c4b35; color: #e4aa82; }

.assessment { background: #0b1412; }
.assessment-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.grade-card { min-height: 280px; padding: 32px; display: grid; grid-template-columns: auto 1fr; gap: 34px; border-right: 1px solid var(--line); background: var(--panel); }
.grade-card:last-child { border-right: 0; }
.grade-number { color: var(--accent); font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -.06em; }
.grade-number span { font-size: .35em; }
.grade-card h3 { margin: 34px 0 9px; font-size: 21px; }
.grade-card div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.enrolment-panel { margin-top: 18px; padding: clamp(30px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 50px 90px; border: 1px solid var(--line); background: #0a1211; }
.enrolment-panel h2 { margin: 14px 0; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.05em; font-weight: 500; }
.enrolment-panel > div:first-child > p:last-child { color: var(--muted); max-width: 550px; }
.enrolment-panel ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.enrolment-panel li { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.enrolment-panel li span { color: var(--accent); font: 500 8px 'DM Mono', monospace; }
.form-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.form-links a { min-width: 200px; min-height: 48px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid #3a4a45; border-radius: 99px; color: var(--ink); text-decoration: none; font-size: 11px; }
.form-links a:hover { color: var(--accent); border-color: var(--accent); }
footer { min-height: 190px; padding: 45px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 16px 40px; background: var(--deep); }
.footer-brand { align-self: end; }
footer > p { margin: 0; color: var(--faint); font-size: 11px; }
footer > div { grid-row: 1 / 3; grid-column: 2; display: flex; align-items: center; gap: 28px; }
footer > div a { color: var(--muted); text-decoration: none; font: 500 9px 'DM Mono', monospace; }
footer > div a:hover { color: var(--accent); }

@media (max-width: 1050px) {
  .course-nav { position: fixed; top: 78px; left: 0; right: 0; padding: 22px clamp(20px, 4vw, 64px) 28px; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: rgba(8, 16, 15, .98); }
  .course-nav.is-open { display: flex; }
  .course-nav > a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .course-nav .explorer-link { margin-top: 15px; justify-content: center; }
  .menu-button { display: grid; }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 55px; }
  .hero-copy { max-width: 820px; }
  .hero-signal { max-width: 760px; }
  .overview-grid { grid-template-columns: 1fr; }
  .curriculum-heading { grid-template-columns: 72px 1fr; }
  .curriculum-actions { grid-column: 2; width: 100%; }
  .week-content { grid-template-columns: 1fr; padding-left: 100px; }
  .muse-lab { max-width: 680px; }
}

@media (max-width: 720px) {
  .topbar { height: 68px; }
  .brand { font-size: 10px; gap: 10px; }
  .brand em { display: none; }
  .course-nav { top: 68px; }
  .hero { padding: 54px 20px 0; grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(54px, 18vw, 84px); }
  .hero-copy > p { font-size: 16px; }
  .hero-signal { width: calc(100vw - 40px); }
  .signal-readout strong { display: none; }
  .course-facts { grid-template-columns: 1fr 1fr; margin: 0 -20px; }
  .course-facts div { min-height: 100px; border-bottom: 1px solid var(--line); }
  .course-facts div:nth-child(2) { border-right: 0; }
  .course-facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 70px 20px 82px; }
  .section-heading, .curriculum-heading { grid-template-columns: 42px 1fr; gap: 12px; margin-bottom: 45px; }
  .section-heading h2 { font-size: clamp(42px, 14vw, 64px); }
  .curriculum-actions { grid-column: 1 / -1; margin-top: 15px; }
  .overview-cards { grid-template-columns: 1fr; }
  .overview-cards article { min-height: 175px; border-right: 0; }
  .overview-cards article:nth-child(3) { border-bottom: 1px solid var(--line); }
  .week summary { min-height: 96px; grid-template-columns: 32px 1fr 38px; gap: 12px; }
  .week-lab-label { display: none; }
  .week-toggle { width: 36px; height: 36px; }
  .week-toggle::before, .week-toggle::after { left: 11px; right: 11px; top: 17px; }
  .week-title strong { font-size: 20px; }
  .week-content { padding: 5px 0 42px; gap: 32px; }
  .muse-lab { min-height: 0; padding: 22px; }
  .muse-lab h3 { margin-top: 38px; }
  .lab-actions { align-items: stretch; flex-direction: column; }
  .lab-button, .complete-button { width: 100%; justify-content: center; }
  .assessment-grid { grid-template-columns: 1fr; }
  .grade-card { grid-template-columns: 1fr; gap: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .grade-card:last-child { border-bottom: 0; }
  .grade-card h3 { margin-top: 15px; }
  .enrolment-panel { grid-template-columns: 1fr; gap: 32px; padding: 25px; }
  .form-links { grid-column: 1; }
  .form-links a { width: 100%; }
  footer { grid-template-columns: 1fr; }
  footer > div { grid-row: auto; grid-column: auto; align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 20px; }
}

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