/* Antonio Serrano — cosmic portfolio (deep-space dark) */

:root {
  --bg: #06070e;
  --bg-soft: #0b0d18;
  --surface: #101320;
  --surface-2: #171a2a;
  --ink: #f1eff7;
  --ink-soft: #c2bfd2;
  --ink-muted: #a3a1b5;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --gold: #e4c06a;
  --gold-deep: #c79a3c;
  --accent: var(--gold);

  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --serif: "Newsreader", "Georgia", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
/* Cosmic backdrop behind the whole page — nebula glows over deep space, so
   every section shares the Atlas's universe. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 80% -6%, rgba(110, 123, 242, 0.10), transparent 60%),
    radial-gradient(820px 700px at 6% 10%, rgba(228, 192, 106, 0.06), transparent 60%),
    radial-gradient(1200px 900px at 50% 118%, rgba(63, 96, 150, 0.10), transparent 55%),
    linear-gradient(180deg, #06070e, #090b16 48%, #06070e);
}
/* faint starfield dusting the whole page */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 67% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.4px 1.4px at 34% 67%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 82% 58%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.2px 1.2px at 49% 88%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 91% 83%, rgba(228,192,106,0.6), transparent),
    radial-gradient(1px 1px at 24% 42%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.3px 1.3px at 58% 36%, rgba(255,255,255,0.55), transparent);
  background-repeat: repeat;
  background-size: 520px 520px;
  transform: translate3d(0, var(--star-shift, 0px), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { body::after { transform: none; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: var(--ink); color: var(--surface); }

/* Cosmic loader — masks the 3D init, then reveals the hero */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(900px 600px at 50% 42%, #0a0c16, #05060b 72%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__orbit { position: relative; width: 96px; height: 96px; margin: 0 auto 26px; }
.loader__ring { position: absolute; inset: 6px; border: 1px solid rgba(228, 192, 106, 0.22); border-radius: 50%; }
.loader__sun { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px 5px rgba(228, 192, 106, 0.55); }
.loader__planet { position: absolute; inset: 0; animation: loaderSpin 1.5s linear infinite; }
.loader__planet::before { content: ""; position: absolute; top: 1px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #cdd6ff; box-shadow: 0 0 10px 2px rgba(180, 200, 255, 0.7); }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.loader__name { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
.loader__status { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin: 0; animation: loaderPulse 1.7s ease-in-out infinite; }
@keyframes loaderPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.92; } }
@media (prefers-reduced-motion: reduce) { .loader__planet, .loader__status { animation: none; } }

/* Ambient mood — a fixed nebula glow that cross-fades per section */
#mood {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  color: rgba(228, 192, 106, 0.5);
  background: radial-gradient(1100px 760px at 78% 12%, currentColor, transparent 62%);
  transition: color 1.1s var(--ease);
}
/* Warp jump — light-speed star-streak veil during nav jumps */
#warp { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .25s linear; }

/* Scroll-progress orbit dial */
.orbit-dial {
  position: fixed; left: clamp(16px, 2vw, 26px); bottom: clamp(16px, 2vw, 26px);
  z-index: 40; width: 52px; height: 52px; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
}
/* When active it becomes a clickable scroll-to-top button — restore hit-testing. */
.orbit-dial.is-on { opacity: 0.92; pointer-events: auto; }
.orbit-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.orbit-dial__track { fill: none; stroke: rgba(245, 242, 236, 0.14); stroke-width: 1; }
.orbit-dial__planet { fill: var(--gold); filter: drop-shadow(0 0 5px rgba(228, 192, 106, 0.8)); }
.orbit-dial__num { font-family: var(--display); font-size: 13px; letter-spacing: 0.06em; fill: var(--ink); }
@media (max-width: 700px) { .orbit-dial { display: none; } }

/* Living constellation backdrop for content sections */
.about { position: relative; overflow: hidden; }
/* Static cosmic backdrop for the Story section — a faint nebula wash + a tiled
   starfield. Pure CSS, NO animation (replaces the removed particle galaxy). */
.about::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(60% 52% at 22% 30%, rgba(121, 182, 255, 0.07), transparent 72%),
    radial-gradient(55% 48% at 82% 68%, rgba(228, 192, 106, 0.055), transparent 72%),
    radial-gradient(1px 1px at 24px 36px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 88px 132px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 156px 64px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 200px 188px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 272px 40px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 320px 250px, rgba(255, 255, 255, 0.4), transparent);
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  background-size: auto, auto, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px;
  -webkit-mask-image: radial-gradient(135% 125% at 50% 42%, #000 66%, transparent 100%);
          mask-image: radial-gradient(135% 125% at 50% 42%, #000 66%, transparent 100%);
}
.section-sky {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(140% 130% at 50% 45%, #000 74%, transparent 100%);
          mask-image: radial-gradient(140% 130% at 50% 45%, #000 74%, transparent 100%);
}

/* Numbered section rhythm (editorial cadence, à la award sites) */
.section .wrap { position: relative; z-index: 1; }
.sec-num {
  position: absolute; top: clamp(-42px, -4vw, -28px); left: var(--gutter);
  font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.2em;
  color: rgba(228, 192, 106, 0.7); pointer-events: none;
}
@media (max-width: 700px) { .sec-num { top: -24px; font-size: 0.9rem; } }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 120px); }
.section,
.atlas { scroll-margin-top: 98px; }
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 12px;
}

/* ---- Nav ------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  /* Installed PWA (black-translucent status bar): keep the nav out from under
     the iOS clock/notch. Browsers without env() simply keep the 20px above. */
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.scrolled {
  background: rgba(6, 7, 14, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
/* Over the full-screen Atlas: transparent nav, light text, so the cosmos
   reads edge-to-edge with no cream bar. */
.nav.nav--over-atlas {
  background: linear-gradient(180deg, rgba(5, 7, 16, 0.66), rgba(5, 7, 16, 0));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: none;
}
.nav.nav--over-atlas .nav__brand { color: #f5f2ec; }
.nav.nav--over-atlas .nav__dot { background: var(--gold, #e4c06a); }
.nav.nav--over-atlas .nav__menu {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f2ec;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(228, 192, 106, 0.6);
  flex-shrink: 0;
}
.nav__menu {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav__menu-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav.open .nav__menu-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .nav__menu-bars span:nth-child(2) { opacity: 0; }
.nav.open .nav__menu-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--gutter);
  width: min(320px, calc(100vw - (var(--gutter) * 2)));
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
  z-index: 49;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.nav.open .nav__panel { opacity: 1; transform: none; pointer-events: auto; }
.nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* .nav-map / .nav-map__rail|progress|orb rules removed — the later "Topbar reset"
   block forces `.nav-map { display:none !important }`, so the scroll-progress map is
   never shown. (main.js still writes --nav-progress; harmless on a hidden node.) */
.nav__panel a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding .2s var(--ease), background .2s;
}
.nav__panel a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease), width .22s var(--ease);
}
.nav__panel a:hover {
  color: var(--ink);
  padding-left: 8px;
}
.nav__panel a:hover::before {
  width: 58px;
  transform: scaleX(1);
}
/* .nav__link-node styling removed — forced `display:none !important` by the Topbar
   reset block; the node dot is never visible. Link/active/hover styling that targets
   the anchor itself is kept below. */
.nav__panel a.is-active,
.nav__panel a[aria-current="true"] {
  color: var(--ink);
}
.nav__panel .nav__cta {
  margin-top: 20px;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  border: none;
}
.nav__panel .nav__cta:hover,
.nav__panel .nav__cta.is-active,
.nav__panel .nav__cta[aria-current="true"] {
  color: var(--surface);
  background: #fff;
}

/* Language switcher (EN · DE · FR · IT · ES) */
.nav__lang {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.nav__lang-btn {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 10px; border-radius: 8px;
  font: 700 0.74rem/1 var(--sans); letter-spacing: 0.06em;
  color: var(--ink-muted);
  transition: color .2s, background .2s;
}
.nav__lang-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav__lang-btn.is-active { color: #101320; background: var(--gold); }
@media (min-width: 861px) {
  /* inline in the topbar — a thin divider, then the codes */
  .nav__lang {
    margin: 0 0 0 6px;
    padding: 0 0 0 8px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    flex-wrap: nowrap;
  }
  .nav__lang-btn { padding: 6px 7px; font-size: 0.68rem; }
}
@media (min-width: 861px) {
  .nav {
    top: 18px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 10, 20, 0.48);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  }
  .nav.scrolled {
    background: rgba(8, 10, 20, 0.76);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  .nav.nav--over-atlas {
    background: rgba(8, 10, 20, 0.42);
    -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  }
  .nav__brand {
    padding: 0 14px 0 10px;
    min-height: 42px;
  }
  .nav__menu { display: none; }
  .nav__panel {
    position: static;
    inset: auto;
    width: auto;
    padding: 0;
    border-left: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    box-shadow: none;
  }
  .nav__links {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .nav__panel a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-bottom: 0;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(241, 239, 247, 0.76);
    transition: color .2s, background .2s, transform .2s var(--ease);
  }
  .nav__panel a::before {
    left: 14px;
    right: 14px;
    bottom: 7px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(228, 192, 106, 0.95), transparent);
  }
  .nav__panel a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    padding-left: 14px;
  }
  .nav__panel .nav__cta {
    margin-top: 0;
    padding: 0 16px;
    color: #101320;
    background: var(--gold);
  }
  .nav__panel .nav__cta.is-active,
  .nav__panel .nav__cta[aria-current="true"] {
    color: #101320;
    background: var(--gold);
  }
  .nav__panel .nav__cta:hover {
    color: #101320;
    background: #f1d887;
  }
}
@media (max-width: 860px) {
  .nav.open > .nav__panel { opacity: 1; transform: none; pointer-events: auto; }
  .nav__panel .nav__cta { margin-top: 20px; }
}
.nav.open > .nav__panel { opacity: 1; transform: none; pointer-events: auto; }
body.nav-open { overflow: hidden; }
body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  z-index: 48;
}

/* ---- Loading --------------------------------------------- */
.site-loading, .site-error {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Hero ------------------------------------------------ */
.hero {
  padding-top: clamp(100px, 14vw, 140px);
  padding-bottom: clamp(48px, 8vw, 72px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 280px) minmax(140px, 200px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr minmax(180px, 240px);
  }
  .hero__stats {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 40px;
  }
}
@media (max-width: 640px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 260px; margin-inline: auto; }
}
.hero__greeting {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 0 0 8px;
  color: var(--ink-soft);
}
.hero__title {
  margin: 0 0 24px;
  line-height: 0.92;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero__line { display: block; }
.hero__line--sm { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero__line--md { font-size: clamp(2.8rem, 7vw, 4.8rem); }
.hero__line--lg {
  font-size: clamp(3.6rem, 11vw, 7.5rem);
  margin-top: 0.02em;
}
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 28px;
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__portrait {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(250, 248, 244, 0.92), rgba(227, 221, 210, 0.72));
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.12);
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 20px -12px -12px 20px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 8px;
  z-index: -1;
}
.hero__portrait::after {
  content: "Founder / Builder";
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 6px 9px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: rgba(245, 242, 236, 0.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__photo {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: center 22%;
  background: var(--surface);
  border-radius: 5px;
  border: 1px solid var(--line);
}
.hero__stats {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.hero__stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-muted);
  max-width: 14ch;
}
.hero__pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(48px, 8vw, 72px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .hero__pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero__pillars { grid-template-columns: 1fr; }
}
.hero__pillar h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.25;
}
.hero__pillar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ---- Architectonic atlas -------------------------------- */
/* Pinned scrollytelling: a tall scroll track (.atlas) with a sticky cosmos
   (.atlas__sticky) that stays put while you scroll through the planets. The
   cream page bleeds in at the track's top and bottom so entry/exit blend. */
/* Merged hero: the solar system IS the hero — one full screen at the very top. */
.atlas {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  background: linear-gradient(180deg, #060915, #0a0e1c 48%, #04060f);
  color: var(--ink);
  isolation: isolate;
}
.atlas__sticky {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
}
.atlas__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 44% 46%, rgba(255, 194, 111, 0.16), transparent 22%),
    radial-gradient(circle at 76% 26%, rgba(121, 182, 255, 0.12), transparent 28%),
    radial-gradient(circle at 18% 74%, rgba(139, 201, 166, 0.08), transparent 26%);
}
.atlas__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.atlas__scene:not(.is-ready)::after {
  content: "Loading atlas";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245, 242, 236, 0.5);
}
/* Cream bleeds — melt the band into the page above and below */
.atlas::before,
.atlas::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: clamp(90px, 13vw, 180px);
  z-index: 1; pointer-events: none;
}
.atlas::before { top: 0; background: linear-gradient(180deg, var(--bg), transparent); }
.atlas::after { bottom: 0; background: linear-gradient(0deg, var(--bg), transparent); }

