/* =========================================================
   Phase 5 Landing — v8.5B.2 (CLEAN / BAKED)
   CSS PANEL — CLEAN + LABELED (WORKING OVERRIDES BAKED)
   - Removes duplicate blocks
   - Mobile: Components PNGs = crossfade only (no pan/zoom)
   - Components Big Index: ONE place to tune desktop/tablet/mobile
========================================================= */

/* =========================
   [A] TOKENS / RESET
========================= */
:root {
  /* Typeface (project standard) */
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;

  /* Type specs (desktop baseline) */
  --h1: 88px; /* H1 88 / 700 */
  --callout: 35px; /* Callout 35 / 700 */
  --p: 19px; /* Paragraph 19 / 400 */
  --p-lh: 28px; /* line-height 28px */

  --w-bold: 700;
  --w-reg: 400;

  /* Colors */
  --bg: #000;
  --fg: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 60px);
  --radius: 18px;

  /* Nav */
  --nav-h: 76px;

  /* Rhythm */
  --stage-pad-y: clamp(72px, 10vh, 120px);
  --block-gap: clamp(32px, 5vw, 64px);
  --mc-media-gap: 100px; /* Mission/Capabilities paragraph → media air */

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t: 240ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

/* Hide scrollbar (keep scroll) */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* PAGE BASE */
.p5-page {
  min-height: 100vh;
}

/* =========================
   [B] TOP NAV
========================= */
.p5-topnav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;

  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  pointer-events: none;
  transform: translateY(0);
  transition: transform var(--t) var(--ease);
}

.p5-topnav .nav-inner {
  pointer-events: auto;
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  overflow: visible; /* allow dropdown to render */
}

.nav-brand {
  margin-right: auto;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.nav-logo {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.95;
  min-width: 120px; /* prevents logo from collapsing on mobile */
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  flex: 0 0 auto;
}

.nav-link {
  position: relative;
  padding: 10px 10px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.45;
  color: rgba(255, 255, 255, 0.72);
  transition: opacity var(--t) var(--ease), color var(--t) var(--ease);
}

.nav-link:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 0.96);
}
.nav-link.is-active {
  opacity: 1;
  color: rgba(255, 255, 255, 0.96);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t) var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* =========================
   [C] HERO
========================= */
.p5-hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
}

/* HERO LOADER COVER */
.hero-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 1;
  transition: opacity 480ms var(--ease);
  pointer-events: auto;
}
.hero-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-loader {
  position: absolute;
  left: var(--gutter);
  top: clamp(90px, 14vh, 200px);
  width: min(600px, calc(100% - (var(--gutter) * 2)));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  color: rgba(255, 255, 255, 0.86);
}
.hero-loader-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-loader-sub {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.hero-loader-log {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  white-space: pre-wrap;
}

/* =========================
   [D] STAGE WRAP / GLOBAL STAGES
========================= */
.p5-stagewrap {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: var(--stage-pad-y) 0;
}
.stage-shell {
  width: 100%;
  margin: 0 auto;
}

/* IMPORTANT: only constrain INNER content, not the entire stage-page
   (Fixes mobile “shifted left” / full-bleed not reaching edges) */
.p5-stagewrap .stage-shell > .p5-stage {
  width: min(var(--maxw), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

/* stage-page should be full width; inner elements control max width */
.p5-stagewrap .stage-shell .stage-page {
  width: 100%;
  margin: 0;
}

#stageWrap {
  scroll-margin-top: calc(var(--nav-h) + 80px);
}
#hero,
#footer {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
#stageWrap,
#stage {
  overflow: visible;
}

.stage-header {
  margin-bottom: clamp(28px, 3.8vw, 54px);
}

.stage-title {
  font-size: var(--h1);
  font-weight: var(--w-bold);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0 0 18px;
}

.stage-body {
  font-size: var(--p);
  line-height: var(--p-lh);
  font-weight: var(--w-reg);
  color: var(--muted);
  max-width: 70ch;
  margin: 0;
}
.stage-body + .stage-body {
  margin-top: 12px;
}

/* Divider (hidden for some stages below) */
.stage-divider {
  position: relative;
  width: min(720px, 100%);
  height: 1px;
  margin: 10px 0 12px;
  transform-origin: left center;
}
.stage-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  transform: scaleY(0.5);
  transform-origin: center;
}

