:root {
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-elevated: #F1F5F9;
  --bg-tinted: #EFF6FF;
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --ink-mute: #475569;
  --ink-faint: #64748B;
  --border: #7C8FA7;
  --border-soft: #CBD5E1;
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-bg: #DBEAFE;
  --accent: #0EA5E9;
  --maze-bg: #050A14;
  --maze-panel: #0A1424;
  --maze-panel-2: #101C31;
  --maze-line: #BFD7FF;
  --axis-a: #60A5FA;
  --axis-b: #34D399;
  --axis-c: #F59E0B;
  --axis-a-bg: rgba(96, 165, 250, 0.18);
  --axis-b-bg: rgba(52, 211, 153, 0.18);
  --axis-c-bg: rgba(245, 158, 11, 0.18);
  --layer-automation: #60A5FA;
  --layer-voice: #E879F9;
  --layer-decision: #F59E0B;
  --layer-team: #34D399;
  --layer-life: #F472B6;
  --glow-a: rgba(96, 165, 250, 0.72);
  --glow-b: rgba(52, 211, 153, 0.62);
  --glow-c: rgba(245, 158, 11, 0.6);
  --insight-progress: 0%;
  --display: 'Space Grotesk', 'Inter', 'Noto Sans JP', 'Noto Sans TC', system-ui, sans-serif;
  --sans: 'Inter', 'Noto Sans JP', 'Noto Sans TC', -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', "SF Mono", Consolas, Menlo, monospace;
  --serif: 'Noto Serif TC', Georgia, serif;
}

@media (prefers-contrast: more) {
  :root {
    --border: #475569;
    --border-soft: #94A3B8;
    --ink-faint: #334155;
    --primary: #1D4ED8;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--maze-bg);
  color: #E5EDF8;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(96, 165, 250, 0.11), transparent 34%, rgba(52, 211, 153, 0.08) 68%, rgba(245, 158, 11, 0.08));
  background-size: 84px 84px, 84px 84px, auto;
}

::selection { background: var(--primary-bg); color: var(--ink); }

h1, h2, h3, p { margin-top: 0; }
a { color: inherit; }

.skip-link {
  position: absolute;
  top: 0;
  left: 12px;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 0 0 4px 4px;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--primary); outline-offset: 2px; }

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  background: rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(191, 215, 255, 0.22);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
#main-content,
#symptom-doors,
#self-check,
#silent-diagnosis,
#why-this-exists,
#reading-map {
  scroll-margin-top: 78px;
}
.back-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(191, 215, 255, 0.34);
  border-radius: 6px;
  color: #D7E4F7;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.back-link:hover { background: rgba(96, 165, 250, 0.14); border-color: var(--axis-a); color: #FFFFFF; }
