/* ===== Deventive Academy ===== */
:root {
  /* Dark (default) */
  --bg: #0A0B0D;
  --bg-2: #111216;
  --bg-3: #171A1F;
  --fg: #F4F5F7;
  --fg-dim: #A7ADB8;
  --fg-mute: #6B7280;
  --accent: #CFFF50;       /* electric lime */
  --accent-2: #8CF542;
  --accent-ink: #0A0B0D;
  --brand: #6C4BFF;        /* secondary brand purple, used sparingly */
  --brand-2: #FF6B9B;
  --warn: #FFB547;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --card: #14161B;
  --card-2: #1A1D23;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1280px;
  --font-display: 'Bricolage Grotesque', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #F6F4EE;
  --bg-2: #FFFFFF;
  --bg-3: #EDEAE0;
  --fg: #0A0B0D;
  --fg-dim: #4A4F58;
  --fg-mute: #8A8F98;
  --accent: #6C4BFF;
  --accent-2: #8F78FF;
  --accent-ink: #FFFFFF;
  --brand: #0A0B0D;
  --brand-2: #FF6B9B;
  --line: rgba(10,11,13,.08);
  --line-2: rgba(10,11,13,.14);
  --card: #FFFFFF;
  --card-2: #F0ECE2;
}

[data-theme="brand"] {
  --bg: #1B0F3F;
  --bg-2: #2A1760;
  --bg-3: #35206E;
  --fg: #FFF6E9;
  --fg-dim: #C9BEE8;
  --fg-mute: #9787C4;
  --accent: #FFD452;
  --accent-2: #FFAE1A;
  --accent-ink: #1B0F3F;
  --brand: #FF6B9B;
  --brand-2: #63E8C9;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.18);
  --card: #281753;
  --card-2: #331E68;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: currentColor; opacity: .5;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-optical-sizing: auto;
}

h1.display { font-size: clamp(56px, 8.2vw, 132px); }
h2.display { font-size: clamp(40px, 5.6vw, 88px); line-height: .98; }
h3.display { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--fg); }
button.btn {
  font: inherit;
  cursor: pointer;
  appearance: none;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--fg-dim); }
.nav-links a:hover { color: var(--fg); }

/* SECTION */
.section { position: relative; padding: 120px 0; scroll-margin-top: 100px; }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head h2 { margin: 16px 0 18px; }
.section-head p { color: var(--fg-dim); font-size: 18px; max-width: 56ch; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 75%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.hero-blob.b1 { width: 560px; height: 560px; top: -120px; right: -60px; background: color-mix(in oklab, var(--accent) 55%, transparent); }
.hero-blob.b2 { width: 460px; height: 460px; bottom: -140px; left: -80px; background: color-mix(in oklab, var(--brand) 60%, transparent); }
.hero-blob.b3 { width: 300px; height: 300px; top: 40%; left: 40%; background: color-mix(in oklab, var(--brand-2) 55%, transparent); opacity: .25; }

.hero-inner { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 148px);
  line-height: .92;
  letter-spacing: -0.04em;
  margin: 24px 0 28px;
  font-optical-sizing: auto;
}
.hero-title .stroke {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero-title .accent { color: var(--accent); }
.hero-title .marquee-word {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 .18em;
  border-radius: 14px;
  transform: rotate(-1.5deg);
}

.hero-sub {
  max-width: 58ch;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--fg-dim);
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 48px; }
.hero-meta {
  display: flex; gap: 36px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-dim);
}
.hero-meta strong { color: var(--fg); font-weight: 700; display: block; font-size: 24px; font-family: var(--font-display); }