/* Remove divider under titles for these stages */
.stage-page[data-stage-page="partnerships"] .stage-divider,
.stage-page[data-stage-page="capabilities"] .stage-divider,
.stage-page[data-stage-page="founder"] .stage-divider,
.stage-page[data-stage-page="components"] .stage-divider {
  display: none;
}

/* =========================================
   RESTORE: Mission + Capabilities callout style (divider + spacing)
========================================= */
.stage-page[data-stage-page="mission"] .info-right .block-title,
.stage-page[data-stage-page="capabilities"] .info-right .block-title {
  position: relative;
  display: block;
  padding-left: 18px;
  margin: 0 0 40px;
  font-size: var(--callout);
  font-weight: var(--w-bold);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.stage-page[data-stage-page="mission"] .info-right .block-title::before,
.stage-page[data-stage-page="capabilities"] .info-right .block-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 1px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

/* RESTORE: Mission + Capabilities body */
.stage-page[data-stage-page="mission"] .info-right .block-body,
.stage-page[data-stage-page="capabilities"] .info-right .block-body,
.stage-page[data-stage-page="mission"] .block-body,
.stage-page[data-stage-page="capabilities"] .block-body {
  font-size: var(--p);
  line-height: var(--p-lh);
  font-weight: var(--w-reg);
  color: var(--muted);
  margin: 0;
  max-width: none;
}
.stage-page[data-stage-page="mission"] .block-body + .block-body,
.stage-page[data-stage-page="capabilities"] .block-body + .block-body {
  margin-top: 12px;
}

/* =========================
   CAPABILITIES — bullet list grid (2 columns desktop)
========================= */
.stage-page[data-stage-page="capabilities"] .stage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 6px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.stage-page[data-stage-page="capabilities"] .stage-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.25;
  display: flex;
  align-items: flex-start;
}
.stage-page[data-stage-page="capabilities"] .stage-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.35;
  opacity: 0.9;
}
/* Air between paragraph and bullets */
.stage-page[data-stage-page="capabilities"] .block-body + .stage-list {
  margin-top: 40px;
}

@media (max-width: 720px) {
  .stage-page[data-stage-page="capabilities"] .stage-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   [D.2] MEDIA (Base + Rotator)
========================= */
.block-media {
  position: relative;
  width: 100%;
  height: clamp(360px, 52vw, 780px);
  overflow: hidden;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}
.block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rotator media (images + videos) */
.block-media.is-rotator {
  overflow: hidden;
}
.block-media.is-rotator .rot-img,
.block-media.is-rotator .rot-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
}
/* Partnerships: mobile crop framing (shift focus to center) */
@media (max-width: 560px) {
  .stage-page[data-stage-page="partnerships"] .block-media.is-rotator .rot-img,
  .stage-page[data-stage-page="partnerships"] .block-media.is-rotator .rot-vid {
    object-position: 50% 50%;
  }
}


/* Mission + Capabilities: full-bleed + airy gap above media */
.stage-page[data-stage-page="mission"] .block-media,
.stage-page[data-stage-page="capabilities"] .block-media {
  margin-top: var(--mc-media-gap);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border: 0;
  background: transparent;
}

/* =========================
   [E] COMPONENTS (CLEAN LAYER STACK)
   Layers in .comp-media:
   0) Big Index
   1) PNG / Cutout rotator
   2) Scrim (off)
   3) Overlay content (panel) [above media]
========================= */

/* Components header callout */
.stage-page[data-stage-page="components"] .comp-callout {
  position: relative;
  display: block;
  padding-left: 18px;
  margin: 0 0 34px;
  font-size: var(--callout);
  font-weight: var(--w-bold);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 70ch;
}
.stage-page[data-stage-page="components"] .comp-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 1px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

