/* ============= Sunvest Group · site styles ============= */
:root {
  --navy: #0a1b35;
  --navy-2: #0e2342;
  --navy-3: #14305a;
  --gold: #d4a64a;
  --gold-2: #e8c172;
  --gold-soft: #f0d99a;
  --cream: #f6f1e6;
  --cream-2: #ede5d2;
  --ink: #0a1b35;
  --muted: #5b6577;
  --line: rgba(10, 27, 53, 0.12);
  --line-light: rgba(212, 166, 74, 0.25);
  --line-dark: rgba(246, 241, 230, 0.14);
  /* motion */
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-reveal: 700ms;
  --t-scroll: 1200ms;
  --t-hover: 200ms;
  --stagger-step: 80ms;
}

* { box-sizing: border-box; }
/* overflow-x on both html + body is intentional: kills horizontal scroll + iOS Safari momentum-scroll edge case */
html { scroll-padding-top: 80px; scroll-padding-bottom: 72px; scroll-behavior: smooth; overflow-x: hidden; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.display { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ============= NAV ============= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 230, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 400ms var(--ease-expo-out), color 400ms var(--ease-expo-out), border-color 400ms var(--ease-expo-out), backdrop-filter 400ms var(--ease-expo-out);
}
.nav.dark {
  background: rgba(10, 27, 53, 0.86);
  border-bottom-color: var(--line-dark);
  color: var(--cream);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav.dark .brand-text span { color: var(--gold); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background-color 400ms var(--ease-expo-out), color 400ms var(--ease-expo-out), backdrop-filter 400ms var(--ease-expo-out);
  color: var(--ink);
}
.nav.dark .nav-links a { color: var(--cream); }
.nav-links a:hover { background: rgba(10, 27, 53, 0.06); }
.nav.dark .nav-links a:hover { background: rgba(212, 166, 74, 0.14); }
.nav-cta {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid var(--navy);
  border-radius: 999px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-2); }
.nav-cta-envelope { display: none; }
.nav.dark .nav-cta { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.nav.dark .nav-cta:hover { background: var(--gold-2); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============= MOBILE NAV BURGER + DRAWER ============= */
.nav-burger { display: none; background: transparent; border: none; padding: 8px; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-burger-line { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 300ms var(--ease-expo-out), opacity 200ms var(--ease-expo-out); transform-origin: center; }
.nav.dark .nav-burger-line { background: var(--cream); }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 880px) {
  .nav-burger { display: flex; }
}

.nav-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; overflow: hidden; }
.nav-drawer[aria-hidden="false"] { pointer-events: auto; visibility: visible; }
.nav-drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 27, 53, 0.62); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms var(--ease-expo-out); }
.nav-drawer[aria-hidden="false"] .nav-drawer-backdrop { opacity: 1; }
.nav-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--cream); padding: 24px 28px 32px; transform: translateX(100%); transition: transform 400ms var(--ease-expo-out); display: flex; flex-direction: column; gap: 28px; box-shadow: -20px 0 60px -20px rgba(10, 27, 53, 0.35); padding-top: max(24px, env(safe-area-inset-top)); padding-right: max(28px, env(safe-area-inset-right)); padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.nav-drawer[aria-hidden="false"] .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.nav-drawer-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav-drawer-close { background: transparent; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; transition: background var(--t-hover) var(--ease-expo-out), color var(--t-hover) var(--ease-expo-out); }
.nav-drawer-close:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.nav-drawer-links { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer-links a { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; padding: 14px 4px; color: var(--ink); border-bottom: 1px solid var(--line); transition: color var(--t-hover) var(--ease-expo-out), padding-left var(--t-hover) var(--ease-expo-out); min-height: 56px; display: flex; align-items: center; }
.nav-drawer-links a:hover { color: var(--gold); padding-left: 10px; }
.nav-drawer-links a:last-child { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-drawer-backdrop, .nav-drawer-panel { transition: none !important; }
  .nav-burger-line { transition: none !important; }
}

/* ============= HERO ============= */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 166, 74, 0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(20, 48, 90, 0.6), transparent 60%);
}
.hero-lines {
  position: absolute; top: -20%; left: -10%; width: 70%; height: 140%;
  background: linear-gradient(115deg, transparent 35%, rgba(212, 166, 74, 0.22) 36%, rgba(212, 166, 74, 0.22) 36.4%, transparent 37%),
              linear-gradient(115deg, transparent 50%, rgba(212, 166, 74, 0.14) 51%, rgba(212, 166, 74, 0.14) 51.3%, transparent 52%),
              linear-gradient(115deg, transparent 62%, rgba(212, 166, 74, 0.10) 63%, rgba(212, 166, 74, 0.10) 63.2%, transparent 64%);
  opacity: 0.7;
}
.hero-aurora {
  position: absolute; inset: -25%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 48% at 76% 28%, rgba(212, 166, 74, 0.22), transparent 70%),
    radial-gradient(46% 56% at 22% 78%, rgba(40, 92, 152, 0.38), transparent 70%),
    radial-gradient(34% 44% at 62% 88%, rgba(212, 166, 74, 0.12), transparent 70%);
  filter: blur(24px);
  animation: hero-aurora-drift 24s ease-in-out infinite alternate;
}
@keyframes hero-aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.09); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-light); border-radius: 999px; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 28px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.4rem); margin: 0 auto 20px; max-width: 20ch; line-height: 1.08; }
.hero h1 .accent { color: var(--gold); font-style: italic; font-family: 'Instrument Serif', 'Bricolage Grotesque', serif; font-weight: 400; }
.hero p.lede { font-size: 1.12rem; color: rgba(246, 241, 230, 0.78); max-width: 560px; margin: 0 auto 32px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-weight: 600; font-size: 0.95rem; border-radius: 999px; transition: background var(--t-hover) var(--ease-expo-out), color var(--t-hover) var(--ease-expo-out), border-color var(--t-hover) var(--ease-expo-out), transform var(--t-hover) var(--ease-expo-out), box-shadow var(--t-hover) var(--ease-expo-out); border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(246, 241, 230, 0.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* hexagon */
.hex-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hex-stage .hex-mark { width: min(240px, 50%); height: auto; animation: hex-float 8s ease-in-out infinite; image-rendering: -webkit-optimize-contrast; will-change: transform; }
.hex-stage .hex-shadow { position: absolute; width: 60%; height: 18%; bottom: 12%; left: 20%; background: radial-gradient(ellipse, rgba(212, 166, 74, 0.32), transparent 70%); filter: blur(28px); pointer-events: none; z-index: 0; }
.hex-stage .hex-mark { position: relative; z-index: 1; }
@keyframes hex-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hex-ring { position: absolute; border: 1px solid rgba(212, 166, 74, 0.10); border-radius: 50%; }
.hex-ring.r1 { width: 260px; height: 260px; animation: spin 30s linear infinite; }
.hex-ring.r2 { width: 320px; height: 320px; border-style: dashed; animation: spin 50s linear infinite reverse; opacity: 0.7; }
.hex-ring.r3 { width: 380px; height: 380px; opacity: 0.18; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* Hero: huge centered logo */
.hero-inner .hex-stage { min-height: auto; margin: 6px auto 30px; }
.hero-inner .hex-mark { width: clamp(200px, 34vw, 360px); }
.hero-inner .hex-ring.r1 { width: 340px; height: 340px; }
.hero-inner .hex-ring.r2 { width: 420px; height: 420px; }
.hero-inner .hex-ring.r3 { width: 500px; height: 500px; }

/* ============= SECTION SHELLS ============= */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .left { max-width: 640px; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.section-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.section-eyebrow.on-dark { color: var(--gold); }
h2.title { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 16px; }
h2.title .accent { color: var(--gold); font-style: italic; font-family: 'Instrument Serif', serif; font-weight: 400; }
p.dek { color: var(--muted); font-size: 1.08rem; line-height: 1.55; max-width: 560px; margin: 0; }
.on-dark h2.title { color: var(--cream); }
.on-dark p.dek { color: rgba(246, 241, 230, 0.7); }

/* ============= ABOUT ============= */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-body p { font-size: 1.1rem; line-height: 1.65; color: var(--ink); margin: 0 0 18px; }
.about-body p:first-child::first-letter { font-family: 'Instrument Serif', serif; font-size: 4rem; line-height: 0.9; float: left; margin: 6px 12px 0 -2px; color: var(--gold); }
.about-side { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.about-side .row { background: var(--cream); padding: 24px 28px; display: flex; flex-direction: column; gap: 4px; }
.about-side .row .k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.about-side .row .v { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

/* ============= COMPANIES ============= */
.companies { background: var(--cream-2); }
.company-desc { display: none; }
.company-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 980px) { .company-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .company-grid { grid-template-columns: 1fr; } }
.company-card { background: var(--cream); padding: 36px 28px; display: flex; flex-direction: column; gap: 18px; position: relative; transition: background 0.2s; cursor: pointer; }
.company-card { transition: background var(--t-hover) var(--ease-expo-out), transform var(--t-hover) var(--ease-expo-out), box-shadow var(--t-hover) var(--ease-expo-out); }
.company-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(10, 27, 53, 0.18); }
.company-card:hover { background: #fff; }
.company-card.active { background: var(--navy); color: var(--cream); }
.company-card .code { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); }
.company-card h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
.company-card .region { font-size: 0.85rem; color: var(--muted); }
.company-card.active .region { color: rgba(246, 241, 230, 0.7); }
.company-card .focus { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.92rem; font-weight: 500; }
.company-card.active .focus { border-top-color: var(--line-dark); }
.company-card .arrow { position: absolute; top: 24px; right: 24px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; transition: all 0.2s; }
.company-card:hover .arrow { background: var(--gold); border-color: var(--gold); }
.company-card.active .arrow { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ============= SERVICES (3-step) ============= */
.services { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.services::before {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(212, 166, 74, 0.10), transparent 60%);
  pointer-events: none;
}
.cap-tabs { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; gap: 0; margin-bottom: 40px; border-bottom: 1px solid var(--line-dark); position: relative; }
.cap-item { display: contents; }
.cap-tab { background: transparent; border: none; color: rgba(246, 241, 230, 0.55); padding: 18px 0; margin-right: 48px; font-size: 1.02rem; font-weight: 500; position: relative; transition: color 0.2s; font-family: 'Bricolage Grotesque', sans-serif; grid-row: 1; text-align: left; display: inline-flex; align-items: center; }
.cap-tab:hover { color: var(--cream); }
.cap-item.open .cap-tab { color: var(--gold); }
.cap-item.open .cap-tab::after { content: ''; position: absolute; left: 0; right: 48px; bottom: -1px; height: 2px; background: var(--gold); }
.cap-tab .num { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; margin-right: 12px; opacity: 0.7; }
.cap-chevron { display: none; }

.cap-panel { display: none; grid-row: 2; grid-column: 1 / -1; grid-template-columns: 1fr 1.3fr; gap: 64px; position: relative; padding-top: 40px; }
.cap-item.open .cap-panel { display: grid; }
.cap-panel h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 18px; }
.cap-panel .blurb { color: rgba(246, 241, 230, 0.7); font-size: 1.1rem; line-height: 1.5; margin: 0 0 24px; }
.cap-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-dark); }
@media (max-width: 880px) { .cap-panel { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .cap-list { grid-template-columns: 1fr; } }
.cap-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.cap-list li:nth-child(odd) { padding-right: 24px; }
.cap-list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.cap-list .marker { width: 8px; height: 8px; background: var(--gold); margin-top: 9px; flex-shrink: 0; }

/* ============= SOLUTIONS GRID ============= */
.solutions { background: var(--cream); }
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 720px) { .solution-grid { grid-template-columns: 1fr; } }
.solution { background: var(--cream); padding: 40px; transition: background 0.2s; position: relative; min-height: 280px; display: flex; flex-direction: column; }
.solution { transition: background var(--t-hover) var(--ease-expo-out), transform var(--t-hover) var(--ease-expo-out), box-shadow var(--t-hover) var(--ease-expo-out); }
.solution:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(10, 27, 53, 0.22); }
.solution:hover { background: #fff; }
.solution .code { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 24px; }
.solution h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.6rem; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
.solution p { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 0; }
.solution .icon { position: absolute; top: 32px; right: 36px; width: 38px; height: 38px; opacity: 0.5; }

/* ============= PROJECTS ============= */
.projects { background: var(--cream-2); }
.proj-controls { display: flex; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; align-items: center; }
.proj-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-filter-row { position: relative; min-width: 0; flex: 1 1 auto; }
.chip { padding: 8px 16px; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.proj-count { margin-left: auto; font-size: 0.85rem; color: var(--muted); }
.proj-count b { color: var(--ink); font-weight: 600; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }
/* Immersive duotone photo card */
.proj-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  padding: 0; cursor: pointer; isolation: isolate; background: var(--navy); display: block;
  transition: transform var(--t-hover) var(--ease-expo-out), box-shadow var(--t-hover) var(--ease-expo-out);
}
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px rgba(10, 27, 53, 0.5); }
.proj-card .proj-photo { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.proj-card .proj-photo img { transition: transform 0.7s var(--ease-expo-out); }
.proj-card:hover .proj-photo img { transform: scale(1.06); }
.proj-card .proj-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 18px 20px; color: var(--cream); }
.proj-card .proj-overlay-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.proj-card .kwp { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; line-height: 1; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.proj-card .kwp .unit { font-size: 0.72rem; font-weight: 500; color: rgba(246, 241, 230, 0.85); margin-left: 3px; }
.proj-card .nem { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--gold); border: 1px solid var(--gold); padding: 4px 8px; border-radius: 999px; white-space: nowrap; background: rgba(10, 27, 53, 0.4); }
.proj-card .nem.offgrid { color: rgba(246, 241, 230, 0.85); border-color: var(--line-light); }
.proj-card h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.15rem; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
.proj-card .loc { font-size: 0.85rem; color: rgba(246, 241, 230, 0.78); margin-bottom: 12px; }
.proj-card .proj-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid rgba(246, 241, 230, 0.18); }
.proj-card .sector { font-size: 0.72rem; color: rgba(246, 241, 230, 0.7); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Card click affordance — reads as tappable at rest (mobile has no hover) ── */
.company-card, .proj-card { box-shadow: 0 2px 14px -8px rgba(10, 27, 53, 0.16); }
.company-card:active, .proj-card:active { transform: scale(0.987); }
.company-card .arrow { border-color: var(--gold); color: var(--gold); background: rgba(212, 166, 74, 0.10); }
.card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.card-cta svg { width: 12px; height: 12px; flex-shrink: 0; }
.proj-card .proj-foot .card-cta { margin-top: 0; }
.company-card.active .card-cta, .company-card.active .arrow { color: var(--gold); }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 27, 53, 0.62); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 350ms var(--ease-expo-out); }
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--cream); max-width: 640px; width: 100%; padding: 48px; border: 1px solid var(--line); position: relative; transform: translateY(20px); transition: transform 500ms var(--ease-expo-out); }
.modal-bg.open .modal { transform: translateY(0); }
.modal .close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.modal .close:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.modal .head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.modal h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.modal .loc { color: var(--muted); margin: 0 0 32px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.modal-stats > div { background: var(--cream); padding: 18px 20px; }
.modal-stats .k { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.modal-stats .v { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.25rem; font-weight: 600; }
.modal-image { aspect-ratio: 16/9; background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 10px, var(--cream) 10px, var(--cream) 20px); display: flex; align-items: center; justify-content: center; margin-top: 24px; }
.modal-image span { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.modal-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.modal-image.has-photo { background: var(--navy); padding: 0; }
.modal-image.has-photo span { display: none; }

/* Company modal (extends .modal) */
.modal.company-modal { max-width: 760px; padding: 56px 56px 48px; max-height: calc(100dvh - 48px); overflow-y: auto; }
.cm-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 10px; }
.cm-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cm-header h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.1; }
.cm-region { color: var(--muted); font-size: 1rem; margin: 0; }
.cm-section { margin-top: 32px; }
.cm-section + .cm-section { margin-top: 32px; }
.cm-section-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cm-story p { font-size: 1.02rem; line-height: 1.65; color: var(--ink); margin: 0 0 14px; }
.cm-story p:last-child { margin-bottom: 0; }
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cm-stats > div { background: var(--cream); padding: 18px 16px; min-width: 0; }
.cm-stats .k { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cm-stats .v { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; word-break: break-word; }
.cm-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cm-proj { background: var(--cream); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; text-align: left; border: none; font: inherit; color: inherit; appearance: none; transition: background var(--t-hover) var(--ease-expo-out); width: 100%; }
.cm-proj:hover { background: #fff; }
.cm-proj-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-proj-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500; font-size: 0.98rem; letter-spacing: -0.005em; line-height: 1.25; }
.cm-proj-loc { font-size: 0.82rem; color: var(--muted); }
.cm-proj-kwp { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink); white-space: nowrap; }
.cm-proj-kwp .unit { font-size: 0.74rem; font-weight: 500; color: var(--muted); margin-left: 3px; }
.cm-proj-empty { color: var(--muted); font-size: 0.95rem; padding: 16px 18px; border: 1px dashed var(--line); }
.cm-contact { background: var(--navy); color: var(--cream); padding: 24px 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.cm-contact-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-2); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.05rem; flex-shrink: 0; }
.cm-contact-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cm-contact-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.005em; }
.cm-contact-role { font-size: 0.85rem; color: rgba(246, 241, 230, 0.7); }
.cm-contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 0.88rem; }
.cm-contact-links a { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; word-break: break-all; }
.cm-contact-links a:hover { text-decoration: underline; }

