/* ============================================================
   First Principles — Components
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'><circle cx='16' cy='16' r='14.5' stroke='%23D9A441' stroke-width='2'/><circle cx='16' cy='16' r='10.5' stroke='%23D9A441' stroke-width='1' stroke-opacity='0.45'/><path d='M13 12.2 L17 9 L17 23' stroke='%23D9A441' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/><path d='M12.5 23 H20' stroke='%23D9A441' stroke-width='2.2' stroke-linecap='round'/></svg>") center / contain no-repeat;
}
.brand__mark { color: var(--gold); }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__link {
  font-size: 0.98rem;
  color: var(--muted);
  position: relative;
  padding: var(--s-1) 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--paper); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

/* Cross-link to Focus One (the other f1.si site) */
.nav__focus {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-left: var(--s-3);
  padding-left: var(--s-5);
  border-left: 1px solid var(--hairline);
}
.nav__focus::before {
  content: "";
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'><circle cx='16' cy='16' r='14.5' stroke='%233B82F6' stroke-width='1.6' stroke-opacity='0.6'/><path d='M11 12.5 L16 8 L16 24' stroke='%233B82F6' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round'/><path d='M9.5 24 H22.5' stroke='%233B82F6' stroke-width='3.6' stroke-linecap='round'/></svg>") center / contain no-repeat;
}
/* its underline should read blue, not gold, to match the Focus One mark */
.nav__focus::after { background: #3B82F6; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--s-2);
  }
  .nav-toggle span {
    width: 22px; height: 2px;
    background: var(--paper);
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: var(--s-3) var(--s-5) var(--s-5);
    transform: translateY(-130%);
    transition: transform 0.32s var(--ease);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav__link {
    width: 100%;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.1rem;
  }
  /* Focus One link folds into the vertical menu like any other row */
  .nav__focus {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(var(--s-7), 8vw, var(--s-9)) 0 var(--s-8);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 520px;
  background: radial-gradient(ellipse at center, var(--gold) 0%, transparent 62%);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 940px; }
.hero h1 { margin-top: var(--s-4); font-size: clamp(2rem, 4vw, 3rem); }
.hero__lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 60ch;
  margin-top: var(--s-5);
  line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--hairline); color: var(--paper); }
.btn--ghost:hover { border-color: var(--gold); transform: translateY(-2px); }

.link-arrow {
  color: var(--gold);
  font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.link-arrow span { transition: transform 0.22s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* Animated gold underline for in-prose links */
.prose a {
  color: var(--gold);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.28s var(--ease);
}
.prose a:hover { background-size: 100% 1.5px; }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--s-9) 0; }
.section__head { max-width: 60ch; margin-bottom: var(--s-7); }
.section__head .eyebrow { display: block; margin-bottom: var(--s-3); }
.section__head p { color: var(--muted); margin-top: var(--s-3); }

/* ---------- Framework strip ---------- */
.framework {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 860px) { .framework { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .framework { grid-template-columns: 1fr; } }
.framework__item {
  display: block;
  padding: var(--s-5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.framework__item:hover { border-color: var(--gold); transform: translateY(-3px); }
.framework__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
}
.framework__title { font-family: var(--font-display); font-size: 1.15rem; margin-top: var(--s-2); }
.framework__desc { font-size: 0.92rem; color: var(--faint); margin-top: var(--s-2); }

/* ---------- Article cards ---------- */
.cards { display: grid; gap: var(--s-4); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards--2 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  gap: var(--s-5);
  padding: var(--s-6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 0.2em;
}
.card__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; }
.card__deck { color: var(--muted); margin-top: var(--s-2); font-size: 0.98rem; }
.card__meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); margin-top: var(--s-3); letter-spacing: 0.04em; }

/* ---------- Scorecard ---------- */
.scorecard { margin-top: var(--s-6); }

.sc-matrix {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.sc-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-top: 1px solid var(--hairline);
}
.sc-row:first-child { border-top: none; }
.sc-row--head {
  background: var(--surface);
}
.sc-row--head .sc-cell {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  cursor: default;
}
.sc-row--head .sc-asset { color: var(--paper); font-size: 0.92rem; font-weight: 600; }

