/*
 * dr-cliff.css
 * jimthompsoncreative.com/work/dr-cliff.html
 * Dr. Cliff (HHS / AAP) AI Playground case study.
 * Requires: design-system.css loaded first.
 * Last updated: 2026-05-26 — v1
 */


/* ============================================================
   §1 HERO
   90vh, photo bg, content bottom-left anchored.
   Visit Mum pattern. Gradient added because hero image may
   not carry the dark legibility on its own.
   ============================================================ */
.dc-hero {
  width: 100%;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 7vw 7vh;
  background-image: url('../assets/dr_cliff_ai_playground/dr-cliff-hero.webp');
  background-size: cover;
  background-position: center top;
  background-color: #1a1e26;
}

.dc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(37,40,47,0.82) 0%,
    rgba(37,40,47,0.35) 50%,
    rgba(37,40,47,0) 100%
  );
  z-index: 1;
}

.dc-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.dc-hero__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .28em;
  margin-bottom: 16px;
  opacity: 0;
  animation: riseIn 0.7s ease 0.3s forwards;
}

.dc-hero__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 3.2vw, 52px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 480px;
  text-shadow: 0 1px 24px rgba(0,0,0,0.5);
  opacity: 0;
  animation: riseIn 0.8s ease 0.5s forwards;
}

.dc-hero__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.65;
  max-width: 560px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
  opacity: 0;
  animation: riseIn 0.7s ease 0.75s forwards;
}


/* ============================================================
   §2 MEET DR. CLIFF
   Skinny copy column (1fr), big video panel (2fr).
   Dr. Cliff's face dominates — copy supports.
   ============================================================ */
.dc-meet {
  padding: 120px 7vw;
}

.dc-meet__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  /* Phone is portrait, not landscape — copy gets the wider column,
     phone column sized to hold a centered phone with breathing room. */
  grid-template-columns: 1.35fr 1fr;
  gap: 5vw;
  align-items: center;
}

.dc-meet__copy {
  display: flex;
  flex-direction: column;
}

.dc-meet__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .28em;
  margin-bottom: 20px;
}

.dc-meet__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.dc-meet__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Legal caption — sits under video, where disclaimers belong.
   Hairline silver, tight monospace, the language of footnotes
   not the language of headlines. */
.dc-meet__legal {
  margin-top: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.55;
  letter-spacing: .04em;
  max-width: 100%;
}

.dc-meet__legal a {
  color: var(--chart);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,212,0,0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.dc-meet__legal a:hover {
  color: var(--chart-hot);
  border-color: var(--chart-hot);
}

/* ── Phone player column ──
   The video is grounded in a phone shell so there's no mistaking
   what the experience is — a product, in the hand, not a clip.
   Phone centered in its column with breathing room around it. */
.dc-meet__video-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Phone shell — pure CSS, no image dependency.
   Width-driven; height follows the 9:16 screen + bezel. */
.dc-phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 11px;
  border-radius: 46px;
  background: #0A0C10;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 18px 40px -24px rgba(0,0,0,0.55);
}

/* Dynamic-island notch */
.dc-phone__island {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 40;
  pointer-events: none;
}

/* The screen = the 9:16 video well */
.dc-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 36px;
  background: var(--mid);
  overflow: hidden;
  cursor: pointer;
}

/* Iframe shows its own set Vimeo thumbnail as the resting frame —
   no separate poster image to crop or manage. */

/* "Ask Dr. Cliff" label on a bottom scrim over the thumbnail,
   guarantees AAA contrast; both fade once the video plays. */
.dc-phone__scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  z-index: 4;
  background: linear-gradient(
    to top,
    rgba(2,6,20,0.88) 8%,
    rgba(2,6,20,0.55) 38%,
    transparent 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.dc-phone__label {
  position: absolute;
  left: 0; right: 0; bottom: 32px;
  z-index: 5;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.dc-phone__scrim.hidden,
.dc-phone__label.hidden {
  opacity: 0;
}

.dc-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2;
}

/* ── Tap-to-play CTA ──
   Sits between body copy and legal note in the copy column.
   Mirrors visit-mum's eco-link CTA pattern. */
.dc-play-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .18em;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: color 0.2s ease;
}
.dc-play-cta:hover {
  color: var(--chart-hot);
}
.dc-play-cta:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 6px;
  border-radius: 2px;
}
.dc-play-cta.is-playing .dc-play-cta__label::after {
  content: ' — playing';
  opacity: 0.6;
  font-weight: 300;
}

