/* Mathematics for Visual Computing — Fall 2026
   Self-contained course-site styles. No external font or CSS dependencies. */

:root {
  --maroon: #500000;
  --maroon-2: #761321;
  --maroon-3: #9f2637;
  --ink: #1b161a;
  --ink-soft: #544b52;
  --night: #120e16;
  --night-2: #201523;
  --cream: #f8f4ec;
  --paper: #fffdf8;
  --paper-2: #f0e9df;
  --line: rgba(46, 32, 41, 0.14);
  --gold: #d7a33d;
  --gold-soft: #f2d892;
  --teal: #56bbb8;
  --teal-dark: #247d7c;
  --blue: #5b86d6;
  --purple: #8a6bd2;
  --coral: #d6685d;
  --green: #6aa576;
  --white: #ffffff;
  --shadow-sm: 0 12px 34px rgba(34, 18, 28, 0.09);
  --shadow-md: 0 24px 70px rgba(34, 18, 28, 0.14);
  --shadow-lg: 0 42px 110px rgba(12, 6, 12, 0.26);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --max-width: 1220px;
  --wide-width: 1420px;
  --header-height: 78px;
  --phase-foundations: #2f8d91;
  --phase-geometry: #7860bd;
  --phase-inference: #c1782f;
  --phase-representations: #3c79ba;
  --phase-learning: #8b3446;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 26px);
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3,
h4,
blockquote,
dl,
dd,
figure {
  margin-top: 0;
}

ul {
  margin-top: 0;
}

::selection {
  color: var(--white);
  background: var(--maroon-2);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.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 {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 11px 16px;
  color: var(--white);
  background: var(--maroon);
  border-radius: 10px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 999;
  inset: 0 0 auto 0;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  box-shadow: 0 0 14px rgba(215, 163, 61, 0.72);
  transform-origin: left;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 900;
  inset: 0 0 auto;
  height: var(--header-height);
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 14, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 42px rgba(7, 4, 8, 0.24);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  width: min(calc(100% - 40px), var(--wide-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.brand small {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 10px 17px;
  color: var(--night);
  background: var(--gold-soft);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  color: inherit;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 24%, rgba(118, 19, 33, 0.56), transparent 32%),
    radial-gradient(circle at 18% 80%, rgba(46, 130, 130, 0.18), transparent 34%),
    linear-gradient(138deg, #120e16 0%, #21121e 48%, #100c13 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.033) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 92%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -44%;
  width: 70vw;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 163, 61, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 100px rgba(215, 163, 61, 0.03),
    0 0 0 200px rgba(86, 187, 184, 0.025),
    0 0 0 300px rgba(255, 255, 255, 0.015);
}

#hero-canvas {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.76;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  width: min(calc(100% - 48px), var(--wide-width));
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(var(--header-height) + 80px) 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(215, 163, 61, 0));
}

.hero h1,
.section-heading h2,
.outcomes-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.048em;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 7.1vw, 7.35rem);
  font-weight: 500;
  line-height: 0.88;
  text-wrap: balance;
}

.hero h1 em,
.section-heading h2 em {
  color: var(--gold-soft);
  font-weight: 400;
}

.hero h1 em {
  display: inline-block;
  margin: 0 0.07em;
  font-size: 0.52em;
  letter-spacing: -0.02em;
  vertical-align: 0.22em;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.03rem, 1.5vw, 1.25rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  color: var(--night);
  background: linear-gradient(135deg, #f2d892, #d7a33d);
  box-shadow: 0 18px 46px rgba(215, 163, 61, 0.18);
}

.button--primary:hover {
  box-shadow: 0 22px 54px rgba(215, 163, 61, 0.28);
}

.button--ghost {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}

.button--light {
  color: var(--night);
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(18, 14, 22, 0.2);
}

.hero-facts {
  display: flex;
  gap: clamp(22px, 4vw, 52px);
  margin-bottom: 0;
}

.hero-facts div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 9px;
}

.hero-facts dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--white);
}

