/* ════════════════════════════════════════════════════════
   TRSPACE — shared stylesheet (single source of truth)
   Light theme across all pages.
════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Nexa Bold';
  src: url('NexaBold.woff2') format('woff2'), url('NexaBold.woff') format('woff');
  font-weight: 700 800; font-style: normal; font-display: swap;
}

:root {
  --bg-primary:   #FAF9F6;
  --bg-alt:       #F0EFEB;
  --bg-surface:   #FFFFFF;
  --text-main:    #1F1F1D;
  --text-body:    #2A2A28;
  --text-muted:   #66655F;
  --brand-red:    #C01825;
  --brand-red-dk: #9E1019;
  --brand-glow:   rgba(192,24,37,0.55);
  --border-soft:  rgba(0,0,0,0.05);
  --border-mid:   rgba(0,0,0,0.09);
  --launch-green: #1FAE54;

  --nexa:  'Nexa Bold', 'Montserrat', sans-serif;
  --serif: "Newsreader", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "Space Mono", "Roboto Mono", monospace;

  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.03), 0 12px 22px -6px rgba(0,0,0,0.05);
  --shadow-lift: 0 16px 28px -10px rgba(0,0,0,0.08), 0 30px 50px -18px rgba(0,0,0,0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 88px; }

body {
  background: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--sans);
  font-size: 16px; font-weight: 400; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(192,24,37,0.16); }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.brand-logo-text { font-family: var(--nexa); font-weight: 800; letter-spacing: 0.02em; }

/* ── BACKGROUND CANVAS + SCROLL PROGRESS ── */
#flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.85; }
#fluid-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-red-dk));
  z-index: 1200; pointer-events: none; transition: width .1s linear;
}

/* ── ULTRA-GLASS HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
header.scrolled {
  background: rgba(250,249,246,0.25);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 30px rgba(0,0,0,0.03);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-main); margin-right: auto; }
.brand .brand-logo-text { font-size: 24px; color: var(--text-main); }
.brand .brand-logo-text span { color: var(--text-main); }

.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-decoration: none; position: relative;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px; background: var(--brand-red); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text-main); }
.nav-links a.active::after { width: 100%; }

/* ── MOBILE HAMBURGER + DRAWER ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 11px 9px; background: transparent; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text-main); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; display: flex; justify-content: flex-end;
  background: rgba(20,20,18,0.20); opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: relative; width: 66%; max-width: 340px; height: 100%; margin-left: auto;
  display: flex; flex-direction: column; justify-content: center; padding: 64px 40px;
  background: rgba(250,249,246,0.42);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-left: 1px solid rgba(255,255,255,0.45);
  box-shadow: -24px 0 60px -22px rgba(0,0,0,0.22);
  transform: translateX(100%); transition: transform .42s var(--ease); will-change: transform;
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; line-height: 1;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 34px; font-weight: 300; color: var(--text-muted);
  transition: color .25s var(--ease), transform .35s var(--ease);
}
.mobile-menu-close:hover { color: var(--brand-red); transform: rotate(90deg); }
.mobile-menu-logo { height: 40px; width: auto; max-width: 100%; object-fit: contain; display: block; margin-bottom: 26px; }
.mobile-menu-eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-mid);
}
.mobile-menu-links { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; counter-reset: navlink; }
.mobile-menu-links a {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 21px; letter-spacing: .01em;
  color: var(--text-main); text-decoration: none; counter-increment: navlink;
  opacity: 0; transform: translateX(20px);
  transition: color .25s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.mobile-menu-links a::before {
  content: counter(navlink, decimal-leading-zero);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--brand-red);
}
.mobile-menu-links a:hover, .mobile-menu-links a.active { color: var(--brand-red); }
.mobile-menu-foot {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border-mid);
  font-family: var(--sans); font-size: 13px; letter-spacing: .01em; color: var(--text-muted);
}
.mobile-menu-foot a { color: var(--brand-red); text-decoration: none; }
.mobile-menu-foot a:hover { text-decoration: underline; }
.mobile-menu.open .mobile-menu-links a { opacity: 1; transform: translateX(0); }
.mobile-menu.open .mobile-menu-links a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { transition-delay: .18s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.open .mobile-menu-links a:nth-child(4) { transition-delay: .30s; }
.mobile-menu.open .mobile-menu-links a:nth-child(5) { transition-delay: .36s; }
body.menu-open { overflow: hidden; }

/* ── SECTION WATERMARKS ── */
.watermark { position: absolute; pointer-events: none; z-index: 0; opacity: 0.035; color: var(--text-main); }
.watermark svg { display: block; width: 100%; height: 100%; }

