/* Deeprun site styles */

/* ---------- Tokens ---------- */
:root {
  --abyss: #04101B;
  --abyss-2: #061623;
  --deep: #081B2B;
  --deep-2: #0C2537;
  --line: #17324A;
  --line-2: #2A4A63;
  --text: #EAF3F7;
  --text-2: #C9D8E1;
  --muted: #9DB3C2;
  --faint: #7F97A8;
  --accent: #4FD1C5;
  --accent-hover: #8BE9DF;
  --live: #F0A04B;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --fs-hero: clamp(44px, 6.4vw, 92px);
  --fs-h1: clamp(40px, 5.8vw, 84px);
  --fs-h2: clamp(32px, 4.2vw, 60px);
  --fs-h2s: clamp(30px, 3.6vw, 52px);
  --fs-h3: clamp(26px, 2.8vw, 40px);
  --fs-stat: clamp(30px, 3.6vw, 52px);

  --container: 1200px;
  --gutter: clamp(16px, 2vw, 24px);
  --section-y: clamp(64px, 8.3vw, 120px);
  --card-pad: clamp(22px, 2.5vw, 36px);
  --panel-pad: clamp(24px, 4.4vw, 64px);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-pill: 999px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Keeps whatever the page scrolls to (an anchor, a focused field) clear of the sticky header (77px
   tall), with room for its label or focus ring. Not on short screens, where the header scrolls
   away (see the header). */
@media screen and (min-height: 461px) { html { scroll-padding-top: 100px; } }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: 40px; }
.section--last { padding-bottom: var(--section-y); }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { flex: 1 1 min(300px, 100%); min-width: 0; }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 48px); align-items: center; }
.split--top { align-items: flex-start; }
.split > * { flex: 1 1 min(400px, 100%); min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.mt-lg { margin-top: clamp(32px, 4vw, 56px); }
.mt-md { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.h-hero { font-size: var(--fs-hero); line-height: 0.98; }
.h1 { font-size: var(--fs-h1); line-height: 1; }
.h2 { font-size: var(--fs-h2); margin-top: 18px; }
.h2--s { font-size: var(--fs-h2s); }
.h3 { font-size: var(--fs-h3); line-height: 1.1; }
.h4 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-2); }
.body { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.small { font-size: 15px; line-height: 1.6; color: var(--muted); }
.caption { margin-top: 12px; font-size: 13px; color: var(--faint); }
.mono { font-family: var(--font-mono); }
.measure { max-width: 720px; }
.measure-wide { max-width: 900px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 0;
  font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--light { background: var(--text); color: var(--abyss); }
.btn--light:hover { background: #fff; color: var(--abyss); }
.btn--accent { background: var(--accent); color: var(--abyss); }
.btn--accent:hover { background: var(--accent-hover); color: var(--abyss); }
.btn--ghost { border: 1px solid rgba(234, 243, 247, 0.3); color: var(--text); font-weight: 500; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--lg { min-height: 52px; padding: 0 26px; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Header / nav ---------- */
/* The header stays at the top while the page scrolls. On the home page it starts transparent over
   the hero and fills in once the page scrolls (js/main.js adds .is-scrolled). Without JavaScript
   the home header sits over the hero and scrolls away, as before.
   The background and blur are on a layer behind the header (::before), not the header itself:
   a blur on the header would stop the mobile menu inside it from blurring what's behind it. */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(234, 243, 247, 0.08); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(4, 16, 27, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity .25s;
}
.site-header--overlay { position: fixed; top: 0; left: 0; right: 0; }
.site-header--overlay::before { opacity: 0; }
.site-header--overlay.is-scrolled::before { opacity: 1; }
.no-js .site-header--overlay { position: absolute; }
/* On a short screen (a phone on its side, a zoomed-in window) the header would cover too much of
   it, so it scrolls away as it did before. Printed pages don't repeat it. */
@media (max-height: 460px) {
  .site-header { position: relative; }
  .site-header--overlay { position: absolute; }
}
@media print {
  .site-header { position: relative; }
  .site-header--overlay { position: absolute; }
  .site-header--overlay::before { opacity: 0; }
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text-2); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: 0 1px 0 var(--accent); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(4, 16, 27, 0.6); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(4, 16, 27, 0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  /* The header doesn't scroll with the page, so a menu taller than the screen scrolls itself. */
  .nav-links {
    max-height: calc(100vh - 77px); max-height: calc(100dvh - 77px);
    overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 8px 20px;
  }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-links .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(820px, 100svh); display: flex; align-items: flex-end; }
.hero-media {
  position: absolute; inset: 0;
  background: var(--abyss) url("../images/hero-eb1163e98ef03c7c737f42f13a76d090.jpg?vsn=d") center 40% / cover no-repeat;
  animation: slowzoom 32s ease-in-out infinite alternate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,16,27,.15) 0%, rgba(4,16,27,.2) 45%, rgba(4,16,27,.95) 100%); }
.ray {
  position: absolute; top: 0; height: 600px;
  background: linear-gradient(180deg, rgba(160,230,255,.32), rgba(160,230,255,0));
  transform: skewX(-13deg); filter: blur(28px);
  animation: ray 9s ease-in-out infinite;
}
.ray--1 { left: 18%; width: 160px; }
.ray--2 { left: 52%; width: 120px; height: 540px; animation-delay: 3s; }
.ray--3 { left: 76%; width: 90px; height: 500px; animation-delay: 6s; }
.particle {
  position: absolute; bottom: 60px; width: 4px; height: 4px; border-radius: 50%;
  background: #CFF4FF; animation: drift 14s linear infinite; opacity: 0;
}
.hero-content { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 6vw, 88px); }
.hero .h-hero { margin-top: 28px; max-width: 980px; }
.hero .lead { margin-top: 28px; max-width: 640px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: rgba(4, 16, 27, 0.6); border: 1px solid rgba(79, 209, 197, 0.35);
  color: var(--text); font-size: 14px; line-height: 1.35;
}
.status-pill:hover { color: var(--text); border-color: var(--accent); }
.status-pill .mono { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--live); }
.live-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2s ease-in-out infinite; }