.dc-play-cta__ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(184,212,0,0.7);
  background: rgba(184,212,0,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dc-play-cta:hover .dc-play-cta__ring {
  background: rgba(184,212,0,0.16);
  transform: scale(1.06);
}
.dc-play-cta__ring svg {
  width: 9px;
  height: 11px;
  fill: var(--chart);
  margin-left: 2px;
}

.dc-play-cta__label {
  white-space: nowrap;
}


/* ============================================================
   §3a LIBRARY CREATION
   Two-column ecosystem pattern. Sticky copy left, stage right.
   Stage: 1400 × 380 viewBox. Four spheres in a horizontal row.
   Visit Mum sphere pattern: position absolute, PNG fills sphere,
   label sits below.
   ============================================================ */
.dc-lib {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 7vw 80px;
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 60px;
  align-items: center;
}

.dc-lib__copy {
  max-width: 340px;
}

.dc-lib__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--chart);
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.dc-lib__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.dc-lib__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
}

/* ── Library stage ── */
.dc-lib__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 380;
}

.dc-lib__arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   §3b TWO-STEP RAG
   Hub-and-spoke topology. Parent Question = hub.
   Pass One (chartreuse) flows left. Pass Two (silver) flows right.
   Handoff arrow bridges from AAP Match → Generation.
   Stage: 1400 × 900 viewBox (matches Visit Mum exactly).
   Guardrail band sits BELOW the stage, full section width.
   ============================================================ */
.dc-rag {
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 7vw 40px;
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 60px;
  align-items: start;
}

.dc-rag__copy {
  max-width: 340px;
  position: sticky;
  top: 100px;
}

.dc-rag__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--chart);
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.dc-rag__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.dc-rag__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
}

.dc-rag__voice-flag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--chart);
  opacity: 0.7;
  letter-spacing: .08em;
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Legend — color-coded arrow key ── */
.dc-rag__legend {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-rag__legend-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dc-rag__legend-swatch {
  width: 28px;
  height: 1.5px;
  flex-shrink: 0;
  border-radius: 1px;
}

.dc-rag__legend-swatch--chart {
  background: linear-gradient(90deg, rgba(184,212,0,0.2), rgba(184,212,0,0.85));
}

.dc-rag__legend-swatch--silver {
  background: linear-gradient(90deg, rgba(157,162,181,0.2), rgba(232,234,240,0.85));
}

.dc-rag__legend-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── RAG stage ── */
.dc-rag__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 900;
  grid-column: 2;
}

.dc-rag__arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   §3 SHARED — Sphere + signal arrow primitives
   Visit Mum's ecosystem pattern, exact translation:
   - Sphere positioned absolute, PNG fills sphere container
   - Label sits below sphere via separate transform
   - Mix-blend-mode: lighten temporarily strips any dark PNG bg
   - Signal arrow: halo (thick blurred) + core (thin sharp) + bloom
   ============================================================ */

.dc-sphere {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.dc-sphere.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dc-sphere img {
  width: 100%;
  height: auto;
  display: block;
  /* Temporary: rescues dark PNGs that don't have clean transparent bg.
     If PNGs ship truly transparent, can be removed. Same approach as Visit Mum. */
  mix-blend-mode: lighten;
}

/* Hub variant — Parent Question. The only human face on the page. */
.dc-sphere--hub img {
  /* Hub face is human, not a logo on a sphere — don't lighten or blend it.
     Photo PNG already has transparent bg. */
  mix-blend-mode: normal;
}

/* Sphere labels — sit below sphere, centered. Readable typography. */
.dc-sphere__labels {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 18px);
  width: max-content;
  max-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.3;
  pointer-events: none;
}

.dc-sphere__primary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .22em;
}

.dc-sphere__vendor {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: .14em;
}

.dc-sphere__sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 300;
  color: rgba(184,212,0,0.7);
  letter-spacing: .1em;
  margin-top: 2px;
}

/* Hub label sits ABOVE the hub sphere. At top:50% center, the hub is
   mid-stage. A label below would collide with Pass One/Two satellites. */
.dc-sphere--hub .dc-sphere__labels {
  top: auto;
  bottom: 100%;
  transform: translate(-50%, -18px);
}

/* ── Library sphere positions ──
   Stage viewBox: 1400 × 380. Four spheres at 50% vertical.
   Spaced evenly: 12.5%, 37.5%, 62.5%, 87.5%.
   Width tuned per-sphere to normalize visible diameters
   (Visit Mum approach to inconsistent PNG cropping). */