/* ── HERO ── */
.hero { position: relative; padding: 230px 0 150px; overflow: hidden; }
.hero .wrap { z-index: 2; }
.hero-eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-red); margin-bottom: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.6vw, 92px); line-height: 1.03; letter-spacing: -0.02em; color: var(--text-main); max-width: 15ch; margin-bottom: 34px; }
.hero h1 em { font-style: italic; color: var(--brand-red); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero h1.go .w { opacity: 1; transform: translateY(0); }
.hero-sub { font-size: 20px; font-weight: 300; line-height: 1.6; color: var(--text-muted); max-width: 46ch; margin-bottom: 48px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none;
  padding: 15px 30px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), background .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--brand-red); color: #fff; box-shadow: 0 6px 18px -4px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-red-dk); transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 28px -6px var(--brand-glow); }
.btn-primary .arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(5px); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: transparent; color: var(--text-main); border-color: var(--border-mid); }
.btn-ghost:hover { border-color: var(--brand-red); color: var(--brand-red); transform: translateY(-2px); }
.btn-ghost .arrow { transition: transform .3s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* ── SECTIONS ── */
section { padding: 110px 0; position: relative; overflow: hidden; }
.page-lead { padding-top: 168px; }
.section-label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-red); margin-bottom: 18px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; line-height: 1.1; color: var(--text-main); margin-bottom: 18px; max-width: 20ch; }
.section-intro { font-size: 18px; font-weight: 300; color: var(--text-muted); max-width: 54ch; line-height: 1.7; }
.section-head { margin-bottom: 60px; }
.bg-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* ── ABOUT (mission / vision) ── */
.about-eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-red); margin-bottom: 20px; }
.about-hero { text-align: center; max-width: 60ch; margin: 0 auto 64px; }
.about-hero .section-title { max-width: none; margin-left: auto; margin-right: auto; }
.about-hero .section-intro { margin-left: auto; margin-right: auto; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  position: relative; padding: 44px 40px; border-radius: 16px;
  background: var(--bg-surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-card);
  overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(192,24,37,0.18); }
