/* Game Theory Optimal corporate site, v2.
   Light page, dark hero and contact band. Brand colours: slate #6c7ea1, gold #f8b716, white. */

:root {
  --ink: #101626;
  --ink-2: #1b2338;
  --slate: #6c7ea1;
  --slate-700: #4a5877;
  --slate-900: #2b3550;
  --gold: #f8b716;
  --gold-700: #c98f05;
  --white: #ffffff;
  --ground: #ffffff;
  --tint: #f5f7fb;
  --line: #e3e8f1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text-on-dark: rgba(255, 255, 255, 0.78);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 22, 38, 0.06), 0 12px 32px -12px rgba(16, 22, 38, 0.18);
  --container: 1120px;
  --nav-h: 68px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-900); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }
sup { font-size: 0.6em; line-height: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--nav-h); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

.muted { color: var(--slate); }
.link { color: var(--slate-900); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.link:hover { border-color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-700); margin: 0 0 14px;
}
.lede { font-size: 19px; color: var(--slate-700); max-width: 640px; }
.est { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin: 0 0 6px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc531; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-outline { background: transparent; color: var(--slate-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--slate); color: var(--ink); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Inner pages have no dark hero, so the nav starts solid without waiting for the script. */
body.page .nav,
.nav.is-solid { background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
/* nav links inherit the bar colour (white on the hero, ink once solid); the global link hover must not override it */
.nav a:hover { color: inherit; }
.brand-mark { width: 34px; height: auto; }
.brand-mark-light { display: none; }
body.page .brand-mark-light, .nav.is-solid .brand-mark-light { display: block; }
body.page .brand-mark-dark, .nav.is-solid .brand-mark-dark { display: none; }

.wordmark { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.wm-game { color: var(--slate); }
.wm-theory { color: var(--gold); }
.wm-optimal { color: currentColor; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: inherit; font-weight: 500; font-size: 15px; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-links .btn { opacity: 1; }
.nav.is-solid .nav-links .btn-gold { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 22px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--text-on-dark);
  padding: calc(var(--nav-h) + 96px) 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(108, 126, 161, 0.35), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(248, 183, 22, 0.16), transparent 70%),
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.35) 70%, transparent);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.35) 70%, transparent);
}
.hero-inner { position: relative; }
.hero-title {
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  max-width: 14ch; margin-bottom: 24px;
}
.hero-sub { font-size: 19px; max-width: 620px; margin-bottom: 32px; }
.hero-sub strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden; margin: 0;
}
.stat { background: rgba(16, 22, 38, 0.85); padding: 22px 24px; }
.stat dt { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.stat dd { margin: 0; color: var(--white); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* ---------------------------------------------------------------- sections */
.section { padding: 104px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark a { color: var(--white); }
.section-page { padding-top: calc(var(--nav-h) + 56px); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }

/* flagships */
.flagships { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.flagship {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.flagship-media { background: linear-gradient(180deg, var(--tint), #e9edf5); padding: 28px 28px 0; }
.flagship-body { padding: 28px 32px 32px; }
.flagship-body p { margin-bottom: 18px; }
.flagship-pro .flagship-media { background: linear-gradient(180deg, #1b2338, var(--ink)); }

/* browser window frame around a screenshot; the image is cropped to a fixed ratio so cards line up */
.frame { border-radius: 10px 10px 0 0; overflow: hidden; background: var(--ground); box-shadow: 0 1px 0 rgba(16, 22, 38, 0.08), 0 18px 40px -20px rgba(16, 22, 38, 0.45); }
.frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #e9edf5; border-bottom: 1px solid #dde3ee; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d1e0; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.pro-band {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--radius); padding: 44px 48px;
}
.pro-band h3 { color: var(--white); font-size: 26px; margin-bottom: 14px; }
.pro-band .eyebrow { color: var(--gold); }
.pro-band-text > p { margin-bottom: 28px; }
.pro-band-media img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 20px; }
.pro-claim { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.pro-claim-num { font-size: 56px; font-weight: 800; color: var(--gold); letter-spacing: -0.04em; line-height: 1; margin: 0; grid-row: span 2; }
.pro-claim-text { color: var(--white); font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; }
.footnote { font-size: 13px; color: var(--slate); margin: 0; }
.pro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; margin: 0; }
.pro-stats dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.pro-stats dd { margin: 0; color: var(--white); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

/* the rail: full-bleed dark section in the product's own teal, screenshots left, stats in a strip along the bottom.
   Deliberately unlike the PRO DB band above it, which is a rounded box with text left and media right. */
.section.section-rail {
  --rail: #2ec4a2;
  --rail-ink: #0d1412;
  --rail-ink-2: #121b18;
  background: var(--rail-ink); color: var(--text-on-dark);
  padding: 88px 0 0; position: relative; overflow: hidden;
  border-top: 1px solid rgba(46, 196, 162, 0.25);
}
.section-rail::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(46, 196, 162, 0.16), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(46, 196, 162, 0.08), transparent 70%);
}
.section-rail > * { position: relative; }
.section-rail h2 { color: var(--white); margin-bottom: 0; }
.section-rail .eyebrow { color: var(--rail); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rail-since { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); padding: 3px 9px; border: 1px solid var(--line-dark); border-radius: 999px; }
.rail-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.rail-head .lede { color: var(--text-on-dark); margin: 0 0 6px; }
.section-rail strong { color: var(--white); }
.section-rail .link { color: var(--white); border-color: var(--rail); }
.rail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.rail-features { margin: 0 0 28px; display: grid; gap: 18px; font-size: 16px; }
.rail-features li { position: relative; padding-left: 22px; }
.rail-features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--rail); }
.rail-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.rail-cats li { font-size: 13px; font-weight: 600; color: var(--rail); background: rgba(46, 196, 162, 0.1); border: 1px solid rgba(46, 196, 162, 0.35); border-radius: 6px; padding: 4px 10px; }
.rail-strip { margin-top: 72px; background: var(--rail-ink-2); border-top: 1px solid var(--line-dark); }
.rail-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.rail-stats > div { padding: 28px 24px; border-left: 1px solid var(--line-dark); }
.rail-stats > div:first-child { border-left: 0; padding-left: 0; }
.rail-stats dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.rail-stats dd { margin: 0; color: var(--rail); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.rail-media { position: relative; }
.rail-shots { position: relative; padding: 0 56px 52px 0; }
.frame-dark { border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8); }
.frame-dark img { aspect-ratio: auto; }
.frame-dark .frame-bar { background: #1c2422; border-bottom-color: #2a3330; }
.frame-dark .frame-bar i { background: #3a4542; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 32%; max-width: 210px;
  border: 6px solid #1a1f1e; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; }

.also { font-size: 16px; color: var(--slate-700); }
.also a { font-weight: 600; border-bottom: 2px solid var(--gold); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 28px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-media { margin: 0 -28px 24px; padding: 24px 24px 0; background: linear-gradient(180deg, var(--tint), #e9edf5); border-radius: var(--radius) var(--radius) 0 0; }
.card h3 { font-size: 22px; }
.card p { flex: 1; }
.card .link { align-self: flex-start; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 600; color: var(--slate-900); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text h2 { margin-bottom: 20px; }

.logos-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logos li {
  display: flex; align-items: center; justify-content: center;
  height: 84px; padding: 16px 20px;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.logos li:hover img { filter: none; opacity: 1; }

/* datahub: light section, no screenshot because the tool is internal. A three-column flow figure (sources, the
   platform as an ink box, answers) joined by dashed connectors, then four short features. */
.section-datahub { border-top: 1px solid var(--line); }
.since { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; margin-left: 10px; vertical-align: middle; }
.dh-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin-bottom: 48px; }
.dh-col { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dh-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.dh-col ul { display: grid; gap: 10px; }
.dh-col li { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; line-height: 1.4; }
.dh-col li strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.dh-col li span { display: block; color: var(--slate-700); font-size: 14px; }
.dh-core { position: relative; display: flex; align-items: center; padding: 0 32px; }
.dh-core::before, .dh-core::after { content: ""; position: absolute; top: 50%; width: 32px; border-top: 2px dashed var(--slate); opacity: 0.6; }
.dh-core::before { left: 0; }
.dh-core::after { right: 0; }
.dh-core-box {
  width: 250px; padding: 26px 24px; text-align: center;
  background: var(--ink); color: var(--text-on-dark); border-radius: var(--radius); box-shadow: var(--shadow);
}
.dh-core-box img { width: 34px; margin: 0 auto 10px; }
.dh-core-name { color: var(--white); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.dh-core-box > p { font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.dh-core-stats { display: grid; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line-dark); text-align: left; }
.dh-core-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dh-core-stats dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.dh-core-stats dd { margin: 0; color: var(--gold); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.dh-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; font-size: 16px; }
.dh-features li { position: relative; padding-left: 22px; }
.dh-features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); }

/* timeline */
.timeline { position: relative; max-width: 760px; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 40px; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 82px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--tint); box-shadow: 0 0 0 2px var(--gold);
}
.tl-year { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; text-align: right; }
.tl-body h3 { font-size: 20px; margin-bottom: 6px; }
.tl-body p { margin: 0; }

/* founders */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; }
.founder { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); background: var(--ground); }
.founder .photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; box-shadow: 0 0 0 4px var(--tint), 0 0 0 6px var(--gold); }
.founder h3 { margin-bottom: 2px; }
.founder .role { color: var(--gold-700); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }

/* press */
.press-list { display: grid; gap: 20px; max-width: 860px; }
.press-item { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.press-item time { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.press-item h3 { font-size: 22px; }
.press-item h3 a { color: var(--ink); }
.press-item h3 a:hover { color: var(--slate-900); }

/* contact */
.contact-line { margin-bottom: 6px; }
.contact-line a { font-weight: 600; border-bottom: 2px solid var(--gold); }
.section-dark .contact-line.muted { color: var(--slate); margin-top: 24px; }

.form { display: grid; gap: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 32px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--white);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; transition: border-color 0.15s ease, background 0.15s ease;
}
.form input:focus, .form textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, 0.09); }
.form textarea { resize: vertical; min-height: 140px; }
.form .btn { justify-self: start; }
.notice { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; background: rgba(248, 183, 22, 0.14); border: 1px solid rgba(248, 183, 22, 0.5); color: var(--white); }
.notice strong { color: var(--gold); }
.notice-error { background: rgba(255, 99, 99, 0.12); border-color: rgba(255, 99, 99, 0.5); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--slate); border-top: 1px solid var(--line-dark); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.footer-brand img { width: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text-on-dark); }
.footer-links a:hover { color: var(--white); }
.footer-legal { margin: 0; width: 100%; }

/* ---------------------------------------------------------------- press modal and article */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 22, 38, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative; width: 100%; max-width: 760px;
  background: var(--ground); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  padding: 48px; outline: none;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--tint); color: var(--ink);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--line); }
body.modal-open { overflow: hidden; }

.press-article h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.press-meta { color: var(--slate); font-weight: 600; font-size: 14px; margin-bottom: 24px; }
.press-image { border-radius: var(--radius-sm); margin-bottom: 24px; }
.press-body .lead { font-size: 19px; color: var(--ink); }
.press-body p { margin-bottom: 1.1em; }
.press-body a { color: var(--slate-900); border-bottom: 1px solid var(--gold); }
.press-body ul, .press-body ol { margin: 0 0 1.1em; padding-left: 24px; display: grid; gap: 6px; }
.press-body ul { list-style: disc; }
.press-body ol { list-style: decimal; }
.press-body li::marker { color: var(--gold); }
.press-body h3 { font-size: 20px; margin-top: 1.4em; }
.press-body blockquote { margin: 0 0 1.1em; padding-left: 16px; border-left: 3px solid var(--gold); color: var(--slate-700); }
.press-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.press-footer a { font-weight: 600; }

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal-dialog { animation: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .flagships, .founders, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .pro-band { grid-template-columns: 1fr; padding: 32px; }
  .section.section-rail { padding: 64px 0 0; }
  .rail-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .rail-grid { grid-template-columns: 1fr; gap: 40px; }
  .rail-strip { margin-top: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .dh-flow { grid-template-columns: 1fr; }
  .dh-core { justify-content: center; padding: 28px 0; }
  .dh-core::before, .dh-core::after { top: auto; left: 50%; width: 0; height: 28px; border-top: 0; border-left: 2px dashed var(--slate); }
  .dh-core::before { top: 0; }
  .dh-core::after { bottom: 0; }
  .dh-core-box { width: 100%; max-width: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; border: 0; }
  .nav.is-open { background: var(--ground); color: var(--ink); }
  .nav.is-open .brand-mark-light { display: block; }
  .nav.is-open .brand-mark-dark { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .stat dd { font-size: 28px; }
  .pro-stats { grid-template-columns: repeat(2, 1fr); }
  .pro-band { padding: 28px 24px; }
  .rail-stats { grid-template-columns: repeat(2, 1fr); }
  .rail-stats > div { padding: 20px 16px; }
  .rail-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .rail-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .rail-shots { padding: 0 36px 40px 0; }
  .phone { width: 36%; border-width: 4px; border-radius: 18px; }
  .dh-features { grid-template-columns: 1fr; }
  .timeline::before { left: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 44px; }
  .timeline li::before { left: 10px; }
  .tl-year { text-align: left; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 16px; }
  .modal-dialog { padding: 32px 24px; }
  .flagship-body, .press-item { padding: 24px; }
}