.hero-facts dd {
  margin: 0;
  max-width: 95px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 19, 33, 0.26), rgba(86, 187, 184, 0.09) 46%, transparent 72%);
  filter: blur(10px);
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  filter: drop-shadow(0 42px 50px rgba(0, 0, 0, 0.34));
  animation: hero-float 7.5s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  width: 77%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(12deg);
}

.hero-orbit--one::after,
.hero-orbit--two::after {
  content: "";
  position: absolute;
  top: 48%;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--gold);
}

.hero-orbit--two {
  width: 60%;
  transform: rotateX(67deg) rotateZ(-28deg);
  border-color: rgba(86, 187, 184, 0.18);
}

.hero-orbit--two::after {
  top: 15%;
  left: auto;
  right: -4px;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
}

.floating-label {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(18, 14, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  font-family: "Cambria Math", "STIX Two Math", Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.floating-label--a {
  top: 14%;
  left: 6%;
}

.floating-label--b {
  right: 0;
  top: 37%;
}

.floating-label--c {
  left: 1%;
  bottom: 20%;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: grid;
  place-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--gold);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}

@keyframes scroll-dot {
  0% { transform: translate(-50%, 0); opacity: 0; }
  28% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(-50%, 13px); opacity: 0; }
}

/* Shared section system */
.section {
  position: relative;
  padding: clamp(92px, 10vw, 150px) 0;
}

.section-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.section-inner--wide {
  width: min(calc(100% - 48px), var(--wide-width));
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(48px, 7vw, 84px);
}

.section-heading--light {
  color: var(--white);
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--maroon-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading--light .section-kicker {
  color: var(--gold-soft);
}

.section-heading h2 {
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 5.3vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading h2 em {
  color: var(--maroon-2);
}

.section-heading--light h2 em {
  color: var(--gold-soft);
}

.section-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.section-heading--light > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

/* Overview */
.overview-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 5%, rgba(215, 163, 61, 0.12), transparent 26%),
    var(--cream);
}

.overview-section::after {
  content: "A";
  position: absolute;
  z-index: 0;
  top: 2%;
  right: -0.02em;
  color: rgba(80, 0, 0, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: min(42vw, 560px);
  line-height: 1;
  pointer-events: none;
}

.overview-section .section-inner {
  position: relative;
  z-index: 1;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 90px;
}

.manifesto-card,
.course-snapshot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.manifesto-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(135deg, var(--maroon), #2f0f19 72%);
}

.manifesto-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -110px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.018);
}

.manifesto-card__label,
.resource-card__label {
  display: block;
  margin-bottom: 24px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.manifesto-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.manifesto-card blockquote em {
  color: var(--gold-soft);
}

.manifesto-card > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.course-snapshot {
  padding: 16px 28px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(16px);
}

.snapshot-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.snapshot-row:last-child {
  border-bottom: 0;
}

.snapshot-row span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-row strong {
  font-size: 0.95rem;
  line-height: 1.42;
}

.outcomes-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.outcomes-heading h3 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.outcome-card {
  position: relative;
  min-height: 250px;
  padding: 27px 23px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.outcome-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon-2), var(--gold));
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 220ms ease;
}

.outcome-card:hover {
  transform: translateY(-7px);
  border-color: rgba(80, 0, 0, 0.24);
  box-shadow: var(--shadow-md);
}

.outcome-card:hover::before {
  transform: scaleX(1);
}

