/* =========================================================
   MARCIO STEFFEN — Portal v2
   Cinematic, dark, full-bleed. Earth-from-space backdrop.
   ========================================================= */

:root{
  --bg:        #04060c;
  --bg-2:      #060a14;
  --ink:       #f3f6fb;
  --ink-2:     #aab4c5;
  --ink-3:     #6b7587;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.06);
  --accent:    #3a5a8c;        /* navy blue */
  --accent-2:  #7d92b8;
  --warm:      #ffd8a8;
  --glow:      0 0 60px rgba(58,90,140,.30);

  --display:   "Inter Tight", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Atmosphere theme tokens — overridden by [data-atmosphere] */
  --atm-bg-radial:   radial-gradient(120% 80% at 50% 0%, #0a1428 0%, #04060c 55%, #02030a 100%);
  --atm-glow-1:      rgba(80,160,255,.45);
  --atm-glow-2:      rgba(180,140,255,.20);
  --atm-glow-3:      rgba(70,255,180,.10);
  --atm-earth-core:  #1c4d8a;
  --atm-earth-mid:   #0d2a55;
  --atm-earth-deep:  #06173a;
  --atm-earth-edge:  #030c20;
  --atm-rim:         rgba(120,180,255,.45);
  --atm-rim-soft:    rgba(120,180,255,.25);
  --atm-name-1a:     #f3f6fb;
  --atm-name-1b:     #c4cfe2;
  --atm-name-1c:     #8294b5;
  --atm-name-2a:     #e2e9f4;
  --atm-name-2b:     #7d92b8;
  --atm-name-2c:     #2d3f63;
  --atm-h2-a:        #d8e0ee;
  --atm-h2-b:        #6f87b3;
  --atm-h2-c:        #2b3c5e;

  --nav-h:     94px;
  --max:       1440px;
  --pad-x:     clamp(20px, 4vw, 64px);
}

*{ box-sizing:border-box; }
html, body { margin:0; padding:0; }
html { scroll-behavior:smooth; }
body{
  font-family: var(--text);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01","cv11";
}

img{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
button{ font: inherit; cursor: pointer; }

/* Selection */
::selection{ background: var(--accent); color: #000; }

/* Page background — deep space */
body::before{
  content:"";
  position:fixed; inset:0;
  background: var(--atm-bg-radial);
  z-index:-2;
  transition: background 1s ease;
}

/* ============ NAV ============ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display:flex; align-items:center; gap:32px;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav__links{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display:flex; gap: 2px;
  padding: 2px;
  margin: 0;
}
.nav__cta{ margin-left: 10px; }
.nav--solid{
  background: rgba(4,6,12,.75);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}
.nav__logo{ display:flex; align-items:center; }
.nav__logo img{ height:70px; width:auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.6)); }
.nav__links{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display:flex; gap: 2px;
  padding: 2px;
}
.nav__pill{
  position:absolute;
  top: 2px; bottom: 2px; left: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e3ecf8);
  box-shadow: 0 8px 24px rgba(120,170,255,.18);
  opacity: 0;
  transform: translateX(0);
  transition: transform .45s cubic-bezier(.4,.15,.2,1),
              width .45s cubic-bezier(.4,.15,.2,1),
              opacity .25s ease;
  pointer-events:none;
  z-index: 0;
}
.nav__pill.is-ready{ opacity: 1; }
.nav__links a{
  position: relative; z-index: 1;
  font-size:12.5px; letter-spacing:.08em; text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  padding: 13px 16px;
  border-radius: 999px;
  transition: color .25s ease;
  white-space: nowrap;
}
.nav__links a:hover{ color: var(--ink); }
.nav__links a.is-target{ color: #04060c; }
@media (max-width: 1180px){
  .nav__links a{ padding: 12px 12px; font-size: 12px; letter-spacing: .06em; }
}

.nav__cta{
  display:inline-flex; align-items:center; gap:10px;
  height:38px; padding: 0 16px;
  border:1px solid var(--line); border-radius:999px;
  font-size:13px; letter-spacing:.02em; color: var(--ink);
  background: rgba(255,255,255,.03);
  transition: background .25s, border-color .25s, transform .25s;
}
.nav__cta .arr{ font-style:normal; transition: transform .25s; }
.nav__cta:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.nav__cta:hover .arr{ transform: translateX(3px); }

.nav__burger{
  display:none;
  width:40px; height:40px; border:1px solid var(--line); border-radius:10px;
  background: transparent; position: relative;
}
.nav__burger span{
  position:absolute; left:10px; right:10px; height:1px; background: var(--ink);
  transition: transform .3s, top .3s, opacity .3s;
}
.nav__burger span:nth-child(1){ top:14px; }
.nav__burger span:nth-child(2){ top:24px; }
.nav__burger .x1{ top:19px; transform: rotate(45deg); }
.nav__burger .x2{ top:19px; transform: rotate(-45deg); }

.drawer{
  position:fixed; inset:0; z-index:45;
  background: rgba(2,4,10,.85);
  opacity:0; pointer-events:none; transition: opacity .3s;
}
.drawer--open{ opacity:1; pointer-events:auto; }
.drawer__inner{
  position:absolute; top: var(--nav-h); right: 16px; left: 16px;
  background: rgba(8,12,22,.95); border:1px solid var(--line);
  border-radius: 16px; padding: 16px; display:flex; flex-direction:column; gap:4px;
}
.drawer__inner a{ padding: 14px 12px; border-radius: 10px; font-size:18px; }
.drawer__inner a:hover{ background: rgba(255,255,255,.05); }
.drawer__cta{ margin-top:6px; color: var(--accent) !important; border-top:1px solid var(--line); border-radius:0 !important; padding-top:18px !important; }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 60px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  text-align: center;
}
/* subtle inner vignette */
.hero::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:1;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,.45) 100%);
}
.hero__inner{
  position:relative; z-index:2;
  max-width: 1180px; width:100%;
  transition: opacity .3s ease-out;
}

