:root {
    --bg: #0d0c10;
    --bg2: #13111a;
    --bg3: #1a1726;
    --cream: #f0ead8;
    --muted: #7a7490;
    --amber: oklch(0.72 0.14 65);
    --amber-glow: oklch(0.72 0.14 65 / 0.15);
    --green: oklch(0.68 0.16 155);
    --green-glow: oklch(0.68 0.16 155 / 0.12);
    --red-bad: oklch(0.62 0.14 25);
    --blue-cold: oklch(0.65 0.18 245);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--bg);
    color: var(--cream);
    overflow-x: hidden;
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% 100%, oklch(0.35 0.12 65 / 0.3) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 50% 50%, oklch(0.25 0.1 155 / 0.15) 0%, transparent 60%);
  }

  .stars { position: absolute; inset: 0; pointer-events: none; }
  .star {
    position: absolute; background: white; border-radius: 50%;
    animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
  }
  @keyframes twinkle {
    0%, 100% { opacity: var(--min-op, 0.2); }
    50%       { opacity: var(--max-op, 0.9); }
  }

  .eyebrow {
    font-size: 11px;  letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--amber);
    margin-bottom: 28px; position: relative;
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 700; line-height: 1.0;
    letter-spacing: -0.02em; position: relative; max-width: 900px;
  }
  .hero h1 em { font-style: italic; color: var(--amber); }

  .hero-sub {
    margin-top: 28px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted); 
    max-width: 520px; position: relative;
  }

  .hero-graphic { margin-top: 60px; }

  /* ── LAYOUT ── */
  .container     { max-width: 720px;  margin: 0 auto; padding: 0 32px; }
  .wide-container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

  section { padding: 100px 0; }
  section + section { border-top: 1px solid oklch(1 0 0 / 0.06); }

  h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700; line-height: 1.15;
    letter-spacing: -0.01em; margin-bottom: 32px;
  }
  h2 em { font-style: italic; color: var(--amber); }

  h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem; font-weight: 700;
    margin-bottom: 10px; margin-top: 36px;
  }

  p { margin-bottom: 20px; font-size: 1.05rem; color: oklch(0.88 0.01 80); }
  strong { font-weight: 700; color: var(--cream); }

  /* ── PULL QUOTE ── */
  .pull-quote {
    border-left: 3px solid var(--amber);
    padding: 24px 32px; margin: 48px 0;
    background: var(--amber-glow);
    border-radius: 0 8px 8px 0;
  }
  .pull-quote p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic; color: var(--cream);
    margin: 0; line-height: 1.5;
  }

  /* ── STAT CARDS ── */
  .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin: 56px 0;
  }
  .stat-card {
    background: var(--bg2);
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 16px; padding: 32px 28px;
    text-align: center;
  }
  .stat-card .num {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem; font-weight: 700;
    line-height: 1; margin-bottom: 8px;
  }
  .stat-card .label {
    font-size: 0.88rem; color: var(--muted); line-height: 1.5;
  }
  .stat-card .label strong { color: var(--cream); display: block; font-size: 0.95rem; margin-bottom: 4px; }

  /* ── FINDING CARDS ── */
  .findings { display: flex; flex-direction: column; gap: 0; margin: 48px 0; }
  .finding {
    display: grid; grid-template-columns: 64px 1fr;
    gap: 28px; align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
  }
  .finding:last-child { border-bottom: none; }
  .finding-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .finding h3 { margin-top: 0; font-size: 1.2rem; }
  .finding p  { margin-bottom: 0; font-size: 0.95rem; }

  /* ── CONTRAST BLOCK ── */
  .contrast-block {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2px; border-radius: 16px; overflow: hidden; margin: 56px 0;
  }
  .contrast-side { padding: 48px 40px; display: flex; flex-direction: column; gap: 16px; }
  .contrast-side.bad  { background: oklch(0.15 0.04 245); }
  .contrast-side.good { background: oklch(0.16 0.05 80); }
  .contrast-label {
    font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
 opacity: 0.6;
  }
  .contrast-side.bad  .contrast-label { color: var(--blue-cold); }
  .contrast-side.good .contrast-label { color: var(--amber); }
  .contrast-item {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-style: italic;
  }
  .contrast-side.bad  .contrast-item { color: oklch(0.7 0.08 245); }
  .contrast-side.good .contrast-item { color: oklch(0.82 0.1 75); }

  /* ── CLOSING ── */
  .closing {
    text-align: center; padding: 140px 32px;
    position: relative; overflow: hidden;
  }
  .closing-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, oklch(0.32 0.1 65 / 0.15) 0%, transparent 70%);
  }
  .closing h2 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 700px; margin: 0 auto 32px; }
  .closing p  { max-width: 480px; margin: 0 auto; font-size: 1.1rem; color: var(--muted); }

  footer {
    text-align: center; padding: 40px 32px;
    font-size: 12px; color: oklch(0.45 0 0);
    border-top: 1px solid oklch(1 0 0 / 0.06);
  }
  footer a { color: var(--amber); text-decoration: none; }

