:root {
  --bg: #08131c;
  --bg-soft: #0e1b27;
  --bg-elevated: rgba(13, 24, 35, 0.82);
  --panel: rgba(242, 247, 255, 0.05);
  --panel-strong: rgba(242, 247, 255, 0.08);
  --surface-light: #edf4ff;
  --text: #f3f8ff;
  --text-muted: #adbbce;
  --text-subtle: #7b92b0;
  --text-dark: #13212f;
  --line: rgba(243, 248, 255, 0.1);
  --line-strong: rgba(243, 248, 255, 0.18);
  --accent: #7fa7ff;
  --accent-soft: rgba(127, 167, 255, 0.16);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127, 167, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(79, 122, 214, 0.16), transparent 24%),
    linear-gradient(180deg, #06101a 0%, #0a1730 44%, #091423 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 78px,
      rgba(255, 255, 255, 0.018) 78px,
      rgba(255, 255, 255, 0.018) 79px
    );
  pointer-events: none;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

.page-shell,
.course-layout {
  position: relative;
  z-index: 1;
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.landing-body {
  color-scheme: dark;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 19, 28, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(127, 167, 255, 0.12);
  flex: 0 0 auto;
}

.brand-lockup {
  display: grid;
  gap: 4px;
}

.brand-overline,
.eyebrow,
.section-label,
.sidebar-label,
.meta-label,
.course-kicker,
.info-tag,
.chapter-tag {
  margin: 0;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
}

.brand-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.top-nav a,
.sidebar-link,
.subchapter-link {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.sidebar-link:hover,
.sidebar-link:focus-visible,
.subchapter-link:hover,
.subchapter-link:focus-visible {
  color: var(--text);
}

.nav-button,
.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-button,
.secondary-button,
.ghost-button {
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.primary-button {
  padding: 12px 20px;
  border: 1px solid rgba(216, 179, 106, 0.36);
  background: linear-gradient(180deg, #f5f9ff 0%, #c9dbff 100%);
  color: #0b1a31;
  font-weight: 600;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.nav-button:hover,
.text-link:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.nav-button:focus-visible,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.nav-button:focus-visible,
.top-nav a:focus-visible,
.sidebar-link:focus-visible,
.chapter-link:focus-visible,
.subchapter-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.nav-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.page-main {
  display: grid;
  gap: 28px;
}

.hero-editorial,
.story-grid-section,
.definition-section,
.method-section,
.course-section,
.quote-section,
.course-topbar,
.spotlight-card,
.progress-card,
.content-card,
.materials-card,
.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(14, 27, 39, 0.88), rgba(8, 19, 28, 0.9));
  box-shadow: var(--shadow);
}

.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding: 44px;
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1,
.section-heading,
.story-card-featured h2,
.definition-main h2,
.method-callout h2,
.course-card h3,
.course-topbar h1,
.spotlight-overlay h2,
.content-card h2,
.progress-card h2,
.materials-card h2,
.quote-panel blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 7vw, 6.3rem);
  line-height: 0.9;
  text-wrap: balance;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #dde4ea;
  font-size: 1.15rem;
  line-height: 1.85;
}

.hero-detail {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.hero-note::before {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(127, 167, 255, 0.5);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-frame {
  position: relative;
  min-height: 100%;
  padding: 32px;
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    linear-gradient(180deg, rgba(3, 7, 12, 0.55), rgba(3, 7, 12, 0.2)),
    radial-gradient(circle at 70% 30%, rgba(127, 167, 255, 0.18), transparent 20%),
    linear-gradient(160deg, #0b1830 0%, #15284a 100%);
  overflow: hidden;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 241, 232, 0.12);
  border-radius: calc(var(--radius-xl) - 14px);
  pointer-events: none;
}

.hero-frame-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  min-height: 100%;
}

.hero-frame-kicker {
  color: rgba(243, 248, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.hero-frame-card {
  max-width: 26rem;
  margin-top: auto;
  padding: 24px;
  border: 1px solid rgba(243, 248, 255, 0.12);
  border-radius: 22px;
  background: rgba(6, 12, 18, 0.46);
  backdrop-filter: blur(10px);
}

.hero-frame-card h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.hero-frame-card p {
  margin: 0;
  color: #dce8ff;
  line-height: 1.75;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-stats div {
  padding: 16px 0 0;
  border-top: 1px solid rgba(243, 248, 255, 0.12);
}

.hero-mini-stats dt {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-mini-stats dd {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.story-grid-section,
.definition-section,
.method-section,
.course-section,
.quote-section {
  padding: 34px;
}

.section-heading {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  text-wrap: balance;
}

.section-intro,
.section-text,
.section-intro p,
.definition-main p,
.method-callout p,
.quote-panel cite,
.story-card p,
.course-card p,
.chapter-description,
.course-summary,
.materials-item p,
.sidebar-note p,
.spotlight-overlay p:last-child {
  color: var(--text-muted);
  line-height: 1.8;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-header p {
  max-width: 600px;
  margin: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.85fr;
  gap: 18px;
}

.story-card,
.course-card,
.definition-card,
.method-card,
.quote-panel,
.materials-item,
.subsection-card,
.sidebar-note,
.spotlight-meta > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.story-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 24px;
}

.story-card-featured {
  background:
    linear-gradient(180deg, rgba(4, 9, 14, 0.55), rgba(4, 9, 14, 0.1)),
    radial-gradient(circle at 85% 20%, rgba(127, 167, 255, 0.22), transparent 22%),
    linear-gradient(155deg, #0f1b34 0%, #0a1527 70%, #13203c 100%);
}

.story-card-featured h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.94;
}

.story-card h3,
.definition-card h3,
.method-card h3,
.materials-item h3,
.subsection-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.4;
}

.story-card p,
.course-card p,
.definition-card p,
.method-card p,
.materials-item p,
.subsection-card p {
  margin: 0;
}

.story-card footer,
.course-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--text-subtle);
  font-size: 0.92rem;
}

.text-link {
  justify-content: flex-start;
  padding: 0;
  color: #d5e5ff;
  font-weight: 600;
}

.text-link::after {
  content: "→";
}

.definition-layout,
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
}

.definition-main,
.method-callout {
  padding-right: 10px;
}

.definition-main p,
.method-callout p {
  max-width: 62ch;
}

.definition-side,
.method-grid {
  display: grid;
  gap: 16px;
}

.definition-card,
.method-card {
  padding: 22px;
}

.course-section .section-header {
  margin-bottom: 22px;
}

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

.course-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.course-card h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.course-card .primary-button {
  justify-self: start;
}

.quote-panel {
  display: grid;
  gap: 18px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(237, 244, 255, 0.97), rgba(225, 236, 255, 0.96));
  color: var(--text-dark);
}

.quote-panel blockquote {
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 0.98;
}

.quote-panel blockquote,
.quote-panel p,
.quote-panel cite {
  margin: 0;
}

.quote-panel cite {
  color: #5b6977;
  font-style: normal;
}

.course-body {
  padding: 24px;
  color-scheme: dark;
}

.course-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.course-layout-single {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar,
.course-main {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 24px;
  padding: 26px 22px;
  background:
    linear-gradient(180deg, rgba(14, 24, 34, 0.94), rgba(8, 18, 27, 0.94));
}

.sidebar-block {
  display: grid;
  gap: 12px;
}

.sidebar-link,
.chapter-link {
  display: block;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-muted);
  text-align: left;
}

.sidebar-link.is-active,
.chapter-link.is-active {
  border-color: rgba(216, 179, 106, 0.25);
  background: linear-gradient(180deg, rgba(127, 167, 255, 0.16), rgba(127, 167, 255, 0.06));
  color: var(--text);
}

.sidebar-heading-row,
.progress-header,
.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.sidebar-count,
.breadcrumbs {
  color: var(--text-subtle);
  font-size: 0.84rem;
}

.chapter-menu,
.chapter-group,
.subchapter-list,
.progress-list,
.materials-list,
.subsection-list,
.course-main {
  display: grid;
}

.chapter-menu,
.chapter-group,
.materials-list,
.subsection-list,
.course-main {
  gap: 14px;
}

.subchapter-list {
  gap: 8px;
  margin: -4px 0 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(127, 167, 255, 0.22);
}

.subchapter-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-subtle);
  text-align: left;
}

