/* ==========================================================================
   Migralith — design system

   Two voices: a serif for everything that speaks, a grotesk for everything
   that labels. White page, true-black bands, an electric blue accent, and photography
   treated as content instead of decoration.
   ========================================================================== */

@font-face {
  font-family: "Walter Neue";
  src: url("fonts/ABCWalterNeueVariable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces — white page, true-black bands */
  --paper: #fff;
  --surface: #fff;
  --sunk: #f4f7fc;
  --veil: #e6ecf6;
  --night: #0a0a0a;
  --night-soft: #141418;

  /* ink */
  --ink: #0e1230;
  --ink-soft: #2c3454;
  --muted: #5a6480;
  --faint: #98a2b8;
  --line: #e2e7f0;
  --line-dark: #26262c;

  /* text on the black bands */
  --on-dark: #e8eaf0;

  /* accent */
  --blue: #0d6bff;
  --blue-deep: #0a54cc;
  --blue-wash: #e9f1ff;
  --blue-light: #7fa6e8;
  --violet: #8b5cf6;
  --ok: #1fa463;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Walter Neue", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1200px;
  --nav-h: 74px;
  --r: 10px;
  --r-sm: 6px;

  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--blue); color: #fff; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, blockquote { margin: 0; font-family: var(--serif); font-weight: 500; }

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.h1 em { font-style: italic; color: var(--blue); }

.h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.022em;
}
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.18; letter-spacing: -0.015em; }
.h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.p { margin: 0; color: var(--muted); }
.p-sm { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(13, 107, 255, 0.12);
  flex: 0 0 auto;
}

.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.wrap { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }

.band { position: relative; }
.band--paper { background: var(--paper); }
.band--surface { background: var(--surface); }
.band--sunk { background: var(--sunk); }
.band--night { background: var(--night); color: var(--on-dark); }
.band--night .p, .band--night .p-sm { color: rgba(232, 234, 240, 0.62); }
.band--night .lead { color: rgba(232, 234, 240, 0.74); }
.band--night .kicker { color: rgba(232, 234, 240, 0.55); }

.sec { padding-block: clamp(72px, 9vw, 124px); }
.sec--tight { padding-block: clamp(56px, 6vw, 84px); }
.sec--flush-top { padding-top: 0; }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .kicker { margin-bottom: 20px; }
.sec-head .h2 { margin-bottom: 18px; }

.sec-head--wide {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: end;
}
.sec-head--wide .lead { max-width: 46ch; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .sec-head--wide { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s linear;
}
.nav.is-stuck { box-shadow: 0 10px 30px -24px rgba(14, 18, 48, 0.5); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 36px; }
.nav__logo { display: flex; align-items: center; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__link { font-size: 15px; color: var(--ink-soft); transition: color 0.14s linear; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--blue); }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  position: relative;
  cursor: pointer;
}
.nav__burger i, .nav__burger i::before, .nav__burger i::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.16s linear;
}
.nav__burger i { top: 20px; }
.nav__burger i::before { left: 0; top: -5px; }
.nav__burger i::after { left: 0; top: 5px; }
body.nav-open .nav__burger i { opacity: 0; }
body.nav-open .nav__burger i::before { transform: translateY(5px) rotate(45deg); opacity: 1; }
body.nav-open .nav__burger i::after { transform: translateY(-5px) rotate(-45deg); opacity: 1; }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s linear, transform 0.22s var(--ease);
  }
  body.nav-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 18px; }
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-soft), color 0.18s var(--ease-soft),
              border-color 0.18s var(--ease-soft), transform 0.22s var(--ease);
}
.btn .arr { transition: transform 0.24s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:hover { transform: translateY(-1px); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }

/* The nav action: black fill behind a violet ring, which is the thing the eye lands on */
.btn--glow {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 1.5px var(--violet), 0 0 16px -2px rgba(139, 92, 246, 0.55);
}
.btn--glow:hover {
  background: #000;
  box-shadow: 0 0 0 1.5px var(--violet), 0 0 22px 0 rgba(139, 92, 246, 0.75);
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--blue-wash); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost-dark { border-color: rgba(232, 234, 240, 0.26); color: var(--on-dark); }
.btn--ghost-dark:hover { border-color: var(--on-dark); }
.btn--nav { min-height: 42px; padding: 0 18px; font-size: 14px; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.16s linear;
}
.tlink:hover { border-color: var(--blue); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(48px, 6vw, 86px); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
  padding-top: 26px;
}
.hero__copy > .h1 { margin: 24px 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }

.hero__trust { display: flex; align-items: center; gap: 14px; margin-top: 42px; }
.faces { display: flex; }
.faces span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid var(--paper);
  margin-left: -10px;
  background: var(--veil);
  color: var(--ink-soft);
}
.faces span:first-child { margin-left: 0; background: var(--blue-wash); }
.faces span:nth-child(3) { background: #dff0e7; }
.hero__trust p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hero__trust b { color: var(--ink); }

.hero__visual { position: relative; }
.hero__photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--veil); }
.hero__photo img {
  width: 100%;
  height: clamp(420px, 52vw, 560px);
  object-fit: cover;
  transform-origin: 56% 50%;
  animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom { to { transform: scale(1.045); } }

.float {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(14, 18, 48, 0.1);
  box-shadow: 0 14px 40px -18px rgba(14, 18, 48, 0.45);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.float--scan {
  left: -28px;
  top: 32px;
  width: 290px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.float--scan div { display: flex; flex-direction: column; min-width: 0; }
.float--scan b { font-family: var(--sans); font-size: 12.5px; font-weight: 600; }
.float--scan small { font-size: 10.5px; color: var(--muted); }
.float--scan strong { margin-left: auto; font-family: var(--sans); font-size: 12px; }
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 164, 99, 0.4); }
  70% { box-shadow: 0 0 0 9px rgba(31, 164, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 164, 99, 0); }
}