.back-link:focus-visible { outline: 3px solid var(--primary-bg); outline-offset: 2px; }
.nav-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(40px, auto));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(191, 215, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}
.language-button {
  min-width: 40px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #B6C6DC;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.language-button:hover,
.language-button:focus-visible {
  color: #FFFFFF;
  border-color: rgba(191, 215, 255, 0.42);
  outline: none;
}
.language-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
}
.language-button.is-active {
  background: #FFFFFF;
  color: #06101D;
  border-color: #FFFFFF;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B6C6DC;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb strong { color: #FFFFFF; font-weight: 700; }

.wrap {
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 18px 22px 64px;
}

.market-hero,
.symptom-section,
.self-check-section,
.silent-diagnosis,
.research-section,
.map-entry {
  width: min(1260px, 100%);
  margin: 0 auto 26px;
}

.market-hero {
  min-height: min(660px, calc(100svh - 88px));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(191, 215, 255, 0.26);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(115deg, rgba(5, 10, 20, 0.94), rgba(8, 20, 36, 0.84)),
    repeating-linear-gradient(135deg, rgba(191, 215, 255, 0.075) 0 1px, transparent 1px 24px),
    #06101D;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(191, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(191, 215, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.18), rgba(232, 121, 249, 0.1), rgba(245, 158, 11, 0.12), rgba(52, 211, 153, 0.1), rgba(244, 114, 182, 0.1));
  background-size: 54px 54px, 54px 54px, auto;
  opacity: 0.7;
}
.market-hero::after {
  content: "栞";
  position: absolute;
  right: clamp(10px, 4vw, 54px);
  bottom: clamp(-34px, -3vw, -10px);
  font-family: var(--display);
  font-size: clamp(11rem, 24vw, 26rem);
  line-height: 0.78;
  font-weight: 700;
  color: rgba(191, 215, 255, 0.045);
  pointer-events: none;
}
.hero-copy-block {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 5.35vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin: 18px 0 22px;
  color: #FFFFFF;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(96, 165, 250, 0.34);
}
.hero-lede {
  max-width: 720px;
  color: #D7E4F7;
  font-size: clamp(1.05rem, 1.72vw, 1.28rem);
  line-height: 1.65;
  margin-bottom: 26px;
}
.hero-actions,
.self-check-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.primary-action,
.secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 15px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
}
button.primary-action,
button.secondary-action {
  cursor: pointer;
}
.primary-action {
  border: 1px solid #FFFFFF;
  background: #FFFFFF;
  color: #06101D;
  box-shadow: 0 0 28px rgba(96, 165, 250, 0.28);
}
.secondary-action {
  border: 1px solid rgba(191, 215, 255, 0.38);
  background: rgba(255,255,255,0.045);
  color: #E5EDF8;
}
.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-bg), 0 0 28px rgba(96, 165, 250, 0.34);
}
.hero-instrument {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-width: 0;
}
.ownership-panel {
  border: 1px solid rgba(191, 215, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.72);
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.ownership-panel h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.1;
  margin-bottom: 18px;
  color: #FFFFFF;
}
.ownership-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.ownership-list li {
  --layer-color: var(--axis-a);
  min-width: 0;
  border: 1px solid rgba(191, 215, 255, 0.18);
  border-left: 5px solid var(--layer-color);
  border-radius: 4px 8px 8px 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
}
.ownership-list [data-layer="automation"] { --layer-color: var(--layer-automation); }
.ownership-list [data-layer="voice"] { --layer-color: var(--layer-voice); }
.ownership-list [data-layer="decision"] { --layer-color: var(--layer-decision); }
.ownership-list [data-layer="team"] { --layer-color: var(--layer-team); }
.ownership-list [data-layer="life"] { --layer-color: var(--layer-life); }
.ownership-list span {
  display: block;
  color: var(--layer-color);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ownership-list strong {
  display: block;
  margin-top: 4px;
  color: #F8FAFC;
  line-height: 1.35;
}

.symptom-section,
.self-check-section,
.silent-diagnosis,
.research-section,
.map-entry {
  border: 1px solid rgba(191, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.84);
  color: #E5EDF8;
  overflow: hidden;
}
.public-heading {
  border: 0;
  border-bottom: 1px solid rgba(191, 215, 255, 0.18);
  border-radius: 0;
  background: rgba(10, 20, 36, 0.68);
  box-shadow: none;
  padding: 20px;
}
.public-heading h2,
.silent-diagnosis h2,
.research-section h2,
.map-entry h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 0;
  text-wrap: balance;
}
.symptom-grid,
.research-grid,
.offer-deliverables {
  display: grid;
  gap: 0;
}
.symptom-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.layer-automation { --layer-color: var(--layer-automation); }
.layer-voice { --layer-color: var(--layer-voice); }
.layer-decision { --layer-color: var(--layer-decision); }
.layer-team { --layer-color: var(--layer-team); }
.layer-life { --layer-color: var(--layer-life); }
.symptom-door {
  min-width: 0;
  min-height: 178px;
  border: 0;
  border-right: 1px solid rgba(191, 215, 255, 0.16);
  border-bottom: 1px solid rgba(191, 215, 255, 0.16);
  border-top: 5px solid var(--layer-color);
  background: rgba(255, 255, 255, 0.035);
  color: #E5EDF8;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}
.symptom-door:last-child { border-right: 0; }
.symptom-door span {
  display: block;
  color: var(--layer-color);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.symptom-door strong {
  display: block;
  color: #FFFFFF;
  font-family: var(--display);
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.25;
}
.symptom-door:hover,
.symptom-door:focus-visible,
.symptom-door.is-selected {
  background: color-mix(in srgb, var(--layer-color) 18%, rgba(255,255,255,0.04));
  outline: none;
}
.symptom-door:focus-visible {
  box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 6px var(--layer-color);
}

.self-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 0;
}
.self-check-form {
  display: grid;
  gap: 0;
}
.check-question {
  border: 0;
  border-right: 1px solid rgba(191, 215, 255, 0.16);
  border-bottom: 1px solid rgba(191, 215, 255, 0.16);
  padding: 20px;
  margin: 0;
  min-width: 0;
}
.check-question legend {
  float: left;
  width: 100%;
  color: #FFFFFF;
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.check-question legend + * {
  clear: both;
}
.check-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(191, 215, 255, 0.18);
  border-left: 4px solid var(--layer-color);
  border-radius: 6px;
  padding: 10px 11px;
  margin-top: 8px;
  background: rgba(255,255,255,0.035);
  color: #D7E4F7;
  cursor: pointer;
}
.check-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--layer-color);
}
.check-option span {
  line-height: 1.42;
}
.check-option:hover,
.check-option:has(input:focus-visible),
.check-option:has(input:checked) {
  border-color: var(--layer-color);
  background: color-mix(in srgb, var(--layer-color) 15%, rgba(255,255,255,0.04));
}
.check-option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.self-check-actions {
  padding: 20px;
  border-right: 1px solid rgba(191, 215, 255, 0.16);
}
.form-status {
  min-height: 1.5em;
  color: #FDE68A;
  font-size: 14px;
  margin: 0 20px 20px;
}
.self-check-result {
  --result-color: var(--axis-a);
  align-self: start;
  position: sticky;
  top: 78px;
  min-height: 100%;
  border-top: 5px solid var(--result-color);
  padding: clamp(22px, 4vw, 36px);
  background:
    linear-gradient(145deg, rgba(96, 165, 250, 0.12), rgba(232, 121, 249, 0.06) 36%, rgba(245, 158, 11, 0.08)),
    rgba(10, 20, 36, 0.76);
}
.self-check-result:focus-visible {
  outline: 3px solid var(--primary-bg);
  outline-offset: -3px;
}
.self-check-result h3 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 20px;
}
.result-list {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}
.result-list div {
  border-top: 1px solid rgba(191, 215, 255, 0.2);
  padding-top: 12px;
}
.result-list dt {
  color: #93C5FD;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.result-list dd {
  margin: 0;
  color: #D7E4F7;
  line-height: 1.55;
}

