/* Industry learning hub pages (/learn/*.html) */

:root {
  --lh-bg: #050810;
  --lh-text: #e8f4ff;
  --lh-muted: #8aaabb;
  --lh-dim: #6b8aae;
  --lh-accent: #00e5ff;
  --lh-border: rgba(0, 229, 255, 0.12);
  --lh-panel: rgba(8, 18, 28, 0.72);
  --lh-max: min(72rem, var(--site-header-max, 1200px));
  --lh-prose: 44rem;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.lh-page,
body.lh-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lh-text);
  background: var(--lh-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 229, 255, 0.06), transparent),
    linear-gradient(180deg, var(--lh-bg) 0%, #070b12 100%);
}

body.lh-page .site-header-shell {
  position: relative;
  z-index: 100;
}

body.lh-page #site-header-mount {
  position: relative;
  z-index: 100;
}

/* Keep shared header nav readable — do not inherit lh-page global link accent */
body.lh-page .site-nav a {
  color: var(--text-muted, #8aaabb);
  text-decoration: none;
}

body.lh-page .site-nav a:hover,
body.lh-page .site-nav a.is-active {
  color: var(--accent, #00e5ff);
  text-decoration: none;
}

body.lh-page .site-nav-dropdown-list a:hover {
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent, #00e5ff);
}

body.lh-page .site-nav-trigger {
  color: var(--text-muted, #8aaabb);
}

body.lh-page .site-nav-trigger:hover,
body.lh-page .site-nav-trigger.is-active,
body.lh-page .site-nav-item--group:hover > .site-nav-trigger,
body.lh-page .site-nav-item--group:focus-within > .site-nav-trigger,
body.lh-page .site-nav-item--group.is-open > .site-nav-trigger {
  color: var(--accent, #00e5ff);
}

body.lh-page .site-nav-toggle {
  color: var(--text-muted, #8aaabb);
  text-decoration: none;
}

body.lh-page #site-bg {
  --site-bg-opacity: 0.26;
  --site-bg-art-scrim: 0.48;
  --site-bg-art-strength: 0.72;
}

body.lh-page #site-bg[data-art-layer="true"] #site-bg-canvas {
  opacity: calc(var(--site-bg-opacity, 0.26) * 0.45);
}

body.lh-page .site-bg-spotlight {
  opacity: 0.35;
}

body.lh-page .lh-main a,
body.lh-page .lh-back {
  color: var(--lh-accent);
  text-decoration: none;
}

body.lh-page .lh-main a:hover,
body.lh-page .lh-back:hover {
  color: var(--lh-accent);
  text-decoration: underline;
}

.lh-main {
  position: relative;
  z-index: 1;
  max-width: var(--lh-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.lh-banner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto 1.25rem;
  border: none;
  background: transparent;
}

.lh-banner picture {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: #060b17;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.lh-banner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.lh-back {
  display: inline-block;
  margin: 1rem 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-muted);
  text-decoration: none;
}

.lh-back:hover {
  color: var(--lh-accent);
  text-decoration: none;
}

.lh-hero {
  position: relative;
  margin-bottom: 2rem;
  padding: clamp(1rem, 4vw, 2.25rem);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.01) 38%, rgba(255, 179, 71, 0.05)),
    rgba(8, 18, 28, 0.55);
  overflow: hidden;
}

.lh-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 8%;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(0, 229, 255, 0.12) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(0, 229, 255, 0.12) 50%, transparent 51%);
  opacity: 0.32;
  pointer-events: none;
}

.lh-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.lh-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  max-width: 13ch;
  font-size: clamp(2.25rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.lh-hero > *:not(.legal-notice) {
  position: relative;
  z-index: 1;
}

.lh-summary {
  margin: 0 0 1rem;
  max-width: 48rem;
  color: #b9d7e6;
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.lh-workflow-note {
  margin: 0 0 1rem;
  max-width: var(--lh-prose);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
}

.lh-workflow-note-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.lh-workflow-note p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--lh-muted);
}

.lh-audionative {
  margin: 0 0 1rem;
  max-width: var(--lh-prose);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
}

.lh-audionative-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.lh-audionative #elevenlabs-audionative-widget {
  width: 100%;
  min-height: 90px;
}

.lh-audionative a {
  color: var(--lh-accent);
}

.lh-hero .legal-notice {
  margin-top: 1rem;
  max-width: var(--lh-prose);
}

.lh-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--lh-muted);
}

.lh-hero-meta time {
  color: var(--lh-muted);
}

.lh-meta-sep {
  color: var(--lh-dim);
  opacity: 0.7;
}