.subchapter-link:hover,
.subchapter-link:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-note {
  padding: 18px;
}

.sidebar-note code {
  font-family: inherit;
  color: var(--text);
}

.course-topbar,
.spotlight-card,
.progress-card,
.content-card,
.materials-card {
  background:
    linear-gradient(180deg, rgba(14, 26, 37, 0.92), rgba(8, 19, 28, 0.94));
}

.course-topbar,
.content-card,
.progress-card,
.materials-card {
  padding: 28px 30px;
}

.course-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.breadcrumbs {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.course-topbar h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.92;
}

.course-summary {
  max-width: 58ch;
  margin: 14px 0 0;
}

.course-grid,
.content-grid,
.content-grid-wide {
  display: grid;
  gap: 24px;
}

.course-grid,
.content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
}

.content-grid-wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.spotlight-card {
  overflow: hidden;
}

.spotlight-visual {
  min-height: 350px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.2), rgba(5, 8, 12, 0.65)),
    radial-gradient(circle at 78% 24%, rgba(127, 167, 255, 0.22), transparent 18%),
    linear-gradient(160deg, #13264b 0%, #0d1830 60%, #102241 100%);
  display: flex;
  align-items: end;
}

.spotlight-overlay {
  max-width: 560px;
}

.spotlight-overlay h2 {
  font-size: clamp(2.6rem, 4vw, 4.1rem);
  line-height: 0.93;
}

.spotlight-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.spotlight-meta > div {
  padding: 18px 20px;
  background: rgba(8, 19, 28, 0.96);
}

.progress-header {
  margin-bottom: 16px;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b6d0ff 0%, #6f97f4 100%);
}

.progress-list {
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
}

.progress-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.progress-marker {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  flex: 0 0 auto;
}

.progress-marker.is-complete {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(127, 167, 255, 0.14);
}

.content-card-header {
  margin-bottom: 10px;
}

.subsection-card,
.materials-item {
  padding: 20px;
}

.subsection-card {
  scroll-margin-top: 110px;
}

.subsection-tag {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #d4e4ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.landing-shell {
  display: grid;
  gap: 28px;
}

.hero-badges,
.interactive-tabs,
.interactive-points,
.course-card-list,
.signal-mini-grid {
  display: grid;
}

.hero-badges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-badge {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-badge strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-badge span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.signal-board {
  display: grid;
  gap: 16px;
}

.signal-card-large {
  min-height: 240px;
}

.signal-card-large h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.signal-card-large p {
  margin: 0;
  color: #dce8ff;
  line-height: 1.7;
}

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

.signal-mini {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.signal-mini strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.signal-mini span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.interactive-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
}

.interactive-tabs {
  gap: 12px;
}

.interactive-tab {
  width: 100%;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  color: var(--text-muted);
}

.interactive-tab strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text);
}