.outcome-card > span {
  display: block;
  margin-bottom: 46px;
  color: var(--maroon-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.outcome-card h4 {
  margin-bottom: 11px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.outcome-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.89rem;
  line-height: 1.58;
}

/* Journey */
.journey-section {
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 24%, rgba(86, 187, 184, 0.15), transparent 25%),
    radial-gradient(circle at 86% 80%, rgba(118, 19, 33, 0.5), transparent 32%),
    linear-gradient(145deg, #17101b, #24131e 55%, #120e16);
}

.journey-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, transparent, #000 35%, #000 68%, transparent);
}

.journey-section .section-inner {
  position: relative;
  z-index: 1;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.phase-card {
  --phase-accent: var(--teal);
  position: relative;
  min-height: 330px;
  padding: 28px 24px 25px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.phase-card:nth-child(1) { --phase-accent: #65c4bf; }
.phase-card:nth-child(2) { --phase-accent: #a693e5; }
.phase-card:nth-child(3) { --phase-accent: #e7ae68; }
.phase-card:nth-child(4) { --phase-accent: #70a9df; }
.phase-card:nth-child(5) { --phase-accent: #e07b8c; }

.phase-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--phase-accent);
}

.phase-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -72px;
  right: -72px;
  background: var(--phase-accent);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(8px);
}

.phase-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.085);
  border-color: color-mix(in srgb, var(--phase-accent) 55%, transparent);
}

.phase-card__number {
  display: block;
  margin-bottom: 58px;
  color: var(--phase-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.phase-card__range {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-card h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.phase-card p:not(.phase-card__range) {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.58;
}

.phase-card a {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: var(--phase-accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.phase-card a span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 180ms ease;
}

.phase-card a:hover span {
  transform: translateX(4px);
}

.course-map {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.course-map summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 28px;
  cursor: pointer;
}

.course-map summary::-webkit-details-marker {
  display: none;
}

.course-map summary span {
  font-weight: 750;
}

.course-map summary small {
  color: rgba(255, 255, 255, 0.48);
}

.course-map summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: transform 200ms ease;
}

.course-map[open] summary::after {
  transform: rotate(45deg);
}

.course-map__image {
  padding: 0 18px 18px;
}

.course-map__image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* Weeks */
.weeks-section {
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(80, 0, 0, 0.035), transparent 12%),
    var(--cream);
}

.week-controls {
  position: sticky;
  z-index: 30;
  top: calc(var(--header-height) + 12px);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  margin-bottom: 56px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(29, 18, 24, 0.1);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.week-search {
  position: relative;
  min-width: 0;
}

.week-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.week-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 45px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.week-search input::placeholder {
  color: #8d8188;
}

.week-search input:focus {
  border-color: rgba(80, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(80, 0, 0, 0.08);
}

.phase-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.phase-filter {
  padding: 8px 11px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 720;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.phase-filter:hover {
  color: var(--maroon);
  background: rgba(80, 0, 0, 0.05);
}

.phase-filter.is-active {
  color: var(--white);
  background: var(--maroon);
  border-color: var(--maroon);
}

.filter-status {
  grid-column: 1 / -1;
  margin: -4px 4px 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.week-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.week-rail {
  position: sticky;
  top: 205px;
  max-height: calc(100vh - 232px);
  overflow-y: auto;
  padding: 10px 10px 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 0, 0, 0.2) transparent;
}

.week-rail > p {
  margin-bottom: 12px;
  padding-left: 10px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.week-rail__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 5px 8px;
  color: #756a71;
  border-radius: 12px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.week-rail__link span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--ink-soft);
  background: rgba(80, 0, 0, 0.055);
  border: 1px solid rgba(80, 0, 0, 0.09);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.week-rail__link small {
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-rail__link:hover,
.week-rail__link.is-active {
  color: var(--maroon);
  background: rgba(80, 0, 0, 0.055);
  transform: translateX(3px);
}

.week-rail__link.is-active span {
  color: var(--white);
  background: var(--maroon);
  border-color: var(--maroon);
  box-shadow: 0 8px 20px rgba(80, 0, 0, 0.22);
}

.week-stream {
  position: relative;
}

.week-stream::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 100px;
  left: 27px;
  width: 1px;
  background: linear-gradient(to bottom, var(--maroon), rgba(80, 0, 0, 0.08) 96%, transparent);
}

.week-card {
  --week-accent: var(--maroon-2);
  position: relative;
  padding: 0 0 84px 76px;
  scroll-margin-top: 226px;
}

.week-card[data-phase="foundations"] { --week-accent: var(--phase-foundations); }
.week-card[data-phase="geometry"] { --week-accent: var(--phase-geometry); }
.week-card[data-phase="inference"] { --week-accent: var(--phase-inference); }
.week-card[data-phase="representations"] { --week-accent: var(--phase-representations); }
.week-card[data-phase="learning"] { --week-accent: var(--phase-learning); }

.week-card.is-filtered-out {
  display: none;
}

.week-node {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 0;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  color: var(--white);
  background: var(--week-accent);
  border: 6px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--week-accent) 32%, transparent);
}

.week-node span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.week-card__surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.week-card__surface::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--week-accent), color-mix(in srgb, var(--week-accent) 25%, transparent));
}

.week-card:hover .week-card__surface {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--week-accent) 25%, var(--line));
  box-shadow: var(--shadow-md);
}

.week-card:nth-of-type(even) .week-media {
  order: 2;
}

.week-media {
  position: relative;
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 80% 16%, color-mix(in srgb, var(--week-accent) 16%, transparent), transparent 30%),
    #eee8df;
}