.float--finding { left: 8px; bottom: 26px; width: 320px; padding: 16px; }
.float--finding > span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.float--finding > b { display: block; font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 6px 0 14px; }
.float--finding div { display: flex; gap: 8px; }
.float--finding button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  padding: 7px 13px;
  font-size: 11.5px;
  cursor: pointer;
}
.float--finding button:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }

.float--metric { right: -22px; top: 54%; padding: 15px 20px; }
.float--metric b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1; }
.float--metric span { font-size: 10.5px; color: var(--muted); }

.hero__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(13, 107, 255, 0.26);
  border-radius: 50%;
  right: -44px;
  top: -34px;
  animation: spin 11s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-left: 26px; }
  .float--metric { right: -14px; }
}
@media (max-width: 620px) {
  .hero__visual { margin-left: 0; }
  .hero__visual::before { display: none; }
  .float--scan { left: 10px; top: 14px; width: 250px; }
  .float--finding { left: 10px; right: 10px; width: auto; }
  .float--metric { right: 8px; top: 48%; }
}

/* --------------------------------------------------------------------------
   Logo belt
   -------------------------------------------------------------------------- */

.belt-row {
  margin-top: clamp(56px, 7vw, 82px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 40px;
}
.belt-row > span {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.belt {
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.belt__track {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex: 0 0 auto;
  animation: belt 34s linear infinite;
}
.belt:hover .belt__track { animation-play-state: paused; }
.belt img { height: 24px; width: auto; flex: 0 0 auto; opacity: 0.46; transition: opacity 0.22s linear; }
.belt img:hover { opacity: 1; }
@keyframes belt { to { transform: translate3d(-100%, 0, 0); } }

@media (max-width: 760px) {
  .belt-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .belt { width: 100%; }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards { display: grid; gap: 14px; }
.cards--3 { grid-template-columns: 1.16fr 0.92fr 0.92fr; }
.cards--even3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s linear, box-shadow 0.35s var(--ease);
}
a.card:hover, .card--hover:hover {
  transform: translateY(-5px);
  border-color: #b9d0f8;
  box-shadow: 0 20px 44px -26px rgba(14, 18, 48, 0.35);
}
.card--sunk { background: var(--sunk); }
.card--dark { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.card--dark .p, .card--dark .p-sm { color: rgba(232, 234, 240, 0.6); }
.card--tall { min-height: 440px; }

.card__top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card__badge {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--blue);
  transition: background-color 0.24s, color 0.24s, transform 0.35s var(--ease);
}
.card--dark .card__badge { border-color: rgba(232, 234, 240, 0.22); color: var(--blue-light); }
a.card:hover .card__badge, .card--hover:hover .card__badge {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: rotate(8deg);
}
.card .h3 { margin: 40px 0 10px; }
.card--flat .h3 { margin-top: 24px; }
.card__foot { margin-top: auto; padding-top: 22px; }

.snippet { margin-top: auto; background: var(--sunk); border-radius: 8px; padding: 18px; }
.card--dark .snippet { background: rgba(232, 234, 240, 0.07); }
.bubble {
  width: 82%;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 7px;
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.bubble.shown { opacity: 1; transform: none; }
.bubble--q { background: var(--night); color: var(--on-dark); margin-left: auto; }
.bubble--a { background: #fff; border: 1px solid var(--line); }
.typing { display: flex; gap: 4px; opacity: 0; transition: opacity 0.3s linear; }
.typing.shown { opacity: 1; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); animation: typing 0.85s infinite alternate; }
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing { from { transform: translateY(0); opacity: 0.35; } to { transform: translateY(-4px); opacity: 1; } }

.bars { height: 92px; margin-top: 18px; display: flex; align-items: flex-end; gap: 7px; }
.bars i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 0.9s var(--ease) both; }
.bars i:nth-child(2) { animation-delay: 0.08s; }
.bars i:nth-child(3) { animation-delay: 0.16s; }
.bars i:nth-child(4) { animation-delay: 0.24s; }
.bars i:nth-child(5) { animation-delay: 0.32s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.ticks { list-style: none; margin: auto 0 0; padding: 0; }
.ticks li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(232, 234, 240, 0.14);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ticks span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 10px;
  flex: 0 0 auto;
}

.figure-big { font-family: var(--serif); font-size: clamp(44px, 5vw, 62px); line-height: 1; display: block; }

@media (max-width: 1000px) {
  .cards--3, .cards--4, .cards--even3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .cards--3, .cards--4, .cards--even3 { grid-template-columns: 1fr; }
  .cards--3 > :first-child { grid-column: auto; }
  .card--tall { min-height: 0; }
}

/* --------------------------------------------------------------------------
   Photo split
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--copy-first .split__photo { order: 2; }

.split__photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--veil); margin: 0; }
.split__photo img {
  width: 100%;
  height: clamp(380px, 48vw, 600px);
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--pz, 1.06));
  transition: transform 1.2s var(--ease);
}
.split__photo.is-in img { --pz: 1; }
.split__photo figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 20px 22px;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
}
.split__photo figcaption span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(232, 234, 240, 0.62); }
.split__photo figcaption b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; margin-top: 7px; }

.split__copy .h2 { margin-bottom: 22px; }
.split__copy .p { margin-bottom: 16px; }
.split__list { list-style: none; margin: 28px 0 0; padding: 0; }
.split__list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
}
.split__list li::before { content: "—"; color: var(--blue); flex: 0 0 auto; }
.band--night .split__list li { border-color: var(--line-dark); color: rgba(232, 234, 240, 0.72); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--copy-first .split__photo { order: 0; }
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 76px 30px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.band--night .timeline li { border-color: var(--line-dark); }
.timeline time { font-family: var(--sans); font-size: 13px; color: var(--blue); font-weight: 600; padding-top: 2px; }
.timeline .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 10px;
  opacity: 0.6;
}
.timeline .h4 { margin-bottom: 5px; }

@media (max-width: 620px) {
  .timeline li { grid-template-columns: 64px 1fr; }
  .timeline .dot { display: none; }
}

/* --------------------------------------------------------------------------
   Pipeline tabs
   -------------------------------------------------------------------------- */

.pipe { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.band--night .pipe { border-color: var(--line-dark); background: var(--night-soft); }
.pipe__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); position: relative; }
.band--night .pipe__tabs { border-color: var(--line-dark); }
.pipe__tab {
  min-height: 72px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 14px 24px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s linear, background-color 0.2s linear;
}
.band--night .pipe__tab { border-color: var(--line-dark); }
.pipe__tab:last-child { border-right: 0; }
.pipe__tab:hover { color: var(--ink); }
.band--night .pipe__tab:hover { color: var(--on-dark); }
.pipe__tab[aria-selected="true"] { color: var(--ink); background: var(--sunk); }
.band--night .pipe__tab[aria-selected="true"] { color: var(--on-dark); background: rgba(232, 234, 240, 0.06); }
.pipe__tab small { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; }
.pipe__tab span { font-family: var(--serif); font-size: 21px; letter-spacing: -0.015em; }

.pipe__ind { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: var(--blue); transition: transform 0.4s var(--ease), width 0.4s var(--ease); }

.pipe__panels { padding: clamp(28px, 4vw, 52px); }
.pipe__panel { display: none; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); }
.pipe__panel[data-active] { display: grid; animation: fadeIn 0.45s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pipe__panel .h3 { margin-bottom: 14px; }
.chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.band--night .chip { border-color: var(--line-dark); }
.pipe__facts { list-style: none; margin: 0; padding: 0; }
.pipe__facts li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.band--night .pipe__facts li { border-color: var(--line-dark); color: rgba(232, 234, 240, 0.72); }
.pipe__facts b { color: var(--blue); font-family: var(--sans); font-weight: 600; font-size: 12px; padding-top: 3px; }

@media (max-width: 900px) {
  .pipe__tabs { grid-template-columns: 1fr; }
  .pipe__tab { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .pipe__ind { display: none; }
  .pipe__panel[data-active] { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Engagement roles
   -------------------------------------------------------------------------- */

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 28px; }
.role__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.role:nth-child(2) .role__avatar { background: #dff0e7; color: #13704a; }
.role:nth-child(3) .role__avatar { background: var(--veil); color: var(--ink-soft); }
.role .h4 { margin-bottom: 6px; }
.role__meta { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }

@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Testimonial slider
   -------------------------------------------------------------------------- */

.quotes__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.quotes__track { position: relative; min-height: 300px; }
.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
}
.quote blockquote em { font-style: italic; color: var(--blue); }
.band--night .quote blockquote em { color: var(--blue-light); }
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.quote__by p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.quote__by b { font-family: var(--sans); font-weight: 600; }
.quote__by span { color: var(--muted); }
.band--night .quote__by span { color: rgba(232, 234, 240, 0.6); }

.quotes__nav { display: flex; align-items: center; gap: 10px; margin-top: 36px; }
.quotes__dot {
  width: 30px;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: var(--line);
  cursor: pointer;
  transition: background-color 0.25s linear, width 0.3s var(--ease);
}
.band--night .quotes__dot { background: var(--line-dark); }
.quotes__dot[aria-selected="true"] { background: var(--blue); width: 52px; }

.figures { display: grid; }
.figures article { padding: 22px 0; border-top: 1px solid var(--line); }
.band--night .figures article { border-color: var(--line-dark); }
.figures article:last-child { border-bottom: 1px solid var(--line); }
.band--night .figures article:last-child { border-color: var(--line-dark); }
.figures b { display: block; font-family: var(--serif); font-size: clamp(38px, 4vw, 52px); line-height: 1; margin-bottom: 8px; }
.figures span { font-size: 13px; color: var(--muted); }
.band--night .figures span { color: rgba(232, 234, 240, 0.58); }

@media (max-width: 900px) {
  .quotes__grid { grid-template-columns: 1fr; gap: 44px; }
  .quotes__track { min-height: 340px; }
}

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */

.founder { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.founder__portrait { position: relative; border-radius: var(--r); overflow: hidden; background: var(--veil); }
.founder__portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.founder blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 20px 0 24px;
}
.founder__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.band--night .founder__meta { border-color: var(--line-dark); }
.founder__name b { display: block; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.founder__name span { font-size: 13px; color: var(--muted); }
.band--night .founder__name span { color: rgba(232, 234, 240, 0.6); }

@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.18s linear;
}
.faq__q:hover { color: var(--blue); }
.faq__sign { position: relative; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 8px; }
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--blue);
  transition: transform 0.32s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item.is-open .faq__sign::after { transform: rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height 0.38s var(--ease); }
.faq__a-in {
  padding: 0 72px 28px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.28s linear 0.06s;
}
.faq__item.is-open .faq__a-in { opacity: 1; }

@media (max-width: 680px) { .faq__a-in { padding-right: 0; } }

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 32px; display: flex; flex-direction: column; }
.plan--feature { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.plan--feature .p { color: rgba(232, 234, 240, 0.62); }
.plan__tag {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-deep);
  margin-bottom: 20px;
}
.plan--feature .plan__tag { background: rgba(232, 234, 240, 0.12); color: var(--blue-light); }
.plan__price { font-family: var(--serif); font-size: 30px; margin: 16px 0 10px; }
.plan__price small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.plan--feature .plan__price small { color: rgba(232, 234, 240, 0.58); }
.plan__foot { margin-top: auto; padding-top: 26px; }

@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Booking
   -------------------------------------------------------------------------- */

.book { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  height: 50px;
  padding: 0 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: border-color 0.16s linear, box-shadow 0.16s linear;
}
.field textarea { height: auto; min-height: 130px; padding: 14px 15px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 107, 255, 0.1);
}
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }
.form__note.is-ok { color: var(--ok); font-weight: 600; }

.aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px 30px; }
.aside--night { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.aside__person { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.aside--night .aside__person { border-color: var(--line-dark); }
.aside__person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.aside__row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.aside--night .aside__row { border-color: var(--line-dark); }
.aside__row span:last-child { color: var(--muted); text-align: right; }
.aside--night .aside__row span:last-child { color: rgba(232, 234, 240, 0.6); }

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  color: #eef1f7;
  padding: clamp(48px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: end;
  margin-block: clamp(60px, 8vw, 104px);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.93) 24%, rgba(10, 10, 10, 0.7));
}
.cta .kicker { color: rgba(238, 241, 247, 0.6); }
.cta .p { color: rgba(238, 241, 247, 0.74); margin-bottom: 26px; }

@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot { background: var(--night); color: var(--on-dark); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 44px; padding-top: clamp(48px, 6vw, 72px); }
.foot__brand p { color: rgba(232, 234, 240, 0.55); max-width: 32ch; margin: 18px 0 0; font-size: 14px; }
.foot h4 { margin: 0 0 18px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; color: rgba(232, 234, 240, 0.45); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot a { font-size: 14px; color: rgba(232, 234, 240, 0.78); transition: color 0.14s linear; }
.foot a:hover { color: #fff; }
.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: clamp(44px, 5vw, 68px);
  padding: 22px 0 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: rgba(232, 234, 240, 0.5);
}
.foot__social { display: flex; gap: 8px; margin-left: auto; }
.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(232, 234, 240, 0.08);
  color: var(--on-dark);
  transition: background-color 0.16s linear;
}
.social:hover { background: var(--blue); }