/*
  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible { opacity: 1; transform: none; }
*/
  
    .contrast-block { grid-template-columns: 1fr; }
    .finding { grid-template-columns: 48px 1fr; gap: 16px; }

  /* ── MOBILE ── */
  @media (max-width: 640px) {
    body { overflow-x: hidden; }

    .container      { padding: 0 16px !important; }
    .wide-container { padding: 0 12px !important; overflow-x: hidden; }

    section { padding: 64px 0; }

    /* Cards and boxes */
    .graphic-card, .info-card, .stat-card,
    .collagen-viz, .chart-wrap, .geo-wrap,
    .spectrum-wrap, .references, .contrast-block,
    .signal-block, .it-row, .it-header,
    .pull-quote, .finding, .mechanism,
    .cascade, .pillar, .step { padding: 20px 16px !important; }

    /* All 2-col grids → 1 col */
    .graphic-grid, .two-col, .trio,
    .bullet-grid, .stat-row,
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"] {
      grid-template-columns: 1fr !important;
    }

    /* Contrast / compare blocks */
    .contrast-block, .compare-block, .modern-vs,
    [style*="grid-template-columns: 1fr 1fr;"],
    [style*="grid-template-columns:1fr 1fr;"] {
      display: block !important;
    }

    .contrast-side, .compare-side,
    .modern-side { padding: 28px 18px !important; }

    /* Stat band */
    .stat-band {
      flex-direction: column !important;
      gap: 20px !important;
      padding: 32px 18px !important;
    }
    .stat-num { font-size: 3.5rem !important; }

    /* Steps */
    .step  { grid-template-columns: 40px 1fr !important; gap: 12px !important; }
    .step-num { font-size: 2rem !important; }
    .mech-step { grid-template-columns: 1fr !important; }

    /*
    .mech-icon, .pillar-icon, .finding-icon { display: none !important; }
    */

    /* Tables */
    .it-header, .it-row {
      grid-template-columns: 1fr 1fr !important;
      padding: 12px 14px !important;
    }
    .it-bar-wrap, .it-context { display: none !important; }

    /* Inline padded divs */
    [style*="padding: 48px"], [style*="padding:48px"] {
      padding: 24px 16px !important;
    }
    [style*="padding: 40px 48px"], [style*="padding:40px 48px"] {
      padding: 22px 16px !important;
    }
    [style*="padding: 56px 48px"], [style*="padding:56px 48px"] {
      padding: 28px 16px !important;
    }

    /* Signal blocks side by side → stack */
    [style*="grid-template-columns: 1fr 1fr; gap:2px"],
    [style*="grid-template-columns:1fr 1fr; gap:2px"],
    [style*="display: grid; grid-template-columns: 1fr 1fr"] {
      display: block !important;
    }

    /* SVG scroll wrapper */
    .svg-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin: 0 -4px;
      padding-bottom: 8px;
    }

    /* Closing */
    .closing { padding: 80px 16px !important; }
    .closing h2 { font-size: clamp(2rem, 9vw, 3.2rem) !important; }

    /* References */
    .references { padding: 24px 16px !important; }

    /* Hero graphic scales down */
    .hero-graphic svg,
    .hero > div > svg { max-width: 100% !important; height: auto !important; }

    footer { padding: 24px 16px; font-size: 11px; }
  }
