  :root {
    --bg: #0d0c10;
    --bg2: #13111a;
    --cream: #f0ead8;
    --muted: #7a7490;
    --amber: oklch(0.72 0.14 65);
    --amber-glow: oklch(0.72 0.14 65 / 0.15);
    --red: oklch(0.62 0.18 25);
    --red-glow: oklch(0.62 0.18 25 / 0.12);
    --purple: oklch(0.65 0.18 295);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--bg);
    overflow-x: hidden;
  }

  .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.3 0.12 25 / 0.25) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 50% 50%, oklch(0.2 0.08 295 / 0.12) 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; font-weight: 400; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--red);
    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; max-width: 880px; position: relative;
  }
  .hero h1 em { font-style: italic; color: var(--red); }

  .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; position: relative; }

  .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(--red); }

  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: 400; color: var(--cream); }

  .pull-quote {
    border-left: 3px solid var(--red);
    padding: 24px 32px; margin: 48px 0;
    background: var(--red-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;
  }

  /* big stat */
  .big-stat {
    font-family: 'Playfair Display', serif;
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 700; line-height: 1; color: var(--red);
    margin: 16px 0 8px;
  }
  .big-stat-label { font-size: 1rem; color: var(--muted); }

  /* intensity table */
  .intensity-table {
    background: var(--bg2);
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 16px; overflow: hidden; margin: 56px 0;
  }
  .it-header {
    display: grid; grid-template-columns: 1fr 1fr 2fr;
    padding: 16px 32px;
    border-bottom: 1px solid oklch(1 0 0 / 0.08);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted); font-weight: 400;
  }
  .it-row {
    display: grid; grid-template-columns: 1fr 1fr 2fr;
    padding: 22px 32px;
    border-bottom: 1px solid oklch(1 0 0 / 0.05);
    align-items: center;
  }
  .it-row:last-child { border-bottom: none; }
  .it-lux { font-weight: 400; color: var(--cream); font-size: 0.95rem; }
  .it-pct {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700; color: var(--red);
  }
  .it-bar-wrap {
    height: 8px; background: oklch(1 0 0 / 0.06);
    border-radius: 4px; overflow: hidden;
  }
  .it-bar {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, oklch(0.55 0.16 25), oklch(0.65 0.18 25));
  }
  .it-context { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }

  /* steps */
  .steps { display: flex; flex-direction: column; margin: 48px 0; }
  .step {
    display: grid; grid-template-columns: 72px 1fr;
    gap: 24px; align-items: start;
    padding: 32px 0; border-bottom: 1px solid oklch(1 0 0 / 0.06);
  }
  .step:last-child { border-bottom: none; }
  .step-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700;
    color: var(--red); line-height: 1; opacity: 0.5;
  }
  .step h3 { margin-top: 0; font-size: 1.2rem; }
  .step p  { margin-bottom: 0; font-size: 0.95rem; }

  /* references */
  .references {
    background: var(--bg2); border: 1px solid oklch(1 0 0 / 0.07);
    border-radius: 16px; padding: 40px 48px; margin-top: 32px;
  }
  .ref-title {
    font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--red); font-weight: 400; margin-bottom: 24px;
  }
  .ref-item {
    padding: 14px 0; border-bottom: 1px solid oklch(1 0 0 / 0.05);
    font-size: 0.9rem; color: var(--muted); line-height: 1.6;
  }
  .ref-item:last-child { border-bottom: none; }
  .ref-item strong { color: oklch(0.72 0.05 80); font-weight: 400; }

  .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.28 0.1 25 / 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; }
*/
  
    .it-row .it-bar-wrap, .it-row .it-context { display: none; }
    .step { grid-template-columns: 52px 1fr; }
    .references { padding: 28px 20px; }




  /* ── 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; }
  }