.silent-diagnosis {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.offer-main {
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid rgba(191, 215, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.14), transparent 55%),
    rgba(10, 20, 36, 0.52);
}
.offer-main .primary-action { margin-top: 8px; }
.offer-lede {
  color: #D7E4F7;
  font-size: 1.05rem;
  margin: 14px 0 22px;
}
.offer-deliverables {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.research-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
}
.research-section > div:first-child {
  padding: clamp(22px, 4vw, 38px);
  border-right: 1px solid rgba(191, 215, 255, 0.18);
}
.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.research-grid article,
.offer-deliverables article {
  min-width: 0;
  border-right: 1px solid rgba(191, 215, 255, 0.16);
  border-bottom: 1px solid rgba(191, 215, 255, 0.16);
  padding: 20px;
}
.research-grid article:last-child,
.offer-deliverables article:last-child { border-right: 0; }
.offer-deliverables h3,
.research-grid h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.offer-deliverables p,
.research-grid p,
.map-entry p {
  color: #C7D5EA;
  margin-bottom: 0;
}
.map-entry {
  padding: clamp(22px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(5, 10, 20, 0.86)),
    rgba(5, 10, 20, 0.84);
}
.map-entry p {
  max-width: 920px;
  font-size: 1.02rem;
  margin-top: 14px;
}

