/* ==========================================================================
   Honeycomb Wiki — Main stylesheet
   Built to engineering-spec/design.md v1.0.0 (Light Field Lab).
   Section numbers in comments map back to that spec.
   ========================================================================== */

@import url('tokens.css');

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

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

/* ==========================================================================
   §3 Typography
   ========================================================================== */
.t-hero-h1   { font-family: var(--font-display); font-weight: 700; font-size: 54px; line-height: 60px; letter-spacing: 0; color: var(--on-dark-text); max-width: 640px; }
.t-h1        { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 48px; color: var(--ink); }
.t-h2        { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 38px; color: var(--ink); }
.t-h2-sub    { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 34px; color: var(--ink); }
.t-h3        { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--ink); }
.t-h3-lg     { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 32px; color: var(--ink); }
.t-lede      { font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 29px; color: var(--ink); max-width: 760px; }
.t-body      { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 26px; color: var(--ink-soft); max-width: 760px; }
.t-body-sm   { font-family: var(--font-body); font-weight: 400; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.t-body + .t-body, .t-lede + .t-body, .t-body + .t-lede { margin-top: 18px; }

/* Mono family */
.t-mono-label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.t-mono-meta  { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-historical); }
.t-mono-data  { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

.section { padding: var(--section-y-lg) var(--gutter); }
.section--md { padding: var(--section-y-md) var(--gutter); }
.section--sm { padding: var(--section-y-sm) var(--gutter); }
.section--alt { background: var(--surface-alt); }
.section--plain { background: transparent; }

.wrap { max-width: var(--content-max); margin: 0 auto; width: 100%; }
.wrap--article { max-width: var(--article-max); }

.kicker { display: block; margin-bottom: 12px; }

/* ==========================================================================
   §5.1 Header + mobile menu
   ========================================================================== */
.header-shell {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
}

.header {
  position: relative;
  height: var(--header-h-desktop);
  display: flex; align-items: center;
  padding: 12px 40px;
  background: var(--surface);
  border-bottom: var(--border-hairline);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: 1px; line-height: 18px; color: var(--ink); white-space: nowrap;
}
.brand__sub {
  font-family: var(--font-mono); font-weight: 500; font-size: 9px;
  letter-spacing: 1.2px; line-height: 12px; color: var(--status-historical); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a {
  font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 18px;
  color: var(--ink-soft);
  padding: 13px 0;              /* pads the 18px line to a 44px hit area (§6.8) */
  position: relative;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px;
  height: 1px; background: var(--teal);
}
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.lang-switch {
  display: flex; align-items: center; gap: 8px;
  margin-left: 20px; flex: none;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; line-height: 14px; letter-spacing: 1px;
}
.lang-switch a { color: var(--ink-soft); text-decoration: none; padding: 13px 0; }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 600; }

.menu-btn {
  display: none;
  width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-md);
  background: rgba(46, 107, 79, 0.08);
  cursor: pointer; color: var(--ink);
}

