@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

/* ---------- Background video ---------- */

.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page ---------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

.header,
.hero,
.stats,
.mobile-menu {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  animation: slideDown 0.7s var(--ease) both;
}

.logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.nav {
  position: relative;
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  padding: 8px 10px;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.is-active {
  opacity: 1;
}

/* Single indicator that slides under the active link (positioned from JS). */
.nav-dots {
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  transform: translateX(var(--dots-x, -100px));
  pointer-events: none;
}

.nav-dots.is-ready {
  transition: transform 0.6s var(--ease), box-shadow 0.3s ease;
}

/* While travelling, the dots spread out a little and settle back. */
.nav-dots.is-moving {
  box-shadow: -8px 0 0 #000, 8px 0 0 #000;
}

.m-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.sign-in {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(18px, 2.2vw, 22px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  display: none;
}

.menu-overlay,
.mobile-menu {
  display: none;
}

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  min-height: 0;
}

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  flex-shrink: 0;
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s var(--ease);
}

.avatar > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.avatar + .avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.a1 { z-index: 1; }
.a2 { z-index: 2; }
.a3 { z-index: 4; }

.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }

.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 16px 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.headline span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}

.headline span:nth-child(1) { animation-delay: 0.12s; }
.headline span:nth-child(2) { animation-delay: 0.3s; }

.subhead {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
}

.cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(20px, 3.2vh, 32px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.45),
    0 0 60px rgba(255, 255, 255, 0.2);
}

/* ---------- Stats ---------- */

.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  padding-bottom: clamp(4px, 1vh, 12px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ---------- View switching (Inicio <-> Servicios) ---------- */

.hero,
.stats {
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s var(--ease);
}

body:not([data-view="inicio"]) .hero,
body:not([data-view="inicio"]) .stats {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.97);
  pointer-events: none;
}

/* The page layer spans the whole viewport; let clicks reach the views underneath it. */
.page {
  pointer-events: none;
}

.page > * {
  pointer-events: auto;
}

/* ---------- Services: 3D card carousel ---------- */

.services {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* The home video keeps playing behind; a light dim makes the cards pop. */
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease 0.15s, visibility 0s linear 0.85s;
}

body[data-view="servicios"] .services,
body[data-view="contacto"] .contact {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease 0.15s, visibility 0s;
}

.carousel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1350px;
  pointer-events: none;
}

.services.is-stacked .carousel {
  bottom: 24vh;
  bottom: 24dvh;
}

.carousel-stage {
  position: relative;
  width: var(--cw, 336px);
  height: var(--ch, 211px);
  transform-style: preserve-3d;
}

.card {
  --r: calc(var(--cw, 336px) * 0.048);
  --pad: calc(var(--cw, 336px) * 0.065);
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-slice,
.card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  overflow: hidden;
  pointer-events: none;
}

.card-slice {
  background: #808080;
  border: 1px solid #808080;
}

.card-face {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-front-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
}

.card-brand {
  position: absolute;
  top: calc(var(--pad) * 0.8);
  right: var(--pad);
  font-family: var(--font-display);
  font-size: calc(var(--cw, 336px) * 0.08);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.95;
}

.card-chip {
  position: absolute;
  left: var(--pad);
  top: 50%;
  width: calc(var(--cw, 336px) * 0.086);
  height: calc(var(--cw, 336px) * 0.086);
  transform: translateY(-50%);
}

