: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);
    --purple: oklch(0.65 0.18 295);
    --purple-glow: oklch(0.65 0.18 295 / 0.12);
    --red: oklch(0.62 0.18 25);
    --blue: oklch(0.62 0.20 255);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: var(--bg);
    color: var(--cream);
    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 295 / 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,.2)} 50%{opacity:var(--max-op,.9)}
  }

  .eyebrow {
    font-size: 11px;  letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--purple);
    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: 900px; position: relative;
  }
  .hero h1 em { font-style: italic; color: var(--purple); }

  .hero-sub {
    margin-top: 28px; font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted); max-width: 540px; 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(--purple); }

  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 {
    border-left: 3px solid var(--purple);
    padding: 24px 32px; margin: 48px 0;
    background: var(--purple-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;
  }

  /* cascade chain */
  .cascade {
    background: var(--bg2); border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 16px; padding: 48px; margin: 56px 0;
    position: relative; overflow: hidden;
  }
  .cascade-label {
    font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--purple);  margin-bottom: 36px;
  }
  .cascade-steps { display: flex; flex-direction: column; gap: 0; }
  .cascade-step {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 20px 0; border-bottom: 1px solid oklch(1 0 0 / 0.05);
  }
  .cascade-step:last-child { border-bottom: none; }
  .cascade-arrow {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; color: var(--purple); opacity: 0.5;
    line-height: 1.2; flex-shrink: 0; margin-top: 2px;
  }
  .cascade-text { font-size: 0.98rem; color: oklch(0.84 0.01 80); line-height: 1.6; }
  .cascade-text strong { color: var(--cream); }

  /* trio cards */
  .trio { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; border-radius: 16px; overflow: hidden; margin: 56px 0; }
  .trio-card { padding: 40px 32px; display: flex; flex-direction: column; gap: 12px; }
  .trio-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;  opacity: 0.65; }
  .trio-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; }
  .trio-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

  /* finding items */
  .findings { display: flex; flex-direction: column; margin: 48px 0; }
  .finding {
    display: grid; grid-template-columns: 56px 1fr;
    gap: 24px; align-items: start;
    padding: 32px 0; border-bottom: 1px solid oklch(1 0 0 / 0.06);
  }
  .finding:last-child { border-bottom: none; }
  .finding-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 4px;
  }
  .finding h3 { margin-top: 0; font-size: 1.15rem; }
  .finding p  { margin-bottom: 0; font-size: 0.95rem; }

  /* steps -->  */
  .steps { display: flex; flex-direction: column; margin: 48px 0; }
  .step {
    display: grid; grid-template-columns: 64px 1fr;
    gap: 24px; align-items: start;
    padding: 30px 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: 2.8rem;
    font-weight: 700; color: var(--purple); line-height: 1; opacity: 0.4;
  }
  .step h3 { margin-top: 0; font-size: 1.15rem; }
  .step p  { margin-bottom: 0; font-size: 0.95rem; }

  /* latitude chart -->  */
  .chart-wrap {
    background: var(--bg2); border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 16px; padding: 48px; margin: 56px 0;
  }
  .chart-label {
    font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--purple);  margin-bottom: 36px;
  }

  /* ref -->  */
  .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(--purple); 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: 700; }

  .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.10 295 / 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; }
*/
  
    .finding { grid-template-columns: 1fr; }
    .finding-icon { display: none; }
    .step { grid-template-columns: 48px 1fr; }
    .references { padding: 28px 20px; }

 .both-sides {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2px; border-radius: 16px; overflow: hidden; margin: 56px 0;
  }



  /* ── MOBILE ── */
  @media (max-width: 640px) {
    body { overflow-x: hidden; }


.spec-compare {
  display: block !important;
}

    .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; }

    .both-sides { display: block !important; }
  }