.menu-panel {
  display: none;
  background: var(--surface);
  border-bottom: var(--border-hairline);
}
.menu-panel.is-open { display: block; }
.menu-panel a {
  display: flex; align-items: center;
  min-height: 48px; padding: 0 20px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  color: var(--ink);
  border-bottom: var(--border-hairline);
}
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a:hover { background: #F7F9F7; text-decoration: none; }

@media (max-width: 900px) {
  .header { height: var(--header-h-mobile); padding: 10px 20px; justify-content: space-between; }
  .brand { min-width: 0; }
  .brand__mark { width: 24px; height: 24px; }
  .brand__name { font-size: 13px; letter-spacing: 0.8px; }
  .brand__sub, .nav { display: none; }
  .lang-switch { margin-left: auto; margin-right: 8px; }
  .menu-btn { display: flex; }
  .menu-panel { width: 100%; }
}

@media (min-width: 901px) {
  .menu-panel,
  .menu-panel.is-open { display: none !important; }
}

/* ==========================================================================
   Icons — CSS mask so colour follows currentColor (§5.4 rule)
   ========================================================================== */
.icon {
  display: inline-block; flex: none;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.icon-check       { -webkit-mask-image: url("../icons/icon-check.svg");       mask-image: url("../icons/icon-check.svg"); }
.icon-clock       { -webkit-mask-image: url("../icons/icon-clock.svg");       mask-image: url("../icons/icon-clock.svg"); }
.icon-data-gap    { -webkit-mask-image: url("../icons/icon-data-gap.svg");    mask-image: url("../icons/icon-data-gap.svg"); }
.icon-chevron-down{ -webkit-mask-image: url("../icons/icon-chevron-down.svg");mask-image: url("../icons/icon-chevron-down.svg"); }
.icon-chevron-up  { -webkit-mask-image: url("../icons/icon-chevron-up.svg");  mask-image: url("../icons/icon-chevron-up.svg"); }
.icon-menu        { -webkit-mask-image: url("../icons/icon-menu.svg");        mask-image: url("../icons/icon-menu.svg"); }
.icon-play        { -webkit-mask-image: url("../icons/icon-play.svg");        mask-image: url("../icons/icon-play.svg"); }
.icon-shield-check{ -webkit-mask-image: url("../icons/icon-shield-check.svg");mask-image: url("../icons/icon-shield-check.svg"); }
.icon-leaf        { -webkit-mask-image: url("../icons/icon-leaf.svg");        mask-image: url("../icons/icon-leaf.svg"); }

/* ==========================================================================
   §5.2 Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 12px 24px;
  border: 0; border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 20px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-hover) var(--ease-out),
              background-color var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

.btn--hero      { height: 50px; padding: 14px 26px; background: var(--amber-fill); color: var(--ink); font-size: 16px; }
.btn--hero:hover { background: #DE9830; }

.btn--primary   { background: var(--canopy); color: #FFFFFF; }
.btn--primary:hover { background: #255A42; }

.btn--secondary { background: var(--surface); color: var(--canopy); border: var(--border-secondary-btn); }
.btn--secondary:hover { background: #F7F9F7; border-color: var(--canopy); }

.btn--ghost-dark {
  height: 50px; padding: 14px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--on-dark-ghost-text);
  font-weight: 500; font-size: 16px;
}
.btn--ghost-dark:hover { border-color: rgba(255, 255, 255, 1); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .btn-row { flex-direction: column; gap: 8px; align-items: stretch; }
  .btn-row .btn,
  .status-card .btn { width: 100%; }
}

/* ==========================================================================
   §5.3 Meta chip
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: 10px;
  line-height: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.chip--on-dark { background: rgba(255, 255, 255, 0.08); color: var(--on-dark-ghost-text); }
.chip--date { color: var(--on-dark-text-accent); }

/* ==========================================================================
   §5.4 Evidence badge — always icon + text + colour, never colour alone
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase;
  white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge--compact { height: 26px; padding: 4px 10px; }

.badge--confirmed  { background: var(--canopy-tint); color: var(--status-confirmed); }
.badge--historical { background: var(--surface-alt); color: var(--status-historical); }
.badge--gap        { background: var(--amber-tint);  color: var(--status-gap); }

/* ==========================================================================
   §5.5 Risk badge
   ========================================================================== */
.risk {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-weight: 500; font-size: 10px;
  line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  white-space: nowrap;
}
.risk::before { content: ''; width: 8px; height: 8px; border-radius: var(--radius-pill); background: currentColor; flex: none; }
.risk--low     { background: var(--canopy-tint);   color: var(--risk-low); }
.risk--medium  { background: var(--amber-tint);    color: var(--risk-medium); }
.risk--high    { background: var(--risk-high-tint);color: var(--risk-high); }
.risk--survey  { background: var(--risk-survey-tint); color: var(--risk-survey); }

/* ==========================================================================
   Hero + fact strip
   ========================================================================== */
/* §4.1 — Hero 3:215: padding 88 top / 80 right / 80 bottom / 80 left, gap 64. */
.hero {
  background: var(--hero-gradient);
  padding: 88px var(--gutter) 80px var(--gutter);
  color: var(--on-dark-text);
}
.hero__inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; gap: 64px; align-items: center;
}
.hero__copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* Eyebrow is a pill (3:217): h28, padding 5/12, radius 999,
   background rgba(15,138,125,0.25) — not bare text. */
.hero__eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 138, 125, 0.25);
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  line-height: 15px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--on-dark-mono);
}
.hero__sub {
  font-family: var(--font-body); font-size: 16px; line-height: 26px;
  color: var(--on-dark-text-soft); max-width: 640px;
}
.hero__poster { flex: 0 0 520px; }

