/* Vortex — fitness-ring landing (dark chrome, GetLayers / Stride structure).
   Brand tokens injected by bind.js from config.js. */

:root {
  --brand-primary: #3d8bff;
  --brand-ink: #07080c;
  --brand-paper: #e8eaf0;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --muted: #8b93a7;
  --line: rgb(255 255 255 / 0.12);
  --surface: #10131a;
  --radius-shell: 1.75rem;
  --radius-card: 1.5rem;
  --radius-pill: 9999px;
  --shell-pad: clamp(0.55rem, 1.2vw, 0.9rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #030407;
  color: var(--brand-paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -3rem; left: 1rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 0.75rem;
  background: #fff; color: var(--brand-ink);
  text-decoration: none;
}
.skip-link:focus-visible { top: 1rem; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

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

ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

.dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand-primary);
  margin-right: 0.45rem;
  vertical-align: 0.12em;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Shell / hero frame ───────────────────────────────────────────────── */

.shell {
  position: relative;
  margin: var(--shell-pad);
  border-radius: var(--radius-shell);
  overflow: hidden;
  background: var(--brand-ink);
  box-shadow: 0 40px 100px -50px rgb(0 0 0 / 0.85);
  min-height: calc(100svh - 2 * var(--shell-pad));
}

/* ── Topbar — Harbor craft, dark glass ────────────────────────────────── */

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  pointer-events: none;
}
@media (min-width: 640px) {
  .topbar { padding: 1.05rem 2rem; }
}
.topbar > * { pointer-events: auto; }

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.topbar__mark {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--brand-primary);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.topbar__nav { display: none; }
@media (min-width: 1024px) {
  .topbar__nav { display: block; }
}
.topbar__nav ul {
  display: flex;
  gap: 1.5rem;
}
.topbar__nav a {
  color: rgb(255 255 255 / 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
}
.topbar__nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar__cta {
  display: none;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.topbar__cta:hover {
  transform: translateY(-1px);
  background: #f0f2f8;
}
@media (min-width: 768px) {
  .topbar__cta { display: inline-flex; }
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(12px) saturate(1.1);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}
.menu-btn:hover { background: rgb(255 255 255 / 0.2); }
.menu-btn__icon {
  width: 1rem;
  height: 0.7rem;
  display: block;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 70% 1.5px no-repeat;
}
.menu-btn__icon--close {
  width: 0.85rem;
  height: 0.85rem;
  background:
    linear-gradient(#fff, #fff) center / 100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) center / 1.5px 100% no-repeat;
  transform: rotate(45deg);
}

/* ── Pills / links ────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill__arrow { font-weight: 500; opacity: 0.85; }

.pill--solid {
  background: #fff;
  color: var(--brand-ink);
}
.pill--solid:hover { background: #f0f2f8; }

.pill--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.28);
}
.pill--ghost:hover { background: rgb(255 255 255 / 0.06); }

.text-link {
  color: rgb(255 255 255 / 0.78);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  font-size: 0.9rem;
  font-weight: 500;
}
.text-link:hover { color: #fff; }

.tag {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.05);
  color: rgb(255 255 255 / 0.88);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.tag--on-paper {
  background: #fff;
  border-color: transparent;
  color: var(--brand-ink);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

/* Exactly the viewport minus the frame, never more: the hero is pinned while
   it plays, so anything below the fold stays below it for the whole sequence.
   Short screens drop secondary pieces (see the end of this file). */
.hero {
  position: relative;
  height: calc(100svh - 2 * var(--shell-pad));
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brand-ink);
}
.hero__poster,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__poster {
  object-position: 78% 48%;
  background: var(--brand-ink);
}
.hero__canvas {
  opacity: 0;
  pointer-events: none;
}
.hero[data-motion="ready"] .hero__poster {
  opacity: 0;
}
.hero[data-motion="static"] .hero__canvas { display: none; }

.hero__glow {
  position: absolute;
  inset: 22% 12% 32% 42%;
  background: radial-gradient(ellipse at 55% 45%, rgb(61 139 255 / 0.1), transparent 70%);
  pointer-events: none;
  opacity: 0.85;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 8 12 / 0.92) 0%, rgb(7 8 12 / 0.55) 42%, rgb(7 8 12 / 0.15) 68%, transparent 100%),
    linear-gradient(180deg, rgb(7 8 12 / 0.55) 0%, transparent 28%, transparent 62%, rgb(7 8 12 / 0.75) 100%);
  pointer-events: none;
}
@media (max-width: 1023px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgb(7 8 12 / 0.7) 0%, transparent 28%, transparent 48%, rgb(7 8 12 / 0.88) 100%);
  }
}
.hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgb(0 0 0 / 0.55);
  pointer-events: none;
}
.hero__watermark {
  position: absolute;
  right: -2%;
  bottom: 18%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgb(255 255 255 / 0.04);
  pointer-events: none;
  user-select: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 5.5rem 1.25rem 8.5rem;
  height: 100%;
  align-content: center;
}
@media (min-width: 768px) {
  .hero__grid { padding: 6.5rem 2rem 9rem; }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    padding: 7rem 2.5rem 8rem;
    align-items: center;
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.hero__headline {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__line { display: block; }
.hero__line--mute { color: rgb(255 255 255 / 0.42); font-weight: 600; }
.hero__line--keep { white-space: nowrap; }

.hero__lead {
  margin: 0 0 0.65rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero__sub {
  margin: 0 0 1.4rem;
  max-width: 32rem;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.98rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.hero__aside { display: none; }

.hero__rail {
  position: absolute;
  z-index: 3;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 3.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero__rail {
    left: 2rem;
    right: 2rem;
    bottom: 3.6rem;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .hero__rail { left: 2.5rem; right: 2.5rem; }
}

.hero__stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0.7rem 1rem;
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(14px);
  max-width: 100%;
  overflow-x: auto;
  pointer-events: auto;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.95rem;
  border-right: 1px solid rgb(255 255 255 / 0.14);
}
.hero__stat:first-child { padding-left: 0.15rem; }
.hero__stat:last-child { border-right: 0; padding-right: 0.15rem; }
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.68rem;
  color: rgb(255 255 255 / 0.55);
  white-space: nowrap;
}

.hero__tags {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  max-width: 22rem;
  pointer-events: auto;
}
@media (min-width: 900px) {
  .hero__tags { display: flex; }
}

.hero__status {
  position: absolute;
  z-index: 3;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.42);
}
@media (min-width: 768px) {
  .hero__status { left: 2rem; right: 2rem; bottom: 1.15rem; }
}
.hero__status-mid { color: rgb(255 255 255 / 0.62); }

/* ── Loader ───────────────────────────────────────────────────────────── */

.intro { display: none; }
.hero[data-motion="preloading"] .intro,
.intro.is-leaving {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  background: var(--brand-ink);
  text-align: center;
  padding: 2rem;
}
.intro__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.intro__tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.intro__track {
  width: min(16rem, 70vw);
  height: 2px;
  margin: 0.75rem auto 0;
  background: rgb(255 255 255 / 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.intro__fill {
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: var(--brand-primary);
  transition: width 0.15s linear;
}
.intro__meta {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.intro.is-leaving {
  animation: intro-out 0.7s ease forwards;
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}

/* ── Trust marquee ────────────────────────────────────────────────────── */

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  background: var(--brand-paper);
  color: var(--brand-ink);
}
.trust__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #596174;
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #3a4154;
}

/* ── Main sections ────────────────────────────────────────────────────── */

main {
  background: #05070c;
}

.modules,
.feel,
.builds,
.about,
.cta {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 72rem;
  margin: 0 auto;
}

.modules__head,
.builds__head {
  margin-bottom: 2rem;
}
.modules__head h2,
.builds__head h2,
.feel__title,
.about h2,
.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}

.modules__list {
  border-top: 1px solid var(--line);
}
.modules__item {
  border-bottom: 1px solid var(--line);
}
.modules__link {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0.15rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
@media (min-width: 768px) {
  .modules__link {
    grid-template-columns: 4.5rem 1fr auto;
    gap: 1.5rem;
    padding: 1.6rem 0.25rem;
  }
}
.modules__link:hover { background: rgb(255 255 255 / 0.02); }
.modules__num {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.modules__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.modules__body {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}
.modules__go {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.16);
  color: rgb(255 255 255 / 0.7);
  transition: background 0.15s ease, color 0.15s ease;
}
.modules__link:hover .modules__go {
  background: #fff;
  color: var(--brand-ink);
}

/* Feel */

.feel__panel {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: calc(var(--radius-card) + 0.35rem);
  background: linear-gradient(145deg, #121722 0%, #0a0d14 100%);
  border: 1px solid var(--line);
}
.feel__title {
  max-width: 18ch;
  margin-bottom: 1rem;
}
.feel__title em {
  display: block;
  font-style: normal;
  color: var(--brand-primary);
}
.feel__body {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.feel__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Builds — Dantora-style cards */

.builds__grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .builds__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.build-card {
  position: relative;
  min-height: 22rem;
  padding: 1.4rem 1.35rem;
  border-radius: calc(var(--radius-card) + 0.25rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.build-card__num {
  font-size: 0.8rem;
  color: inherit;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}
.build-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.build-card p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.78;
  line-height: 1.45;
}
.build-card__cta {
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.build-card__links {
  margin-top: auto;
  padding-top: 1.5rem;
}
.build-card__links li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgb(0 0 0 / 0.12);
  font-size: 0.9rem;
  font-weight: 500;
}

.build-card--paper {
  background: #f4f0b8;
  color: var(--brand-ink);
}
.build-card--ink {
  background: #1a6b63;
  color: #fff;
}
.build-card--photo {
  padding: 0;
  color: #fff;
}
.build-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.build-card__overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 22rem;
  padding: 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.72));
}

/* About */

.about__copy {
  max-width: 38rem;
}
.about p:not(.kicker) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* CTA */

.cta__card {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: calc(var(--radius-card) + 0.5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgb(61 139 255 / 0.22), transparent 55%),
    #0c1018;
  border: 1px solid var(--line);
}
.cta__card .kicker { justify-content: center; }
.cta__card h2 { margin-bottom: 0.75rem; }
.cta__card > p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--muted);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */

.site-footer {
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  background: #020308;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
@media (min-width: 768px) {
  .site-footer {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.site-footer__brand p { margin: 0; }
.site-footer__nav ul,
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.site-footer a {
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer__place,
.site-footer__credit {
  margin: 0;
  grid-column: 1 / -1;
}
.site-footer__credit { font-size: 0.75rem; opacity: 1; }

/* ── Full-screen menu — Harbor craft, dark ink ────────────────────────── */

.nav-menu {
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  background:
    radial-gradient(90% 70% at 88% 12%, rgb(61 139 255 / 0.22), transparent 55%),
    radial-gradient(70% 55% at 8% 88%, rgb(61 139 255 / 0.1), transparent 50%),
    linear-gradient(165deg, #0c1018 0%, #07080c 48%, #05070c 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.42s var(--nav-ease),
    transform 0.5s var(--nav-ease),
    visibility 0s linear 0.42s;
}
.nav-menu[hidden] { display: none !important; }
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.42s var(--nav-ease),
    transform 0.5s var(--nav-ease),
    visibility 0s;
}
.nav-menu.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.988);
  transition:
    opacity 0.32s ease,
    transform 0.36s ease,
    visibility 0s linear 0.32s;
}

.nav-menu__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

.nav-menu__top,
.nav-menu__body,
.nav-menu__foot {
  position: relative;
  z-index: 1;
}

.nav-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.15rem -0.35rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 1.05rem;
  background: rgb(7 8 12 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.7);
  backdrop-filter: blur(14px) saturate(1.15);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--nav-ease), transform 0.45s var(--nav-ease);
}
.nav-menu.is-open .nav-menu__top {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}

.nav-menu__top .topbar__brand,
.nav-menu__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}

.nav-menu__body {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  min-height: 0;
}

.nav-menu__kicker {
  margin: 0;
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--nav-ease), transform 0.45s var(--nav-ease);
}
.nav-menu.is-open .nav-menu__kicker {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.nav-menu__list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu__list li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--nav-ease), transform 0.5s var(--nav-ease);
}
.nav-menu.is-open .nav-menu__list li {
  opacity: 1;
  transform: none;
}
.nav-menu.is-open .nav-menu__list li:nth-child(1) { transition-delay: 0.14s; }
.nav-menu.is-open .nav-menu__list li:nth-child(2) { transition-delay: 0.2s; }
.nav-menu.is-open .nav-menu__list li:nth-child(3) { transition-delay: 0.26s; }
.nav-menu.is-open .nav-menu__list li:nth-child(4) { transition-delay: 0.32s; }

