/* ═══════════════════════════════════════════════════════════
   DIGITAL DNA™ — Shared Design System
   Light-first, orange brand (#EA632A). One stylesheet, every page.
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root,
[data-theme='light'] {
  --bg: #FCFBF9;
  --bg-2: #F4F1EC;
  --bg-3: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --border: rgba(40, 28, 18, 0.12);
  --border-soft: rgba(40, 28, 18, 0.07);
  --border-bright: rgba(234, 99, 42, 0.42);

  --brand: #EA632A;
  --brand-strong: #C8501C;
  --brand-2: #F59E42;
  --brand-ink: #FFFFFF;

  --text: #463B33;
  --text-mid: #756A60;
  --text-dim: #9C9085;
  --heading: #1E1611;
  --err: #D64531;

  --grad: linear-gradient(118deg, #EA632A 0%, #F59E42 100%);
  --grad-soft: linear-gradient(118deg, rgba(234, 99, 42, 0.1), rgba(245, 158, 66, 0.12));
  --tint: #FCEEE5;
  --glow: 0 14px 34px -16px rgba(234, 99, 42, 0.5);
  --shadow: 0 24px 54px -30px rgba(70, 45, 25, 0.34);
  --shadow-soft: 0 10px 30px -18px rgba(70, 45, 25, 0.26);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #14110E;
  --bg-2: #1B1713;
  --bg-3: #211C17;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: #221D18;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(242, 115, 58, 0.52);

  --brand: #F2733A;
  --brand-strong: #FF9056;
  --brand-2: #F8A24E;
  --brand-ink: #1A0F08;

  --text: #D8CEC4;
  --text-mid: #A99E92;
  --text-dim: #786C5F;
  --heading: #FFFFFF;
  --err: #FF7A63;

  --grad: linear-gradient(118deg, #F2733A 0%, #F8A24E 100%);
  --grad-soft: linear-gradient(118deg, rgba(242, 115, 58, 0.16), rgba(248, 162, 78, 0.16));
  --tint: rgba(242, 115, 58, 0.12);
  --glow: 0 0 40px -8px rgba(242, 115, 58, 0.5);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 12px 34px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 6px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(76px, 9vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-tight { padding: clamp(56px, 6vw, 84px) 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(46px, 6vw, 70px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.95rem, 3.6vw, 2.95rem);
  line-height: 1.1; letter-spacing: -0.022em;
  color: var(--heading); margin: 16px 0 0; text-wrap: balance;
}
.section-lead { margin-top: 18px; color: var(--text-mid); font-size: 1.08rem; }
.section-lead strong { color: var(--text); font-weight: 600; }

/* ── ACCENTS ── */
.eyebrow {
  display: inline-block;
  font-family: 'Syne', sans-serif; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand);
  padding: 7px 15px; border: 1px solid var(--border-bright);
  border-radius: 999px; background: var(--grad-soft);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── ICONS ── */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }
.feature-ico, .thread-ico, .layer-tab-ico, .acc-ico, .science-ico,
.impact-ico, .flow-ico, .ndm-ico, .article-thumb { color: var(--brand); }
.featured-visual, .ok-ico { color: #fff; }
.flow-step.is-you .flow-ico { color: #fff; }
.mm-sub .icon { color: var(--brand); margin-right: 4px; }
.seg-btn .icon { margin-right: 2px; }
.link-arrow .icon { width: 0.95em; height: 0.95em; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.96rem;
  padding: 13px 24px; border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.88rem; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(234, 99, 42, 0.6); }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; color: var(--heading); border: 1px solid var(--border-bright); }
.btn-outline:hover { transform: translateY(-3px); background: var(--tint); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--brand); transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { color: var(--brand-strong); gap: 9px; }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════  NAVIGATION  ═══════════════ */
.nav {
  position: sticky; top: 0; z-index: 100; isolation: isolate;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 13px 28px; display: flex; align-items: center; gap: 26px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { height: 30px; width: auto; }
.brand-name { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.22rem; letter-spacing: -0.01em; color: var(--heading); }
.brand-name strong { font-weight: 800; color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav-links > a, .nav-drop-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.95rem; font-weight: 500; color: var(--text-mid);
  padding: 9px 14px; border-radius: 9px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links > a:hover, .nav-drop-btn:hover { color: var(--heading); background: var(--bg-2); }
.nav-links > a.is-current { color: var(--brand); font-weight: 600; }
.nav-drop-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s ease; }
.nav-drop { position: relative; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 310px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* transparent bridge across the gap to the button — keeps :hover alive while
   the cursor travels down from the button to the menu (fixes Safari) */
.nav-drop-menu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 16px;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border-radius: 11px; transition: background 0.16s ease; }
.nav-drop-menu a:hover { background: var(--grad-soft); }
.ndm-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border);
}
.nav-drop-menu strong { display: block; color: var(--heading); font-size: 0.96rem; font-weight: 600; }
.nav-drop-menu em { display: block; color: var(--text-dim); font-size: 0.82rem; font-style: normal; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: var(--text-mid); stroke-width: 1.9; stroke-linecap: round; }
.theme-toggle .ic-sun { display: none; }
[data-theme='dark'] .theme-toggle .ic-moon { display: none; }
[data-theme='dark'] .theme-toggle .ic-sun { display: block; }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); }
.burger span { width: 19px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 99;
  background: var(--bg-3); border-bottom: 1px solid var(--border);
  padding: 16px 28px 28px; display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform 0.26s ease, opacity 0.26s ease;
  max-height: calc(100vh - 66px); overflow-y: auto;
}
.mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 12px 8px; font-size: 1.04rem; font-weight: 500; color: var(--text); border-radius: 9px; }
.mobile-menu a:hover { background: var(--bg-2); }
.mobile-menu .mm-sub { padding-left: 20px; color: var(--text-mid); font-size: 0.98rem; }
.mm-label { font-family: 'Syne', sans-serif; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); padding: 14px 8px 4px; }
.mobile-menu .btn { margin-top: 14px; }