.mv-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand-red), transparent 72%); }
.mv-index { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-red); }
.mv-icon { width: 46px; height: 46px; margin: 18px 0 24px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(192,24,37,0.16); background: rgba(192,24,37,0.06); }
.mv-icon svg { width: 22px; height: 22px; stroke: var(--brand-red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mv-card h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; letter-spacing: -0.015em; color: var(--text-main); margin-bottom: 14px; }
.mv-card p { font-size: 15px; font-weight: 300; line-height: 1.78; color: var(--text-body); }

/* ── PROJECTS ── */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card { background: var(--bg-surface); border: 1px solid var(--border-soft); border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden; position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card::after { content: ''; position: absolute; top: 0; left: 0; z-index: 5; width: 0; height: 3px; background: linear-gradient(90deg, var(--brand-red), var(--brand-red-dk)); transition: width .55s var(--ease); }
.card:hover::after { width: 100%; }
.card-visual { height: 190px; position: relative; overflow: hidden; background: linear-gradient(140deg, #FFFFFF 0%, #F1EFE9 100%); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; }
.card-visual::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: url('space_background.jpg'); background-size: cover; background-position: center; opacity: 0.45; transition: transform .6s var(--ease); }
.card:hover .card-visual::after { transform: scale(1.05); }
.card-visual img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.card-visual .slot { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--text-muted); white-space: nowrap; background: rgba(255,255,255,0.7); padding: 5px 12px; border-radius: 6px; border: 1px dashed var(--border-mid); }
.card-body { padding: 38px; }
.led { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--launch-green); margin-bottom: 22px; }
.led i { width: 10px; height: 10px; border-radius: 50%; background: var(--launch-green); animation: led-pulse 2s var(--ease) infinite; }
@keyframes led-pulse {
  0%   { box-shadow: 0 0 5px 0 rgba(31,174,84,0.9), 0 0 0 0 rgba(31,174,84,0.5); }
  70%  { box-shadow: 0 0 12px 2px rgba(31,174,84,0.5), 0 0 0 9px rgba(31,174,84,0); }
  100% { box-shadow: 0 0 5px 0 rgba(31,174,84,0.9), 0 0 0 0 rgba(31,174,84,0); }
}
.card-name { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 29px; letter-spacing: -0.01em; color: var(--text-main); margin-bottom: 18px; }
.card-desc { font-size: 15.5px; color: var(--text-body); line-height: 1.72; margin-bottom: 28px; }
.spec { border-top: 1px solid var(--border-soft); padding-top: 20px; text-align: center; }
.spec dt { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.spec dd { font-family: var(--serif); font-size: 30px; color: var(--brand-red); }

/* ── ENGINEERING CAPABILITIES ── */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap { position: relative; padding: 36px 32px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.cap:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(192,24,37,0.18); }
.cap::after { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--brand-red), var(--brand-red-dk)); transition: width .5s var(--ease); }
.cap:hover::after { width: 100%; }
.cap-tag { position: absolute; top: 22px; right: 24px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--text-muted); opacity: .6; }
.cap-icon { width: 46px; height: 46px; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: rgba(192,24,37,0.06); border: 1px solid rgba(192,24,37,0.14); }
.cap-icon svg { width: 22px; height: 22px; stroke: var(--brand-red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; color: var(--text-main); margin-bottom: 10px; }
.cap p { font-size: 14.5px; color: var(--text-body); line-height: 1.65; }

/* ── R&D INFRASTRUCTURE ── */
.infra-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 76px; align-items: start; }
.pipeline { list-style: none; }
.pipeline li { padding: 30px 0; border-bottom: 1px solid var(--border-soft); display: grid; grid-template-columns: 92px 1fr; gap: 26px; align-items: baseline; opacity: 0; transform: translateX(-14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.pipeline li.in { opacity: 1; transform: translateX(0); }
.pipeline li:last-child { border-bottom: none; }
.pipeline .tool { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-red); padding-top: 5px; }
.pipeline h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--text-main); margin-bottom: 6px; letter-spacing: -0.01em; }
.pipeline p { font-size: 15px; color: var(--text-body); line-height: 1.66; }
.sponsor { margin-top: 40px; display: inline-flex; align-items: center; gap: 18px; padding: 18px 26px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-mid); box-shadow: var(--shadow-card); }
.sponsor-logo { height: 44px; width: auto; display: block; object-fit: contain; }
.sponsor .divider { width: 1px; height: 38px; background: var(--border-mid); }
.sponsor .txt small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sponsor .txt strong { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--text-main); }

/* ── R&D HEADQUARTERS — map + beacon ── */
.hq { padding: 110px 0; position: relative; overflow: hidden; }
.hq-head { text-align: center; margin-bottom: 56px; position: relative; z-index: 3; }
.hq-head .section-title, .hq-head .section-intro { margin-left: auto; margin-right: auto; }
.hq-map { width: 100%; height: 400px; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); max-width: 940px; margin: 0 auto; box-shadow: var(--shadow-card); }
.hq-beacon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4; }
.hq-beacon .dot { width: 11px; height: 11px; border-radius: 50%; background-color: #00C853; position: relative; box-shadow: 0 0 0 3px rgba(255,255,255,0.85), 0 1px 5px rgba(0,0,0,0.30); animation: hq-breathe 2.4s var(--ease) infinite; }
.hq-beacon .dot::before { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(0,200,83,0.55) 0%, rgba(0,200,83,0.25) 55%, rgba(0,200,83,0) 72%); animation: hq-glow 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes hq-breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 3px rgba(255,255,255,0.85), 0 0 0 0 rgba(0,200,83,0.45); }
  50%      { transform: scale(1.16); box-shadow: 0 0 0 3px rgba(255,255,255,0.9),  0 0 12px 3px rgba(0,200,83,0.5); }
}
@keyframes hq-glow {
  0%   { width: 100%;  height: 100%;  opacity: 0.65; }
  100% { width: 460%;  height: 460%;  opacity: 0;    }
}