/* Overlay: lets pointer events fall through to the canvas except on real UI */
.atlas__overlay {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(80px, 9vh, 108px) clamp(18px, 3vh, 32px);
  pointer-events: none;
}
/* Legibility scrim: darken the left (headline) and top-right (stats) so text
   stays crisp over the cosmos; the center-right stays clear for the planets. */
.atlas__overlay::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 7, 14, 0.92), rgba(6, 7, 14, 0.5) 26%, transparent 50%),
    radial-gradient(55% 42% at 100% 0%, rgba(6, 7, 14, 0.72), transparent 72%),
    linear-gradient(0deg, rgba(6, 7, 14, 0.6), transparent 26%);
}
.atlas__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 24px clamp(24px, 5vw, 64px);
  align-items: center;
}
.atlas__id {
  grid-column: 1; grid-row: 1;
  max-width: 600px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
}
.atlas__id-photo { margin: 0 0 20px; }
.atlas__photo {
  width: clamp(94px, 9vw, 120px);
  height: clamp(94px, 9vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid rgba(228, 192, 106, 0.65);
  box-shadow: 0 0 34px rgba(228, 192, 106, 0.28), 0 10px 34px rgba(0, 0, 0, 0.55);
}
.atlas__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; letter-spacing: 0.01em; text-transform: none;
  color: var(--gold);
}
.atlas__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase;
  margin: 0; color: #f7f4ee;
}
.atlas__title span, .atlas__title em { display: block; font-style: normal; }
.atlas__title em { color: var(--gold); }
.atlas__lede {
  margin: 18px 0 0;
  font-family: var(--serif);
  color: rgba(245, 242, 236, 0.78);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.55; max-width: 46ch;
}
.atlas__id-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; pointer-events: auto; }
/* Quick stats — a tidy row beneath the CTAs, with a divider */
.atlas__stats {
  list-style: none; margin: 30px 0 0; padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; flex-wrap: wrap; gap: clamp(13px, 1.6vw, 24px);
  text-align: left; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}
.atlas-stat { max-width: 116px; position: relative; padding-left: clamp(13px, 1.6vw, 24px); }
.atlas-stat:first-child { padding-left: 0; }
.atlas-stat:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, rgba(228,192,106,0.35), transparent);
}
.atlas-stat__v {
  display: block; font-family: var(--display);
  font-size: clamp(1.85rem, 2.1vw, 2.25rem); line-height: 0.95; letter-spacing: 0.03em; color: var(--gold);
}
.atlas-stat__l {
  display: block; margin-top: 6px; max-width: 15ch;
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); line-height: 1.3;
}

/* Planet modal — a glass card that pops up at the hovered/spotlighted planet */
.atlas__tip {
  position: absolute; top: 0; left: 0; z-index: 6;
  width: min(300px, 74vw);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(9, 12, 24, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  opacity: 0; transform: translateY(6px) scale(0.97);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  will-change: transform, opacity;
}
.atlas__tip[hidden] { display: block; }
.atlas__tip.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.atlas__kicker {
  display: block; margin-bottom: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold, #e4c06a);
}
.atlas__tip h2 {
  margin: 0 0 8px; font-family: var(--display);
  font-size: 1.7rem; line-height: 0.95; letter-spacing: 0.04em;
  text-transform: uppercase; color: #f7f4ee;
}
.atlas__tip p {
  margin: 0 0 14px; font-family: var(--serif);
  color: rgba(245, 242, 236, 0.78); line-height: 1.5; font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.atlas__tip-feats {
  list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px;
}
.atlas__tip-feats li {
  position: relative; padding-left: 16px;
  font-size: 0.8rem; line-height: 1.35; color: rgba(245, 242, 236, 0.74);
}
.atlas__tip-feats li::before { content: "›"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.btn--glass {
  background: #f1eff7; color: #11131f; border-color: transparent;
}
.btn--glass:hover { transform: translateY(-1px); background: #fff; }
.btn--glass-ghost {
  background: rgba(255, 255, 255, 0.06); color: #f5f2ec;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--glass-ghost:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.14); }

.atlas__hint {
  grid-column: 1 / -1; grid-row: 2;
  justify-self: end; align-self: end;
  font-family: var(--serif); font-style: italic;
  font-size: 0.92rem; color: rgba(245, 242, 236, 0.6);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  /* keep clear of the fixed "Sound" pill in the bottom-right corner */
  padding-right: clamp(96px, 9vw, 130px);
}

/* Hero entrance — the id column rises in as the loader curtain lifts. Keyed on
   body.hero-revealed (added by main.js when the loader hides): without JS or with an
   old cached script nothing is ever hidden, and reduced-motion users skip it entirely. */
@media (prefers-reduced-motion: no-preference) {
  body.hero-revealed .atlas__id > * { animation: heroRise 0.8s var(--ease) both; }
  body.hero-revealed .atlas__id > :nth-child(1) { animation-delay: 0.05s; }
  body.hero-revealed .atlas__id > :nth-child(2) { animation-delay: 0.14s; }
  body.hero-revealed .atlas__id > :nth-child(3) { animation-delay: 0.23s; }
  body.hero-revealed .atlas__id > :nth-child(4) { animation-delay: 0.32s; }
  body.hero-revealed .atlas__id > :nth-child(5) { animation-delay: 0.41s; }
  body.hero-revealed .atlas__id > :nth-child(6) { animation-delay: 0.5s; }
  body.hero-revealed .atlas__console { animation: heroRise 0.8s var(--ease) both 0.58s; }
  body.hero-revealed .atlas__hint { animation: heroRise 0.8s var(--ease) both 0.7s; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Product chips — glass strip along the very bottom */
.atlas__chips {
  pointer-events: auto;
  margin-top: clamp(12px, 2vh, 20px);
  padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.atlas-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 11, 22, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: rgba(245, 242, 236, 0.82);
  font-family: var(--sans); cursor: pointer;
  transition: border-color .22s var(--ease), background .22s, color .22s, transform .22s var(--ease);
}
.atlas-chip:hover,
.atlas-chip.is-hover,
.atlas-chip.is-active {
  border-color: var(--gold, #e4c06a);
  background: rgba(228, 192, 106, 0.16);
  color: #fff;
  transform: translateY(-1px);
}
.atlas-chip__num { font-family: var(--display); font-size: 1rem; letter-spacing: 0.05em; color: var(--gold, #e4c06a); }
.atlas-chip__name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.atlas-chip__flow { display: none; }

/* Hero game banner — announcement pill linking to the standalone /lander/ game.
   Pinned just below the fixed nav (z-index 50), centered over the 3D scene. */
.atlas__game {
  position: absolute;
  top: clamp(74px, 10vh, 104px);
  left: 50%; transform: translateX(-50%);
  z-index: 7;
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(228, 192, 106, 0.40);
  border-radius: 999px;
  background: rgba(8, 11, 22, 0.62);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(245, 242, 236, 0.92);
  font-family: var(--sans); text-decoration: none;
  transition: border-color .22s var(--ease), background .22s, transform .22s var(--ease), box-shadow .22s;
  animation: atlasGameIn .6s var(--ease) both .45s;
}
.atlas__game:hover, .atlas__game:focus-visible {
  border-color: var(--gold, #e4c06a);
  background: rgba(228, 192, 106, 0.14);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8), 0 0 24px -6px rgba(228, 192, 106, 0.5);
  outline: none;
}
.atlas__game-badge { font-size: 1.15rem; line-height: 1; animation: atlasSaucer 3.2s ease-in-out infinite; }
.atlas__game-kicker {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold, #e4c06a);
}
.atlas__game-text {
  font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: min(44vw, 360px);
}
.atlas__game-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--gold, #e4c06a); color: #1a1407;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.atlas__game-arrow { transition: transform .22s var(--ease); }
.atlas__game:hover .atlas__game-arrow { transform: translateX(3px); }
@keyframes atlasGameIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes atlasSaucer { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  .atlas__game { animation: none; }
  .atlas__game-badge { animation: none; }
}
/* Compact on small screens: keep the saucer + CTA, drop the kicker/label — and move
   the pill to the bottom of the hero (above the scroll cue) so it never overlaps the
   portrait, which sits top-left at these widths. */
@media (max-width: 720px) {
  .atlas__game { gap: 8px; padding: 6px 6px 6px 12px; top: auto; bottom: clamp(88px, 12vh, 124px); }
  .atlas__game-kicker, .atlas__game-text { display: none; }
}

@media (max-width: 920px) {
  /* Disable the sticky pin on small screens — fall back to a single immersive
     band (touch + tall sticky tracks are janky on mobile). */
  .atlas { height: auto; min-height: clamp(680px, 100svh, 1000px); }
  .atlas__sticky { position: static; height: auto; min-height: clamp(680px, 100svh, 1000px); }
  .atlas__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; }
  .atlas__head { grid-column: 1; grid-row: 1; max-width: none; }
  .atlas__milestones { grid-column: 1; grid-row: 2; justify-self: start; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas__panel { grid-column: 1; grid-row: 4; max-width: none; }
  .atlas__stamp { display: none; }
}
@media (max-width: 560px) {
  .atlas { min-height: 760px; }
  .atlas__milestones { grid-template-columns: 1fr; }
  .atlas-chip__name { font-size: 0.78rem; }
}

/* ---- Buttons --------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,0.34) 45%, transparent 58% 100%);
  transform: translateX(-115%);
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateX(115%); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}
.btn--primary {
  background: var(--ink);
  color: var(--surface);
}
.btn--primary:hover { background: #fff; }
.btn__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: rgba(228, 192, 106, 0.58);
  background: rgba(228, 192, 106, 0.08);
}

/* ---- Trusted --------------------------------------------- */
/* Pillars strip — principles, just below the hero */
.pillars { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.pillars__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
}
.pillar h3 {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; color: var(--ink);
}
.pillar p { margin: 0; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 720px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }

.trusted { padding-top: clamp(56px, 8vw, 96px); }
.trusted__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}
.trusted__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.trusted__intro {
  margin: 0;
  max-width: 36ch;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink-muted);
}
.trusted__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 720px) {
  .trusted__grid { grid-template-columns: repeat(2, 1fr); }
}
.trusted__cell {
  position: relative;
  background: var(--surface);
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 18px 16px;
  overflow: hidden;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.trusted__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(228, 192, 106, 0.14), transparent 48%);
  opacity: 0;
  transition: opacity .25s;
}
.trusted__cell:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}
.trusted__cell:hover::before { opacity: 1; }
.trusted__name {
  position: relative;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.trusted__cell:hover .trusted__name { color: var(--ink); }

/* ---- About ----------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__headline {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
}
/* Subtle contrast scrim: the brightened galaxy backdrop bleeds through behind the
   body copy, so paint a soft, feathered dark wash behind the text column to keep it
   legible. Pseudo sits below the text (z-index:-1) and never blocks selection. */
.about__body { position: relative; z-index: 0; }
.about__body::before {
  content: "";
  position: absolute;
  inset: clamp(-18px, -2vw, -28px) clamp(-16px, -1.6vw, -24px);
  z-index: -1;
  background: radial-gradient(120% 100% at 30% 30%,
    rgba(6, 7, 14, 0.62) 0%, rgba(6, 7, 14, 0.5) 45%, rgba(6, 7, 14, 0) 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 30%, #000 60%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 30% 30%, #000 60%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}
.about__body p {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink-soft);
  margin: 0 0 1.2em;
  line-height: 1.65;
  position: relative;
}
.about__body p:last-child { margin-bottom: 0; }
.about__body strong { color: var(--ink); font-weight: 600; }

/* ---- Audit map ------------------------------------------- */
.audit {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 25, 34, 0.58), rgba(6, 7, 14, 0));
}
.audit__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.audit-map {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -18deg, rgba(255,255,255,0.07) 0deg 1deg, transparent 1deg 36deg),
    conic-gradient(from 120deg, rgba(228, 192, 106, 0.34), rgba(95, 208, 168, 0.2), rgba(124, 199, 255, 0.2), rgba(228, 192, 106, 0.34));
  box-shadow: inset 0 0 0 30px rgba(6, 7, 14, 0.9), 0 24px 70px rgba(0, 0, 0, 0.32);
  transition: box-shadow .28s var(--ease), border-color .28s;
  overflow: visible;
}
.audit-map:hover {
  border-color: rgba(228, 192, 106, 0.34);
  box-shadow: inset 0 0 0 30px rgba(6, 7, 14, 0.9), 0 30px 86px rgba(0, 0, 0, 0.44), 0 0 54px rgba(228, 192, 106, 0.08);
}
.audit-map::before,
.audit-map::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.audit-map::after { inset: 34%; border-style: solid; opacity: 0.55; }
.audit-map__core {
  position: absolute;
  inset: 37%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(228, 192, 106, 0.34);
  border-radius: 50%;
  background: rgba(8, 10, 20, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  text-align: center;
}
.audit-map__value {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--gold);
}
.audit-map__label {
  width: 12ch;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.audit-map__core::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(228, 192, 106, 0.14);
  pointer-events: none;
}
.audit-node {
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 126px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 13, 24, 0.84);
  color: var(--ink-soft);
  font: 700 0.68rem/1.15 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: border-color .22s, background .22s, color .22s, box-shadow .22s, transform .22s var(--ease);
  overflow: hidden;
  z-index: 2;
}
.audit-node::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.18), transparent 72%);
  transform: translateX(-120%);
  transition: transform .42s var(--ease);
}
.audit-node:hover,
.audit-node.is-active {
  color: var(--ink);
  border-color: rgba(228, 192, 106, 0.72);
  background: rgba(228, 192, 106, 0.16);
  box-shadow: 0 0 26px rgba(228, 192, 106, 0.16);
  transform: translate(-50%, -50%) scale(1.06);
}
.audit-node:hover::after { transform: translateX(120%); }
.audit-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.audit-tab {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  cursor: pointer;
  overflow: hidden;
  transition: background .22s, border-color .22s, color .22s, transform .22s var(--ease), box-shadow .22s;
}
.audit-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, rgba(228, 192, 106, 0), rgba(228, 192, 106, 0.9), rgba(228, 192, 106, 0));
  transform: scaleX(0);
  transition: transform .24s var(--ease);
}
.audit-tab:hover,
.audit-tab.is-active {
  border-color: rgba(228, 192, 106, 0.52);
  background: rgba(228, 192, 106, 0.11);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}