/* §4.1 — Fact strip 3:242: padding 18/80, gap 40, height 52. */
.fact-strip { background: var(--ink); padding: 18px var(--gutter); }
.fact-strip__inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; gap: 40px; flex-wrap: wrap;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  line-height: 15px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--on-dark-link);
}
.fact-strip__item { white-space: nowrap; }
.fact-strip__item b { color: var(--on-dark-text-accent); font-weight: 500; }

@media (max-width: 900px) {
  .hero { padding: 48px var(--gutter) 40px; }
  .hero__inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__copy { gap: 18px; }
  .hero__poster { flex: 1 1 auto; width: 100%; min-width: 0; }
  .fact-strip { padding: 14px var(--gutter); }
  .fact-strip__inner { flex-direction: column; gap: 6px; }
  .fact-strip__item { white-space: normal; }
}

/* ==========================================================================
   §5.6 Trailer facade — poster only, no autoplay
   ========================================================================== */
.trailer {
  position: relative;
  width: 520px; height: 320px;
  padding: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--art-valley);
  border: 0; cursor: pointer; text-align: left;
}
.trailer__pill {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  height: 24px; padding: 4px 10px;
  background: rgba(0, 0, 0, 0.35); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-weight: 500; font-size: 10px;
  line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: #FFFFFF;
}
.trailer__play {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.trailer__play span {
  width: 68px; height: 68px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--canopy-deep);
  transition: transform var(--dur-hover) var(--ease-out);
}
.trailer__play .icon { width: 22px; height: 22px; }
.trailer:hover .trailer__play span { transform: scale(1.04); }
.trailer__caption {
  font-family: var(--font-mono); font-weight: 500; font-size: 10px;
  line-height: 14px; letter-spacing: 1px; text-transform: uppercase; color: #CFE6DE;
}

@media (max-width: 900px) {
  .trailer { width: 100%; height: 190px; padding: 12px; }
  .trailer__play span { width: 52px; height: 52px; }
  .trailer__play .icon { width: 18px; height: 18px; }
  .trailer__caption { font-size: 9px; }
}