/* [E.0] Stage wrapper */
.stage-page[data-stage-page="components"] .comp-stage {
  position: relative;
  width: 100%;
}

/* [E.1] Tabs row (long stroke + sliding indicator) */
.stage-page[data-stage-page="components"] .comp-tabs {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 0 0 22px;
  padding: 0 0 14px;

  display: flex;
  justify-content: flex-start;
  gap: 22px;
  align-items: center;
  flex-wrap: nowrap;

  pointer-events: auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;

  /* make sure the 3rd tab isn't trapped off-screen */
  padding-right: 24px;
  scroll-padding-inline: 24px;

  /* optional: smooth track scroll */
  scroll-behavior: smooth;
}
.stage-page[data-stage-page="components"] .comp-tabs::-webkit-scrollbar {
  height: 0;
}

.stage-page[data-stage-page="components"] .comp-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.stage-page[data-stage-page="components"] .comp-tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--ind-w);
  transform: translateX(var(--ind-x));
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  z-index: 2;
}

.stage-page[data-stage-page="components"] .comp-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 0 2px;

  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;

  color: rgba(255, 255, 255, 0.3);
  transition: color var(--t) var(--ease), opacity var(--t) var(--ease);

  scroll-snap-align: start;
}

.stage-page[data-stage-page="components"] .comp-tab:hover {
  color: rgba(255, 255, 255, 0.92);
}
.stage-page[data-stage-page="components"] .comp-tab.is-active {
  color: rgba(255, 255, 255, 0.98);
}

/* [E.2] Full-bleed media area under tabs */
.stage-page[data-stage-page="components"] .comp-media {
  --comp-media-h: clamp(340px, 38vw, 560px);

  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--comp-media-h);
  margin-top: clamp(44px, 5vw, 84px);

  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}


/* Components rotator images (crossfade only) */
#compRotator .comp-rotator__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* NO CROPPING */
  object-position: center;

  opacity: 0;
  pointer-events: none;
  user-select: none;
}

#compRotator .comp-rotator__img.is-a { opacity: 1; }
#compRotator .comp-rotator__img.is-b { opacity: 0; }


/* [E.5] Scrim (disabled) */
.stage-page[data-stage-page="components"] .comp-scrim {
  display: none;
}

/* [E.6] Overlay (above media) */
.stage-page[data-stage-page="components"] .comp-overlay {
  position: relative;
  z-index: 3;
  pointer-events: none;
  width: min(var(--maxw), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}
.stage-page[data-stage-page="components"] .comp-panel {
  pointer-events: auto;
}

.stage-page[data-stage-page="components"] .comp-panel {
  position: relative;
  width: 100%;
  margin: 0;
}

.stage-page[data-stage-page="components"] .comp-panel-inner {
  position: relative;
  height: auto;
  overflow: visible;
  background: transparent;
  border: 0;
  padding: 0;
}

.stage-page[data-stage-page="components"] .comp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 14px;
  position: relative;
  z-index: 2;
}