.interactive-tab span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
}

.interactive-tab.is-active {
  border-color: rgba(127, 167, 255, 0.4);
  background: linear-gradient(180deg, rgba(127, 167, 255, 0.16), rgba(127, 167, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.interactive-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(127, 167, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(20, 36, 67, 0.85), rgba(9, 20, 35, 0.92));
}

.interactive-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.interactive-panel-header h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
}

.interactive-kicker {
  color: #d7e5ff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.interactive-summary {
  margin: 0 0 22px;
  color: #dde8f8;
  line-height: 1.8;
}

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

.interactive-point {
  padding: 18px;
  border: 1px solid rgba(243, 248, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.interactive-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.interactive-point span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.course-card-list {
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.65;
}

.course-card-list li::marker {
  color: var(--accent);
}

.is-collapsed .subsection-card:not(:first-child) {
  display: none;
}

.mobile-only {
  display: none;
}

.text-link::after {
  content: "->";
}

.foresight-main {
  display: grid;
  gap: 28px;
}

.foresight-hero,
.foresight-workspace,
.foresight-results {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(12, 24, 43, 0.9), rgba(8, 18, 34, 0.94));
  box-shadow: var(--shadow);
}

.foresight-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  padding: 36px;
}

.foresight-hero-copy {
  max-width: 700px;
}

.foresight-hero-copy h1,
.foresight-canvas-header h2,
.foresight-results h2,
.result-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.02em;
}

.foresight-hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
}

.foresight-hero-copy p,
.foresight-api-copy p,
.foresight-group p,
.foresight-canvas-note,
.foresight-status,
.result-card p,
.result-card li {
  color: var(--text-muted);
  line-height: 1.75;
}

.foresight-api-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(127, 167, 255, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(24, 41, 73, 0.92), rgba(10, 20, 37, 0.96));
}

.foresight-api-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.foresight-api-form {
  display: grid;
  gap: 12px;
}

.foresight-api-form label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.foresight-api-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.foresight-api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foresight-helper {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
}

.foresight-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
}

.foresight-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  max-height: 920px;
  overflow-y: auto;
  padding-right: 4px;
}

.foresight-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.foresight-group h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.foresight-group p {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.foresight-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foresight-chip {
  padding: 10px 14px;
  border: 1px solid rgba(243, 248, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.9rem;
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.foresight-chip:hover,
.foresight-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(127, 167, 255, 0.4);
  background: rgba(127, 167, 255, 0.12);
}

.foresight-chip:active {
  cursor: grabbing;
}

.foresight-chip.is-industry {
  background: rgba(255, 255, 255, 0.055);
}

.foresight-canvas {
  display: grid;
  gap: 20px;
  align-content: start;
}

.foresight-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.foresight-canvas-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.94;
}

.foresight-canvas-note {
  max-width: 52ch;
  margin: 10px 0 0;
}

.foresight-canvas-frame {
  min-height: 420px;
  padding: 24px;
  border: 1px dashed rgba(127, 167, 255, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(127, 167, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(14, 26, 48, 0.96), rgba(8, 17, 30, 0.98));
}

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

.foresight-slot {
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(243, 248, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.foresight-slot.trend-slot {
  min-height: 140px;
}

.foresight-slot.is-over {
  border-color: rgba(127, 167, 255, 0.52);
  background: rgba(127, 167, 255, 0.12);
}

.foresight-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.foresight-slot-header h3 {
  margin: 0;
  font-size: 1rem;
}

.foresight-slot-header span {
  color: var(--text-subtle);
  font-size: 0.82rem;
}

.foresight-slot-body {
  display: grid;
  gap: 10px;
}

.foresight-placeholder {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
  line-height: 1.55;
}

.canvas-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(127, 167, 255, 0.24);
  border-radius: 999px;
  background: rgba(127, 167, 255, 0.12);
  color: var(--text);
  font-size: 0.9rem;
}

.canvas-chip button {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  line-height: 1;
}

.foresight-canvas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foresight-status {
  min-height: 1.5em;
  margin: 0;
}

.foresight-status.is-error {
  color: #ffb5b5;
}

.foresight-results {
  display: grid;
  gap: 18px;
  padding: 28px;
}

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

.result-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.result-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.95;
}

.result-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.result-card li + li {
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .hero-editorial,
  .definition-layout,
  .method-layout,
  .foresight-hero,
  .foresight-workspace,
  .course-grid,
  .content-grid,
  .content-grid-wide,
  .course-layout,
  .course-layout-single {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .course-grid-home,
  .hero-mini-stats,
  .spotlight-meta,
  .hero-badges,
  .signal-mini-grid,
  .interactive-points {
    grid-template-columns: 1fr;
  }

  .interactive-section {
    grid-template-columns: 1fr;
  }

  .result-grid,
  .foresight-slot-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  .page-shell,
  .course-body {
    padding: 16px;
  }

  .site-header,
  .course-topbar,
  .section-header,
  .content-card-header,
  .sidebar-heading-row,
  .progress-header {
    flex-direction: column;
    align-items: start;
  }

  .site-header {
    border-radius: 28px;
  }

  .hero-editorial,
  .story-grid-section,
  .definition-section,
  .method-section,
  .course-section,
  .quote-section,
  .foresight-hero,
  .foresight-workspace,
  .foresight-results,
  .course-topbar,
  .content-card,
  .progress-card,
  .materials-card,
  .sidebar {
    padding: 22px;
  }

  .top-nav {
    width: 100%;
    gap: 12px;
    flex-direction: column;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 13vw, 3.6rem);
    line-height: 0.94;
  }

  .section-heading,
  .course-card h3,
  .quote-panel blockquote,
  .spotlight-overlay h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .course-topbar h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .brand-text {
    font-size: 1.28rem;
  }

  .brand-overline {
    font-size: 0.64rem;
  }

  .nav-button {
    width: 100%;
  }

  .foresight-canvas-header,
  .foresight-slot-header {
    flex-direction: column;
    align-items: start;
  }
}

.hbr-blank-body {
  min-height: 100vh;
  color: #111111;
  background: #f6f3ee;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.hbr-blank-body::before {
  content: none;
}

.hbr-page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(18px, 3vw, 42px) 56px;
}

.hbr-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
  padding: 10px 0 24px;
  border-bottom: 7px solid #bf1e2e;
}