/* ═══════════════  HERO (home)  ═══════════════ */
.hero { position: relative; padding: clamp(52px, 7vw, 96px) 0 clamp(60px, 8vw, 104px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg {
  background:
    radial-gradient(640px 500px at 14% 6%, rgba(234, 99, 42, 0.13), transparent 70%),
    radial-gradient(680px 540px at 90% 16%, rgba(245, 158, 66, 0.16), transparent 72%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 64% at 50% 36%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 64% at 50% 36%, #000 30%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.05rem, 4.2vw, 3.3rem);
  line-height: 1.07; letter-spacing: -0.03em;
  color: var(--heading); margin-bottom: 24px; text-wrap: balance;
}
.hero-lead { font-size: 1.14rem; color: var(--text-mid); max-width: 540px; margin-bottom: 32px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; font-size: 0.86rem; color: var(--text-dim); }
.hero-trust b { color: var(--text-mid); font-weight: 600; }
.hero-trust i { color: var(--brand); font-style: normal; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; height: 470px; }
.hero-visual::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 99, 42, 0.24), transparent 66%); filter: blur(28px);
}
.genome-canvas { position: relative; width: 100%; height: 100%; display: block; cursor: crosshair; }
.helix { position: relative; perspective: 1400px; padding: 28px 0; z-index: 1;
  mask-image: linear-gradient(transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 13%, #000 87%, transparent); }
.helix-rung { position: relative; width: 250px; height: 16px; display: flex; align-items: center; transform-style: preserve-3d; animation: helix-spin 4.6s linear infinite; }
@keyframes helix-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.helix-bar { flex: 1; height: 2px; background: linear-gradient(90deg, rgba(234, 99, 42, 0.2), rgba(245, 158, 66, 0.85), rgba(234, 99, 42, 0.2)); }
.helix-node { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; }
.helix-node.a { background: radial-gradient(circle at 34% 32%, #FFB37A, #EA632A); box-shadow: 0 0 16px rgba(234, 99, 42, 0.75); }
.helix-node.b { background: radial-gradient(circle at 34% 32%, #FFD29B, #F59E42); box-shadow: 0 0 16px rgba(245, 158, 66, 0.7); }

/* ═══════════════  PAGE HERO (sub-pages)  ═══════════════ */
.page-hero { position: relative; padding: clamp(58px, 8vw, 104px) 0 clamp(46px, 6vw, 76px); overflow: hidden; text-align: center; }
.page-hero .hero-bg { z-index: -1; }
.page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08;
  letter-spacing: -0.03em; color: var(--heading); margin: 20px 0 18px; text-wrap: balance;
}
.page-hero p { font-size: 1.14rem; color: var(--text-mid); max-width: 600px; margin: 0 auto; }
.page-hero .hero-cta { justify-content: center; margin-top: 30px; }

/* ═══════════════  STATS BAND  ═══════════════ */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); padding: 44px 28px; }
.stat { text-align: center; padding: 6px 14px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--border); }
.stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.1rem, 3.4vw, 2.9rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 10px; font-size: 0.9rem; color: var(--text-mid); }

/* ═══════════════  MARQUEE  ═══════════════ */
.marquee { padding: 24px 0; overflow: hidden; border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 40s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.08rem; color: var(--text-mid); white-space: nowrap; }
.marquee-track i { color: var(--brand); font-style: normal; font-size: 0.7rem; }

/* ═══════════════  GENOMIC THREAD  ═══════════════ */
.thread { max-width: 1080px; margin: 0 auto; }
.thread-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; margin-bottom: 28px; }
.thread-track::before, .thread-track::after { content: ''; position: absolute; left: 8%; top: 37px; height: 3px; border-radius: 3px; z-index: 0; }
.thread-track::before {
  right: 8%;
  background-image: repeating-linear-gradient(90deg, var(--brand) 0 7px, transparent 7px 18px);
  opacity: 0.3;
  animation: thread-flow 0.8s linear infinite;
}
.thread-track::after {
  width: calc(var(--active, 0) * 16.8%);
  background: var(--grad);
  box-shadow: var(--glow);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes thread-flow { to { background-position-x: 18px; } }
@keyframes thread-pulse { 0% { opacity: 0.55; transform: scale(0.82); } 100% { opacity: 0; transform: scale(1.32); } }
.thread-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; border-radius: 14px; border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; text-align: center; }
.thread-step:hover { transform: translateY(-3px); }
.thread-ico { position: relative; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.thread-step.is-done .thread-ico { border-color: var(--border-bright); }
.thread-step.is-done .thread-name { color: var(--text); }
.thread-step.is-active { background: var(--grad-soft); border-color: var(--border-bright); }
.thread-step.is-active .thread-ico { border-color: var(--brand); box-shadow: var(--glow); }
.thread-step.is-active .thread-ico::after {
  content: ''; position: absolute; inset: -5px; border-radius: 16px;
  border: 2px solid var(--brand); animation: thread-pulse 1.9s ease-out infinite;
}
.thread-num { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brand); }
.thread-name { font-size: 0.82rem; font-weight: 500; color: var(--text-mid); line-height: 1.35; }
.thread-step.is-active .thread-name { color: var(--heading); }
.thread-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-soft); animation: fade-in 0.45s ease; }
.thread-panel[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tp-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-stage { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.tp-head h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--heading); letter-spacing: -0.02em; }
.tp-plain { font-size: 1.12rem; color: var(--text); font-weight: 500; margin-bottom: 12px; }
.tp-detail { color: var(--text-mid); margin-bottom: 20px; }
.tp-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tp-tags span { font-size: 0.82rem; font-weight: 500; color: var(--text-mid); padding: 6px 13px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); }