.card-name {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  font-weight: 600;
  font-size: calc(var(--cw, 336px) * 0.062);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.card-circles {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  display: flex;
  opacity: 0.9;
}

.card-circles i {
  width: calc(var(--cw, 336px) * 0.071);
  height: calc(var(--cw, 336px) * 0.071);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}

.card-circles i + i {
  margin-left: calc(var(--cw, 336px) * -0.036);
  background: rgba(255, 255, 255, 0.35);
}

.card-back-blur {
  position: absolute;
  inset: 0;
  /* Darkened so the white back text stays legible on light videos (e.g. the coins one). */
  filter: blur(16px) brightness(0.6);
  transform: scale(1.15);
}

.card-stripe {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  top: calc(var(--cw, 336px) * 0.06);
  height: calc(var(--cw, 336px) * 0.107);
  background: rgba(0, 0, 0, 0.85);
}

.card-details {
  position: absolute;
  z-index: 2;
  left: calc(var(--cw, 336px) * 0.06);
  bottom: calc(var(--cw, 336px) * 0.055);
  display: flex;
  flex-direction: column;
  gap: calc(var(--cw, 336px) * 0.012);
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  white-space: nowrap;
}

.card-number {
  font-size: calc(var(--cw, 336px) * 0.034);
  letter-spacing: 0.14em;
  color: #fff;
}

.card-holder {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: calc(var(--cw, 336px) * 0.026);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.card-holder .sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* Copy block: bottom-left on desktop, bottom-centered when stacked. */

.services-copy {
  position: absolute;
  z-index: 2;
  left: var(--pl, 4rem);
  bottom: calc(var(--pl, 4rem) * 0.75);
  max-width: var(--copy-max, 420px);
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 0.6s ease 0.35s, transform 0.8s var(--ease) 0.35s;
}

body[data-view="servicios"] .services-copy {
  opacity: 1;
  transform: translateY(0);
}

.services-copy > * {
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.services-copy.is-swapping .sc-sig,
.services-copy.is-swapping .sc-desc {
  opacity: 0;
  filter: blur(4px);
}

.sc-title {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin: 0 0 var(--title-gap, 40px);
  font-weight: 500;
  font-size: var(--title-size, 1.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.sc-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.sc-sig {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--sig-size, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: #fff;
}

.sc-desc {
  margin: 0.9em 0 0;
  max-width: 34em;
  font-size: var(--desc-size, 14px);
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

.services.is-stacked::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.services.is-stacked .services-copy {
  left: 50%;
  right: auto;
  width: var(--copy-max);
  margin-left: calc(var(--copy-max) / -2);
  bottom: max(24px, env(safe-area-inset-bottom));
  text-align: center;
}

.services.is-stacked .sc-title {
  justify-content: center;
}

.services.is-stacked .sc-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact ---------- */

.contact {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  padding: calc(clamp(16px, 2.4vh, 28px) + 72px) clamp(16px, 4vw, 48px) clamp(20px, 4vh, 40px);
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease 0.15s, visibility 0s linear 0.85s;
}

.contact-inner {
  margin: auto;
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  transform: translateY(16px);
  transition: transform 0.8s var(--ease) 0.2s;
}

body[data-view="contacto"] .contact-inner {
  transform: translateY(0);
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: 13px;
}

.contact-title {
  margin: clamp(16px, 2.5vh, 24px) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
}

.contact-title span {
  display: block;
  white-space: nowrap;
}

.contact-sub {
  margin: clamp(12px, 2vh, 18px) 0 0;
  max-width: 360px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  background: rgba(20, 20, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-label {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
}

.field-label em {
  font-style: normal;
  opacity: 0.7;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 400 15px/1.4 var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 255, 255, 0.08);
}

.field.has-error input,
.field.has-error textarea {
  border-color: rgba(255, 110, 110, 0.7);
}

.field-error {
  min-height: 0;
  font-size: 12px;
  color: #ff9b9b;
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.form-status.is-ok {
  color: #b6f2c8;
}

.form-status.is-error {
  color: #ff9b9b;
}

.form-submit {
  flex-shrink: 0;
  margin: 0 0 0 auto;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
}

.form-submit:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 24px;
  }

  .contact-head {
    text-align: center;
  }

  .contact-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-title {
    letter-spacing: -0.08em;
  }

  .form-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-submit {
    justify-content: center;
    margin: 0;
  }

  .form-status {
    text-align: center;
  }
}

/* ---------- Entrance animations ---------- */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* The headline animates per line, not as a block. */
.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.subhead.anim {
  animation-name: revealSubhead;
}

.cta.anim {
  animation: revealPulse 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes revealSubhead {
  to { opacity: 0.8; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  60% { opacity: 1; transform: translateY(0) scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes headlineFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes linkIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .nav,
  .sign-in {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: none;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .burger {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .burger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 1.5px;
    margin: -0.75px 0 0 -9px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.2s ease, background 0.3s ease;
  }

  .burger span:nth-child(1) { transform: translateY(-6.5px); }
  .burger span:nth-child(3) { transform: translateY(6.5px); }

  .burger[aria-expanded="true"] {
    background: #fff;
  }

  .burger[aria-expanded="true"] span {
    background: #000;
  }

  .burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .header {
    z-index: 3;
  }

  .menu-overlay:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: overlayIn 0.28s ease both;
  }

  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    z-index: 3;
    top: calc(clamp(16px, 2.4vh, 28px) + 48px + 12px);
    left: 50%;
    width: min(360px, calc(100% - 28px));
    margin-left: calc(min(360px, calc(100% - 28px)) / -2);
    padding: 22px 18px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: menuIn 0.38s var(--ease) both;
  }

  .m-link {
    position: relative;
    padding: 12px 0 18px;
    text-align: center;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--nav-text);
    /* `both` hides them only during the stagger delay; if the animation never runs they stay visible. */
    animation: linkIn 0.4s var(--ease) both;
    animation-delay: calc(0.08s + var(--i) * 0.05s);
  }

  .m-link:not(.is-active) {
    color: rgba(46, 46, 46, 0.55);
  }

  .m-link.is-active::after {
    bottom: 8px;
  }

  .m-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--pill-dark);
    color: var(--sign-in-text);
    font-weight: 500;
    font-size: 15px;
    /* `both` hides them only during the stagger delay; if the animation never runs they stay visible. */
    animation: linkIn 0.4s var(--ease) both;
    animation-delay: calc(0.08s + var(--i) * 0.05s);
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .trust-pill {
    font-size: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(14px, 2.4vh, 22px);
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    padding-right: 12px;
    font-size: 11px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 10px;
  }

  .cta {
    margin-top: 16px;
  }

  .stat {
    gap: 3px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .headline span,
  .m-link,
  .m-sign-in {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .subhead.anim {
    opacity: 0.8;
  }

  .headline {
    color: #fff;
  }
}
