/* 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: #8a889c;
  --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;
}
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); }

.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);
  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 {
  position: relative;
  height: 28px;
  margin: 0 0 8px;
}
.nav-map__rail,
.nav-map__progress {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}
.nav-map__rail {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.22), rgba(255,255,255,0.08));
}
.nav-map__progress {
  right: auto;
  width: var(--nav-progress, 0%);
  background: linear-gradient(90deg, #5fd0a8, var(--gold));
  box-shadow: 0 0 18px rgba(228, 192, 106, 0.22);
  transition: width .28s var(--ease);
}
.nav-map__orb {
  position: absolute;
  top: 50%;
  left: var(--nav-progress, 0%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(228, 192, 106, 0.12), 0 0 20px rgba(228, 192, 106, 0.42);
  transform: translate(-50%, -50%);
  transition: left .32s var(--ease), box-shadow .22s;
}
.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 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(228, 192, 106, 0.42);
  background: rgba(8, 10, 20, 0.88);
  box-shadow: 0 0 0 0 rgba(228, 192, 106, 0);
  flex: 0 0 auto;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.nav__panel a.is-active,
.nav__panel a[aria-current="true"] {
  color: var(--ink);
}
.nav__panel a.is-active .nav__link-node,
.nav__panel a[aria-current="true"] .nav__link-node {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(228, 192, 106, 0.12), 0 0 16px rgba(228, 192, 106, 0.32);
}
.nav__panel a:hover .nav__link-node {
  transform: scale(1.3);
  background: #5fd0a8;
  border-color: #5fd0a8;
  box-shadow: 0 0 18px rgba(95, 208, 168, 0.32);
}
.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 .nav__link-node {
  background: var(--surface);
  border-color: var(--surface);
  box-shadow: none;
}
.nav__panel .nav__cta:hover,
.nav__panel .nav__cta.is-active,
.nav__panel .nav__cta[aria-current="true"] {
  color: var(--surface);
  background: #fff;
}
.nav__panel .nav__cta:hover .nav__link-node,
.nav__panel .nav__cta.is-active .nav__link-node,
.nav__panel .nav__cta[aria-current="true"] .nav__link-node {
  background: var(--surface);
  border-color: var(--surface);
  box-shadow: none;
}
@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-map {
    position: absolute;
    left: 178px;
    right: 12px;
    bottom: 7px;
    height: 12px;
    margin: 0;
    pointer-events: none;
  }
  .nav-map__rail,
  .nav-map__progress {
    left: 14px;
    right: 92px;
  }
  .nav-map__progress { right: auto; }
  .nav-map__orb {
    width: 7px;
    height: 7px;
  }
  .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__link-node {
    width: 6px;
    height: 6px;
    border-color: rgba(228, 192, 106, 0.34);
  }
  .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;
  }
  .nav__panel .nav__cta:hover .nav__link-node,
  .nav__panel .nav__cta.is-active .nav__link-node,
  .nav__panel .nav__cta[aria-current="true"] .nav__link-node {
    background: #101320;
    border-color: #101320;
    box-shadow: none;
  }
}
@media (max-width: 860px) {
  .nav.open > .nav__panel { opacity: 1; transform: none; pointer-events: auto; }
  .nav__panel .nav__cta { margin-top: 20px; }
  .nav-map { display: block; }
}
.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; }
.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(20px, 2.6vw, 42px);
  text-align: left; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}
.atlas-stat { max-width: 130px; }
.atlas-stat__v {
  display: block; font-family: var(--display);
  font-size: 1.85rem; line-height: 1; 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);
}

/* 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; }

@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;
}
.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;
}
.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__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.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; }
.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); }
@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__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: 30ch;
  max-width: none;
}
.offer-callout strong { color: var(--gold); font-weight: 600; }
.offer-callout + .offer__cta { margin-top: clamp(22px, 3vw, 32px); }

/* 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;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(56px, 9vh, 104px);
  width: min(360px, 84vw);
  z-index: 3; pointer-events: auto;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 18, 0.8);
  -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(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.atlas-fact.is-open { opacity: 1; transform: none; }
.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.92rem; color: var(--gold); }
.atlas-fact__name { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; margin: 4px 0 12px; color: #f7f4ee; }
.atlas-fact__text { font-family: var(--serif); font-size: 0.96rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.atlas-fact__stats { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; gap: 28px; }
.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; }