/* ═══════════════  LAYER TABS  ═══════════════ */
.layers { max-width: 1080px; margin: 0 auto; }
.layer-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.layer-tab { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-radius: 15px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; text-align: left; }
.layer-tab:hover { transform: translateY(-3px); }
.layer-tab.is-active { border-color: var(--border-bright); background: var(--grad-soft); }
.layer-tab-ico { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.layer-tab.is-active .layer-tab-ico { border-color: var(--brand); box-shadow: var(--glow); }
.layer-tab-meta em { display: block; font-style: normal; font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand); }
.layer-tab-meta strong { display: block; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.04rem; color: var(--heading); margin-top: 2px; }
.layer-panel { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-soft); animation: fade-in 0.45s ease; }
.layer-panel[hidden] { display: none; }
.layer-body h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.8rem); color: var(--heading); letter-spacing: -0.02em; margin-bottom: 12px; }
.layer-body > p { color: var(--text-mid); margin-bottom: 20px; }
.layer-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.layer-feats li { position: relative; padding-left: 26px; font-size: 0.98rem; color: var(--text-mid); }
.layer-feats li::before { content: ''; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 4px; background: var(--grad); }
.layer-feats strong { color: var(--text); font-weight: 600; }
.layer-metrics { display: flex; flex-direction: column; gap: 12px; }
.metric { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.metric-num { display: block; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.85rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-label { font-size: 0.86rem; color: var(--text-mid); margin-top: 5px; }

/* ── expandable technical detail ── */
.tech-detail { border-top: 1px solid var(--border); padding-top: 16px; }
.tech-detail summary { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--brand); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.tech-detail summary::-webkit-details-marker { display: none; }
.tech-detail summary::before { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: var(--grad-soft); border: 1px solid var(--border-bright); font-size: 1rem; }
.tech-detail[open] summary::before { content: '\2212'; }
.tech-detail p { margin-top: 12px; font-size: 0.92rem; color: var(--text-dim); }

/* ═══════════════  IMPACT / CARD GRIDS  ═══════════════ */
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 20px; }
.impact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow-soft); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.impact-card:hover { transform: translateY(-6px); border-color: var(--border-bright); box-shadow: var(--shadow); }
.impact-card--lead { grid-row: span 2; justify-content: flex-start; background: linear-gradient(150deg, var(--tint), var(--surface) 60%); border-color: var(--border-bright); }
.impact-badge { align-self: flex-start; font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 12px; border-radius: 999px; }
.impact-stat { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(3rem, 5vw, 4.4rem); line-height: 0.95; color: var(--heading); margin-top: 6px; }
.impact-stat small { font-size: 0.3em; font-weight: 700; color: var(--brand); letter-spacing: 0.04em; vertical-align: 0.7em; margin-left: 4px; }
.impact-ico, .feature-ico { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--border); }
.impact-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.28rem; color: var(--heading); letter-spacing: -0.015em; }
.impact-card--lead h3 { font-size: 1.6rem; }
.impact-card p { color: var(--text-mid); font-size: 0.98rem; flex: 1; }
.impact-card .link-arrow { margin-top: 4px; }