.week-media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e6dfd4;
  border-radius: 18px;
  box-shadow: 0 22px 52px rgba(31, 20, 28, 0.12);
}

.week-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4eee5;
}

.media-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(17, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--week-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--week-accent) 22%, transparent);
}

.media-caption {
  margin: 14px 4px 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.week-copy {
  min-width: 0;
  padding: clamp(30px, 4.2vw, 58px);
}

.week-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.phase-badge,
.assignment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.phase-badge {
  color: var(--week-accent);
  background: color-mix(in srgb, var(--week-accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--week-accent) 18%, transparent);
}

.assignment-badge {
  color: var(--maroon);
  background: rgba(80, 0, 0, 0.06);
  border: 1px solid rgba(80, 0, 0, 0.13);
}

.week-kicker {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.week-copy h3 {
  margin-bottom: 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.week-summary {
  margin-bottom: 27px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.week-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 18px;
  margin-bottom: 20px;
}

.week-detail-grid h4,
.concept-note h4 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-list {
  margin-bottom: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.topic-list li {
  margin-bottom: 5px;
  padding-left: 2px;
}

.topic-list li::marker {
  color: var(--week-accent);
}

.concept-note {
  padding: 17px 18px;
  background: color-mix(in srgb, var(--week-accent) 5%, var(--cream));
  border-left: 3px solid var(--week-accent);
  border-radius: 0 15px 15px 0;
}

.concept-note p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.57;
}

.equation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.equation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  color: #2e2630;
  background: #f2ede5;
  border: 1px solid rgba(42, 31, 38, 0.1);
  border-radius: 9px;
  font-family: "Cambria Math", "STIX Two Math", Georgia, serif;
  font-size: 0.82rem;
  white-space: nowrap;
}

.visual-connection {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.visual-connection strong {
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--maroon-2);
  font-size: 0.82rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(118, 19, 33, 0.26);
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.no-results {
  margin-left: 76px;
  padding: 70px 30px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed rgba(80, 0, 0, 0.25);
  border-radius: 28px;
}

.no-results > span {
  display: block;
  margin-bottom: 18px;
  color: var(--maroon-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
}

.no-results h3 {
  margin-bottom: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.no-results p {
  color: var(--ink-soft);
}

.no-results button {
  padding: 10px 16px;
  color: var(--white);
  background: var(--maroon);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

/* Assessment */
.assessment-section {
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(215, 163, 61, 0.16), transparent 28%),
    radial-gradient(circle at 10% 82%, rgba(86, 187, 184, 0.13), transparent 26%),
    linear-gradient(140deg, #1a1019, #3b0f1d 65%, #1b1119);
}

.assessment-section::after {
  content: "100";
  position: absolute;
  right: -0.04em;
  bottom: -0.26em;
  color: rgba(255, 255, 255, 0.028);
  font-family: Georgia, "Times New Roman", serif;
  font-size: min(34vw, 480px);
  line-height: 1;
  pointer-events: none;
}

.assessment-section .section-inner {
  position: relative;
  z-index: 1;
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 94px);
  align-items: center;
}

.assessment-wheel {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--maroon-3) 0 60%, var(--gold) 60% 95%, var(--teal) 95% 100%);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.3);
}

.assessment-wheel::before {
  content: "";
  position: absolute;
  inset: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 42%),
    #1b1119;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.assessment-wheel::after {
  content: "Assignments 60%  ·  Final project 35%  ·  Participation 5%";
  position: absolute;
  bottom: -54px;
  left: 50%;
  width: 130%;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translateX(-50%);
}

.assessment-wheel > div {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.assessment-wheel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.9;
}

.assessment-wheel span {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.assessment-cards {
  display: grid;
  gap: 13px;
}

.assessment-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 23px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  transition: transform 200ms ease, background-color 200ms ease;
}

.assessment-card:hover {
  transform: translateX(7px);
  background: rgba(255, 255, 255, 0.08);
}

.assessment-card__value {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
}

.assessment-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.assessment-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
}