.audit-tab:hover::after,
.audit-tab.is-active::after { transform: scaleX(1); }
.audit-tab__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.audit-tab__score {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--gold);
}
.audit-panels {
  position: relative;
  min-height: 386px;
}
.audit-panel {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.72fr);
  gap: 24px;
  min-height: 386px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(16, 19, 32, 0.82);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s var(--ease);
}
.audit-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(228, 192, 106, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.audit-panel:hover {
  border-color: rgba(228, 192, 106, 0.32);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}
.audit-panel:hover::before { opacity: 1; }
.audit-panel > * {
  position: relative;
  z-index: 1;
}
.audit-panel.is-active {
  display: grid;
  animation: auditPanelIn .34s var(--ease) both;
}
@keyframes auditPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.audit-panel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.audit-panel__kicker {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.audit-panel h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.audit-panel p {
  margin: 0 0 18px;
  font-family: var(--serif);
  color: var(--ink-soft);
  line-height: 1.6;
}
.audit-panel__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.audit-panel__points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.audit-panel__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fd0a8;
}
.audit-panel__media {
  position: relative;
  align-self: stretch;
  min-height: 280px;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #090b16;
  border: 1px solid var(--line);
  transition: border-color .25s, transform .3s var(--ease);
}
.audit-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .55s var(--ease), filter .55s var(--ease);
}
.audit-panel:hover .audit-panel__media {
  border-color: rgba(228, 192, 106, 0.34);
  transform: translateY(-2px);
}
.audit-panel:hover .audit-panel__image {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}
.audit-panel__media figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(6, 7, 14, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .audit__grid { grid-template-columns: 1fr; }
  .audit-map { width: min(400px, 100%); }
}
@media (max-width: 680px) {
  .audit-map {
    --ring: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    aspect-ratio: auto;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(16, 19, 32, 0.82);
    box-shadow: none;
  }
  .audit-map::before,
  .audit-map::after,
  .audit-map__core { display: none; }
  .audit-node {
    position: static;
    transform: none;
    width: 100%;
    min-height: 42px;
  }
  .audit-node:hover,
  .audit-node.is-active {
    transform: none;
  }
  .audit-panel,
  .audit-panel.is-active { grid-template-columns: 1fr; }
  .audit-panel { padding: 18px; }
  .audit-panel__media { min-height: 220px; }
}

/* ---- Section head (portfolio, private) ------------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 40px;
}
.section-head__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.95;
  max-width: 16ch;
}
.section-head__title em { font-style: normal; display: block; }
.section-head__intro {
  margin: 0;
  max-width: 40ch;
  font-family: var(--serif);
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.section-head__intro a { text-decoration: underline; text-underline-offset: 3px; }
.section-head__intro a:hover { color: var(--ink); }

/* ---- Proof cards (the apps as evidence) ------------------ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.proof-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .25s, transform .25s var(--ease), background .25s, box-shadow .25s var(--ease);
}
.proof-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(228, 192, 106, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 34%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.proof-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(228, 192, 106, 0);
  pointer-events: none;
  transition: border-color .25s;
}
.proof-card:hover {
  border-color: rgba(228, 192, 106, 0.34);
  transform: translateY(-5px);
  background: var(--surface-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.proof-card:hover::before { opacity: 1; }
.proof-card:hover::after { border-top-color: rgba(228, 192, 106, 0.45); }
.proof-card:hover .proof-card__icon {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 22px rgba(228, 192, 106, 0.16);
}
.proof-card:hover .proof-card__title h3 { color: #fff; }
.proof-card:hover .proof-card__feats li::before { transform: translateX(2px); }
.proof-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.proof-card__icon {
  width: 54px; height: 54px; border-radius: 13px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.proof-card__title { flex: 1; min-width: 0; }
.proof-card__title h3 {
  margin: 0 0 3px; font-family: var(--display); font-size: 1.55rem;
  letter-spacing: 0.03em; text-transform: uppercase; line-height: 0.95;
  transition: color .22s;
}
.proof-card__flow {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.proof-card__status { flex-shrink: 0; align-self: flex-start; }
.proof-card__desc {
  margin: 0 0 16px; font-family: var(--serif); font-size: 0.93rem; line-height: 1.5; color: var(--ink-soft);
}
.proof-card__feats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.proof-card__feats li {
  position: relative; padding-left: 16px; font-size: 0.82rem; color: var(--ink-muted); line-height: 1.3;
}
.proof-card__feats li::before {
  content: "›";
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 700;
  transition: transform .2s var(--ease);
}
.proof-card__link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
  transition: gap .2s var(--ease), color .2s;
}
.proof-card__link:hover { gap: 10px; color: #f3d889; }
@media (max-width: 560px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---- Stack / toolbox ------------------------------------- */
.stack { border-top: 1px solid var(--line); }
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.stack-group__label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.stack-group__items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 0.85rem; color: var(--ink-soft);
  transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.stack-chip:hover {
  border-color: rgba(228, 192, 106, 0.58);
  color: var(--ink);
  background: rgba(228, 192, 106, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ---- Product directory (legacy — unused) ----------------- */
.product-index {
  border-top: 1px solid var(--line);
}
.product-row {
  display: grid;
  grid-template-columns: 44px 40px minmax(110px, 1fr) minmax(0, 1.4fr) auto 22px;
  align-items: center;
  gap: 18px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background .22s var(--ease), padding .22s var(--ease), color .22s;
}
a.product-row:hover {
  background: var(--ink);
  color: var(--surface);
  padding-left: 22px;
}
a.product-row:hover .product-row__flow,
a.product-row:hover .product-row__num { color: rgba(245, 242, 236, 0.7); }
a.product-row:hover .product-row__arrow { color: var(--gold, #e4c06a); transform: translate(2px, -2px); }
a.product-row:hover .product-row__status { border-color: rgba(245,242,236,0.4); color: var(--surface); background: transparent; }
.product-row__icon {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.atlas__tip-icon {
  display: block; width: 54px; height: 54px; border-radius: 13px; object-fit: cover;
  margin-bottom: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.product-row__num {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.product-row__name {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.product-row__flow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.product-row__arrow { font-size: 1.1rem; color: var(--ink-muted); transition: transform .25s var(--ease), color .25s; }
@media (max-width: 720px) {
  .product-row { grid-template-columns: 26px 34px 1fr auto; gap: 12px; padding: 16px 8px; }
  .product-row__flow { display: none; }
  .product-row__arrow { display: none; }
}

/* ---- Portfolio (legacy card grid — unused, kept for reference) --- */
.portfolio-feature {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 20px;
  color: inherit;
  transition: border-color .25s, transform .25s var(--ease);
}
.portfolio-feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.portfolio-feature__media {
  background: #111;
  aspect-ratio: 21 / 10;
  overflow: hidden;
}
.portfolio-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}
.portfolio-feature__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 3vw, 28px);
}
.portfolio-feature__foot h3 {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.portfolio-feature__foot p {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink-muted);
  max-width: 48ch;
}
.portfolio-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.portfolio-feature__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}
.portfolio-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s var(--ease);
  color: inherit;
}
.portfolio-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(20, 20, 20, 0.12);
}
.portfolio-card__media {
  position: relative;
  background: #151515;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 44%, rgba(20, 20, 20, 0.26) 100%);
  pointer-events: none;
}
.portfolio-card__scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .45s var(--ease), filter .45s var(--ease);
}
.portfolio-card:hover .portfolio-card__scene {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}
.portfolio-card__icon-wrap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  padding: 4px;
  background: rgba(250, 248, 244, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.18);
}
.portfolio-card__img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
}
.portfolio-card__body {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}
.portfolio-card__body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}
.portfolio-card__body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.portfolio-card__tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