/* generic feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow-soft); transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; display: flex; flex-direction: column; gap: 10px; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-bright); box-shadow: var(--shadow); }
.feature-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.18rem; color: var(--heading); letter-spacing: -0.012em; }
.feature-card p { color: var(--text-mid); font-size: 0.96rem; }
.feature-card .link-arrow { margin-top: auto; padding-top: 6px; }
.feature-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ═══════════════  SPLIT (text + visual)  ═══════════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip .split-body { order: 2; }
.split-body .eyebrow { margin-bottom: 18px; }
.split-body h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.14; letter-spacing: -0.02em; color: var(--heading); margin-bottom: 14px; }
.split-body > p { color: var(--text-mid); margin-bottom: 18px; }
.split-list { display: flex; flex-direction: column; gap: 14px; }
.split-list li { position: relative; padding-left: 30px; color: var(--text-mid); }
.split-list li strong { color: var(--text); font-weight: 600; }
.split-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px; background: var(--grad); }
.split-media { display: flex; align-items: center; justify-content: center; }

/* generic stat panel (boxed metrics) */
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; text-align: center; box-shadow: var(--shadow-soft); }
.metric-box .big { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-box .lbl { font-size: 0.9rem; color: var(--text-mid); margin-top: 8px; }

/* ── LIVE QC MONITOR (gigafactories) ── */
.qc-panel { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft); }
.qc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.qc-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--heading); }
.qc-live { display: flex; align-items: center; gap: 7px; font-family: 'Syne', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; color: var(--brand); }
.qc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: qc-blink 1.4s ease-in-out infinite; }
@keyframes qc-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.qc-line { display: flex; flex-direction: column; gap: 9px; }
.qc-station {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 13px; border: 1px solid var(--border); background: var(--surface);
  opacity: 0.5;
  transition: opacity 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.qc-station.is-done { opacity: 1; }
.qc-station.is-active { opacity: 1; border-color: var(--border-bright); background: var(--grad-soft); box-shadow: var(--shadow-soft); transform: translateX(3px); }
.qc-node {
  width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--brand);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.qc-station.is-active .qc-node { border-color: var(--brand); box-shadow: var(--glow); }
.qc-info { flex: 1; min-width: 0; }
.qc-info strong { display: block; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.92rem; color: var(--heading); }
.qc-info em { display: block; font-style: normal; font-size: 0.78rem; color: var(--text-dim); }
.qc-badge {
  font-family: 'Syne', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: scale(0.85); transition: opacity 0.3s ease, transform 0.3s ease;
}
.qc-station.is-active .qc-badge, .qc-station.is-done .qc-badge { opacity: 1; transform: none; }
.qc-badge--ok { color: var(--brand); background: var(--grad-soft); border: 1px solid var(--border-bright); }
.qc-badge--alert { color: #fff; background: var(--err); border: 1px solid var(--err); }

/* ── FLEET HEALTH MONITOR (OEMs) ── */
.fleet-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-soft); margin-bottom: 38px; }
.fleet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.fleet-title { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.fleet-sub { display: block; font-size: 0.84rem; color: var(--text-dim); margin-top: 3px; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 6px; }
.fleet-cell { aspect-ratio: 1; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--border); transition: background 0.5s ease, box-shadow 0.4s ease, transform 0.2s ease; }
.fleet-cell.ok { background: rgba(234, 99, 42, 0.55); border-color: transparent; }
.fleet-cell.watch { background: #F2B056; border-color: transparent; }
.fleet-cell.alert { background: var(--err); border-color: transparent; animation: fleet-alert 1.4s ease-in-out infinite; }
.fleet-cell.scan { transform: scale(1.16); box-shadow: 0 0 9px rgba(234, 99, 42, 0.55); }
@keyframes fleet-alert { 0%, 100% { box-shadow: 0 0 5px rgba(214, 69, 49, 0.4); } 50% { box-shadow: 0 0 14px rgba(214, 69, 49, 0.85); } }
.fleet-legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; font-size: 0.85rem; color: var(--text-mid); }
.fleet-stat { display: flex; align-items: center; gap: 8px; }
.fleet-stat b { color: var(--heading); font-family: 'Syne', sans-serif; font-weight: 700; }
.fleet-key { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.fleet-key--ok { background: rgba(234, 99, 42, 0.55); }
.fleet-key--watch { background: #F2B056; }
.fleet-key--alert { background: var(--err); }

/* ── DIGITAL TWIN PANEL (platform) ── */
.twin-panel { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-soft); }
.twin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.twin-title { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.twin-id { display: block; font-family: 'Syne', sans-serif; font-size: 0.74rem; letter-spacing: 0.07em; color: var(--text-dim); margin-top: 3px; }
.twin-rows { display: flex; flex-direction: column; gap: 15px; }
.twin-row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.twin-label { font-size: 0.84rem; color: var(--text-mid); }
.twin-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.96rem; color: var(--heading); }
.twin-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.twin-fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1); }
.twin-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim); }
.twin-foot .qc-dot { width: 6px; height: 6px; }