.nav-menu__list a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.55rem 0.35rem 0.55rem 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  transition: color 0.2s ease, padding-left 0.35s var(--nav-ease), border-color 0.2s ease;
}
.nav-menu__list a:hover,
.nav-menu__list a:focus-visible {
  color: var(--brand-primary);
  padding-left: 0.35rem;
  border-color: rgb(61 139 255 / 0.45);
  outline: none;
}
.nav-menu__idx {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.38);
  font-variant-numeric: tabular-nums;
}
.nav-menu__list a:hover .nav-menu__idx,
.nav-menu__list a:focus-visible .nav-menu__idx {
  color: var(--brand-primary);
}
.nav-menu__label {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 7.5vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.nav-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  color: rgb(255 255 255 / 0.48);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--nav-ease), transform 0.45s var(--nav-ease);
}
.nav-menu.is-open .nav-menu__foot {
  opacity: 1;
  transform: none;
  transition-delay: 0.36s;
}
.nav-menu__foot-sep { color: rgb(255 255 255 / 0.28); }
.nav-menu__foot a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav-menu__foot a:hover { color: var(--brand-primary); }

@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .nav-menu.is-open,
  .nav-menu.is-leaving,
  .nav-menu__top,
  .nav-menu__kicker,
  .nav-menu__list li,
  .nav-menu__foot,
  .nav-menu__list a {
    transition: none !important;
    transform: none !important;
  }
  .nav-menu.is-open .nav-menu__top,
  .nav-menu.is-open .nav-menu__kicker,
  .nav-menu.is-open .nav-menu__list li,
  .nav-menu.is-open .nav-menu__foot {
    opacity: 1;
  }
}

