@layer reset, base, components, screens, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, blockquote { margin: 0; }
  button, input { font: inherit; }
  button { border: 0; }
  img, canvas { display: block; max-width: 100%; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --ink: #11110f;
    --ink-soft: #1b1c19;
    --paper: #f1e8d5;
    --paper-bright: #fff8e9;
    --signal: #f14a3d;
    --signal-soft: #ff8c80;
    --blue: #9abaff;
    --acid: #d8f36a;
    --line-dark: rgba(17, 17, 15, .2);
    --line-light: rgba(255, 248, 233, .2);
    --muted-dark: rgba(17, 17, 15, .61);
    --muted-light: rgba(255, 248, 233, .62);
    --display: "Arial Black", "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", "Roboto Mono", "JetBrains Mono", monospace;
    --shadow: 0 30px 80px rgba(0, 0, 0, .25);
  }

  html[data-theme="light"] {
    --ink: #161714;
    --paper: #f3ead8;
  }

  body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--paper-bright);
    background: var(--ink);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  button, a { -webkit-tap-highlight-color: transparent; }
  button { color: inherit; cursor: pointer; }
  button:focus-visible, a:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
  ::selection { color: var(--ink); background: var(--acid); }

  .noise {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
  }

  .app-shell { min-height: 100vh; }
  .screen { display: none; min-height: 100vh; }
  .screen.active { display: block; animation: screen-in .65s cubic-bezier(.2, .75, .2, 1) both; }

  @keyframes screen-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@layer components {
  .topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
    padding: 0 clamp(20px, 3.4vw, 58px);
    border-bottom: 1px solid var(--line-light);
    color: var(--paper-bright);
    background: rgba(17, 17, 15, .86);
    backdrop-filter: blur(18px);
  }

  html[data-theme="light"] .topbar { color: var(--ink); background: rgba(243, 234, 216, .88); border-color: var(--line-dark); }

  .brand {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    padding: 8px 0;
    background: transparent;
    letter-spacing: -.02em;
  }

  .brand > span:last-child { display: flex; font-family: var(--display); font-size: 17px; line-height: 1; }
  .brand em { color: var(--signal); font-style: normal; }
  .brand-mark { position: relative; width: 26px; height: 26px; border: 2px solid currentColor; border-radius: 50%; }
  .brand-mark i { position: absolute; left: 50%; top: 50%; width: 2px; height: 9px; background: currentColor; transform-origin: 50% 100%; }
  .brand-mark i:first-child { transform: translate(-50%, -100%) rotate(-42deg); }
  .brand-mark i:last-child { transform: translate(-50%, -100%) rotate(44deg); }

  .system-status { display: flex; align-items: center; gap: 9px; color: var(--muted-light); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
  html[data-theme="light"] .system-status { color: var(--muted-dark); }
  .system-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(216, 243, 106, .1); animation: blink 2.5s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: .35; } }

  .soundless-knob {
    position: relative;
    justify-self: end;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    background: transparent;
  }
  html[data-theme="light"] .soundless-knob { border-color: var(--line-dark); }
  .soundless-knob::before, .soundless-knob::after { position: absolute; inset: 50% auto auto 50%; content: ""; background: currentColor; }
  .soundless-knob::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
  .soundless-knob::after { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: transform .3s; }
  html[data-theme="light"] .soundless-knob::after { transform: translate(-50%, -50%) rotate(45deg); }

  .primary-button, .secondary-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-weight: 850;
    transition: transform .2s, color .2s, background .2s, border-color .2s;
  }
  .primary-button { color: var(--paper-bright); background: var(--signal); }
  .primary-button i { font-style: normal; font-size: 22px; line-height: 1; }
  .secondary-button { border-color: currentColor; background: transparent; }
  .primary-button:hover, .secondary-button:hover { transform: translateY(-3px); }
  .primary-button:active, .secondary-button:active { transform: translateY(0) scale(.98); }

  .section-kicker { color: var(--signal); font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

  .toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1000;
    max-width: calc(100vw - 40px);
    padding: 13px 18px;
    color: var(--paper-bright);
    background: var(--signal);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: translate(-50%, 18px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }
}