.lib-source  { left: 12.5%; top: 50%; width: 12%; }
.lib-chunk   { left: 37.5%; top: 50%; width: 12%; }
.lib-embed   { left: 62.5%; top: 50%; width: 12%; }
.lib-vector  { left: 87.5%; top: 50%; width: 12%; }

/* ── RAG sphere positions ──
   Stage viewBox: 1400 × 900.
   Hub at center (50%, 50%) — Parent Question, 22% width (largest).
   Pass One satellites on LEFT side at top/bottom.
   Pass Two satellites on RIGHT side at three vertical positions
   with enough vertical clearance to prevent label collisions.
   These percentages match the SVG arrow coordinates exactly. */
.rag-query     { left: 50%; top: 50%; width: 22%; }
.rag-retrieval { left: 12%; top: 30%; width: 13%; }
.rag-source    { left: 12%; top: 70%; width: 13%; }
.rag-gen       { left: 88%; top: 20%; width: 14%; }
.rag-voice     { left: 88%; top: 50%; width: 12%; }
.rag-char      { left: 88%; top: 80%; width: 12%; }


/* ── Signal arrow primitive ──
   Visit Mum exact pattern:
   - Group has class .dc-signal-arrow, opacity 0 initially
   - Inside: halo line (5px stroke, blurred via filter, 0.55 opacity)
            core line (1.25px stroke, sharp)
            terminus bloom circle (radial gradient, scales in)
   - JS adds .draw to group → strokes animate via stroke-dashoffset
   - 400ms later, .bloom added to terminus → flash animation */