/* ═══════════════  ACCORDION  ═══════════════ */
.accordion { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }
.acc-item.is-open { border-color: var(--border-bright); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; }
.acc-ico { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); }
.acc-head-text { flex: 1; }
.acc-head-text em { display: block; font-style: normal; font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand); }
.acc-head-text strong { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--heading); margin-top: 2px; }
.acc-chevron { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-2); color: var(--brand); font-size: 1.1rem; transition: transform 0.25s ease; }
.acc-item.is-open .acc-chevron { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.34s ease; }
.acc-body-inner { padding: 0 24px 24px 86px; }
.acc-body-inner > p { color: var(--text-mid); margin-bottom: 16px; }
.acc-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-feats li { position: relative; padding-left: 24px; font-size: 0.95rem; color: var(--text-mid); }
.acc-feats li strong { color: var(--text); font-weight: 600; }
.acc-feats li::before { content: ''; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 4px; background: var(--grad); }

/* ═══════════════  SEGMENTED CONTROL  ═══════════════ */
.seg-switch { display: inline-flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); margin: 0 auto 36px; }
.seg-btn { display: flex; align-items: center; gap: 8px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text-mid); padding: 11px 22px; border-radius: 10px; transition: background 0.2s ease, color 0.2s ease; }
.seg-btn.is-active { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.seg-panel[hidden] { display: none; }
.seg-panel { animation: fade-in 0.4s ease; }

/* ═══════════════  PROCESS FLOW  ═══════════════ */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 150px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px; text-align: center; box-shadow: var(--shadow-soft); }
.flow-step.is-you { background: var(--grad-soft); border-color: var(--border-bright); }
.flow-ico { width: 46px; height: 46px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.flow-step.is-you .flow-ico { background: var(--grad); color: #fff; }
.flow-step strong { display: block; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem; color: var(--heading); }
.flow-step span { font-size: 0.84rem; color: var(--text-dim); }
.flow-arrow { display: flex; align-items: center; color: var(--brand); font-size: 1.3rem; padding: 0 6px; transition: transform 0.3s ease, text-shadow 0.3s ease; }
.flow-step { transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.flow-step.is-lit { border-color: var(--border-bright); box-shadow: var(--glow); transform: translateY(-5px); }
.flow-step.is-lit .flow-ico { border-color: var(--brand); box-shadow: var(--glow); }
.flow-arrow.is-lit { transform: scale(1.45); text-shadow: 0 0 14px rgba(234, 99, 42, 0.75); }

/* ═══════════════  TIMELINE  ═══════════════ */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 38px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--grad); opacity: 0.5; }
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -38px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.tl-item--now::before { background: var(--brand); box-shadow: var(--glow); }
.tl-year { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--brand); }
.tl-item h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.24rem; color: var(--heading); margin: 6px 0 7px; letter-spacing: -0.015em; }
.tl-item p { color: var(--text-mid); font-size: 0.98rem; }

/* science grid (kept) */
.science-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.science-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-soft); transition: transform 0.22s ease, border-color 0.22s ease; }
.science-tile:hover { transform: translateY(-5px); border-color: var(--border-bright); }
.science-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; border-radius: 11px; margin-bottom: 6px; background: var(--grad-soft); border: 1px solid var(--border); }
.science-tile strong { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.02rem; color: var(--heading); }
.science-tile em { font-style: normal; font-size: 0.88rem; color: var(--text-dim); }