/* A lone card on the last row of the 3-col grid becomes a wide banner
   (icon left, text right) so it never strands in a sea of empty columns. */
@media (min-width: 901px) {
  .portfolio__grid > .portfolio-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, 0.55fr) 1fr;
    align-items: center;
  }
  .portfolio__grid > .portfolio-card:last-child:nth-child(3n + 1) .portfolio-card__media {
    aspect-ratio: 16 / 9;
  }
  .portfolio__grid > .portfolio-card:last-child:nth-child(3n + 1) .portfolio-card__body {
    border-top: none;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 24px 30px;
  }
  .portfolio__grid > .portfolio-card:last-child:nth-child(3n + 1) .portfolio-card__body h3 {
    font-size: 1.5rem;
  }
}

.app__status {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  white-space: nowrap;
}
.app__status[data-live] { color: #1a6b42; border-color: rgba(26, 107, 66, 0.35); background: rgba(26, 107, 66, 0.08); }
.app__status[data-beta] { color: #1a5a6b; border-color: rgba(26, 90, 107, 0.35); background: rgba(26, 90, 107, 0.08); }
.app__status[data-soon] { color: #6b5a1a; border-color: rgba(107, 90, 26, 0.35); background: rgba(107, 90, 26, 0.08); }

/* ---- Invitation ------------------------------------------ */
.invite-cta__card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (max-width: 720px) {
  .invite-cta__card { grid-template-columns: 1fr; }
}
.invite-cta__card h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1;
}
.invite-cta__card h2 em { font-style: normal; }
.invite-cta__card p {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink-soft);
  max-width: 48ch;
}
.invite-cta__note {
  margin-top: 10px !important;
  font-size: 0.9rem !important;
  color: var(--ink-muted) !important;
}
.invite-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.invite-modal[hidden] { display: none; }
.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.invite-modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.15);
}
.invite-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.invite-modal__title {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 8px 0;
}
.invite-modal__hint { color: var(--ink-muted); font-size: 0.92rem; margin: 0 0 20px; }
.invite-modal__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.invite-modal__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  margin-bottom: 12px;
}
.invite-modal__input--error { border-color: #b44; }
.invite-modal__error { color: #a33; font-size: 0.88rem; margin: 0 0 12px; }
.invite-modal__submit { width: 100%; justify-content: center; }
body.invite-open { overflow: hidden; }

/* ---- Contact / footer ------------------------------------ */
.contact__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.contact h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 20px;
}
.contact h2 em { font-style: normal; display: block; }
.contact p {
  font-family: var(--serif);
  color: var(--ink-soft);
  margin: 0 auto 32px;
  max-width: 42ch;
}
.contact p.contact__avail {
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 9px;
  margin: -10px auto 30px; padding: 8px 16px;
  font-size: 0.82rem; letter-spacing: 0.01em; color: var(--ink-soft);
  border: 1px solid rgba(228, 192, 106, 0.32);
  border-radius: 999px;
  background: rgba(228, 192, 106, 0.06);
  max-width: none;
}
.contact__avail-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: #4ad07a; box-shadow: 0 0 0 0 rgba(74, 208, 122, 0.55);
  animation: availPulse 2.4s ease-out infinite;
}
@keyframes availPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 208, 122, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(74, 208, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 208, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .contact__avail-dot { animation: none; } }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact__cv-note {
  margin: 14px 0 0; text-align: center;
  font-size: 0.78rem; color: var(--ink-muted, #8a889c); letter-spacing: 0.01em;
}

/* Contact form */
.contact__form {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__form-title {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 4px;
  max-width: none;
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .contact__row { grid-template-columns: 1fr; } }
.contact__field { display: flex; flex-direction: column; }
.contact__label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.contact__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}
.contact__input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 192, 106, 0.18);
}
.contact__textarea { resize: vertical; min-height: 120px; }
/* Honeypot — visually and aurally hidden, but not display:none (bots skip those) */
.contact__hp {
  position: absolute !important;
  left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}