@media (max-width: 860px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__social { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   The hero sits on black: borders, logos and badges invert
   -------------------------------------------------------------------------- */

.band--night .belt-row { border-color: var(--line-dark); }
.band--night .belt-row > span { color: var(--faint); }
.band--night .belt img { opacity: 0.55; }
.band--night .belt img:hover { opacity: 1; }

.band--night .faces span { border-color: var(--night); background: #1d1d22; color: var(--on-dark); }
.band--night .faces span:first-child { background: #11305c; color: #bcd5ff; }
.band--night .faces span:nth-child(3) { background: #16321f; color: #8fd3a8; }
.band--night .hero__trust p { color: rgba(232, 234, 240, 0.62); }
.band--night .hero__trust b { color: #fff; }
.band--night .hero__visual::before { border-color: rgba(139, 92, 246, 0.42); }

/* --------------------------------------------------------------------------
   Footer on white, the way the reference site closes
   -------------------------------------------------------------------------- */

.foot { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.foot__brand p { color: var(--muted); max-width: 32ch; margin: 18px 0 0; font-size: 14px; }
.foot h4 { color: var(--faint); }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--blue); }
.foot__base { border-top: 1px solid var(--line); color: var(--muted); }
.social { background: var(--sunk); color: var(--ink); }
.social:hover { background: var(--blue); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .belt__track, .hero__photo img, .hero__visual::before, .pulse, .typing i, .bars i { animation: none !important; }
  .split__photo img { --pz: 1; --py: 0px; }
  .quote { transition: none; }
}

/* Roles stacked beside a photograph instead of across three columns */
.roles--stack { grid-template-columns: 1fr; gap: 12px; }
.roles--stack .role { padding: 22px 22px 24px; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.roles--stack .role__avatar { margin-bottom: 0; }
.roles--stack .role > :not(.role__avatar) { grid-column: 2; }

@media (max-width: 900px) {
  .roles--stack .role { grid-template-columns: 1fr; }
  .roles--stack .role > :not(.role__avatar) { grid-column: auto; }
  .roles--stack .role__avatar { margin-bottom: 16px; }
}

/* The portrait sits on a near-black panel; a hairline ring keeps it from melting in */
.aside--night .aside__person img { box-shadow: 0 0 0 1px rgba(232, 234, 240, 0.22); }

/* Inlined wordmark: inherits whatever surface it sits on */
.logo { display: block; height: 26px; width: auto; color: inherit; }
.nav__logo:hover { color: var(--blue); }
.nav__logo .logo { transition: color 0.14s linear; }

/* ==========================================================================
   Above the fold — rebuilt
   A tinted near-black rather than flat #000, a three-step muted scale, and a
   monospace voice for every label so the chrome reads engineered, not generic.
   ========================================================================== */

:root {
  --night: #0a0b0e;
  --night-soft: #111318;
  --panel: #14161c;
  --on-dark: #e9ecf3;

  --dim-1: rgba(233, 236, 243, 0.66);
  --dim-2: rgba(233, 236, 243, 0.46);
  --dim-3: rgba(233, 236, 243, 0.26);
  --hair: rgba(190, 210, 255, 0.12);
  --hair-soft: rgba(190, 210, 255, 0.07);

  --blue: #2e6bff;
  --blue-deep: #1b4fd6;
  --amber: #ffb020;
  --alert: #ff4d3d;
  --ok: #34d374;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 66px;
  --bar-h: 38px;
}

.band--night, .foot { --line-dark: var(--hair); }

/* --------------------------------------------------------------------------
   Announcement strip — says what the company is before anything else
   -------------------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 51;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  background: var(--night);
  color: var(--dim-1);
  border-bottom: 1px solid var(--hair-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar__in { display: flex; align-items: center; gap: 14px; width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.topbar__tag { color: var(--amber); flex: 0 0 auto; }
.topbar__sep { color: var(--dim-3); }
.topbar p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar a {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--on-dark);
  border-bottom: 1px solid var(--dim-3);
  padding-bottom: 1px;
  transition: border-color 0.15s linear;
}
.topbar a:hover { border-color: var(--on-dark); }

@media (max-width: 860px) {
  .topbar__in { width: calc(100% - 40px); }
  .topbar p { display: none; }
  .topbar a { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Header — logo left, nav centred, two actions right
   -------------------------------------------------------------------------- */

.nav {
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hair);
  color: var(--on-dark);
}
.nav.is-stuck { box-shadow: 0 16px 40px -30px #000; }
.nav__in { height: var(--nav-h); gap: 0; }
.nav__logo { color: var(--on-dark); flex: 0 0 auto; }
.nav__logo:hover { color: #fff; }

.nav__links {
  margin: 0 auto;
  gap: 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.nav__link, .nav__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--dim-1);
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.15s linear;
}
.nav__link::after, .nav__trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--ease);
}
.nav__link:hover, .nav__trigger:hover,
.nav__link[aria-current="page"] { color: var(--on-dark); }
.nav__link:hover::after, .nav__trigger:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__trigger svg { transition: transform 0.26s var(--ease); }
.nav__item.is-open .nav__trigger { color: var(--on-dark); }
.nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.btn--micro {
  min-height: 38px;
  padding: 0 17px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 4px;
}
.btn--quiet { color: var(--dim-1); border-color: var(--hair); }
.btn--quiet:hover { color: var(--on-dark); border-color: var(--dim-2); }
.btn--glow {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(46, 107, 255, 0.5), 0 8px 24px -10px rgba(46, 107, 255, 0.85);
}
.btn--glow:hover { background: var(--blue-deep); box-shadow: 0 0 0 1px rgba(46, 107, 255, 0.75), 0 10px 28px -8px rgba(46, 107, 255, 0.95); }

/* The product menu is a real panel, not a stack of links */
.nav__item { position: relative; }
.megamenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: 680px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 10px;
  box-shadow: 0 32px 70px -30px #000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s linear, transform 0.26s var(--ease);
  text-transform: none;
  letter-spacing: -0.01em;
}
.nav__item.is-open .megamenu { opacity: 1; pointer-events: auto; transform: none; }
.megamenu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.megamenu__card { display: block; padding: 16px 16px 18px; border-radius: 7px; transition: background-color 0.16s linear; }
.megamenu__card:hover { background: rgba(190, 210, 255, 0.06); }
.megamenu__card b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--on-dark);
  margin: 12px 0 6px;
}
.megamenu__card span { font-size: 13px; line-height: 1.5; color: var(--dim-2); }
.megamenu__ic { width: 20px; height: 20px; color: var(--blue); }
.megamenu__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--hair-soft);
  font-size: 13px;
  color: var(--dim-2);
}
.megamenu__foot a { margin-left: auto; color: var(--blue); font-weight: 600; white-space: nowrap; }

