/* ==========================================================================
   Data-Journalism Emagazine — HTX TP Cần Thơ
   Typography: Be Vietnam Pro + Lora | Base >= 16px | Infographic >= 18px
   ========================================================================== */

:root {
  --bg-page: #f7f8f5;
  --bg-chapter-alt: #eff4f2;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f2f7f5;
  --ink-primary: #11201d;
  --ink-secondary: #2e423e;
  --ink-muted: #4b615c;

  --brand-deep: #0b2c27;
  --brand-emerald: #0e6b5e;
  --brand-teal: #14967f;
  --brand-mint: #2dd4bf;
  --brand-gold: #c98a1c;
  --brand-gold-bright: #f2b749;

  --border-subtle: rgba(17, 32, 29, 0.1);
  --border-accent: rgba(14, 107, 94, 0.24);

  --shadow-soft: 0 12px 36px rgba(11, 44, 39, 0.06);
  --shadow-card: 0 18px 48px rgba(11, 44, 39, 0.08);

  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius-md: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.82;
  color: var(--ink-primary);
  background-color: var(--bg-page);
  overflow-x: hidden;
}

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

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

/* ==========================================================================
   HERO SECTION — Multi-Layer Parallax & Motion, Centered Title & Sapo
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 9vh, 7.5rem) clamp(1.25rem, 5vw, 3rem);
  overflow: hidden;
  background-color: var(--brand-deep);
  color: #ffffff;
}

.hero-bg-layer {
  position: absolute;
  inset: -12% 0;
  z-index: 1;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(0.92) contrast(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.02);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 42%, rgba(11, 44, 39, 0.42) 0%, rgba(7, 26, 23, 0.84) 78%),
    linear-gradient(180deg, rgba(8, 30, 26, 0.65) 0%, rgba(11, 44, 39, 0.72) 55%, rgba(11, 44, 39, 0.94) 100%);
}

.hero-data-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

.hero-grid-svg {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-wave {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: drawHeroWave 2.6s var(--ease-out) 0.25s forwards;
}

.hero-wave-2 {
  animation-delay: 0.55s;
}

@keyframes drawHeroWave {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseNode 4.5s ease-in-out infinite;
}

.node-1 {
  animation-delay: 1s;
}

.node-2 {
  animation-delay: 1.5s;
}

.node-3 {
  animation-delay: 2s;
}

@keyframes pulseNode {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.45);
  }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 3;
  will-change: transform;
}

.hero-orb-1 {
  width: min(46vw, 480px);
  height: min(46vw, 480px);
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.26) 0%, transparent 70%);
}

.hero-orb-2 {
  width: min(42vw, 440px);
  height: min(42vw, 440px);
  bottom: -12%;
  right: -6%;
  background: radial-gradient(circle, rgba(242, 183, 73, 0.22) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-accent-line {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-mint), var(--brand-gold-bright));
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: scaleX(0.3);
  animation: lineReveal 0.9s var(--ease-out) 0.15s forwards;
}

@keyframes lineReveal {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.15rem, 4.8vw, 4rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise 1s var(--ease-out) 0.3s forwards;
}

.hero-divider {
  position: relative;
  width: min(260px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroFade 0.9s var(--ease-out) 0.55s forwards;
}

.divider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-gold-bright);
  box-shadow: 0 0 16px rgba(242, 183, 73, 0.85);
}

.hero-sapo {
  max-width: 820px;
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(246, 250, 249, 0.94);
  background: rgba(11, 44, 39, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.35rem, 3.5vw, 2.5rem);
  opacity: 0;
  transform: translateY(24px);
  animation: heroRise 1s var(--ease-out) 0.65s forwards;
}

.hero-scroll-cue {
  margin-top: 2.75rem;
  opacity: 0;
  animation: heroFade 1s var(--ease-out) 1.05s forwards;
}

.scroll-mouse {
  display: inline-flex;
  justify-content: center;
  width: 28px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-gold-bright);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  65% {
    transform: translateY(12px);
    opacity: 0.2;
  }
}

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   CHAPTERS & EDITORIAL PROSE
   ========================================================================== */