.dc-signal-arrow {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dc-signal-arrow.draw {
  opacity: 1;
}

.dc-signal-arrow .core,
.dc-signal-arrow .halo {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.dc-signal-arrow.draw .core,
.dc-signal-arrow.draw .halo {
  stroke-dashoffset: 0;
}

/* Terminus bloom — radial flash at arrival */
.dc-terminus-bloom {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
}
.dc-terminus-bloom.bloom {
  animation: dcBloomPulse 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes dcBloomPulse {
  0%   { opacity: 0; transform: scale(0.4); }
  50%  { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.45; transform: scale(1); }
}


/* ── Guardrail band ──
   Sits BELOW the RAG stage, spanning full section width.
   Lives inside .dc-rag section but outside .dc-rag__stage. */
.dc-guardrail {
  grid-column: 1 / -1;
  margin-top: 60px;
  border-top: 1px solid rgba(184,212,0,0.4);
  border-bottom: 1px solid rgba(184,212,0,0.4);
  background: rgba(184,212,0,0.04);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dc-guardrail.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dc-guardrail__item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .22em;
  white-space: nowrap;
}

.dc-guardrail__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(184,212,0,0.3);
  flex-shrink: 0;
}



/* ============================================================
   ETHICS OVERLAY
   Reuses design-system video-overlay pattern.
   ============================================================ */
.ethics-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ethics-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ethics-overlay__label {
  position: absolute;
  top: 24px;
  left: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .25em;
}

.ethics-overlay__close {
  position: absolute;
  top: 20px;
  right: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ethics-overlay__close:hover {
  color: var(--white);
}

.ethics-overlay__content {
  max-width: 640px;
  padding: 0 40px;
}

.ethics-overlay__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .28em;
  margin-bottom: 24px;
}

.ethics-overlay__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.ethics-overlay__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
}

.ethics-placeholder {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(184,212,0,0.5);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 32px;
  padding: 16px;
  border: 1px dashed rgba(184,212,0,0.2);
  line-height: 1.6;
}


/* ============================================================
   NEXT/PREV BAR
   ============================================================ */
.dc-next {
  width: 100%;
  padding: 48px 7vw 80px;
}

.dc-next__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dc-next__link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .18em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.dc-next__link:hover { color: var(--white); }
.dc-next__link--next { color: var(--chart); }
.dc-next__link--next:hover { color: var(--chart-hot); }

.dc-next__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dc-next__link--prev:hover .dc-next__arrow { transform: translateX(-4px); }
.dc-next__link--next:hover .dc-next__arrow { transform: translateX(4px); }

.dc-next__prefix {
  color: var(--silver);
  opacity: 0.7;
  margin-right: 4px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  /* Collapse to single column. Sticky behavior off. */
  .dc-lib,
  .dc-rag {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .dc-rag__copy {
    position: static;
    max-width: 720px;
  }
  .dc-lib__copy {
    max-width: 720px;
  }
  .dc-rag__stage {
    grid-column: 1;
  }
  /* Guardrail still spans full section */
  .dc-guardrail {
    grid-column: 1;
  }
}

@media (max-width: 900px) {
  .dc-meet__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* Phone centers; legal caption tracks the phone width so it
     doesn't run the full page width when stacked. */
  .dc-meet__video-col { align-items: center; }
  .dc-meet__legal { max-width: 360px; text-align: center; }
  .dc-hero__headline {
    font-size: clamp(28px, 5vw, 40px);
  }
  /* Labels stay readable on tablet */
  .dc-sphere__primary { font-size: 12px; }
  .dc-sphere__vendor  { font-size: 10px; }
  .dc-sphere__sub     { font-size: 9px; }
}

@media (max-width: 600px) {
  .dc-hero { padding: 0 6vw 8vh; }
  .dc-meet { padding: 80px 6vw; }
  .dc-lib { padding: 80px 6vw 40px; }
  .dc-rag { padding: 60px 6vw 40px; }
  .dc-next__inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Mobile: tighter labels since spheres are smaller.
     Sub line hidden on mobile to keep stage from getting cluttered. */
  .dc-sphere__labels {
    transform: translate(-50%, 12px);
    max-width: 140px;
  }
  .dc-sphere__primary { font-size: 10px; letter-spacing: .16em; }
  .dc-sphere__vendor  { font-size: 9px; }
  .dc-sphere__sub     { display: none; }

  /* Guardrail wraps tighter on mobile */
  .dc-guardrail {
    padding: 14px 18px;
    gap: 10px;
    margin-top: 40px;
  }
  .dc-guardrail__item {
    font-size: 9px;
    letter-spacing: .18em;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .dc-hero__eyebrow,
  .dc-hero__headline,
  .dc-hero__body,
  .dc-sphere {
    animation: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .dc-sphere {
    transform: translate(-50%, -50%) !important;
  }
  .dc-signal-arrow {
    opacity: 1 !important;
    transition: none !important;
  }
  .dc-signal-arrow .core,
  .dc-signal-arrow .halo {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .dc-terminus-bloom {
    opacity: 0.45 !important;
    transform: scale(1) !important;
    animation: none !important;
  }
  .dc-guardrail {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================================
   AVATAR STRATEGY OVERLAY
   Full-screen with internal vertical scroll.
   Four options + multicultural. Steel background.
   ============================================================ */
.avatar-overlay {
  position: fixed;
  inset: 0;
  background: var(--steel);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

.avatar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Fixed chrome — label + close stay pinned */
.avatar-overlay__label {
  position: absolute;
  top: 24px;
  left: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .25em;
  z-index: 10;
}

.avatar-overlay__close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  z-index: 10;
}
.avatar-overlay__close:hover { color: var(--white); }

/* Scrollable region — full height, scrolls under fixed chrome */
.avatar-overlay__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 80px 7vw 120px;
}

/* Content column — centered, max width */
.avatar-overlay__content {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Header ── */
.avatar-overlay__header {
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(157,162,181,0.15);
  margin-bottom: 72px;
}

.avatar-overlay__eyebrow {
  margin-bottom: 20px;
}

.avatar-overlay__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 720px;
}

.avatar-overlay__intro {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
  max-width: 680px;
}

/* ── Option rows ──
   Copy left, visuals right.
   Grid: auto (number) | copy column | photos column */
.avatar-option {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  grid-template-areas: "meta copy photos";
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(157,162,181,0.1);
}

.avatar-option__meta   { grid-area: meta; }
.avatar-option__copy   { grid-area: copy; }
.avatar-option__photos { grid-area: photos; }

.avatar-option--multi {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Meta column — number + optional tag */
.avatar-option__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}

.avatar-option__number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  font-weight: 200;
  color: var(--silver);
  line-height: 1;
  letter-spacing: -.02em;
}

.avatar-option__number--chart {
  color: var(--chart);
  font-size: 32px;
}

.avatar-option__tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .28em;
  white-space: nowrap;
  display: block;
  margin-bottom: 10px;
}

/* ── Photo arrangements ── */
.avatar-option__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

/* Option 1 — pair with arrow between: always side-by-side, normalized sizes */
.avatar-option__photos--pair {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.avatar-option__photos--pair .avatar-option__photo-wrap img {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Arrow between pair photos */
.avatar-option__pair-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.avatar-option__pair-arrow svg {
  width: 80px;
  height: 24px;
  display: block;
}

.avatar-option__pair-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .2em;
  white-space: nowrap;
}

/* Option 3 — headshot primary + two news stills stacked */
.avatar-option__photos--trio {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: start;
}
.avatar-option__photos--trio .avatar-option__photo-wrap:first-child {
  grid-row: 1 / 3;
}

/* Multicultural — four portraits in a row */
.avatar-option__photos--multi {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.avatar-option__photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-option__photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
}

.avatar-option__photo-wrap--news img {
  max-width: 220px;
}

.avatar-option__photos--multi .avatar-option__photo-wrap img {
  max-width: 200px;
}

/* Single portrait options (02, etc) — center within column */
.avatar-option__photos:not(.avatar-option__photos--pair):not(.avatar-option__photos--trio):not(.avatar-option__photos--multi):not(.avatar-option__photos--single) {
  justify-content: center;
}
.avatar-option__photos--single {
  display: flex;
  justify-content: center;
}
.avatar-option__photos--single .avatar-option__photo-wrap img {
  max-width: 300px;
}

/* Photo captions */
.avatar-option__caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--silver);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── Copy column ── */
.avatar-option__copy {
  padding-top: 4px;
}

.avatar-option__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.avatar-option__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.75;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .avatar-option {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "meta copy"
      ".    photos";
    grid-template-rows: auto auto;
  }
  .avatar-option__photos--trio {
    grid-template-columns: auto auto;
    grid-template-rows: unset;
  }
  .avatar-option__photos--trio .avatar-option__photo-wrap:first-child {
    grid-row: unset;
  }
}

@media (max-width: 600px) {
  .avatar-overlay__scroll {
    padding: 72px 6vw 80px;
  }
  .avatar-option {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "copy"
      "photos";
    gap: 24px;
  }
  .avatar-option__meta {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .avatar-option__photo-wrap img {
    max-width: 180px;
  }
}
/*
 * ai-playground-s4-bedside-r2.css
 * §4 Bedside Manner — video carousel with listening loop
 * bedside-v19 — fix disclaimer/source race via pendingSegment.
 *
 * Layout: two-column. Skinny left for copy, wider right for player + 4+3 grid.
 * Player: listening loop persistent, active video fades in on top.
 * Grid: 4 across top row, 3 across bottom row (centered).
 * Requires: design-system.css v2 loaded first.
 */


/* ═══════════════════════════════════════════════════════════════════════
   SECTION SHELL
   ═══════════════════════════════════════════════════════════════════════ */

.bedside {
  width: 100%;
  padding: 120px 7vw;
  background: var(--steel);
}

.bedside__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 60px;
  align-items: start;
}


/* ═══════════════════════════════════════════════════════════════════════
   LEFT COLUMN — COPY
   ═══════════════════════════════════════════════════════════════════════ */

.bedside__copy {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
  max-width: 340px;
}

.bedside__eyebrow {
  display: block;
  margin-bottom: 20px;
}

.bedside__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  text-wrap: balance;
}

/* ─── BULLET NOTES — chunked copy, no markers, generous spacing ─── */
.bedside__notes {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bedside__notes li {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.55;
  /* Subtle leading hairline gives the chunks structure without bullets */
  padding-left: 14px;
  position: relative;
}

.bedside__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--chart);
}

.bedside__instruction {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.bedside__dev-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--chart);
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}


