:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.4);
  --card: #161616;
  --ring: rgba(255, 255, 255, 0.08);
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.125rem; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 999px;
  background: conic-gradient(from 210deg, #E8A87C, #F0C75E, #7CDBD5, #C4A1FF, #E8A87C);
  display: grid; place-items: center;
}
.brand-mark span { width: 12px; height: 12px; border-radius: 999px; background: #0a0a0a; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a, .nav button {
  background: none; border: 0; color: rgba(255,255,255,0.7); font: inherit; font-size: 0.875rem; cursor: pointer;
}
.nav a:hover, .nav button:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 0.55rem 1.1rem; font-size: 0.875rem; font-weight: 500;
  border: 0; cursor: pointer;
}
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: rgba(255,255,255,0.9); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

.explore-wrap { position: relative; }
.explore-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 0; width: 18rem;
  background: #141414; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.explore-wrap.open .explore-menu { display: block; }
.explore-menu a {
  display: block; padding: 0.65rem 0.75rem; border-radius: 0.75rem; color: rgba(255,255,255,0.8); font-size: 0.875rem;
}
.explore-menu a:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 1.5rem; }
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 8%, rgba(255,255,255,0.07), transparent 58%);
}
.hero-spotlight::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(720px, 90vw); height: 70%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02) 45%, transparent 100%);
  clip-path: polygon(32% 0%, 68% 0%, 100% 100%, 0% 100%);
}
.hero-copy { position: relative; text-align: center; max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; line-height: 1.1;
}
.hero p { margin: 1.1rem auto 0; color: var(--muted); font-size: 1.05rem; max-width: 34rem; }

.search {
  margin: 2.25rem auto 0; width: min(36rem, 100%);
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(26,26,26,0.9); border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
}
.search input {
  flex: 1; border: 0; background: transparent; color: #fff; font: inherit; font-size: 0.95rem; outline: none; min-width: 0;
}
.search input::placeholder { color: rgba(255,255,255,0.35); }
.search-results {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: #141414; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; overflow: hidden;
}
.search-results.open { display: block; }
.search-results a {
  display: block; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: left;
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: rgba(255,255,255,0.05); }
.search-results strong { display: block; font-size: 0.875rem; font-weight: 500; }
.search-results span { display: block; margin-top: 2px; font-size: 0.75rem; color: rgba(255,255,255,0.45); }