/* ═══════════════  QUOTE  ═══════════════ */
.quote-card { max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 56px); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-soft); }
.quote-card .qmark { font-family: 'Syne', sans-serif; font-size: 3.4rem; line-height: 0.6; color: var(--brand); }
.quote-card blockquote { font-family: 'Syne', sans-serif; font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--heading); margin: 14px 0 20px; }
.quote-author { font-size: 0.95rem; color: var(--text-mid); }
.quote-author strong { color: var(--heading); font-weight: 600; }

/* ═══════════════  ARTICLES (insights)  ═══════════════ */
.featured-article { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--border-bright); border-radius: 24px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-soft); margin-bottom: 44px; text-decoration: none; color: inherit; transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease; }
.featured-article:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.featured-article:hover h3 { color: var(--brand-strong); }
.featured-visual { aspect-ratio: 16 / 9; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--border); overflow: hidden; }
.thumb-art { width: 100%; height: 100%; display: block; }
.featured-article h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--heading); margin: 14px 0 12px; }
.featured-article p { color: var(--text-mid); margin-bottom: 18px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--text-mid); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.filter-btn:hover { border-color: var(--brand); color: var(--heading); }
.filter-btn.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.article-card:hover { transform: translateY(-5px); border-color: var(--border-bright); box-shadow: var(--shadow); }
.article-card:hover h3 { color: var(--brand-strong); }
.article-thumb { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: var(--grad-soft); }
.article-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.article-tag { align-self: flex-start; font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); padding: 4px 11px; border-radius: 999px; background: var(--grad-soft); }
.article-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: var(--heading); letter-spacing: -0.01em; }
.article-card p { font-size: 0.93rem; color: var(--text-mid); flex: 1; }
.article-meta { font-size: 0.82rem; color: var(--text-dim); }

/* ── ARTICLE / POST PAGE ── */
.post-hero { position: relative; padding: clamp(46px, 6vw, 80px) 0 clamp(24px, 3vw, 38px); overflow: hidden; }
.post-hero-inner { max-width: 760px; margin: 0 auto; }
.post-back { display: inline-flex; align-items: center; gap: 6px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.86rem; color: var(--text-mid); margin-bottom: 18px; transition: color 0.2s ease, gap 0.2s ease; }
.post-back:hover { color: var(--brand); gap: 9px; }
.post-hero h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.14; letter-spacing: -0.025em; color: var(--heading); margin: 14px 0 16px; text-wrap: balance; }
.post-meta { font-size: 0.88rem; color: var(--text-dim); }
.post-meta b { color: var(--brand); font-weight: 600; }
.prose { max-width: 720px; margin: 0 auto; padding: clamp(26px, 4vw, 44px) 0 clamp(46px, 7vw, 84px); }
.prose > * + * { margin-top: 1.15rem; }
.prose p { color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.prose .post-lead { font-size: 1.2rem; font-weight: 500; color: var(--text); }
.prose h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--heading); letter-spacing: -0.02em; margin-top: 2.5rem; }
.prose h3 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.16rem; color: var(--heading); margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 0.4rem; color: var(--text); }
.prose li { margin-top: 0.55rem; line-height: 1.7; padding-left: 1.6rem; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.prose ol { counter-reset: pi; }
.prose ol li::before { counter-increment: pi; content: counter(pi); position: absolute; left: 0; top: 0; width: 20px; height: 20px; font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--grad); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.prose strong { color: var(--heading); font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.8rem 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--brand); font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1.22rem; line-height: 1.45; color: var(--heading); }
.prose .post-figure { margin: 1.9rem 0; padding: 20px 24px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; }
.prose .post-figure strong { display: block; font-family: 'Syne', sans-serif; margin-bottom: 5px; }
.prose .post-figure p { font-size: 0.96rem; color: var(--text-mid); margin: 0; }
.post-tags { max-width: 720px; margin: 0 auto; padding-bottom: 20px; display: flex; gap: 9px; flex-wrap: wrap; }