.nav__burger { border-color: var(--hair); }
.nav__burger i, .nav__burger i::before, .nav__burger i::after { background: var(--on-dark); }

@media (max-width: 1040px) {
  .nav__links {
    position: fixed;
    inset: calc(var(--bar-h) + var(--nav-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 20px 24px;
    background: var(--night);
    border-bottom: 1px solid var(--hair);
  }
  .nav__link, .nav__trigger { padding: 15px 0; border-bottom: 1px solid var(--hair-soft); justify-content: space-between; }
  .nav__link::after, .nav__trigger::after { display: none; }
  .megamenu {
    position: static;
    width: auto;
    translate: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 0 10px;
  }
  .nav__item.is-open .megamenu { display: block; }
  .megamenu__grid { grid-template-columns: 1fr; }
  .megamenu__card { padding: 12px 0; }
  .megamenu__card b { margin-top: 8px; }
  .nav__actions { display: none; }
  .nav__links .nav__actions { display: flex; margin-top: 20px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-top: 0; background: var(--night); overflow: hidden; }
.hero__field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 18% 0%, rgba(46, 107, 255, 0.16), transparent 62%),
    linear-gradient(transparent 0 calc(100% - 1px), var(--hair-soft) calc(100% - 1px)) 0 0 / 100% 76px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--hair-soft) calc(100% - 1px)) 0 0 / 76px 100%;
  mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 94%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 56%, transparent 94%);
}
.hero__grid { padding-top: clamp(52px, 6vw, 84px); padding-bottom: clamp(44px, 5vw, 64px); align-items: start; }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-1);
}
.stamp b { color: var(--on-dark); font-weight: 500; }
.stamp i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