.hbr-wordmark {
  display: block;
  height: clamp(66px, 8vw, 106px);
  border-top: 10px solid #111111;
  border-bottom: 1px solid #111111;
  background:
    linear-gradient(#111111, #111111) 0 52% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, #111111 0 18px, transparent 18px 25px);
}

.hbr-wordmark span {
  display: block;
  width: 42%;
  height: 100%;
  background: #bf1e2e;
  mix-blend-mode: multiply;
}

.hbr-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 18px;
  padding-bottom: 8px;
}

.hbr-nav a {
  display: block;
  height: 22px;
  border-top: 2px solid #111111;
  border-bottom: 1px solid rgba(17, 17, 17, 0.42);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hbr-nav a:hover,
.hbr-nav a:focus-visible {
  border-top-color: #bf1e2e;
  transform: translateY(-2px);
  outline: none;
}

.hbr-main {
  display: grid;
  gap: 32px;
  padding-top: 26px;
}

.hbr-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 1.07fr);
  gap: clamp(28px, 5vw, 86px);
  min-height: clamp(520px, 70vh, 740px);
  align-items: stretch;
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
  padding-bottom: 34px;
}

.hbr-hero-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.hbr-rule {
  width: min(220px, 50%);
  height: 9px;
  background: #bf1e2e;
}

.hbr-headline,
.hbr-title-line,
.hbr-kicker,
.hbr-byline,
.hbr-deck span,
.hbr-body-lines span,
.hbr-column-number {
  display: block;
  background: #111111;
}

.hbr-headline {
  height: clamp(48px, 7vw, 96px);
  max-width: 100%;
}

.hbr-headline-xl {
  width: 94%;
}

.hbr-headline-lg {
  width: 72%;
}

.hbr-byline {
  width: 36%;
  height: 12px;
  margin-top: 8px;
  background: #bf1e2e;
}

.hbr-deck {
  display: grid;
  gap: 13px;
  width: min(560px, 88%);
  margin-top: 10px;
}

.hbr-deck span {
  height: 12px;
  background: rgba(17, 17, 17, 0.52);
}

.hbr-deck span:nth-child(2) {
  width: 86%;
}

.hbr-deck span:nth-child(3) {
  width: 62%;
}

.hbr-hero-art {
  position: relative;
  min-width: 0;
}

.hbr-photo {
  position: sticky;
  top: 28px;
  min-height: 100%;
  border: 1px solid #111111;
  background:
    linear-gradient(145deg, rgba(191, 30, 46, 0.92) 0 24%, transparent 24% 100%),
    linear-gradient(90deg, transparent 0 48%, rgba(17, 17, 17, 0.92) 48% 49.5%, transparent 49.5% 100%),
    linear-gradient(180deg, #ddd8cf 0%, #f9f6ef 100%);
  overflow: hidden;
}

.hbr-photo::before {
  content: "";
  position: absolute;
  inset: 11% 12% 10% 18%;
  border: 1px solid rgba(17, 17, 17, 0.8);
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(17, 17, 17, 0.13) 25px 26px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(17, 17, 17, 0.13) 25px 26px);
}

.hbr-photo span {
  position: absolute;
  display: block;
  background: #111111;
}

.hbr-photo span:nth-child(1) {
  left: 10%;
  bottom: 12%;
  width: 31%;
  height: 41%;
}

.hbr-photo span:nth-child(2) {
  right: 10%;
  top: 13%;
  width: 28%;
  height: 32%;
  background: #bf1e2e;
}

.hbr-photo span:nth-child(3) {
  right: 22%;
  bottom: 18%;
  width: 38%;
  height: 2px;
}

.hbr-feature-grid,
.hbr-lower-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.82fr 0.82fr;
  gap: 28px;
}

.hbr-feature,
.hbr-column-card {
  display: grid;
  align-content: start;
  min-height: 300px;
  padding: 28px;
  border-top: 4px solid #111111;
  background: #ffffff;
}

.hbr-feature-large {
  min-height: 440px;
}

.hbr-image-block {
  height: 170px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, #111111 0 32%, transparent 32%),
    linear-gradient(90deg, rgba(191, 30, 46, 0.9), rgba(191, 30, 46, 0.9));
}

.hbr-kicker {
  width: 86px;
  height: 8px;
  margin-bottom: 24px;
  background: #bf1e2e;
}

.hbr-title-line {
  width: 92%;
  height: 28px;
  margin-bottom: 12px;
}

.hbr-title-line.short {
  width: 58%;
}