/* Hero side visual */
.hero-layout { display: grid; grid-template-columns: 1.2fr .9fr; gap: 60px; align-items: end; }
@media (max-width: 1000px) { .hero-layout { grid-template-columns: 1fr; } }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 520px;
  margin-left: auto;
  will-change: transform;
}
.hv-card {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  background: var(--card);
}
.hv-main { inset: 0; background: linear-gradient(135deg, #2a1760, #6C4BFF); }
.hv-main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .85; }
.hv-badge {
  position: absolute; top: -20px; left: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800;
  font-size: 14px; text-align: center; line-height: 1.1;
  transform: rotate(-12deg);
  z-index: 3;
  animation: spin 20s linear infinite;
}
.hv-chip {
  position: absolute; z-index: 3;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  display: flex; align-items: center; gap: 8px;
}
.hv-chip .swatch { width: 10px; height: 10px; border-radius: 3px; }
.hv-chip.c1 { top: 18%; left: -30px; }
.hv-chip.c2 { bottom: 22%; right: -40px; }
.hv-chip.c3 { top: 62%; left: -50px; }

@keyframes spin { to { transform: rotate(348deg); } }

/* MARQUEE */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
  display: flex; gap: 60px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 60px; animation: marq 40s linear infinite; flex-shrink: 0; }
.marquee span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 60px;
  white-space: nowrap;
}
.marquee span::after {
  content: "✦";
  color: var(--accent);
  font-size: 22px;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* CARD / WHY */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, border-color .4s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.why-card .num {
  font-family: var(--font-display);
  font-size: 120px;
  position: absolute; top: -24px; right: -10px;
  color: var(--bg-3);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
.why-card h3 { font-size: 22px; margin: 40px 0 10px; font-family: var(--font-display); font-weight: 700; }
.why-card p { color: var(--fg-dim); font-size: 15px; margin: 0; }

/* TRACKS */
.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1050px) { .tracks-grid { grid-template-columns: 1fr; } }

.track {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
  min-height: 520px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform .4s ease;
}
.track:hover { transform: translateY(-6px); }
.track .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.track h3 { margin: 16px 0 8px; font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1; }
.track .desc { color: var(--fg-dim); font-size: 15px; margin-bottom: 28px; }
.track ul { list-style: none; padding: 0; margin: 0 0 28px; }
.track ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  display: flex; justify-content: space-between;
  color: var(--fg);
}
.track ul li span:last-child { color: var(--fg-mute); font-family: var(--font-mono); font-size: 12px; }
.track .track-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 18%, var(--bg-3));
  color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  margin-bottom: 20px;
  border: 1px solid var(--line-2);
}
.track .meta {
  margin-top: auto;
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
}
.track .meta span {
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--fg-dim);
  letter-spacing: .05em; text-transform: uppercase;
}
.track.featured { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.track.featured .label, .track.featured ul li, .track.featured ul li span:last-child, .track.featured .desc { color: color-mix(in oklab, var(--accent-ink) 80%, transparent); }
.track.featured ul li { border-bottom-color: color-mix(in oklab, var(--accent-ink) 20%, transparent); color: var(--accent-ink); }
.track.featured .track-icon { background: color-mix(in oklab, var(--accent-ink) 15%, transparent); color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent-ink) 25%, transparent); }
.track.featured .meta span { background: color-mix(in oklab, var(--accent-ink) 15%, transparent); color: var(--accent-ink); }
.track.featured { box-shadow: 0 40px 80px -20px color-mix(in oklab, var(--accent) 40%, transparent); }

/* Tracks — horizontal course cards (homepage + course detail) */
.tracks-scroller {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  margin: 0 -28px;
  padding: 8px 28px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.tracks-scroller-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  max-width: none;
  padding-bottom: 4px;
  box-sizing: border-box;
}
.tracks-scroller-inner > .reveal {
  flex: 0 0 clamp(280px, 72vw, 360px);
  width: clamp(280px, 72vw, 360px);
  max-width: none;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}