.hero h1 { margin: 26px 0 22px; color: #fff; }
.hero h1 .quiet { color: var(--dim-2); font-weight: 400; }

/* The cycling subject: one line, fixed height, words slide through */
.cycle {
  display: inline-grid;
  vertical-align: baseline;
  overflow: hidden;
  height: 1em;
  text-align: left;
}
.cycle span {
  grid-area: 1 / 1;
  color: var(--blue);
  font-style: italic;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.75em);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.cycle span.is-in { opacity: 1; transform: none; }
.cycle span.is-out { opacity: 0; transform: translateY(-0.75em); }

.hero__lede { color: var(--dim-1); max-width: 52ch; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; }
.hero__actions { gap: 12px; margin-top: 30px; }
.hero__micro { margin: 16px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dim-2); }

/* Stack check — the one thing a visitor can actually do up here */
.stackcheck { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--hair); }
.stackcheck__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--dim-1);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.16s linear, color 0.16s linear, background-color 0.16s linear;
}
.chip-btn:hover { color: var(--on-dark); border-color: var(--dim-3); }
.chip-btn[aria-pressed="true"] { background: rgba(46, 107, 255, 0.14); border-color: var(--blue); color: #fff; }
.stackcheck__out {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 0;
  min-height: 42px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim-1);
}
.stackcheck__out b { color: var(--on-dark); font-weight: 600; }
.stackcheck__out::before {
  content: "→";
  color: var(--blue);
  flex: 0 0 auto;
  font-family: var(--mono);
}