.assessment-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 90px;
}

.assessment-notes > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
}

.assessment-notes span {
  color: var(--teal);
}

.assessment-notes p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.78rem;
}

.assessment-notes strong {
  color: rgba(255, 255, 255, 0.87);
}

/* Resources */
.resources-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(86, 187, 184, 0.1), transparent 22%),
    var(--cream);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  min-height: 300px;
  padding: clamp(30px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.resource-card--primary {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 5%, rgba(215, 163, 61, 0.23), transparent 30%),
    linear-gradient(140deg, var(--maroon), #30101a);
  border-color: transparent;
}

.resource-card__label {
  margin-bottom: 30px;
  color: var(--maroon-2);
}

.resource-card--primary .resource-card__label {
  color: var(--gold-soft);
}

.resource-card h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.resource-card p,
.resource-card li {
  color: var(--ink-soft);
  font-size: 0.89rem;
}

.resource-card--primary p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.66);
}

.resource-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.resource-card li {
  margin-bottom: 8px;
}

.resource-card li::marker {
  color: var(--maroon-2);
}

.resource-card .button {
  margin-top: 12px;
}

.instructor-card {
  display: flex;
  flex-direction: column;
}

.instructor-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* Footer */
.site-footer {
  color: var(--white);
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--wide-width));
  min-height: 150px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
}

.footer-brand div {
  display: grid;
  line-height: 1.3;
}

.footer-brand strong {
  font-size: 0.9rem;
}

.footer-brand span,
.site-footer p,
.site-footer > a {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-inner > a {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.noscript-note {
  position: fixed;
  z-index: 1200;
  right: 14px;
  bottom: 14px;
  max-width: 440px;
  margin: 0;
  padding: 13px 16px;
  color: var(--white);
  background: var(--maroon);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms cubic-bezier(.2,.8,.2,1), transform 620ms cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1240px) {
  .site-nav a {
    padding-inline: 9px;
    font-size: 0.82rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.78fr);
  }

  .hero-visual {
    min-height: 500px;
  }

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

  .outcome-card:nth-child(4),
  .outcome-card:nth-child(5) {
    min-height: 220px;
  }

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

  .phase-card:nth-child(4),
  .phase-card:nth-child(5) {
    min-height: 285px;
  }

  .week-controls {
    grid-template-columns: 1fr;
  }

  .phase-filters {
    justify-content: flex-start;
  }

  .week-card__surface {
    grid-template-columns: 1fr;
  }

  .week-card:nth-of-type(even) .week-media {
    order: 0;
  }

  .week-media {
    padding: 16px 16px 0;
    background: transparent;
  }
}

@media (max-width: 1040px) {
  :root {
    --header-height: 70px;
  }

  .header-cta,
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav.is-open {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    background: rgba(18, 14, 22, 0.98);
    backdrop-filter: blur(20px);
  }

  .site-nav.is-open a {
    width: min(100%, 560px);
    margin-inline: auto;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 4vw, 2rem);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-height) + 70px);
    text-align: center;
  }

  .hero-copy {
    max-width: 850px;
    margin-inline: auto;
  }

  .eyebrow,
  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 500px;
    margin-top: -20px;
  }

  .hero-visual img {
    width: min(75vw, 620px);
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .week-layout {
    grid-template-columns: 1fr;
  }

  .week-rail {
    position: sticky;
    z-index: 25;
    top: 190px;
    display: flex;
    align-items: center;
    gap: 4px;
    max-height: none;
    margin: 0 -4px 34px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(248, 244, 236, 0.9);
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 12px 34px rgba(29, 18, 24, 0.08);
    backdrop-filter: blur(16px);
  }

  .week-rail > p,
  .week-rail__link small {
    display: none;
  }

  .week-rail__link {
    display: block;
    flex: 0 0 auto;
    min-height: auto;
    padding: 3px;
  }

  .week-rail__link:hover,
  .week-rail__link.is-active {
    transform: none;
    background: transparent;
  }

  .assessment-layout {
    grid-template-columns: 1fr;
  }

  .assessment-wheel {
    max-width: 360px;
    margin-bottom: 72px;
  }
}