/* Fan */
.fan {
  position: relative; width: min(64rem, 100%); margin: 2.5rem auto 1.5rem; padding: 1rem 0.5rem 2rem;
  display: flex; align-items: flex-end; justify-content: center;
}
.fan-item {
  width: 18%; min-width: 112px; max-width: 168px; margin: 0 -0.75rem; flex-shrink: 0;
  transition: transform 0.25s ease;
}
.fan-card {
  display: block; overflow: hidden; border-radius: 1rem; background: #1c1c1c;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fan-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 28px 50px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.fan-art { aspect-ratio: 5/4; overflow: hidden; }
.fan-body { min-height: 100px; padding: 0.85rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; }
.fan-body h3 { margin: 0; font-size: 0.75rem; font-weight: 500; }
.fan-body p { margin: 0.25rem 0 0; font-size: 0.68rem; color: rgba(255,255,255,0.45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fan-body span { font-size: 0.68rem; color: rgba(255,255,255,0.55); }

/* Sections */
.section { padding: 3.5rem 0; }
.section.alt { background: #0f0f0f; border-block: 1px solid rgba(255,255,255,0.05); }
.section h2 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.section .lede { margin: 0.5rem 0 0; color: rgba(255,255,255,0.45); font-size: 0.9rem; max-width: 36rem; }

.grid-3 { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: repeat(2, 1fr); }

.track-card, .path-card, .course-card, .cta-panel, .fact-card {
  background: var(--card); border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--ring);
}
.track-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.track-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.track-art { height: 176px; overflow: hidden; }
.track-card .body, .path-card, .course-card .body { padding: 1.25rem; }
.track-card h3, .path-card h3 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.track-card p, .path-card p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.875rem; }
.path-card ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.path-card li { margin-top: 0.4rem; }
.path-card a { font-size: 0.875rem; color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 4px; }
.path-card a:hover { color: #fff; }

.course-card { overflow: hidden; transition: box-shadow 0.2s ease; }
.course-card:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.course-art { height: 160px; overflow: hidden; }
.meta { margin: 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 500; }
.course-card h3 { margin: 0.75rem 0 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
.course-card .desc { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.875rem; }
.course-foot { margin-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.875rem; color: rgba(255,255,255,0.4); }
.course-foot .go { color: rgba(255,255,255,0.7); }

.cta-panel { padding: 3rem 2.5rem; margin-top: 0.5rem; }
.cta-panel h2 { max-width: 28rem; }
.cta-panel p { margin: 1rem 0 0; color: var(--muted); max-width: 36rem; }
.cta-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Course detail */
.detail-hero { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 3rem 0; }
.detail-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.back { font-size: 0.875rem; color: rgba(255,255,255,0.45); }
.back:hover { color: #fff; }
.detail-hero h1 {
  margin: 0.75rem 0 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15;
}
.detail-hero .tagline { margin: 1.1rem 0 0; font-size: 1.125rem; color: rgba(255,255,255,0.6); max-width: 34rem; }
.detail-hero .desc { margin: 1rem 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.45); max-width: 34rem; }
.detail-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.detail-visual { overflow: hidden; border-radius: 1rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); min-height: 280px; }
.detail-visual svg { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

.content-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 280px; padding: 3rem 0; }
.outcomes { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.outcomes li { display: flex; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.dot { width: 6px; height: 6px; border-radius: 999px; margin-top: 0.45rem; flex-shrink: 0; }
.module {
  margin-top: 1rem; padding: 1.25rem; border-radius: 1rem; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.module .label { margin: 0; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.module h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 500; }
.module ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.aside { position: sticky; top: 96px; display: grid; gap: 1rem; align-self: start; }
.fact-card { padding: 1.25rem; }
.fact-card .label { margin: 0; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.fact-card dl { margin: 1rem 0 0; }
.fact-card div { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.65rem; font-size: 0.875rem; }
.fact-card dt { color: rgba(255,255,255,0.45); }
.fact-card dd { margin: 0; text-align: right; }
.fact-card p { margin: 0.75rem 0 0; font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tags span { border-radius: 999px; background: rgba(255,255,255,0.05); padding: 0.25rem 0.65rem; font-size: 0.75rem; color: rgba(255,255,255,0.7); }

.related { background: #0f0f0f; border-top: 1px solid rgba(255,255,255,0.05); padding: 3.5rem 0; }
.related-grid { display: grid; gap: 1rem; margin-top: 1.75rem; grid-template-columns: repeat(3, 1fr); }
.related a { display: block; padding: 1.25rem; border-radius: 1rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring); }
.related a:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.related .meta { margin-bottom: 0.4rem; }
.related strong { display: block; font-weight: 500; }
.related p { margin: 0.5rem 0 0; font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid {
  display: grid; gap: 2.5rem; padding: 3.5rem 0; grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
.site-footer h4 { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.site-footer p, .site-footer li { color: rgba(255,255,255,0.55); font-size: 0.875rem; }
.site-footer .tiny { color: rgba(255,255,255,0.35); font-size: 0.75rem; }
.site-footer .label { margin: 0; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 500; }
.site-footer ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.site-footer li { margin-top: 0.45rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.1rem 0; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.3);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .grid-3, .grid-2, .related-grid, .detail-grid, .content-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .aside { position: static; }
  .fan { overflow-x: auto; justify-content: flex-start; padding-inline: 1rem; -webkit-overflow-scrolling: touch; }
  .fan-item { margin: 0 -0.4rem; }
}