/* ============= INVESTORS ============= */
.investors { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.invest-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 980px) { .invest-grid { grid-template-columns: 1fr; gap: 40px; } }
.invest-left p { font-size: 1.18rem; color: rgba(246, 241, 230, 0.78); line-height: 1.55; margin: 0 0 32px; }
.invest-quote { padding: 24px 28px; border-left: 2px solid var(--gold); margin: 32px 0 0; font-family: 'Instrument Serif', serif; font-size: 1.4rem; font-style: italic; color: var(--cream); line-height: 1.35; }
.invest-quote span { display: block; margin-top: 16px; font-family: 'Manrope', sans-serif; font-style: normal; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.adv-list { display: flex; flex-direction: column; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.adv-item { background: var(--navy); padding: 28px 32px; display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; transition: background 0.2s; }
.adv-item { transition: background var(--t-hover) var(--ease-expo-out), transform var(--t-hover) var(--ease-expo-out), box-shadow var(--t-hover) var(--ease-expo-out); }
.adv-item:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35); }
.adv-item:hover { background: var(--navy-2); }
.adv-item .n { font-family: 'Instrument Serif', serif; font-size: 2.6rem; font-weight: 400; color: var(--gold); line-height: 0.9; }
.adv-item h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.2rem; margin: 0 0 6px; font-weight: 600; letter-spacing: -0.01em; }
.adv-item p { margin: 0; color: rgba(246, 241, 230, 0.7); font-size: 0.96rem; line-height: 1.5; }