/* Reveal animation — calm, staggered */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) forwards;
}
@keyframes heroIn{
  to { opacity: 1; transform: none; }
}

.hero__eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--mono); font-size:10.5px; letter-spacing:.28em; text-transform:uppercase;
  color: var(--ink-2);
  padding: 9px 16px; border:1px solid var(--line); border-radius:999px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  margin-bottom: 44px;
  backdrop-filter: blur(8px);
}
.hero__eyebrow .dot{
  width:6px; height:6px; border-radius:50%; background: #46e08a;
  box-shadow: 0 0 14px #46e08a, 0 0 2px #46e08a;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:.6; transform: scale(.9); }
  50%   { opacity:1;  transform: scale(1.1); }
}

.hero__title{
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.055em;
  margin: 0;
  line-height: 0.88;
}
.hero__title .line{ display:block; }
.hero__title .line-1{
  font-family: var(--text); font-weight:400;
  font-size: clamp(11px, 1vw, 13px);
  color: var(--ink-3);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .45em;
}

/* Per-character reveal inside the name lines */
.hero__title .line-2,
.hero__title .line-3{
  font-size: clamp(48px, 9.5vw, 160px);
  display: flex; justify-content: center; gap: 0;
}
.hero__title .ch{
  display:inline-block;
  opacity: 0; transform: translateY(40px);
  animation: chIn 1.4s cubic-bezier(.2,.7,.15,1) forwards;
}
/* stagger each letter */
.hero__title .line-2 .ch:nth-child(1){ animation-delay: .30s; }
.hero__title .line-2 .ch:nth-child(2){ animation-delay: .36s; }
.hero__title .line-2 .ch:nth-child(3){ animation-delay: .42s; }
.hero__title .line-2 .ch:nth-child(4){ animation-delay: .48s; }
.hero__title .line-2 .ch:nth-child(5){ animation-delay: .54s; }
.hero__title .line-2 .ch:nth-child(6){ animation-delay: .60s; }
.hero__title .line-3 .ch:nth-child(1){ animation-delay: .68s; }
.hero__title .line-3 .ch:nth-child(2){ animation-delay: .74s; }
.hero__title .line-3 .ch:nth-child(3){ animation-delay: .80s; }
.hero__title .line-3 .ch:nth-child(4){ animation-delay: .86s; }
.hero__title .line-3 .ch:nth-child(5){ animation-delay: .92s; }
.hero__title .line-3 .ch:nth-child(6){ animation-delay: .98s; }
.hero__title .line-3 .ch:nth-child(7){ animation-delay: 1.04s; }
@keyframes chIn{
  to { opacity: 1; transform: none; }
}