@media (max-width: 780px) {
  .header-inner,
  .section-inner,
  .section-inner--wide,
  .footer-inner,
  .hero-inner {
    width: min(calc(100% - 30px), var(--wide-width));
  }

  .brand small {
    display: none;
  }

  .hero-inner {
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-visual img {
    width: min(92vw, 520px);
  }

  .floating-label {
    font-size: 0.66rem;
  }

  .floating-label--a { left: 1%; }
  .floating-label--b { right: 1%; }
  .floating-label--c { left: 3%; bottom: 15%; }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-block: 88px;
  }

  .section-heading h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .manifesto-card {
    padding: 34px 26px;
  }

  .manifesto-card blockquote {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .outcome-grid,
  .phase-grid,
  .assessment-notes,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .outcome-card,
  .phase-card,
  .phase-card:nth-child(4),
  .phase-card:nth-child(5) {
    min-height: auto;
  }

  .outcome-card > span,
  .phase-card__number {
    margin-bottom: 32px;
  }

  .phase-card {
    padding-bottom: 74px;
  }

  .course-map summary {
    align-items: flex-start;
  }

  .course-map summary small {
    display: none;
  }

  .week-controls {
    position: relative;
    top: auto;
    margin-bottom: 26px;
    padding: 10px;
    border-radius: 17px;
  }

  .phase-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .phase-filter {
    flex: 0 0 auto;
  }

  .filter-status {
    display: none;
  }

  .week-rail {
    top: calc(var(--header-height) + 8px);
    margin-bottom: 26px;
  }

  .week-stream::before {
    left: 22px;
  }

  .week-card {
    padding-left: 60px;
    padding-bottom: 64px;
    scroll-margin-top: 132px;
  }

  .week-node {
    width: 46px;
    height: 46px;
    border-width: 5px;
  }

  .week-card__surface {
    border-radius: 23px;
  }

  .week-media {
    padding: 12px 12px 0;
  }

  .week-media__frame {
    border-radius: 14px;
  }

  .media-label {
    display: none;
  }

  .week-copy {
    padding: 29px 22px 32px;
  }

  .week-copy h3 {
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .week-detail-grid {
    grid-template-columns: 1fr;
  }

  .equation-row {
    align-items: flex-start;
  }

  .equation-chip {
    white-space: normal;
  }

  .no-results {
    margin-left: 60px;
  }

  .assessment-card {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 21px;
  }

  .assessment-card__value {
    font-size: 1.9rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 38px;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hero-facts {
    gap: 16px;
  }

  .hero-facts div {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 5px;
  }

  .hero-facts dd {
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 330px;
  }

  .floating-label--c {
    display: none;
  }

  .snapshot-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .week-search input {
    font-size: 0.85rem;
  }

  .week-card {
    padding-left: 52px;
  }

  .week-stream::before {
    left: 19px;
  }

  .week-node {
    left: -2px;
    width: 42px;
    height: 42px;
  }

  .media-caption {
    display: none;
  }

  .week-copy {
    padding-inline: 18px;
  }

  .week-kicker {
    line-height: 1.4;
  }

  .assessment-wheel::after {
    width: 110%;
  }

  .resource-card {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Compact course-practice notice beneath the resource cards */
.practice-note {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  margin-top: 16px;
  padding: 22px 26px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.practice-note > span {
  color: var(--maroon-2);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.practice-note p {
  margin-bottom: 0;
  font-size: 0.84rem;
}

.practice-note strong {
  color: var(--ink);
}

@media (max-width: 780px) {
  .practice-note {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
}