/* ============= CONTACT ============= */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-card { background: var(--cream); border: 1px solid var(--line); padding: 24px 28px; display: flex; gap: 18px; align-items: flex-start; }
.contact-card .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card .v { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.1rem; font-weight: 500; }
.contact-card .v.small { font-size: 0.95rem; font-weight: 400; font-family: 'Manrope', sans-serif; color: var(--ink); line-height: 1.4; }
/* Tap-to-call link inside the contact card inherits the card's styling */
.contact-card .v a { color: inherit; text-decoration: none; }

.leadership { background: var(--cream); border: 1px solid var(--line); padding: 8px 0; display: flex; flex-direction: column; }
.leadership-head { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 16px 24px 8px; }
.lead-card { display: flex; gap: 16px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line); transition: background 0.15s; color: var(--ink); }
.lead-card:first-of-type { border-top: none; }
.lead-card:hover { background: #fff; }
.lead-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 0.95rem; flex-shrink: 0; letter-spacing: 0.02em; }
.lead-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lead-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; line-height: 1.2; }
.lead-role { font-size: 0.82rem; color: var(--muted); }
.lead-email { font-size: 0.84rem; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; word-break: break-all; }
.lead-card:hover .lead-email { color: var(--gold); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.interest-row { display: flex; gap: 8px; flex-wrap: wrap; }
.interest-row .opt { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; cursor: pointer; background: transparent; transition: all 0.15s; }
.interest-row .opt:hover { border-color: var(--navy); }
.interest-row .opt.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.interest-row a.opt { text-decoration: none; }
.interest-row a.opt:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.contact-mailto-hint { color: var(--muted); font-size: 0.88rem; margin: 18px 0 0; max-width: 48ch; line-height: 1.5; }

/* ============= FOOTER ============= */
.foot { background: var(--navy); color: var(--cream); padding: 64px 0 32px; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h5 { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li { font-size: 0.92rem; color: rgba(246, 241, 230, 0.7); }
.foot-col a { transition: color 0.15s; }
.foot-col a:hover { color: var(--gold); }
.foot-brand p { color: rgba(246, 241, 230, 0.65); font-size: 0.95rem; line-height: 1.55; margin: 16px 0 0; max-width: 320px; }
.foot-bottom { padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: rgba(246, 241, 230, 0.55); font-size: 0.85rem; }

/* ============= LEADERSHIP & CERTIFICATIONS ============= */
.leadership-sec { background: var(--cream); position: relative; overflow: hidden; }
.leadership-sec::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(10, 27, 53, 0.06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.leadership-sec .wrap { position: relative; }
.lead-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 14px;
  margin: 16px 0 24px;
}
.lead-group-label::before, .lead-group-label::after {
  content: ''; width: 36px; height: 1px; background: currentColor;
}
.lead-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 48px;
}
.lead-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .lead-grid { grid-template-columns: repeat(2, 1fr); } .lead-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lead-grid, .lead-grid-2 { grid-template-columns: 1fr; } }
.lead-tile {
  background: var(--cream); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s; min-height: 240px; position: relative;
}
.lead-tile:hover { background: #fff; }
.lead-tile-wide { min-height: 220px; }
.lead-tile-mono {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.16em; color: var(--gold); margin-bottom: 4px;
}
.lead-tile h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 1.3rem; letter-spacing: -0.01em; margin: 0; line-height: 1.15;
}
.lead-tile-role {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.02rem; color: var(--ink); margin-bottom: 6px;
}
.lead-tile p {
  font-size: 0.94rem; line-height: 1.55; color: var(--muted);
  margin: 0; max-width: 38ch;
}

.cert-block { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.cert-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.cert-header h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.6rem;
  font-weight: 600; letter-spacing: -0.01em; margin: 0;
}
.cert-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 720px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-badge {
  background: var(--cream); padding: 28px; display: grid;
  grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
}
.cert-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cert-issuer {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.cert-name {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: 1.05rem; letter-spacing: -0.005em; line-height: 1.25; color: var(--ink);
}
.cert-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.cert-num {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  color: var(--ink); letter-spacing: 0.04em;
}
.cert-validity { font-size: 0.82rem; color: var(--muted); }

/* ============= UTILITIES ============= */
.hidden { display: none !important; }

/* ============= HERO WORLD-MAP DOTS (matches name card) ============= */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: radial-gradient(rgba(212, 166, 74, 0.6) 1px, transparent 1.4px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

/* ============= LINE-LENGTH CAPS ============= */
.about-body p, .invest-left p { max-width: 64ch; }
p.lede { max-width: 60ch; }

/* ============= SCROLL REVEAL ============= */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Reveal system extensions (motion polish pass) ──────────────── */
[data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease-expo-out), transform var(--t-reveal) var(--ease-expo-out); }
[data-stagger].revealed > * { opacity: 1; transform: translateY(0); }

[data-reveal-text] { opacity: 0; transform: translateY(20px); letter-spacing: 0.04em; transition: opacity var(--t-reveal) var(--ease-expo-out), transform var(--t-reveal) var(--ease-expo-out), letter-spacing var(--t-reveal) var(--ease-expo-out); }
[data-reveal-text].revealed { opacity: 1; transform: translateY(0); letter-spacing: normal; }

.section-eyebrow { position: relative; }
.section-eyebrow::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--gold); transition: width 600ms var(--ease-expo-out) 200ms; }
.revealed .section-eyebrow::after, .section-eyebrow.revealed::after { width: 40px; }

