/* ==========================================================================
   E-Magazine Data Journalism Stylesheet
   Minimum body font size: 16px+ | Minimum infographic text size: 18px
   ========================================================================== */

:root {
  --bg-paper: #FAF8F3;
  --bg-card: #FFFFFF;
  --bg-tint: #F1EFE7;
  --ink-primary: #17231E;
  --ink-secondary: #374740;
  --ink-muted: #4C5D55;

  --forest: #174B37;
  --forest-deep: #0F3526;
  --forest-soft: #E5EFEA;

  --lotus: #A93E58;
  --lotus-soft: #F9EBF0;

  --gold: #B6761E;
  --gold-bright: #D69B38;
  --gold-soft: #FBF3E4;

  --border-subtle: rgba(23, 75, 55, 0.14);
  --shadow-card: 0 18px 48px rgba(15, 53, 38, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 53, 38, 0.06);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px base */
  line-height: 1.8;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   HERO COVER (Centered Title, Subtle Parallax, High Contrast)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--forest-deep);
  padding: 5rem 1.5rem;
}

.hero-media {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 32, 23, 0.56) 0%,
    rgba(12, 39, 28, 0.72) 55%,
    rgba(10, 32, 23, 0.84) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  color: #FFFFFF;
}

.hero-kicker {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  font-size: 1rem; /* 16px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F6DFB0;
  margin-bottom: 1.75rem;
}

.hero-title {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  color: #F6DFB0;
}

.hero-ornament span {
  display: block;
  width: 64px;
  height: 1px;
  background: rgba(246, 223, 176, 0.55);
}

/* ==========================================================================
   EDITORIAL LAYOUT & TYPOGRAPHY
   ========================================================================== */

.editorial-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lead-section {
  padding: 4rem 0 2rem;
}

.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--forest);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-soft);
}

.lead-paragraph {
  margin: 0 0 1.25rem;
  font-size: 1.25rem; /* 20px */
  line-height: 1.78;
  font-weight: 500;
  color: var(--ink-primary);
}

.lead-paragraph:last-child {
  margin-bottom: 0;
}

.story-part {
  padding: 3.5rem 0 1.5rem;
}

.part-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.part-number {
  display: inline-block;
  font-size: 1rem; /* 16px */
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--forest-soft);
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.part-1 .part-number {
  color: var(--lotus);
  background: var(--lotus-soft);
}

.part-3 .part-number {
  color: var(--gold);
  background: var(--gold-soft);
}

.part-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-primary);
  text-wrap: balance;
}

/* Editorial Figures (Simple, No Text Overlays) */
.editorial-figure {
  margin: 0 0 2.5rem;
}

.figure-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: var(--bg-tint);
}

.figure-frame img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translateY(-6%);
  transition: transform 0.25s ease-out;
}

/* Prose */
.prose-block p {
  margin: 0 0 1.6rem;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.85;
  color: var(--ink-secondary);
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.1rem;
  line-height: 0.85;
  font-weight: 700;
  color: var(--forest);
  padding: 0.2rem 0.75rem 0.1rem 0;
}

.part-1 .dropcap::first-letter {
  color: var(--lotus);
}

.part-3 .dropcap::first-letter {
  color: var(--gold);
}

/* ==========================================================================
   INFOGRAPHICS (Strictly >= 18px text, Balanced Grids, SVG Charts)
   ========================================================================== */

.infographic-wrap {
  max-width: 1080px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.infographic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  font-size: 1.125rem; /* 18px minimum baseline inside infographics */
}

.info-theme-lotus {
  border-top: 5px solid var(--lotus);
}

.info-theme-forest {
  border-top: 5px solid var(--forest);
}

.info-theme-herb {
  border-top: 5px solid var(--gold);
}

.info-head {
  text-align: center;
  margin-bottom: 2rem;
}

.info-kicker {
  display: inline-block;
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.45rem;
}

.info-theme-lotus .info-kicker {
  color: var(--lotus);
}

.info-theme-herb .info-kicker {
  color: var(--gold);
}

.info-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem) !important;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
}