/* ==========================================================================
   §5.7 Pillar card
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-cards); }

.pillar {
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-lg);
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.pillar:hover { border-color: rgba(15, 138, 125, 0.5); transform: translateY(-2px); }
.pillar__tag { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: 2px; text-transform: uppercase; }
.pillar__tag--explore { color: var(--status-confirmed); }
.pillar__tag--bio { color: var(--teal); }
.pillar__tag--build { color: var(--cobalt); }
.pillar__body { font-size: 14px; line-height: 22px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .pillar { padding: 20px; gap: 6px; }
  .pillar .t-h3 { font-size: 18px; line-height: 24px; }
  .pillar__body { font-size: 13px; line-height: 20px; }
}

/* ==========================================================================
   §5.8 Zone card
   ========================================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-zones); }

.zone {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: var(--border-hairline);
  display: flex; flex-direction: column;
}
.zone__art {
  height: 120px; padding: 10px;
  display: flex; align-items: flex-end;
}
.zone__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.zone__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 24px; color: var(--ink); }
.zone__desc { font-size: 13px; line-height: 19px; color: var(--ink-soft); }
.zone__species { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; }
.zone__species--ok { color: var(--teal); }
.zone__species--gap { color: var(--amber-text); }
.zone__species--survey { color: var(--risk-survey); }

/* Mobile: image block removed, 8px colour bar carries zone identity (§6.4) */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr; }
  .zone { flex-direction: row; }
  .zone__art { width: 8px; height: auto; padding: 0; flex: none; align-self: stretch; }
  .zone__art .risk { display: none; }
  .zone__body { padding: 16px; gap: 4px; }
  .zone__name { font-size: 17px; line-height: 22px; }
  .zone__desc { font-size: 12px; line-height: 18px; }
  .zone__risk-mobile { display: block !important; }
}
.zone__risk-mobile { display: none; font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; }
.zone__risk-mobile--low { color: var(--risk-low); }
.zone__risk-mobile--medium { color: var(--risk-medium); }
.zone__risk-mobile--high { color: var(--risk-high); }
.zone__risk-mobile--survey { color: var(--risk-survey); }

/* ==========================================================================
   §5.9 Status card
   ========================================================================== */
.status-card {
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-lg);
}
.status-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-card__value { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 32px; color: var(--ink); }
.status-card__text { font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.status-card__link { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--teal); }

@media (max-width: 900px) {
  .status-card { padding: 18px; }
  .status-card__top { flex-wrap: wrap; align-items: flex-start; }
  .status-card__value { font-size: 20px; line-height: 26px; }
  .status-card__text { font-size: 12px; line-height: 18px; }
  .status-card__link { font-size: 13px; }
}

/* ==========================================================================
   §5.10 Timeline
   ========================================================================== */
.timeline { border-top: var(--border-hairline); }
.tl-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: var(--border-hairline);
}
.tl-row:last-child { border-bottom: 0; }
.tl-date { width: 130px; flex: none; font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 18px; }
.tl-text { flex: 1 1 auto; font-size: 15px; line-height: 22px; color: var(--ink-soft); min-width: 0; }
.tl-row--current .tl-text { font-weight: 500; color: var(--ink); }
.tl-status { flex: none; font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px; letter-spacing: 1px; text-transform: uppercase; }
.tl-status--confirmed { color: var(--status-confirmed); }
.tl-status--historical { color: var(--status-historical); }
.tl-status--gap { color: var(--status-gap); }

@media (max-width: 900px) {
  .tl-row { flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
  .tl-date { width: auto; }
  .tl-status { margin-left: auto; }
  .tl-text { flex: 1 0 100%; font-size: 13px; line-height: 19px; }
}

/* ==========================================================================
   §5.11 Comparison table → stacked cards at ≤900px (§6.6)
   ========================================================================== */
.ctable { border: var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.ctable__head, .ctable__row { display: flex; }
.ctable__head { background: var(--surface-alt); }
.ctable__head > div { padding: 12px 16px; font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.ctable__head > div:last-child { color: var(--teal); }
.ctable__row { border-bottom: var(--border-hairline); }
.ctable__row:last-child { border-bottom: 0; }
.ctable__row > div { padding: 12px 16px; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.ctable__label { width: 240px; flex: none; font-weight: 600; color: var(--ink); }
.ctable__cell { flex: 1 1 0; min-width: 0; }

@media (max-width: 900px) {
  .ctable { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .ctable__head { display: none; }
  .ctable__row {
    flex-direction: column; gap: 6px;
    padding: 14px; margin-bottom: 12px;
    background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-md);
  }
  .ctable__row:last-child { margin-bottom: 0; border-bottom: var(--border-hairline); }
  .ctable__head > *,
  .ctable__row > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
  .ctable__label { width: 100% !important; font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); padding: 0 !important; }
  .ctable__cell { padding: 0 !important; }
  .ctable__row > [data-col] { padding: 0 !important; }
  .ctable__row > [data-col]::before {
    content: attr(data-col);
    display: block;
    font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-historical);
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   §5.12 Requirements card
   ========================================================================== */
.req-card {
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-lg);
}
.req-card--recommended { border: var(--border-teal-50); }
.req-card__title { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }
.req-card--recommended .req-card__title { color: var(--teal); }
.req-spec { display: flex; flex-direction: column; gap: 2px; }
.req-spec + .req-spec { margin-top: 8px; }
.req-spec__label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
.req-spec__value { font-size: 14px; line-height: 20px; color: var(--ink); }

.deck-slot { padding: 18px; border-radius: var(--radius-md); background: var(--amber-tint); }
.deck-slot p { font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--amber-tint-text); }

@media (max-width: 900px) {
  .req-card { padding: 20px; }
  .deck-slot { width: 100%; }
}

/* ==========================================================================
   Callout / warning box
   ========================================================================== */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-md);
  background: var(--amber-tint);
}
.callout .icon { width: 20px; height: 20px; color: var(--amber-text); margin-top: 2px; }
.callout p { font-size: 14px; line-height: 22px; color: var(--amber-tint-text); }