/* Body layout — sticky TOC rail + scrollable content */
.lh-body-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

.lh-body-content {
  min-width: 0;
}

@media (min-width: 1024px) {
  .lh-body-layout {
    grid-template-columns: 13.5rem minmax(0, 1fr);
  }
}

/* Table of contents */
.lh-toc-rail {
  min-width: 0;
}

.lh-toc-jump-wrap {
  display: block;
  margin-bottom: 1rem;
}

.lh-toc-jump-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-toc-jump {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--lh-border);
  border-radius: 8px;
  background: var(--lh-panel);
  color: var(--lh-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

@media (min-width: 1024px) {
  .lh-toc-jump-wrap {
    display: none;
  }

  .lh-toc-rail {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
  }
}

.lh-toc {
  margin-bottom: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  background: var(--lh-panel);
}

.lh-toc-head {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-dim);
  font-weight: 500;
}

.lh-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 2rem;
}

@media (max-width: 1023px) {
  .lh-toc {
    display: none;
  }
}

.lh-toc-list li {
  break-inside: avoid;
  margin: 0 0 0.45rem;
  padding-left: 0.85rem;
  position: relative;
}

.lh-toc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3d5566;
  opacity: 0.65;
}

.lh-toc-list a {
  font-size: 0.82rem;
  color: #3f5868;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}

body.lh-page .lh-main .lh-toc-list a {
  color: #3f5868;
  text-decoration: none;
}

.lh-toc-list a:hover,
body.lh-page .lh-main .lh-toc-list a:hover {
  color: #6b8aae;
  text-decoration: none;
}

.lh-toc-list a.is-active,
body.lh-page .lh-main .lh-toc-list a.is-active {
  color: var(--lh-accent);
  font-weight: 500;
  text-decoration: none;
}

.lh-toc-list li:has(a.is-active)::before {
  opacity: 1;
  background: var(--lh-accent);
}

.lh-toc-list li:has(a:hover:not(.is-active))::before {
  background: #5a7a8a;
  opacity: 0.75;
}

.lh-toc-group {
  margin: 0.75rem 0 0.45rem;
  padding-left: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-toc-group::before {
  display: none;
}

.lh-toc-group:first-child {
  margin-top: 0;
}

/* Guided learning modules */
.lh-section-head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.lh-path-grid,
.lh-question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.lh-path-card,
.lh-question-card,
.lh-flow-card {
  position: relative;
  border: 1px solid var(--lh-border);
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.86), rgba(8, 18, 28, 0.58));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.lh-path-card {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border-radius: 14px;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.lh-path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(0, 229, 255, 0.16), transparent 30%);
  opacity: 0.85;
}

.lh-path-card > * {
  position: relative;
  z-index: 1;
}

.lh-path-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.38);
  text-decoration: none;
}

.lh-path-step {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lh-dim);
}

.lh-path-meta,
.lh-question-label,
.lh-flow-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.lh-path-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--lh-text);
}

.lh-path-card span:last-child,
.lh-question-card p,
.lh-flow-card p,
.lh-flow-card li {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

.lh-flow-grid {
  display: grid;
  gap: 0.85rem;
}

.lh-flow-card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
}

.lh-flow-number {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--lh-accent);
  background: rgba(0, 229, 255, 0.06);
}

.lh-flow-body h3,
.lh-question-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--lh-text);
}

.lh-flow-body p,
.lh-question-card p {
  margin: 0 0 0.75rem;
}

.lh-flow-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lh-flow-body li {
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(138, 170, 187, 0.18);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.035);
}

.lh-question-card {
  padding: 1rem;
  border-radius: 14px;
}

/* Media teasers */
.lh-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.lh-media-teaser {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--lh-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lh-media-teaser:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.lh-media-teaser-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a1018;
  overflow: hidden;
}

.lh-media-teaser-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lh-media-teaser-thumb--audio {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(5, 8, 16, 0.9));
}

.lh-media-teaser-thumb--audio span {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--lh-accent);
  opacity: 0.7;
}

.lh-media-teaser-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.25);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-text);
}

.lh-media-teaser-body {
  padding: 0.85rem 1rem 1rem;
}

.lh-media-teaser-type {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-media-teaser-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--lh-text);
}

.lh-media-teaser-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

/* Sections */
.lh-section {
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

.lh-section-head {
  margin-bottom: 1.25rem;
}

.lh-section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lh-section-head p {
  margin: 0;
  max-width: var(--lh-prose);
  color: var(--lh-muted);
  font-size: 0.92rem;
}

.lh-chapter {
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--lh-border);
  border-radius: 14px;
  background: rgba(8, 18, 28, 0.48);
  scroll-margin-top: 5rem;
}