@layer screens {
  .home-screen {
    padding-top: 72px;
    color: var(--paper-bright);
    background: var(--ink);
  }

  html[data-theme="light"] .home-screen { color: var(--ink); background: var(--paper); }

  .home-screen.active {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    grid-template-areas: "copy visual" "intro intro";
  }

  .hero-copy {
    grid-area: copy;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(56px, 7vw, 112px) clamp(28px, 6vw, 96px);
    border-right: 1px solid var(--line-light);
  }
  html[data-theme="light"] .hero-copy { border-color: var(--line-dark); }

  .hero-index { position: absolute; top: 100px; display: flex; gap: 22px; color: var(--muted-light); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
  html[data-theme="light"] .hero-index { color: var(--muted-dark); }
  .hero-index b { color: var(--acid); }

  .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; color: var(--muted-light); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
  html[data-theme="light"] .eyebrow { color: var(--muted-dark); }
  .eyebrow-dot { width: 8px; height: 8px; background: var(--signal); }

  .hero-copy h1 {
    display: flex;
    flex-direction: column;
    max-width: 760px;
    font-family: var(--display);
    font-size: clamp(55px, 7.2vw, 116px);
    font-weight: 950;
    letter-spacing: -.075em;
    line-height: .85;
    text-transform: uppercase;
  }
  .hero-copy h1 span:nth-child(2) { transform: translateX(clamp(12px, 3vw, 52px)); }
  .hero-copy h1 i { color: var(--signal); font-style: normal; }
  .outline-word { color: transparent; -webkit-text-stroke: 2px var(--paper-bright); }
  html[data-theme="light"] .outline-word { -webkit-text-stroke-color: var(--ink); }

  .hero-line { max-width: 500px; margin-top: 38px; color: var(--muted-light); font-size: clamp(16px, 1.35vw, 21px); font-weight: 620; line-height: 1.7; }
  html[data-theme="light"] .hero-line { color: var(--muted-dark); }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .hero-footnotes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; color: var(--muted-light); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
  html[data-theme="light"] .hero-footnotes { color: var(--muted-dark); }

  .hero-visual { position: relative; grid-area: visual; min-height: calc(100vh - 72px); overflow: hidden; background: #050505 url("assets/hero-control-wheel.jpg") center 58% / cover no-repeat; }
  .hero-visual::after { position: absolute; inset: 0; content: ""; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); pointer-events: none; }
  .hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; filter: saturate(.95) contrast(1.05); animation: art-in 1.2s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes art-in { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }

  .visual-caption { position: absolute; left: 28px; bottom: 30px; display: flex; align-items: flex-end; gap: 14px; color: white; text-shadow: 0 2px 15px rgba(0,0,0,.8); }
  .visual-caption span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
  .visual-caption b { font-family: var(--display); font-size: 15px; line-height: .95; }

  .live-meter { position: absolute; top: 28px; right: 28px; width: 162px; padding: 14px; color: var(--paper-bright); border: 1px solid rgba(255,255,255,.25); background: rgba(10,10,9,.72); backdrop-filter: blur(12px); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
  .live-meter > div { height: 4px; margin: 9px 0 7px; background: rgba(255,255,255,.18); }
  .live-meter > div i { display: block; width: 74%; height: 100%; background: var(--acid); animation: meter-pulse 2.3s ease-in-out infinite; }
  @keyframes meter-pulse { 50% { width: 42%; } }
  .live-meter b { color: var(--acid); }

  .image-stamp { position: absolute; right: 28px; bottom: 28px; width: 76px; height: 76px; display: grid; place-content: center; border-radius: 50%; color: var(--ink); background: var(--acid); font-family: var(--display); font-size: 24px; line-height: .8; text-align: center; transform: rotate(9deg); }
  .image-stamp small { font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }

  .test-intro { grid-area: intro; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(50px, 8vw, 140px); padding: clamp(80px, 10vw, 150px) clamp(28px, 8vw, 132px); color: var(--ink); background: var(--paper); }
  .intro-lead h2 { max-width: 650px; margin-top: 18px; font-family: var(--display); font-size: clamp(35px, 4.6vw, 70px); letter-spacing: -.055em; line-height: .98; }
  .intro-grid { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
  .intro-grid article { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
  .intro-grid span { grid-row: span 2; color: var(--signal); font-family: var(--mono); font-size: 11px; }
  .intro-grid h3 { font-size: 18px; }
  .intro-grid p { margin-top: 7px; color: var(--muted-dark); font-size: 14px; line-height: 1.7; }
  .boundary-note { grid-column: 1 / -1; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 12px; line-height: 1.8; }
  .boundary-note b { margin-right: 10px; color: var(--ink); }

  /* Quiz */
  .quiz-screen { padding-top: 72px; color: var(--ink); background: var(--paper); }
  .quiz-screen.active { display: block; }
  .quiz-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 185px minmax(0, 1fr); }
  .quiz-rail { display: flex; flex-direction: column; justify-content: space-between; padding: 44px 32px; color: var(--paper-bright); background: var(--ink); }
  .quiz-rail > p { font-family: var(--display); font-size: 19px; line-height: .93; }
  .rail-number { display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; }
  .rail-number span:first-child { color: var(--acid); font-size: 46px; font-weight: 900; }
  .rail-number i { width: 1px; height: 58px; background: var(--line-light); }
  .rail-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .rail-dots i { width: 8px; height: 8px; border: 1px solid var(--line-light); border-radius: 50%; }
  .rail-dots i.done { border-color: var(--acid); background: var(--acid); }
  .rail-dots i.current { border-color: var(--signal); background: var(--signal); transform: scale(1.35); }

  .quiz-stage { width: min(100%, 980px); display: flex; flex-direction: column; justify-self: center; padding: clamp(30px, 4vw, 64px) clamp(24px, 6vw, 90px); }
  .quiz-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .quiz-header p, .quiz-header b { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
  .quiz-header p { color: var(--signal); font-weight: 900; }
  .quiz-header span { display: block; margin-top: 7px; color: var(--muted-dark); font-size: 12px; }
  .progress-line { height: 2px; margin-top: 18px; overflow: hidden; background: rgba(17,17,15,.12); }
  .progress-line i { display: block; width: 4%; height: 100%; background: var(--signal); transition: width .45s cubic-bezier(.2,.8,.2,1); }

  .question-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 72px) 0 42px; }
  .question-panel.changing { animation: question-change .34s ease both; }
  @keyframes question-change { 45% { opacity: 0; transform: translateX(-10px); } 46% { transform: translateX(10px); } }
  .question-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted-dark); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
  .question-meta b { color: var(--signal); font-size: 15px; }
  .question-panel h1 { max-width: 820px; margin-top: 18px; font-family: var(--display); font-size: clamp(26px, 4.2vw, 52px); letter-spacing: -.04em; line-height: 1.17; text-wrap: balance; }
  .options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 52px); }
  .option-button { position: relative; min-height: 105px; display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 15px; padding: 20px; border: 1px solid var(--line-dark); color: var(--ink); background: rgba(255,255,255,.16); text-align: left; transition: color .2s, background .2s, border .2s, transform .2s; }
  .option-button::after { position: absolute; right: 14px; bottom: 10px; content: "↗"; color: transparent; font-size: 17px; transition: color .2s, transform .2s; }
  .option-button:hover, .option-button.selected { color: var(--paper-bright); border-color: var(--ink); background: var(--ink); transform: translateY(-3px); }
  .option-button:hover::after, .option-button.selected::after { color: var(--acid); transform: translate(2px, -2px); }
  .option-key { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--mono); font-size: 10px; }
  .option-copy { font-size: 14px; font-weight: 650; line-height: 1.65; }
  .quiz-footer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 11px; }
  .quiz-footer button { min-height: 44px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 750; }
  .quiz-footer button:disabled { opacity: .3; cursor: not-allowed; }

  /* Result */
  .result-screen { padding-top: 72px; color: var(--ink); background: var(--paper); }
  .result-screen.active { display: block; }
  .result-masthead { padding: clamp(42px, 7vw, 100px) clamp(24px, 8vw, 132px) clamp(54px, 7vw, 105px); color: var(--paper-bright); background: var(--ink); }
  .result-kicker { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); color: var(--muted-light); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
  .result-title-block { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-top: clamp(38px, 6vw, 78px); }
  .result-title-block > div:first-child > p:first-child { color: var(--acid); font-family: var(--mono); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
  .result-title-block h1 { max-width: 950px; margin-top: 12px; font-family: var(--display); font-size: clamp(52px, 9vw, 146px); letter-spacing: -.085em; line-height: .88; }
  .result-title-block #resultLine { max-width: 620px; margin-top: 28px; color: var(--muted-light); font-size: clamp(15px, 1.6vw, 22px); font-weight: 650; line-height: 1.65; }
  .score-dial { --dial-score: calc(var(--score) * 3.6deg); position: relative; width: clamp(160px, 18vw, 248px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--signal) var(--dial-score), rgba(255,255,255,.12) 0); box-shadow: inset 0 0 0 22px var(--ink), inset 0 0 0 23px var(--line-light); }
  .score-dial::before { position: absolute; inset: 28%; content: ""; border: 1px solid var(--line-light); border-radius: 50%; }
  .score-dial > span { position: relative; z-index: 1; display: flex; align-items: flex-start; font-family: var(--display); }
  .score-dial > span b { font-size: clamp(47px, 6vw, 80px); letter-spacing: -.08em; line-height: .8; }
  .score-dial > span small { color: var(--signal); font-size: 15px; }
  .score-dial > i { position: absolute; bottom: 18%; color: var(--muted-light); font-family: var(--mono); font-size: 7px; font-style: normal; letter-spacing: .1em; text-align: center; }

  .result-layout { width: min(100%, 1400px); margin-inline: auto; }
  .report-section { padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 92px); border-bottom: 1px solid var(--line-dark); }
  .summary-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 8vw, 130px); margin-top: 34px; }
  .summary-copy p { max-width: 760px; font-size: clamp(19px, 2.3vw, 33px); font-weight: 680; letter-spacing: -.025em; line-height: 1.65; }
  .summary-grid blockquote { position: relative; align-self: end; padding: 28px 0 0 34px; border-top: 1px solid var(--line-dark); }
  .summary-grid blockquote span { position: absolute; left: 0; top: 17px; color: var(--signal); font-family: Georgia, serif; font-size: 47px; }
  .summary-grid blockquote p { color: var(--muted-dark); font-size: 15px; font-weight: 650; line-height: 1.8; }

  .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
  .section-heading h2, .pathway-section > h2, .share-copy h2 { margin-top: 12px; font-family: var(--display); font-size: clamp(35px, 5vw, 72px); letter-spacing: -.055em; line-height: .98; }
  .section-heading > p { max-width: 380px; color: var(--muted-dark); font-size: 13px; line-height: 1.8; }
  .radar-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(390px, 1.1fr); gap: clamp(35px, 7vw, 110px); align-items: center; margin-top: 54px; }
  .radar-card { position: relative; padding: 5%; aspect-ratio: 1; background: var(--ink); box-shadow: var(--shadow); }
  .radar-card::before { position: absolute; left: 18px; top: 16px; content: "FIG. 02 / FIVE ACCESS LEVELS"; color: var(--muted-light); font-family: var(--mono); font-size: 7px; letter-spacing: .12em; }
  .dimension-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
  .dimension-row { display: grid; grid-template-columns: 36px minmax(120px, .7fr) 1.2fr 42px; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line-dark); }
  .dimension-row > i { width: 12px; height: 12px; border-radius: 50%; background: var(--dim-color); }
  .dimension-row h3 { font-size: 14px; }
  .dimension-row p { color: var(--muted-dark); font-size: 12px; line-height: 1.55; }
  .dimension-row b { justify-self: end; font-family: var(--mono); font-size: 17px; }
  .dimension-meter { grid-column: 2 / -1; height: 3px; margin-top: -7px; background: rgba(17,17,15,.11); }
  .dimension-meter i { display: block; width: var(--value); height: 100%; background: var(--dim-color); animation: meter-grow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
  @keyframes meter-grow { from { transform: scaleX(0); } }

  .pathway-section > h2 { max-width: 900px; margin-top: 14px; }
  .pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
  .pathway-grid article { min-height: 260px; padding: 28px; border-right: 1px solid var(--line-dark); }
  .pathway-grid article:last-child { border-right: 0; }
  .pathway-grid span { color: var(--signal); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; }
  .pathway-grid h3 { margin-top: 45px; font-family: var(--display); font-size: 24px; letter-spacing: -.03em; }
  .pathway-grid p { margin-top: 13px; color: var(--muted-dark); font-size: 14px; line-height: 1.85; }

  .contrast-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .contrast-card { min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 5vw, 68px); }
  .light-card { border: 1px solid var(--line-dark); }
  .dark-card { color: var(--paper-bright); background: var(--ink); }
  .contrast-card > span { margin-bottom: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
  .dark-card > span { color: var(--acid); }
  .contrast-card h2 { font-family: var(--display); font-size: clamp(40px, 5vw, 74px); letter-spacing: -.06em; }
  .contrast-card p { max-width: 540px; margin-top: 17px; color: var(--muted-dark); font-size: 15px; line-height: 1.8; }
  .dark-card p { color: var(--muted-light); }

  .manual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 48px; }
  .manual-grid article { min-height: 230px; display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--line-dark); }
  .manual-grid b { color: var(--signal); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
  .manual-grid span { margin-top: 9px; color: var(--muted-dark); font-size: 12px; }
  .manual-grid p { margin-top: auto; padding-top: 30px; font-size: 18px; font-weight: 720; line-height: 1.65; }
  .manual-grid .script-card { grid-column: 1 / -1; min-height: 260px; color: var(--paper-bright); background: var(--signal); }
  .manual-grid .script-card b, .manual-grid .script-card span { color: var(--paper-bright); }
  .manual-grid .script-card p { max-width: 900px; font-size: clamp(25px, 3.4vw, 44px); letter-spacing: -.035em; }

  .share-section { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(400px, 1.25fr); gap: clamp(45px, 9vw, 140px); align-items: center; color: var(--paper-bright); background: var(--ink); }
  .share-preview { position: relative; max-width: 450px; aspect-ratio: 3 / 4; overflow: hidden; box-shadow: 0 38px 90px rgba(0,0,0,.38); transform: rotate(-2deg); }
  .share-preview::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.3)); }
  .share-preview img { width: 100%; height: 100%; object-fit: cover; }
  .share-preview-copy { position: absolute; inset: auto 8% 9%; z-index: 1; color: var(--paper-bright); }
  .share-preview-copy > span { font-family: var(--mono); font-size: 8px; letter-spacing: .15em; }
  .share-preview-copy b { display: block; margin-top: 8px; font-family: var(--display); font-size: clamp(35px, 5vw, 61px); letter-spacing: -.07em; line-height: .9; }
  .share-preview-copy p { margin-top: 12px; color: var(--acid); font-family: var(--mono); font-size: 11px; }
  .share-preview-copy i { font-style: normal; font-size: 18px; font-weight: 900; }
  .share-copy .section-kicker { color: var(--acid); }
  .share-copy h2 { max-width: 720px; }
  .share-copy > p:not(.section-kicker) { max-width: 570px; margin-top: 24px; color: var(--muted-light); font-size: 14px; line-height: 1.8; }
  .share-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .share-copy .secondary-button { color: var(--paper-bright); }
  .restart-button { min-height: 44px; margin-top: 20px; padding: 0; color: var(--muted-light); background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }

  .safety-section { display: grid; grid-template-columns: 160px 1fr; gap: 30px; color: var(--muted-dark); background: #e7dcc5; font-size: 12px; line-height: 1.8; }
  .safety-section b { color: var(--signal); font-family: var(--mono); letter-spacing: .14em; }
}