.workbench {
  min-height: 0;
  position: relative;
  isolation: isolate;
  display: block;
  overflow: visible;
  border: 1px solid rgba(191, 215, 255, 0.28);
  border-radius: 12px;
  padding: 24px;
  background: #06101D;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.workbench::before,
.workbench::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.workbench::before {
  z-index: 0;
  background:
    radial-gradient(circle at 68% 40%, rgba(96, 165, 250, 0.22), transparent 26%),
    radial-gradient(circle at 54% 68%, rgba(52, 211, 153, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(96, 165, 250, 0.18), rgba(52, 211, 153, 0.14), rgba(245, 158, 11, 0.14)) 0 0 / var(--insight-progress) 100% no-repeat;
  opacity: 0.52;
  mix-blend-mode: screen;
}
.workbench::after {
  z-index: 1;
  background:
    radial-gradient(circle at 63% 44%, rgba(255, 255, 255, 0.24), rgba(96, 165, 250, 0.12) 9%, transparent 26%),
    linear-gradient(115deg, transparent 0 37%, rgba(255, 255, 255, 0.18) 41%, transparent 47% 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.has-insight .workbench::after {
  opacity: 0.34;
}

.intro-panel {
  position: relative;
  z-index: 5;
  width: auto;
  min-height: 0;
  overflow: hidden;
  padding: 22px 24px 22px 30px;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1fr) minmax(340px, 1.08fr);
  grid-template-areas:
    "tag thesis controls"
    "brand thesis controls"
    "subtitle axis progress";
  gap: 14px 18px;
  align-items: start;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(191, 215, 255, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(10, 20, 36, 0.92), rgba(5, 10, 20, 0.78)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.055) 0, rgba(255,255,255,0.055) 1px, transparent 1px, transparent 7px);
  color: #E5EDF8;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.intro-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background:
    linear-gradient(var(--axis-a), var(--axis-a)) 0 0 / 100% 33.34% no-repeat,
    linear-gradient(var(--axis-b), var(--axis-b)) 0 50% / 100% 33.34% no-repeat,
    linear-gradient(var(--axis-c), var(--axis-c)) 0 100% / 100% 33.34% no-repeat;
}
.intro-panel::after {
  display: none;
}

.lab-tag,
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.lab-tag {
  grid-area: tag;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #BFDBFE;
  background: rgba(96, 165, 250, 0.14);
  align-self: flex-start;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 4px;
  flex-wrap: wrap;
  line-height: 1.45;
}
.lab-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--axis-a);
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.75);
}
.eyebrow { color: #93C5FD; margin-bottom: 8px; }

.map-brand {
  grid-area: brand;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.35rem);
  line-height: 0.9;
  letter-spacing: 0;
  margin: 2px 0 0;
  color: #FFFFFF;
  text-shadow: 0 0 28px rgba(96, 165, 250, 0.55);
}
.map-brand span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.28em;
  line-height: 1;
  color: #B6C6DC;
}
.subtitle {
  grid-area: subtitle;
  font-size: 16.5px;
  line-height: 1.55;
  color: #FFFFFF;
  margin-bottom: 0;
}
.lede {
  display: none;
  font-size: 13.5px;
  color: #C7D5EA;
  margin-bottom: 0;
}