/* ── CONTACT ── */
.contact-card { background: var(--bg-surface); border: 1px solid var(--border-soft); border-radius: 12px; box-shadow: var(--shadow-card); padding: 68px; text-align: center; position: relative; overflow: hidden; }
.contact-card::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(192,24,37,0.05) 0%, transparent 65%); pointer-events: none; }
.contact-card > * { position: relative; z-index: 2; }
.contact-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; margin-bottom: 16px; }
.contact-card p.lead { font-size: 18px; font-weight: 300; color: var(--text-muted); max-width: 44ch; margin: 0 auto 40px; }
.contact-meta { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 56px; border-top: 1px solid var(--border-soft); }
.contact-meta div { padding: 30px 44px; border-right: 1px solid var(--border-soft); }
.contact-meta div:last-child { border-right: none; }
.contact-meta dt { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.contact-meta dd { font-size: 15px; color: var(--text-main); }
.contact-meta dd a { color: var(--brand-red); text-decoration: none; font-weight: 500; }
.contact-meta dd a:hover { text-decoration: underline; }

/* ── SITE FOOTER (slim, every page) ── */
.site-footer { padding: 46px 0; background: var(--bg-alt); border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 36px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; color: var(--text-muted); }
.footer-inner .brand-logo-text { font-size: 14px; color: var(--text-main); }
.footer-inner .brand-logo-text span { color: var(--text-main); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); text-decoration: none; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--brand-red); }
.footer-copy b { color: var(--brand-red); font-weight: 500; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── STATS BAND ── */
.stats { padding: 64px 0; background: var(--bg-primary); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat { text-align: center; position: relative; padding: 6px 14px; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--border-mid); }
.stat-num { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1; letter-spacing: -0.02em; color: var(--brand-red); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat-label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--text-muted); }

/* ── DYNAMIC TILT ── */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ── ACCESSIBILITY ── */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; border-radius: 4px; }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-mid); border-radius: 10px;
  cursor: pointer; color: var(--text-muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover { color: var(--brand-red); border-color: var(--brand-red); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ════════════════════════════════════════════════════════
   DARK THEME — warm "Claude-style" dark (not pure black)
   Most components inherit via tokens; a few hard-coded
   light surfaces are overridden below.
════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg-primary: #262624;
  --bg-alt:     #1e1e1c;
  --bg-surface: #302f2c;
  --text-main:  #f5f3ee;
  --text-body:  #dcdad2;
  --text-muted: #9b988f;
  --brand-red:    #e2545f;
  --brand-red-dk: #c33340;
  --brand-glow:   rgba(226,84,95,0.40);
  --border-soft:  rgba(255,255,255,0.06);
  --border-mid:   rgba(255,255,255,0.12);
  --shadow-card:  0 4px 10px -2px rgba(0,0,0,0.35), 0 14px 26px -8px rgba(0,0,0,0.45);
  --shadow-lift:  0 18px 34px -12px rgba(0,0,0,0.55), 0 34px 56px -20px rgba(0,0,0,0.6);
}
[data-theme="dark"] body { background: var(--bg-primary); }
[data-theme="dark"] header.scrolled {
  background: rgba(30,30,28,0.62);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
[data-theme="dark"] .mobile-panel { background: rgba(38,38,36,0.74); border-left-color: rgba(255,255,255,0.10); }
[data-theme="dark"] .card-visual { background: linear-gradient(140deg, #2e2d2a 0%, #232321 100%); }
[data-theme="dark"] .card-visual .slot { background: rgba(18,18,16,0.6); }
[data-theme="dark"] .hq-beacon .dot { box-shadow: 0 0 0 3px rgba(255,255,255,0.55), 0 1px 5px rgba(0,0,0,0.5); }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 880px) {
  .nav-links { gap: 24px; }
  .projects { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 175px 0 100px; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 34px 26px; }
  .contact-card { padding: 44px 28px; }
  .contact-meta div { border-right: none; border-bottom: 1px solid var(--border-soft); width: 100%; }
  .contact-meta div:last-child { border-bottom: none; }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; gap: 34px; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .hq-map { height: 320px; }
  .caps-grid { grid-template-columns: 1fr; }
  .page-lead { padding-top: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .w, .pipeline li { opacity: 1; transform: none; transition: none; }
  .led i, .hq-beacon .dot, .hq-beacon .dot::before { animation: none; }
  #flow { display: none; }
}