.stage-page[data-stage-page="components"] .comp-panel-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.stage-page[data-stage-page="components"] .comp-panel-index {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.stage-page[data-stage-page="components"] .comp-panel-divider {
  height: 1px;
  width: 100%;
  margin: 14px 0 26px;

  background: rgba(255, 255, 255, 0.18);
  transform-origin: left center;
  position: relative;
  z-index: 2;
}

.stage-page[data-stage-page="components"] .comp-panel-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.stage-page[data-stage-page="components"] .comp-panel-text {
  margin: 0;
  font-size: var(--p);
  line-height: var(--p-lh);
  font-weight: var(--w-reg);
  color: var(--muted);

  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* =========================
   [F] ODOMETER HELPERS
========================= */
.odo-wrap {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}
.odo-prefix {
  display: inline-block;
  line-height: inherit;
}
.odo-slot {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1em;
  width: 1ch;
  line-height: 1;
  top: 0.18em;
}
.odo-digit {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  line-height: inherit;
  transform: translateY(0);
}

/* =========================
   [G] PARTNERSHIPS (full-bleed + belt)
========================= */
.stage-page[data-stage-page="partnerships"] .block-media {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border: 0;
  background: transparent;

  /* responsive height */
  height: clamp(260px, 52vw, 720px);
  min-height: 260px;
}

@media (max-width: 560px) {
  .stage-page[data-stage-page="partnerships"] .block-media {
    height: 56vw;      /* keeps it proportional on phones */
    min-height: 220px; /* prevents tiny */
  }
}

.stage-page[data-stage-page="partnerships"] .partner-belt-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 32px 0 48px;
}

.stage-page[data-stage-page="partnerships"] .partner-belt {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-inline: var(--gutter);
}

/* remove faint top line behind marquee (if present in markup) */
.stage-page[data-stage-page="partnerships"] .partner-belt::before {
  display: none;
}

.stage-page[data-stage-page="partnerships"] .partner-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
  will-change: transform;
  white-space: nowrap;
}

.stage-page[data-stage-page="partnerships"] .partner-logo {
  flex: 0 0 auto;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.86;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.stage-page[data-stage-page="partnerships"] .partner-logo img {
  height: 54px;
  width: auto;
  display: block;
  opacity: 0.92;
}

@media (min-width: 980px) {
  .stage-page[data-stage-page="partnerships"] .partner-logo {
    font-size: 20px;
  }
}
@media (max-width: 720px) {
  .stage-page[data-stage-page="partnerships"] .partner-belt-wrap {
    padding: 24px 0 36px;
  }
  .stage-page[data-stage-page="partnerships"] .partner-belt {
    padding-inline: calc(var(--gutter) * 0.75);
  }
  .stage-page[data-stage-page="partnerships"] .partner-track {
    gap: clamp(40px, 6vw, 80px);
  }
}

/* =========================
   [H] FOUNDER
========================= */
.stage-page[data-stage-page="founder"] .founder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  margin-top: 18px;
}
.stage-page[data-stage-page="founder"] .founder-portrait {
  margin: 0;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  height: clamp(360px, 40vw, 560px);
}
.stage-page[data-stage-page="founder"] .founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-page[data-stage-page="founder"] .founder-bottom {
  margin-top: 26px;
}
.stage-page[data-stage-page="founder"] .founder-bottom .block-media {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border: 0;
  background: transparent;
  height: clamp(360px, 48vw, 720px);
}
.founder-name {
  display: block;
  text-align: right;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .stage-page[data-stage-page="founder"] .founder-grid {
    grid-template-columns: 1fr;
  }
  .stage-page[data-stage-page="founder"] .founder-portrait {
    height: clamp(320px, 64vw, 520px);
  }
}

/* =========================
   [I] FOOTER (Anduril-style)
========================= */
.p5-footer {
  padding: 140px 0 0;
}
.footer-wrap {
  width: 100%;
  margin: 0;
  padding: 0 var(--gutter);
}
.footer-brand {
  margin-bottom: 54px;
}
.footer-logo {
  height: 26px;
  width: auto;
  opacity: 0.95;
}

.footer-grid {
  display: grid;
  width: 100%;
  max-width: 400px;          /* tighter so Site Map + Contact sit closer */
  margin-left: auto;         /* keep aligned to the right */
  margin-right: 0;
  margin-top: 54px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns */
  column-gap: clamp(36px, 6vw, 80px);
  row-gap: 22px;
  align-items: start;
}


/* MOBILE: keep Site Map + Contact side-by-side */
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 22px;
  }
}


