:root {
  --paper: #f6f1e7;
  --paper-deep: #efe7d8;
  --paper-light: #fffcf5;
  --ink: #1f1a17;
  --ink-soft: #4a4038;
  --muted: #7a6f63;
  --line: rgba(31, 26, 23, 0.14);
  --line-strong: rgba(31, 26, 23, 0.28);
  --red: #b8322a;
  --up: #c8312b;
  --down: #1a8a5a;
  --up-rgb: 200, 49, 43;
  --down-rgb: 26, 138, 90;
  --font-body: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-display: "Noto Serif TC", "Songti TC", serif;
  --wrap: 1160px;
  --shadow: 0 18px 45px -30px rgba(31, 26, 23, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 8% -8%, rgba(184, 50, 42, 0.07), transparent 42%),
    radial-gradient(ellipse at 94% 10%, rgba(31, 26, 23, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.22), rgba(239, 231, 216, 0.25));
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(184, 50, 42, 0.18);
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10000;
  padding: 8px 16px;
  color: var(--paper-light);
  background: var(--ink);
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(58px, 9vw, 112px) 0 0;
  overflow: hidden;
}

.hero::before {
  content: "股";
  position: absolute;
  right: clamp(-40px, 3vw, 60px);
  top: clamp(-10px, 2vw, 20px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(240px, 38vw, 520px);
  line-height: 1;
  color: rgba(31, 26, 23, 0.035);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-bottom: clamp(52px, 7vw, 88px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.seal {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--paper-light);
  background: var(--red);
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.latin-a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04em;
  line-height: inherit;
  letter-spacing: 0;
  vertical-align: 0.02em;
}

.hero-sub {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  letter-spacing: 0.12em;
}

.hero-intro {
  max-width: 34em;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--paper-light);
  background: var(--ink);
}

.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.latest-card {
  position: relative;
  padding: 26px 26px 20px;
  background: rgba(255, 252, 245, 0.55);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.latest-card::before,
.latest-card::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--red);
  border-style: solid;
}