.hero__title .line-2{
  background: linear-gradient(180deg, #ffffff 0%, #e6edf8 55%, #b8c8e2 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 40px rgba(150,180,220,.14));
}
.hero__title .line-3{
  background: linear-gradient(180deg, #ffffff 0%, #dce6f5 55%, #a0b6d8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 60px rgba(90,120,170,.18));
}
/* keep override on individual chars in line-2 so they inherit the gradient */
.hero__title .line-2 .ch,
.hero__title .line-3 .ch{
  background: inherit; -webkit-background-clip: inherit; background-clip: inherit;
  color: inherit;
}

/* Refined horizontal rule under the name */
.hero__rule{
  display:flex; align-items:center; justify-content:center; gap: 18px;
  margin: 32px auto 0;
  max-width: 520px;
}
.hero__rule span{
  flex:1; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}
.hero__rule em{
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.hero__sub{
  margin: 26px auto 0;
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 300;
  letter-spacing: .005em;
  text-wrap: balance;
}
.hero__sub em{ color: var(--ink); font-style: normal; font-weight: 400; }

.hero__cta{
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
  margin-top: 40px;
}

/* ============ HUD — Aerospace corner metadata ============ */
.hud{
  position:absolute; z-index:3;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
  display:flex; flex-direction:column; gap: 6px;
  pointer-events:none;
  opacity: 0;
  animation: hudIn 1.2s ease 1.4s forwards;
}
@keyframes hudIn{ to { opacity: 1; } }
.hud--tl{ top: calc(var(--nav-h) + 24px); left: var(--pad-x); }
.hud--tr{ top: calc(var(--nav-h) + 24px); right: var(--pad-x); text-align:right; align-items:flex-end; }
.hud--bl{ bottom: 28px; left: var(--pad-x); flex-direction:row; align-items:center; gap: 10px; }
.hud--br{ bottom: 28px; right: var(--pad-x); text-align:right; align-items:flex-end; }
.hud__label{
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
  font-size: 9px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}
.hud--tr .hud__label{ border-top-color: var(--line); padding-left: 16px; padding-right: 0; }
.hud__pulse{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hud__time{ font-variant-numeric: tabular-nums; color: rgba(255,255,255,.55); }
@media (max-width: 720px){
  .hud{ font-size: 9px; gap: 4px; }
  .hud--tl, .hud--tr{ top: calc(var(--nav-h) + 12px); }
  .hud--tl span:nth-child(2), .hud--tr span:nth-child(2){ display:none; }
}
@media (max-width: 480px){ .hud--bl span:last-child, .hud--br{ display:none; } }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  height:48px; padding: 0 22px;
  border-radius:999px;
  font-size:14px; letter-spacing:.02em;
  transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.btn i{ font-style:normal; transition: transform .25s; }
.btn:hover i{ transform: translateX(3px); }
.btn--primary{
  background: linear-gradient(180deg, #ffffff, #e3ecf8);
  color: #04060c;
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 40px rgba(120,170,255,.25); }
.btn--ghost{
  background: rgba(255,255,255,.04);
  color: var(--ink);
  border:1px solid var(--line);
}
.btn--ghost:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.25); }
.btn--lg{ height:56px; padding:0 28px; font-size:15px; }

.hero__scroll{
  position:absolute; bottom: 24px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  font-family: var(--mono); font-size:10px; letter-spacing:.3em; color: var(--ink-3);
}
.hero__scroll i{
  width:1px; height:36px; background: linear-gradient(180deg, var(--ink-3), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse{
  0%,100%{ transform: scaleY(.6); opacity:.4; }
  50%   { transform: scaleY(1);  opacity:1; }
}

/* ============ EARTH BACKDROP ============ */
.earth-wrap{
  position:absolute; inset:0; z-index:0; overflow:hidden;
  pointer-events:none;
}
.stars{
  position:absolute; inset:0; overflow:hidden;
}
.star{
  position:absolute; left:50%; top:50%;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--bg, #fff);
  box-shadow: 0 0 4px var(--bg, #fff);
  opacity: 0;
  animation-name: hyperdrive;
  animation-timing-function: cubic-bezier(.55, 0, .9, 1);
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
@keyframes hyperdrive{
  0%{
    transform:
      translate(-50%, -50%)
      translate(calc(cos(var(--angle)) * var(--start-r)),
                calc(sin(var(--angle)) * var(--start-r)))
      scale(.25);
    opacity: 0;
  }
  10%{ opacity: 1; }
  85%{ opacity: 1; }
  100%{
    transform:
      translate(-50%, -50%)
      translate(calc(cos(var(--angle)) * 90vw),
                calc(sin(var(--angle)) * 90vh))
      scale(1.4);
    opacity: 0;
  }
}
.stars--d2 .star{ filter: blur(.2px); }
.stars--d3 .star{ filter: blur(.4px); opacity: .85; }
@media (prefers-reduced-motion: reduce){
  .star{ animation: none !important; opacity: .6 !important; }
}

.aurora{
  position:absolute; inset:auto -10% -30% -10%; height: 60%;
  background:
    radial-gradient(60% 80% at 50% 100%, var(--atm-glow-1) 0%, transparent 60%),
    radial-gradient(40% 60% at 35% 100%, var(--atm-glow-2) 0%, transparent 70%),
    radial-gradient(40% 60% at 70% 100%, var(--atm-glow-3) 0%, transparent 70%);
  filter: blur(20px);
  transition: opacity .4s, background 1s ease;
}

.earth{
  position:absolute; left:50%; bottom: -55%;
  width: min(220vw, 2400px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, 78%);
  transition: transform .15s linear;
}
.earth-glow{
  position:absolute; inset:-6%;
  border-radius:50%;
  background:
    radial-gradient(closest-side, var(--atm-rim) 0%, var(--atm-rim-soft) 32%, transparent 56%);
  filter: blur(18px);
  transition: background 1s ease;
}
.earth-disc{
  position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(120% 120% at 45% 30%,
      var(--atm-earth-core) 0%,
      var(--atm-earth-mid) 30%,
      var(--atm-earth-deep) 55%,
      var(--atm-earth-edge) 80%,
      #01060e 100%);
  box-shadow:
    inset 0 0 200px rgba(0,0,0,.6),
    inset 60px -30px 200px rgba(0,0,0,.8);
  overflow:hidden;
  transition: background 1s ease;
}
.earth-surface{
  position:absolute; inset:0; border-radius:50%;
  background-image:
    radial-gradient(40% 28% at 30% 35%, rgba(70,170,120,.55), transparent 60%),
    radial-gradient(22% 16% at 60% 28%, rgba(80,160,110,.40), transparent 60%),
    radial-gradient(30% 18% at 55% 55%, rgba(110,180,130,.35), transparent 60%),
    radial-gradient(20% 14% at 28% 65%, rgba(95,170,120,.40), transparent 60%),
    radial-gradient(14% 10% at 70% 70%, rgba(120,180,130,.30), transparent 60%);
  mix-blend-mode: screen;
  opacity:.85;
}
.earth-clouds{
  position:absolute; inset:0; border-radius:50%;
  background-image:
    radial-gradient(60% 8% at 40% 30%, rgba(255,255,255,.40), transparent 80%),
    radial-gradient(50% 6% at 60% 48%, rgba(255,255,255,.35), transparent 80%),
    radial-gradient(40% 6% at 50% 65%, rgba(255,255,255,.30), transparent 80%),
    radial-gradient(45% 5% at 35% 78%, rgba(255,255,255,.25), transparent 80%);
  mix-blend-mode: screen;
  filter: blur(2px);
  opacity:.75;
}
.earth-terminator{
  position:absolute; inset:0; border-radius:50%;
  background:
    radial-gradient(120% 120% at 25% 25%, rgba(255,255,255,.10) 0%, rgba(0,0,0,0) 28%),
    linear-gradient(105deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.85) 100%);
}
.earth-rim{
  position:absolute; inset:0; border-radius:50%;
  box-shadow:
    inset 0 0 40px var(--atm-rim),
    inset 0 0 80px var(--atm-rim-soft);
  transition: box-shadow 1s ease;
}

/* ============ SECTIONS — shared ============ */
section{ position:relative; }
.kicker{
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.kicker.center{ text-align:center; }
h2{
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(36px, 5.6vw, 84px);
  margin: 0 0 28px;
  text-wrap: balance;
}
h2 em{
  font-style: normal;
  background: linear-gradient(180deg, var(--atm-h2-a) 0%, var(--atm-h2-b) 55%, var(--atm-h2-c) 100%);
  -webkit-background-clip: text; background-clip:text; color: transparent;
}

/* ============ VISION ============ */
.vision{
  padding: clamp(120px, 16vw, 200px) var(--pad-x);
  border-top: 1px solid var(--line-2);
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(78,162,255,.10) 0%, rgba(78,162,255,0) 60%),
    var(--bg);
}
.vision__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(80% 60% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000 0%, transparent 80%);
  pointer-events:none;
}
.vision__copy{
  max-width: 1100px; margin: 0 auto; position:relative;
  opacity:0; transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.vision__copy.is-in{ opacity:1; transform: none; }
.vision__copy p{
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 760px;
  margin: 24px 0 0;
}
.vision__copy h2 em{ display:inline; }

/* ============ EXPERTISE / CAPABILITIES ============ */
.cap{
  padding: clamp(100px, 12vw, 160px) var(--pad-x);
  border-top: 1px solid var(--line-2);
}
.cap__head{
  max-width: var(--max); margin: 0 auto 60px;
}
.cap__head h2{ max-width: 900px; }
.cap__grid{
  max-width: var(--max); margin: 0 auto;
  display:grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.cap-card{
  position:relative;
  padding: 32px 28px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border:1px solid var(--line);
  border-radius: 22px;
  min-height: 300px;
  display:flex; flex-direction:column;
  overflow:hidden;
  opacity:0; transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease, border-color .3s, background .3s;
}
.cap-card.is-in{ opacity:1; transform:none; }
.cap-card:hover{ border-color: rgba(255,255,255,.22); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.cap-card__num{
  font-family: var(--mono); font-size: 11px; letter-spacing:.2em;
  color: var(--ink-3); margin-bottom: 22px;
}
.cap-card h3{
  font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing:-.01em;
  margin: 0 0 12px;
}
.cap-card__line{
  font-size: 18px; line-height:1.35; margin: 0 0 14px; color: var(--ink);
  max-width: 24ch;
}
.cap-card__body{
  font-size: 14px; line-height:1.6; color: var(--ink-2); margin: 0;
}
.cap-card__bar{
  position:absolute; left:28px; right:28px; bottom: 22px; height:1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin:left; transition: transform .5s ease;
}
.cap-card:hover .cap-card__bar{ transform: scaleX(1); }

/* ============ IMPACT ============ */
.impact{
  padding: clamp(100px, 12vw, 160px) var(--pad-x);
  border-top: 1px solid var(--line-2);
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(78,162,255,.06) 0%, rgba(78,162,255,0) 60%);
}
.impact__head{ max-width: var(--max); margin: 0 auto 50px; }
.impact__head h2{ max-width: 900px; }
.impact__grid{
  max-width: var(--max); margin: 0 auto 80px;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.metric{
  padding: 36px 24px;
  display:flex; flex-direction:column; gap:10px;
  border-right:1px solid var(--line);
  opacity:0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.metric:last-child{ border-right:none; }
.metric.is-in{ opacity:1; transform:none; }
.metric__k{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 64px);
  letter-spacing:-.03em;
  background: linear-gradient(180deg, #eef2f9, #7d92b8);
  -webkit-background-clip:text; background-clip:text; color: transparent;
}
.metric__v{ font-size: 13px; color: var(--ink-2); letter-spacing:.02em; }

/* Logo marquee — full-bleed, breaks out of the section padding */
.impact__logos{
  max-width: none;
  margin-left: calc(var(--pad-x) * -1);
  margin-right: calc(var(--pad-x) * -1);
}
/* ============ LOGO SPHERE ============ */
.sphere-sect{
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.sphere-sect.is-in{ opacity: 1; transform: none; }
.sphere-sect__head{
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  text-align: left;
}
.sphere-sect__head h2{ margin-top: 12px; }
.sphere{
  position: relative;
  width: min(1080px, 96vw);
  height: min(1080px, 96vw);
  margin: 2% auto -6%;
  cursor: grab;
  touch-action: pan-y;
}
.sphere:active{ cursor: grabbing; }
.sphere__item{
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(96px, 13vw, 196px);
  height: clamp(50px, 7vw, 100px);
  display: flex; align-items: center; justify-content: center;
  will-change: transform, opacity;
  pointer-events: none;
}
.sphere__item img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.impact__logo:hover{ color: var(--ink); }
@keyframes marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ============ INDUSTRIES ============ */
.ind{
  padding: clamp(150px, 16vw, 240px) var(--pad-x) clamp(100px, 12vw, 160px);
  border-top: 1px solid var(--line-2);
}
.ind__head{
  max-width: var(--max); margin: 0 auto 60px;
}
.ind__head h2{
  margin: 12px 0 18px;
}
.ind__head p{
  color: var(--ink-2);
  max-width: 720px;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

/* 2-column editorial grid */
.ind__grid{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.ind-card{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 4px 36px 0;
  border-bottom: 1px solid var(--line-2);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease, background .35s ease;
}
.ind-card.is-in{ opacity: 1; transform: none; }
.ind-card:nth-child(even){ padding-left: 36px; }
.ind-card:nth-child(odd){ padding-right: 36px; }

/* Vertical divider between columns */
.ind-card:nth-child(odd)::after{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 1px;
  background: var(--line-2);
}
.ind-card:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
}

.ind-card__index{
  flex: 0 0 auto;
  padding-top: 4px;
}
.ind-card__n{
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 3vw, 54px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  opacity: .35;
}

.ind-card__body{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ind-card__name{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.ind-card__clients{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2, #b6c4dc);
  line-height: 1.5;
  margin-top: -2px;
}
.ind-card__note{
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 4px 0 0;
  max-width: 56ch;
}
.ind-card__metric{
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px 12px 18px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  align-self: flex-start;
  max-width: 100%;
}
.ind-card__metric-k{
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.005em;
  color: var(--ink);
  white-space: nowrap;
}
.ind-card__metric-v{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.ind__foot{
  max-width: var(--max);
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ind__foot-copy{
  font-family: var(--text, var(--display));
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  letter-spacing: .005em;
}

@media (max-width: 860px){
  .ind__grid{ grid-template-columns: 1fr; }
  .ind-card{ padding: 30px 0 !important; gap: 20px; }
  .ind-card:nth-child(odd)::after{ display: none; }
  .ind-card__metric-v{ white-space: normal; }
  .ind__foot{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px){
  .ind-card{ gap: 16px; }
  .ind-card__n{ font-size: 38px; }
  .ind-card__metric{
    flex-wrap: wrap;
    gap: 4px 14px;
  }
}

/* ============ AWARDS & MENTORSHIP ============ */
.awards{
  max-width: var(--max);
  margin: 88px auto 0;
  padding-top: 56px;
  border-top: 1px solid var(--line-2);
}
.awards__head{ margin-bottom: 36px; }
.awards__head h2{ margin: 12px 0 0; }
.awards__list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.award{
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 4px 28px 0;
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.award:nth-child(even){ padding-left: 36px; }
.award:nth-child(odd){ padding-right: 36px; }
.award:nth-child(odd)::after{
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: var(--line-2);
}
.award__year{
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent-2, #b6c4dc);
  padding-top: 4px;
  min-width: 56px;
}
.award__body{ flex: 1 1 auto; min-width: 0; }
.award__title{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink);
}
.award__note{
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 50ch;
}
@media (max-width: 860px){
  .awards__list{ grid-template-columns: 1fr; }
  .award{ padding: 24px 0 !important; }
  .award:nth-child(odd)::after{ display: none; }
}

/* ============ ABOUT ============ */
.about{
  padding: clamp(100px, 12vw, 160px) var(--pad-x);
  border-top: 1px solid var(--line-2);
  display:grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr 1fr;
  align-items:center;
  max-width: var(--max);
  margin: 0 auto;
}
.about__media{
  position:relative;
  opacity:0; transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.about__media.is-in, .about__copy.is-in{ opacity:1; transform:none; }
.about__portrait{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow:hidden;
  border:1px solid var(--line);
  background: #0a0f1c;
}
.about__portrait img{
  width:100%; height:100%; object-fit: cover; object-position: center top;
  display:block;
  filter: contrast(1.03) saturate(.92);
}
.about__portrait-grade{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(120,160,210,.12), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(4,6,12,.55) 100%);
}
.about__plate{
  position:absolute; left:20px; bottom:-22px;
  display:flex; gap:14px; align-items:center;
  padding: 12px 16px;
  background: rgba(4,6,12,.85);
  border:1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px);
  font-family: var(--mono); font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color: var(--ink-2);
}
.about__copy{
  opacity:0; transform: translateY(28px);
  transition: opacity .9s .12s ease, transform .9s .12s ease;
}
.about__copy h2{ font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 22px; }
.about__copy p{ font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; max-width: 56ch; }
.about__copy p em{ color: var(--ink); font-style:normal; }
.about__cred{
  list-style:none; padding:0; margin: 0 0 32px;
  border-top:1px solid var(--line);
}
.about__cred li{
  padding: 14px 0; border-bottom:1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.about__cred b{ color: var(--ink); font-weight:600; }
.about__actions{
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
}
.about__actions .btn--ghost i{ font-style:normal; transition: transform .25s; }
.about__actions .btn--ghost:hover i{ transform: translateY(2px); }

/* ============ CONTACT ============ */
.contact{
  position:relative;
  padding: clamp(100px, 14vw, 180px) var(--pad-x) 120px;
  border-top: 1px solid var(--line-2);
  overflow:hidden;
}
.contact .earth-wrap .earth{
  transform: translate(-50%, 92%) scale(.85);
  filter: blur(.5px);
  opacity:.85;
}
.contact__inner{
  max-width: 820px; margin: 0 auto; position:relative; z-index:2;
  text-align:center;
}
.contact__inner h2{ font-size: clamp(40px, 5vw, 72px); }
.contact__lede{
  font-size: 17px; line-height: 1.5; color: var(--ink-2);
  max-width: 560px; margin: 0 auto 48px;
}
.contact__form{
  text-align:left;
  display:flex; flex-direction:column; gap: 14px;
}
.contact__form .row{
  display:grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.contact__form label{
  display:flex; flex-direction:column; gap:8px;
}
.contact__form label span{
  font-family: var(--mono); font-size: 10px; letter-spacing:.2em; text-transform:uppercase;
  color: var(--ink-3);
}
.contact__form input,
.contact__form select,
.contact__form textarea{
  appearance:none; -webkit-appearance:none;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color: var(--ink);
  font: 15px var(--text);
  padding: 14px 16px; border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus{
  outline:none;
  border-color: var(--accent);
  background: rgba(255,255,255,.06);
}
.contact__form textarea{ resize:vertical; min-height: 120px; }
.contact__form .full{ width:100%; }
.contact__form button{
  align-self:center; margin-top: 18px; border:0;
}
.contact__ok{
  margin-top: 20px;
  padding: 40px;
  border:1px solid var(--line); border-radius: 20px;
  background: rgba(255,255,255,.03);
}
.contact__ok .check{
  width:60px; height:60px; margin: 0 auto 16px;
  border-radius:50%; display:grid; place-items:center;
  background: rgba(78,162,255,.15); color: var(--accent); font-size: 28px;
  border:1px solid rgba(78,162,255,.4);
}
.contact__ok h3{ margin:0 0 8px; font-family: var(--display); font-size: 28px; }
.contact__ok p{ margin:0; color: var(--ink-2); }
.contact__err{
  margin-top: 14px; text-align: center;
  color: #ff9c9c; font-size: 13px;
}
.contact__alt{
  display:flex; justify-content:center; gap: 32px;
  margin-top: 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing:.2em; text-transform:uppercase;
}
.contact__alt a{ color: var(--ink-2); transition: color .2s; }
.contact__alt a:hover{ color: var(--ink); }

/* ============ FOOTER ============ */
.foot{
  padding: 40px var(--pad-x);
  border-top:1px solid var(--line);
  background: var(--bg);
}
.foot__row{
  max-width: var(--max); margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
  flex-wrap: wrap;
}
.foot__logo{ height: 28px; }
.foot__nav{ display:flex; gap: 24px; flex-wrap:wrap; }
.foot__nav a{ font-size: 13px; color: var(--ink-2); }
.foot__nav a:hover{ color: var(--ink); }
.foot__fine{
  max-width: var(--max); margin: 24px auto 0;
  display:flex; justify-content:space-between; gap: 24px; flex-wrap:wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing:.18em; text-transform:uppercase;
  color: var(--ink-3);
}

/* ============ LANGUAGE SWITCHER (animated pill) ============ */
.nav__lang{
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 3px;
  margin-left: auto;   /* push to the right alongside the CTA */
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  isolation: isolate;
}
.nav__lang-pill{
  position: absolute;
  top: 3px; left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  width: 0;
  z-index: 0;
  transition: transform .35s cubic-bezier(.4,.2,.2,1),
              width .35s cubic-bezier(.4,.2,.2,1),
              opacity .25s ease;
}
.nav__lang-pill.is-ready{ opacity: 1; }

.nav__lang-tab{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
  font: 700 11px/1 var(--display, "Inter Tight", "Inter", sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease;
}
.nav__lang-tab:hover,
.nav__lang-tab:focus-visible,
.nav__lang-tab.is-active{
  color: var(--ink, #fff);
  outline: none;
}

/* Loading indicator while Claude translates */
.nav__lang.is-busy::after{
  content: "";
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent, #ff7a45);
  box-shadow: 0 0 0 0 rgba(255,122,69,.6);
  animation: ms-i18n-pulse 1.2s ease-out infinite;
  z-index: 3;
}
@keyframes ms-i18n-pulse{
  0%   { transform: scale(.9); box-shadow: 0 0 0 0 rgba(255,122,69,.5); }
  70%  { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255,122,69,0); }
  100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(255,122,69,0); }
}

/* Drawer copy (mobile) */
.drawer__lang{
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display:flex; gap:8px;
}
.drawer__lang-btn{
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 700 12px/1 var(--display, "Inter Tight", "Inter", sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.drawer__lang-btn:hover{ background: rgba(255,255,255,.05); }
.drawer__lang-btn.is-active{
  color: var(--accent, #ff7a45);
  border-color: rgba(255,122,69,.5);
  background: rgba(255,122,69,.08);
}

/* Hide Google Translate's own widget chrome */
#google_translate_element{
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.skiptranslate iframe,
.goog-logo-link,
.goog-te-gadget span,
.goog-te-gadget img{ display: none !important; }
body{ top: 0 !important; }
.goog-te-gadget{ height: 0 !important; overflow: hidden !important; }
.goog-tooltip, .goog-tooltip:hover{ display: none !important; }
.goog-text-highlight{ background: transparent !important; box-shadow: none !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .nav__links{ display:none; }
  .nav{ justify-content: center; position: fixed; }
  .nav__logo{
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav__logo img{ height: 56px; }
  .nav__burger{
    display:block;
    position: absolute;
    right: var(--pad-x); top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
  /* Compact icon CTA, message-bubble glyph on mobile */
  .nav__cta{
    display: inline-flex;
    position: absolute;
    right: calc(var(--pad-x) + 50px);
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    color: var(--ink, #fff);
    overflow: hidden;
    transition: background .25s, border-color .25s, transform .25s;
  }
  .nav__cta:hover{
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
  }
  .nav__cta span,
  .nav__cta .arr{ display: none; }
  .nav__cta::before{
    content: "";
    width: 18px; height: 18px;
    background: currentColor;
    /* Chat-bubble icon (Lucide message-circle) */
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>") center/contain no-repeat;
  }
  /* Lang pill, anchored to the LEFT edge on mobile (logo is centered) */
  .nav__lang{
    position: absolute;
    left: var(--pad-x);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    height: 34px;
    padding: 2px;
  }
  .nav__lang-pill{ top: 2px; height: calc(100% - 4px); }
  .nav__lang-tab{
    height: 26px;
    min-width: 32px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .cap__grid{ grid-template-columns: 1fr; }
  .impact__grid{ grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2){ border-right:none; }
  .port__grid{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .contact__form .row{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .hero{
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 80px;
    min-height: 100vh;
    align-items: center;
  }
  .hero__title .line-1{
    font-size: 10px;
    letter-spacing: .4em;
    margin-bottom: 14px;
  }
  .hero__title .line-2,
  .hero__title .line-3{
    font-size: clamp(48px, 16vw, 80px);
    letter-spacing: -.04em;
  }
  .hero__rule{
    margin-top: 22px;
    gap: 12px;
    max-width: 280px;
  }
  .hero__rule em{
    font-size: 9px;
    letter-spacing: .3em;
  }
  .hero__sub{
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 8px;
  }
  .hero__cta{
    margin-top: 28px;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 0 12px;
  }
  .hero__cta .btn{
    width: 100%;
    justify-content: center;
    height: 50px;
  }
  .hero__scroll{ display:none; }

  /* HUD: minimal — single tag per corner, smaller */
  .hud{
    font-size: 8.5px;
    letter-spacing: .18em;
    gap: 2px;
  }
  .hud--tl, .hud--tr{
    top: calc(var(--nav-h) + 10px);
  }
  .hud--tl span:not(:first-child),
  .hud--tr span:not(:first-child){ display:none; }
  .hud--bl{ bottom: 18px; }
  .hud--br{ display:none; }

  .impact__grid{ grid-template-columns: 1fr; }
  .metric{ border-right:none; border-bottom:1px solid var(--line); padding: 28px 16px; }
  .metric:last-child{ border-bottom:none; }
  .foot__row, .foot__fine{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 380px){
  .hud{ display:none; }
  .hero__title .line-2,
  .hero__title .line-3{
    font-size: clamp(40px, 14.5vw, 64px);
  }
}


/* =========================================================
   TWEAKS — Atmosphere / Voice / Earth
   ========================================================= */

/* Atmosphere: AURORA — violet/teal, polar lights vibe */
html[data-atmosphere="aurora"]{
  --atm-bg-radial:   radial-gradient(120% 80% at 50% 0%, #0e1230 0%, #060616 55%, #02020a 100%);
  --atm-glow-1:      rgba(120,90,255,.42);
  --atm-glow-2:      rgba(80,220,200,.30);
  --atm-glow-3:      rgba(255,120,210,.16);
  --atm-earth-core:  #2a2470;
  --atm-earth-mid:   #16124a;
  --atm-earth-deep:  #0a0a2a;
  --atm-earth-edge:  #050518;
  --atm-rim:         rgba(160,140,255,.55);
  --atm-rim-soft:    rgba(160,140,255,.25);
  --atm-name-1a:     #f6f3ff;
  --atm-name-1b:     #d4ccf2;
  --atm-name-1c:     #9388c4;
  --atm-name-2a:     #ece6ff;
  --atm-name-2b:     #9c8ed8;
  --atm-name-2c:     #3a2e7a;
  --atm-h2-a:        #e0d9f5;
  --atm-h2-b:        #8c7bc4;
  --atm-h2-c:        #3a2e6e;
}

/* Atmosphere: MARS — copper, dust storm warmth */
html[data-atmosphere="mars"]{
  --atm-bg-radial:   radial-gradient(120% 80% at 50% 0%, #2a1108 0%, #140804 55%, #0a0402 100%);
  --atm-glow-1:      rgba(255,110,60,.40);
  --atm-glow-2:      rgba(220,140,80,.20);
  --atm-glow-3:      rgba(255,210,140,.10);
  --atm-earth-core:  #7a2e12;
  --atm-earth-mid:   #4a1808;
  --atm-earth-deep:  #2a0c04;
  --atm-earth-edge:  #160602;
  --atm-rim:         rgba(255,160,90,.55);
  --atm-rim-soft:    rgba(255,160,90,.22);
  --atm-name-1a:     #fff4ec;
  --atm-name-1b:     #edcdb8;
  --atm-name-1c:     #b48a72;
  --atm-name-2a:     #ffe2cc;
  --atm-name-2b:     #d9966c;
  --atm-name-2c:     #6e2d12;
  --atm-h2-a:        #f0d3bc;
  --atm-h2-b:        #c08566;
  --atm-h2-c:        #5c2410;
}

/* Earth: DISTANT — small disc centered behind content */
html[data-earth="distant"] .earth-wrap{ overflow:visible; }
html[data-earth="distant"] .earth{
  position:absolute; left:50%; top:50%;
  width: min(90vw, 700px);
  bottom:auto;
}
html[data-earth="distant"] .aurora{ display:none; }
html[data-earth="distant"] .hero::after{
  background: radial-gradient(40% 30% at 50% 50%, rgba(0,0,0,.5) 0%, transparent 70%);
}

/* Earth: OFF — pure starfield, no disc, no aurora */
html[data-earth="off"] .earth-wrap.earth-wrap--off{ /* still renders stars */ }

/* Voice: EDITORIAL — Instrument Serif for display + h2 + hero name */
html[data-voice="editorial"]{
  --display: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
html[data-voice="editorial"] .hero__title{
  font-weight: 400;
  letter-spacing: -.025em;
}
html[data-voice="editorial"] .hero__title .line-2,
html[data-voice="editorial"] .hero__title .line-3{
  font-style: italic;
  letter-spacing: -.015em;
}
html[data-voice="editorial"] h2{
  font-weight: 400;
  letter-spacing: -.015em;
}
html[data-voice="editorial"] h2 em{
  font-style: italic;
}

/* Voice: INDUSTRIAL — Space Grotesk, tight, technical */
html[data-voice="industrial"]{
  --display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
}
html[data-voice="industrial"] .hero__title{
  letter-spacing: -.04em;
  font-weight: 700;
}
html[data-voice="industrial"] .hero__title .line-2,
html[data-voice="industrial"] .hero__title .line-3{
  text-transform: none;
  letter-spacing: -.03em;
}
html[data-voice="industrial"] h2{
  letter-spacing: -.02em;
  font-weight: 600;
}
html[data-voice="industrial"] .kicker,
html[data-voice="industrial"] .hud{
  letter-spacing: .35em;
}

/* All atmospheres / voices / earth modes share these smooth transitions */
.hero__title .line-2,
.hero__title .line-3,
h2 em{
  transition: filter 1s ease;
}