.footer-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.92;
  transition: opacity var(--t) var(--ease);
}
.footer-link:hover {
  opacity: 1;
}
.footer-email {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-rule {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 140px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.footer-bottom {
  padding: 22px 0 0;
}
.footer-bottom-inner {
  width: 100%;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.footer-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal-link {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
  opacity: 0.9;
  transition: opacity var(--t) var(--ease), color var(--t) var(--ease);
}
.footer-legal-link:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 0.86);
}
.footer-legal-sep {
  opacity: 0.35;
}

/* =========================
   [J] RESPONSIVE SAFETY
========================= */
@media (max-width: 980px) {
  :root {
    --h1: 64px;
    --callout: 30px;
    --p: 18px;
    --p-lh: 26px;
  }
}

@media (max-width: 560px) {
  :root {
    --h1: 44px;
    --callout: 26px;
    --p: 17px;
    --p-lh: 25px;
  }

  .nav-links {
    gap: 10px;
    justify-content: flex-start;
  }

  /* fallback for old flex-gap support (and quiets some linters) */
  .nav-links > .nav-link {
    margin-left: 10px;
  }
  .nav-links > .nav-link:first-child {
    margin-left: 0;
  }

  .nav-link {
    padding: 10px 6px;
  }
}
@media (max-width: 560px) {
  /* Mobile: give tabs row extra right padding so last tab isn't half-hidden */
  .stage-page[data-stage-page="components"] .comp-tabs {
    padding-right: 24px;
  }
}

/* Components: mobile panel spacing + readability */
@media (max-width: 560px) {
  .stage-page[data-stage-page="components"] .comp-overlay {
    padding-top: 10px;
  }

  .stage-page[data-stage-page="components"] .comp-panel-inner {
    width: min(var(--maxw), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: 22px 0 0;
  }
}

/* HARD LOCK (ALL DEVICES): Components rotator = crossfade only (NO pan / NO zoom) */
#compRotator .comp-rotator__img {
  transform: none !important;
  animation: none !important;
  will-change: opacity !important;
}
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }
}


/* =========================
   [B.1] MOBILE HAMBURGER NAV (mobile only)
   Desktop unchanged
========================= */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.nav-hamburger .ham-line {
  position: absolute;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}

.nav-hamburger .ham-line:nth-child(1) {
  transform: translateY(-6px);
}
.nav-hamburger .ham-line:nth-child(2) {
  transform: translateY(0);
}
.nav-hamburger .ham-line:nth-child(3) {
  transform: translateY(6px);
}

.nav-hamburger.is-open .ham-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.nav-hamburger.is-open .ham-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open .ham-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.nav-dropdown {
  display: block;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  width: 100vw;

  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.9);

  /* remove blur (common cause of soft text) */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  z-index: 1500;

  /* animation that won't rasterize text */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  padding: 0 12px; /* keep side padding, collapse vertical via max-height */
  transition: max-height 240ms var(--ease), opacity 180ms var(--ease),
    visibility 0ms linear 240ms;
}

.nav-dropdown.is-open {
  max-height: 420px; /* enough for your 5 links */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  padding: 12px;
  transition: max-height 240ms var(--ease), opacity 180ms var(--ease),
    visibility 0ms;
}

.nav-dd-item {
  width: 100%;
  text-align: right;
  padding: 12px 10px;
  border-radius: 0;

  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.72);
  opacity: 0.55;
  transition: opacity var(--t) var(--ease), color var(--t) var(--ease),
    background var(--t) var(--ease);

  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* current selection */
.nav-dd-item.is-active {
  opacity: 1;
  color: rgba(255, 255, 255, 0.96);
}

/* others stay grey */
.nav-dd-item:hover {
  background: transparent;
}

.nav-dd-item.is-active {
  background: rgba(255, 255, 255, 0.06);
}

/* edge-to-edge highlight without moving the link */
.nav-dd-item {
  position: relative;
  overflow: visible;
}

/* kill underline animation inside dropdown even if nav-link styles apply */
.nav-dropdown .nav-dd-item::after {
  display: none !important;
}

.nav-hamburger { display: none !important; }

/* Mobile behavior */
@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav-hamburger { display: inline-flex !important; }
  .nav-dropdown { display: block !important; }
  .nav-logo { min-width: 0; }
}