.lh-chapter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lh-chapter--collapsible {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lh-chapter--collapsible.is-expanded {
  border-color: rgba(0, 229, 255, 0.32);
  background: rgba(8, 18, 28, 0.62);
}

.lh-chapter-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  color: var(--lh-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lh-chapter-toggle:hover {
  background: rgba(0, 229, 255, 0.04);
}

.lh-chapter-toggle-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.lh-chapter-toggle-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  position: relative;
  transition: transform 0.2s ease;
}

.lh-chapter-toggle-icon::before,
.lh-chapter-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 1px;
  background: var(--lh-accent);
  transform: translate(-50%, -50%);
}

.lh-chapter-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.lh-chapter--collapsible.is-expanded .lh-chapter-toggle-icon {
  transform: rotate(45deg);
}

.lh-chapter-panel {
  padding: 0 1.15rem 1.15rem;
}

.lh-chapter-panel[hidden] {
  display: none;
}

.lh-chapter-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--lh-text);
}

.lh-chapter-banner {
  margin: 0 0 1.15rem;
  border: none;
  background: transparent;
}

.lh-chapter-banner picture {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: #060b17;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.lh-chapter-banner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* Chapter 1 scroll story — full-width sticky strip + scrolling text */
.lh-chapter--scroll {
  padding: 1.25rem 1.15rem 1.5rem;
}

.lh-scroll-story-intro {
  margin-bottom: 1.25rem;
}

.lh-scroll-story {
  margin-top: 0.5rem;
}

.lh-scroll-story-progress {
  margin: 0.75rem 0 0.5rem;
}

.lh-scroll-story-dots {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lh-scroll-story-dots > li {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.lh-scroll-story-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--lh-border);
  background: rgba(8, 18, 28, 0.65);
  color: var(--lh-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lh-scroll-story-dot:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--lh-text);
}

.lh-scroll-story-dot.is-active {
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.12);
  color: var(--lh-accent);
}

.lh-scroll-story-hero {
  position: sticky;
  top: 4.25rem;
  z-index: 3;
  margin: 0 0 0.5rem;
  padding-bottom: 1.15rem;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 1) 0%,
    rgba(5, 8, 16, 1) 78%,
    rgba(5, 8, 16, 0.98) 92%,
    rgba(5, 8, 16, 0) 100%
  );
  box-shadow: 0 22px 36px rgba(5, 8, 16, 0.82);
}

.lh-scroll-story-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 820;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: #060b17;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.lh-scroll-story-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.lh-scroll-story-frame.is-active {
  opacity: 1;
  z-index: 1;
}

.lh-scroll-story-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lh-scroll-story-hero-caption {
  margin-top: 0.55rem;
  padding: 0.35rem 0.5rem 0.1rem;
  border-radius: 8px;
  background: rgba(5, 8, 16, 0.94);
}

.lh-scroll-story-hero-caption-line {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

.lh-scroll-story-hero-caption-line [data-scroll-caption-num] {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--lh-dim);
}

.lh-scroll-story-hero-caption-line [data-scroll-caption-kicker] {
  color: var(--lh-accent);
  font-weight: 500;
}

.lh-scroll-story-hero-caption-line [data-scroll-caption-title] {
  color: var(--lh-text);
  font-weight: 500;
}

.lh-scroll-story-caption-sep {
  color: var(--lh-dim);
}

.lh-scroll-story-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1rem;
  padding-bottom: 4rem;
  --lh-scroll-focus-gap: 3.25rem;
}

.lh-scroll-story-step {
  scroll-margin-top: 9rem;
  max-width: var(--lh-prose-wide, 56rem);
  min-height: min(36vh, 20rem);
  padding: 1.1rem 0 1.75rem;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  opacity: 1;
  color: var(--lh-muted);
}

.lh-scroll-story-step:first-child {
  border-top: none;
  padding-top: 0.5rem;
}

.lh-scroll-story-step.is-active {
  padding-top: var(--lh-scroll-focus-gap);
  color: inherit;
}

.lh-scroll-story-step-copy {
  transition: opacity 0.22s ease;
}

.lh-scroll-story-step.is-active .lh-scroll-story-step-copy {
  opacity: 1;
}

.lh-scroll-story-step.is-past .lh-scroll-story-step-copy {
  opacity: 0.1;
}

.lh-scroll-story-step.is-upcoming .lh-scroll-story-step-copy {
  opacity: 0.32;
}

.lh-scroll-story-step.is-active .lh-prose {
  color: #a9c6d5;
}