.sc-cell {
  padding: var(--s-4) var(--s-5);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  text-align: left;
}
.sc-cell:first-child { border-left: none; }

.sc-prop {
  border-left: none;
  cursor: default;
}
.sc-prop__name { font-family: var(--font-display); font-size: 1.08rem; color: var(--paper); }
.sc-prop__hint { font-size: 0.82rem; color: var(--faint); line-height: 1.4; }

button.sc-cell { transition: background 0.18s var(--ease); cursor: pointer; align-items: flex-start; }

/* Rating colour per level */
.sc-cell[data-level="high"] { --rating-color: var(--good); }
.sc-cell[data-level="mid"]  { --rating-color: var(--mid); }
.sc-cell[data-level="low"]  { --rating-color: var(--weak); }

/* Heatmap tint — scan the whole matrix at a glance */
button.sc-cell[data-level="high"] { background: rgba(111, 174, 126, 0.07); }
button.sc-cell[data-level="mid"]  { background: rgba(201, 168, 106, 0.07); }
button.sc-cell[data-level="low"]  { background: rgba(199, 123, 90, 0.08); }
button.sc-cell[data-level="high"]:hover { background: rgba(111, 174, 126, 0.15); }
button.sc-cell[data-level="mid"]:hover  { background: rgba(201, 168, 106, 0.15); }
button.sc-cell[data-level="low"]:hover  { background: rgba(199, 123, 90, 0.16); }

.sc-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em; }

/* Word label so the rating reads instantly, no dot-counting */
.sc-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rating-color, var(--gold));
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--rating-color, var(--gold)) 45%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}
.sc-dots { display: inline-flex; gap: 4px; }
.sc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.sc-dot[data-on="1"] { background: var(--rating-color, var(--gold)); }
.sc-score { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }

.sc-summary { font-size: 0.92rem; color: var(--paper); line-height: 1.5; }
.sc-affordance {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
button.sc-cell:hover .sc-affordance { opacity: 1; }

/* Expanded explanation panel */
.sc-detail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
  padding: 0 var(--s-5);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}
.sc-detail[data-open="true"] { max-height: 320px; padding: var(--s-5); }
.sc-detail__inner { display: grid; gap: var(--s-2); }
.sc-detail__label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.sc-detail__text { color: var(--paper); font-size: 1rem; line-height: 1.6; }

.sc-footnote { font-size: 0.85rem; color: var(--faint); margin-top: var(--s-4); font-style: italic; }

/* Mobile: stacked per-property cards */
.sc-cards { display: none; }
@media (max-width: 820px) {
  .sc-matrix { display: none; }
  .sc-cards { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
  .sc-pcard {
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
  }
  .sc-pcard__head { padding: var(--s-5); border-bottom: 1px solid var(--hairline); }
  .sc-pcard__name { font-family: var(--font-display); font-size: 1.25rem; }
  .sc-pcard__hint { font-size: 0.88rem; color: var(--faint); margin-top: var(--s-2); }
  .sc-pcard__asset {
    width: 100%;
    text-align: left;
    padding: var(--s-4) var(--s-5);
    border-top: 1px solid var(--hairline);
    display: grid;
    gap: var(--s-2);
  }
  .sc-pcard__asset:first-of-type { border-top: none; }
  .sc-pcard__asset[data-level="high"] { --rating-color: var(--good); background: rgba(111, 174, 126, 0.06); }
  .sc-pcard__asset[data-level="mid"]  { --rating-color: var(--mid);  background: rgba(201, 168, 106, 0.06); }
  .sc-pcard__asset[data-level="low"]  { --rating-color: var(--weak); background: rgba(199, 123, 90, 0.07); }
  .sc-pcard__asset-name { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper); }
  .sc-pcard__detail { font-size: 0.92rem; color: var(--muted); line-height: 1.5; margin-top: var(--s-1); }
}

/* ---------- Purchasing-power chart ---------- */
.value-chart {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-6);
  margin: var(--s-7) auto !important;
  max-width: 860px;
}
.vc-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
}
.vc-title span { color: var(--faint); font-size: 0.82rem; font-family: var(--font-mono); }
.vc-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-4) 0 var(--s-2); }
.vc-key { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.85rem; color: var(--muted); }
.vc-key::before { content: ""; width: 16px; height: 3px; border-radius: 2px; }
.vc-key.vc-btc::before  { background: var(--paper); }
.vc-key.vc-gold::before { background: var(--gold); }
.vc-key.vc-usd::before  { background: var(--weak); }
.vc-key.vc-eur::before  { background: var(--muted); }