/* ═══════════════════════════════════════════════════════════════════════
   RIGHT COLUMN — PLAYER + GRID
   ═══════════════════════════════════════════════════════════════════════ */

.bedside__stage {
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* ─── HERO PLAYER ────────────────────────────────────────────── */

.bedside__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.bedside__loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}

/* When a clip is actively playing, HARD-hide the loop — visibility:hidden plus
   opacity:0. visibility removes it from rendering entirely (not just transparent),
   so even if the active layer's computed height is a pixel short of the player
   box, there is no loop content to peek through anywhere. The "Avatar Video"
   chrome and any edge bleed become impossible. During the bridge the .is-playing
   class is off, so the loop returns for the "Dr. Cliff is thinking" beat.
   visibility is delayed via transition so the opacity fade still reads smoothly. */
.bedside__player.is-playing .bedside__loop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

/* Active layer — padding-ratio wrapper. The 16:9 box is defined in pure CSS
   (the parent .bedside__player already has aspect-ratio:16/9, and this layer
   fills it via inset:0). The pre-existing iframe inside pins to fill this box.
   Because the iframe is correctly sized in the DOM before Vimeo measures it,
   the player never locks the wrong dimensions. */
.bedside__active {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.bedside__active.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* The pre-existing iframe fills the wrapper completely. These are plain rules
   (no !important needed) because we own this iframe — Vimeo attaches to it
   rather than injecting its own. */
.bedside__active iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Bridge overlay — appears ONLY between parent question and Dr. Cliff response.
   Full-player dark veil with a single line of rotating copy. Never visible during
   actual video playback. */
.bedside__bridge {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 40, 47, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bedside__bridge.is-visible {
  opacity: 1;
}

.bedside__bridge-line {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.005em;
  text-align: center;
  max-width: 70%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  /* Subtle rise as the line appears */
  transform: translateY(6px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.bedside__bridge.is-visible .bedside__bridge-line {
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════
   THUMBNAIL GRID — 4 + 3 ASYMMETRIC
   ═══════════════════════════════════════════════════════════════════════ */

.bedside__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Row 2: tiles 5–7 wrap into a 4-col grid. To center 3 tiles in 4 columns,
   shift each by half a column width. */
.bedside__grid .bs-tile:nth-child(5) { grid-column: 1 / span 1; transform: translateX(50%); }
.bedside__grid .bs-tile:nth-child(6) { grid-column: 2 / span 1; transform: translateX(50%); }
.bedside__grid .bs-tile:nth-child(7) { grid-column: 3 / span 1; transform: translateX(50%); }


/* ─── TILE ───────────────────────────────────────────────────── */

.bs-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: opacity 0.25s ease;
}

.bs-tile:hover { opacity: 1; }
.bs-tile:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 6px;
}

.bs-tile__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mid);
}

.bs-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) brightness(0.92);
  transition: filter 0.35s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bs-tile:hover .bs-tile__thumb img,