/* ═══════════════  FORM  ═══════════════ */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--bg-3); color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.form-note { font-size: 0.84rem; color: var(--text-dim); margin-top: 14px; }
.form-ok { text-align: center; padding: 30px 10px; }
.form-ok .ok-ico { width: 60px; height: 60px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; border-radius: 50%; background: var(--grad); color: #fff; }
.form-ok h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--heading); margin-bottom: 8px; }
.form-ok p { color: var(--text-mid); }
.field .hint { font-weight: 400; font-size: 0.85em; color: var(--text-dim); }
.field-err { display: none; font-size: 0.8rem; font-weight: 500; color: var(--err); }
.field--error .field-err { display: block; }
.field--error input, .field--error select, .field--error textarea,
.input--error { border-color: var(--err) !important; }
.field--error input:focus, .field--error select:focus, .field--error textarea:focus,
.input--error:focus { box-shadow: 0 0 0 3px rgba(214, 69, 49, 0.16) !important; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  display: none; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px;
  background: rgba(214, 69, 49, 0.09); border: 1px solid rgba(214, 69, 49, 0.32);
  color: var(--err); font-size: 0.9rem; font-weight: 500;
}
.form-alert.show { display: block; }

/* ═══════════════  CTA  ═══════════════ */
.cta-section { padding: clamp(56px, 7vw, 96px) 0 clamp(76px, 9vw, 116px); }
.cta-wrap { position: relative; overflow: hidden; max-width: 880px; margin: 0 auto; text-align: center; padding: clamp(44px, 6vw, 76px); border: 1px solid var(--border-bright); border-radius: 28px; background: linear-gradient(160deg, var(--tint), var(--surface) 70%); box-shadow: var(--shadow); }
.cta-wrap::before { content: ''; position: absolute; width: 460px; height: 320px; top: -160px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(234, 99, 42, 0.22), transparent 68%); filter: blur(30px); }
.cta-wrap > * { position: relative; }
.cta-wrap h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.022em; color: var(--heading); margin: 16px auto 14px; max-width: 18ch; }
.cta-wrap > p { color: var(--text-mid); max-width: 52ch; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════  FOOTER  ═══════════════ */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-mid); font-size: 0.94rem; max-width: 320px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 15px; }
.footer-col a { display: block; color: var(--text-mid); font-size: 0.95rem; padding: 5px 0; transition: color 0.16s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 28px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim); }

/* ═══════════════  RESPONSIVE  ═══════════════ */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; min-height: 0; height: 300px; overflow: hidden; }
  .helix-rung { width: 210px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 0; }
  .stat:nth-child(1)::before, .stat:nth-child(4)::before { display: none; }
  .layer-tabs { grid-template-columns: 1fr; }
  .layer-panel { grid-template-columns: 1fr; }
  .layer-metrics { flex-direction: row; }
  .layer-metrics .metric { flex: 1; }
  .impact-grid, .feature-grid, .feature-grid.cols-4, .article-grid { grid-template-columns: 1fr 1fr; }
  .impact-card--lead { grid-row: span 1; grid-column: span 2; }
  .science-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .split-body { order: 0; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .featured-article { grid-template-columns: 1fr; }
  .acc-body-inner { padding-left: 24px; }
  .acc-feats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .thread-track { grid-template-columns: repeat(3, 1fr); }
  .thread-track::before, .thread-track::after { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat::before { display: none !important; }
  .impact-grid, .feature-grid, .feature-grid.cols-2, .feature-grid.cols-4, .article-grid { grid-template-columns: 1fr; }
  .impact-card--lead { grid-column: span 1; }
  .science-grid { grid-template-columns: 1fr; }
  .layer-metrics { flex-direction: column; }
  .metric-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-cta, .cta-actions { flex-direction: column; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .tp-head { flex-direction: column; gap: 4px; }
  .footer-bottom { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .flow { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