.tracks-scroller .track-compact {
  width: 100%;
  min-height: auto;
  padding: 24px 22px 20px;
}
.tracks-scroller .track-compact h3 {
  font-size: clamp(22px, 4vw, 28px);
  margin: 10px 0 6px;
}
.tracks-scroller .track-compact .desc {
  font-size: 14px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tracks-scroller .track-compact .track-icon {
  width: 52px;
  height: 52px;
  font-size: 20px;
  margin-bottom: 12px;
  border-radius: 14px;
}
.tracks-scroller .track-compact ul {
  margin-bottom: 14px;
}
.tracks-scroller .track-compact ul li {
  padding: 8px 0;
  font-size: 12.5px;
}
.tracks-scroller .track-compact .meta span {
  font-size: 10px;
  padding: 4px 8px;
}
.tracks-scroller .track-compact .track-cta {
  margin-top: 10px;
  padding-top: 14px;
}

/* CURRICULUM TIMELINE */
.timeline {
  position: relative;
  display: grid;
  gap: 4px;
}
.tl-week {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding .3s ease;
}
.tl-week:last-child { border-bottom: 1px solid var(--line); }
.tl-week .wk {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.tl-week .wk small { font-size: 13px; color: var(--fg-mute); display: block; margin-top: 6px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.tl-week h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.tl-week .tl-desc { color: var(--fg-dim); font-size: 14.5px; margin: 0 0 12px; max-width: 56ch; }
.tl-week .tl-stack { display: flex; gap: 8px; flex-wrap: wrap; }
.tl-week .tl-stack span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--fg-dim);
  border: 1px solid var(--line);
}
.tl-week .tl-phase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .tl-week { grid-template-columns: 80px 1fr; }
  .tl-week .tl-phase { grid-column: 2; }
  .tl-week .wk { font-size: 32px; }
}

/* PROJECTS — horizontal capstone cards (grid row = equal card heights) */
.projects-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(380px, calc(100vw - 72px));
  align-items: stretch;
  justify-items: stretch;
  gap: 20px;
  width: 100%;
  margin: 0 -28px;
  padding: 4px 28px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.projects-scroller > .reveal.proj {
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.proj {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease;
}
.proj:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.35); }
.proj .thumb {
  aspect-ratio: 4/3;
  position: relative;
  display: grid; place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}
