:root {
  --bg: #f3eee6;
  --paper: rgba(255, 251, 245, 0.85);
  --ink: #171513;
  --muted: #5c5854;
  --line: rgba(23, 21, 19, 0.12);
  --deep-line: rgba(23, 21, 19, 0.22);
  --red: #b3463a;
  --red-deep: #8d3027;
  --blue: #28546b;
  --blue-soft: #dbeaf0;
  --olive: #596043;
  --shadow: 0 10px 30px rgba(26, 20, 17, 0.08);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-sm: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111519;
  --paper: rgba(21, 26, 31, 0.9);
  --ink: #edf2f5;
  --muted: #b4bec7;
  --line: rgba(237, 242, 245, 0.12);
  --deep-line: rgba(237, 242, 245, 0.22);
  --red: #d9685a;
  --red-deep: #f0a59b;
  --blue: #8bbfda;
  --blue-soft: #172731;
  --olive: #a8b68f;
  --shadow: 0 14px 34px rgba(2, 4, 6, 0.38);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(204, 94, 70, 0.14), transparent 65%),
    radial-gradient(900px 600px at 100% 0%, rgba(64, 118, 145, 0.14), transparent 60%),
    var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, #000 50%, transparent 100%);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-a {
  width: 260px;
  height: 260px;
  top: 90px;
  right: -80px;
  background: rgba(179, 70, 58, 0.45);
}

.orb-b {
  width: 320px;
  height: 320px;
  bottom: 120px;
  left: -120px;
  background: rgba(40, 84, 107, 0.28);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(var(--max), 95vw);
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.82);
  box-shadow: 0 10px 22px rgba(20, 15, 11, 0.06);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 0.78rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

.brand-text {
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.top-nav a:hover {
  background: rgba(23, 21, 19, 0.05);
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  padding: 7px 10px;
  min-height: 38px;
  cursor: pointer;
  font: 500 0.8rem/1 "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.62);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(40, 84, 107, 0.35);
  outline-offset: 2px;
}

.theme-toggle-label {
  color: var(--muted);
}

.theme-toggle-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.07);
  color: var(--ink);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.38);
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lang-switcher a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

.lang-switcher a[aria-current="page"] {
  color: var(--ink);
  background: rgba(23, 21, 19, 0.08);
}

.course-banner {
  width: min(var(--max), 95vw);
  margin: 16px auto 0;
}

.course-banner-inner {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(40, 84, 107, 0.08), transparent 75%),
    radial-gradient(420px 180px at 0% 100%, rgba(179, 70, 58, 0.08), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 251, 245, 0.78));
  box-shadow: 0 8px 20px rgba(20, 15, 11, 0.05);
  padding: 26px 28px;
}

.course-framework {
  margin: 0 0 6px;
  color: var(--red-deep);
  font: 500 0.8rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.course-title {
  margin: 0;
  max-width: none;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.45rem, 5.6vw, 4.95rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.course-context {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page {
  width: min(var(--max), 95vw);
  margin: 18px auto 40px;
  display: grid;
  gap: 18px;
}

.hero,
.panel,
.cta-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), var(--paper));
  box-shadow: var(--shadow);
}

.hero {
  padding: 34px;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 20px 18px auto;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  transform: rotate(8deg);
  border: 1px solid rgba(23, 21, 19, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.25)),
    repeating-linear-gradient(
      0deg,
      rgba(23, 21, 19, 0.04),
      rgba(23, 21, 19, 0.04) 1px,
      transparent 1px,
      transparent 10px
    );
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-deep);
  font: 500 0.82rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}

h1 {
  max-width: 16ch;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.hero-title {
  max-width: 16ch;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.lede {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 21, 19, 0.12);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(23, 21, 19, 0.14);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}

.meta-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.meta-pill {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.52);
}

.meta-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.meta-value {
  color: var(--ink);
  font: 500 0.86rem/1.25 "IBM Plex Mono", monospace;
}