@media (prefers-reduced-motion: reduce) {
  [data-stagger] > *, [data-reveal-text] { opacity: 1 !important; transform: none !important; letter-spacing: normal !important; clip-path: none !important; transition: none !important; }
  .section-eyebrow::after { width: 40px !important; transition: none !important; }
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hex-stage .hex-mark { animation: none; }
  .hex-ring.r1, .hex-ring.r2 { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============= FOCUS-VISIBLE ============= */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .nav-cta:focus-visible, .chip:focus-visible, .opt:focus-visible,
.lead-card:focus-visible, .company-card:focus-visible, .cap-tab:focus-visible {
  outline-offset: 4px;
}

/* ============= COMPANY-CARD BUTTON RESET (was div, now button) ============= */
.company-card { font: inherit; color: inherit; text-align: left; appearance: none; border: 0; width: 100%; }

/* ============= MISC ============= */
.fade-in { animation: fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============= MULTI-PAGE: PAGE HERO ============= */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: 88px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: radial-gradient(rgba(212, 166, 74, 0.6) 1px, transparent 1.4px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  z-index: 0;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero .page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.page-hero h1 .accent {
  color: var(--gold);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}
.page-hero p.page-lede {
  font-size: 1.15rem;
  color: rgba(246, 241, 230, 0.78);
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
}
/* The page-hero is the page's headline, so the very next section must not
   repeat its own eyebrow + title (that duplicate is what looked doubled).
   We hide only the duplicated eyebrow + title and keep any unique dek copy. */
.page-hero + section .section-head .section-eyebrow,
.page-hero + section .section-head h2.title { display: none; }
.page-hero + section .section-head { margin-bottom: 32px; }
/* About has no dek, so after hiding eyebrow+title the head is fully empty — remove it. */
.page-hero + section .section-head:not(:has(.dek)) { display: none; }
/* Tighten the gap right after the navy hero (overrides the section's large top padding). */
.page-hero + section { padding-top: 48px; }

/* ============= MULTI-PAGE: CHAPTER BREAK ============= */
.chapter-break {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 80px 32px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.chapter-break .chapter-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  flex-shrink: 0;
}
.chapter-break .chapter-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(212, 166, 74, 0.05));
}
.chapter-break .chapter-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

/* ============= MULTI-PAGE: HOME EXPLORE (editorial chapters) ============= */
.explore { margin: 56px 0 0; border-top: 1px solid var(--line); }
.explore-row {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 40px; padding: 44px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; overflow: hidden;
  transition: color var(--t-hover) var(--ease-expo-out),
              padding var(--t-hover) var(--ease-expo-out),
              opacity var(--t-reveal) var(--ease-expo-out),
              transform var(--t-reveal) var(--ease-expo-out);
}
.explore-row::before {
  content: ''; position: absolute; inset: 0; z-index: 0; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-hover) var(--ease-expo-out);
}
.explore-row > * { position: relative; z-index: 1; }
.ex-num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 0.9;
  color: var(--gold); min-width: 1.4em;
}
.ex-body { display: flex; flex-direction: column; gap: 8px; }
.ex-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.015em; line-height: 1.05;
}
.ex-desc { font-size: 1rem; color: var(--muted); line-height: 1.5; max-width: 54ch;
  transition: color var(--t-hover) var(--ease-expo-out); }