.callout--quiet { background: var(--surface-alt); }
.callout--quiet .icon { color: var(--teal); }
.callout--quiet p { color: var(--ink-soft); }

/* ==========================================================================
   §5.13 FAQ accordion
   ========================================================================== */
.faq-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.faq-head__link {
  font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 24px;
  color: var(--teal); white-space: nowrap; flex: none; text-decoration: none;
}
.faq-head__link:hover { text-decoration: underline; }
.faq { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.t-h2-sub + .faq { margin-top: 16px; }
.faq__item {
  background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-md);
  overflow: hidden;
}
.faq__item.is-open { border: var(--border-teal-50); }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 24px; color: var(--ink);
}
.faq__item.is-open .faq__btn { padding: 20px; }
.faq__btn:hover { background: #F7F9F7; }
.faq__q { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.faq__anchor { font-family: var(--font-mono); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--status-historical); }
.faq__anchor--gap { color: var(--amber-text); }
.faq__chevron { flex: none; width: 18px; height: 18px; color: var(--ink-soft); }
.faq__item.is-open .faq__chevron {
  color: var(--teal);
  -webkit-mask-image: url("../icons/icon-chevron-up.svg");
  mask-image: url("../icons/icon-chevron-up.svg");
}
.faq__panel { padding: 0 20px 20px; }
.faq__panel p { font-size: 14px; line-height: 22px; color: var(--ink-soft); }
.faq__panel[hidden] { display: none; }
.faq__item.is-open .faq__panel {
  animation: faq-in var(--dur-hover) var(--ease-out);
}
.faq__verdict {
  padding: 0 20px 20px;
  font-size: 14px; line-height: 22px; color: var(--ink-soft);
}
.faq__item.is-open .faq__verdict { padding-bottom: 10px; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Desktop canvas: collapsed = 66px question row. Verdict stays visible ≤900px (M-12). */
@media (min-width: 901px) {
  .faq__item:not(.is-open) .faq__btn { min-height: 66px; padding: 18px 20px; }
  .faq__item:not(.is-open) .faq__verdict { display: none; }
}

@media (max-width: 900px) {
  .faq__btn { padding: 16px; font-size: 14px; line-height: 22px; min-height: 52px; }
  .faq__item.is-open .faq__btn { padding: 16px; }
  .faq__verdict { padding: 0 16px 20px; }
  .faq__panel { padding: 0 16px 20px; }
  .faq__panel p { font-size: 12px; line-height: 18px; }
}

/* ==========================================================================
   §5.14 Source card / source block
   ========================================================================== */
.grid-3-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards); }
.source-card {
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-md);
}
.source-card__title { font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); }
.source-card__url { font-family: var(--font-mono); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--teal); word-break: break-all; }

