:root {
  --bg: #0d0f12;
  --bg-soft: #111419;
  --panel: #15181d;
  --panel-2: #1b1f25;
  --text: #f5f7fa;
  --muted: #a6aebb;
  --line: #2c323b;
  --accent: #e66b64;
  --accent-strong: #f07b73;
  --accent-soft: rgba(230, 107, 100, .12);
  --accent-faint: rgba(230, 107, 100, .055);
  --radius: 24px;
  --max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(230, 107, 100, .08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input { font: inherit; }

button { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 0;
  height: 4px;
  background: var(--accent);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.chapter-pill,
.control {
  border: 1px solid var(--line);
  background: rgba(13, 15, 18, .88);
  backdrop-filter: blur(12px);
}

.chapter-pill {
  max-width: min(54vw, 520px);
  overflow: hidden;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.controls { display: flex; gap: 8px; }

.control {
  min-width: 44px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 17px;
  transition: border-color .2s, background .2s, transform .2s;
}

.control:hover,
.control:focus-visible {
  border-color: var(--accent);
  background: var(--panel);
  outline: none;
  transform: translateY(-1px);
}

.control-present { min-width: 104px; }

.rics-dock {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 90;
  display: flex;
  width: min(900px, calc(100% - 48px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 15, 18, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.rics-dock .rics-button {
  min-height: 54px;
  padding: 9px 13px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.rics-dock .rics-button:last-child { border-right: 0; }
.rics-dock .rics-number { font-size: 15px; }
.rics-dock .rics-label { font-size: 17px; }

.scene {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding: 112px 0 76px;
  scroll-margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, .035);
}

.scene:nth-child(even) { background: rgba(255, 255, 255, .012); }

.scene-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
}

h1,
h2,
h3,
p { margin: 0; }

h1 {
  font-size: clamp(58px, 5.2vw, 80px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

h1 span { display: block; white-space: nowrap; }

h2 {
  max-width: 1120px;
  font-size: clamp(44px, 4vw, 60px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

h3 {
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.25;
}

.scene-heading { margin-bottom: 30px; }

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.heading-row .scene-heading { margin-bottom: 0; }

.interaction-hint {
  max-width: 320px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  text-align: right;
}

.statement {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--accent-faint);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 750;
  line-height: 1.42;
}

.statement-large {
  max-width: 1180px;
  margin-top: 0;
  font-size: clamp(28px, 2.6vw, 40px);
}

.support-note {
  margin-top: 24px;
  color: #d8dce3;
  font-size: 22px;
  line-height: 1.5;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.flow-node {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  font-size: 20px;
  line-height: 1.25;
  white-space: nowrap;
}

.flow-arrow {
  color: var(--muted);
  font-size: 21px;
}

/* Opening */
.scene-hero { padding-top: 120px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: center;
}

.hero-subtitle {
  max-width: 830px;
  margin-top: 24px;
  color: #d9dde4;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.5;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.qr-card:hover,
.qr-card:focus-visible {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-3px);
}

.qr-card img {
  width: 160px;
  height: 160px;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
}

.qr-copy { display: grid; gap: 6px; }
.qr-copy strong { font-size: 22px; }
.qr-copy span { color: var(--muted); font-size: 17px; }
.qr-copy code { color: #f2b0ab; font-size: 16px; overflow-wrap: anywhere; }

.section-jumps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.section-jump {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 150px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.section-jump:hover,
.section-jump:focus-visible {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-3px);
}

.section-jump span { color: var(--muted); font-size: 18px; }
.section-jump strong { align-self: end; font-size: 30px; }
.section-jump b { position: absolute; top: 22px; right: 24px; color: var(--accent); font-size: 26px; }
.hero-flow { margin-top: 24px; }

/* First section */
.shift-grid {
  display: grid;
  grid-template-columns: .75fr 1.45fr;
  gap: 18px;
  margin-top: 28px;
}

.phase-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.phase-card > span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 19px;
}

.phase-now {
  border-color: rgba(230, 107, 100, .55);
  background: var(--accent-soft);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.experience-card {
  min-height: 162px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}

.experience-card:hover,
.experience-card:focus-visible,
.experience-card.active {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-2px);
}

.experience-card.active { background: var(--accent-soft); }
.experience-card span { display: block; margin-bottom: 13px; color: var(--muted); font-size: 18px; }
.experience-card strong { font-size: clamp(25px, 2vw, 31px); line-height: 1.35; }

.experience-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: var(--accent-soft);
}

.experience-detail > div { display: grid; gap: 8px; align-content: start; }
.experience-detail span { color: var(--muted); font-size: 17px; }
.experience-detail p { font-size: 22px; line-height: 1.5; }
.experience-detail strong { font-size: 23px; line-height: 1.45; }
.detail-pop { animation: detail-pop .28s ease both; }

@keyframes detail-pop {
  from { opacity: .3; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.problem-list { display: grid; gap: 14px; }

.problem-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.problem-index { color: var(--accent); font-size: 24px; font-weight: 800; }
.problem-card h3 { margin-bottom: 5px; font-size: 27px; }
.problem-card p { color: #d5d9e0; font-size: 20px; line-height: 1.45; }
.solution-pill { display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); }
.solution-pill span { color: var(--muted); font-size: 16px; }
.solution-pill strong { font-size: 22px; }
.summary-flow { justify-content: center; margin-top: 22px; }
.summary-flow .flow-node { border-color: rgba(230, 107, 100, .6); background: var(--accent-soft); font-size: 24px; font-weight: 800; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-step {
  display: grid;
  gap: 8px;
  min-height: 145px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}

.method-step:hover,
.method-step:focus-visible,
.method-step.active {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-2px);
}

.method-step.active { background: var(--accent-soft); }
.method-step span { color: var(--accent); font-size: 18px; }
.method-step strong { font-size: 26px; }
.method-step p { color: #d6dae1; font-size: 19px; line-height: 1.4; }
.method-detail { margin-top: 16px; padding: 17px 20px; border-radius: 16px; background: var(--accent-soft); font-size: 21px; line-height: 1.5; }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.practice-card { min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.practice-card h3 { margin-bottom: 30px; }
.transition-line { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; margin-top: 28px; padding: 20px 24px; border-radius: 18px; background: var(--accent-soft); }
.transition-line span { color: var(--accent); font-size: 34px; text-align: center; }
.transition-line strong { font-size: 24px; line-height: 1.4; }

/* RICS case */
.scene-case-intro { background: linear-gradient(180deg, var(--accent-faint), transparent 60%); }
.case-subtitle { margin-top: -10px; color: #d7dbe2; font-size: 26px; line-height: 1.5; }

.rics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.rics-button {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, opacity .2s;
}

.rics-button:hover,
.rics-button:focus-visible {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-2px);
}

.rics-button.current { border-color: var(--accent); background: var(--accent-soft); }
.rics-button.completed { border-color: rgba(230, 107, 100, .38); background: rgba(230, 107, 100, .055); }
.rics-number { color: var(--accent); font-size: 18px; font-weight: 750; }
.rics-label { font-size: 23px; font-weight: 750; }

.rics-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: 80px;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: 17px;
  color: var(--muted);
  font-size: 19px;
}

.rics-preview.active { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.rics-preview strong { color: var(--accent); font-size: 20px; }
.rics-preview span { font-size: 20px; line-height: 1.45; }

.background-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 22px;
}

.background-story,
.checklist-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.background-story { display: grid; grid-template-columns: 1fr 240px; gap: 26px; align-items: center; }
.background-story > p { font-size: 23px; line-height: 1.6; }
.big-number { display: grid; justify-items: center; padding: 20px; border-radius: 20px; background: var(--accent-soft); }
.big-number strong { color: var(--accent-strong); font-size: clamp(90px, 8vw, 132px); line-height: .95; }
.big-number span { margin-top: 12px; color: #e9e9ec; font-size: 21px; }
.checklist-card h3 { margin-bottom: 18px; }
.checklist-card ul,
.role-card ul { list-style: none; margin: 0; padding: 0; }
.checklist-card li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); font-size: 21px; }
.checklist-card li:last-child { border-bottom: 0; }
.checklist-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.challenge-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.challenge-flow { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.multiplier { color: var(--accent-strong); font-size: clamp(72px, 7vw, 112px); line-height: 1; }
.sequence-flow { justify-content: center; margin-top: 22px; }
.sequence-flow .flow-node { min-width: 116px; text-align: center; }

.trait-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trait-card { display: grid; gap: 8px; min-height: 138px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.trait-card:hover,
.trait-card:focus-visible,
.trait-card.active { border-color: var(--accent); outline: none; transform: translateY(-2px); }
.trait-card.active { background: var(--accent-soft); }
.trait-card strong { font-size: 28px; }
.trait-card span { color: #d3d8df; font-size: 20px; line-height: 1.45; }
.trait-feedback { margin-top: 20px; padding: 18px 22px; border-radius: 16px; background: var(--panel-2); color: #d8dce3; font-size: 23px; font-weight: 700; text-align: center; }
.trait-feedback.complete { background: var(--accent-soft); color: var(--text); font-size: 27px; }

.solution-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 16px; align-items: stretch; }
.process-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.process-panel > span { display: block; margin-bottom: 20px; color: var(--muted); font-size: 19px; font-weight: 700; }
.process-panel-accent { border-color: rgba(230, 107, 100, .55); background: var(--accent-soft); }
.conversion { display: grid; place-items: center; color: var(--accent); font-size: 44px; }
.bridge-flow { justify-content: center; margin-top: 20px; }
.bridge-flow .flow-node { border-color: rgba(230, 107, 100, .5); }

.roles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.role-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.role-card h3 { margin-bottom: 18px; }
.role-card li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); font-size: 21px; line-height: 1.4; }
.role-card li:last-child { border-bottom: 0; }
.role-card li::before { content: '•'; position: absolute; left: 7px; color: var(--accent); font-size: 24px; }
.role-ai { border-color: rgba(230, 107, 100, .5); background: var(--accent-faint); }

.debug-layout { display: grid; grid-template-columns: 1.45fr .65fr; gap: 22px; }
.timeline { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.timeline-step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.timeline-step > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 800; }
.timeline-step h3 { margin-bottom: 7px; font-size: 25px; }
.timeline-step p { color: #d3d7de; font-size: 20px; line-height: 1.45; }
.timeline-arrow { margin: 8px 0 8px 22px; color: var(--muted); font-size: 24px; }
.debug-stats { display: grid; gap: 16px; }
.debug-stats article { display: grid; align-content: center; gap: 10px; padding: 24px; border: 1px solid rgba(230, 107, 100, .5); border-radius: var(--radius); background: var(--accent-soft); }
.debug-stats strong { color: var(--accent-strong); font-size: clamp(44px, 4vw, 64px); }
.debug-stats span { color: #d7dbe2; font-size: 19px; line-height: 1.4; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-grid article { display: grid; gap: 8px; min-height: 150px; align-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.metric-grid strong { color: var(--accent-strong); font-size: clamp(44px, 3.7vw, 62px); line-height: 1; }
.metric-grid span { color: var(--muted); font-size: 19px; }
.before-after { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 16px; align-items: stretch; margin-top: 18px; }
.before-after > article { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.before-after > div { display: grid; place-items: center; color: var(--accent); font-size: 36px; }
.before-after span { color: var(--muted); font-size: 18px; }
.before-after h3 { font-size: 24px; }
.before-after article > strong { font-size: 30px; }
.before-after .after-card { border-color: rgba(230, 107, 100, .55); background: var(--accent-soft); }

.slider-card { padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.slider-card input[type='range'] { width: 100%; height: 14px; margin: 10px 0; appearance: none; border-radius: 999px; outline: none; cursor: pointer; background: linear-gradient(90deg, var(--accent) var(--range-progress), #39404b var(--range-progress)); }
.slider-card input[type='range']::-webkit-slider-thumb { width: 34px; height: 34px; appearance: none; border: 5px solid var(--panel); border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 2px var(--accent); }
.slider-card input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border: 5px solid var(--panel); border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 2px var(--accent); }
.slider-marks { position: relative; height: 24px; margin-top: 8px; color: var(--muted); font-size: 17px; }
.slider-marks span { position: absolute; top: 0; transform: translateX(-50%); }
.slider-marks span:nth-child(1) { left: 0; transform: none; }
.slider-marks span:nth-child(2) { left: 27.14%; }
.slider-marks span:nth-child(3) { left: 64.29%; }
.slider-marks span:nth-child(4) { left: 100%; transform: translateX(-100%); }
.slider-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.slider-values > div { display: grid; gap: 8px; padding: 22px 24px; border-radius: 20px; background: var(--panel-2); }
.slider-values span { color: var(--muted); font-size: 19px; }
.slider-values strong { font-size: clamp(54px, 5vw, 82px); line-height: 1.05; }
.statement-scale { text-align: center; }

.thinking-shift { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 16px; align-items: stretch; }
.thinking-shift article { display: grid; gap: 14px; min-height: 154px; align-content: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.thinking-shift > div { display: grid; place-items: center; color: var(--accent); font-size: 36px; }
.thinking-shift span { color: var(--muted); font-size: 18px; }
.thinking-shift strong { font-size: clamp(27px, 2.2vw, 34px); line-height: 1.35; }
.thinking-shift .thinking-after { border-color: rgba(230, 107, 100, .6); background: var(--accent-soft); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.lesson-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.lesson-grid span { color: var(--accent); font-size: 18px; font-weight: 800; }
.lesson-grid h3 { margin: 10px 0 8px; font-size: 25px; }
.lesson-grid p { color: #d3d8df; font-size: 19px; line-height: 1.45; }

/* Summary and end */
.criteria-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.criterion { min-height: 120px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); text-align: left; cursor: pointer; font-size: 27px; font-weight: 750; transition: border-color .18s, background .18s, transform .18s; }
.criterion:hover,
.criterion:focus-visible,
.criterion.active { border-color: var(--accent); outline: none; transform: translateY(-2px); }
.criterion.active { background: var(--accent-soft); }
.summary-feedback { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; margin-top: 20px; padding: 22px 24px; border-radius: 20px; background: var(--panel-2); }
.summary-feedback > strong { color: var(--accent); font-size: 30px; }
.summary-feedback p { font-size: 23px; line-height: 1.45; }
.summary-feedback.high-priority { background: var(--accent-soft); }
.summary-feedback.high-priority p { font-weight: 800; }

.scene-end .scene-inner { text-align: center; }
.scene-end h2 { max-width: 1050px; margin: 0 auto; font-size: clamp(52px, 5vw, 76px); }
.end-flow { justify-content: center; margin-top: 38px; }
.qna { margin-top: 54px; color: var(--accent-strong); font-size: 42px; font-weight: 850; letter-spacing: .08em; }

.noscript { margin: 120px auto; width: min(720px, calc(100% - 40px)); padding: 24px; border: 1px solid var(--accent); border-radius: 18px; background: var(--panel); font-size: 20px; }

@media (max-width: 1120px) {
  .scene-inner { width: min(var(--max), calc(100% - 40px)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; }
  .qr-card img { width: 132px; height: 132px; }
  .experience-grid,
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .background-grid { grid-template-columns: 1fr; }
  .background-story { grid-template-columns: 1fr 220px; }
  .problem-card { grid-template-columns: 58px minmax(0, 1fr) 170px; }
}

@media (max-height: 820px) and (min-width: 821px) {
  .scene { padding-top: 88px; padding-bottom: 48px; }
  .scene-heading { margin-bottom: 20px; }
  .heading-row { margin-bottom: 20px; }
  h1 { font-size: clamp(52px, 4.6vw, 68px); }
  h2 { font-size: clamp(38px, 3.5vw, 50px); }
  .section-jump { min-height: 118px; }
  .experience-card { min-height: 132px; }
  .experience-card strong { font-size: 25px; }
  .method-step { min-height: 122px; }
  .problem-card { padding-top: 15px; padding-bottom: 15px; }
  .metric-grid article { min-height: 118px; }
  .statement { margin-top: 18px; padding-top: 14px; padding-bottom: 14px; }
  .rics-grid { margin-top: 20px; }
  .rics-button { min-height: 94px; }
}

@media (max-width: 820px) {
  .scene {
    min-height: auto;
    align-items: flex-start;
    padding: 94px 0 64px;
  }

  .scene-inner { width: calc(100% - 32px); }
  .topbar { padding: 10px 12px; }
  .chapter-pill { display: none; }
  .controls { margin-left: auto; }
  .rics-dock { display: none; }
  h1 { font-size: clamp(38px, 10.4vw, 52px); }
  h2 { font-size: clamp(34px, 8.5vw, 46px); }
  h1 span { white-space: normal; }
  .eyebrow { font-size: 17px; }
  .scene-heading { margin-bottom: 24px; }
  .heading-row { display: block; }
  .interaction-hint { margin-top: 10px; text-align: left; }
  .hero-grid,
  .section-jumps,
  .shift-grid,
  .experience-grid,
  .experience-detail,
  .method-grid,
  .practice-grid,
  .rics-grid,
  .background-grid,
  .background-story,
  .trait-grid,
  .solution-grid,
  .roles-grid,
  .debug-layout,
  .metric-grid,
  .before-after,
  .thinking-shift,
  .lesson-grid,
  .criteria-grid { grid-template-columns: 1fr; }

  .hero-grid { gap: 24px; }
  .hero-subtitle { font-size: 20px; margin-top: 18px; }
  .qr-card { grid-template-columns: 132px minmax(0, 1fr); justify-items: start; padding: 16px; text-align: left; }
  .qr-card img { width: 132px; height: 132px; }
  .qr-copy { align-self: center; }
  .section-jumps { margin-top: 22px; }
  .section-jump { min-height: 112px; padding: 20px; }
  .section-jump strong { font-size: 25px; }
  .flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  .flow-node { display: grid; min-height: 44px; place-items: center; padding: 10px 13px; font-size: 17px; text-align: center; white-space: normal; }
  .flow-arrow { display: none; }
  .summary-flow,
  .bridge-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statement { font-size: 23px; }
  .statement-large { font-size: 27px; }
  .phase-card { padding: 20px; }
  .experience-card { min-height: 132px; }
  .experience-card strong { font-size: 24px; }
  .experience-detail { gap: 18px; }
  .problem-card { grid-template-columns: 48px 1fr; gap: 14px; }
  .problem-card .solution-pill { grid-column: 2; }
  .problem-card p { font-size: 18px; }
  .summary-flow .flow-node { flex: 1 1 26%; text-align: center; font-size: 20px; }
  .method-step { min-height: 126px; }
  .practice-card { min-height: 0; padding: 22px; }
  .practice-card h3 { margin-bottom: 22px; }
  .transition-line { grid-template-columns: 38px 1fr; }
  .case-subtitle { font-size: 21px; }
  .rics-grid { gap: 10px; }
  .rics-button { min-height: 92px; }
  .rics-preview { grid-template-columns: 1fr; gap: 7px; }
  .background-story { gap: 18px; }
  .background-story > p { font-size: 20px; }
  .big-number { justify-items: start; }
  .big-number strong { font-size: 96px; }
  .challenge-row { grid-template-columns: 1fr; }
  .multiplier { font-size: 80px; text-align: center; }
  .sequence-flow .flow-node { min-width: 0; }
  .trait-card { min-height: 116px; }
  .conversion { min-height: 42px; transform: rotate(90deg); }
  .role-card li { font-size: 19px; }
  .debug-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .before-after > div,
  .thinking-shift > div { min-height: 38px; transform: rotate(90deg); }
  .before-after > article { grid-template-columns: 1fr; gap: 8px; }
  .slider-card { padding: 24px 20px; }
  .slider-values { gap: 10px; }
  .slider-values > div { padding: 18px; }
  .slider-values strong { font-size: clamp(38px, 10vw, 52px); }
  .thinking-shift article { min-height: 130px; }
  .criterion { min-height: 96px; font-size: 24px; }
  .summary-feedback { grid-template-columns: 80px 1fr; gap: 14px; }
  .summary-feedback p { font-size: 20px; }
  .scene-end h2 { font-size: clamp(40px, 10vw, 56px); }
  .qna { margin-top: 38px; font-size: 36px; }
}

@media (max-width: 430px) {
  .scene-inner { width: calc(100% - 24px); }
  .control { min-width: 42px; min-height: 42px; padding: 8px 12px; }
  .control-present { min-width: 98px; }
  h1 { font-size: 37px; }
  h2 { font-size: 34px; }
  .qr-card { grid-template-columns: 132px minmax(0, 1fr); gap: 12px; }
  .qr-card img { width: 132px; height: 132px; }
  .qr-copy strong { font-size: 19px; }
  .qr-copy span,
  .qr-copy code { font-size: 15px; }
  .experience-card,
  .method-step,
  .trait-card { padding: 18px; }
  .experience-card strong { font-size: 22px; }
  .problem-index { font-size: 21px; }
  .problem-card h3 { font-size: 23px; }
  .solution-pill strong { font-size: 20px; }
  .slider-values { grid-template-columns: 1fr; }
  .slider-values strong { font-size: 48px; }
  .summary-feedback { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Local technology exploration — original immersive visual language. */
body.tech-exploration {
  --bg: #050912;
  --bg-soft: #09111f;
  --panel: rgba(11, 22, 38, .78);
  --panel-2: rgba(15, 31, 53, .92);
  --text: #eff8ff;
  --muted: #9eb5cc;
  --line: rgba(112, 180, 255, .24);
  --accent: #42b6ff;
  --accent-strong: #8fd7ff;
  --accent-soft: rgba(47, 167, 255, .14);
  --accent-faint: rgba(47, 167, 255, .06);
  background:
    radial-gradient(900px circle at var(--pointer-x, 70%) var(--pointer-y, 20%), rgba(20, 123, 255, .13), transparent 34%),
    radial-gradient(800px circle at 78% 92%, rgba(0, 225, 255, .075), transparent 35%),
    linear-gradient(135deg, #040812, #07101d 52%, #03060d);
}

body.tech-exploration::before,
body.tech-exploration::after {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  content: '';
}

body.tech-exploration::before {
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(88, 176, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(88, 176, 255, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

body.tech-exploration::after {
  inset: 0;
  opacity: .13;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, .18) 4px 5px);
  mix-blend-mode: soft-light;
}

.tech-exploration .topbar { padding: 17px 28px 17px 118px; }
.tech-exploration .chapter-pill,
.tech-exploration .control,
.tech-exploration .rics-dock {
  border-color: rgba(82, 179, 255, .28);
  background: rgba(4, 12, 24, .72);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .28), inset 0 1px rgba(157, 220, 255, .06);
}
.tech-exploration .control:hover,
.tech-exploration .control:focus-visible { background: rgba(17, 57, 96, .7); box-shadow: 0 0 0 1px rgba(71, 183, 255, .45), 0 0 22px rgba(27, 150, 255, .3); }
.tech-exploration .rics-dock { left: calc(50% + 42px); }

.genome-navigation { position: fixed; inset: 0 auto 0 0; z-index: 150; width: 104px; pointer-events: none; }
.dna-rail { position: absolute; inset: 28px auto 28px 19px; width: 66px; }
.dna-art { position: absolute; inset: 0; width: 66px; height: 100%; overflow: visible; filter: drop-shadow(0 0 8px rgba(48, 183, 255, .65)); }
.dna-strand { fill: none; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.dna-strand-a { stroke: rgba(115, 218, 255, .95); }
.dna-strand-b { stroke: rgba(35, 97, 255, .9); }
.dna-rungs { fill: none; stroke: rgba(148, 230, 255, .47); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dna-rail::before { position: absolute; inset: 0 auto 0 32px; width: 2px; border-radius: 99px; background: rgba(88, 170, 255, .16); content: ''; }
.tech-exploration .progress { position: absolute; inset: 0 auto auto 32px; z-index: 2; width: 2px; height: 0; border-radius: 99px; background: linear-gradient(#b5f0ff, #227eff); box-shadow: 0 0 12px #49c3ff; transition: height .12s linear; }
.genome-walker { position: fixed; top: 0; left: 29px; z-index: 4; width: 46px; height: 72px; transform: translateY(var(--walker-y, 28px)); transform-origin: center bottom; transition: transform .12s linear; }
.genome-walker::after { position: absolute; right: -2px; bottom: 7px; width: 33px; height: 8px; border-radius: 50%; background: rgba(20, 166, 255, .55); filter: blur(5px); content: ''; }
.genome-walker svg { position: relative; z-index: 1; width: 42px; height: 72px; overflow: visible; fill: none; stroke: #baf1ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #168fff); animation: walker-step 1.1s ease-in-out infinite alternate; }
.genome-walker circle { fill: #baf1ff; stroke: none; }
.genome-readout { position: fixed; top: 0; left: 87px; z-index: 5; width: min(250px, 25vw); padding: 10px 14px 10px 18px; border: 1px solid rgba(93, 204, 255, .65); border-left-width: 3px; background: linear-gradient(100deg, rgba(5, 23, 43, .96), rgba(8, 18, 36, .66)); box-shadow: 0 0 28px rgba(10, 153, 255, .22), inset 0 1px rgba(220, 250, 255, .14); clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); transform: translateY(var(--signal-y, 30px)); transition: transform .12s linear; }
.genome-readout span { display: block; color: #64c8ff; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.genome-readout strong { display: block; margin-top: 3px; overflow: hidden; color: #d4f4ff; font-size: 16px; letter-spacing: .06em; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 0 12px #128ee6; }
.genome-readout.is-signalling { animation: subject-signal .56s ease-out; }

.tech-exploration .scene { position: relative; overflow: hidden; scroll-margin-top: 74px; }
.tech-exploration .scene::before { position: absolute; top: 16%; left: max(120px, calc(50% - 700px)); width: 6px; height: 48%; border-radius: 999px; background: linear-gradient(transparent, rgba(73, 183, 255, .7), transparent); box-shadow: 0 0 20px #2098f3; content: ''; opacity: .48; }
.tech-exploration .scene-inner { width: min(1260px, calc(100% - 188px)); margin-left: max(126px, calc((100% - 1260px) / 2 + 100px)); }
.tech-exploration .scene-hero { background: radial-gradient(700px circle at 70% 35%, rgba(32, 141, 255, .12), transparent 63%); }
.tech-exploration .scene-heading h2,
.tech-exploration .scene-hero h1,
.tech-exploration .scene-end h2 { text-shadow: 0 0 32px rgba(53, 175, 255, .2); }
.tech-exploration .scene-hero h1 span:last-child { color: #9cdeff; }
.tech-exploration .qr-card,
.tech-exploration .section-jump,
.tech-exploration .experience-card,
.tech-exploration .method-step,
.tech-exploration .problem-card,
.tech-exploration .practice-card,
.tech-exploration .rics-button,
.tech-exploration .checklist-card,
.tech-exploration .trait-card,
.tech-exploration .process-panel,
.tech-exploration .role-card,
.tech-exploration .timeline-step,
.tech-exploration .debug-stats article,
.tech-exploration .metric-grid article,
.tech-exploration .before-after > article,
.tech-exploration .slider-card,
.tech-exploration .thinking-shift article,
.tech-exploration .lesson-grid article,
.tech-exploration .criterion { background: linear-gradient(145deg, rgba(15, 31, 53, .88), rgba(7, 16, 30, .8)); border-color: rgba(108, 190, 255, .24); box-shadow: inset 0 1px rgba(193, 238, 255, .06); }
.tech-exploration .section-jump:hover,
.tech-exploration .experience-card:hover,
.tech-exploration .method-step:hover,
.tech-exploration .trait-card:hover,
.tech-exploration .criterion:hover,
.tech-exploration .section-jump:focus-visible,
.tech-exploration .experience-card:focus-visible,
.tech-exploration .method-step:focus-visible,
.tech-exploration .trait-card:focus-visible,
.tech-exploration .criterion:focus-visible { box-shadow: 0 0 0 1px rgba(86, 190, 255, .6), 0 10px 35px rgba(0, 100, 255, .22); }
.tech-exploration .section-jump b,
.tech-exploration .flow-arrow,
.tech-exploration .rics-number,
.tech-exploration .method-step > span,
.tech-exploration .metric-grid strong,
.tech-exploration .big-number strong,
.tech-exploration .qna { color: #6dd3ff; text-shadow: 0 0 16px rgba(40, 170, 255, .45); }
.tech-exploration .rics-button.current,
.tech-exploration .trait-card.active,
.tech-exploration .criterion.active,
.tech-exploration .method-step.active,
.tech-exploration .experience-card.active { border-color: #55c3ff; background: linear-gradient(145deg, rgba(17, 75, 128, .74), rgba(6, 22, 44, .94)); }
.tech-exploration .flow-node { border-color: rgba(91, 190, 255, .24); background: rgba(7, 19, 36, .74); }
.tech-exploration .statement,
.tech-exploration .summary-feedback,
.tech-exploration .experience-detail,
.tech-exploration .method-detail { border-color: rgba(92, 195, 255, .26); background: rgba(8, 25, 45, .74); }

@keyframes walker-step { to { transform: translateY(-3px) rotate(-2deg); } }
@keyframes subject-signal { 0% { opacity: .25; filter: brightness(2.5); } 100% { opacity: 1; filter: none; } }

@media (max-width: 820px) {
  .genome-navigation { width: auto; }
  .dna-rail { display: none; }
  .genome-walker { display: none; }
  .genome-readout { top: auto; bottom: 15px; left: 13px; width: auto; max-width: calc(100vw - 26px); padding: 7px 13px; transform: none !important; }
  .genome-readout span { display: inline; margin-right: 8px; font-size: 9px; }
  .genome-readout strong { display: inline; font-size: 13px; }
  .tech-exploration .topbar { padding: 10px 12px; }
  .tech-exploration .scene-inner { width: calc(100% - 32px); margin-left: auto; margin-right: auto; }
  .tech-exploration .scene::before { left: 16px; opacity: .25; }
  .tech-exploration .rics-dock { left: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .genome-walker svg { animation: none; }
  .genome-readout.is-signalling { animation: none; }
}