.reads { margin-top: 30px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-3); line-height: 1.9; }
.reads b { color: var(--dim-2); font-weight: 500; }

/* --------------------------------------------------------------------------
   Hero panel — one coherent instrument instead of scattered cards
   -------------------------------------------------------------------------- */

.hero__visual { position: relative; }
.hero__visual::before { display: none; }
.hero__photo { border: 1px solid var(--hair); }
.hero__photo img { height: clamp(300px, 34vw, 400px); opacity: 0.82; }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.1), rgba(10, 11, 14, 0.78));
}

.scan {
  position: relative;
  margin-top: -84px;
  margin-left: 24px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 10px;
  box-shadow: 0 40px 80px -40px #000;
  overflow: hidden;
}
.scan__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--dim-2);
}
.scan__bar b { color: var(--on-dark); font-weight: 500; }
.scan__bar .t { margin-left: auto; color: var(--dim-2); }
.scan__body { padding: 16px; }
.scan__row { display: grid; grid-template-columns: 112px 1fr 46px; align-items: center; gap: 12px; padding: 7px 0; font-family: var(--mono); font-size: 11px; color: var(--dim-2); }
.scan__track { height: 4px; border-radius: 99px; background: rgba(190, 210, 255, 0.1); overflow: hidden; }
.scan__track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #7aa2ff); transition: width 1.4s var(--ease); }
.scan.is-in .scan__track i { width: var(--w); }
.scan__row span:last-child { text-align: right; color: var(--on-dark); }