.info-subblock {
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.info-subhead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-subtitle {
  font-size: 1.25rem !important; /* 20px */
  font-weight: 700;
  color: var(--ink-primary);
}

.info-hint {
  font-size: 1.125rem !important; /* 18px */
  color: var(--ink-muted);
}

/* Grids (Always Symmetrical / Balanced) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

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

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

/* Infographic 1: Interactive Timeline */
.svg-timeline-track {
  margin-bottom: 0.75rem;
}

.timeline-svg {
  width: 100%;
  height: 36px;
  display: block;
}

.tl-line-bg {
  stroke: #DFD9CE;
  stroke-width: 4;
  stroke-linecap: round;
}

.tl-line-active {
  stroke: var(--lotus);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 680;
  stroke-dashoffset: 680;
  transition: stroke-dashoffset 1.2s ease-out;
}

.infographic-card.is-visible .tl-line-active {
  stroke-dashoffset: 0;
}

.tl-dot {
  fill: var(--bg-card);
  stroke: #C9C1B4;
  stroke-width: 4;
  transition: fill 0.25s ease, stroke 0.25s ease, r 0.25s ease;
}

.tl-dot.active {
  fill: var(--lotus);
  stroke: var(--lotus-soft);
  r: 10;
}

.tl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-primary);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tl-card:hover {
  transform: translateY(-2px);
  border-color: var(--lotus);
}

.tl-card.is-active {
  background: var(--lotus-soft);
  border-color: var(--lotus);
  box-shadow: 0 6px 18px rgba(169, 62, 88, 0.14);
}

.tl-year {
  font-size: 1.5rem !important; /* 24px */
  font-weight: 800;
  color: var(--lotus);
  line-height: 1.2;
}

.tl-label {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 600;
  line-height: 1.4;
}

.tl-detail-bar {
  margin-top: 1.1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border-left: 4px solid var(--lotus);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.tl-detail-year {
  font-size: 1.25rem !important; /* 20px */
  font-weight: 800;
  color: var(--lotus);
}

.tl-detail-text {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 500;
  color: var(--ink-primary);
}

/* Panels & SVG Bars */
.data-panel {
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.panel-title {
  margin: 0;
  font-size: 1.25rem !important; /* 20px */
  font-weight: 700;
  color: var(--ink-primary);
}

.area-bars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 1.125rem !important; /* 18px */
  font-weight: 500;
  color: var(--ink-secondary);
}

.bar-val {
  font-size: 1.25rem !important; /* 20px */
  font-weight: 800;
  color: var(--ink-primary);
  white-space: nowrap;
}

.bar-svg {
  width: 100%;
  height: 28px;
  display: block;
}

.svg-bar-track {
  fill: #E4DFD4;
}

.svg-bar-fill {
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.lotus-fill {
  fill: var(--lotus);
}

.forest-fill {
  fill: var(--forest);
}

.gold-fill {
  fill: var(--gold-bright);
}

.mini-kpi-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mini-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.kpi-num {
  display: block;
  font-size: 1.75rem !important; /* 28px */
  font-weight: 800;
  color: var(--lotus);
  line-height: 1.2;
}

.kpi-desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.125rem !important; /* 18px */
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* Value Chain Flow */
.chain-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0;
}

.chain-node {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.highlight-node {
  border-color: var(--lotus);
  background: var(--lotus-soft);
}

.chain-icon {
  color: var(--lotus);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-text {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
}

.chain-arrow {
  flex-shrink: 0;
  color: var(--lotus);
}

.panel-note {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  border-left: 4px solid var(--lotus);
  font-size: 1.125rem !important; /* 18px */
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   INFOGRAPHIC 2: NGHỆ AN COMPARISON
   ========================================================================== */

.info-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.info-tab {
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-size: 1.125rem !important; /* 18px */
  font-weight: 600;
  transition: all 0.2s ease;
}

.info-tab:hover {
  border-color: var(--forest);
}

.info-tab.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #FFFFFF;
}

.ng-an-grid.focus-minhthanh .panel-lienthanh,
.ng-an-grid.focus-lienthanh .panel-minhthanh {
  opacity: 0.42;
  transform: scale(0.985);
}

.panel-minhthanh,
.panel-lienthanh {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.panel-badge-row {
  display: flex;
  align-items: center;
}

.panel-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 1.125rem !important; /* 18px */
  font-weight: 700;
}

.forest-tag {
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.gold-tag {
  background: var(--gold-soft);
  color: #7D4E0B;
}

.kpi-quad {
  gap: 0.9rem;
}

.kpi-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.kpi-big {
  display: block;
  font-size: 1.625rem !important; /* 26px */
  font-weight: 800;
  color: var(--forest);
  line-height: 1.2;
}

.panel-lienthanh .kpi-big {
  color: #8F580E;
}

.kpi-sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.125rem !important; /* 18px */
  color: var(--ink-secondary);
  line-height: 1.35;
}

.svg-chart-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chart-heading {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 700;
  color: var(--ink-primary);
}

.equip-row {
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  align-items: center;
  gap: 0.75rem;
}

.equip-name {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 500;
  color: var(--ink-secondary);
}

.equip-svg {
  width: 100%;
  height: 24px;
  display: block;
}

.equip-val {
  text-align: right;
  font-size: 1.25rem !important; /* 20px */
  font-weight: 800;
  color: var(--forest);
}

.uav-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-size: 1.125rem !important; /* 18px */
  font-weight: 500;
  line-height: 1.4;
}

.uav-pill svg {
  flex-shrink: 0;
  color: var(--forest);
}

.silo-svg {
  width: 100%;
  height: 32px;
  display: block;
}

.silo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.silo-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--ink-secondary);
}