.source-block {
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-alt); border-radius: var(--radius-lg);
}
.source-block__head { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.source-block__links { display: flex; flex-direction: column; gap: 6px; }
.source-block__links a { font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--teal); }
.source-block__verify { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-historical); }

@media (max-width: 900px) {
  .grid-3-sources { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   Content-page hero block (§2.3) + breadcrumb
   ========================================================================== */
.page-hero {
  background: var(--surface);
  border-bottom: var(--border-hairline);
  padding: 48px var(--gutter) 40px;
}
.breadcrumb {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-historical);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--teal); }
.page-hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ==========================================================================
   Article layout — 220px TOC + 56 gap + 760 body (§2.7, §6.9)
   ========================================================================== */
.article-layout { display: flex; gap: 56px; align-items: flex-start; }
.article-aside { width: 220px; flex: none; position: sticky; top: calc(var(--header-h-desktop) + 24px); }
.article-body { flex: 1 1 auto; min-width: 0; max-width: var(--article-max); }

.toc__head { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--status-historical); margin-bottom: 10px; }
.toc__list { display: flex; flex-direction: column; gap: 8px; border-left: var(--border-hairline); }
.toc__list a { display: block; padding: 2px 0 2px 14px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.toc__list a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .article-layout { flex-direction: column; gap: 24px; }
  .article-aside { width: 100%; position: static; }
  .article-body { max-width: 100%; }
  .toc__list { border-left: 0; border-top: var(--border-hairline); padding-top: 8px; }
  .toc__list a { padding-left: 0; }
}

/* ==========================================================================
   Steps (crossbreeding loop)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap-cards); }
.step { padding: 20px; background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 8px; }
.step__num { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; color: var(--ink); }
.step__text { font-size: 13px; line-height: 20px; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Two-method cards */
.method-card { padding: 24px; background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 8px; }
.method-card__eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.method-card p { font-size: 14px; line-height: 22px; color: var(--ink-soft); }

/* Evidence layers */
.evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-cards); }
.evidence__col { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: var(--border-hairline); }
.evidence__col--gap { background: var(--amber-tint); border-color: transparent; }
.evidence__head { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-confirmed); margin-bottom: 10px; }
.evidence__col--gap .evidence__head { color: var(--amber-text); }
.evidence__col li { font-size: 14px; line-height: 22px; color: var(--ink-soft); }
.evidence__col--gap li { color: var(--amber-tint-text); }
.evidence__col li + li { margin-top: 6px; }
@media (max-width: 900px) { .evidence { grid-template-columns: 1fr; } }

/* Specimen card */
.specimen { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: var(--border-hairline); display: flex; flex-direction: column; }
.specimen__art { height: 150px; }
.specimen--fauna .specimen__art { height: 150px; }
.specimen__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.specimen__id { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.specimen__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--ink); }
.specimen__meta { font-size: 13px; line-height: 20px; color: var(--ink-soft); }
@media (max-width: 900px) { .specimen__art, .specimen--fauna .specimen__art { height: 140px; } }

/* Related cards */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards); }
.related-card { padding: 20px; background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 6px; }
.related-card__tag { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); }
.related-card__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; color: var(--ink); }
.related-card__desc { font-size: 13px; line-height: 20px; color: var(--ink-soft); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

/* Claim vs record (multiplayer) */
.claim { padding: 20px; background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 10px; }
.claim__label { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-gap); }
.claim__text { font-size: 15px; line-height: 22px; color: var(--ink); }
.claim__record-label { font-family: var(--font-mono); font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-confirmed); }
.claim__record { font-size: 14px; line-height: 22px; color: var(--ink-soft); }

