:root {
  --navy: #102c49;
  --navy-2: #173a5e;
  --teal: #087d86;
  --teal-dark: #075c65;
  --ink: #14283d;
  --muted: #5d7082;
  --paper: #f7f7f2;
  --white: #ffffff;
  --mist: #edf3f3;
  --line: #d8e1e5;
  --green: #167a4a;
  --green-soft: #e4f4ea;
  --red: #b43b3b;
  --red-soft: #fae8e6;
  --amber: #9a6813;
  --amber-soft: #fff1d6;
  --plum: #6d456f;
  --plum-soft: #f1e7f2;
  --blue: #376fd6;
  --shadow: 0 18px 45px rgba(16, 44, 73, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 9px; color: #fff; background: var(--navy); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 40; top: 0; display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(18px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: rgba(247,247,242,.96); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: #fff; background: var(--navy); font-size: .72rem; font-weight: 900; }
.brand-copy { display: grid; }
.brand-copy strong { line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: .72rem; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { font-size: .78rem; font-weight: 850; text-decoration: none; }
.nav-cta { padding: 10px 16px; border-radius: 999px; color: #fff; background: var(--navy); }
.nav-toggle { display: none; }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 64px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.loading-line { margin: 0; color: var(--muted); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; font-size: .8rem; font-weight: 850; text-decoration: none; }
.button.primary { color: #fff; background: var(--teal); }
.button.secondary { color: #fff; border: 1px solid rgba(255,255,255,.45); background: transparent; }
.text-link { color: var(--teal-dark); font-weight: 850; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.signal-tape { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 8px 22px rgba(16,44,73,.05); }
.tape-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; min-height: 74px; align-content: center; padding: 12px 16px; border-right: 1px solid var(--line); text-decoration: none; }
.tape-item:last-child { border-right: 0; }
.tape-item span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tape-item strong { grid-column: 1; font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.tape-change { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 3px; font-size: .75rem; font-weight: 900; }
.tape-change.up { color: var(--green); }
.tape-change.down { color: var(--red); }
.tape-change.flat { color: var(--muted); }
.tape-item small { grid-column: 1 / -1; color: var(--muted); font-size: .66rem; }

.hero-shell { display: grid; grid-template-columns: minmax(370px,.8fr) minmax(520px,1.2fr); gap: 16px; }
.hero-copy, .hero-globe { border-radius: 24px; box-shadow: var(--shadow); }
.hero-copy { display: flex; min-height: 610px; flex-direction: column; justify-content: center; padding: clamp(34px,5vw,58px); color: #fff; background: var(--navy); }
.hero-copy .eyebrow { color: #8fe4df; }
.hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.5rem,6vw,6.2rem); line-height: .86; letter-spacing: -.05em; }
.hero-copy h1 em { color: #a7c4ff; font-style: normal; }
.hero-summary { max-width: 600px; margin: 25px 0 0; color: #e8f0f5; font-size: 1.03rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; color: #d9e6ee; font-size: .76rem; }
.hero-facts > span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.hero-globe { padding: 17px; background: #fff; }
.globe-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 4px 12px; }
.globe-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem,2.4vw,2.35rem); line-height: 1; }
.home-globe-stage { min-height: 470px; }
.market-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.market-buttons button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: .72rem; font-weight: 850; cursor: pointer; }
.market-buttons button:hover, .market-buttons button[aria-pressed="true"] { color: #fff; border-color: var(--teal); background: var(--teal); }
.market-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 10px; padding: 13px 15px; border-radius: 14px; background: var(--mist); }
.market-card strong { font-family: var(--serif); font-size: 1.12rem; }
.market-card p { margin: 3px 0 0; color: var(--muted); font-size: .74rem; }

.relationship-strip { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.relationship-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.relationship-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1; }
.relationship-denominator { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .72rem; }
.relationship-ticker { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.relationship-cell { position: relative; min-height: 118px; padding: 16px; overflow: hidden; border-radius: 16px; background: var(--mist); }
.relationship-cell .arrows { display: flex; gap: 8px; align-items: center; font-weight: 950; }
.relationship-cell .arrows span { padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.65); font-size: .74rem; }
.relationship-cell strong { display: block; margin-top: 12px; font-family: var(--serif); font-size: 1.75rem; line-height: 1; }
.relationship-cell h3 { margin: 5px 0 0; font-size: .85rem; }
.relationship-cell small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.relationship-cell.mutualism { background: var(--green-soft); }
.relationship-cell.ai-benefit { background: var(--red-soft); }
.relationship-cell.human-benefit { background: var(--amber-soft); }
.relationship-cell.competition { background: var(--plum-soft); }
.relationship-other-summary { margin: 13px 0 0; color: var(--muted); font-size: .74rem; }

.home-shortcuts { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }
.home-shortcuts a { display: grid; min-height: 120px; align-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; }
.home-shortcuts span { color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.home-shortcuts strong { margin-top: 7px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.08; }
.home-shortcuts a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.info-popover { position: relative; display: inline-flex; }
.info-popover > summary { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid currentColor; border-radius: 50%; list-style: none; cursor: pointer; font-size: .72rem; font-weight: 900; opacity: .82; }
.info-popover > summary::-webkit-details-marker { display: none; }
.info-card { position: absolute; z-index: 60; left: 0; top: calc(100% + 9px); width: min(330px,80vw); padding: 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 18px 46px rgba(16,44,73,.18); font-size: .76rem; line-height: 1.45; }
.info-card p { margin: 8px 0 0; }
.info-popover:not([open]) .info-card { display: none; }
.info-popover:hover .info-card, .info-popover:focus-within .info-card { display: block; }
.info-popover.align-right .info-card { right: 0; left: auto; }
.hero-copy .info-popover { color: #fff; }
.hero-copy .info-card { color: var(--ink); }

footer { display: flex; justify-content: space-between; gap: 24px; width: min(1240px,calc(100% - 40px)); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 17px; }
footer a { text-decoration: none; }

@media (max-width: 1060px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy { min-height: 470px; }
  .home-globe-stage { min-height: 500px; }
}
@media (max-width: 820px) {
  .site-header { padding-inline: 15px; }
  .brand-copy small { display: none; }
  .nav-toggle { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; }
  .site-header nav { position: absolute; top: calc(100% + 1px); left: 12px; right: 12px; display: none; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
  .site-header nav[data-open="true"] { display: grid; gap: 8px; }
  .signal-tape { grid-template-columns: 1fr 1fr; }
  .tape-item:nth-child(2) { border-right: 0; }
  .tape-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .relationship-ticker { grid-template-columns: 1fr 1fr; }
  .home-shortcuts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  main { width: min(100% - 20px,1240px); padding-top: 10px; }
  .hero-copy { padding: 32px 24px; }
  .hero-copy h1 { font-size: clamp(3.2rem,17vw,4.6rem); }
  .home-globe-stage { min-height: 370px; }
  .market-card { grid-template-columns: 1fr; }
  .relationship-heading { align-items: flex-start; flex-direction: column; }
  .relationship-ticker { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* v5.9.1 data-state hardening */
.data-error { color: #9a2b2b; }
.signal-tape > .data-error { grid-column: 1 / -1; padding: 18px; }
.signal-tape > .data-error a { color: var(--teal-dark); font-weight: 850; }
