/* The Quantum Self Project — production stylesheet.
   Extracted verbatim from the approved draft; design tokens, light/dark
   scheme support, and responsive layout unchanged. */
    :root {
      color-scheme: light dark;
      --bg: #f2f5f3;
      --paper: #ffffff;
      --ink: #142124;
      --muted: #4e6166;
      --line: #cad4d1;
      --soft: #e4ebe8;
      --accent: #007f85;
      --accent-ink: #00565c;
      --warm: #d65b38;
      --warm-soft: #f9ddd3;
      --deep: #102d33;
      --on-deep: #eef9f8;
      --shadow: 0 22px 55px rgba(16,45,51,.11);
      --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
      --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, sans-serif;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #0c1214;
        --paper: #131d20;
        --ink: #edf4f2;
        --muted: #aebfbb;
        --line: #324246;
        --soft: #1b292c;
        --accent: #56cbd0;
        --accent-ink: #8ce1e3;
        --warm: #f08361;
        --warm-soft: #4b2a22;
        --deep: #071a1f;
        --on-deep: #effbfa;
        --shadow: 0 22px 55px rgba(0,0,0,.35);
      }
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--sans);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    .skip-link {
      position: fixed; left: 12px; top: 12px; z-index: 100;
      background: var(--paper); color: var(--ink); padding: 10px 14px;
      transform: translateY(-150%); border: 1px solid var(--line);
    }
    .skip-link:focus { transform: translateY(0); }
    .site-nav {
      width: min(1160px, calc(100% - 36px));
      margin: 0 auto;
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 26px;
      font-size: .9rem;
    }
    .site-nav a {
      text-decoration: none;
      color: var(--muted);
      border-bottom: 1px solid transparent;
    }
    .site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); border-color: currentColor; }
    .nav-mark { margin-right: auto; display: flex; align-items: center; gap: 10px; }
    .nav-mark::before {
      content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warm);
      box-shadow: 15px 0 0 var(--accent);
      margin-right: 15px;
    }
    .nav-mark span { font-family: var(--mono); font-size: .74rem; letter-spacing: .07em; color: var(--muted); }
    .hero {
      width: min(1160px, calc(100% - 36px));
      margin: 10px auto 0;
      min-height: 660px;
      display: grid;
      grid-template-columns: 1.12fr .88fr;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .hero-copy {
      padding: clamp(58px, 8vw, 112px) clamp(20px, 6vw, 78px) 68px 0;
      display: flex; flex-direction: column; justify-content: center;
    }
    .index-label {
      font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
      color: var(--accent-ink); margin: 0 0 22px;
    }
    h1, h2, h3 { margin-top: 0; line-height: 1.06; }
    h1 {
      font-family: var(--serif);
      font-size: clamp(3.15rem, 7vw, 6.6rem);
      font-weight: 400;
      letter-spacing: -.055em;
      margin-bottom: 28px;
      max-width: 790px;
    }
    .hero-copy > p:not(.index-label) {
      font-size: clamp(1.05rem, 1.7vw, 1.28rem);
      max-width: 650px;
      color: var(--muted);
      margin: 0 0 36px;
    }
    .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
    .button {
      display: inline-flex; align-items: center; justify-content: center; gap: 11px;
      min-height: 48px; padding: 0 20px;
      border: 1px solid var(--accent);
      background: var(--accent); color: #fff;
      text-decoration: none; font-weight: 650; font-size: .94rem;
    }
    .button:hover, .button:focus-visible { background: var(--accent-ink); }
    .text-link { color: var(--ink); text-underline-offset: 5px; font-size: .94rem; }
    .hero-visual {
      position: relative;
      background: var(--deep);
      overflow: hidden;
      min-height: 560px;
      display: grid;
      place-items: center;
      isolation: isolate;
    }
    .hero-visual::before {
      content: ""; position: absolute; inset: 0;
      background-image: linear-gradient(rgba(238,249,248,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(238,249,248,.06) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: linear-gradient(to bottom, black, transparent 90%);
      z-index: -2;
    }
    .orbit-stage { position: relative; width: min(420px, 84%); aspect-ratio: 1; }
    .orbit { position: absolute; inset: 13%; border: 1px solid rgba(238,249,248,.44); border-radius: 50%; }
    .orbit.a { transform: rotate(0deg) scaleY(.43); }
    .orbit.b { transform: rotate(60deg) scaleY(.43); }
    .orbit.c { transform: rotate(120deg) scaleY(.43); }
    .nucleus {
      position: absolute; left: 50%; top: 50%; translate: -50% -50%;
      width: 34%; aspect-ratio: 1; border-radius: 50%;
      background: var(--warm);
      display: grid; place-items: center;
      color: white; text-align: center; font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.35rem);
      box-shadow: 0 0 0 18px rgba(214,91,56,.12);
    }
    .particle { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #9be2e1; }
    .p1 { left: 13%; top: 46%; }
    .p2 { right: 21%; top: 20%; background: #ffd4c6; }
    .p3 { right: 17%; bottom: 23%; }
    .axis-word {
      position: absolute; color: rgba(238,249,248,.76); font-family: var(--mono); font-size: .66rem;
      letter-spacing: .08em; text-transform: uppercase;
    }
    .w1 { left: 6%; top: 7%; } .w2 { right: 4%; top: 46%; } .w3 { left: 9%; bottom: 6%; }
    .section { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 112px 0; }
    .section-heading { display: grid; grid-template-columns: .62fr 1.38fr; gap: 48px; margin-bottom: 58px; }
    .section-heading .index-label { padding-top: 9px; }
    h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.35rem, 5vw, 4.4rem); letter-spacing: -.042em; }
    .section-heading h2 { margin-bottom: 18px; }
    .section-heading .lead { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
    .topic-layout { display: grid; grid-template-columns: 330px 1fr; gap: 48px; align-items: start; }
    .topic-tabs { display: grid; border-top: 1px solid var(--line); }
    .topic-tab {
      appearance: none; border: 0; border-bottom: 1px solid var(--line);
      padding: 19px 2px; background: transparent; color: var(--muted);
      text-align: left; font: 600 1rem var(--sans); cursor: pointer;
      display: flex; align-items: center; gap: 16px;
    }
    .topic-tab span { font: .72rem var(--mono); color: var(--accent-ink); }
    .topic-tab[aria-selected="true"] { color: var(--ink); padding-left: 14px; box-shadow: inset 3px 0 0 var(--warm); }
    .topic-panel { min-height: 330px; background: var(--paper); padding: clamp(28px, 5vw, 58px); box-shadow: var(--shadow); }
    .topic-panel[hidden] { display: none; }
    .topic-panel h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.035em; margin-bottom: 18px; }
    .topic-panel p { color: var(--muted); font-size: 1.06rem; max-width: 690px; }
    .question-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
    .question-list li { padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
    .question-list li::before { content: "↳"; color: var(--warm); }
    .manifesto { background: var(--deep); color: var(--on-deep); }
    .manifesto-inner { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: .62fr 1.38fr; gap: 48px; }
    .manifesto .index-label { color: #78d6d6; }
    .manifesto blockquote { margin: 0; }
    .manifesto blockquote p { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.65rem); letter-spacing: -.04em; line-height: 1.08; margin: 0; }
    .manifesto .principles { grid-column: 2; margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .principle { border-top: 1px solid rgba(238,249,248,.25); padding-top: 18px; }
    .principle strong { display: block; font-family: var(--mono); color: #91e2e1; font-size: .74rem; letter-spacing: .06em; margin-bottom: 10px; }
    .principle p { color: #bfcecc; margin: 0; font-size: .94rem; }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); }
    .about-grid h2 { max-width: 590px; }
    .about-portrait {
      display: block;
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      margin-top: 36px;
      box-shadow: var(--shadow);
    }
    .about-copy > p { font-size: 1.06rem; color: var(--muted); }
    .credentials { margin-top: 34px; border-top: 1px solid var(--line); }
    .credential { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
    .credential span { color: var(--accent-ink); font: .74rem var(--mono); padding-top: 3px; }
    .credential p { margin: 0; }
    .origin-note { margin-top: 38px; padding: 28px; background: var(--warm-soft); color: var(--ink); }
    .origin-note p { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
    .start { border-top: 1px solid var(--line); }
    .start-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
    .start-copy h2 { max-width: 620px; }
    .start-copy p { color: var(--muted); max-width: 540px; }
    .faq { border-top: 1px solid var(--line); }
    details { border-bottom: 1px solid var(--line); }
    summary { cursor: pointer; list-style: none; padding: 23px 44px 23px 0; font-weight: 650; position: relative; }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.6rem var(--serif); color: var(--accent-ink); }
    details[open] summary::after { content: "−"; }
    details p { color: var(--muted); margin: -3px 0 25px; max-width: 660px; }
    .contact-band { width: min(1160px, calc(100% - 36px)); margin: 0 auto 34px; background: var(--paper); padding: clamp(34px, 6vw, 70px); display: flex; align-items: center; justify-content: space-between; gap: 32px; box-shadow: var(--shadow); }
    .contact-band h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 10px; }
    .contact-band p { color: var(--muted); margin: 0; }
    footer { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 52px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 30px; color: var(--muted); font-size: .82rem; }
    footer p { margin: 0; max-width: 800px; }
    :focus-visible { outline: 3px solid color-mix(in srgb, var(--warm) 70%, transparent); outline-offset: 4px; }
    @media (prefers-reduced-motion: no-preference) {
      .particle { animation: pulse 3.6s ease-in-out infinite; }
      .p2 { animation-delay: -1.2s; } .p3 { animation-delay: -2.4s; }
      @keyframes pulse { 50% { transform: scale(1.65); opacity: .55; } }
    }
    @media (max-width: 820px) {
      .site-nav { gap: 17px; }
      .site-nav a:nth-of-type(2) { display: none; }
      .hero { grid-template-columns: 1fr; }
      .hero-copy { padding-right: 0; }
      .hero-visual { min-height: 430px; }
      .section-heading, .manifesto-inner, .about-grid, .start-grid { grid-template-columns: 1fr; gap: 25px; }
      .topic-layout { grid-template-columns: 1fr; gap: 28px; }
      .topic-tabs { grid-template-columns: 1fr 1fr; }
      .topic-tab { padding: 15px 10px; }
      .topic-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--warm); padding-left: 10px; }
      .manifesto .principles { grid-column: 1; grid-template-columns: 1fr; margin-top: 26px; }
      .contact-band { align-items: flex-start; flex-direction: column; }
    }
    @media (max-width: 560px) {
      .site-nav { min-height: 64px; }
      .nav-mark span { display: none; }
      .hero { min-height: auto; }
      .hero-copy { padding-top: 52px; padding-bottom: 54px; }
      h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
      .hero-visual { min-height: 360px; }
      .section, .manifesto-inner { padding: 82px 0; }
      .section-heading { margin-bottom: 42px; }
      .topic-tabs { grid-template-columns: 1fr; }
      .topic-panel { min-height: 410px; }
      footer { grid-template-columns: 1fr; }
    }
  