.bs-tile:focus-visible .bs-tile__thumb img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.03);
}

/* Active tile state — chartreuse hairline + persistent caption color */
.bs-tile.is-active .bs-tile__thumb {
  box-shadow: 0 0 0 2px var(--chart);
}

.bs-tile.is-active .bs-tile__name {
  color: var(--chart);
}

/* ─── TILE META ──────────────────────────────────────────────── */

.bs-tile__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bs-tile__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}

.bs-tile__topic {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════════════
   DISCLAIMER BAR — inside player, pinned bottom edge, doctor segments only
   ═══════════════════════════════════════════════════════════════════════ */

.bedside__disclaimer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bedside__disclaimer.is-visible {
  opacity: 1;
}

.bedside__disclaimer-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ═══════════════════════════════════════════════════════════════════════
   SOURCE CARD — inside player, lower-left, above disclaimer bar
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   SOURCE CARD — inside player, lower-left, above disclaimer bar
   Treatment B: dark pill backing, all elements 11px IBM Plex Mono 500
   ═══════════════════════════════════════════════════════════════════════ */

.bedside__source {
  position: absolute;
  bottom: 40px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 3px;
  padding: 5px 10px 5px 8px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.bedside__source.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bedside__source-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.bedside__source-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bedside__source-arrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--chart);
  white-space: nowrap;
}

/* Jeff routing variant */
.bedside__source.is-route .bedside__source-label {
  display: none;
}

.bedside__source.is-route .bedside__source-title {
  color: var(--white);
}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablet — copy stacks above stage, grid stays 4+3 if room, else 3+3+1 */
@media (max-width: 1100px) {
  .bedside {
    padding: 100px 7vw;
  }
  .bedside__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bedside__copy {
    position: static;
    max-width: 640px;
  }
}

/* Smaller tablet — grid becomes 3 + 3 + 1, drop the row-2 centering offset */
@media (max-width: 900px) {
  .bedside__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bedside__grid .bs-tile:nth-child(5),
  .bedside__grid .bs-tile:nth-child(6),
  .bedside__grid .bs-tile:nth-child(7) {
    grid-column: auto;
    transform: none;
  }
}