/* Diagonal hatch — only for emoji / gradient thumbs, not live screenshots */
.proj .thumb:not(.thumb--shot)::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.06) 10px 11px);
  pointer-events: none;
  z-index: 1;
}
.proj .thumb.thumb--shot {
  display: block;
  padding: 0;
}
.proj .thumb.thumb--shot::after {
  display: none;
}
.proj-thumb-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}
.proj-thumb-skel {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: color-mix(in oklab, var(--bg-3) 92%, var(--accent));
  animation: proj-skel-pulse 1s ease-in-out infinite;
}
@keyframes proj-skel-pulse {
  50% { opacity: 0.72; }
}
.proj-emoji {
  position: relative;
  z-index: 2;
  font-size: 72px;
  line-height: 1;
}
.proj .info {
  padding: 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.proj .info .tag { flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: var(--fg-mute); text-transform: uppercase; }
.proj .info h4 { flex-shrink: 0; margin: 6px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.proj .info p {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.45;
}
.proj-site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-site-link:hover { text-decoration: underline; }
.proj-fallback-host {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
  line-height: 1.35;
  opacity: 0.9;
}

/* INSTRUCTORS */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .inst-grid { grid-template-columns: 1fr; } }
.inst {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.inst:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.inst .ph {
  aspect-ratio: 1/1;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  color: var(--accent-ink);
  overflow: hidden;
  flex-shrink: 0;
}
.inst .ph.ph-photo {
  padding: 0;
}
.inst .ph.ph-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.inst .body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.inst h4 { font-family: var(--font-display); margin: 0; font-size: 21px; font-weight: 700; line-height: 1.15; }
.inst .role { color: var(--fg); font-size: 14px; font-weight: 600; line-height: 1.3; }
.inst-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.inst-flag {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}
.inst .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.inst .bio {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.inst-li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.inst-li:hover { text-decoration: underline; }

/* CERTIFICATE */
.cert-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .cert-row { grid-template-columns: 1fr; } }
.cert {
  aspect-ratio: 4/3;
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line);
}
.cert.traditional {
  background: linear-gradient(135deg, #fffdf6, #f0e9d5);
  color: #1a1a1a;
  border-color: #d4c89a;
}
.cert.modern {
  background: var(--bg-3);
  color: var(--fg);
}
.cert.badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}
.cert .seal {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px double currentColor;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  text-align: center; line-height: 1;
}
.cert h4 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
  line-height: 1;
  font-weight: 800;
}
.cert .cert-name { font-family: 'Bricolage Grotesque', serif; font-style: italic; font-size: 26px; font-weight: 500; }
.cert .cert-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; opacity: .7; }
.cert .qr {
  width: 56px; height: 56px;
  background-image:
    linear-gradient(90deg, currentColor 50%, transparent 50%),
    linear-gradient(currentColor 50%, transparent 50%);
  background-size: 8px 8px, 8px 8px;
  opacity: .85;
}
.cert .badge-shape {
  width: 120px; height: 130px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: color-mix(in oklab, var(--accent-ink) 20%, transparent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
}

/* CAREER / PARTNERS */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (max-width: 800px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.partner {
  padding: 32px 20px;
  background: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px;
  color: var(--fg-dim);
  transition: color .3s ease, background .3s ease;
}
.partner:hover { color: var(--fg); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
@media (max-width: 800px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 28px; background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.stat .n .u { color: var(--accent); }
.stat .l { color: var(--fg-dim); font-size: 13px; margin-top: 10px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

/* COMMUNITY */
.comm-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 900px) { .comm-wrap { grid-template-columns: 1fr; } }
.comm-left { padding: 48px; }
.comm-right { padding: 48px; background: var(--bg-3); display: grid; gap: 12px; align-content: start; }
.chat-msg {
  background: var(--bg);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 13.5px;
}
.chat-msg .who { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 4px; }
.chat-msg.reply { margin-left: 24px; }

/* TESTIMONIALS */
.ts-grid { columns: 3; column-gap: 20px; }
@media (max-width: 1000px) { .ts-grid { columns: 2; } }
@media (max-width: 600px) { .ts-grid { columns: 1; } }
.ts {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 16px;
}
.ts .quote { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
.ts .who { display: flex; align-items: center; gap: 12px; }
.ts .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--accent-ink); font-size: 14px; }
.ts .who .n { font-weight: 600; font-size: 14px; }
.ts .who .r { color: var(--fg-mute); font-size: 12px; font-family: var(--font-mono); }

/* PRICING */
.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .pricing-row { grid-template-columns: 1fr; } }
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column;
}
.price.featured { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.price.featured .fg-dim, .price.featured .eyebrow { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.price h4 { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; }
.price .p { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.03em; margin: 24px 0 4px; }
.price .per { font-size: 13px; color: var(--fg-mute); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.price ul { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.price ul li { font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.price ul li::before { content: "→"; color: var(--accent); font-weight: bold; }
.price .cta { margin-top: auto; }

/* COHORTS */
.cohorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cohorts { grid-template-columns: 1fr; } }
.cohort {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  position: relative;
}
.cohort .date { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.cohort .date .y { color: var(--accent); }
.cohort .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); letter-spacing: .12em; text-transform: uppercase; margin: 12px 0; }
.cohort .seats {
  width: 100%; height: 6px; background: var(--bg-3); border-radius: 999px; overflow: hidden; margin-top: 8px;
}
.cohort .seats span { display: block; height: 100%; background: var(--accent); }

/* APPLY */
.apply-wrap {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 40px;
  padding: 80px;
  position: relative; overflow: hidden;
}
@media (max-width: 700px) { .apply-wrap { padding: 48px 28px; border-radius: 28px; } }
.apply-wrap h2 { font-family: var(--font-display); font-size: clamp(42px, 6vw, 96px); margin: 0 0 16px; letter-spacing: -0.04em; line-height: .95; font-weight: 800; }
.apply-wrap p { font-size: 18px; max-width: 50ch; }
.apply-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; max-width: 640px; }
.apply-form input, .apply-form select {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--accent-ink) 20%, transparent);
  background: color-mix(in oklab, var(--accent-ink) 8%, transparent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 14px;
}
.apply-form input::placeholder { color: color-mix(in oklab, var(--accent-ink) 55%, transparent); }
.apply-form input:focus, .apply-form select:focus { outline: 2px solid var(--accent-ink); }
.apply-form button {
  grid-column: span 2;
  padding: 20px;
  border-radius: 12px;
  background: var(--accent-ink);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

/* FAQ — grid row animation avoids max-height clipping; rows are plain divs (no per-row reveal) */
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.45s ease;
}
.faq-item.open {
  grid-template-rows: auto 1fr;
}
.faq-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  gap: 16px;
}
.faq-q .plus { flex-shrink: 0; font-size: 28px; font-weight: 300; transition: transform .3s; color: var(--accent); }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: margin-top 0.35s ease;
  color: var(--fg-dim);
  font-size: 15px;
  max-width: 70ch;
}
.faq-item.open .faq-a {
  margin-top: 14px;
}
.faq-a-inner {
  padding-bottom: 2px;
  line-height: 1.55;
}