.vc-svg { width: 100%; height: auto; display: block; }
.vc-grid { stroke: var(--hairline); stroke-width: 1; }
.vc-base { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.7; }
.vc-ylab, .vc-xlab { font-family: var(--font-mono); font-size: 12px; fill: var(--faint); }

.vc-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vc-line.vc-btc  { stroke: var(--paper); stroke-width: 2.8; }
.vc-line.vc-gold { stroke: var(--gold); stroke-width: 2.4; }
.vc-line.vc-usd  { stroke: var(--weak); stroke-width: 2; }
.vc-line.vc-eur  { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 4; }
.vc-dot.vc-btc  { fill: var(--paper); }
.vc-dot.vc-gold { fill: var(--gold); }
.vc-dot.vc-usd  { fill: var(--weak); }
.vc-dot.vc-eur  { fill: var(--muted); }
.vc-end { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.vc-end.vc-btc  { fill: var(--paper); }
.vc-end.vc-gold { fill: var(--gold-soft); }
.vc-end.vc-usd  { fill: var(--weak); }
.vc-end.vc-eur  { fill: var(--muted); }

.vc-note {
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.55;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
}

/* ---------- Interactive live chart ---------- */
.live-chart {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-6);
  margin: var(--s-7) auto !important;
  max-width: 860px;
  position: relative;
}
.lc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.lc-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 2px 8px 2px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  position: relative;
}
.lc-status::before {
  content: ""; position: absolute; left: 7px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--faint);
}
.lc-status[data-live="true"] { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.lc-status[data-live="true"]::before { background: var(--good); box-shadow: 0 0 0 0 rgba(111,174,126,0.6); animation: lcPulse 2s infinite; }
@keyframes lcPulse { 0%{box-shadow:0 0 0 0 rgba(111,174,126,0.5);} 70%{box-shadow:0 0 0 6px rgba(111,174,126,0);} 100%{box-shadow:0 0 0 0 rgba(111,174,126,0);} }
@media (prefers-reduced-motion: reduce) { .lc-status[data-live="true"]::before { animation: none; } }

.lc-controls { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.lc-seg { display: inline-flex; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.lc-seg button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 5px 11px;
  border-right: 1px solid var(--hairline);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lc-seg button:last-child { border-right: none; }
.lc-seg button:hover { color: var(--paper); background: var(--surface-2); }
.lc-seg button.is-active { background: var(--gold); color: var(--ink); font-weight: 600; }

/* Legend keys become toggle buttons */
.vc-legend button.vc-key { background: none; border: none; cursor: pointer; padding: 2px 0; transition: opacity 0.15s var(--ease); }
.vc-legend button.vc-key:hover { color: var(--paper); }
.vc-legend button.vc-key.is-off { opacity: 0.4; }
.vc-legend button.vc-key.is-off::before { opacity: 0.4; }

.lc-canvas { position: relative; margin-top: var(--s-4); }
.lc-hit { cursor: crosshair; }
.lc-cross { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 3; }

.lc-tip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  padding: var(--s-3);
  font-size: 0.8rem;
  min-width: 150px;
}
.lc-tip__d { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-2); }
.lc-tip__r { display: flex; align-items: center; gap: 0.5em; color: var(--muted); line-height: 1.7; white-space: nowrap; }
.lc-tip__r b { color: var(--paper); margin-left: auto; font-variant-numeric: tabular-nums; }
.lc-tip__raw { color: var(--faint); font-family: var(--font-mono); font-size: 0.72rem; margin-left: 0.4em; }
.lc-sw { width: 12px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.lc-sw.vc-btc { background: var(--paper); }
.lc-sw.vc-gold { background: var(--gold); }
.lc-sw.vc-usd { background: var(--weak); }
.lc-sw.vc-eur { background: var(--muted); }

@media (max-width: 560px) {
  .lc-head { flex-direction: column; align-items: flex-start; }
  .lc-controls { width: 100%; justify-content: space-between; }
}

/* ---------- Article layout ---------- */
.article-hero { padding: var(--s-8) 0 var(--s-6); }
.article-hero .eyebrow { display: block; margin-bottom: var(--s-4); }
.article-hero__deck { font-size: 1.3rem; color: var(--muted); margin-top: var(--s-5); max-width: 60ch; line-height: 1.5; }
.article-hero__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); margin-top: var(--s-5); letter-spacing: 0.04em; }