.article-main {
  position: relative;
}

.chapter {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.15rem, 4vw, 2.5rem);
  position: relative;
}

.chapter-2 {
  background-color: var(--bg-chapter-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.chapter-header {
  max-width: 780px;
  margin: 0 auto clamp(2.25rem, 4.5vw, 3.25rem);
  text-align: center;
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: var(--brand-gold-bright);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 24px rgba(11, 44, 39, 0.16);
}

.chapter-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.3vw, 2.65rem);
  line-height: 1.28;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

.chapter-rule {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-emerald), var(--brand-gold));
  margin: 1.35rem auto 0;
}

.prose-container {
  max-width: 740px;
  margin: 0 auto;
}

.prose-container p {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); /* 17px–19px */
  line-height: 1.85;
  color: var(--ink-primary);
  margin-bottom: 1.55rem;
}

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

/* ==========================================================================
   EDITORIAL FIGURES (Clean 16:9 JPG with Subtle Scroll Parallax)
   ========================================================================== */

.editorial-figure {
  max-width: 1020px;
  margin: clamp(2.5rem, 5vw, 3.75rem) auto;
}

.figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--brand-deep);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.figure-frame img {
  width: 100%;
  height: 114%;
  object-fit: cover;
  transform: translateY(-7%);
  transition: transform 0.25s linear;
  will-change: transform;
}

/* ==========================================================================
   INFOGRAPHICS — Pure Data, SVG, Balanced Grids, Font >= 18px STRICTLY
   ========================================================================== */

.infographic {
  max-width: 1060px;
  margin: clamp(2.75rem, 5.5vw, 4.25rem) auto;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-card);
  font-size: 18px;
}

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

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

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

/* Balanced Grids */
.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

/* KPI Cards */
.kpi-card {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.kpi-icon {
  color: var(--brand-emerald);
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}

.kpi-prefix {
  color: var(--brand-teal);
  margin-right: 2px;
}

.kpi-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* Data Panels */
.data-panel {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

/* Horizontal Bars (Infographic 1) */
.hbar-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hbar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hbar-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.hbar-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-deep);
}

.hbar-track {
  width: 100%;
  height: 16px;
  background: rgba(17, 32, 29, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-emerald), var(--brand-teal));
  transition: width 1.35s var(--ease-out);
}

.hbar-fill.fill-gold {
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-bright));
}

/* Donut Ring (Infographic 1 & 3) */
.donut-panel {
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.donut-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}

.donut-svg {
  transform: rotate(-90deg);
}

.donut-bg {
  stroke: rgba(17, 32, 29, 0.09);
}

.donut-ring {
  stroke: var(--brand-teal);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.donut-ring-gold {
  stroke: var(--brand-gold);
}

.donut-center {
  position: absolute;
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1;
}

.donut-caption {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.4;
  max-width: 300px;
}

/* Interactive Tabs (Infographic 1 & 3) */
.info-interactive-bar {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.tab-buttons,
.matrix-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.matrix-controls {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.tab-btn {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-accent);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-deep);
}

.tab-btn.is-active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #ffffff;
}

.tab-panel {
  display: none;
  animation: fadePanel 0.35s var(--ease-out);
}

.tab-panel.is-active {
  display: block;
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.focus-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-accent);
  color: var(--brand-deep);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.focus-chip svg {
  flex-shrink: 0;
  color: var(--brand-emerald);
}

/* Vertical Bar Comparison (Infographic 2) */
.vbar-chart {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: end;
  padding-top: 0.5rem;
}

.vbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.vbar-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.15;
}

.vbar-track {
  width: 72px;
  height: 148px;
  background: rgba(17, 32, 29, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 4px;
}

.vbar-fill {
  width: 100%;
  height: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--brand-teal), var(--brand-emerald));
  transition: height 1.35s var(--ease-out);
}

.vbar-fill.fill-gold {
  background: linear-gradient(180deg, var(--brand-gold-bright), var(--brand-gold));
}

.vbar-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* Growth Curve Panel (Infographic 2) */
.growth-panel {
  align-items: center;
  text-align: center;
}