.ex-arrow {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--gold);
  transition: background var(--t-hover) var(--ease-expo-out), border-color var(--t-hover) var(--ease-expo-out), color var(--t-hover) var(--ease-expo-out), transform var(--t-hover) var(--ease-expo-out);
}
/* Hover (pointer devices): navy gold-fill wipe */
@media (hover: hover) {
  .explore-row:hover { color: var(--cream); padding-left: 28px; padding-right: 28px; }
  .explore-row:hover::before { transform: scaleX(1); }
  .explore-row:hover .ex-desc { color: rgba(246, 241, 230, 0.72); }
  .explore-row:hover .ex-arrow { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateX(8px); }
}
/* Keyboard focus mirrors hover */
.explore-row:focus-visible { color: var(--cream); outline: none; }
.explore-row:focus-visible::before { transform: scaleX(1); }
.explore-row:focus-visible .ex-desc { color: rgba(246, 241, 230, 0.72); }
.explore-row:focus-visible .ex-arrow { background: var(--gold); border-color: var(--gold); color: var(--navy); }
/* Touch tap feedback */
.explore-row:active::before { transform: scaleX(1); }
.explore-row:active { color: var(--cream); }
.explore-row:active .ex-desc { color: rgba(246, 241, 230, 0.72); }
.explore-row:active .ex-arrow { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ============= MULTI-PAGE: ACTIVE NAV STATE ============= */
.nav-links a[aria-current="page"] { color: var(--gold); background: rgba(212, 166, 74, 0.08); }
.nav.dark .nav-links a[aria-current="page"] { color: var(--gold); background: rgba(212, 166, 74, 0.14); }
.nav-drawer-links a[aria-current="page"] { color: var(--gold); }

/* ============= LANGUAGE SWITCHER ============= */
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; min-height: 36px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--ink);
  cursor: pointer;
  transition: background var(--t-hover) var(--ease-expo-out), border-color var(--t-hover) var(--ease-expo-out);
}
.lang-switch-btn:hover { background: var(--cream-2); border-color: var(--navy); }
.nav.dark .lang-switch-btn { color: var(--cream); border-color: var(--line-dark); }
.nav.dark .lang-switch-btn:hover { background: rgba(212, 166, 74, 0.14); border-color: var(--gold); }
.lang-switch-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 200ms var(--ease-expo-out), transform 200ms var(--ease-expo-out);
  z-index: 60;
  box-shadow: 0 12px 32px -8px rgba(10, 27, 53, 0.18);
}
.lang-switch-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-switch-dropdown button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px;
  background: transparent; border: none;
  text-align: left; cursor: pointer;
  border-radius: 8px;
  color: var(--ink);
  transition: background var(--t-hover) var(--ease-expo-out);
}
.lang-switch-dropdown button:hover { background: var(--cream-2); }
.lang-switch-dropdown button b { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--gold); min-width: 24px; }
.lang-switch-dropdown button span { font-size: 0.92rem; }

/* Mobile bottom tab-bar is mobile-only; the ≤720px block below styles + shows it. */
.tab-bar { display: none; }