.hbr-title-line.medium {
  width: 74%;
}

.hbr-body-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hbr-body-lines span {
  height: 9px;
  background: rgba(17, 17, 17, 0.34);
}

.hbr-body-lines span:nth-child(2) {
  width: 86%;
}

.hbr-body-lines span:nth-child(3) {
  width: 64%;
}

.hbr-strip {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: center;
  min-height: 142px;
  border-top: 1px solid #111111;
  border-bottom: 1px solid #111111;
}

.hbr-strip-mark {
  width: 100%;
  height: 78px;
  background: #bf1e2e;
}

.hbr-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 17, 17, 0.28);
}

.hbr-strip-grid span {
  min-height: 78px;
  background:
    linear-gradient(#111111, #111111) 24px 24px / 58% 5px no-repeat,
    linear-gradient(#111111, #111111) 24px 43px / 36% 5px no-repeat,
    #f6f3ee;
}

.hbr-column-number {
  width: 44px;
  height: 44px;
  margin-bottom: 34px;
  background: #bf1e2e;
}

.hbr-column-card-dark {
  background: #111111;
}

.hbr-column-card-dark .hbr-title-line,
.hbr-column-card-dark .hbr-body-lines span {
  background: #f6f3ee;
}

.hbr-column-card-dark .hbr-column-number {
  background: #bf1e2e;
}

@media (max-width: 980px) {
  .hbr-header,
  .hbr-hero,
  .hbr-feature-grid,
  .hbr-lower-grid,
  .hbr-strip {
    grid-template-columns: 1fr;
  }

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

  .hbr-hero {
    min-height: auto;
  }

  .hbr-photo {
    min-height: 460px;
  }
}

@media (max-width: 620px) {
  .hbr-page {
    padding-inline: 16px;
  }

  .hbr-header {
    gap: 18px;
    border-bottom-width: 5px;
  }

  .hbr-nav {
    gap: 12px;
  }

  .hbr-feature,
  .hbr-column-card {
    padding: 22px;
  }

  .hbr-photo {
    min-height: 360px;
  }

  .hbr-strip-grid {
    grid-template-columns: 1fr;
  }
}

.course-hub-page {
  max-width: 1480px;
}

.course-hub-header {
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
}

.course-hub-brand {
  display: grid;
  gap: 8px;
  color: #111111;
}

.course-hub-brand-top {
  width: max-content;
  padding: 5px 8px 6px;
  background: #bf1e2e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.course-hub-brand-main {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.course-hub-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.course-hub-nav a {
  min-height: 52px;
  padding: 13px 0 0;
  border-top: 3px solid #111111;
  color: #111111;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-hub-nav a:hover,
.course-hub-nav a:focus-visible {
  border-top-color: #bf1e2e;
  color: #bf1e2e;
  outline: none;
}

.course-hub-main {
  gap: 36px;
}

.course-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 82px);
  min-height: clamp(540px, 72vh, 760px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.24);
}

.course-hub-hero-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.course-hub-kicker {
  width: max-content;
  margin: 0;
  padding: 5px 8px 6px;
  background: #bf1e2e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.course-hub-hero h1,
.course-hub-feature h2,
.course-hub-tools h2,
.course-hub-roadmap h2 {
  margin: 0;
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.course-hub-hero h1 {
  max-width: 12ch;
  font-size: clamp(4.2rem, 8vw, 8rem);
  line-height: 0.9;
}

.course-hub-lead {
  max-width: 660px;
  margin: 0;
  color: #3d3a36;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.75;
}

.course-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.course-hub-button,
.course-hub-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #111111;
  color: #111111;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.course-hub-button.primary {
  background: #111111;
  color: #ffffff;
}

.course-hub-button:hover,
.course-hub-button:focus-visible,
.course-hub-text-link:hover,
.course-hub-text-link:focus-visible {
  background: #bf1e2e;
  border-color: #bf1e2e;
  color: #ffffff;
  outline: none;
  transform: translateY(-2px);
}

.course-hub-cover {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid #111111;
  background:
    linear-gradient(135deg, rgba(191, 30, 46, 0.96) 0 22%, transparent 22%),
    linear-gradient(90deg, transparent 0 51%, #111111 51% 52.4%, transparent 52.4%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(17, 17, 17, 0.11) 31px 32px),
    #ddd8cf;
}

.course-hub-cover-label {
  color: #111111;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-hub-cover-title {
  max-width: 8ch;
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.86;
}

.course-hub-cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.course-hub-cover-grid span {
  min-height: 84px;
  background:
    linear-gradient(#111111, #111111) 16px 18px / 52% 5px no-repeat,
    linear-gradient(#111111, #111111) 16px 36px / 72% 5px no-repeat,
    #f6f3ee;
  border-top: 7px solid #bf1e2e;
}

.course-hub-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #111111;
  border: 1px solid #111111;
}

.course-hub-index-item {
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 22px;
  background: #ffffff;
  color: #111111;
}

.course-hub-index-item span {
  color: #bf1e2e;
  font-weight: 700;
}

.course-hub-index-item strong {
  max-width: 12ch;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.course-hub-index-item small {
  align-self: end;
  color: #5a554e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.course-hub-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 28px;
}

.course-hub-feature {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 380px;
  padding: 30px;
  border-top: 5px solid #111111;
  background: #ffffff;
}

.course-hub-feature-large {
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(191, 30, 46, 0.95) 0 150px, transparent 150px),
    #ffffff;
}

.course-hub-feature h2,
.course-hub-tools h2,
.course-hub-roadmap h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.96;
}

.course-hub-feature p,
.course-hub-tools p,
.course-hub-roadmap p {
  margin: 0;
  color: #3d3a36;
  line-height: 1.75;
}

.course-hub-feature .course-hub-text-link {
  justify-self: start;
  align-self: end;
  margin-top: auto;
}

.course-hub-tools {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  gap: 36px;
  padding: 34px;
  border-top: 1px solid #111111;
  border-bottom: 1px solid #111111;
}

.course-hub-tools > div:first-child {
  display: grid;
  gap: 18px;
  align-content: start;
}

.course-hub-tool-list {
  display: grid;
  gap: 1px;
  background: #111111;
  border: 1px solid #111111;
}

.course-hub-tool-list article,
.course-hub-tool-list a {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 112px;
  padding: 20px 24px;
  background: #ffffff;
  color: #111111;
}

.course-hub-tool-list a {
  transition: background-color 0.18s ease, color 0.18s ease;
}

.course-hub-tool-list a:hover,
.course-hub-tool-list a:focus-visible {
  background: #111111;
  color: #ffffff;
  outline: none;
}

.course-hub-tool-list span {
  color: #bf1e2e;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-hub-tool-list strong {
  color: inherit;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.course-hub-roadmap {
  display: grid;
  gap: 26px;
}

.course-hub-roadmap-heading {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.course-hub-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #111111;
  border: 1px solid #111111;
}

.course-hub-roadmap-grid article {
  display: grid;
  gap: 28px;
  min-height: 220px;
  padding: 26px;
  background: #ffffff;
}

.course-hub-roadmap-grid span {
  color: #bf1e2e;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .course-hub-header,
  .course-hub-hero,
  .course-hub-feature-grid,
  .course-hub-tools {
    grid-template-columns: 1fr;
  }

  .course-hub-index,
  .course-hub-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .course-hub-nav,
  .course-hub-index,
  .course-hub-roadmap-grid,
  .course-hub-cover-grid {
    grid-template-columns: 1fr;
  }

  .course-hub-brand-main {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .course-hub-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .course-hub-cover {
    min-height: 480px;
  }

  .course-hub-tools {
    padding: 0;
    border: 0;
  }

  .course-hub-tool-list article,
  .course-hub-tool-list a {
    grid-template-columns: 1fr;
  }
}

/* Publication-style course pages */
.course-body,
.landing-body {
  color: #111111;
  background: #f6f3ee;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.course-body::before,
.landing-body::before {
  content: none;
}

.course-layout,
.course-layout-single {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  max-width: 1480px;
  padding: 24px clamp(18px, 3vw, 42px) 56px;
}

.page-shell {
  max-width: 1480px;
  padding: 24px clamp(18px, 3vw, 42px) 56px;
}

.sidebar,
.site-header {
  border: 1px solid #111111;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.sidebar {
  top: 24px;
  padding: 22px;
  border-top: 7px solid #bf1e2e;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  position: static;
  align-items: end;
  margin-bottom: 28px;
  padding: 22px 0 24px;
  border-width: 0 0 7px;
  border-bottom-color: #bf1e2e;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  align-items: start;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: #bf1e2e;
  box-shadow: none;
}

.brand-lockup {
  gap: 6px;
}

.brand-overline,
.eyebrow,
.section-label,
.sidebar-label,
.meta-label,
.course-kicker,
.info-tag,
.chapter-tag {
  color: #bf1e2e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-text,
.course-topbar h1,
.spotlight-overlay h2,
.content-card h2,
.progress-card h2,
.materials-card h2,
.foresight-hero-copy h1,
.foresight-canvas-header h2,
.foresight-results h2,
.result-card h3,
.foresight-api-copy h2 {
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.brand-text {
  font-size: 2rem;
  line-height: 0.95;
}

.top-nav {
  gap: 14px;
  color: #111111;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a:not(.nav-button) {
  min-height: 42px;
  padding-top: 10px;
  border-top: 3px solid #111111;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.sidebar-link:hover,
.sidebar-link:focus-visible,
.subchapter-link:hover,
.subchapter-link:focus-visible {
  color: #bf1e2e;
}

.nav-button,
.primary-button,
.secondary-button,
.ghost-button,
.text-link {
  min-height: 42px;
  border-radius: 0;
  border-color: #111111;
  background: transparent;
  color: #111111;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-button {
  background: #111111;
  color: #ffffff;
}

.nav-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.text-link:hover,
.nav-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.text-link:focus-visible {
  border-color: #bf1e2e;
  background: #bf1e2e;
  color: #ffffff;
}

.sidebar-block {
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #111111;
}

.sidebar-link,
.chapter-link,
.subchapter-link {
  border-radius: 0;
  color: #111111;
  font-weight: 600;
}

.sidebar-link,
.chapter-link {
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #f6f3ee;
}

.sidebar-link.is-active,
.chapter-link.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.subchapter-list {
  border-left-color: #bf1e2e;
}

.sidebar-note,
.story-card,
.course-card,
.definition-card,
.method-card,
.quote-panel,
.materials-item,
.subsection-card,
.spotlight-meta > div,
.result-card,
.foresight-group {
  border-radius: 0;
  border-color: #111111;
  background: #ffffff;
}

.sidebar-note p,
.course-summary,
.chapter-description,
.materials-item p,
.subsection-card p,
.progress-list li,
.spotlight-overlay p:last-child,
.foresight-hero-copy p,
.foresight-api-copy p,
.foresight-group p,
.foresight-canvas-note,
.foresight-status,
.result-card p,
.result-card li {
  color: #3d3a36;
}

.course-topbar,
.spotlight-card,
.progress-card,
.content-card,
.materials-card,
.foresight-hero,
.foresight-workspace,
.foresight-results,
.foresight-api-card {
  border: 1px solid #111111;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.course-topbar,
.content-card,
.progress-card,
.materials-card,
.foresight-hero,
.foresight-workspace,
.foresight-results {
  padding: 28px;
}

.course-topbar {
  border-top: 7px solid #bf1e2e;
}

.breadcrumbs {
  color: #5a554e;
}

.course-topbar h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.spotlight-visual {
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(191, 30, 46, 0.95) 0 25%, transparent 25%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(17, 17, 17, 0.1) 31px 32px),
    #ddd8cf;
}

.spotlight-overlay h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 0.94;
}

.spotlight-meta {
  background: #111111;
}

.progress-bar {
  background: #ddd8cf;
}

.progress-bar span,
.progress-marker.is-complete {
  background: #bf1e2e;
}

.progress-marker {
  border-color: #111111;
}

.progress-marker.is-complete {
  border-color: #bf1e2e;
  box-shadow: none;
}

.subsection-tag,
.canvas-chip {
  border-radius: 0;
  background: #111111;
  color: #ffffff;
}

.materials-item span {
  color: #bf1e2e;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.materials-item h3,
.subsection-card h3,
.foresight-group h2 {
  color: #111111;
}

.foresight-main {
  gap: 28px;
}

.foresight-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  border-top: 7px solid #bf1e2e;
}

.foresight-hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.9;
}

.foresight-api-card {
  align-content: start;
  border-top: 5px solid #111111;
  background:
    linear-gradient(135deg, rgba(191, 30, 46, 0.95) 0 96px, transparent 96px),
    #ffffff;
}

.foresight-api-form label {
  color: #111111;
}

.foresight-api-form input {
  border-radius: 0;
  border-color: #111111;
  background: #f6f3ee;
  color: #111111;
}

.foresight-workspace {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.foresight-sidebar {
  max-height: none;
}

.foresight-group {
  padding: 18px;
  border-top-width: 4px;
}

.foresight-chip {
  border-radius: 0;
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}

.foresight-chip:hover,
.foresight-chip:focus-visible {
  border-color: #bf1e2e;
  background: #bf1e2e;
  color: #ffffff;
}

.foresight-chip.is-industry {
  background: #f6f3ee;
}

.foresight-canvas-frame {
  border-radius: 0;
  border-color: #111111;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(17, 17, 17, 0.08) 31px 32px),
    #f6f3ee;
}

.foresight-slot {
  border-radius: 0;
  border-color: #111111;
  background: #ffffff;
}

.foresight-slot.is-over {
  border-color: #bf1e2e;
  background: #fff5f5;
}

.canvas-chip button {
  border-radius: 0;
  background: #bf1e2e;
}

.result-card {
  background: #ffffff;
}

.result-card h3 {
  color: #111111;
}

.book-page-section {
  scroll-margin-top: 24px;
}

.book-spread {
  display: grid;
  gap: 34px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #111111;
  border-top: 7px solid #bf1e2e;
  background: #ffffff;
}

.book-chapter-header {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.book-label,
.book-chapter-number {
  margin: 0;
  color: #bf1e2e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.book-chapter-number {
  color: #111111;
}

.book-chapter-header h2 {
  max-width: 11ch;
  margin: 0;
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.book-standfirst {
  max-width: 760px;
  margin: 0;
  color: #2d2925;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.55;
}

.book-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.book-prose {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.book-prose p {
  margin: 0;
  color: #2f2b27;
  font-size: 1.05rem;
  line-height: 1.85;
}

.book-prose > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: #bf1e2e;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 0.78;
}

.book-callout {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 22px;
  border-left: 7px solid #bf1e2e;
  background: #f6f3ee;
}

.book-callout h3,
.book-reflection h3 {
  margin: 0;
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.book-callout p:not(.book-label),
.book-reflection p {
  margin: 0;
  color: #3d3a36;
  line-height: 1.7;
}

.book-figure {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  margin: 0;
}

.book-illustration {
  position: relative;
  min-height: 460px;
  border: 1px solid #111111;
  background:
    linear-gradient(135deg, rgba(191, 30, 46, 0.96) 0 22%, transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(17, 17, 17, 0.11) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(17, 17, 17, 0.08) 31px 32px),
    #ddd8cf;
  overflow: hidden;
}

.book-diagram {
  border: 1px solid #111111;
  background: #ddd8cf;
}

.book-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-paper {
  fill: #ddd8cf;
}

.diagram-red-block,
.diagram-red-node rect,
#arrowhead path {
  fill: #bf1e2e;
}

.diagram-kicker,
.diagram-title,
.diagram-node text,
.diagram-core text {
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.diagram-kicker {
  fill: #bf1e2e;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
}

.diagram-title {
  fill: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
}

.diagram-lines path {
  fill: none;
  stroke: #111111;
  stroke-width: 3;
  marker-end: url("#arrowhead");
}

.diagram-core rect {
  fill: #111111;
}

.diagram-core text {
  fill: #ffffff;
  font-size: 25px;
  font-weight: 700;
  text-anchor: middle;
}

.diagram-node rect {
  fill: #ffffff;
  stroke: #111111;
  stroke-width: 2;
}

.diagram-node text {
  fill: #111111;
  font-size: 22px;
  font-weight: 700;
  text-anchor: middle;
}

.diagram-node .diagram-small {
  fill: #4b4640;
  font-size: 14px;
  font-weight: 500;
}

.diagram-red-node text,
.diagram-red-node .diagram-small {
  fill: #ffffff;
}

.book-illustration-node,
.book-illustration-core,
.book-illustration-line {
  position: absolute;
  display: block;
}

.book-illustration-node {
  width: 88px;
  height: 88px;
  border: 1px solid #111111;
  background: #ffffff;
}

.book-illustration-core {
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  background: #111111;
}

.node-one {
  left: 14%;
  top: 18%;
}

.node-two {
  right: 12%;
  top: 24%;
  background: #bf1e2e;
}

.node-three {
  left: 18%;
  bottom: 14%;
}

.book-illustration-line {
  height: 2px;
  background: #111111;
  transform-origin: left center;
}

.line-one {
  left: 28%;
  top: 34%;
  width: 44%;
  transform: rotate(19deg);
}

.line-two {
  left: 30%;
  bottom: 30%;
  width: 42%;
  transform: rotate(-23deg);
}

.book-figure figcaption {
  margin: 0;
  color: #4b4640;
  font-size: 0.92rem;
  line-height: 1.65;
}

.book-figure figcaption strong {
  color: #bf1e2e;
  text-transform: uppercase;
}

.book-reflection {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-top: 1px solid #111111;
  border-bottom: 1px solid #111111;
  background: #f6f3ee;
}

.book-figure-input {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid #111111;
  background:
    linear-gradient(135deg, rgba(191, 30, 46, 0.95) 0 76px, transparent 76px),
    #ffffff;
}

.book-figure-input-heading {
  display: grid;
  align-content: start;
  gap: 14px;
}

.book-figure-input-heading h3 {
  margin: 0;
  color: #111111;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.book-figure-input-heading p:not(.book-label) {
  margin: 0;
  color: #3d3a36;
  line-height: 1.7;
}

.figure-input-form {
  display: grid;
  gap: 16px;
}

.figure-input-form label {
  display: grid;
  gap: 8px;
}

.figure-input-form span {
  color: #bf1e2e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.figure-input-form input,
.figure-input-form textarea {
  width: 100%;
  border: 1px solid #111111;
  border-radius: 0;
  background: #f6f3ee;
  color: #111111;
  font: inherit;
  line-height: 1.55;
}

.figure-input-form input {
  min-height: 48px;
  padding: 0 14px;
}

.figure-input-form textarea {
  resize: vertical;
  padding: 12px 14px;
}

.figure-input-form input:focus,
.figure-input-form textarea:focus {
  outline: 3px solid rgba(191, 30, 46, 0.22);
  outline-offset: 0;
}

@media (max-width: 1180px) {
  .course-layout,
  .course-layout-single,
  .foresight-hero,
  .foresight-workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .book-content-grid,
  .book-reflection,
  .book-figure-input {
    grid-template-columns: 1fr;
  }

  .book-figure {
    position: static;
  }
}

@media (max-width: 780px) {
  .course-layout,
  .course-layout-single,
  .page-shell {
    padding: 16px;
  }

  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    border-radius: 0;
  }

  .top-nav {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .course-topbar h1,
  .foresight-hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .book-illustration {
    min-height: 340px;
  }

  .book-illustration-node {
    width: 62px;
    height: 62px;
  }

  .book-illustration-core {
    width: 96px;
    height: 96px;
  }
}

/* Type scale reduction: display titles and subtitles are 30% smaller. */
.course-hub-brand-main {
  font-size: clamp(1.82rem, 4.2vw, 3.92rem);
}

.brand-text {
  font-size: 1.4rem;
}

.course-hub-hero h1 {
  font-size: clamp(2.94rem, 5.6vw, 5.6rem);
}

.course-hub-lead {
  font-size: clamp(0.88rem, 1vw, 1.05rem);
}

.course-hub-cover-title {
  font-size: clamp(2.1rem, 4.2vw, 4.48rem);
}

.course-hub-feature h2,
.course-hub-tools h2,
.course-hub-roadmap h2 {
  font-size: clamp(1.54rem, 2.8vw, 2.8rem);
}

.course-hub-index-item strong {
  font-size: 1rem;
}

.course-topbar h1 {
  font-size: clamp(2.1rem, 4.2vw, 4.48rem);
}

.spotlight-overlay h2 {
  font-size: clamp(1.68rem, 3.36vw, 3.22rem);
}

.content-card h2,
.progress-card h2,
.materials-card h2,
.foresight-api-copy h2 {
  font-size: clamp(1.4rem, 2.1vw, 2.1rem);
}

.foresight-hero-copy h1 {
  font-size: clamp(2.38rem, 4.9vw, 4.9rem);
}

.foresight-canvas-header h2,
.foresight-results h2,
.result-card h3 {
  font-size: clamp(1.45rem, 2.1vw, 2.1rem);
}

.book-chapter-header h2 {
  font-size: clamp(2.1rem, 4.9vw, 4.76rem);
}

.book-standfirst {
  font-size: clamp(0.98rem, 1.4vw, 1.26rem);
}

.book-callout h3,
.book-reflection h3 {
  font-size: clamp(1.02rem, 1.68vw, 1.65rem);
}

.book-figure-input-heading h3 {
  font-size: clamp(1.26rem, 2.1vw, 2.1rem);
}