.scan__find {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--hair-soft);
  background: rgba(255, 176, 32, 0.05);
}
.scan__find i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-top: 6px; flex: 0 0 auto; }
.scan__find b { display: block; font-size: 13.5px; color: var(--on-dark); font-weight: 600; }
.scan__find small { font-family: var(--mono); font-size: 10.5px; color: var(--dim-2); }
.scan__find em {
  margin-left: auto;
  flex: 0 0 auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 176, 32, 0.35);
  border-radius: 4px;
  padding: 4px 7px;
}

.scan__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--hair-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim-3);
}
.scan__foot b { color: var(--on-dark); font-family: var(--serif); font-size: 17px; letter-spacing: -0.01em; text-transform: none; }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-left: 0; }
  .scan { margin-left: 0; margin-top: -64px; }
}
@media (max-width: 620px) {
  .scan__row { grid-template-columns: 84px 1fr 40px; }
  .scan__find { flex-wrap: wrap; }
  .scan__find em { margin-left: 0; }
}

/* The belt closes the fold */
.belt-row { margin-top: clamp(40px, 5vw, 60px); }

.scan__bar .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .scan__bar .t { display: none; } }

/* The dropdown drops the nav's monospace voice — it is reading matter, not a label */
.megamenu { font-family: var(--sans); }

/* Mobile panel hangs off the header itself, so it stays put once the strip scrolls away */
@media (max-width: 1040px) {
  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
}

/* One set of actions at a time: outside the list on desktop, inside it on mobile */
.nav__links .nav__actions { display: none; }
.nav__trigger--current { color: var(--on-dark); }
.nav__trigger--current::after { transform: scaleX(1); }

@media (max-width: 1040px) {
  .nav__in > .nav__actions { display: none; }
  .nav__links .nav__actions { display: flex; margin-top: 20px; }
  .nav__links .nav__actions .btn { flex: 1; }
}

/* Optically align the panel with the headline rather than the stamp above it */
@media (min-width: 1001px) { .hero__visual { margin-top: 62px; } }

/* ==========================================================================
   Migralith identity and contact affordances
   ========================================================================== */

/* The lockup ships as two inked PNGs rather than one tinted SVG, because the
   mark is a gradient. Each surface loads the variant that stays legible. */
.logo {
  display: block;
  height: 30px;
  width: auto;
}
.nav__logo { transition: opacity 0.15s linear; }
.nav__logo:hover { opacity: 0.78; }
.foot__brand .logo { height: 34px; }

@media (max-width: 620px) { .logo { height: 26px; } }

/* Contact rows carry live addresses */
.aside__row a { color: var(--dim-1); text-align: right; transition: color 0.15s linear; }
.aside--night .aside__row a { color: rgba(233, 236, 243, 0.72); }
.aside__row a:hover,
.aside--night .aside__row a:hover { color: var(--blue); }
.foot__base a { color: inherit; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.foot__base a:hover { color: var(--blue); border-color: var(--blue); }

/* Toast — confirms the address was copied when no mail client takes over */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 8px;
  box-shadow: 0 24px 60px -24px #000;
  color: var(--on-dark);
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.26s linear, transform 0.32s var(--ease);
}
.toast.is-up { opacity: 1; transform: none; }
.toast b { font-family: var(--mono); font-size: 13px; color: #fff; }
.toast i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