.lh-scroll-story-step.is-past .lh-prose,
.lh-scroll-story-step.is-upcoming .lh-prose {
  color: #5a7a88;
}

.lh-scroll-story-step:last-child {
  min-height: min(34vh, 19rem);
  padding-bottom: 2.5rem;
}

.lh-scroll-story-step-figure {
  display: none;
  margin: 0 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: #060b17;
}

.lh-scroll-story-picture {
  display: block;
}

.lh-scroll-story-picture img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.lh-scroll-story-step-copy .lh-prose {
  max-width: none;
}

.lh-scroll-story-step-copy .lh-scroll-story-step-num,
.lh-scroll-story-step-copy .lh-scroll-story-step-kicker,
.lh-scroll-story-step-copy .lh-scroll-story-step-title {
  display: none;
}

.lh-scroll-story--static .lh-scroll-story-step-copy .lh-scroll-story-step-num,
.lh-scroll-story--static .lh-scroll-story-step-copy .lh-scroll-story-step-kicker,
.lh-scroll-story--static .lh-scroll-story-step-copy .lh-scroll-story-step-title {
  display: block;
}

.lh-scroll-story-step-num {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-scroll-story-step-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  color: var(--lh-accent);
  font-weight: 500;
}

.lh-scroll-story-step-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--lh-text);
}

.lh-scroll-story-coda {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lh-border);
  background: rgba(5, 10, 18, 0.55);
}

.lh-scroll-story-coda .lh-scroll-story-picture img {
  width: 100%;
}

.lh-scroll-story-coda figcaption {
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--lh-muted);
}

.lh-scroll-story-coda figcaption strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--lh-text);
  font-size: 0.98rem;
}

.lh-scroll-story-coda figcaption p {
  margin: 0;
  line-height: 1.55;
}

.lh-toc-sub a,
body.lh-page .lh-main .lh-toc-list .lh-toc-sub a {
  padding-left: 0.85rem;
  font-size: 0.78rem;
  color: #3f5868;
}

.lh-toc-sub a.is-active,
body.lh-page .lh-main .lh-toc-list .lh-toc-sub a.is-active {
  color: var(--lh-accent);
}

@media (max-width: 640px) {
  .lh-scroll-story-hero {
    top: 3.75rem;
  }

  .lh-scroll-story-step {
    scroll-margin-top: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lh-scroll-story-frame {
    transition: none;
  }

  .lh-scroll-story--static .lh-scroll-story-hero {
    position: static;
    background: none;
    padding-bottom: 0;
  }

  .lh-scroll-story--static .lh-scroll-story-visual,
  .lh-scroll-story--static .lh-scroll-story-hero-caption {
    display: none;
  }

  .lh-scroll-story--static .lh-scroll-story-step-figure {
    display: block;
  }

  .lh-scroll-story--static .lh-scroll-story-step {
    scroll-margin-top: 5.5rem;
  }
}

/* Prose — mirrors insights article body */
.lh-prose {
  max-width: var(--lh-prose);
  font-size: 0.98rem;
  line-height: 1.72;
  color: #a9c6d5;
}

.lh-prose-wide {
  max-width: 56rem;
}

.lh-prose h2,
.lh-prose h3,
.lh-prose h4 {
  color: var(--lh-text);
  margin: 1.75rem 0 0.65rem;
  line-height: 1.3;
}

.lh-prose h2 { font-size: 1.15rem; }
.lh-prose h3 { font-size: 1.05rem; }
.lh-prose h4 { font-size: 0.98rem; }

.lh-prose p {
  margin: 0 0 1rem;
}

.lh-prose ul,
.lh-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.lh-prose li {
  margin-bottom: 0.35rem;
}

.lh-prose strong {
  color: var(--lh-text);
  font-weight: 600;
}

.lh-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.82rem;
}

.lh-prose th,
.lh-prose td {
  border: 1px solid var(--lh-border);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.lh-prose th {
  background: rgba(0, 229, 255, 0.06);
  color: var(--lh-text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lh-prose hr {
  border: none;
  border-top: 1px solid var(--lh-border);
  margin: 1.5rem 0;
}

/* Infographic */
.lh-infographic {
  margin: 0;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--lh-panel);
}

.lh-infographic img {
  display: block;
  width: 100%;
  height: auto;
}

.lh-infographic figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--lh-muted);
  border-top: 1px solid var(--lh-border);
}

/* Full media players (bottom) */
.lh-media-full {
  display: grid;
  gap: 2rem;
}

.lh-media-block {
  padding: 1.1rem;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  background: var(--lh-panel);
  scroll-margin-top: 5rem;
}