/* Mobile — single column, 2-up grid */
@media (max-width: 600px) {
  .bedside {
    padding: 72px 6vw;
  }
  .bedside__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bedside__grid .bs-tile:nth-child(5),
  .bedside__grid .bs-tile:nth-child(6),
  .bedside__grid .bs-tile:nth-child(7) {
    grid-column: auto;
    transform: none;
  }
  .bs-tile__name { font-size: 14px; }
  .bs-tile__topic { font-size: 9px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .bedside__loop,
  .bedside__active,
  .bedside__bridge,
  .bedside__bridge-line,
  .bedside__disclaimer,
  .bedside__source,
  .bs-tile__thumb img {
    transition: none;
  }
}
/*
 * legal-ethics-r16.css
 * AI Playground — §5 Legal & Ethics
 * Requires: design-system.css loaded first.
 * Last updated: 2026-05-28 — r16
 *
 * Sources:
 *   Section grid    — copied from .ug-known in ungrounded.css
 *   Stat rail       — copied from .ug-stats in ungrounded.css
 *   content-overlay — copied verbatim from ungrounded.css
 *   CTA             — copied from .ug-cta-primary in ungrounded.css
 *   .eyebrow        — from design-system.css (no override, margin-bottom added only)
 */


/* ============================================================
   §5 SECTION — copied from .ug-known
   ============================================================ */
.le-section {
  width: 100%;
  padding: 100px 7vw;
  background: var(--steel);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.le-section__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.le-section__copy {
  max-width: 540px;
}

/* Eyebrow: uses .eyebrow from design-system.css — add margin only */
.le-section__eyebrow {
  display: block;
  margin-bottom: 20px;
}

.le-section__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  text-wrap: balance;
}

.le-section__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* CTA — block display, span lines guarantee left alignment */
.le-cta {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--chart);
  text-transform: uppercase;
  letter-spacing: .2em;
  text-align: left;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.le-cta__line {
  display: block;
  line-height: 1.6;
}

.le-cta:hover { color: var(--chart-hot); }

.le-cta:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Image — overflow hidden crops white border */
.le-section__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
}

.le-section__image {
  width: 112%;
  margin-left: -6%;
  height: 112%;
  margin-top: -6%;
  object-fit: cover;
  display: block;
}


/* ============================================================
   STAT RAIL — copied verbatim from .ug-stats
   ============================================================ */
.le-stats {
  width: 100%;
  background: var(--steel);
  padding: 80px 4vw;
}

.le-stats__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}

.le-stat {
  position: relative;
  text-align: center;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.le-stat.le-stat--visible {
  opacity: 1;
  transform: translateY(0);
}

.le-stat:nth-child(1) { transition-delay: 0s; }
.le-stat:nth-child(2) { transition-delay: 0.12s; }
.le-stat:nth-child(3) { transition-delay: 0.24s; }
.le-stat:nth-child(4) { transition-delay: 0.36s; }

.le-stat + .le-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.07);
}

.le-stat__number {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 84px;
  color: var(--chart);
  line-height: 1;
  margin-bottom: 20px;
}

.le-stat__caption {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.45;
}


/* ============================================================
   NEXT BAR
   ============================================================ */
.le-next {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--steel);
}

.le-next__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.le-next__link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: .18em;
  text-decoration: none;
  padding: 28px 0;
  min-height: 44px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.le-next__link:hover { color: var(--white); }
.le-next__prefix { color: var(--silver); }
.le-next__arrow { font-size: 16px; }


/* ============================================================
   CONTENT OVERLAY — copied verbatim from ungrounded.css
   ============================================================ */
.content-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,22,0.97);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.content-overlay.active {
  opacity: 1;
  pointer-events: all;
}


.content-overlay__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 7vw 120px;
}

.content-overlay__header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.content-overlay__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .25em;
  color: var(--chart);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.content-overlay__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0;
  max-width: 760px;
  text-wrap: balance;
}

/* Sub-headline below overlay headline */
.le-overlay__sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
  max-width: 680px;
  margin-top: 20px;
}


/* ============================================================
   Tab nav — anchored to top of overlay, nothing above it, no bounce
   ============================================================ */
.le-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15,17,22,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 0 -7vw 48px;
  padding: 0 7vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.le-tabs::-webkit-scrollbar { display: none; }

.le-tabs__list {
  display: flex;
  list-style: none;
  white-space: nowrap;
}

.le-tabs__tab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  user-select: none;
  white-space: nowrap;
}

.le-tabs__tab:hover { color: var(--white); }
.le-tabs__tab.active { color: var(--chart); border-bottom-color: var(--chart); }

/* Close button — fixed top-right, nav height, no box */
.le-overlay-close {
  position: fixed;
  top: 0;
  right: 32px;
  height: 48px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: rgba(241,242,246,0.7);
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.le-overlay-close:hover {
  color: var(--white);
}

.le-overlay-close:focus-visible {
  outline: 1px solid var(--chart);
  outline-offset: 4px;
}


/* ============================================================
   OVERLAY PANELS
   ============================================================ */
.le-panel { display: none; padding-bottom: 40px; }
.le-panel.active { display: block; }

.le-panel__eyebrow {
  display: block;
  margin-bottom: 20px;
}

.le-panel__headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 200;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.le-panel__intro {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 48px;
}


/* ============================================================
   CHALLENGE CARDS
   ============================================================ */
.le-cards { display: flex; flex-direction: column; gap: 2px; }

.le-card {
  background: var(--barrel);
  position: relative;
  overflow: hidden;
}

.le-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--chart);
  opacity: 0;
  transition: opacity .25s ease;
}