.panel {
  padding: 24px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.split h2 {
  margin-bottom: 10px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head p:last-child {
  max-width: 70ch;
}

.list-card,
.method-card,
.proof-card,
.build-card,
.day-card,
.price-card,
.admission-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.list-card {
  padding: 18px;
}

.list-card h3,
.list-card h2 {
  margin-bottom: 10px;
}

.list-card.warn {
  border-color: rgba(179, 70, 58, 0.2);
  background: linear-gradient(180deg, rgba(255, 245, 243, 0.8), rgba(255, 255, 255, 0.55));
}

ul,
ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

li {
  margin: 6px 0;
  line-height: 1.4;
}

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

.method-card {
  padding: 18px;
}

.method-card h3 {
  margin-bottom: 8px;
}

.micro {
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.9rem;
}

.diagram-shell {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(23, 21, 19, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(248, 244, 237, 0.8)),
    repeating-linear-gradient(
      90deg,
      rgba(23, 21, 19, 0.025),
      rgba(23, 21, 19, 0.025) 1px,
      transparent 1px,
      transparent 24px
    );
}

.diagram-node {
  width: min(100%, 520px);
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-weight: 600;
}

.diagram-node span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 400 0.78rem/1.3 "IBM Plex Mono", monospace;
}

.diagram-node-human {
  border-width: 2px;
  border-color: rgba(179, 70, 58, 0.45);
  background: linear-gradient(180deg, rgba(255, 245, 243, 0.9), rgba(255, 255, 255, 0.8));
  box-shadow: 0 0 0 3px rgba(179, 70, 58, 0.08);
}

.diagram-arrow {
  color: var(--muted);
  font: 500 1.15rem/1 "IBM Plex Mono", monospace;
}

.proof-grid,
.build-grid,
.modules-grid,
.pricing-grid,
.admission-grid {
  display: grid;
  gap: 14px;
}

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

.proof-card {
  padding: 18px;
}

.proof-label {
  color: var(--red-deep);
  font: 500 0.76rem/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof-card h3 {
  margin-top: 8px;
}

.proof-card p {
  margin-top: 8px;
}

.proof-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 84, 107, 0.35);
}

.proof-card a:hover {
  border-bottom-color: rgba(40, 84, 107, 0.8);
}

.proof-note {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 500;
}