.lh-media-block-head {
  margin-bottom: 0.85rem;
}

.lh-media-block-head .lh-card-meta {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-media-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--lh-text);
}

.lh-video,
.lh-audio {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
}

.lh-video::-webkit-media-controls-download-button,
.lh-audio::-webkit-media-controls-download-button {
  display: none !important;
}

.lh-media-block .lh-card-summary {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

/* Cards grid */
.lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.lh-grid--symbols {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.lh-card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--lh-border);
  border-radius: 8px;
  background: var(--lh-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lh-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.04);
  text-decoration: none;
}

.lh-card-meta {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-card-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--lh-text);
}

.lh-card-summary {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

.lh-symbol-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.lh-symbol {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lh-accent);
}

.lh-score {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lh-muted);
}

.lh-action {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #ffb347;
}

.lh-card--symbol {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lh-symbol-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lh-symbol-link:hover {
  text-decoration: none;
}

.lh-symbol-deck {
  display: block;
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lh-accent);
}

.lh-symbol-deck:hover {
  text-decoration: underline;
}

.lh-card--symbol-bridge .lh-symbol-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lh-symbol-cta {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.lh-workflow-zone {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
}

.lh-workflow-zone-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.lh-workflow-zone-divider-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb347;
}

.lh-workflow-zone-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 179, 71, 0.45),
    rgba(0, 229, 255, 0.15)
  );
}

.lh-workflow-zone-head {
  margin-bottom: 1rem;
}

.lh-workflow-zone-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
}

.lh-workflow-zone-head p {
  margin: 0;
  max-width: var(--lh-prose);
  color: var(--lh-muted);
  font-size: 0.92rem;
}

.lh-research-disclaimer {
  margin: 0 0 1.35rem;
  border-color: rgba(255, 179, 71, 0.28);
  background: rgba(255, 179, 71, 0.05);
}

.lh-section--nested {
  margin-bottom: 1.5rem;
}

.lh-section--nested .lh-section-head h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--lh-text);
}

.lh-section--nested .lh-section-head p {
  font-size: 0.86rem;
}

.lh-workflow-cta {
  margin: 1rem 0 0;
}

.lh-workflow-zone .lh-section {
  scroll-margin-top: 5rem;
}

.lh-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(138, 170, 187, 0.25);
  border-radius: 6px;
  color: var(--lh-muted);
  font-size: 0.88rem;
}

.lh-explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lh-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--lh-border);
  border-radius: 4px;
  color: var(--lh-accent);
  text-decoration: none;
  background: rgba(0, 229, 255, 0.04);
}

.lh-btn:hover {
  border-color: rgba(0, 229, 255, 0.4);
  text-decoration: none;
}

.lh-btn--primary {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.lh-theme-banner {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.lh-theme-banner p {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.88rem;
  color: var(--lh-muted);
}

.lh-theme-banner a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-accent);
  white-space: nowrap;
}

/* Footer */
body.lh-page .site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--lh-border);
  text-align: center;
}

body.lh-page .site-footer-inner {
  max-width: var(--lh-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

body.lh-page .site-footer p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--lh-dim);
}

body.lh-page .site-footer a {
  color: var(--lh-accent);
}

@media (max-width: 640px) {
  .lh-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lh-hero {
    border-radius: 14px;
  }

  .lh-section-head--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .lh-flow-card {
    grid-template-columns: 1fr;
  }

  .lh-flow-number {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Learn topics index (/learn.html) */

.learn-index-main {
  max-width: 56rem;
}

.learn-index-hero {
  margin-bottom: 1.5rem;
}

.learn-index-featured {
  margin-bottom: 1.75rem;
}

.learn-index-featured-link {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.learn-index-featured-link:hover {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
}

.learn-index-featured-link h2 {
  margin: 0.5rem 0 0.45rem;
  font-size: 1.2rem;
  color: var(--lh-text);
}

.learn-index-featured-link p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--lh-muted);
}

.learn-index-featured-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--lh-accent);
}

.learn-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.learn-index-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  background: var(--lh-panel);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.learn-index-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.04);
  transform: translateY(-1px);
}

.learn-index-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.learn-index-thumb img,
.learn-index-thumb picture,
.learn-index-thumb picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-index-card-body {
  padding: 1rem 1.05rem 1.1rem;
}

.learn-index-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.learn-index-card-meta {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.learn-index-card-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--lh-text);
}

.learn-index-card-summary {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

.learn-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.learn-index-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-dim);
  padding: 0.12rem 0.4rem;
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 3px;
}