/* Answer card (multiplayer / release date) */
.answer-card { padding: 24px; background: var(--surface); border: var(--border-teal-50); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 10px; }
.answer-card__head { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
.answer-card__main { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 30px; color: var(--ink); }
.answer-card__sub { font-size: 15px; line-height: 24px; color: var(--ink-soft); }
@media (max-width: 900px) { .answer-card { padding: 18px; } .answer-card__main { font-size: 18px; line-height: 26px; } }

/* §4.1 — "01 · THE GAME" is a two-column row, not a stack.
   Copy column 80→816 (736 wide) · gap 64 · analogy card X 880 / W 400.
   Section padding 76 top/bottom, 80 left/right. */
.section--what { padding: 76px var(--gutter); }
.what-kind { display: flex; gap: 64px; align-items: flex-start; }
.what-kind__copy {
  flex: 1 1 auto; max-width: 736px;
  display: flex; flex-direction: column; gap: 18px;
}
.what-kind__copy .kicker { margin-bottom: 0; }
.what-kind__copy .t-body { max-width: 100%; }
.what-kind__aside { flex: 0 0 400px; width: 400px; }

@media (max-width: 900px) {
  .section--what { padding: 48px var(--gutter); }
  .what-kind { flex-direction: column; gap: 24px; }
  .what-kind__copy { max-width: 100%; }
  .what-kind__aside { width: 100%; flex: 1 1 auto; }
}

/* Analogy card (home) — §4.1 padding 24 gap 12 · §4.2 mobile padding 18 gap 8 */
.analogy { padding: 24px; background: var(--surface); border: var(--border-hairline); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) { .analogy { padding: 18px; gap: 8px; } }
.analogy__head { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--status-historical); }
.analogy__list { display: flex; flex-direction: column; gap: 8px; }
.analogy__list li { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 24px; color: var(--ink); }
.analogy__note { font-size: 12px; line-height: 18px; color: var(--ink-soft); }

/* No-combat block — §4.1: section gap 40; icon is a 72×72 #E1EFE7 tile
   (radius 16) holding the 34×34 shield glyph (§8), not a bare glyph. */
.nocombat { display: flex; gap: 40px; align-items: flex-start; }
.nocombat__icon {
  flex: none; width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: var(--canopy-tint); border-radius: var(--radius-lg);
  color: var(--canopy);
}
.nocombat__icon > .icon { width: 34px; height: 34px; }
.nocombat__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .nocombat { gap: 16px; } }

/* Field status list */
.field-status { display: flex; flex-direction: column; gap: 12px; }
.field-status__row { display: flex; gap: 12px; align-items: flex-start; }
.field-status__row .icon { width: 16px; height: 16px; margin-top: 4px; flex: none; }
.field-status__row--ok { color: var(--status-confirmed); }
.field-status__row--gap { color: var(--status-gap); }
.field-status p { font-size: 14px; line-height: 22px; color: var(--ink-soft); }

/* Ordered steps list */
.steps-list { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps-list li { counter-increment: s; font-size: 15px; line-height: 24px; color: var(--ink-soft); padding-left: 28px; position: relative; }
.steps-list li::before {
  content: counter(s) '.';
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--teal);
}

/* ==========================================================================
   §5.15 Footer
   ========================================================================== */
.footer { background: var(--ink); padding: 56px var(--gutter) 36px var(--gutter); }
.footer__inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.footer__top { display: flex; gap: 56px; }
.footer__brand { width: 380px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.footer__brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 24px; letter-spacing: 1px; color: var(--on-dark-text); }
.footer__disclaimer { font-size: 13px; line-height: 20px; color: var(--on-dark-text-dim); }
.footer__cols { flex: 1 1 auto; display: flex; gap: 40px; }
.footer__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col-head { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-mono); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; line-height: 22px; color: var(--on-dark-link); }
.footer__links a:hover { color: var(--on-dark-text); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__domain { font-family: var(--font-mono); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--on-dark-text-dim); }
.footer__rights { font-size: 12px; line-height: 16px; color: var(--on-dark-text-dim); }