.le-card.open::before { opacity: 1; }

.le-card__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
  user-select: none;
}

.le-card__header:hover {
  background: rgba(255,255,255,0.03);
}

.le-card__header:hover .le-card__title { color: var(--white); }

.le-card__icon {
  width: 36px;
  height: 36px;
  background: rgba(184,212,0,0.1);
  border: 1px solid rgba(184,212,0,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.le-card__icon span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--chart);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.le-card__meta { flex: 1; }

.le-card__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.le-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.3;
  transition: color .2s;
}

.le-card__title strong { font-weight: 500; color: var(--white); }

.le-card__source {
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--silver);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.le-card__source a { color: var(--silver); text-decoration: none; transition: color .2s; }
.le-card__source a:hover { color: var(--chart); }

.le-card__toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  color: var(--chart);
  padding: 4px;
  transition: transform .3s ease, color .2s;
  flex-shrink: 0;
  margin-top: 6px;
}

.le-card.open .le-card__toggle { transform: rotate(45deg); color: var(--white); }

.le-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(0.4,0,0.2,1);
}

.le-card.open .le-card__body { max-height: 2800px; }

.le-card__inner {
  padding: 24px 32px 32px 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.le-col-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.le-col-label--risk     { color: #E07B4A; }
.le-col-label--response { color: var(--chart); }

.le-col-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.7;
}

.le-col-body p + p { margin-top: 12px; }
.le-col-body strong { font-weight: 500; color: var(--white); }

/* Badges */
.le-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-left: 12px;
  vertical-align: middle;
}

.le-badge--high { background: rgba(224,123,74,0.12); color: #E07B4A; border: 1px solid rgba(224,123,74,0.25); }
.le-badge--med  { background: rgba(184,212,0,0.08); color: var(--chart); border: 1px solid rgba(184,212,0,0.2); }
.le-badge--nav  { background: rgba(157,162,181,0.08); color: var(--silver); border: 1px solid rgba(157,162,181,0.2); }

/* Avatar options */
.le-avatar-opts { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }

.le-avatar-opt {
  background: var(--mid);
  padding: 20px 24px;
  border-left: 2px solid transparent;
  transition: border-color .2s;
}

.le-avatar-opt:hover { border-left-color: rgba(184,212,0,0.4); }

.le-avatar-opt__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  color: var(--chart);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.le-avatar-opt__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.le-avatar-opt__body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
}

.le-avatar-opt__status {
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.le-avatar-opt__status--preferred { color: rgba(184,212,0,0.6); }

/* Pills */
.le-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.le-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--barrel);
  padding: 6px 12px;
  transition: border-color .2s, color .2s;
}

.le-pill:hover { border-color: var(--silver); color: var(--white); }
.le-pill--rec { border-color: rgba(184,212,0,0.35); color: var(--chart); }

/* Label grid */
.le-label-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 40px;
}

.le-label-card { background: var(--barrel); padding: 28px; }

.le-label-card__type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--chart);
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.le-label-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.le-label-card__copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
}

.le-label-card__sample {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--mid);
  border-left: 2px solid rgba(184,212,0,0.4);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--silver-bright);
  line-height: 1.6;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .le-section__grid { grid-template-columns: 1fr; gap: 48px; }
  .le-section__copy { max-width: none; }
  .le-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 56px 0; }
  .le-stat + .le-stat::before { display: none; }
  .le-stat:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 60%;
    background: rgba(255,255,255,0.07);
  }
  .le-card__inner { grid-template-columns: 1fr; gap: 20px; padding-left: 32px; }
  .le-card.open .le-card__body { max-height: 6000px; }
}

@media (max-width: 600px) {
  .le-section { padding: 80px 6vw; }
  .le-stats { padding: 64px 6vw; }
  .le-stats__grid { grid-template-columns: 1fr; gap: 48px; }
  .le-stat::after, .le-stat + .le-stat::before { display: none; }
  .content-overlay__inner { padding: 72px 6vw 80px; }
  .le-tabs { margin: 0 -6vw 40px; padding: 0 4vw; }
  .le-card__header { padding: 20px 16px; gap: 12px; }
  .le-card__inner { padding: 0 16px 24px; }
  .le-next__inner { padding: 0 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  .le-stat { opacity: 1; transform: none; transition: none; }
  .le-card__body { transition: none; }
  .le-card.open .le-card__body { max-height: none; overflow: visible; }
  .content-overlay { transition: none; }
}