/* ── Reveal / progress ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: transparent;
  z-index: 90;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress {
    background: linear-gradient(var(--brand-primary), var(--brand-primary));
    transform-origin: 0 50%;
    animation: progress-grow linear;
    animation-timeline: scroll();
  }
  @keyframes progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* Product direction: larger type, precise rules and contrasting material panels. */
.hero__headline{
  font-size:clamp(3.3rem,6.7vw,6.5rem);
  line-height:1.01;
  letter-spacing:-.065em
}
.hero__line--mute{
  color:#b9c8dd
}
.hero__copy{
  max-width:43rem
}
.hero__sub{
  max-width:35ch
}
.hero__lead{
  font-size:1rem
}
.hero__watermark{
  font-size:clamp(7rem,17vw,16rem);
  letter-spacing:-.07em
}
.hero__stats{
  border-radius:4px;
  background:#10151ded
}
.hero__tags .tag{
  border-radius:4px
}
.modules__head h2,.builds__head h2,.about__copy h2{
  font-size:clamp(2.5rem,4.5vw,4.5rem);
  letter-spacing:-.055em
}
.modules__list{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:4rem;
  border-top:1px solid #ffffff30
}
.modules__item{
  border-bottom:1px solid #ffffff30
}
.modules__link{
  min-height:185px;
  padding:2rem 0;
  border-radius:0;
  grid-template-columns:32px 1fr 32px;
  align-items:start
}
.modules__title{
  font-size:1.7rem;
  margin-bottom:1rem
}
.modules__body{
  max-width:31ch;
  line-height:1.6;
  color:#afbacb
}
.feel__panel{
  border-radius:4px;
  background:#dbe5f0;
  color:#162230;
  padding:clamp(2rem,5vw,5rem);
  border:0
}
.feel__title{
  font-size:clamp(2.8rem,5vw,5rem);
  letter-spacing:-.055em;
  max-width:15ch
}
.feel__title em{
  color:#315b96
}
.feel__body{
  color:#455669;
  font-size:1rem
}
.feel .tag{
  color:#263e59;
  border-color:#74869b;
  background:transparent
}
.builds__grid{
  grid-template-columns:1fr 1fr;
  gap:1.5rem
}
.build-card{
  border-radius:4px;
  min-height:410px;
  padding:2rem
}
.build-card:first-child{
  grid-column:1/-1;
  min-height:450px;
  position:relative;
  isolation:isolate;
  background:#dde2e8;
  color:#142233;
  overflow:hidden
}
.build-card:first-child:after{
  content:'';
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:55%;
  background:url('../images/lock.jpg') center/cover no-repeat;
  z-index:-1;
  mask-image:linear-gradient(90deg,transparent,#000 30%)
}
.build-card:first-child h3{
  font-size:clamp(2.3rem,4vw,4rem);
  max-width:8ch
}
.build-card:first-child p{
  max-width:25ch;
  color:#41536a
}
.build-card:first-child .build-card__links{
  max-width:40%;
  margin-top:3rem
}
.build-card--ink{
  background:#122238
}
.build-card--ink h3{
  font-size:2.8rem
}
.build-card--ink p{
  color:#b4c6df
}
.build-card__links li{
  border-color:#9caab9
}
.build-card--photo .build-card__overlay{
  background:linear-gradient(0deg,#05080df2,transparent);
  padding:2rem
}
.cta__panel{
  border-radius:4px
}
.site-footer__brand{
  font-size:clamp(3rem,8vw,7rem);
  letter-spacing:-.06em
}
@media(max-width:767px){
  .hero__headline{
    font-size:clamp(2.9rem,11vw,4.6rem)
  }
  .hero__copy{
    max-width:100%
  }
  .hero__sub{
    font-size:.85rem;
    max-width:34ch
  }
  .modules__list{
    grid-template-columns:1fr
  }
  .modules__link{
    min-height:150px
  }
  .builds__grid{
    grid-template-columns:1fr
  }
  .build-card:first-child{
    min-height:480px;
    padding-bottom:220px
  }
  .build-card:first-child:after{
    top:auto;
    height:220px;
    width:100%;
    mask-image:linear-gradient(180deg,transparent,#000 30%)
  }
  .build-card:first-child h3{
    max-width:none;
    font-size:2.4rem
  }
  .build-card:first-child .build-card__links{
    max-width:none;
    margin-top:1.5rem
  }
  .build-card{
    min-height:350px
  }
  .feel__body{
    font-size:.9rem
  }
}
@media(max-width:767px){
  .hero__copy{
    padding:0 0 14px;
    background:linear-gradient(90deg,#07080ced,#07080c85 85%,transparent);
    border-radius:3px
  }
  .hero__ctas .text-link{
    background:#07080cbd;
    padding:6px 10px
  }
}
.feel__title {
  color: #162230;
}
.feel .kicker {
  color: #455669;
}
/* The source still has wide negative space; crop around the actual band. */
.build-card:first-child::after {
  width: 50%;
  background-size: auto 280%;
  background-position: 78% center;
  mask-image: none;
}
.build-card--photo img {
  transform: scale(2.2);
  transform-origin: 76% 50%;
  object-position: 76% center;
}
@media (max-width: 767px) {
  .build-card:first-child::after { width: 100%; background-size: auto 280%; }
}

/* Short viewports: a landscape phone, a small laptop window, an iPhone SE.
   The hero has a fixed height, so secondary pieces step aside here rather
   than being cut off by its edge or colliding with the rail. */
@media (max-height: 640px) {
  .hero__grid { padding-top: 4.75rem; padding-bottom: 7rem; gap: 1rem; }
  .hero__sub, .hero__tags { display: none; }
}
@media (max-height: 460px) {
  .hero__eyebrow, .hero__lead, .hero__rail { display: none; }
  .hero__grid { padding-top: 4.25rem; padding-bottom: 2.75rem; }
}