.prose { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-6); }
.prose p { color: var(--paper); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li { list-style: disc; margin-top: var(--s-2); color: var(--paper); }
.prose ol li { list-style: decimal; margin-top: var(--s-2); color: var(--paper); }
.prose ul li::marker, .prose ol li::marker { color: var(--gold); }

.prose .lede:first-of-type { font-size: 1.25rem; color: var(--paper); }

/* Pull-quote */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
  color: var(--paper);
  border-left: 3px solid var(--gold);
  padding-left: var(--s-5);
  margin: var(--s-7) 0 !important;
  font-style: italic;
}

/* Honesty / "the other side" callout */
.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold-deep);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--s-5);
  margin: var(--s-7) 0 !important;
}
.callout__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--s-2);
}
.callout p { color: var(--muted); font-size: 1rem; }

/* Key takeaways */
.takeaways {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-6);
  margin-top: var(--s-8);
}
.takeaways h3 { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.takeaways ul { margin-top: var(--s-4); }
.takeaways li { list-style: none; padding-left: 1.6em; position: relative; margin-top: var(--s-3); color: var(--paper); }
.takeaways li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }

/* Inline definition (glossary tooltip) */
.dfn {
  border-bottom: 1px dotted var(--faint);
  cursor: help;
  position: relative;
}
.dfn:hover, .dfn:focus { border-bottom-color: var(--gold); }
.dfn__pop {
  position: absolute;
  left: 0; bottom: calc(100% + 8px);
  width: max-content;
  max-width: 280px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--s-3);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: var(--font-body);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}
.dfn:hover .dfn__pop, .dfn:focus .dfn__pop { opacity: 1; visibility: visible; transform: translateY(0); }

/* Prev / next */
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-9);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
@media (max-width: 600px) { .prevnext { grid-template-columns: 1fr; } }
.prevnext a {
  padding: var(--s-5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.prevnext a:hover { border-color: var(--gold); }
.prevnext .dir { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.prevnext .ttl { font-family: var(--font-display); font-size: 1.1rem; margin-top: var(--s-2); color: var(--paper); }
.prevnext .next { text-align: right; }

/* ---------- Glossary ---------- */
.glossary-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.gloss-term {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-5) var(--s-6);
}
.gloss-term dt { font-family: var(--font-display); font-size: 1.25rem; color: var(--paper); }
.gloss-term dd { color: var(--muted); margin-top: var(--s-2); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: var(--s-10);
  padding: var(--s-8) 0 var(--s-7);
  position: relative;
  z-index: 1;
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer__mission { max-width: 38ch; }
.site-footer__mission .brand { font-size: 1.15rem; }
.site-footer__mission p { color: var(--faint); font-size: 0.92rem; margin-top: var(--s-3); }
.footer-nav { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--gold); }
.disclaimer {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  font-size: 0.84rem;
  color: var(--faint);
  line-height: 1.6;
  max-width: 80ch;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* No-JS fallback: never hide reveal content when scripting is unavailable. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero load stagger ---------- */
.stagger > * { opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.14s; }
.stagger > *:nth-child(3) { animation-delay: 0.23s; }
.stagger > *:nth-child(4) { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stagger > * { opacity: 1; animation: none; }
}

/* ---------- Share row ---------- */
.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
}
.share__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: var(--s-2);
}
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.share__btn:hover, .share__btn:focus-visible { color: var(--gold); background: var(--surface-2); }
.share__btn svg { width: 20px; height: 20px; display: block; }
.share__copy { position: relative; gap: 0.45em; width: auto; padding: 0 12px; }
.share__copy.is-copied { color: var(--good); }
.share__copylabel { font-family: var(--font-mono); font-size: 0.72rem; color: var(--good); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .share__btn { transition: none; } }
