/* WorldEcho / WorldSync — an editorial research page. */
:root {
  color-scheme: light;
  --paper: #f7f8f5;
  --surface: #fff;
  --ink: #162b26;
  --ink-strong: #0b211b;
  --ink-soft: #5d6b65;
  --muted: #6e7a73;
  --line: #d8e1d9;
  --line-strong: #bbcbbf;
  --echo: #197969;
  --echo-deep: #197969;
  --echo-tint: #eaf1ec;
  --sync: #9b5638;
  --sync-deep: #9b5638;
  --sync-tint: #f4eee7;
  --warn: #d6a15c;
  --ref: #73b2a1;
  --navy: #102923;
  --navy-deep: #0a1814;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --container: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #58b8a0; outline-offset: 5px; }
::selection { background: #b6dccc; color: #102923; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; }
h2 { font-size: clamp(36px, 4.15vw, 54px); line-height: 1.13; letter-spacing: -.035em; }
h3 { font-family: var(--font-body); font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
.container { width: min(calc(100% - 100px), var(--container)); margin-inline: auto; }
.section-pad { padding: 110px 0; }
.section-light { background: var(--paper); }
.split-heading { display: grid; grid-template-columns: 1.12fr 1fr; gap: 100px; align-items: end; }
.kicker { margin-bottom: 24px; color: var(--echo); font-family: var(--font-mono); font-size: 11px; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.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; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 1000; padding: 12px 18px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 110; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: #8bbfae; }

/* A quiet masthead lets the project identity own the first screen. */
.site-header { position: sticky; top: 0; z-index: 100; background: #0a1814; color: #eff4ed; border-bottom: 1px solid #26352f; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: var(--header-h); }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.project-wordmark { display: inline-flex; align-items: baseline; gap: .32em; color: #eff4ed; font-family: var(--font-body); font-weight: 500; line-height: 1.3; letter-spacing: -.045em; }
.project-wordmark > span { white-space: nowrap; }
.wordmark-echo { color: #a4cdb7; font-weight: 600; }
.wordmark-sync { color: #d4b49e; font-weight: 600; }
.wordmark-amp { color: #859c90; font-family: var(--font-display); font-style: italic; font-weight: 400; }
.nav-wordmark { font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 27px; }
.nav-links a { position: relative; padding: 26px 0; color: #a4b2a9; font-size: 12px; font-weight: 400; transition: color 180ms; }
.nav-links a:hover, .nav-links a.active { color: #f3f8f0; }
.nav-links a.active::after { content: ""; position: absolute; bottom: 17px; left: 0; right: 0; height: 1px; background: #b5d5bd; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: #d3e5d5; }

/* A centered paper masthead over the project's real rollout footage. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 28px; display: flex; flex-direction: column; background: #0a1814; color: #f1f5eb; text-align: center; }
.hero-media { position: absolute; z-index: -3; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; background: #16251e; }
.hero-film { position: relative; overflow: hidden; min-height: 0; background: #15251f; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5); opacity: .8; }
.hero-shade { position: absolute; z-index: -2; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(7,20,15,.7),rgba(7,20,15,.88) 45%,rgba(7,20,15,.93)); }
.hero-content { position: relative; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 18px; color: #bbcfbf; font-family: var(--font-mono); font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .17em; }
.eyebrow-line { width: 29px; height: 1px; background: #8db29b; }
.hero h1 { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .2em; font-size: clamp(48px, 6vw, 76px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 > span { white-space: nowrap; }
.hero h1 em { color: #b2d0b7; font-weight: 400; }
.hero-subtitle { max-width: 900px; margin: 18px auto 0; font-family: var(--font-display); font-size: 28px; line-height: 1.35; font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
.hero-lead { max-width: 780px; margin: 8px auto 0; color: #d0dbd2; font-size: 15px; line-height: 1.7; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; min-height: 44px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 500; transition: background 180ms, color 180ms; }
.button-primary { background: #dcebd8; color: #172c20; }
.button-primary:hover { background: #f2f7eb; }
.button-secondary { border-color: #738578; color: #edf4e7; background: rgba(10,24,20,.22); }
.button-secondary:hover { background: rgba(220,235,216,.1); }
.play-icon { font-size: 9px; }
.hero-bottom { position: relative; display: flex; justify-content: center; margin-top: 24px; }
.hero .hero-playback { width: min(100%, 480px); padding: 0; text-align: left; --playback-text: #e3efde; --playback-muted: #c5d4c8; --playback-border: #576e5d; --playback-surface: transparent; }
.hero .playback-actions button { min-height: 38px; padding: 7px 10px; font-size: 11px; background: rgba(10,24,20,.5); color: #e3efde; border-color: #576e5d; }
.hero .playback-actions [data-playback-toggle] { min-width: 130px; }
.hero .playback-status { flex: 1 1 150px; font-size: 10px; }
.hero .playback-actions { gap: 6px; }
.hero .playback-timeline { margin-top: 2px; }
.hero .playback-timeline input { min-height: 22px; }
.hero .playback-time { font-size: 10px; }

/* Thesis and scope: open typography, shared rules, generous whitespace. */
.overview-section { padding-top: 64px; padding-bottom: 64px; }
.overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 57px; border-top: 1px solid var(--line); }
.thesis-card { padding: 28px 32px 4px 0; position: relative; }
.thesis-card + .thesis-card { padding-left: 30px; border-left: 1px solid var(--line); }
.thesis-badge { display: block; margin-bottom: 26px; color: var(--echo); font-family: var(--font-mono); font-size: 11px; }
.thesis-card p:not(.thesis-tag) { margin-top: 14px; max-width: 35ch; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.thesis-tag { margin-top: 25px; color: #738175; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); font-size: 10px; }

/* Shared controls remain fully functional with keyboard and reduced motion. */
.playback-controls { --playback-text: var(--ink); --playback-muted: var(--ink-soft); --playback-border: var(--line-strong); --playback-surface: transparent; padding: 20px 0 0; color: var(--playback-text); }
.playback-controls[hidden] { display: none; }
.playback-actions, .playback-timeline { display: flex; align-items: center; gap: 10px; }
.playback-actions { flex-wrap: wrap; }
.playback-actions button { min-height: 38px; padding: 7px 13px; border: 1px solid var(--playback-border); border-radius: 3px; background: var(--playback-surface); color: var(--playback-text); font-size: 12px; cursor: pointer; }
.playback-actions [data-playback-toggle] { min-width: 143px; background: var(--navy); border-color: var(--navy); color: #fff; }
.playback-actions button:hover { opacity: .82; }
.playback-actions button:disabled { opacity: .45; cursor: wait; }
.playback-status { flex: 1 1 160px; color: var(--playback-muted); font-size: 11px; }
.playback-timeline { margin-top: 8px; }
.playback-timeline input { flex: 1; min-width: 0; min-height: 28px; margin: 0; accent-color: #a3cdb5; cursor: pointer; }
.playback-time { flex: none; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--playback-muted); }

/* Reveal gently; all content is readable without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 60ms !important; }
.delay-2 { transition-delay: 120ms !important; }
.delay-3 { transition-delay: 180ms !important; }