.forest-dot {
  background: var(--forest);
}

.capital-compare {
  margin-top: 1.5rem;
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.capital-header {
  margin-bottom: 1rem;
}

/* ==========================================================================
   INFOGRAPHIC 3: PHỦ QUỲ OCOP & SUMMARY
   ========================================================================== */

.donut-layout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.donut-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: #E4DFD4;
  stroke-width: 20;
}

.donut-segment {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 20;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-big {
  font-size: 1.75rem !important; /* 28px */
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.1;
}

.donut-sub {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 600;
  color: var(--gold);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem !important; /* 18px */
  color: var(--ink-secondary);
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gold-dot {
  background: var(--gold-bright);
}

.muted-dot {
  background: #D3CEC2;
}

.herb-list-label {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 700;
  color: var(--ink-primary);
}

.herb-chips {
  gap: 0.75rem;
}

.herb-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.65rem;
  background: var(--gold-soft);
  border: 1px solid rgba(182, 118, 30, 0.25);
  border-radius: var(--radius-sm);
  font-size: 1.125rem !important; /* 18px */
  font-weight: 700;
  color: #7D4E0B;
}

.upgrade-grid {
  gap: 0.9rem;
}

.upgrade-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-primary);
  transition: all 0.2s ease;
}

.upgrade-card svg {
  color: var(--gold);
}

.upgrade-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.upgrade-card.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(182, 118, 30, 0.14);
}

.upgrade-name {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 700;
  line-height: 1.35;
}

.upgrade-caption {
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 1.125rem !important; /* 18px */
  color: var(--ink-secondary);
  line-height: 1.5;
}

.models-summary {
  margin-top: 1.75rem;
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.summary-heading {
  margin: 0 0 1rem;
  font-size: 1.25rem !important; /* 20px */
  font-weight: 700;
  color: var(--ink-primary);
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-loc {
  font-size: 1.125rem !important; /* 18px */
  font-weight: 700;
  color: var(--forest);
}

.summary-name {
  font-size: 1.25rem !important; /* 20px */
  font-weight: 800;
  color: var(--ink-primary);
}

.summary-stat {
  font-size: 1.125rem !important; /* 18px */
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   BYLINE & SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.article-byline {
  padding: 3rem 0 5rem;
  text-align: center;
}

.byline-divider {
  width: 96px;
  height: 3px;
  background: var(--forest);
  margin: 0 auto 1.25rem;
  border-radius: 999px;
}

.byline-authors {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  /* Keep 2x2 KPI quad balanced on tablet */
  .kpi-quad,
  .upgrade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svg-timeline-track {
    display: none;
  }

  .infographic-card {
    padding: 1.75rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem; /* 17px on mobile, strictly >= 16px */
  }

  .hero {
    min-height: 68vh;
    padding: 3.5rem 1.25rem;
  }

  .lead-card {
    padding: 1.5rem 1.35rem;
  }

  .lead-paragraph {
    font-size: 1.125rem; /* 18px */
  }

  .prose-block p {
    font-size: 1.0625rem; /* 17px */
  }

  .infographic-wrap {
    padding: 0 1rem;
    margin: 2.25rem auto;
  }

  .infographic-card {
    padding: 1.25rem;
  }

  .info-subblock,
  .data-panel,
  .capital-compare,
  .models-summary {
    padding: 1.15rem;
  }

  .grid-4,
  .kpi-quad,
  .upgrade-grid,
  .mini-kpi-pair {
    grid-template-columns: 1fr;
  }

  .herb-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chain-flow {
    flex-direction: column;
  }

  .chain-node {
    width: 100%;
  }

  .chain-arrow {
    transform: rotate(90deg);
  }

  .equip-row {
    grid-template-columns: 88px 1fr 38px;
  }
}

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

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

  .svg-bar-fill,
  .donut-segment,
  .tl-line-active {
    transition: none;
  }
}