/* ─────────────────────────────────────────────────────────────────── */
/* MOBILE LUXURY REBUILD (≤ 720px)                                     */
/* ─────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Typographic rhythm */
  html { font-size: 17px; }
  body { line-height: 1.65; }

  /* Nav — tighter on mobile to make room for hamburger */
  .nav-inner { gap: 12px; height: 64px; }
  .brand { gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text b { font-size: 0.95rem; }
  .brand-text span { font-size: 0.62rem; letter-spacing: 0.14em; }
  /* Get in Touch — icon-only circular CTA on mobile, matches lang-switch + hamburger chrome */
  .nav-cta { padding: 0; width: 44px; height: 44px; min-height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 0; }
  .nav-cta [data-i18n="nav.cta"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-cta-arrow { display: none; }
  .nav-cta-envelope { display: inline-flex; width: 16px; height: 16px; }

  /* Section padding — luxurious vertical air */
  section { padding: 128px 0; }
  section .section-head { margin-bottom: 56px; }
  /* Tighter gap after the navy hero on small screens */
  .page-hero + section { padding-top: 28px; }

  /* Section eyebrow — gold hairline above + bigger gap below */
  .section-eyebrow { display: block; margin-bottom: 24px; padding-top: 16px; }
  .section-eyebrow::before { content: ''; display: block; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--gold); }

  /* Section head — full-width on mobile (no sticky box; page-hero serves as the page title) */
  .section-head .left { max-width: none; }

  /* Display headings — fit mobile widths with refined scale */
  h1.display { font-size: 2.4rem; line-height: 1.1; letter-spacing: -0.02em; }
  h2.title { font-size: 1.75rem; line-height: 1.15; }
  .dek { font-size: 0.97rem; line-height: 1.58; }

  /* Hero — heading-first column with proportional rhythm to desktop */
  .hero { padding: 64px 0 48px; }
  .hero-inner { display: flex; flex-direction: column; gap: 44px; }
  .hero h1 { margin-bottom: 20px; }
  .hero p.lede { font-size: 1.05rem; max-width: none; margin-bottom: 28px; }
  .hero-cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; }
  .hex-stage { min-height: auto; order: 0; margin: 4px auto 24px; }
  .hero-inner .hex-mark { width: clamp(150px, 52vw, 220px); }
  .hero-inner .hex-ring.r1 { width: 210px; height: 210px; }
  .hero-inner .hex-ring.r2 { width: 260px; height: 260px; }
  .hero-inner .hex-ring.r3 { width: 310px; height: 310px; }

  /* About — proportional drop cap, tighter side-row typography */
  .about-body p { font-size: 1.05rem; line-height: 1.6; margin-bottom: 16px; }
  .about-body p:first-child::first-letter { font-size: 3rem; margin: 4px 10px 0 -1px; }
  .about-side .row { padding: 18px 22px; }
  .about-side .row .v { font-size: 1.15rem; }
  .about-side .row .k { font-size: 0.7rem; }

  /* Capabilities: true accordion ≤720px */
  .cap-tabs { display: block; grid-template-columns: none; grid-template-rows: none; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark); }
  .cap-item { display: block; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .cap-item:last-child { border-bottom: none; }
  .cap-tab { display: flex; align-items: center; gap: 14px; width: 100%; margin-right: 0; padding: 20px 0; font-size: 0.98rem; line-height: 1.25; text-align: left; color: rgba(246, 241, 230, 0.7); position: relative; }
  .cap-tab:hover { color: var(--cream); }
  .cap-item.open > .cap-tab { color: var(--gold); }
  .cap-item.open > .cap-tab::after { display: none; }
  .cap-tab .num { margin-right: 0; }
  .cap-chevron { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); flex-shrink: 0; transition: transform 400ms var(--ease-expo-out), background var(--t-hover) var(--ease-expo-out); }
  .cap-chevron svg { width: 16px; height: 16px; display: block; }
  .cap-item.open .cap-chevron { transform: rotate(180deg); background: rgba(212, 166, 74, 0.14); }

  .cap-panel { display: block; grid-row: auto; grid-column: auto; grid-template-columns: none; padding: 0 0 24px; max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease-expo-out), padding 400ms var(--ease-expo-out); }
  .cap-item.open .cap-panel { display: block; max-height: 1600px; }
  .cap-panel h3 { display: none; }
  .cap-panel .blurb { font-size: 1rem; margin: 0 0 18px; }
  .cap-list { grid-template-columns: 1fr; border-top: none; }
  .cap-list li { padding: 14px 0; padding-right: 0; padding-left: 0; border-left: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .cap-list li:nth-child(odd) { padding-right: 0; }
  .cap-list li:nth-child(even) { padding-left: 0; border-left: none; }
  .cap-list li:last-child { border-bottom: none; }

  /* Cards — more breathing room. Reset company-grid frame so gap doesn't show as dividers. */
  .proj-grid, .company-grid, .solution-grid, .lead-grid, .lead-grid-2, .cert-grid, .adv-list { gap: 36px; }
  .company-grid { background: transparent; border: none; }

  /* Companies: each card self-contained on mobile — show description inline */
  .company-desc { display: block; margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
  .company-card.active .company-desc { color: rgba(246, 241, 230, 0.78); }
  .company-card, .solution, .lead-tile, .cert-badge, .adv-item { padding: 36px 28px; }

  /* Company cards — mobile-distinct chrome + tighter rhythm */
  .company-card { padding: 28px 22px; gap: 14px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 3px rgba(10,27,53,0.06), 0 4px 12px rgba(10,27,53,0.06); }
  .company-card .focus { margin-top: 0; padding-top: 12px; }
  .company-card .arrow { top: 18px; right: 18px; }

  /* Solution cards — mobile-distinct chrome + tighter rhythm + icon repositioned within padding bounds */
  .solution { padding: 28px 22px; min-height: 0; border: 1px solid var(--line); border-radius: 10px; }
  .solution .icon { top: 18px; right: 18px; width: 32px; height: 32px; }
  .solution .code { margin-bottom: 18px; }
  .solution h3 { font-size: 1.4rem; }

  /* Project cards — immersive photo cards on mobile */
  .proj-card { border-radius: 14px; }
  .proj-card .proj-overlay { padding: 16px 16px 18px; }
  .proj-card .proj-foot { padding-top: 12px; }

  /* Leadership tiles — mobile chrome + tighter rhythm */
  .lead-tile { padding: 28px 22px; min-height: 0; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 3px rgba(10,27,53,0.06), 0 4px 12px rgba(10,27,53,0.06); }
  .lead-tile-wide { min-height: 0; }
  .lead-tile-role { font-size: 0.95rem; }
  .lead-tile p { max-width: none; font-size: 0.92rem; }

  /* Certification badges — mobile chrome + safe word-break on long cert numbers */
  .cert-badge { padding: 24px 22px; border: 1px solid var(--line); border-radius: 10px; gap: 16px; grid-template-columns: 48px 1fr; }
  .cert-icon { width: 48px; height: 48px; }
  .cert-num { word-break: break-all; font-size: 0.74rem; }

  /* Advantages on dark — kill the hairline divider effect; give each item discrete chrome */
  .adv-list { background: transparent; border: none; }
  .adv-item { padding: 24px 22px; border: 1px solid var(--line-dark); border-radius: 10px; grid-template-columns: 52px 1fr; gap: 16px; }
  .adv-item .n { font-size: 2.2rem; }
  .adv-item h4 { font-size: 1.1rem; }
  .adv-item p { font-size: 0.92rem; }
  .invest-quote { padding: 20px 22px; font-size: 1.2rem; }
  .invest-left p { font-size: 1.05rem; margin-bottom: 24px; }

  .proj-card h4, .lead-tile h3 { font-size: 1.25rem; }
  .proj-card .kwp { font-size: 1.55rem; }

  /* Projects: filter chips horizontal scroll with edge fade */
  .proj-controls { flex-direction: column; align-items: stretch; gap: 16px; }
  .proj-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 0; }
  .proj-count { font-size: 0.9rem; }

  /* Modal becomes a bottom sheet on mobile (slides up; body scrolls, shell doesn't) */
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal, .modal.company-modal {
    width: 100%; max-width: 100%;
    max-height: calc(100dvh - 40px);
    padding: 0;
    border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
  }
  .modal::before {
    content: ''; flex: none;
    width: 44px; height: 5px; border-radius: 999px;
    background: rgba(10, 27, 53, 0.18);
    margin: 12px auto 2px;
  }
  #comp-modal-body, #proj-modal-body {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 8px 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .modal .close { top: 12px; right: 14px; }
  .modal h3 { font-size: 1.5rem; word-break: break-word; }
  .modal .head-row { gap: 12px; }
  .modal-image { aspect-ratio: 4/3; }
  .modal-image, .modal-image img { max-width: 100%; width: 100%; }
  .modal-stats { grid-template-columns: 1fr 1fr; gap: 1px; }
  .modal-stats > div { min-width: 0; padding: 12px 14px; }
  .modal-stats > div:last-child { grid-column: 1 / -1; }
  .modal-stats .k { font-size: 0.62rem; }
  .modal-stats .v { font-size: 0.98rem; word-break: break-word; }

  /* Buttons — ghost is default; gold reserved for hero primary CTA */
  .btn { padding: 16px 24px; min-height: 48px; font-size: 1rem; }
  .btn-ghost { border-color: var(--gold); color: var(--gold); background: transparent; }

  /* Contact section — single deliberate column dominated by leaders */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info { gap: 12px; }
  /* Leadership grid — 2×2 on phone */
  .leadership { grid-template-columns: 1fr 1fr; gap: 12px; border-radius: 10px; overflow: hidden; }
  .lead-card { padding: 20px 22px; min-height: 44px; }
  .lead-card .lead-email { font-size: 0.82rem; }
  .contact-card { padding: 20px 22px; min-height: 44px; border-radius: 10px; }
  .interest-row .opt { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.9rem; }
  .contact-mailto-hint { font-size: 0.85rem; }

  /* Footer — tap targets + visual separation between stacked columns */
  .foot { padding: 72px 0 32px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-col { padding-top: 28px; border-top: 1px solid var(--line-dark); }
  .foot-col:first-child { padding-top: 0; border-top: none; }
  .foot-col h5 { margin-bottom: 14px; }
  .foot-col ul li { padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
  .foot-col a { display: inline-flex; min-height: 44px; align-items: center; }
  .foot-brand p { max-width: none; }
  .foot-bottom { flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 28px; }
  .foot-bottom > div:last-child { letter-spacing: 0.14em; font-size: 0.7rem; }

  /* Company modal content — sheet sizing handled by the .modal rule above */
  .cm-header { margin-bottom: 24px; padding-bottom: 20px; }
  .cm-header h3 { font-size: 1.5rem; }
  .cm-stats { grid-template-columns: 1fr 1fr; }
  .cm-stats > div { padding: 14px 14px; }
  .cm-stats .v { font-size: 1rem; }
  .cm-projects { grid-template-columns: 1fr; }
  .cm-proj { padding: 14px 16px; min-height: 48px; }
  .cm-contact { grid-template-columns: 1fr; gap: 14px; padding: 20px 22px; }
  .cm-contact-avatar { width: 44px; height: 44px; }
  .cm-contact-links { gap: 10px; }

  /* Language switcher mobile — make it a circle to match other nav controls */
  .lang-switch-btn { padding: 0; width: 44px; height: 44px; min-height: 44px; border-radius: 50%; gap: 0; justify-content: center; }
  .lang-switch-btn svg { display: none; }
  .lang-switch-dropdown { right: -8px; min-width: 200px; padding: 8px; }
  .lang-switch-dropdown button { padding: 12px; min-height: 48px; }

  /* Multi-page mobile overrides */
  .page-hero { padding: 64px 0 48px; }
  .page-hero h1 { font-size: 2.4rem; }
  .page-hero p.page-lede { font-size: 1.05rem; max-width: none; }

  .chapter-break { padding: 56px 20px 24px; gap: 14px; }
  .chapter-break .chapter-num,
  .chapter-break .chapter-label { font-size: 0.66rem; }

  /* Explore editorial chapters — mobile sizing */
  .explore { margin-top: 40px; }
  .explore-row { gap: 16px; padding: 26px 4px; }
  .ex-num { font-size: 1.9rem; min-width: 1.2em; }
  .ex-title { font-size: 1.45rem; }
  .ex-desc { font-size: 0.92rem; }
  .ex-arrow { width: 40px; height: 40px; }

  /* ── Luxury section dividers — gold hairline ── */
  .hero { border-top: none; }
  .services.on-dark { border-top: none; }
  .investors.on-dark { border-top: none; }
  .contact { border-top: none; }

  /* ── Mobile Tab Bar ── */
  .tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    background: rgba(10, 27, 53, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.6);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .tab-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .tab-bar a svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .tab-bar a.active,
  .tab-bar a[aria-current="true"] {
    color: var(--gold);
  }

  .tab-bar a.active svg {
    transform: scale(1.2) translateY(-2px);
  }

  /* tap feedback */
  .tab-bar a:active {
    color: rgba(201, 169, 110, 0.7);
  }

  /* Scroll-padding so sticky target isn't under tab bar */
  html {
    scroll-padding-bottom: 72px;
  }

  .company-card { min-height: 52px; }
  .cm-proj { min-height: 52px; }
  .cm-proj-kwp { font-size: 1.08rem; }
  .cm-stats .v { font-size: 1.08rem; }
  .cm-header h3 { font-size: 1.6rem; }
}

/* ============= LANGUAGE GATE ============= */
#lang-gate {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--cream);
  overflow: hidden;
  transition: opacity .4s ease;
}
#lang-gate::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: radial-gradient(rgba(212, 166, 74, 0.6) 1px, transparent 1.4px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
}
.lang-gate-inner { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 0 24px; text-align: center; }
.lang-gate-logo { display: block; margin: 0 auto 18px; }
.lang-gate-brand {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; font-weight: 600;
  font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 10px;
}
.lang-gate-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.56rem, 2.7vw, 0.74rem);
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.7;
  color: rgba(246, 241, 230, 0.7); margin-bottom: 28px;
}
.lang-gate-options { display: flex; flex-direction: column; gap: 12px; }
.lang-gate-options button {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 20px;
  background: rgba(246, 241, 230, 0.04);
  border: 1px solid var(--line-light); border-radius: 14px;
  color: var(--cream); font-family: 'Manrope', sans-serif; font-size: 1rem;
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.lang-gate-options button b {
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  color: var(--gold); min-width: 28px; text-align: left;
}
.lang-gate-options button:hover,
.lang-gate-options button:focus-visible {
  border-color: var(--gold); background: rgba(212, 166, 74, 0.08); transform: translateY(-1px);
}
.lang-chosen #lang-gate { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.lang-chosen) body { overflow: hidden; }

/* ============= PAGE TRANSITION — gold curtain wipe ============= */
#page-curtain {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--navy);
  transform: translateX(-100%);
  pointer-events: none;
  will-change: transform;
}
/* Gold leading edge with a soft glow */
#page-curtain::after {
  content: ''; position: absolute; top: 0; right: 0; height: 100%; width: 3px;
  background: var(--gold);
  box-shadow: 0 0 28px 5px rgba(212, 166, 74, 0.55);
}
/* Cover: sweep in from the left until the screen is fully covered */
#page-curtain.cover { transition: transform 0.42s cubic-bezier(0.7, 0, 0.3, 1); transform: translateX(0); }
/* Arriving page starts covered (set pre-paint by the head script), then a CSS
   animation sweeps it off to the right — runs without JS so the page can never
   get stuck behind the curtain. */