@media (max-width: 900px) {
  .footer { padding: 40px 20px 28px 20px; }
  .footer__inner { gap: 14px; text-align: center; }
  .footer__top { flex-direction: column; gap: 20px; }
  .footer__brand { width: 100%; }
  .footer__brand-name { font-size: 16px; }
  .footer__disclaimer { font-size: 12px; line-height: 18px; }
  .footer__cols { display: none; }
  .footer__mobile-links {
    display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px;
    font-family: var(--font-body); font-size: 13px; line-height: 22px; color: var(--on-dark-link);
  }
  .footer__mobile-links a { color: var(--on-dark-link); }
  .footer__bottom { flex-direction: column; text-align: center; gap: 8px; padding-top: 16px; }
  .footer__domain { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 1.5px; }
}
.footer__mobile-links { display: none; }

/* ==========================================================================
   §6.7 — type scale at the mobile system, then 320
   ========================================================================== */
@media (max-width: 900px) {
  .t-hero-h1 { font-size: 36px; line-height: 40px; max-width: none; overflow-wrap: break-word; }
  .t-h1 { font-size: 32px; line-height: 38px; overflow-wrap: break-word; }
  .t-h2 { font-size: 26px; line-height: 32px; overflow-wrap: break-word; }
  .t-h2-sub { font-size: 24px; line-height: 30px; }
  .t-h3-lg { font-size: 22px; line-height: 28px; }
  .t-lede { font-size: 17px; line-height: 27px; max-width: none; }
  .badge { white-space: normal; height: auto; min-height: 30px; }
  .nocombat { max-width: 100% !important; }
  .wrap, .page, main { min-width: 0; }
  img, svg, iframe { max-width: 100%; }
  .btn { white-space: normal; }
}

@media (max-width: 359px) {
  .t-hero-h1 { font-size: 25px; line-height: 30px; }
  .t-h1 { font-size: 30px; line-height: 36px; }
  .t-h2 { font-size: 24px; line-height: 30px; }
  .t-h2-sub { font-size: 22px; line-height: 28px; }
  .t-lede { font-size: 17px; line-height: 27px; }
}

/* ==========================================================================
   Reduced motion — every animation off, static fallback
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .pillar:hover, .trailer:hover .trailer__play span { transform: none; }
}

/* ==========================================================================
   Desktop / mobile copy variants (§7 — two approved strings per element)
   Desktop shows the full string; ≤900px swaps in the approved short form.
   ========================================================================== */
.fact-strip__inner--mobile,
.analogy__note--mobile,
.pillar__body--mobile,
.status-card__text--mobile,
.zone__desc--mobile,
.t-body--mobile-md,
.hero__eyebrow--mobile,
.hero__sub--mobile,
.trailer__caption--mobile,
.faq-answer--mobile,
.footer__disclaimer--mobile,
.t-mono-meta--mobile,
.status-card__link--mobile,
.nocombat-link--mobile { display: none; }

@media (max-width: 900px) {
  .fact-strip__inner--desktop,
  .analogy__list--desktop,
  .pillar__body--desktop,
  .status-card__text--desktop,
  .zone__desc--desktop,
  .zone__species,
  .t-body--desktop-md,
  .hero__eyebrow--desktop,
  .hero__sub--desktop,
  .trailer__caption--desktop,
  .faq-answer--desktop,
  .footer__disclaimer--desktop,
  .t-mono-meta--desktop,
  .status-card__link--desktop,
  .nocombat-link--desktop { display: none; }

  .fact-strip__inner--mobile,
  .analogy__note--mobile,
  .pillar__body--mobile,
  .status-card__text--mobile,
  .zone__desc--mobile,
  .t-body--mobile-md,
  .hero__sub--mobile,
  .trailer__caption--mobile,
  .faq-answer--mobile,
  .footer__disclaimer--mobile,
  .t-mono-meta--mobile { display: block; }

  .hero__eyebrow--mobile { display: inline-flex; }
  .status-card__link--mobile,
  .nocombat-link--mobile { display: inline; }

  .analogy__note:not(.analogy__note--mobile) { display: none; }
}

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