.thesis-strip {
  grid-area: thesis;
  border-top: 1px solid rgba(191, 215, 255, 0.22);
  border-bottom: 1px solid rgba(191, 215, 255, 0.22);
  padding: 13px 0 14px;
}
.thesis-strip h2 {
  font-family: var(--serif);
  font-size: 1.56rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
.thesis-strip p:last-child {
  color: #D7E4F7;
  font-size: 14px;
  margin-bottom: 0;
}

.axis-legend {
  grid-area: axis;
  display: grid;
  gap: 8px;
}
.axis-legend span {
  min-height: 31px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(191, 215, 255, 0.22);
  border-left-width: 5px;
  border-radius: 5px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  color: #E5EDF8;
}
.axis-legend [data-axis="A"] { border-left-color: var(--axis-a); }
.axis-legend [data-axis="B"] { border-left-color: var(--axis-b); }
.axis-legend [data-axis="C"] { border-left-color: var(--axis-c); }

.progress-panel {
  grid-area: progress;
  border: 1px solid rgba(191, 215, 255, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.36);
  color: #F8FAFC;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #CBD5E1;
}
.progress-row strong {
  color: #FFFFFF;
  font-size: 13px;
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.16);
  overflow: hidden;
  margin: 11px 0 9px;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #60A5FA, #34D399, #FBBF24);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.75);
  transition: width 0.35s ease;
}
.progress-panel p {
  color: #E2E8F0;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.controls {
  grid-area: controls;
  margin-top: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(191, 215, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(52, 211, 153, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.controls .eyebrow {
  color: #D7E8FF;
  font-size: 12px;
}
.control-copy,
.map-status,
.relation-help {
  color: #B6C6DC;
  margin-bottom: 0;
}
.control-copy { display: none; }
.mode-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mode-button,
.relation-chip,
.copy-path button,
.dialog-close {
  font: inherit;
}
.mode-button {
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(191, 215, 255, 0.58);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.mode-button:hover,
.mode-button:focus-visible {
  border-color: var(--axis-a);
  color: #FFFFFF;
  background: rgba(96, 165, 250, 0.16);
  outline: none;
}
.mode-button:focus-visible { box-shadow: 0 0 0 3px var(--primary-bg); }
.mode-button.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #06101D;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.24), 0 0 28px rgba(96, 165, 250, 0.48);
}

.map-section {
  position: relative;
  z-index: 2;
  height: auto;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding-left: 0;
  background: transparent;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.68);
  color: #FFFFFF;
  box-shadow: 0 18px 54px rgba(0,0,0,0.34);
}
.map-section > .section-heading {
  position: relative;
  z-index: 4;
  top: auto;
  right: auto;
  width: auto;
  margin-bottom: 14px;
}
.section-heading h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0;
}
.map-status,
.relation-help {
  max-width: 42ch;
  font-size: 13px;
  text-align: right;
}

.map-frame {
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: visible;
  background: transparent;
}
.map-board {
  min-height: 100%;
  position: relative;
  padding: 16px;
  transition: opacity 0.22s ease;
}
.map-board.is-changing { opacity: 0.45; }
.constellation-canvas {
  position: relative;
  width: min(100%, 1080px);
  min-width: 0;
  aspect-ratio: 1080 / 760;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(191, 215, 255, 0.24);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0, transparent 26px, rgba(96, 165, 250, 0.055) 27px, transparent 28px),
    var(--maze-bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 90px rgba(96, 165, 250, 0.16);
}
.has-insight .constellation-canvas {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 110px rgba(96, 165, 250, 0.24), 0 0 70px rgba(52, 211, 153, 0.14);
}
.constellation-canvas::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 48% 52% 45% 55%;
  pointer-events: none;
}
.constellation-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.08), transparent 2px) 0 0 / 100% 7px,
    linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.12), transparent);
  mix-blend-mode: screen;
  opacity: 0.38;
}
.axis-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.brain-outline {
  fill: rgba(96, 165, 250, 0.08);
  stroke: rgba(191, 215, 255, 0.44);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 28px rgba(96, 165, 250, 0.28));
}
.ridge {
  fill: none;
  stroke: rgba(226, 232, 240, 0.24);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.axis-line {
  fill: none;
  stroke-width: 2.5;
  stroke-dasharray: 8 12;
  opacity: 0.82;
}
.axis-line-a { stroke: #7DB0FF; }
.axis-line-b { stroke: #5EEAD4; }
.axis-line-c { stroke: #FCD34D; }
.connection-line {
  fill: none;
  stroke: #BFD7FF;
  stroke-width: 2.25;
  stroke-linecap: round;
  opacity: 0.22;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.18s ease, stroke-width 0.18s ease, stroke 0.18s ease;
}
.connection-group.is-unlocked .connection-line {
  opacity: 0.58;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.48));
}
.connection-group.is-active .connection-line,
.connection-group:focus .connection-line,
.connection-group:hover .connection-line {
  opacity: 1;
  stroke-width: 4;
  stroke: #FFFFFF;
  filter: drop-shadow(0 0 14px rgba(96, 165, 250, 0.95));
  outline: none;
}
.axis-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E2E8F0;
  background: rgba(13, 27, 47, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
}
.label-a { left: 39.3%; top: 3.9%; }
.label-b { left: 6.9%; top: 83.4%; }
.label-c { right: 6.9%; top: 83.4%; }

.center-insight {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(300px, 32%);
  transform: translate(-50%, -50%);
  background: rgba(5, 10, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 0 44px rgba(96, 165, 250, 0.22), 0 18px 54px rgba(15, 23, 42, 0.65);
  text-align: center;
}
.center-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #93C5FD;
  margin-bottom: 8px;
}
.center-insight strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.38rem;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.center-insight span:last-child {
  color: #D7E4F7;
  font-size: 13px;
  line-height: 1.5;
}

.paper-node {
  border: 1px solid rgba(191, 215, 255, 0.28);
  border-left: 5px solid var(--node-accent);
  background: rgba(5, 10, 20, 0.84);
  color: #F8FAFC;
  text-align: left;
  border-radius: 4px 10px 10px 4px;
  padding: 11px 12px;
  min-height: 72px;
  width: clamp(148px, 16.2%, 174px);
  cursor: pointer;
  position: relative;
  scroll-margin-top: 88px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36), inset 0 0 18px rgba(255, 255, 255, 0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.paper-node::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(191, 215, 255, 0.42);
}
.constellation-canvas .paper-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  width: 140px;
  height: 60px;
  min-height: 60px;
  padding: 8px 9px;
  overflow: hidden;
  transform: translate(-50%, -50%);
}
.paper-node:hover,
.paper-node:focus-visible {
  border-color: var(--node-accent);
  background: rgba(10, 20, 36, 0.96);
  outline: none;
}
.paper-node:focus-visible {
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--node-accent), 0 0 36px var(--node-accent), 0 16px 36px rgba(0, 0, 0, 0.5);
}
.constellation-canvas .paper-node:hover {
  transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1.035);
}
.paper-node.is-highlighted {
  background: rgba(17, 31, 52, 0.98);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.8), 0 0 34px var(--node-accent), 0 20px 48px rgba(0, 0, 0, 0.52);
}
.paper-node.is-understood::after {
  background: var(--node-accent);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12), 0 0 18px var(--node-accent);
}
.paper-node.is-understood {
  border-color: var(--node-accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 0 26px var(--node-accent), 0 18px 44px rgba(0, 0, 0, 0.46);
}
.paper-meta {
  display: block;
  padding-right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  color: var(--node-accent);
  font-weight: 800;
  margin-bottom: 6px;
}
.paper-topic {
  display: block;
  color: #F8FAFC;
  font-size: 13px;
  line-height: 1.35;
}
.constellation-canvas .paper-meta {
  font-size: 9.5px;
  line-height: 1.25;
  margin-bottom: 3px;
}
.constellation-canvas .paper-topic {
  display: -webkit-box;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.paper-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--node-accent);
  color: #06101D;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
}
.sequence-reason {
  display: block;
  color: #C7D5EA;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
}
.extended-label {
  display: inline-flex;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #B6C6DC;
}
.constellation-canvas .extended-label {
  display: none;
}