.build-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.module-series {
  margin: -2px 0 12px;
  color: var(--blue);
  font: 500 0.8rem/1.25 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.module-card {
  position: relative;
  padding: 16px;
  border-left: 10px solid transparent;
}

.module-card h3 {
  margin-top: 6px;
  font-size: 1.03rem;
  line-height: 1.2;
}

.module-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.module-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-audience {
  margin-top: 10px;
  color: var(--muted);
  font: 400 0.78rem/1.35 "IBM Plex Mono", monospace;
}

.modules-footnote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.module-spec {
  border-left-color: rgba(40, 84, 107, 0.28);
  background: linear-gradient(180deg, rgba(40, 84, 107, 0.045), rgba(255, 255, 255, 0.55));
}

.module-execution {
  border-left-color: rgba(179, 70, 58, 0.28);
  background: linear-gradient(180deg, rgba(179, 70, 58, 0.04), rgba(255, 255, 255, 0.55));
}

.module-repo {
  border-left-color: rgba(89, 96, 67, 0.28);
  background: linear-gradient(180deg, rgba(89, 96, 67, 0.045), rgba(255, 255, 255, 0.55));
}

.module-assets {
  border-left-color: rgba(104, 78, 135, 0.22);
  background: linear-gradient(180deg, rgba(104, 78, 135, 0.035), rgba(255, 255, 255, 0.55));
}

.module-funding {
  border-left-color: rgba(166, 127, 39, 0.26);
  background: linear-gradient(180deg, rgba(166, 127, 39, 0.04), rgba(255, 255, 255, 0.55));
}

.build-card {
  padding: 18px;
}

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

.day-card {
  border-width: 3px;
  padding: 16px;
}

/* Day cards mirror the module palette to make the flagship->module relationship visible. */
.days-grid .day-card:nth-child(1) {
  border-color: rgba(40, 84, 107, 0.3);
}

.days-grid .day-card:nth-child(2) {
  border-color: rgba(179, 70, 58, 0.3);
}

.days-grid .day-card:nth-child(3) {
  border-color: rgba(89, 96, 67, 0.3);
}

.days-grid .day-card:nth-child(4) {
  border-color: rgba(104, 78, 135, 0.26);
}

.days-grid .day-card:nth-child(5) {
  border-color: rgba(166, 127, 39, 0.28);
}

.day-card h3 {
  margin: 6px 0 8px;
}

.day-kicker {
  color: var(--blue);
  font: 500 0.8rem/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.output {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 500;
}

.cohort-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cohort-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-size: 0.86rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.price-card {
  padding: 18px;
}

.price-card h3 {
  margin-top: 8px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
}

.price-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.price-sub {
  margin-top: 8px;
  font: 400 0.8rem/1.4 "IBM Plex Mono", monospace;
  color: var(--muted);
}

.price-card.featured {
  border-color: rgba(179, 70, 58, 0.35);
  background: linear-gradient(180deg, rgba(179, 70, 58, 0.08), rgba(255, 255, 255, 0.7));
}

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

.admission-card {
  padding: 16px;
}

.admission-card h3 {
  margin-bottom: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0 14px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-list details p {
  padding: 12px 0 14px;
}

.cta-panel {
  padding: 26px;
  border-color: rgba(40, 84, 107, 0.2);
  background:
    radial-gradient(550px 260px at 90% 0%, rgba(40, 84, 107, 0.08), transparent 70%),
    radial-gradient(500px 240px at 0% 100%, rgba(179, 70, 58, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), var(--paper));
}

.cta-panel h2 {
  margin-bottom: 10px;
}

.tiny-note {
  margin-top: 12px;
  color: var(--muted);
  font: 400 0.78rem/1.35 "IBM Plex Mono", monospace;
}

.site-footer {
  width: min(var(--max), 95vw);
  margin: 0 auto 34px;
  padding: 10px 2px;
}

.site-footer p {
  font-size: 0.85rem;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-state {
  background: rgba(179, 70, 58, 0.12);
  color: var(--red-deep);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-label {
  color: var(--ink);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(217, 104, 90, 0.18), transparent 65%),
    radial-gradient(900px 600px at 100% 0%, rgba(139, 191, 218, 0.14), transparent 60%),
    var(--bg);
}

html[data-theme="dark"] .grain {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 18, 22, 0.78);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .course-banner-inner {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(139, 191, 218, 0.08), transparent 75%),
    radial-gradient(420px 180px at 0% 100%, rgba(217, 104, 90, 0.08), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.03));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .brand-mark {
  background: var(--red);
  color: #fff;
}

html[data-theme="dark"] .top-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .theme-toggle-state {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .lang-switcher {
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .lang-switcher a:hover {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .lang-switcher a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .panel {
  background: linear-gradient(180deg, rgba(28, 34, 40, 0.9), var(--paper));
}

html[data-theme="dark"] .cta-panel {
  background:
    radial-gradient(550px 260px at 90% 0%, rgba(139, 191, 218, 0.09), transparent 70%),
    radial-gradient(500px 240px at 0% 100%, rgba(217, 104, 90, 0.11), transparent 70%),
    linear-gradient(180deg, rgba(27, 33, 38, 0.95), var(--paper));
}

html[data-theme="dark"] .hero::after {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 10px
    );
}

html[data-theme="dark"] .btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .meta-pill,
html[data-theme="dark"] .list-card,
html[data-theme="dark"] .method-card,
html[data-theme="dark"] .proof-card,
html[data-theme="dark"] .build-card,
html[data-theme="dark"] .day-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .admission-card,
html[data-theme="dark"] .faq-list details {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .list-card.warn {
  border-color: rgba(217, 104, 90, 0.22);
  background: linear-gradient(180deg, rgba(217, 104, 90, 0.06), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .diagram-shell {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 24px
    );
}

html[data-theme="dark"] .diagram-node {
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .diagram-node-human {
  border-color: rgba(217, 104, 90, 0.48);
  background: linear-gradient(180deg, rgba(217, 104, 90, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 0 0 3px rgba(217, 104, 90, 0.08);
}

html[data-theme="dark"] .module-series {
  color: var(--blue);
}

html[data-theme="dark"] .module-id {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .module-spec {
  border-left-color: rgba(139, 191, 218, 0.34);
  background: linear-gradient(180deg, rgba(139, 191, 218, 0.045), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .module-execution {
  border-left-color: rgba(217, 104, 90, 0.34);
  background: linear-gradient(180deg, rgba(217, 104, 90, 0.05), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .module-repo {
  border-left-color: rgba(168, 182, 143, 0.3);
  background: linear-gradient(180deg, rgba(168, 182, 143, 0.04), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .module-assets {
  border-left-color: rgba(182, 154, 221, 0.28);
  background: linear-gradient(180deg, rgba(182, 154, 221, 0.035), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .module-funding {
  border-left-color: rgba(216, 187, 109, 0.3);
  background: linear-gradient(180deg, rgba(216, 187, 109, 0.04), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .days-grid .day-card:nth-child(1) {
  border-color: rgba(139, 191, 218, 0.34);
}

html[data-theme="dark"] .days-grid .day-card:nth-child(2) {
  border-color: rgba(217, 104, 90, 0.34);
}

html[data-theme="dark"] .days-grid .day-card:nth-child(3) {
  border-color: rgba(168, 182, 143, 0.3);
}

html[data-theme="dark"] .days-grid .day-card:nth-child(4) {
  border-color: rgba(182, 154, 221, 0.28);
}

html[data-theme="dark"] .days-grid .day-card:nth-child(5) {
  border-color: rgba(216, 187, 109, 0.3);
}

html[data-theme="dark"] .cohort-meta span {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .price-card.featured {
  border-color: rgba(217, 104, 90, 0.3);
  background: linear-gradient(180deg, rgba(217, 104, 90, 0.07), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .faq-list details[open] summary {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.reveal {
  animation: reveal-up 540ms ease both;
}

.page > .reveal:nth-child(2) {
  animation-delay: 40ms;
}

.page > .reveal:nth-child(3) {
  animation-delay: 70ms;
}

.page > .reveal:nth-child(4) {
  animation-delay: 100ms;
}

.page > .reveal:nth-child(5) {
  animation-delay: 130ms;
}

.page > .reveal:nth-child(6) {
  animation-delay: 160ms;
}

.page > .reveal:nth-child(7) {
  animation-delay: 190ms;
}

.page > .reveal:nth-child(8) {
  animation-delay: 220ms;
}

.page > .reveal:nth-child(9) {
  animation-delay: 250ms;
}

.page > .reveal:nth-child(10) {
  animation-delay: 280ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .site-header {
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-text {
    white-space: normal;
  }

  .top-nav {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-toggle {
    align-self: flex-start;
  }

  .lang-switcher {
    align-self: flex-start;
  }

  .meta-grid,
  .split,
  .method-grid,
  .proof-grid,
  .build-grid,
  .modules-grid,
  .days-grid,
  .pricing-grid,
  .admission-grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    display: none;
  }

  .course-banner {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(var(--max), 96vw);
    gap: 14px;
  }

  .hero {
    padding: 22px;
  }

  .panel,
  .cta-panel {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }
}

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

  .reveal {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

/* Phase 1 identity pass: HITM should read as the flagship program (operational, cohort-based). */
.site-header {
  border-color: rgba(40, 84, 107, 0.18);
  background:
    linear-gradient(90deg, rgba(40, 84, 107, 0.08), rgba(40, 84, 107, 0) 36%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 251, 245, 0.8));
  box-shadow: 0 12px 26px rgba(20, 15, 11, 0.08);
}

.brand-mark {
  min-width: 58px;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(40, 84, 107, 0.98), rgba(23, 21, 19, 0.98));
}

.brand-text {
  color: var(--ink);
  font: 500 0.76rem/1.15 "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-banner-inner {
  position: relative;
  border-color: rgba(40, 84, 107, 0.18);
  box-shadow:
    0 10px 24px rgba(20, 15, 11, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background:
    repeating-linear-gradient(90deg, rgba(40, 84, 107, 0.02), rgba(40, 84, 107, 0.02) 1px, transparent 1px, transparent 22px),
    radial-gradient(420px 180px at 100% 0%, rgba(40, 84, 107, 0.12), transparent 75%),
    radial-gradient(420px 180px at 0% 100%, rgba(179, 70, 58, 0.1), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 251, 245, 0.84));
}

.course-banner-inner::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(40, 84, 107, 0.8), rgba(179, 70, 58, 0.55));
  opacity: 0.75;
}

.course-framework {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 8px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(40, 84, 107, 0.16);
  background: rgba(40, 84, 107, 0.05);
  color: var(--blue);
}

.course-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 70, 58, 0.18);
  background: rgba(179, 70, 58, 0.05);
  color: var(--red-deep);
  font: 500 0.76rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.course-title {
  text-wrap: balance;
}

.course-context {
  max-width: 72ch;
  line-height: 1.5;
}

.hero {
  border-color: rgba(40, 84, 107, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 251, 245, 0.94)),
    linear-gradient(90deg, rgba(40, 84, 107, 0.035), rgba(40, 84, 107, 0) 24%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-linear-gradient(90deg, rgba(40, 84, 107, 0.07), rgba(40, 84, 107, 0.07) 1px, transparent 1px, transparent 28px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 45%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18));
}

.hero::after {
  width: 176px;
  height: 176px;
  border-color: rgba(40, 84, 107, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(
      0deg,
      rgba(23, 21, 19, 0.03),
      rgba(23, 21, 19, 0.03) 1px,
      transparent 1px,
      transparent 8px
    );
}

.hero-title {
  max-width: 14ch;
  line-height: 0.98;
}

.hero-actions {
  margin-top: 22px;
}

.btn-primary {
  border-color: rgba(141, 48, 39, 0.2);
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 22px rgba(141, 48, 39, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 26px rgba(141, 48, 39, 0.28);
}

.meta-pill {
  border-color: rgba(40, 84, 107, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.meta-label {
  font: 500 0.72rem/1.25 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.84rem;
}

.panel {
  border-color: rgba(23, 21, 19, 0.14);
}

.days-grid .day-card {
  border-width: 2px 2px 4px;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.day-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(40, 84, 107, 0.14);
  background: rgba(40, 84, 107, 0.05);
}

.cta-panel {
  border-width: 2px;
  border-color: rgba(179, 70, 58, 0.24);
  box-shadow:
    0 14px 30px rgba(26, 20, 17, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background:
    repeating-linear-gradient(90deg, rgba(179, 70, 58, 0.02), rgba(179, 70, 58, 0.02) 1px, transparent 1px, transparent 26px),
    radial-gradient(560px 250px at 92% 0%, rgba(40, 84, 107, 0.1), transparent 72%),
    radial-gradient(460px 220px at 0% 100%, rgba(179, 70, 58, 0.11), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), var(--paper));
}

.cta-panel h2 {
  text-wrap: balance;
}

.tiny-note {
  padding: 10px 12px;
  border: 1px dashed rgba(23, 21, 19, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .site-header {
  border-color: rgba(139, 191, 218, 0.2);
  background:
    linear-gradient(90deg, rgba(139, 191, 218, 0.08), rgba(139, 191, 218, 0) 38%),
    rgba(15, 18, 22, 0.84);
}

html[data-theme="dark"] .brand-mark {
  background: linear-gradient(135deg, rgba(139, 191, 218, 0.92), rgba(75, 112, 131, 0.95));
  color: #0f1418;
}

html[data-theme="dark"] .brand-text {
  color: var(--ink);
}

html[data-theme="dark"] .course-banner-inner {
  border-color: rgba(139, 191, 218, 0.2);
  background:
    repeating-linear-gradient(90deg, rgba(139, 191, 218, 0.03), rgba(139, 191, 218, 0.03) 1px, transparent 1px, transparent 22px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.035));
}

html[data-theme="dark"] .course-framework {
  border-color: rgba(139, 191, 218, 0.2);
  background: rgba(139, 191, 218, 0.06);
}

html[data-theme="dark"] .course-badge {
  border-color: rgba(217, 104, 90, 0.22);
  background: rgba(217, 104, 90, 0.06);
  color: var(--red-deep);
}

html[data-theme="dark"] .hero {
  border-color: rgba(139, 191, 218, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 26, 31, 0.95), var(--paper)),
    linear-gradient(90deg, rgba(139, 191, 218, 0.05), rgba(139, 191, 218, 0) 24%);
}

html[data-theme="dark"] .hero::before {
  opacity: 0.22;
}

html[data-theme="dark"] .hero::after {
  border-color: rgba(139, 191, 218, 0.18);
}

html[data-theme="dark"] .btn-primary {
  border-color: rgba(240, 165, 155, 0.18);
  background: linear-gradient(180deg, #cf6255, #b34a3f);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .meta-pill {
  border-color: rgba(139, 191, 218, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .days-grid .day-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .day-kicker {
  border-color: rgba(139, 191, 218, 0.18);
  background: rgba(139, 191, 218, 0.06);
}

html[data-theme="dark"] .cta-panel {
  border-color: rgba(217, 104, 90, 0.24);
  background:
    repeating-linear-gradient(90deg, rgba(217, 104, 90, 0.025), rgba(217, 104, 90, 0.025) 1px, transparent 1px, transparent 26px),
    linear-gradient(180deg, rgba(22, 26, 31, 0.96), var(--paper));
}

html[data-theme="dark"] .tiny-note {
  border-color: rgba(237, 242, 245, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 960px) {
  .brand-text {
    font-size: 0.72rem;
  }

  .course-banner-inner::before {
    inset: 12px auto 12px 12px;
  }

  .course-framework,
  .course-badge {
    max-width: 100%;
  }

  .hero::before {
    opacity: 0.18;
  }
}