html.curtain-arriving #page-curtain {
  transform: translateX(0);
  animation: sv-curtain-reveal 0.6s cubic-bezier(0.7, 0, 0.3, 1) 0.04s forwards;
}
@keyframes sv-curtain-reveal { from { transform: translateX(0); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  #page-curtain, html.curtain-arriving #page-curtain { display: none !important; animation: none !important; }
}

/* ============= PREMIUM MICRO-CRAFT ============= */
/* Subtle film-grain texture for depth (single fixed layer, non-interactive) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 2500; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero arrival cascade — composed entrance on load */
@keyframes sv-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { animation: sv-rise 0.8s var(--ease-expo-out) 0.05s both; }
.hero .lede   { animation: sv-rise 0.8s var(--ease-expo-out) 0.20s both; }
.hero-cta     { animation: sv-rise 0.8s var(--ease-expo-out) 0.32s both; }

/* Link underline draw + button press (pointer devices only) */
@media (hover: hover) {
  .nav-links a, .foot-col a { position: relative; }
  .nav-links a::after, .foot-col a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: right;
    transition: transform var(--t-hover) var(--ease-expo-out);
  }
  .nav-links a:hover::after, .foot-col a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.btn:active { transform: translateY(1px) scale(0.99); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.explore-row:focus-visible, .company-card:focus-visible, .proj-card:focus-visible { outline-offset: -2px; }

/* Reduced motion — disable non-essential animation site-wide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============= DUOTONE PHOTO UTILITY ============= */
.duotone { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); }
.duotone img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.92); }
.duotone::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,27,53,0.28), rgba(10,27,53,0.86)); mix-blend-mode: multiply; }
.duotone::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 90% at 50% 0%, rgba(212,166,74,0.18), transparent 62%); mix-blend-mode: screen; }

