:root {
  color: #171a1f;
  background: #f5f7fa;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #171a1f;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --wash-2: #eef3f6;
  --line: #d9e0e8;
  --line-strong: #c7d0db;
  --muted: #667085;
  --soft: #344054;
  --blue: #315f8c;
  --green: #4d7c65;
  --amber: #b9823f;
  --rust: #b96958;
  --slate: #7a8594;
  --shadow: 0 16px 42px rgba(32, 41, 56, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--wash);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0%;
  height: 3px;
  background: var(--blue);
}

.top-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100vw - 32px));
  min-height: 56px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(32, 41, 56, 0.1);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.brand strong {
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.top-nav nav {
  display: flex;
  gap: 4px;
}

.top-nav nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.top-nav nav a:hover,
.top-nav nav a.is-active {
  color: var(--ink);
  background: #edf2f7;
}

.scene {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: clamp(82px, 9vh, 112px) clamp(18px, 5vw, 72px) clamp(40px, 6vh, 60px);
  scroll-snap-align: start;
}

.light-scene,
.simulator-scene,
.playbook-scene {
  background: var(--wash);
}

.dark-scene {
  background: #edf2f5;
}

.hero-scene {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(28px, 5vw, 64px);
  color: var(--ink);
  background: #f8fafc;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}

.hero-content,
.hero-card,
.section-head,
.account-cards,
.sp500-panel,
.brief-grid,
.simulator-shell,
.playbook-steps,
.closing-statement {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin-inline: auto;
}

.hero-content {
  width: 100%;
  max-width: 860px;
  margin: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  word-break: keep-all;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 0.98;
}

h1 em {
  color: var(--blue);
  font-style: normal;
}

h2 {
  max-width: 1000px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}

.hero-content p,
.section-head p,
.takeaway p {
  max-width: 840px;
  font-size: clamp(15px, 1.25vw, 17px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.primary-link {
  color: var(--paper);
  background: var(--blue);
}

.secondary-link {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.hero-card {
  width: 100%;
  max-width: 420px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 20px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.hero-card-top span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card-top strong {
  color: var(--paper);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.tax-flow {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tax-flow div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.tax-flow small {
  color: var(--muted);
}

.tax-flow b {
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.hero-card p {
  margin: 14px 0 0;
  font-size: 14px;
}

.section-head {
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.section-head.narrow {
  max-width: 980px;
  margin-inline: auto;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.route-card {
  min-height: 188px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(32, 41, 56, 0.06);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.route-card:hover,
.route-card:focus,
.route-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 14px 32px rgba(49, 95, 140, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.route-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--slate);
  font-size: 12px;
  font-weight: 900;
}

.route-card h3 {
  color: var(--ink);
  font-size: 22px;
}

.route-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.62;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.route-card ul {
  display: none;
}

.route-card li {
  position: relative;
  padding-left: 14px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}

.route-card li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.route-card.domestic span {
  background: var(--slate);
}

.route-card.foreign span {
  background: var(--rust);
}

.route-card.isa span {
  background: var(--green);
}

.route-card.pension span,
.route-card.irp span {
  background: var(--amber);
}

.route-card.dc span {
  background: var(--blue);
}

.sp500-panel {
  margin-top: 14px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(32, 41, 56, 0.07);
}

.sp500-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.sp500-intro h3 {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.12;
}

.sp500-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.sp500-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 12px;
}

.sp500-toolbar button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--soft);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.sp500-toolbar button.active {
  color: var(--paper);
  border-color: var(--blue);
  background: var(--blue);
}

.sp500-case-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.sp500-case-grid article {
  display: grid;
  align-content: start;
  min-height: 168px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sp500-case-grid article.is-selected {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(49, 95, 140, 0.14);
  transform: translateY(-2px);
}

.sp500-case-grid article > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.sp500-case-grid article > strong {
  display: block;
  min-height: 48px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.28;
  word-break: keep-all;
}

.sp500-case-grid dl {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
}

.sp500-case-grid dl div {
  display: none;
  gap: 3px;
  min-height: 76px;
  padding: 9px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: var(--paper);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.sp500-case-grid dl div.is-active {
  display: grid;
  border-color: rgba(49, 95, 140, 0.45);
  background: #edf4f8;
}

.sp500-case-grid dt {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.sp500-case-grid dd {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.48;
  word-break: keep-all;
}

.sp500-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.sp500-sources span {
  color: var(--ink);
  font-weight: 900;
}

.sp500-sources a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brief-card {
  display: grid;
  align-content: start;
  min-height: 252px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(32, 41, 56, 0.06);
}

.brief-number {
  color: var(--blue);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.brief-card h3 {
  margin-top: 20px;
}

.brief-card a {
  align-self: end;
  margin-top: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.simulator-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.4fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.control-deck,
.result-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(32, 41, 56, 0.08);
}

.control-deck {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.persona-switch {
  display: grid;
  gap: 8px;
}

.persona-switch button {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: var(--paper);
  text-align: left;
}

.persona-switch button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.persona-switch button strong {
  font-size: 14px;
}

.persona-switch button.active {
  color: var(--ink);
  border-color: rgba(49, 95, 140, 0.5);
  background: #edf4f8;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.input-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.input-grid output {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
}

.result-stage {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-strip div {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 14px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.metric-strip div:nth-child(2) {
  background: var(--blue);
}

.metric-strip div:nth-child(3) {
  background: var(--green);
}

.metric-strip span,
.metric-strip small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.metric-strip strong {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.chart-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
}

.allocation-visual,
.bars-panel,
.timeline-panel,
.advice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.allocation-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 246px;
}

.donut {
  width: min(178px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0deg 150deg, var(--amber) 150deg 220deg, var(--rust) 220deg 280deg, var(--blue) 280deg 360deg);
  box-shadow: inset 0 0 0 36px var(--paper);
}

.donut-center {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.donut-center span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.donut-center strong {
  color: var(--ink);
  font-size: 24px;
}

.bars-panel {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.allocation-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 52px 82px;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.allocation-row span {
  color: var(--soft);
  font-size: 14px;
  font-weight: 900;
}

.allocation-row strong {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.allocation-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.allocation-note {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.allocation-note span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.allocation-note small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.allocation-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.allocation-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  transition: width 260ms ease;
}

.timeline-panel {
  padding: 14px;
}

.timeline-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline-copy > div {
  display: grid;
  gap: 4px;
}

.timeline-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-panel small {
  color: var(--muted);
  font-size: 12px;
}

.timeline-panel strong {
  color: var(--ink);
  font-size: 24px;
}

#wealthChart {
  display: block;
  width: 100%;
  height: 190px;
}

.advice-card {
  padding: 18px;
}

.advice-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.advice-card h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
}

.advice-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--soft);
  line-height: 1.55;
  word-break: keep-all;
}

.playbook-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.playbook-steps article {
  min-height: 286px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(32, 41, 56, 0.06);
}

.playbook-steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--blue);
  font-weight: 900;
}

.playbook-steps h3 {
  font-size: 24px;
}

.closing-statement {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.closing-statement p {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.18;
}

.closing-statement strong {
  color: #cfe0eb;
  font-size: clamp(18px, 2vw, 26px);
}

.deck-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(32, 41, 56, 0.12);
  backdrop-filter: blur(16px);
}

.deck-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.deck-controls span {
  min-width: 54px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.scene .section-head,
.scene .hero-content,
.scene .hero-card,
.scene .account-cards,
.scene .sp500-panel,
.scene .brief-grid,
.scene .simulator-shell,
.scene .playbook-steps,
.scene .closing-statement {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.scene.is-visible .section-head,
.scene.is-visible .hero-content,
.scene.is-visible .hero-card,
.scene.is-visible .account-cards,
.scene.is-visible .sp500-panel,
.scene.is-visible .brief-grid,
.scene.is-visible .simulator-shell,
.scene.is-visible .playbook-steps,
.scene.is-visible .closing-statement {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1181px) {
  #map {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 14px 16px;
  }

  #map .section-head {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  #map .account-cards {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 8px;
    align-self: start;
    align-content: start;
  }

  #map .route-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px;
  }

  #map .route-card span {
    margin: 0;
  }

  #map .route-card h3 {
    margin: 0;
    font-size: 18px;
  }

  #map .route-card p,
  #map .route-card ul {
    display: none;
  }

  #map .sp500-panel {
    grid-column: 2;
    margin-top: 0;
    align-self: start;
  }

  #map .sp500-intro {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #map .sp500-intro p {
    max-width: 100%;
  }

  #map .sp500-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #map .sp500-case-grid article {
    min-height: 150px;
  }

  #map .sp500-case-grid article > strong {
    min-height: 38px;
    font-size: 15px;
  }

  #map .sp500-case-grid dl div {
    min-height: 58px;
  }

  .result-stage {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    grid-template-areas:
      "metrics metrics"
      "chart chart"
      "timeline advice";
    align-items: stretch;
  }

  .metric-strip {
    grid-area: metrics;
  }

  .chart-row {
    grid-area: chart;
  }

  .timeline-panel {
    grid-area: timeline;
  }

  .advice-card {
    grid-area: advice;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .account-cards,
  .sp500-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .top-nav nav {
    display: none;
  }

  .scene {
    align-content: start;
  }

  .hero-scene,
  .simulator-shell {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .control-deck {
    position: relative;
    top: auto;
  }

  .hero-card {
    max-width: none;
  }

  .brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp500-intro {
    grid-template-columns: 1fr;
  }

  .playbook-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: none;
  }

  .top-nav {
    top: 10px;
    width: calc(100vw - 20px);
  }

  .brand strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .scene {
    min-height: auto;
    padding: 96px 14px 48px;
  }

  .hero-scene {
    min-height: 100svh;
  }

  .hero-actions,
  .tax-flow div,
  .timeline-copy {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .account-cards,
  .sp500-case-grid,
  .brief-grid,
  .input-grid,
  .metric-strip,
  .chart-row,
  .playbook-steps {
    grid-template-columns: 1fr;
  }

  .route-card,
  .sp500-case-grid article,
  .brief-card,
  .playbook-steps article {
    min-height: auto;
  }

  .sp500-toolbar button {
    flex: 1 1 96px;
  }

  .persona-switch button {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .allocation-row {
    grid-template-columns: 88px minmax(0, 1fr) 44px 68px;
    gap: 8px;
  }

  .deck-controls {
    right: 10px;
    bottom: 10px;
  }
}