@keyframes slowzoom { from { transform: scale(1.04); } to { transform: scale(1.14); } }
@keyframes ray { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
@keyframes drift { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .85; } 100% { transform: translateY(-520px); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Stats bar ---------- */
.stats { background: var(--abyss-2); border-block: 1px solid rgba(234, 243, 247, 0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; padding-block: 36px; }
.stat-value { font-size: var(--fs-stat); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.stat-label { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cards ---------- */
.card { padding: var(--card-pad); border-radius: var(--r-lg); background: var(--deep); border: 1px solid var(--line); }
.card--xl { border-radius: var(--r-xl); }
.card--highlight { background: var(--deep-2); border-color: var(--accent); }
.card--live { background: var(--deep-2); border-color: var(--live); }
.card-value { font-size: clamp(34px, 3vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: var(--live); }
.card h3 { margin-top: 14px; }
.card p { margin-top: 10px; }
.panel { padding: var(--panel-pad); border-radius: var(--r-2xl); background: var(--deep); border: 1px solid var(--line); }

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini-card { padding: clamp(16px, 1.7vw, 24px); border-radius: var(--r-md); background: var(--abyss); border: 1px solid var(--line); }
.mini-card h3 { font-size: 17px; letter-spacing: -0.01em; }
.mini-card p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; }
.step-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
}
.step p { margin-top: 8px; }
.media { border-radius: var(--r-xl); border: 1px solid var(--line); width: 100%; }

/* ---------- Gulf Stream band ---------- */
.flow { position: relative; overflow: hidden; margin-top: 100px; }
.flow-media { position: absolute; inset: 0; background: #030d16 url("../images/flow-7dea37590c834ecb8fe5c9b53b4683a4.jpg?vsn=d") center / cover no-repeat; opacity: .85; }
.flow-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,16,27,.2) 0%, rgba(4,16,27,.55) 55%, rgba(4,16,27,.92) 100%); }
.flow-inner { position: relative; display: flex; justify-content: flex-end; padding-block: clamp(80px, 9.7vw, 140px); }
.flow-copy { flex: 0 1 560px; }
@media (max-width: 760px) { .flow-shade { background: rgba(4, 16, 27, 0.78); } }
.dash-list { display: flex; flex-direction: column; gap: 14px; }
.dash-list li { display: flex; gap: 14px; font-size: 16px; line-height: 1.5; }
.dash-list li::before { content: "—"; color: var(--accent); }

/* ---------- Progress components ---------- */
.bar { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.bar--thin { height: 6px; }
.meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.phase-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .phase-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .phase-chips { grid-template-columns: 1fr; } }
.phase-chip { padding: 18px; border-radius: 14px; background: var(--abyss); border: 1px solid var(--line); }
.phase-chip--now { background: var(--deep-2); border-color: var(--live); }
.phase-chip .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.phase-chip--now .label { color: var(--live); }
.phase-chip .name { margin-top: 8px; font-size: 15px; font-weight: 600; }
.phase-chip .when { margin-top: 4px; font-size: 13px; color: var(--muted); }
.latest { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.latest .mono { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ---------- Node specs ---------- */
.node-code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.node-year { margin-top: 12px; }
.specs { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- Journal ---------- */
.post-feature { display: flex; flex-wrap: wrap; border-radius: var(--r-xl); overflow: hidden; background: var(--deep); border: 1px solid var(--line); color: var(--text); }
.post-feature:hover { color: var(--text); border-color: var(--line-2); }
.post-feature img { flex: 1 1 min(520px, 100%); min-width: 0; aspect-ratio: 4 / 3; min-height: 240px; object-fit: cover; }
.post-feature-body { flex: 1 1 min(380px, 100%); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.post-feature-body h3 { margin-top: 16px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.post-feature-body p { margin-top: 16px; }
.post-feature-body .more { margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--accent); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.post-meta .dim { color: var(--faint); }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--deep); border: 1px solid var(--line); color: var(--text); }
.post-card:hover { color: var(--text); border-color: var(--line-2); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card-body { padding: clamp(20px, 2vw, 28px); }
.post-card h3 { margin-top: 14px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.35; }
.post-card p { margin-top: 10px; }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-card { display: flex; gap: 24px; }
.avatar {
  flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%;
  background: var(--deep-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 44px; height: 44px; font-size: 16px; }
.role { margin-top: 4px; font-size: 14px; color: var(--accent); }
@media (max-width: 480px) { .team-card { flex-direction: column; gap: 16px; } .avatar { width: 64px; height: 64px; font-size: 22px; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 8px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 680px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--abyss); color: var(--text); font-size: 16px;
}
.textarea { padding: 14px 16px; min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: var(--faint); }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row > * { flex: 1 1 min(200px, 100%); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form .input { flex: 1 1 200px; width: auto; }
.inline-form .btn { border-radius: var(--r-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--accent); background: rgba(79, 209, 197, 0.08); color: var(--text); font-size: 15px; }
.form-error { margin-top: 8px; font-size: 14px; color: #FF8F8F; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(234, 243, 247, 0.08); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-block: 48px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: var(--text-2); }
.footer-legal { flex: 1 1 100%; font-size: 12px; line-height: 1.6; color: var(--faint); }

/* ---------- Progress page ---------- */
.page-head { padding-top: clamp(64px, 6.7vw, 96px); padding-bottom: 48px; }
.page-head .h1 { margin-top: 18px; max-width: 900px; }
.page-head .lead { margin-top: 24px; max-width: 680px; }
.updated-chip { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--r-pill); background: var(--deep); border: 1px solid var(--line); font-size: 14px; }

.overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.overview .card { padding: clamp(18px, 2vw, 28px); }
.overview .k { font-size: 14px; color: var(--muted); }
.overview .v { margin-top: 10px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.overview .v .dim { color: var(--faint); }
.overview .s { margin-top: 6px; font-size: 14px; color: var(--muted); }
.overview .s--live { color: var(--live); }
.overview .bar { margin-top: 14px; }

.dashed-chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); border: 1px dashed var(--line-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.tile { padding: clamp(16px, 1.7vw, 24px); border-radius: 18px; background: var(--abyss-2); border: 1px solid var(--line); }
.tile .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.tile .v { margin-top: 12px; font-family: var(--font-mono); font-size: clamp(24px, 2.4vw, 34px); color: #4A6478; }
.tile .v.is-live { color: var(--text); }
.tile svg { margin-top: 14px; width: 100%; height: 40px; display: block; }

.roadmap { display: flex; flex-direction: column; gap: 20px; }
.phase { display: flex; flex-wrap: wrap; gap: 24px 32px; padding: var(--card-pad); border-radius: var(--r-xl); background: var(--deep); border: 1px solid var(--line); }
.phase--now { background: var(--deep-2); border-color: var(--live); }
.phase-head { flex: 0 1 260px; }
.phase-head .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.phase--now .phase-head .label { color: var(--live); }
.phase-head h3 { margin-top: 12px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; }
.phase-head .when { margin-top: 8px; font-size: 14px; color: var(--muted); }
.checklist { flex: 1 1 min(420px, 100%); display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li.todo { color: var(--muted); }
.tick { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; }
.tick--done { background: var(--accent); border-color: var(--accent); }
.tick--doing { border-color: var(--live); }
.tick--done::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--abyss); border-bottom: 2px solid var(--abyss); transform: translateY(-1px) rotate(-45deg); }

.log { position: relative; padding-left: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.log li { position: relative; }
.log li::before { content: ""; position: absolute; left: -35px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--abyss); }
.log li.is-latest::before { background: var(--live); }
.log-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.log-meta time { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.tag { padding: 3px 10px; border-radius: var(--r-pill); background: rgba(79, 209, 197, 0.12); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tag--live { background: rgba(240, 160, 75, 0.12); color: var(--live); }
.log h3 { margin-top: 10px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.35; }
.log p { margin-top: 8px; }

/* ---------- Article ---------- */
.article-head { max-width: 820px; margin: 0 auto; padding: clamp(56px, 6vw, 88px) var(--gutter) 48px; }
.article-head .post-meta { margin-top: 28px; }
.article-head h1 { margin-top: 20px; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; }
.article-head .lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 22px); }
.byline { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.byline .name { font-size: 15px; font-weight: 600; }
.byline .title { font-size: 13px; color: var(--muted); }
.figure { max-width: var(--container); margin: 24px auto; padding-inline: var(--gutter); }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); border: 1px solid var(--line); }
.figure figcaption { margin-top: 12px; font-size: 13px; color: var(--faint); }
.prose { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 24px; }
.prose p { margin: 0 0 26px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; color: var(--text-2); }
.prose h2 { margin: 56px 0 18px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.pullquote { max-width: 960px; margin: 24px auto; padding-inline: var(--gutter); }
.pullquote blockquote { margin: 0; padding: clamp(28px, 3.5vw, 48px) clamp(24px, 4vw, 56px); border-radius: var(--r-xl); background: var(--deep); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.pullquote p { font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Language additions ---------- */
.hero-eyebrow { margin-top: 28px; }
.hero-eyebrow + .h-hero { margin-top: 14px; }
.stats-lead { padding-top: 32px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); }
.stats-lead + .stats-grid, .container + .stats-grid { padding-top: 24px; }
.copy-list { display: flex; flex-direction: column; gap: 14px; }
.copy-item { position: relative; padding: 20px 96px 20px 22px; border-radius: var(--r-md); background: var(--deep); border: 1px solid var(--line); }
.copy-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.copy-text { margin-top: 8px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.copy-facts { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.copy-btn { position: absolute; top: 16px; right: 16px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.is-copied { border-color: var(--accent); color: var(--accent); }
.glossary { margin: 0; display: flex; flex-direction: column; }
.glossary > div { padding: 16px 0; border-top: 1px solid var(--line); }
.glossary > div:last-child { border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.glossary dd { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 480px) { .copy-item { padding: 18px; } .copy-btn { position: static; margin-top: 12px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media, .ray, .particle, .live-dot { animation: none; }
  .particle { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