.latest-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.latest-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.latest-label {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.latest-tag {
  padding: 2px 9px;
  color: var(--red);
  border: 1px solid rgba(184, 50, 42, 0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.latest-date {
  margin: 20px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.latest-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.latest-value.is-up {
  color: var(--up);
}

.latest-value.is-down {
  color: var(--down);
}

.latest-unit {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.latest-change {
  min-height: 1.8em;
  margin: 4px 0 18px;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.latest-change .muted {
  color: var(--muted);
}

.latest-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(62px, 9vw, 108px) 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(239, 231, 216, 0.42), rgba(246, 241, 231, 0.18));
  border-top: 1px solid rgba(31, 26, 23, 0.06);
  border-bottom: 1px solid rgba(31, 26, 23, 0.06);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ---------- Chart ---------- */

.chart-card {
  padding: clamp(16px, 2.6vw, 28px);
  background: rgba(255, 252, 245, 0.52);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.index-tabs,
.scale-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.index-tabs {
  flex-wrap: wrap;
}

.idx-btn,
.scale-btn {
  appearance: none;
  padding: 7px 15px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.idx-btn:hover,
.scale-btn:hover {
  color: var(--red);
  border-color: rgba(184, 50, 42, 0.4);
}

.idx-btn.is-active,
.scale-btn.is-active {
  color: var(--paper-light);
  background: var(--red);
  border-color: var(--red);
}

.scale-label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.chart-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 2px 4px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

#chart-name {
  color: var(--ink);
  font-size: 0.9rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

.chart-shell {
  position: relative;
  margin-top: 4px;
}

.chart {
  width: 100%;
  height: clamp(380px, 54vh, 580px);
}

.status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: rgba(246, 241, 231, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 24px;
}

.status[hidden] {
  display: none;
}

.status-error {
  color: var(--ink-soft);
}

.status-error strong {
  color: var(--red);
  font-size: 1.02rem;
}

.chart-hint {
  margin: 6px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ECharts tooltip */

.tt-date {
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.tt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  font-size: 13px;
}

.tt-row strong {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.tt-event {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  max-width: 270px;
}

.tt-event-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.tt-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  color: var(--paper-light);
  background: var(--red);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.tt-event p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- Stats ---------- */

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

.stat-card {
  position: relative;
  padding: 19px 18px 17px;
  background: rgba(255, 252, 245, 0.42);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.stat-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 252, 245, 0.7);
  transform: translateY(-2px);
}

.stat-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.stat-value {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.stat-unit {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.stat-sub {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.is-up {
  color: var(--up);
}

.is-down {
  color: var(--down);
}

.is-flat {
  color: var(--ink);
}

.stats-note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid rgba(184, 50, 42, 0.35);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

/* ---------- Yearly heatmap ---------- */

.year-card {
  padding: clamp(16px, 2.6vw, 28px);
  background: rgba(255, 252, 245, 0.5);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.year-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.year-legend {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 22px;
  height: 8px;
  border-radius: 1px;
}

.swatch-up {
  background: linear-gradient(90deg, rgba(var(--up-rgb), 0.2), rgba(var(--up-rgb), 0.92));
}

.swatch-down {
  background: linear-gradient(90deg, rgba(var(--down-rgb), 0.2), rgba(var(--down-rgb), 0.92));
}

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

.year-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 78px;
  padding: 9px 9px 8px;
  color: var(--cell-ink, var(--ink));
  background: var(--cell-bg, rgba(31, 26, 23, 0.05));
  border: 1px solid rgba(31, 26, 23, 0.09);
  border-radius: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.year-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -14px rgba(31, 26, 23, 0.6);
  z-index: 1;
}

.year-cell.is-partial {
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.32);
}

.year-cell .year {
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  opacity: 0.86;
  font-variant-numeric: tabular-nums;
}

.year-cell strong {
  display: block;
  font-size: clamp(0.7rem, 1.15vw, 0.86rem);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.year-cell .partial {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  opacity: 0.82;
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  max-width: 900px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 4%, var(--line-strong) 96%, transparent);
}

.timeline-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 17px 18px 17px 68px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.timeline-item:first-child {
  border-top: 1px solid rgba(31, 26, 23, 0.08);
}

.timeline-item:hover,
.timeline-item.is-active {
  background: rgba(184, 50, 42, 0.045);
}

.timeline-num {
  position: absolute;
  left: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  color: var(--paper-light);
  background: var(--red);
  border: 3px solid var(--paper);
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(184, 50, 42, 0.28);
  transition: transform 0.18s ease;
}

.section-tint .timeline-num {
  border-color: var(--paper-deep);
}

.timeline-item:hover .timeline-num,
.timeline-item.is-active .timeline-num {
  transform: scale(1.08);
}

.timeline-date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.timeline-title {
  display: block;
  margin: 3px 0 0;
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
}

.timeline-desc {
  display: block;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.8;
}

.timeline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.timeline-close {
  color: var(--muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.timeline-close strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.timeline-cta {
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.timeline-item:hover .timeline-cta,
.timeline-item:focus-visible .timeline-cta,
.timeline-item.is-active .timeline-cta {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(52px, 7vw, 78px) 0 28px;
  color: #eee5d6;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(184, 50, 42, 0.14), transparent 44%),
    #1f1a17;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
}

.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: #f7f0e3;
}

.footer-copy {
  max-width: 28em;
  margin: 12px 0 0;
  color: rgba(238, 229, 214, 0.66);
  font-size: 0.84rem;
  line-height: 1.9;
}

.footer-updated {
  margin: 18px 0 0;
  color: rgba(238, 229, 214, 0.52);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.footer-block h3 {
  margin: 0 0 14px;
  color: #f7f0e3;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.source-list,
.notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 9px 0;
  border-top: 1px solid rgba(238, 229, 214, 0.12);
  font-size: 0.78rem;
  line-height: 1.7;
}

.source-list li:first-child {
  border-top: 0;
}

.source-list strong {
  display: block;
  color: rgba(247, 240, 227, 0.9);
  font-weight: 400;
}

.source-list span {
  display: block;
  color: rgba(238, 229, 214, 0.52);
  font-size: 0.72rem;
}

.notes-list {
  counter-reset: note;
}

.notes-list li {
  position: relative;
  padding: 0 0 10px 18px;
  color: rgba(238, 229, 214, 0.66);
  font-size: 0.78rem;
  line-height: 1.8;
}

.notes-list li::before {
  counter-increment: note;
  content: counter(note);
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(184, 50, 42, 0.9);
  font-size: 0.68rem;
}

.disclaimer {
  margin: clamp(38px, 5vw, 56px) 0 0;
  padding: 15px 20px;
  color: #f2cbc5;
  background: rgba(184, 50, 42, 0.16);
  border: 1px solid rgba(184, 50, 42, 0.62);
  font-size: clamp(0.96rem, 2vw, 1.12rem);
  letter-spacing: 0.18em;
  text-align: center;
}

.copyright {
  margin: 18px 0 0;
  color: rgba(238, 229, 214, 0.38);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .latest-card {
    max-width: 460px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .hero {
    padding-top: 46px;
  }

  .hero-sketch {
    display: none;
  }

  .hero-sub {
    letter-spacing: 0.06em;
  }

  .yearly-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .year-cell {
    min-height: 70px;
    padding: 7px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    padding: 15px 12px 15px 54px;
  }

  .timeline-num {
    width: 37px;
    height: 37px;
    top: 15px;
    border-width: 2px;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .hero-title {
    font-size: clamp(3.6rem, 20vw, 5.4rem);
  }

  .hero-actions {
    gap: 9px;
  }

  .btn {
    min-height: 42px;
    padding: 8px 17px;
    font-size: 0.82rem;
  }

  .latest-card {
    padding: 22px 20px 17px;
  }

  .chart-card,
  .year-card {
    padding: 14px 12px;
  }

  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .scale-toggle {
    width: 100%;
  }

  .scale-label {
    margin-right: auto;
  }

  .idx-btn,
  .scale-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .chart {
    height: 390px;
  }

  .chart-hint {
    font-size: 0.68rem;
  }

  .stats-grid {
    gap: 9px;
  }

  .stat-card {
    padding: 15px 13px 14px;
  }

  .stat-card::before {
    left: 13px;
  }

  .stat-value {
    font-size: 1.24rem;
  }

  .stat-sub {
    font-size: 0.68rem;
  }

  .year-summary {
    gap: 8px;
  }

  .year-cell {
    min-height: 64px;
    padding: 6px;
  }

  .year-cell .year {
    font-size: 0.65rem;
  }

  .year-cell strong {
    font-size: 0.64rem;
  }

  .year-cell .partial {
    font-size: 0.52rem;
  }

  .timeline-desc {
    font-size: 0.81rem;
  }

  .timeline-cta {
    opacity: 1;
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .disclaimer {
    letter-spacing: 0.1em;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