.growth-figure {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 800;
  color: var(--brand-emerald);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.growth-svg {
  max-width: 360px;
  overflow: visible;
}

.chart-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.chart-area {
  opacity: 0;
  transition: opacity 1.1s ease 0.45s;
}

.chart-dot {
  opacity: 0;
  transition: opacity 0.45s ease 1.1s;
}

.infographic.is-animated .chart-line {
  stroke-dashoffset: 0;
}

.infographic.is-animated .chart-area,
.infographic.is-animated .chart-dot {
  opacity: 1;
}

.growth-caption {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-top: 0.35rem;
}

/* 4-Step Synchronized Chain (Infographic 2) */
.chain-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.chain-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.35rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  color: var(--ink-primary);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.chain-step:hover,
.chain-step.is-active {
  transform: translateY(-4px);
  border-color: var(--brand-emerald);
  background: var(--brand-deep);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(11, 44, 39, 0.16);
}

.step-badge {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: 0.05em;
}

.chain-step:hover .step-badge,
.chain-step.is-active .step-badge {
  color: var(--brand-gold-bright);
}

.step-icon {
  color: var(--brand-emerald);
}

.chain-step:hover .step-icon,
.chain-step.is-active .step-icon {
  color: var(--brand-mint);
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* Metric Mini Bars (Infographic 3) */
.metric-panel {
  align-items: center;
  text-align: center;
}

.metric-big {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.bars-mini-svg {
  max-width: 300px;
  margin: 0.25rem auto 0.65rem;
}

.mini-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0.15);
  transition: transform 1.1s var(--ease-out);
}

.infographic.is-animated .mini-bar {
  transform: scaleY(1);
}

.infographic.is-animated .mini-bar:nth-child(2) { transition-delay: 0.08s; }
.infographic.is-animated .mini-bar:nth-child(3) { transition-delay: 0.16s; }
.infographic.is-animated .mini-bar:nth-child(4) { transition-delay: 0.24s; }
.infographic.is-animated .mini-bar:nth-child(5) { transition-delay: 0.32s; }
.infographic.is-animated .mini-bar:nth-child(6) { transition-delay: 0.4s; }

.metric-sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Interactive 2-Column Matrix (Infographic 3) */
.matrix-grid {
  transition: opacity 0.3s ease;
}

.matrix-col {
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.matrix-col-cost {
  border-color: rgba(201, 138, 28, 0.32);
  background: #fbf8f1;
}

.matrix-col.is-dimmed {
  opacity: 0.36;
  transform: scale(0.985);
}

.matrix-col.is-highlighted {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.matrix-col-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-col-title svg {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

.matrix-col-cost .matrix-col-title svg {
  color: var(--brand-gold);
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.matrix-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-primary);
}

.matrix-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
}

.matrix-col-cost .matrix-list li::before {
  background: var(--brand-gold);
}

/* ==========================================================================
   AUTHOR BYLINE
   ========================================================================== */

.article-byline {
  margin-top: 3rem;
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.byline-rule {
  width: 56px;
  height: 2px;
  background: var(--brand-gold);
}

.byline-author {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-deep);
}

/* ==========================================================================
   SCROLL-TRIGGER REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ==========================================================================
   RESPONSIVE — Tablet & Mobile (All text >= 16px, Infographic >= 18px)
   ========================================================================== */

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

@media (max-width: 768px) {
  .hero {
    min-height: 92svh;
    padding: 3.75rem 1.25rem;
  }

  .hero-sapo {
    font-size: 18px;
    line-height: 1.7;
  }

  .prose-container p {
    font-size: 17px;
    line-height: 1.82;
  }

  .info-grid-3,
  .info-grid-2,
  .tab-buttons,
  .matrix-controls,
  .chip-grid-2,
  .chip-grid-3 {
    grid-template-columns: 1fr;
  }

  .chain-grid-4 {
    grid-template-columns: 1fr;
  }

  .vbar-chart {
    gap: 1rem;
  }

  .infographic {
    padding: 1.35rem 1.15rem;
  }

  .data-panel,
  .matrix-col {
    padding: 1.35rem 1.15rem;
  }
}

@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;
  }

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