/* Copyright (c) 2025-2026 CS Inspiration. All Rights Reserved.
   VietAlpha - https://csinspiration.org
   Homepage stylesheet (lab identity, 2026-07). One continuous cream surface;
   hierarchy carried by Source Serif 4, hairline rules, and spacing.
   The Vietnamese page (/vi) still uses assets/vietalpha-main.css. */

:root {
  --cream: #F4EFE6;
  --ink: #111111;
  --mid: #5A5550;
  --rust: #C05030;      /* graphics only: loop return, cost-overshoot bar */
  --rust-text: #A33F1F; /* darkened for AA text on cream */
  --rule: rgba(17, 17, 17, 0.16);
  --rule-soft: rgba(17, 17, 17, 0.09);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1140px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 clamp(30px, 4vw, 46px);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.ext-mark {
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.72em;
  transform: translateY(-0.18em);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-head.is-scrolled { border-bottom-color: var(--rule); }

.site-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-line {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  padding: 8px 2px;
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars span {
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.site-menu a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-menu a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.site-menu a.is-current { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.menu-anchor { display: none; }

.menu-lang { margin-left: 8px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lang-switch .lang-opt {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mid);
  text-decoration: none;
  padding: 4px 2px;
}
.lang-switch .lang-opt.is-current {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.lang-switch .lang-opt:hover { color: var(--ink); }
.lang-sep {
  width: 1px;
  height: 12px;
  background: var(--rule);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(64px, 9vh, 116px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.hero-heading {
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.07;
  letter-spacing: -0.015em;
  max-width: 21ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: clamp(28px, 3.5vw, 42px);
  max-width: 62ch;
}
.hero-sub p {
  font-size: clamp(1.05rem, 1.4vw, 1.17rem);
  line-height: 1.72;
}
.hero-sub p + p { margin-top: 1.1em; }

@media (min-width: 1061px) {
  .hero-sub {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 84px);
  }
  .hero-sub p { max-width: 52ch; }
  .hero-sub p + p { margin-top: 0; }
}

.hero-cta {
  margin-top: clamp(32px, 4vw, 46px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  background: var(--ink);
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.btn-primary:hover { background: #33302b; }

.btn-quiet {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.18s ease;
}
.btn-quiet:hover { text-decoration-color: var(--ink); }

/* Single coordinated entrance. */
.hero-heading, .hero-sub, .hero-cta {
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.hero-sub { animation-delay: 0.1s; }
.hero-cta { animation-delay: 0.18s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
}

/* ── Section headings ───────────────────────────────────────────────────── */

main h2 {
  font-weight: 600;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* ── Latest output ──────────────────────────────────────────────────────── */

.latest { padding-bottom: clamp(64px, 8vw, 104px); }

.latest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 48px;
}
.latest-intro {
  font-size: 1rem;
  color: var(--mid);
  max-width: 52ch;
}

.latest-strip { margin-top: clamp(32px, 4vw, 48px); }

.latest-lead-link {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
  text-decoration: none;
}
.latest-lead-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
}
.latest-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-date {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
}
.latest-lead-body .latest-date { margin-bottom: 12px; }
.latest-lead-body .latest-title {
  font-weight: 600;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.latest-lead-body .latest-excerpt {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--mid);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-lead + .latest-item {
  margin-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--rule);
}

.latest-item { border-top: 1px solid var(--rule-soft); }
.latest-item-link {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px 32px;
  padding: 22px 0;
  text-decoration: none;
  align-items: baseline;
}
.latest-item-body .latest-title {
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.35;
}
.latest-item-body .latest-excerpt {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--mid);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-lead-link:hover .latest-title,
.latest-item-link:hover .latest-title {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.latest-links {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  gap: 36px;
}
.latest-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.latest-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

.latest-noscript { list-style: none; }
.latest-noscript li { border-top: 1px solid var(--rule-soft); }
.latest-noscript a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  text-decoration: none;
}
.latest-noscript a:hover { text-decoration: underline; }

/* ── Shared two-column section opening ──────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.split h2 { max-width: 16ch; }
.split-body p {
  font-size: clamp(1.02rem, 1.3vw, 1.1rem);
  line-height: 1.72;
  max-width: 58ch;
}

/* ── LumiToán and the loop ──────────────────────────────────────────────── */

.lumitoan { padding-bottom: clamp(64px, 8vw, 104px); }

.loop { margin-top: clamp(48px, 7vw, 84px); }

.loop-track {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.loop-node {
  display: flex;
  align-items: baseline;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: -0.005em;
}
.loop-node + .loop-node::before {
  content: "\2192";
  font-weight: 400;
  color: var(--mid);
  margin-right: clamp(10px, 2.4vw, 26px);
  font-size: 0.85em;
  transform: translateY(-0.05em);
}

.loop-return {
  position: relative;
  height: 62px;
  margin-top: 14px;
  color: var(--rust);
}
.loop-return-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loop-return-head {
  position: absolute;
  left: 2px;
  top: -3px;
  width: 12px;
  height: 12px;
}
.loop-return-label {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--rust-text);
  white-space: nowrap;
}

.loop-caption {
  margin-top: clamp(30px, 4vw, 44px);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--mid);
  max-width: 52ch;
}

/* ── Access chart ───────────────────────────────────────────────────────── */

.access { padding-bottom: clamp(56px, 7vw, 90px); }

.chart {
  margin-top: clamp(44px, 6vw, 68px);
  max-width: 880px;
}
.chart-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 30px;
}

.chart-body { position: relative; padding-top: 24px; }

/* Scale: track width = 170% of income; the income line sits at 100/170. */
.chart-baseline {
  position: absolute;
  left: calc(100% / 1.7);
  top: 24px;
  bottom: 2px;
  width: 1px;
  background: rgba(17, 17, 17, 0.38);
}
.chart-baseline-label {
  position: absolute;
  top: -24px;
  left: 0;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--mid);
  white-space: nowrap;
}

.scenario + .scenario { margin-top: clamp(30px, 4vw, 42px); }

.scenario-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 14px;
}
.scenario-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.scenario-income {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
}

.chart-row + .chart-row { margin-top: 14px; }
.chart-row-text {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--mid);
  margin-bottom: 5px;
}
.chart-row-term { color: var(--ink); font-weight: 500; }

.chart-track { position: relative; height: 10px; }
.chart-bar {
  height: 100%;
  width: calc(var(--pct) / 170 * 100%);
  background: var(--ink);
}
.chart-bar--over { background: var(--rust); }

html.js .chart[data-reveal]:not(.in) .chart-bar { width: 0; }
.chart .chart-bar { transition: width 0.9s cubic-bezier(0.25, 0.6, 0.2, 1); }
.chart .chart-row + .chart-row .chart-bar { transition-delay: 0.15s; }

.scenario-note {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
}

.chart-source {
  margin-top: clamp(30px, 4vw, 40px);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mid);
  max-width: 76ch;
}
.chart-source a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}
.chart-source a:hover { text-decoration-color: var(--ink); }

/* ── Continuity ─────────────────────────────────────────────────────────── */

.continuity {
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
.continuity p {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.72;
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink);
}
.continuity a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ── Milestones ledger ──────────────────────────────────────────────────── */

.milestones { padding-bottom: clamp(64px, 8vw, 104px); }

.milestones h2 { margin-bottom: clamp(36px, 5vw, 54px); }

.ledger {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.ledger-item {
  border-left: 1px solid var(--rule-soft);
  padding: 6px 22px 2px;
}
.ledger-item:first-child { border-left: 0; padding-left: 0; }

.ledger-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 18px;
}
.ledger-figure {
  display: block;
  font-weight: 600;
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.ledger-entry {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--mid);
}

/* ── Partners ───────────────────────────────────────────────────────────── */

.partners { padding-bottom: clamp(56px, 7vw, 92px); }

.partners h2 { margin-bottom: clamp(30px, 4vw, 44px); }

.partner-group {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px 32px;
  align-items: center;
  padding: 30px 0;
}
.partner-group + .partner-group { border-top: 1px solid var(--rule-soft); }

.partner-group-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.logo-row {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px clamp(30px, 4.5vw, 60px);
}
.logo img { width: auto; }
.logo--aws img { height: 34px; }
.logo--azure img { height: 42px; }
.logo--mit img { height: 26px; }
.logo--ueh img { height: 34px; }
.logo--hcmut img { height: 52px; }
.logo--da img { height: 56px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { padding-bottom: clamp(56px, 7vw, 92px); }

.split--faq .faq-list { margin-top: -6px; }

.faq-item { border-top: 1px solid var(--rule-soft); }
.faq-item:first-child { border-top: 0; }

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.4;
}
.faq-item summary:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
}

.faq-marker {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
  align-self: center;
}
.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-marker::before {
  left: 0; right: 0; top: 6.5px;
  height: 1.25px;
}
.faq-marker::after {
  top: 0; bottom: 0; left: 6.5px;
  width: 1.25px;
}
.faq-item[open] .faq-marker::after { transform: scaleY(0); }

.faq-answer { padding: 0 38px 22px 0; }
.faq-answer p {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--mid);
  max-width: 58ch;
}
.faq-answer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Closing strip ──────────────────────────────────────────────────────── */

.closing {
  padding-top: clamp(84px, 11vw, 150px);
  padding-bottom: clamp(84px, 11vw, 150px);
}
.closing p {
  font-weight: 500;
  font-size: clamp(1.45rem, 2.9vw, 2.05rem);
  line-height: 1.38;
  letter-spacing: -0.008em;
  max-width: 36ch;
  text-wrap: balance;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot { padding-bottom: clamp(44px, 6vw, 64px); }
.site-foot .rule { margin-bottom: clamp(32px, 4vw, 46px); }

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px 64px;
}

.foot-name {
  font-weight: 600;
  font-size: 17px;
}
.foot-by {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--mid);
}
.foot-attribution {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
  max-width: 46ch;
}
.foot-copyright {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
}