/* FOOTER */
.footer { background: var(--bg-2); padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-mute); margin: 0 0 20px; }
.footer a { color: var(--fg-dim); font-size: 14px; display: block; padding: 6px 0; }
.footer a:hover { color: var(--accent); }
.footer .news {
  display: flex; max-width: 360px;
  background: var(--bg-3); border-radius: 12px; padding: 4px; border: 1px solid var(--line);
}
.footer .news input { flex: 1; background: none; border: 0; color: var(--fg); padding: 12px 14px; font-family: var(--font-body); font-size: 14px; }
.footer .news input:focus { outline: none; }
.footer .news button { background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.footer-bot { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--line); color: var(--fg-mute); font-size: 13px; font-family: var(--font-mono); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* TWEAKS PANEL */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 320px;
  max-height: 80vh; overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 20px;
  z-index: 200;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  font-size: 13px;
  display: none;
}
.tweaks-panel.show { display: block; }
.tweaks-panel h3 { font-family: var(--font-display); margin: 0 0 16px; font-size: 18px; }
.tweaks-panel .tw-row { margin-bottom: 14px; }
.tweaks-panel label { display: block; color: var(--fg-dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 6px; }
.tweaks-panel .seg { display: flex; gap: 4px; background: var(--bg-3); padding: 4px; border-radius: 10px; }
.tweaks-panel .seg button { flex: 1; padding: 8px; border-radius: 7px; font-size: 12px; color: var(--fg-dim); font-weight: 500; }
.tweaks-panel .seg button.on { background: var(--accent); color: var(--accent-ink); }
.tweaks-panel input[type=range] { width: 100%; accent-color: var(--accent); }
.tweaks-panel .sec-list { display: grid; gap: 6px; max-height: 200px; overflow: auto; padding-right: 6px; }
.tweaks-panel .sec-list label { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 12px; font-family: var(--font-body); text-transform: none; letter-spacing: 0; cursor: pointer; }
.tweaks-panel .sec-list input { accent-color: var(--accent); }

/* misc */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* parallax layer helpers */
.plx { will-change: transform; }

/* ===== Course cards (legacy grid — prefer .tracks-scroller) ===== */
.tracks-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .tracks-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .tracks-grid-4 { grid-template-columns: 1fr; } }