/* ============= IMPACT BAND (Home) ============= */
.impact { background: var(--navy); color: var(--cream); padding: 80px 0; position: relative; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.impact-stat { position: relative; padding-left: 28px; border-left: 1px solid var(--line-dark); }
.impact-stat:first-child { padding-left: 0; border-left: none; }
.impact-stat .num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -0.025em; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.impact-stat .label { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 241, 230, 0.6); }
@media (max-width: 720px) {
  .impact { padding: 56px 0; }
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .impact-stat { padding-left: 0; border-left: none; }
}

/* ============= TRUST WALL (Home) ============= */
.trust { padding: 96px 0; background: var(--cream); overflow: hidden; }
.trust .wrap { margin-bottom: 44px; }
.trust .section-eyebrow { color: var(--muted); }
.trust-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; max-width: 22ch; margin: 0; }
.trust-marquee { position: relative; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.trust-track { display: inline-flex; align-items: center; white-space: nowrap; animation: trust-scroll 52s linear infinite; }
.trust-track span { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.1rem, 2vw, 1.65rem); font-weight: 500; color: var(--ink); padding: 0 30px; position: relative; opacity: 0.5; transition: opacity var(--t-hover) var(--ease-expo-out), color var(--t-hover) var(--ease-expo-out); }
.trust-track span::after { content: '·'; position: absolute; right: -3px; color: var(--gold); }
.trust-track span:hover { opacity: 1; color: var(--gold); }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 720px) { .trust { padding: 64px 0; } .trust .wrap { margin-bottom: 32px; } }

/* ============= CLOSING CTA ============= */
.closing-cta { position: relative; background: var(--navy); color: var(--cream); padding: 120px 0; overflow: hidden; text-align: center; border-top: 1px solid var(--line-dark); }
.closing-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.16; background-image: radial-gradient(rgba(212,166,74,0.6) 1px, transparent 1.4px); background-size: 16px 16px; mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%); }
.closing-cta .wrap { position: relative; z-index: 1; }
.closing-line { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 36px; }
.closing-line .accent { color: var(--gold); font-style: italic; font-family: 'Instrument Serif', 'Bricolage Grotesque', serif; font-weight: 400; }
.closing-btn { font-size: 1.05rem; padding: 16px 32px; }
@media (max-width: 720px) { .closing-cta { padding: 80px 0; } }

/* ============= COVERAGE (Projects) ============= */
.coverage { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.coverage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.14; background-image: radial-gradient(rgba(212,166,74,0.6) 1px, transparent 1.4px); background-size: 18px 18px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%); }
.coverage .wrap { position: relative; z-index: 1; }
.coverage .section-head .dek { color: rgba(246, 241, 230, 0.72); }
.coverage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.coverage-node { background: var(--navy); padding: 32px 28px; }
.coverage-node .cv-code { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 18px; }
.coverage-node h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.coverage-node p { font-size: 0.9rem; color: rgba(246, 241, 230, 0.68); line-height: 1.5; margin: 0; }
@media (max-width: 720px) { .coverage-grid { grid-template-columns: 1fr 1fr; background: transparent; border: none; gap: 12px; } .coverage-node { border: 1px solid var(--line-dark); border-radius: 10px; padding: 24px 20px; } }

/* ============= DESKTOP POINTER FLOURISH ============= */
.cursor-ring { position: fixed; top: 0; left: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(212, 166, 74, 0.6); border-radius: 50%; pointer-events: none; z-index: 5000; opacity: 0; transition: background .2s var(--ease-expo-out), border-color .2s var(--ease-expo-out), opacity .3s; will-change: transform; }
.cursor-ring--lg { background: rgba(212, 166, 74, 0.14); border-color: var(--gold); }
.btn-gold { transition: transform .3s var(--ease-expo-out); will-change: transform; }