.foot-nav { display: flex; gap: clamp(40px, 6vw, 84px); }
.foot-nav ul { list-style: none; }
.foot-nav li + li { margin-top: 10px; }
.foot-nav a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mid);
  text-decoration: none;
}
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ── Scroll reveals ─────────────────────────────────────────────────────── */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1060px) {
  .brand-line { max-width: 32ch; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split h2 { max-width: 24ch; }

  .ledger { grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .ledger-item,
  .ledger-item:first-child {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding: 20px 0 16px;
  }

  .partner-group { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 880px) {
  .brand-line { display: none; }

  .latest-lead-link { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .latest-lead-body .latest-excerpt { -webkit-line-clamp: 3; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .site-head { border-bottom-color: var(--rule); }

  .site-menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px var(--pad) 22px;
  }
  .site-nav.open .site-menu { display: flex; }
  .site-menu li { width: 100%; }
  .site-menu a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: var(--ink);
    border-top: 1px solid var(--rule-soft);
  }
  .site-menu li:first-child a { border-top: 0; }
  .menu-anchor { display: block; }
  .menu-lang {
    margin-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 640px) {
  .latest-item-link { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .latest-item-body .latest-excerpt { display: none; }

  .loop-track {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .loop-node { display: block; }
  .loop-node + .loop-node::before {
    content: "\2193";
    display: block;
    margin: 2px 0 6px 2px;
    transform: none;
  }
  .loop-return { height: auto; margin-top: 10px; }
  .loop-return-path, .loop-return-head { display: none; }
  .loop-return-label {
    position: static;
    transform: none;
    padding: 0;
    white-space: normal;
  }
  .loop-return-label::before { content: "\21BA  "; }

  .foot-grid { flex-direction: column; }
}

@media (max-width: 560px) {
  .ledger { grid-template-columns: 1fr; }
  .hero-cta { gap: 16px 24px; }
  .faq-answer { padding-right: 0; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-heading, .hero-sub, .hero-cta { animation: none; }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .chart[data-reveal]:not(.in) .chart-bar { width: calc(var(--pct) / 170 * 100%); }
  .chart .chart-bar { transition: none; }
  .skip-link, .site-head, .site-menu a, .nav-toggle-bars span,
  .btn-primary, .btn-quiet, .faq-marker::before, .faq-marker::after {
    transition: none;
  }
}