.stack-layout,
.sequence-layout {
  display: grid;
  gap: 16px;
  min-height: auto;
}
.axis-group {
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 8px;
  background: rgba(13, 27, 47, 0.72);
  padding: 16px;
}
.axis-group h3,
.sequence-layout h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E2E8F0;
  margin-bottom: 12px;
}
.axis-grid,
.sequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(218px, 100%), 1fr));
  gap: 11px;
}
.axis-grid .paper-node,
.sequence-grid .paper-node {
  width: 100%;
  min-height: 104px;
  box-shadow: none;
}

.relations-section,
.reading-principle {
  margin-top: 26px;
  border: 1px solid rgba(191, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.84);
  color: #E5EDF8;
  overflow: hidden;
}
.relation-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 0;
  border-top: 1px solid rgba(191, 215, 255, 0.18);
}
.relation-chip {
  min-height: 78px;
  border: 0;
  border-right: 1px solid rgba(191, 215, 255, 0.16);
  border-bottom: 1px solid rgba(191, 215, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: #E5EDF8;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}
.relation-chip:hover,
.relation-chip:focus-visible,
.relation-chip.is-active {
  background: rgba(96, 165, 250, 0.16);
  outline: none;
}
.relation-chip:focus-visible { box-shadow: inset 0 0 0 3px var(--primary); }
.relation-title {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: #93C5FD;
  font-weight: 800;
  margin-bottom: 5px;
}
.relation-copy {
  display: block;
  color: #C7D5EA;
  font-size: 13px;
  line-height: 1.45;
}

.reading-principle {
  padding-bottom: 6px;
}
.reading-principle > .eyebrow,
.reading-principle > h2 {
  margin-left: 20px;
  margin-right: 20px;
}
.reading-principle > .eyebrow { margin-top: 20px; }
.reading-principle > h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(191, 215, 255, 0.18);
}
.principle-grid article {
  padding: 18px 20px;
  border-right: 1px solid rgba(191, 215, 255, 0.18);
}
.principle-grid article:last-child { border-right: 0; }
.principle-grid h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.principle-grid p {
  color: #C7D5EA;
  font-size: 14px;
  margin-bottom: 0;
}

footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(191, 215, 255, 0.18);
  font-size: 12.5px;
  color: #B6C6DC;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a {
  color: #D7E4F7;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
footer a:hover,
footer a:focus-visible {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
  outline: none;
}
footer a:focus-visible { box-shadow: 0 0 0 3px var(--primary-bg); }

.paper-dialog {
  width: min(880px, calc(100vw - 40px));
  max-height: min(820px, calc(100dvh - 40px));
  border: 1px solid rgba(191, 215, 255, 0.32);
  border-radius: 12px;
  padding: 0;
  color: #E5EDF8;
  background:
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 23, 40, 0.98), rgba(5, 10, 20, 0.98));
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.paper-dialog::backdrop {
  background: rgba(2, 6, 12, 0.76);
  backdrop-filter: blur(2px);
}
.dialog-shell {
  position: relative;
  max-height: inherit;
  padding: 26px;
  overflow: auto;
}
.dialog-close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(191, 215, 255, 0.46);
  border-radius: 6px;
  background: rgba(5, 10, 20, 0.78);
  color: #F8FAFC;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  margin: 0 0 10px 18px;
}
.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: rgba(96, 165, 250, 0.18);
  outline: none;
}
.dialog-close:focus-visible { box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28); }
.dialog-axis {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 8px;
}
.paper-dialog h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  line-height: 1.2;
  padding-right: 56px;
  margin-bottom: 10px;
  color: #FFFFFF;
}
.dialog-meta {
  font-family: var(--mono);
  color: #B6C6DC;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.dialog-summary {
  max-width: 68ch;
  color: #E2E8F0;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid rgba(96, 165, 250, 0.72);
}
.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
  margin-bottom: 12px;
}
.dialog-grid section,
.paper-dialog section[aria-labelledby="dialog-related-title"] {
  border: 1px solid rgba(191, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.72);
  padding: 14px;
}
.paper-dialog h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BFDBFE;
  margin-bottom: 10px;
}
.meaning-source {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(96, 165, 250, 0.18);
  color: #D7E8FF;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.implication-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.implication-block:first-of-type {
  margin-top: 8px;
}
.implication-block h4 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C7D7EE;
}
.implication-text {
  color: #F8FAFC;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.evidence-quote {
  margin: 0;
  padding: 10px 14px;
  background: rgba(15, 25, 50, 0.55);
  border-left: 2px solid rgba(96, 165, 250, 0.55);
  border-radius: 0 6px 6px 0;
}
.evidence-quote p {
  margin: 0 0 6px;
  color: #DBE6F5;
  font-size: 13.5px;
  line-height: 1.55;
  font-style: italic;
}
.evidence-quote footer {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #97A8C2;
}
.evidence-quote footer cite {
  font-style: normal;
}
.no-implication {
  color: #97A8C2;
  font-style: italic;
  font-size: 13.5px;
  margin: 0 0 6px;
}
.path-note,
.copy-status {
  color: #B6C6DC;
  font-size: 12.5px;
  line-height: 1.5;
}
.path-copy {
  display: grid;
  gap: 8px;
}
.path-copy code {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  background: rgba(2, 6, 12, 0.72);
  border: 1px solid rgba(191, 215, 255, 0.22);
  border-radius: 6px;
  padding: 9px;
  color: #D7E4F7;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
}
.path-copy button {
  justify-self: start;
  border: 1px solid rgba(96, 165, 250, 0.78);
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.18);
  color: #FFFFFF;
  min-height: 34px;
  padding: 7px 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.path-copy button:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.28);
  outline-offset: 2px;
}
.path-copy button:hover {
  border-color: #FFFFFF;
  background: rgba(96, 165, 250, 0.3);
}
.dialog-related {
  display: grid;
  gap: 8px;
}
.related-item {
  border: 1px solid rgba(191, 215, 255, 0.22);
  background: rgba(11, 23, 40, 0.72);
  border-radius: 6px;
  padding: 10px 12px;
  color: #C7D5EA;
}
.related-item strong {
  display: block;
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 11px;
  margin-bottom: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .map-frame {
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .market-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-instrument {
    justify-items: stretch;
  }
  .symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .symptom-door:last-child {
    grid-column: 1 / -1;
  }
  .self-check-layout,
  .silent-diagnosis,
  .research-section {
    grid-template-columns: 1fr;
  }
  .self-check-result {
    position: static;
    min-height: 0;
  }
  .check-question,
  .self-check-actions {
    border-right: 0;
  }
  .offer-main,
  .research-section > div:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(191, 215, 255, 0.18);
  }
  .constellation-canvas {
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 10px;
    padding: 12px;
    overflow: visible;
  }
  .constellation-canvas::before,
  .constellation-canvas::after,
  .axis-svg,
  .axis-label,
  .center-insight {
    display: none;
  }
  .constellation-canvas .paper-node {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 96px;
    transform: none;
  }
  .constellation-canvas .paper-node:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .market-hero,
  .symptom-section,
  .self-check-section,
  .silent-diagnosis,
  .research-section,
  .map-entry {
    margin-bottom: 16px;
  }
  .market-hero {
    padding: 24px;
  }
  .symptom-grid,
  .offer-deliverables,
  .research-grid {
    grid-template-columns: 1fr;
  }
  .symptom-door,
  .research-grid article,
  .offer-deliverables article {
    border-right: 0;
  }
  .symptom-door:last-child {
    grid-column: auto;
  }
  .public-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .workbench {
    display: block;
    overflow: hidden;
    padding: 0;
  }
  .intro-panel {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "brand"
      "subtitle"
      "thesis"
      "axis"
      "progress"
      "controls";
  }
  .intro-panel::after { display: none; }
  .map-section {
    height: auto;
    border-left: 0;
    padding-left: 0;
    margin-top: 10px;
  }
  .map-frame {
    height: auto;
    min-height: 0;
    max-width: 100%;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .section-heading,
  .map-section > .section-heading {
    position: static;
    width: auto;
    border-radius: 0;
  }
  .constellation-canvas {
    margin: 10px;
  }
  .map-section { min-height: 0; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .intro-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "brand"
      "subtitle"
      "thesis"
      "axis"
      "progress"
      "controls";
  }
  .control-copy { display: none; }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 10px 16px;
    align-items: flex-start;
  }
  .nav-right {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }
  .language-switcher {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 222px;
  }
  .language-button {
    min-width: 0;
  }
  .wrap { padding: 12px 10px 48px; }
  .market-hero {
    padding: 14px;
    border-radius: 8px;
    gap: 16px;
  }
  .ownership-panel {
    padding: 12px;
  }
  .ownership-panel h2 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .ownership-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .ownership-list li {
    padding: 8px 9px;
  }
  .ownership-list li:last-child {
    grid-column: 1 / -1;
  }
  .ownership-list span {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .ownership-list strong {
    font-size: 11px;
    line-height: 1.25;
  }
  .hero-lede {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .primary-action,
  .secondary-action {
    min-height: 42px;
  }
  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: auto;
  }
  .hero-instrument {
    min-height: auto;
    justify-items: stretch;
    gap: 12px;
  }
  .symptom-door {
    min-height: auto;
    padding: 16px;
  }
  .check-question {
    padding: 16px;
  }
  .check-option {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .check-option input {
    margin-top: 0;
  }
  .self-check-actions {
    padding: 16px;
  }
  .result-actions {
    padding: 0;
  }
  .self-check-result {
    padding: 20px 16px;
  }
  .workbench { gap: 10px; }
  .intro-panel {
    padding: 14px 14px 14px 18px;
    gap: 9px;
  }
  .intro-panel::before { width: 5px; }
  .lab-tag {
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 4px 8px;
  }
  .hero-title {
    font-size: clamp(2.05rem, 9.8vw, 3.2rem);
    margin: 12px 0 14px;
  }
  .map-brand { font-size: 2.35rem; }
  .map-brand span {
    display: inline-block;
    margin: 0 0 0 8px;
    font-size: 0.34em;
    vertical-align: 0.18em;
  }
  .subtitle {
    font-size: 14.5px;
    line-height: 1.45;
  }
  .lede,
  .axis-legend { display: none; }
  .thesis-strip {
    padding: 9px 0 10px;
  }
  .thesis-strip h2 {
    font-size: 1.18rem;
    margin-bottom: 0;
  }
  .thesis-strip p:last-child { display: none; }
  .progress-panel { padding: 10px; }
  .progress-row {
    font-size: 10px;
    letter-spacing: 0.07em;
  }
  .progress-track { margin: 8px 0 7px; }
  .progress-panel p { font-size: 12px; }
  .controls { gap: 8px; }
  .control-copy { display: none; }
  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }
  .section-heading h2 { font-size: 1.1rem; }
  .map-status,
  .relation-help { text-align: left; }
  .mode-button {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-align: center;
  }
  .mode-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-button[data-mode="sequence"] {
    grid-column: 1 / -1;
  }
  .map-section { min-height: 0; }
  .map-board { padding: 10px; min-height: 0; }
  .constellation-canvas { min-width: 0; }
  .principle-grid,
  .dialog-grid { grid-template-columns: 1fr; }
  .principle-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2.2rem; }
  .map-brand { font-size: 2.25rem; }
  .lab-tag { max-width: 100%; }
  .paper-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }
  .paper-dialog h2 { font-size: 1.55rem; }
  .dialog-shell { padding: 16px; }
  .dialog-summary { font-size: 14.5px; }
  .dialog-close {
    width: 34px;
    height: 34px;
    margin-left: 12px;
  }
}

@media (max-width: 360px) {
  .hero-instrument {
    display: none;
  }
  .hero-lede {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .mode-switcher {
    grid-template-columns: 1fr;
  }
  .mode-button[data-mode="sequence"] {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  body { background-image: none; }
  .top-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .constellation-canvas .paper-node:hover { transform: translate(-50%, -50%); }
  .axis-grid .paper-node:hover,
  .sequence-grid .paper-node:hover { transform: none; }
}