.track .track-cta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.track .track-cta .arrow { color: var(--accent); font-weight: 600; }
.track.featured .track-cta { border-top-color: color-mix(in oklab, var(--accent-ink) 20%, transparent); }
.track.featured .track-cta, .track.featured .track-cta .arrow { color: var(--accent-ink); }

/* ===== Course detail page ===== */
.course-page { padding-top: 120px; }
.course-hero {
  position: relative;
  padding: 40px 0 100px;
  overflow: hidden;
  isolation: isolate;
  min-height: 80vh;
}
.crumbs {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 40px;
}
.crumbs a { color: var(--fg-dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs .current { color: var(--fg); }

.course-hero-grid {
  display: grid; grid-template-columns: 1.3fr .9fr;
  gap: 60px; align-items: center;
}
@media (max-width: 1000px) { .course-hero-grid { grid-template-columns: 1fr; } }

.course-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding-top: 32px; border-top: 1px solid var(--line);
  margin-top: 40px;
}
.course-facts > div { display: flex; flex-direction: column; gap: 6px; }
.course-facts small {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em;
  color: var(--fg-mute); text-transform: uppercase;
}
.course-facts strong { font-size: 15px; color: var(--fg); font-weight: 600; }
@media (max-width: 640px) { .course-facts { grid-template-columns: repeat(2, 1fr); } }

.course-hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 560px;
  margin-left: auto;
}
@media (max-width: 1000px) { .course-hero-visual { margin: 0 auto; height: 480px; max-width: 360px; } }
.course-card-art {
  position: absolute; inset: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: var(--accent-ink);
}
.course-card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,.06) 14px 15px);
  pointer-events: none;
}
.course-icon-xl {
  font-family: var(--font-display); font-weight: 800;
  font-size: 120px; letter-spacing: -.04em; line-height: 1;
  align-self: flex-start;
}
.course-card-pill {
  align-self: flex-start;
  background: rgba(0,0,0,.25);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em;
}

/* section grid for detail */
.course-section-grid {
  display: grid; grid-template-columns: .9fr 1.3fr;
  gap: 60px; align-items: start;
}
@media (max-width: 900px) { .course-section-grid { grid-template-columns: 1fr; } }

.course-outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.course-outcomes li {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 16px; align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 17px; line-height: 1.4;
  color: var(--fg);
}
.course-outcomes li:last-child { border-bottom: 1px solid var(--line); }
.course-outcomes .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; letter-spacing: -.03em; color: var(--accent);
  line-height: 1;
}

.variants-grid { display: grid; gap: 16px; }
.variant {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color .3s ease, transform .3s ease;
}
.variant:hover { border-color: var(--accent); transform: translateY(-2px); }
.variant .eyebrow { color: var(--accent); }
.variant p { color: var(--fg-dim); margin: 0; font-size: 15px; }

/* cert-of-course: detail cert larger */
#cert-of-course .cert { aspect-ratio: auto !important; padding: 36px; }
#cert-of-course .cert h4 { font-size: 32px; }

/* Per-course pricing — forced horizontal row (detail page) */
#pricing-of-course .course-pricing-scroller {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  margin: 0 -28px;
  padding: 8px 28px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
#pricing-of-course .course-pricing-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  max-width: none;
  box-sizing: border-box;
}
#pricing-of-course .course-pricing-inner > .reveal {
  flex: 0 0 clamp(280px, 78vw, 420px);
  width: clamp(280px, 78vw, 420px);
  max-width: none;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.course-price-main .p { font-size: clamp(48px, 6vw, 64px); }

.course-price-students {
  position: relative;
  overflow: visible;
}
.course-price-student-wrap {
  position: relative;
  padding-top: 8px;
  min-height: 100%;
}
.course-student-badge {
  font-size: 12px;
  line-height: 1.15;
  width: 112px;
  height: 112px;
}
.course-price-foot {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-dim);
}