.contact__submit { align-self: flex-start; justify-content: center; }
.contact__submit[disabled] { opacity: 0.6; cursor: progress; }
.contact__status {
  font-family: var(--sans);
  font-size: 0.88rem;
  margin: 0;
  max-width: none;
  min-height: 1.2em;
}
.contact__status[data-state="success"] { color: #4ad07a; }
.contact__status[data-state="error"] { color: #e0788a; }
.contact__status[data-state="pending"] { color: var(--ink-muted); }

/* Skills & credentials (public) */
.cred__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cred__sub { font: 600 0.74rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.cred__skills .cred__sub + .skills__set + .cred__sub { margin-top: 24px; }
.cred__skills .skills__set { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.cred__certs .cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 860px) { .cred__grid { grid-template-columns: 1fr; gap: 32px; } }

/* P1 — card depth so interior sections match the hero's craft */
.offer-card, .cert-group {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 44px -28px rgba(0, 0, 0, 0.7);
}
.offer-grid-wrap .offer-card, .offer-card { border-color: rgba(228, 192, 106, 0.14); }
/* solid-gold primary action (contact "Email me") */
.btn--gold {
  background: var(--gold); color: #0a0a12; border-color: var(--gold);
  font-weight: 700;
}
.btn--gold:hover { background: #efce7e; border-color: #efce7e; transform: translateY(-2px); }
.btn--gold .btn__icon { color: #0a0a12; }
.foot {
  margin-top: clamp(48px, 8vw, 80px);
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.foot a:hover { color: var(--ink); }

/* ---- Private dossier ------------------------------------- */
.private-root[hidden] { display: none; }
.dossier-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.dossier-banner__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dossier-banner__lock {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  background: transparent;
}
.dossier-banner__lock:hover { border-color: var(--ink); color: var(--ink); }

.exp-grid {
  display: flex; flex-direction: column; gap: 16px; position: relative;
  --rail-x: clamp(38px, 4.8vw, 66px);
  padding-left: calc(var(--rail-x) + 30px);
  --rocket-y: 12px;
}
.exp-grid::before {
  content: ""; position: absolute; left: var(--rail-x); top: 12px; bottom: 12px; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(228, 192, 106, 0.28), rgba(228, 192, 106, 0.05));
}
/* the gold trail the rocket has dived through (top of rail → rocket) */
.exp-rail-fill {
  position: absolute; left: var(--rail-x); top: 12px; width: 2px; transform: translateX(-50%);
  height: calc(var(--rocket-y, 12px) - 12px);
  background: linear-gradient(180deg, rgba(228, 192, 106, 0.3), var(--gold));
  box-shadow: 0 0 9px rgba(228, 192, 106, 0.5); border-radius: 2px; z-index: 1;
}
/* the rocket — dives nose-first down the timeline at your scroll position, thrust
   trailing up; sits in the left gutter, always in view */
.exp-rocket {
  position: absolute; left: var(--rail-x); z-index: 2;
  width: clamp(42px, 5vw, 58px); aspect-ratio: 32 / 56; height: auto;
  top: var(--rocket-y, 12px);
  transform: translate(-50%, -50%) rotate(180deg);
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(255, 157, 60, 0.55));
}
.exp-rocket svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* thrust — flickering exhaust plume */
/* Smooth shimmer (was a hard steps(2) strobe that read as stutter) */
.exp-rocket__thrust { transform-box: fill-box; transform-origin: 50% 0%; animation: thrust .5s ease-in-out infinite alternate; }
.exp-rocket__flame2 { transform-box: fill-box; transform-origin: 50% 0%; animation: thrust2 .36s ease-in-out infinite alternate; }
@keyframes thrust  { 0% { transform: scaleY(0.84) scaleX(0.96); opacity: 0.85; } 100% { transform: scaleY(1.12) scaleX(1.03); opacity: 1; } }
@keyframes thrust2 { 0% { transform: scaleY(0.82); opacity: 0.9; } 100% { transform: scaleY(1.1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .exp-rocket__thrust, .exp-rocket__flame2 { animation: none; transform: scaleY(0.92); }
}
/* The offer-section rocket reuses ROCKET_SVG (.exp-rocket__thrust/__flame2) but is
   parked until the section scrolls into view. Kill its flame flicker while idle so
   only a real launch shows thrust; the experience-timeline rocket is unaffected. */
.offer-launch .exp-rocket__thrust,
.offer-launch .exp-rocket__flame2 { animation: none; }
.offer-launch.is-launching .exp-rocket__thrust { animation: thrust .16s steps(2) infinite; }
.offer-launch.is-launching .exp-rocket__flame2 { animation: thrust2 .1s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) {
  .offer-launch.is-launching .exp-rocket__thrust,
  .offer-launch.is-launching .exp-rocket__flame2 { animation: none; transform: scaleY(0.92); }
}
.exp-card { position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 22px 48px -28px rgba(0,0,0,0.7); }
.exp-card::before {
  content: ""; position: absolute; left: -36px; top: 34px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--gold-deep);
  transition: background .35s ease, border-color .35s ease, box-shadow .4s ease, transform .35s ease;
}
/* Lit by the rocket as it dives past on the rail (JS toggles .exp-card--lit). */
.exp-card--lit::before {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(228, 192, 106, 0.12), 0 0 14px rgba(228, 192, 106, 0.6);
  transform: scale(1.18);
}
.exp-card--current { border-left: 2px solid rgba(228, 192, 106, 0.55); }
.exp-card--current::before {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(228, 192, 106, 0.12), 0 0 14px rgba(228, 192, 106, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .exp-card::before { transition: none; }
}
.exp-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px 28px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.exp-card--current { border-color: var(--line-strong); background: var(--surface-2); }
/* No logo → single column so the body isn't stranded in the 80px logo track. */
.exp-card--no-logo { grid-template-columns: 1fr; }
@media (max-width: 600px) {
  .exp-card { grid-template-columns: 1fr; }
}
.exp-card__logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--bg-soft);
}
.exp-card__period {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.exp-card__badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.exp-card__role {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 8px 0 6px;
  line-height: 1.1;
}
.exp-card__role .at { font-family: var(--sans); font-weight: 500; text-transform: none; font-size: 1rem; color: var(--ink-soft); }
.exp-card__summary, .exp-card__where {
  color: var(--ink-soft);
  font-family: var(--serif);
  margin: 0 0 12px;
  max-width: 62ch;
}
.exp-card__list { color: var(--ink-muted); font-size: 0.92rem; }
.exp-card--linkedin { border-style: dashed; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.cert-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  background: var(--surface);
}
.cert-group__issuer {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.cert-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cert-item:last-child { border-bottom: none; }
.cert-item__name { font-size: 0.92rem; }
.cert-item__date { font-size: 0.75rem; color: var(--ink-muted); }

.profile-grid {
  display: grid;
  grid-template-columns: min(220px, 32%) 1fr;
  gap: clamp(28px, 5vw, 48px);
}
@media (max-width: 720px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.about__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.skills h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.skills__set { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.skill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.edu-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.edu-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.edu-row__degree {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

/* ---- Reveal (subtle) ------------------------------------- */
.reveal { opacity: 1; transform: none; }
html.js-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.js-ready .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Architecture: anatomy of a Marmot app --------------- */
.architecture { border-top: 1px solid var(--line); }

.arch-flow {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
}

.arch-layer {
  --tone: var(--gold);
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--tone);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: border-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.arch-layer:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -22px var(--tone);
}
.arch-layer[data-tone="client"] { --tone: #6e7bf2; }
.arch-layer[data-tone="ai"]     { --tone: #e4c06a; }
.arch-layer[data-tone="edge"]   { --tone: #7cc7ff; }
.arch-layer[data-tone="llm"]    { --tone: #b98cff; }
.arch-layer[data-tone="data"]   { --tone: #5fd0a8; }

.arch-layer__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone);
}
.arch-layer__nodes { display: flex; flex-direction: column; gap: 7px; }
.arch-node {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  line-height: 1.25;
}

.arch-flow__arrow {
  align-self: center;
  color: var(--ink-muted);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.arch-note {
  margin: 26px 0 0;
  max-width: 64ch;
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.arch-note span { color: var(--gold); margin-right: 4px; }

@media (max-width: 860px) {
  .arch-flow { flex-direction: column; }
  .arch-layer { width: 100%; }
  .arch-flow__arrow { transform: rotate(90deg); }
}

/* ---- AI capability map ----------------------------------- */
.capabilities { border-top: 1px solid var(--line); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.cap-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(124, 199, 255, 0.12), transparent 48%),
    linear-gradient(150deg, rgba(228, 192, 106, 0.08), transparent 38%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.cap-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 199, 255, 0.72), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity .25s, transform .25s var(--ease);
  pointer-events: none;
}
.cap-card > * {
  position: relative;
  z-index: 1;
}
.cap-card:hover {
  border-color: rgba(124, 199, 255, 0.32);
  transform: translateY(-5px);
  background: var(--surface-2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.26);
}
.cap-card:hover::before,
.cap-card:hover::after { opacity: 1; }
.cap-card:hover::after { transform: scaleX(1); }
.cap-card:hover .cap-card__num {
  -webkit-text-stroke-color: rgba(228, 192, 106, 0.48);
  transform: translateY(-2px);
}
.cap-card:hover .cap-card__app {
  border-color: rgba(228, 192, 106, 0.5);
  background: rgba(228, 192, 106, 0.08);
}

.cap-card__num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(228, 192, 106, 0.28);
  pointer-events: none;
  transition: -webkit-text-stroke-color .25s, transform .25s var(--ease);
}
.cap-card__name {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  max-width: 16ch;
  color: var(--ink);
}
.cap-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cap-card__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.cap-card__app {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 9px;
  border: 1px solid rgba(228, 192, 106, 0.3);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}

/* ---- Engineering patterns -------------------------------- */
.patterns { border-top: 1px solid var(--line); }

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 4px 40px;
}

.pattern {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .22s var(--ease);
}
.pattern::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--gold);
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity .22s, transform .22s var(--ease);
}
.pattern:hover {
  padding-left: 14px;
}
.pattern:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.pattern:hover .pattern__num {
  opacity: 1;
  transform: translateY(-2px);
}
.pattern:hover .pattern__name { color: #fff; }
.pattern:hover .pattern__body p { color: var(--ink-soft); }
}
.pattern__num {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  flex: 0 0 auto;
  padding-top: 2px;
  opacity: 0.85;
  transition: opacity .2s, transform .2s var(--ease);
}
.pattern__name {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  transition: color .2s;
}
.pattern__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
  transition: color .2s;
}

/* ---- Metrics: by the numbers ----------------------------- */
.metrics {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(228,192,106,0.05), transparent 60%),
    var(--bg-soft);
}

.metric-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px 24px;
}
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 16px;
  border-left: 2px solid rgba(228, 192, 106, 0.4);
  transition: transform .22s var(--ease), border-color .22s;
}
.metric::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 100%;
  background: #5fd0a8;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .24s var(--ease);
}
.metric:hover {
  transform: translateY(-4px);
  border-left-color: rgba(228, 192, 106, 0.78);
}
.metric:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
.metric:hover .metric__value {
  color: #f3d889;
  text-shadow: 0 0 24px rgba(228, 192, 106, 0.18);
}
.metric:hover .metric__label { color: var(--ink-soft); }
.metric__value {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--gold);
  transition: color .2s, text-shadow .2s;
}
.metric__label {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-muted);
  max-width: 22ch;
  transition: color .2s;
}

/* ---- Topbar reset ---------------------------------------- */
.nav {
  top: 14px;
  left: var(--gutter);
  right: var(--gutter);
  width: auto;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 10, 20, 0.76);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.nav.nav--over-atlas,
.nav.scrolled {
  background: rgba(8, 10, 20, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.nav__brand {
  min-height: 40px;
  padding: 0 12px;
}
.nav-map,
.nav__link-node {
  display: none !important;
}
.nav__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav__panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color .2s, background .2s, transform .2s var(--ease);
}
.nav__panel a::before {
  display: none;
}
.nav__panel a:hover,
.nav__panel a.is-active,
.nav__panel a[aria-current="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  transform: none;
  padding-left: 14px;
}
.nav__panel .nav__cta {
  justify-content: center;
  margin-top: 10px;
  color: #101320;
  background: var(--gold);
}
.nav__panel .nav__cta:hover,
.nav__panel .nav__cta.is-active,
.nav__panel .nav__cta[aria-current="true"] {
  color: #101320;
  background: #f1d887;
}

@media (min-width: 861px) {
  .nav__menu { display: none; }
  .nav__panel {
    position: static;
    inset: auto;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .nav__links {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .nav__panel a {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(241, 239, 247, 0.76);
  }
  .nav__panel a:hover,
  .nav__panel a.is-active,
  .nav__panel a[aria-current="true"] {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    padding-left: 13px;
  }
  .nav__panel .nav__cta {
    margin-top: 0;
    margin-left: 2px;
    padding: 0 16px;
  }
}

@media (max-width: 860px) {
  .nav {
    top: 12px;
    left: 14px;
    right: 14px;
    min-height: 58px;
  }
  .nav__menu {
    min-height: 40px;
    padding: 0 15px;
    background: var(--ink);
    color: var(--surface);
  }
  .nav.nav--over-atlas .nav__menu {
    background: var(--ink);
    color: var(--surface);
  }
  .nav__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 28px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(16, 19, 32, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .nav.open > .nav__panel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ---- Atlas system-graph labels (projected from 3D) ------- */
.atlas-graph {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.atlas-nlabel {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 9px;
  border: 1px solid var(--nl, rgba(255,255,255,0.22));
  border-radius: 7px;
  background: rgba(8, 10, 18, 0.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: opacity .25s, border-color .2s, background .2s;
  will-change: transform;
}
.atlas-nlabel__kicker {
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nl, var(--ink-muted));
}
.atlas-nlabel__name {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
}
.atlas-nlabel.is-core { border-width: 1px; background: rgba(14, 12, 6, 0.7); }
.atlas-nlabel.is-core .atlas-nlabel__name { font-size: 0.95rem; }
.atlas-nlabel.is-hot { background: rgba(8, 10, 18, 0.9); border-color: var(--nl); box-shadow: 0 0 24px -6px var(--nl); }

.atlas-nlabel--core   { --nl: #fff0c8; }
.atlas-nlabel--client { --nl: #8a94f6; }
.atlas-nlabel--device { --nl: #e4c06a; }
.atlas-nlabel--model  { --nl: #c4a3ff; }
.atlas-nlabel--data   { --nl: #74d8b3; }

.atlas-tip {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 230px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(8, 10, 18, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-soft);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.9);
  z-index: 3;
  will-change: transform;
}
.atlas-tip strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 3px;
}

/* On small screens labels get dense — show only on the larger immersive band. */
@media (max-width: 600px) {
  .atlas-nlabel__kicker { display: none; }
  .atlas-nlabel { padding: 3px 7px; }
  .atlas-nlabel__name { font-size: 0.72rem; }
}

/* Narrow screens: the labeled graph is illegible; show the constellation only. */
@media (max-width: 760px) {
  .atlas-graph { display: none; }
}

/* ---- System graph section (interactive 3D) --------------- */
.sysgraph { border-top: 1px solid var(--line); }
.sysgraph__scene {
  position: relative;
  height: clamp(440px, 60vh, 660px);
  margin-top: 36px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255, 194, 111, 0.06), transparent 70%),
    radial-gradient(circle at 72% 30%, rgba(121, 182, 255, 0.07), transparent 36%),
    radial-gradient(circle at 24% 72%, rgba(139, 201, 166, 0.05), transparent 34%);
}
.sysgraph__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.sysgraph__scene:not(.is-ready)::after {
  content: "Loading system";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245, 242, 236, 0.45);
}
.sysgraph__hint {
  position: absolute;
  right: clamp(16px, 4vw, 40px);
  bottom: 16px;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(245, 242, 236, 0.6);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* ---- Stack map: the technology infographic --------------- */
.stackmap { border-top: 1px solid var(--line); }
.stackmap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.stackcat {
  --tone: var(--gold);
  border: 1px solid var(--line);
  border-top: 2px solid var(--tone);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px 8px;
}
.stackcat[data-tone="client"] { --tone: #6e7bf2; }
.stackcat[data-tone="device"] { --tone: #e4c06a; }
.stackcat[data-tone="model"]  { --tone: #b98cff; }
.stackcat[data-tone="data"]   { --tone: #5fd0a8; }
.stackcat[data-tone="edge"]   { --tone: #7cc7ff; }
.stackcat[data-tone="core"]   { --tone: #fff0c8; }

.stackcat__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone);
  margin: 0 0 6px;
}

.stackrow {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.stackrow:first-of-type { border-top: none; }
.stackrow__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.stackrow__name {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.stackrow__used {
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
  white-space: nowrap;
}
.stackrow__role {
  margin: 3px 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 40ch;
}
.stackmap__note {
  margin: 30px 0 0;
  max-width: 70ch;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---- Interactive system map (fixed SVG diagram) ---------- */
.sysmap { border-top: 1px solid var(--line); }
.sysmap__stage {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(18px, 2.6vw, 36px);
  align-items: stretch;
}
.sysmap__diagram {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 90% at 50% 40%, rgba(255, 194, 111, 0.06), transparent 70%),
    var(--surface);
  padding: 8px 6px;
  overflow-x: auto;
}
#sysmap-svg { display: block; width: 100%; height: auto; min-width: 560px; }

/* SVG column headers */
.smcol {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* edges */
.sme { fill: none; stroke-width: 1.6; opacity: 0.28; transition: opacity .2s, stroke-width .2s; }
.sme.is-active { opacity: 0.95; stroke-width: 2.6; stroke-dasharray: 7 7; animation: smflow 1.1s linear infinite; }
.sme.is-dim { opacity: 0.08; }
@keyframes smflow { to { stroke-dashoffset: -28; } }

/* nodes */
.smn { cursor: pointer; }
.smn rect {
  fill: var(--surface-2);
  stroke: var(--t, #fff);
  stroke-width: 1.5;
  transition: stroke-width .15s, filter .15s, opacity .2s;
}
.smn__t {
  fill: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 15px;
  pointer-events: none;
}
.smn:hover rect, .smn:focus-visible rect { filter: drop-shadow(0 0 7px var(--t)); outline: none; }
.smn:focus { outline: none; }
.smn.is-active rect { stroke-width: 2.8; filter: drop-shadow(0 0 12px var(--t)); }
.smn.is-near rect { stroke-width: 2; }
.smn.is-dim { opacity: 0.15; }

/* detail panel */
.sysmap__detail {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 2.5vw, 30px);
}
.sysmap__cat {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--t, var(--gold));
  margin-bottom: 10px;
}
.sysmap__name {
  font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; margin: 0 0 14px;
}
.sysmap__role { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink-soft); }
.sysmap__used {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.92rem; color: var(--ink);
}
.sysmap__used span {
  display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px;
}
.sysmap__hint {
  margin: 18px 0 0; font-family: var(--serif); font-style: italic;
  font-size: 0.92rem; color: var(--ink-muted);
}

@media (max-width: 820px) {
  .sysmap__stage { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sme.is-active { animation: none; }
}

/* ---- System map v2: icons, arrows, badges, interaction ---- */
.smn__t { fill: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 14.5px; pointer-events: none; }
.smn__icon path { pointer-events: none; }

/* directional flow arrows */
.smar { transition: opacity .2s; opacity: 0.5; }
.smar.is-active { opacity: 0.95; }
.smar.is-dim { opacity: 0.07; }

/* clickable column headers */
.smcol { cursor: pointer; transition: opacity .15s; }
.smcol:hover, .smcol:focus-visible { text-decoration: underline; text-underline-offset: 4px; outline: none; }

/* detail panel header row */
.sysmap__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sysmap__icon { display: inline-flex; line-height: 0; }
.sysmap__cat { margin: 0; }
.sysmap__badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--b, var(--ink-muted));
  border: 1px solid rgba(255, 255, 255, 0.22); /* fallback for Safari < 16.2 */
  border: 1px solid color-mix(in srgb, var(--b, #888) 45%, transparent);
  border-radius: 999px; padding: 3px 9px; margin-left: auto;
}
/* layer-view component chips */
.sysmap__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sysmap__chip {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28); /* fallback for Safari < 16.2 */
  border: 1px solid color-mix(in srgb, var(--t, #888) 50%, transparent);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.sysmap__chip:hover { background: rgba(255, 255, 255, 0.08); background: color-mix(in srgb, var(--t, #888) 16%, transparent); color: var(--ink); border-color: var(--t); }

/* wider 7-column diagram: keep legible, scroll on small screens */
#sysmap-svg { min-width: 920px; }
.sysmap__used + .sysmap__chips { margin-top: 12px; }

/* 7-column diagram needs full width — stack the detail panel below it */
.sysmap__stage { grid-template-columns: 1fr; gap: 16px; }
.sysmap__diagram { width: 100%; }
@media (min-width: 780px) {
  .sysmap__detail {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    grid-template-rows: auto auto;
    gap: 6px 32px;
    align-items: start;
  }
  .sysmap__top { grid-column: 1; grid-row: 1; }
  .sysmap__name { grid-column: 1; grid-row: 2; align-self: start; margin: 0; }
  .sysmap__role { grid-column: 2; grid-row: 1; margin: 0; }
  .sysmap__used { grid-column: 2; grid-row: 2; margin: 6px 0 0; border: none; padding: 0; }
  .sysmap__chips { grid-column: 2; }
  .sysmap__detail .sysmap__used + .sysmap__chips { grid-row: 2; margin-top: 26px; }
}

/* keep the detail panel simple: full-width stacked block */
@media (min-width: 780px) {
  .sysmap__detail { display: block; }
  .sysmap__detail .sysmap__role { max-width: 72ch; }
  .sysmap__detail .sysmap__name { margin: 0 0 12px; }
  .sysmap__used { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
}

/* hide chips that aren't part of the focused flow (apps stay visible) */
.smn { transition: opacity .22s ease; }
.smn.is-hidden { opacity: 0; pointer-events: none; }

/* ---- Why AI — manifesto / reframe ------------------------ */
.why { border-top: 1px solid var(--line); }
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.why__head { position: sticky; top: 104px; align-self: start; }
.why__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.98; letter-spacing: 0.02em; text-transform: uppercase;
  margin: 14px 0 0; color: #f7f4ee;
}
.why__title em { font-style: normal; color: var(--gold); display: block; }
.why__quote {
  margin: 26px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.4; color: var(--ink);
}
.why__body p {
  font-family: var(--serif);
  font-size: 1.05rem; line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px; max-width: 64ch;
}
.why__body p:last-child { margin-bottom: 0; }
.why__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .why__grid { grid-template-columns: 1fr; gap: 24px; }
  .why__head { position: static; }
}

/* ---- How it's built (folded: map + capabilities + stack) - */
.howbuilt { border-top: 1px solid var(--line); }
.howbuilt__sub {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink);
  margin: clamp(46px, 6vw, 78px) 0 22px;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.howbuilt__sub em { font-style: normal; color: var(--gold); }
.howbuilt .sysmap__stage { margin-top: 8px; }

/* ---- System-map component modal -------------------------- */
.smmodal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.smmodal[hidden] { display: none; }
.smmodal__backdrop { position: absolute; inset: 0; background: rgba(4, 5, 12, 0.74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s ease; }
.smmodal.is-open .smmodal__backdrop { opacity: 1; }
.smmodal__card {
  position: relative; z-index: 1;
  width: min(450px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.92);
  transform: translateY(10px) scale(0.98); opacity: 0;
  transition: transform .24s var(--ease), opacity .24s ease;
}
.smmodal.is-open .smmodal__card { transform: none; opacity: 1; }
.smmodal__close {
  position: absolute; top: 12px; right: 16px;
  background: transparent; border: none; color: var(--ink-muted);
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: color .15s;
}
.smmodal__close:hover { color: var(--ink); }
.smmodal__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.smmodal__name {
  font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; margin: 0 0 12px; color: #f7f4ee;
}
.smmodal__role { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.smmodal__conn { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.smmodal__connlabel {
  display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .smmodal__card, .smmodal__backdrop { transition: none; }
}

/* ---- How it's built — narrative head --------------------- */
.howbuilt__head { max-width: 880px; margin-bottom: 22px; }
.howbuilt__head .section-head__title { margin: 6px 0 0; }
.howbuilt__lead {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.7vw, 1.5rem);
  line-height: 1.55; color: var(--ink-soft);
  max-width: 62ch;
}
.howbuilt__caption {
  margin: 26px 0 14px;
  font-family: var(--serif); font-style: italic;
  font-size: 0.98rem; color: var(--ink-muted);
  max-width: 60ch;
}

/* ---- Work with me — the offer ---------------------------- */
.offer { border-top: 1px solid var(--line); }
.offer__head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 50px); }
.offer__head .section-head__title { margin: 6px 0 0; }
.offer__head .section-head__title em { color: var(--gold); font-style: normal; display: block; }
.offer__lead {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  line-height: 1.55; color: var(--ink-soft); max-width: 64ch;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.offer-card {
  border: 1px solid var(--line);
  border-top: 2px solid rgba(228, 192, 106, 0.4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px 24px 26px;
  transition: border-color .25s, transform .25s var(--ease);
}
.offer-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.offer-card__num { font-family: var(--display); font-size: 1.4rem; color: var(--gold); letter-spacing: 0.04em; }
.offer-card__name { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; margin: 8px 0 8px; color: var(--ink); }
.offer-card p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-muted); }
.offer-card__tags {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.offer-card__tags li {
  font-family: var(--sans); font-size: 0.7rem; line-height: 1;
  letter-spacing: 0.01em; color: var(--gold);
  padding: 5px 9px; border-radius: 6px;
  border: 1px solid rgba(228, 192, 106, 0.26);
  background: rgba(228, 192, 106, 0.07);
}
.offer__cta { margin-top: clamp(30px, 4vw, 46px); }

/* enterprise-strength callout band inside the offer */
.offer-callout {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid rgba(228, 192, 106, 0.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(228, 192, 106, 0.09), rgba(228, 192, 106, 0.02));
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.38; color: var(--ink); max-width: none;
}
.offer-callout strong { color: var(--gold); font-weight: 600; }
.offer-callout + .offer__cta { margin-top: clamp(22px, 3vw, 32px); }

/* ===== Offer launch rocket — fills the top-right gap with a looping takeoff ===== */
.offer .wrap { position: relative; }
.offer-launch {
  position: absolute;
  right: clamp(36px, 8vw, 150px);
  /* Sit low in the section, in front of the scene — the exhaust cloud reads as a
     ground billow at the rocket's base. */
  top: 50%; transform: translateY(calc(-50% + 7vh));
  width: clamp(220px, 26vw, 360px);
  height: clamp(360px, 52vh, 640px);
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  --rocket-w: clamp(82px, 9vw, 134px);          /* one source of truth for rocket scale */
  /* The rocket is centered at 50%; its engine nozzle sits ~half a rocket-width below
     that (SVG nozzle ≈ y45 of a 56-tall box). The ignition flash fires at the nozzle;
     the exhaust cloud sits lower still — a ground billow the rocket lifts up out of. */
  --nozzle-y: calc(50% + var(--rocket-w) * 0.5);
  --smoke-y: calc(50% + var(--rocket-w) * 1.05);
}
.offer-rocket {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--rocket-w);
  aspect-ratio: 32 / 56; height: auto;
  transform: translate(-50%, -50%);            /* stationary on load until the section is in view */
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(255, 157, 60, 0.55));
}
.offer-rocket svg { display: block; width: 100%; height: 100%; overflow: visible; }
.launch-smoke {
  position: absolute;
  left: 50%; top: var(--smoke-y);              /* ground billow below the rocket, not its belly */
  width: clamp(170px, 19vw, 280px); height: clamp(120px, 14vw, 200px);
  transform: translate(-50%, -50%);
}
.smoke-puff {            /* a real cloud silhouette (see .smoke-puff__cloud), outlined */
  position: absolute;
  left: 50%; top: 50%;
  width: 74px; height: 46px;                   /* cloud aspect ratio (640/400) */
  --cloud-fill: rgba(214, 216, 228, 0.30);
  --cloud-line: rgba(96, 100, 126, 0.85);
  opacity: 0;                                  /* hidden until launch fires */
  transform: translate(-50%, -50%) scale(0.12);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}
.smoke-puff__cloud { display: block; width: 100%; height: 100%; overflow: visible; }
.smoke-puff__cloud path {
  fill: var(--cloud-fill);
  stroke: var(--cloud-line);
  stroke-width: 22;                            /* bold outline ("lineout") — scales with the puff */
  stroke-linejoin: round;
}
.smoke-puff--warm {   /* lit by the exhaust — the bright, warm base of the cloud */
  --cloud-fill: rgba(252, 226, 180, 0.40);
  --cloud-line: rgba(206, 128, 68, 0.9);
}
/* Ignition flash — a quick white-gold burst at the nozzle the instant the rocket lifts. */
.launch-flash {
  position: absolute; left: 50%; top: var(--nozzle-y);   /* ignition burst at the nozzle */
  width: clamp(96px, 12vw, 160px); height: clamp(96px, 12vw, 160px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 250, 236, 0.95) 0%, rgba(255, 212, 132, 0.6) 30%, rgba(255, 150, 70, 0.18) 55%, transparent 72%);
  filter: blur(4px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
}
.offer-launch.is-launching .launch-flash { animation: offerFlash 5s ease-out 1 forwards; }
@keyframes offerFlash {
  0%, 33% { opacity: 0;   transform: translate(-50%, -50%) scale(0.2); }
  37%     { opacity: 1;   transform: translate(-50%, -50%) scale(0.9); }   /* ignition */
  45%     { opacity: 0.65; transform: translate(-50%, -50%) scale(1.3); }
  58%     { opacity: 0;   transform: translate(-50%, -50%) scale(1.7); }
  100%    { opacity: 0; }
}
/* one-shot launch — JS adds .is-launching when the section scrolls into view */
.offer-launch.is-launching .offer-rocket { animation: offerLaunch 5s ease-in 1 forwards; }
.offer-launch.is-launching .smoke-puff { animation: offerPuff 5s ease-out 1 forwards; }
@keyframes offerLaunch {
  0%   { transform: translate(-50%, -50%) scale(1);                  opacity: 1; } /* stationary */
  28%  { transform: translate(-50%, -50%) scale(1);                  opacity: 1; } /* charging */
  35%  { transform: translate(-50%, calc(-50% + 10px)) scale(1.02);  opacity: 1; } /* crouch / ignition */
  44%  { transform: translate(-50%, calc(-50% - 9vh))  scale(1.03);  opacity: 1; } /* liftoff */
  90%  { transform: translate(-50%, calc(-50% - 84vh)) scale(1);     opacity: 1; } /* climbing — full size, never zooms out */
  100% { transform: translate(-50%, calc(-50% - 102vh)) scale(1);    opacity: 0; } /* clears the top of the screen */
}
@keyframes offerPuff {
  0%, 30% { transform: translate(-50%, -50%) scale(0.12); opacity: 0; }
  38%     { transform: translate(calc(-50% + var(--dx) * 0.28), calc(-50% + var(--dy, 0px) * 0.22)) scale(0.85); opacity: var(--op, 0.7); }
  58%     { transform: translate(calc(-50% + var(--dx) * 0.62), calc(-50% + var(--dy, 0px) * 0.55 - 8px)) scale(calc(var(--sc, 3) * 0.7)); opacity: var(--op, 0.7); }
  80%     { transform: translate(calc(-50% + var(--dx) * 0.9), calc(-50% + var(--dy, 0px) * 0.9 - 18px)) scale(calc(var(--sc, 3) * 0.92)); opacity: calc(var(--op, 0.7) * 0.5); }
  100%    { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy, 0px) - 24px)) scale(var(--sc, 3)); opacity: 0; }
}
/* Hidden below 960px: at narrow-desktop/tablet widths the absolutely-positioned
   rocket + smoke plume mushrooms over the right-column capability cards. */
@media (max-width: 960px) { .offer-launch { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .offer-rocket { animation: none; transform: translate(-50%, -50%); opacity: 1; }
  .smoke-puff { display: none; }
  .launch-flash { display: none; }
}

/* ===== Hero scroll cue — glowing, bobbing "scroll to explore" invitation ===== */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(16px, 3.2vh, 36px);
  z-index: 6; pointer-events: auto;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--gold, #e4c06a);
  font: 600 0.6rem/1 "DM Sans", sans-serif; letter-spacing: 0.26em; text-transform: uppercase;
  opacity: 0.92; transition: opacity .45s ease;
  animation: scrollBob 1.9s ease-in-out infinite;
}
.scroll-cue__label { filter: drop-shadow(0 0 7px rgba(228, 192, 106, 0.55)); }
.scroll-cue__chev {
  width: 15px; height: 15px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 7px rgba(228, 192, 106, 0.85));
  animation: scrollGlow 1.9s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; }
@keyframes scrollBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes scrollGlow { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  .scroll-cue__chev { animation: none; }
}

/* ===== Apply-all: orbit-dial is now an interactive button ===== */
.orbit-dial {
  appearance: none; -webkit-appearance: none;
  border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer; color: inherit; font: inherit;
}
.orbit-dial:hover .orbit-dial__planet,
.orbit-dial:focus-visible .orbit-dial__planet { filter: drop-shadow(0 0 6px currentColor); }
.orbit-dial:hover { transform: scale(1.04); }
.orbit-dial:active { transform: scale(0.97); }
.orbit-dial:focus { outline: none; }
.orbit-dial:focus-visible {
  outline: 2px solid rgba(228, 192, 106, 0.9); outline-offset: 4px; border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .orbit-dial { transition: none; }
  .orbit-dial:hover, .orbit-dial:active { transform: none; }
}

/* ===== Apply-all: muted-by-default WebAudio sound toggle in the hero ===== */
.atlas-sound {
  position: absolute;
  bottom: clamp(14px, 3vh, 28px); right: clamp(14px, 3vw, 28px);
  z-index: 4; pointer-events: auto;
  font: 600 0.72rem/1 "DM Sans", sans-serif; letter-spacing: 0.04em;
  color: var(--ink-muted, #8a889c);
  background: rgba(7, 9, 18, 0.55);
  border: 1px solid rgba(228, 192, 106, 0.28); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; backdrop-filter: blur(6px);
  transition: color .15s, border-color .15s, background .15s;
}
.atlas-sound:hover { color: var(--ink, #f7f4ee); border-color: rgba(228, 192, 106, 0.55); }
.atlas-sound.is-on { color: #e4c06a; border-color: rgba(228, 192, 106, 0.7); background: rgba(228, 192, 106, 0.08); }
@media (max-width: 720px) { .atlas-sound { bottom: 10px; right: 10px; font-size: 0.66rem; padding: 6px 11px; } }

/* Hero: align content to the left gutter (matching the nav) instead of
   centering it in the 1200px wrap — that centering left a big gap on the
   left on wide screens. The solar system fills the freed space on the right. */
.atlas .wrap { max-width: none; margin-inline: 0; padding-left: clamp(48px, 6vw, 120px); }

/* ---- Planet fact card (click a planet → explore the cosmos) ---- */
.atlas-fact {
  position: absolute;
  left: auto;
  /* align the card's right edge with the console (one gutter from the viewport) */
  right: var(--gutter);
  bottom: auto;
  width: min(420px, 84vw);
  z-index: 4; pointer-events: auto;
  padding: clamp(15px, 1.6vw, 20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 18, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.atlas-fact.is-open { opacity: 1; transform: none; }
.atlas-fact.is-open.is-swapping { opacity: 0.3; transform: translateY(5px); transition: opacity .12s var(--ease), transform .12s var(--ease); }
.atlas-fact[hidden] { display: none; }
.atlas-fact__close { position: absolute; top: 10px; right: 14px; background: transparent; border: none; color: var(--ink-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: color .15s; }
.atlas-fact__close:hover { color: var(--ink); }
.atlas-fact__eyebrow { font-family: var(--serif); font-style: italic; font-size: 0.82rem; color: var(--gold); }
.atlas-fact__name { font-family: var(--display); font-size: clamp(1.45rem, 2.1vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.02; margin: 3px 0 9px; color: #f7f4ee; }
.atlas-fact__text { font-family: var(--serif); font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.atlas-fact__stats { list-style: none; margin: 12px 0 0; padding: 11px 0 0; border-top: 1px solid var(--line); display: flex; gap: 22px; }
.atlas-fact__stats li { display: flex; flex-direction: column; gap: 3px; }
.atlas-fact__k { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.atlas-fact__v { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.atlas-fact__hint { display: block; margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 0.8rem; color: var(--ink-muted); }

/* ---- Easter-egg warp toast ---- */
.atlas-toast {
  position: fixed; left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  z-index: 200; padding: 12px 22px; border-radius: 999px;
  background: rgba(8, 10, 18, 0.92); border: 1px solid var(--gold);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .35s var(--ease);
}
.atlas-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.atlas-toast[hidden] { display: none; }

/* ---- Industries: copy + interactive globe ---------------- */
.trusted__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.trusted__copy { min-width: 0; }
.trusted__copy .trusted__intro { max-width: 46ch; margin-top: 14px; }
.trusted__copy .trusted__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.trusted__cell { transition: background .18s; }
.trusted__cell:hover { background: var(--surface-2); }
.trusted__globe {
  position: relative;
  width: 100%; max-width: 540px; aspect-ratio: 1 / 1;
  justify-self: center;
}
.trusted__globe canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.trusted__globe:not(.is-ready)::after {
  content: "Loading globe"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 242, 236, 0.4);
}
.trusted__globe-hint {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 0.82rem; color: var(--ink-muted);
  pointer-events: none; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
@media (max-width: 820px) {
  .trusted__layout { grid-template-columns: 1fr; gap: 26px; }
  .trusted__globe { max-width: 340px; margin: 4px auto 0; }
}

/* Industries chips → proper icon cards (override the old table grid) */
.trusted__copy .trusted__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; background: none; border: 0; border-radius: 0; overflow: visible;
}
.trusted__cell {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  place-items: stretch;
  transition: border-color .18s, transform .18s var(--ease), background .18s;
}
.trusted__cell:hover { border-color: rgba(228, 192, 106, 0.5); background: var(--surface-2); transform: translateY(-2px); }
.trusted__icon { width: 26px; height: 26px; flex: 0 0 auto; color: var(--gold); }
.trusted__cell-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trusted__name {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.01em; text-transform: none; color: var(--ink); line-height: 1.1;
}
.trusted__note { font-size: 0.72rem; color: var(--ink-muted); line-height: 1.3; }
@media (max-width: 460px) { .trusted__copy .trusted__grid { grid-template-columns: 1fr; } }

/* ---- About: pull-quote + editorial polish ---------------- */
/* Sticky lead: cap its height to the space below the fixed nav so a tall lead
   (long quote) never overflows the viewport and breaks the sticky behavior. */
.about__lead { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 124px); overflow: auto; }
.about__quote {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.2;
  color: var(--gold);
  max-width: 14ch;
}
/* drop-cap on the opening paragraph. ::first-letter only renders when the para
   begins with an actual text character, so a leading <strong>/<a> silently no-ops
   (fail-safe — body just reads as normal copy). */
.about__body p:first-child::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.4em;
  line-height: 0.74;
  padding: 6px 12px 0 0;
  color: var(--gold);
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .about__lead { position: static; }
  .about__quote { max-width: none; }
  /* drop the floated drop-cap on the single-column layout — at narrow widths the
     3.4em float collides with the wrapped second line. */
  .about__body p:first-child::first-letter {
    float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit;
  }
}

/* Living sky — occasional comets streaking across the hero */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.comet {
  position: absolute; width: 92px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(228,192,106,0.5) 55%, rgba(255,255,255,0.95) 100%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  transform: rotate(151deg);
  animation: comet 16s ease-in infinite;
}
.comet:nth-child(1) { top: 12%; left: 80%; animation-delay: 2s; }
.comet:nth-child(2) { top: 5%;  left: 52%; animation-delay: 8.5s; animation-duration: 19s; }
.comet:nth-child(3) { top: 20%; left: 68%; animation-delay: 14s; animation-duration: 13.5s; }
@keyframes comet {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(151deg); }
  2.5% { opacity: 0.9; }
  11%  { opacity: 0; transform: translate3d(-360px, 200px, 0) rotate(151deg); }
  100% { opacity: 0; transform: translate3d(-360px, 200px, 0) rotate(151deg); }
}
@media (prefers-reduced-motion: reduce) { .comet { animation: none; opacity: 0; } }

/* ---- Atlas expansion: one premium Three.js system --------- */
.atlas__console {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  width: min(420px, 100%);
  pointer-events: auto;
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(7, 9, 18, 0.78), rgba(7, 9, 18, 0.42));
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  backdrop-filter: blur(18px) saturate(132%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}
.atlas-fact {
  top: clamp(52px, 7vh, 88px);
  bottom: auto;
}
/* Console as a drawer: minimized to a header by default, expands on click. */
.atlas__console { transition: width .3s var(--ease); }
.atlas__console:not(.is-open) { width: auto; }
.atlas__drawer-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 9px 14px; cursor: pointer;
  border: 1px solid rgba(245, 242, 236, 0.16); border-radius: 11px;
  background: rgba(255, 255, 255, 0.05); color: rgba(245, 242, 236, 0.9);
  font: 700 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color .2s, background .2s, color .2s;
}
.atlas__drawer-toggle:hover { border-color: rgba(228, 192, 106, 0.6); color: #fff; }
.atlas__drawer-chevron {
  color: var(--gold); font-size: 1.1rem; line-height: 1;
  transition: transform .3s var(--ease);
}
.atlas__console.is-open .atlas__drawer-chevron { transform: rotate(90deg); }
.atlas__console-body {
  display: grid; gap: 8px; overflow: hidden;
  max-height: 0; max-width: 0; opacity: 0; pointer-events: none;
  transition: max-height .34s var(--ease), opacity .26s;
}
.atlas__console.is-open .atlas__console-body {
  max-height: 58vh; max-width: 460px; opacity: 1; pointer-events: auto;
}
.atlas__console-hint {
  margin: -1px 2px 1px; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.01em; color: rgba(245, 242, 236, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .atlas__console, .atlas__console-body, .atlas__drawer-chevron { transition: none; }
}
.atlas__modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.atlas-mode {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 242, 236, 0.72);
  font: 700 0.68rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.atlas-mode:hover,
.atlas-mode.is-active {
  transform: translateY(-1px);
  border-color: rgba(228, 192, 106, 0.72);
  background: rgba(228, 192, 106, 0.14);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 28px rgba(228, 192, 106, 0.11);
}
.atlas__console .atlas__chips {
  margin: 0;
  /* inner padding so a top/edge chip's hover lift + frame isn't clipped by overflow */
  padding: 6px 4px 4px;
  max-height: min(34vh, 272px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 192, 106, 0.4) transparent;
}
.atlas__console .atlas-chip {
  flex: 1 1 calc(50% - 5px);
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 11px;
  border-radius: 9px;
}
.atlas__console .atlas__chips { gap: 8px; }
.atlas-chip__icon {
  width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 7px; object-fit: cover;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}
.atlas__console .atlas-chip__num {
  flex: 0 0 auto;
  align-self: center;
  line-height: 1;
}
.atlas__console .atlas-chip__name {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 0.8rem;
  line-height: 1.2;
}
.atlas__toggle {
  display: flex; gap: 4px; margin-bottom: 10px;
  padding: 3px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 22, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.atlas__toggle-btn {
  flex: 1; padding: 6px 10px; border: 0; border-radius: 7px;
  background: transparent; color: rgba(245, 242, 236, 0.7);
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.atlas__toggle-btn.is-active {
  background: rgba(228, 192, 106, 0.16); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(228, 192, 106, 0.5);
}
.atlas__toggle-btn:hover:not(.is-active) { color: #fff; }
.atlas__console .atlas__chips[hidden] { display: none; }
.proof-card__actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.proof-card__link { margin-top: 0; }
.proof-card__atlas,
.cap-card__atlas {
  appearance: none;
  border: 1px solid rgba(124, 199, 255, 0.32);
  border-radius: 999px;
  background: rgba(124, 199, 255, 0.08);
  color: #dcecff;
  padding: 8px 12px;
  font: 700 0.68rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s;
}
.proof-card__atlas:hover,
.cap-card__atlas:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 192, 106, 0.66);
  background: rgba(228, 192, 106, 0.12);
  color: #fff2cf;
}
.cap-card__atlas {
  align-self: flex-start;
  margin-top: 4px;
}
.offer-grid-wrap { position: relative; }
.offer-grid-wrap .offer-grid { position: relative; z-index: 1; }

@media (max-width: 1120px) {
  .atlas__console {
    width: min(390px, 100%);
  }
}
@media (max-width: 920px) {
  .atlas__console {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    align-self: end;
    width: 100%;
    padding: 12px;
  }
  .atlas__hint { display: none; }
  .atlas-fact {
    right: 16px;
    top: clamp(48px, 7vh, 80px);
    width: min(320px, calc(100vw - 32px));
  }
}
@media (max-width: 560px) {
  .atlas__console {
    margin-top: 18px;
    max-height: none;
  }
  .atlas__modes { grid-template-columns: 1fr 1fr; }
  .atlas-mode { min-height: 38px; font-size: 0.62rem; padding-inline: 8px; }
  .atlas__console .atlas__chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 190px;
  }
  .atlas__console .atlas-chip {
    width: 100%;
    padding-inline: 9px;
  }
}

/* ===== Private preview gate ===================================================
   While body.site-preview is active, only the 3D hero (scene + invite box +
   game link) and the contact form are shown; everything else is hidden until a
   valid invitation code lifts the gate (render.js adds the class; invite.js
   removes it on unlock). */
.preview-gate { display: none; }
body.site-preview .preview-gate {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 440px; margin: 6px 0 0;
  /* the hero overlay is pointer-events:none (so the 3D behind it drags) — the
     gate must re-enable input, like the other interactive overlay elements. */
  pointer-events: auto;
  position: relative; z-index: 3;
}
.preview-gate__lead {
  font-family: var(--serif); color: var(--ink-soft); font-size: 1.08rem;
  line-height: 1.5; margin: 0; max-width: 42ch;
}
.preview-gate__row { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-gate__input {
  flex: 1 1 200px; min-width: 0;
  padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(8, 11, 22, 0.62);
  color: var(--ink); font: 600 1rem var(--sans);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.preview-gate__input::placeholder { color: var(--ink-muted); font-weight: 500; }
.preview-gate__input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228, 192, 106, 0.18); }
.preview-gate__input--error { border-color: #e0788a; }
.preview-gate__btn { flex: 0 0 auto; justify-content: center; }
.preview-gate__error { color: #e0788a; font-size: 0.88rem; margin: 0; min-height: 1em; font-family: var(--sans); }

/* Show only the hero + contact; hide the hero's marketing copy, nav links, footer. */
body.site-preview #site-root > * { display: none !important; }
body.site-preview #site-root > .atlas,
body.site-preview #site-root > #contact { display: block !important; }
body.site-preview .atlas__title,
body.site-preview .atlas__lede,
body.site-preview .atlas__id-actions,
body.site-preview .atlas__stats,
body.site-preview .atlas__console,
body.site-preview .atlas__hint,
body.site-preview .scroll-cue { display: none !important; }
body.site-preview .nav__links { display: none !important; }
body.site-preview .foot { display: none !important; }
/* Teaser: never show the planet fact/info card (it surfaces portfolio detail). */
body.site-preview .atlas-fact { display: none !important; }
/* Gate honeypot — hidden from humans, only bots fill it. */
.preview-gate__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.preview-gate__input:disabled, .preview-gate__btn:disabled { opacity: 0.55; cursor: not-allowed; }