@layer responsive {
  @media (max-width: 980px) {
    .system-status { display: none; }
    .topbar { grid-template-columns: 1fr auto; }
    .home-screen.active { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "intro"; }
    .hero-copy { min-height: auto; padding-top: 96px; border-right: 0; }
    .hero-index { top: 94px; }
    .hero-visual { min-height: 72vh; }
    .test-intro { grid-template-columns: 1fr; }
    .boundary-note { grid-column: auto; }
    .radar-layout { grid-template-columns: 1fr; }
    .radar-card { width: min(100%, 620px); margin-inline: auto; }
    .share-section { grid-template-columns: .85fr 1.15fr; gap: 48px; }
  }

  @media (max-width: 740px) {
    .topbar { min-height: 62px; padding-inline: 18px; }
    .screen, .home-screen, .quiz-screen, .result-screen { padding-top: 62px; }
    .brand > span:last-child { font-size: 15px; }
    .soundless-knob { width: 36px; height: 36px; }

    .hero-copy { min-height: calc(72svh - 62px); justify-content: flex-end; padding: 72px 20px 40px; }
    .hero-index { position: static; order: -2; margin-bottom: 46px; }
    .eyebrow { margin-bottom: 18px; }
    .hero-copy h1 { font-size: clamp(50px, 17vw, 82px); line-height: .86; }
    .outline-word { -webkit-text-stroke-width: 1.5px; }
    .hero-copy h1 span:nth-child(2) { transform: translateX(16px); }
    .hero-line { margin-top: 27px; font-size: 15px; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; }
    .hero-footnotes { display: none; }
    .hero-visual { min-height: 68svh; }
    .hero-visual > img { object-position: center; }
    .live-meter { top: 18px; right: 18px; width: 148px; }
    .visual-caption { left: 18px; bottom: 20px; }
    .image-stamp { right: 18px; bottom: 18px; width: 64px; height: 64px; }

    .test-intro { gap: 45px; padding: 70px 20px; }
    .intro-lead h2 { font-size: 39px; }
    .intro-grid article { grid-template-columns: 36px 1fr; }

    .quiz-layout { grid-template-columns: 1fr; min-height: calc(100svh - 62px); }
    .quiz-rail { display: none; }
    .quiz-stage { min-height: calc(100svh - 62px); padding: 24px 18px max(16px, env(safe-area-inset-bottom)); }
    .question-panel { justify-content: flex-start; padding-top: 40px; }
    .question-panel h1 { font-size: 27px; line-height: 1.25; }
    .options { grid-template-columns: 1fr; gap: 9px; margin-top: 30px; }
    .option-button { min-height: 74px; align-items: center; padding: 14px 15px; }
    .option-copy { font-size: 13px; line-height: 1.55; }
    .quiz-footer { margin-top: auto; }
    .quiz-footer span { display: none; }

    .result-masthead { min-height: calc(100svh - 62px); display: flex; flex-direction: column; justify-content: space-between; padding: 34px 20px 48px; }
    .result-title-block { grid-template-columns: 1fr; gap: 42px; align-items: start; }
    .result-title-block h1 { font-size: clamp(57px, 19vw, 91px); }
    .result-title-block #resultLine { margin-top: 22px; font-size: 15px; }
    .score-dial { width: 154px; }
    .report-section { padding: 66px 20px; }
    .summary-grid, .contrast-section, .manual-grid, .share-section { grid-template-columns: 1fr; }
    .summary-copy p { font-size: 20px; }
    .summary-grid { gap: 48px; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 18px; }
    .radar-layout { margin-top: 34px; }
    .dimension-row { grid-template-columns: 22px 1fr 36px; gap: 10px; }
    .dimension-row p { grid-column: 2 / -1; }
    .dimension-meter { grid-column: 2 / -1; }
    .pathway-grid { grid-template-columns: 1fr; }
    .pathway-grid article { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
    .pathway-grid article:last-child { border-bottom: 0; }
    .contrast-section { gap: 12px; }
    .contrast-card { min-height: 330px; }
    .manual-grid .script-card { grid-column: auto; }
    .share-section { gap: 58px; }
    .share-preview { width: min(88%, 410px); margin-inline: auto; }
    .share-actions { display: grid; }
    .safety-section { grid-template-columns: 1fr; gap: 15px; }
  }

  @media (max-width: 390px) {
    .hero-copy h1 { font-size: 52px; }
    .hero-index { margin-bottom: 32px; }
    .hero-copy { padding-bottom: 28px; }
    .hero-visual { min-height: 61svh; }
    .question-panel { padding-top: 26px; }
    .question-panel h1 { font-size: 24px; }
    .option-button { min-height: 68px; }
    .option-copy { font-size: 12.5px; }
    .quiz-header span { display: none; }
    .result-title-block h1 { font-size: 56px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}

/* Readability + plain-language revision */
@layer responsive {
  body { font-size: 18px; }
  .brand > span:last-child { font-size: 18px; }
  .system-status, .hero-index { font-size: 12px; }
  .eyebrow, .section-kicker { font-size: 13px; }
  .primary-button, .secondary-button { min-height: 60px; font-size: 18px; }
  .toast { font-size: 15px; }
  .hero-line { max-width: 600px; font-size: clamp(18px, 1.55vw, 23px); }
  .hero-footnotes, .visual-caption span { font-size: 11px; }
  .visual-caption b { font-size: 18px; }
  .live-meter { width: 176px; font-size: 10px; }
  .image-stamp small { font-size: 9px; }
  .intro-grid span { font-size: 13px; }
  .intro-grid h3 { font-size: 21px; }
  .intro-grid p { font-size: 16px; }
  .boundary-note { font-size: 14px; }
  .quiz-header p, .quiz-header b { font-size: 13px; }
  .quiz-header span { font-size: 14px; }
  .question-meta { font-size: 12px; }
  .option-key { width: 32px; height: 32px; font-size: 12px; }
  .option-copy { font-size: 16px; }
  .quiz-footer, .quiz-footer button { font-size: 14px; }
  .result-kicker { font-size: 12px; }
  .result-title-block > div:first-child > p:first-child { font-size: 14px; }
  .result-title-block #resultLine { font-size: clamp(17px, 1.7vw, 24px); }
  .score-dial > span small { font-size: 18px; }
  .score-dial > i { font-size: 10px; }
  .summary-grid blockquote p { font-size: 17px; }
  .section-heading > p { max-width: 430px; font-size: 15px; }
  .radar-card::before { font-size: 9px; }
  .dimension-row h3 { font-size: 17px; }
  .dimension-row p { font-size: 14px; }
  .dimension-row b { font-size: 19px; }
  .pathway-grid p, .contrast-card p { font-size: 17px; }
  .manual-grid span { font-size: 14px; }
  .manual-grid p { font-size: 20px; }
  .share-preview-copy > span { font-size: 10px; }
  .share-preview-copy p { font-size: 14px; }
  .share-copy > p:not(.section-kicker) { max-width: 630px; font-size: 17px; }
  .restart-button { font-size: 15px; }
  .safety-section { font-size: 14px; }

  .shop-link {
    max-width: 630px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 24px;
    padding: 15px 18px;
    border: 1px solid var(--line-light);
    color: var(--paper-bright);
    text-decoration: none;
    transition: color .2s, background .2s, transform .2s;
  }
  .shop-link:hover { color: var(--ink); background: var(--acid); transform: translateY(-2px); }
  .shop-link span { min-width: 0; display: grid; gap: 5px; }
  .shop-link b { font-size: 18px; }
  .shop-link small { overflow-wrap: anywhere; color: var(--muted-light); font-family: var(--mono); font-size: 14px; }
  .shop-link:hover small { color: rgba(17,17,15,.7); }
  .shop-link i { flex: 0 0 auto; font-size: 26px; font-style: normal; }

  @media (max-width: 740px) {
    .screen.active { animation: none; }
    .brand > span:last-child { font-size: 16px; }
    .hero-copy { min-height: auto; padding: 68px 20px 42px; }
    .hero-copy h1 {
      max-width: 100%;
      font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
      font-size: clamp(45px, 13.5vw, 58px);
      font-weight: 900;
      letter-spacing: -.045em;
      line-height: .96;
    }
    .hero-copy h1 span { white-space: nowrap; }
    .hero-copy h1 span:nth-child(2) { transform: none; }
    .outline-word,
    html[data-theme="light"] .outline-word { color: inherit; -webkit-text-stroke: 0; }
    .hero-line { font-size: 17px; }
    .hero-line { max-width: 100%; overflow-wrap: anywhere; }
    .hero-visual {
      display: block;
      width: 100%;
      height: clamp(320px, 50vw, 380px);
      min-height: 0;
      background-position: center bottom;
    }
    .hero-visual > img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-position: center bottom;
      opacity: 1 !important;
      transform: none !important;
      animation: none !important;
    }
    .question-panel h1 { font-size: 29px; }
    .option-copy { font-size: 15.5px; line-height: 1.55; }
    .result-title-block #resultLine { font-size: 18px; }
    .summary-copy p { font-size: 22px; }
    .share-copy h2 { font-size: 43px; }
  }

  @media (max-width: 390px) {
    .hero-copy h1 { font-size: clamp(43px, 13.5vw, 52px); }
    .hero-visual { height: 320px; min-height: 0; }
    .question-panel h1 { font-size: 27px; }
    .option-copy { font-size: 15px; }
    .shop-link { padding-inline: 15px; }
  }
}
