/* Reusable components: buttons, cards, lattice, metric tiles */

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

.btn {
  --btn-bg: transparent;
  --btn-color: var(--text-primary);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border-radius: var(--radius-full);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease-out-sharp),
    box-shadow var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-fast) var(--ease-out-soft),
    background-position var(--dur-slow) var(--ease-out-soft);
  isolation: isolate;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out-sharp);
  font-size: 1em;
  line-height: 1;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Primary — gradient shimmer on hover */
.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, #0A5EB8 0%, #6B3FA0 40%, #B02878 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border-color: transparent;
  box-shadow: 0 10px 40px -12px rgba(107, 63, 160, 0.5);
}

.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 12px 48px -12px rgba(176, 40, 120, 0.55);
}

/* Ghost / secondary */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-muted);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn--on-light {
  color: var(--text-on-light);
  border-color: rgba(15, 30, 56, 0.18);
}

.btn--on-light:hover {
  border-color: rgba(15, 30, 56, 0.4);
  background: rgba(15, 30, 56, 0.04);
}

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

.card {
  position: relative;
  padding: var(--space-5);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition:
    transform var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-base) var(--ease-out-soft),
    box-shadow var(--dur-base) var(--ease-out-soft);
  isolation: isolate;
  overflow: hidden;
}

/* Gradient-border glow on hover via masked layer */
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-soft);
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(12, 128, 104, 0.12);
  color: var(--nvert-teal);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(12, 128, 104, 0.25);
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Numbered step cards (light section) */
.step {
  position: relative;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  transition:
    transform var(--dur-base) var(--ease-out-soft),
    box-shadow var(--dur-base) var(--ease-out-soft);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -20px rgba(15, 30, 56, 0.18);
}

.step__badge {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #fff;
  background: var(--gradient-primary);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  letter-spacing: 0;
}

.step__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: var(--text-sm);
  color: var(--text-on-light-secondary);
  line-height: 1.6;
}

/* Step connector line (desktop only) */
@media (min-width: 1025px) {
  .grid--steps {
    position: relative;
  }

  .grid--steps::before {
    content: '';
    position: absolute;
    top: calc(var(--space-6) + 28px);
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(15, 30, 56, 0.18) 20%,
        rgba(15, 30, 56, 0.18) 80%,
        transparent 100%);
    z-index: 0;
    pointer-events: none;
  }

  .step {
    z-index: 1;
  }
}

/* ----- Metric tiles ----- */

.metric {
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft);
}

.metric:hover {
  border-color: var(--border-muted);
  background: rgba(255, 255, 255, 0.035);
}

.metric__value {
  font-size: clamp(2.25rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.metric__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ----- Hex lattice background ----- */

.lattice {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(60deg, transparent 49%, rgba(107, 63, 160, 0.18) 49.5%, rgba(107, 63, 160, 0.18) 50.5%, transparent 51%),
    linear-gradient(-60deg, transparent 49%, rgba(10, 94, 184, 0.18) 49.5%, rgba(10, 94, 184, 0.18) 50.5%, transparent 51%),
    linear-gradient(0deg,
      rgba(12, 128, 104, 0.12) 0.6%, transparent 1.2%,
      transparent 49%, rgba(12, 128, 104, 0.12) 49.5%, rgba(12, 128, 104, 0.12) 50.5%, transparent 51%,
      transparent 98.8%, rgba(12, 128, 104, 0.12) 99.4%);
  background-size: 48px 83px;
  background-position: 0 0;
}

/* Radial soft mask so lattice fades at edges */
.lattice--hero {
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, #000 40%, transparent 75%);
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, #000 40%, transparent 75%);
}

.lattice--cta {
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 50%, transparent 85%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 50%, transparent 85%);
}

/* Muted dark-gray variant — same triangular geometry, no brand color, no screen blend.
   Used on the secondary content sections so the texture reads as subtle structure, not decoration. */
.lattice--muted {
  /* ── Tune both values here to adjust the muted lattice across all sections ── */
  --lattice-color: 12, 128, 104;
  /* R, G, B  — change to e.g. "255,255,255" for light lines */
  --lattice-opacity: 0.1;
  /* line opacity */

  opacity: 1;
  mix-blend-mode: normal;
  background-image:
    linear-gradient(60deg, transparent 49%, rgba(var(--lattice-color), var(--lattice-opacity)) 49.5%, rgba(var(--lattice-color), var(--lattice-opacity)) 50.5%, transparent 51%),
    linear-gradient(-60deg, transparent 49%, rgba(var(--lattice-color), var(--lattice-opacity)) 49.5%, rgba(var(--lattice-color), var(--lattice-opacity)) 50.5%, transparent 51%),
    linear-gradient(0deg,
      rgba(var(--lattice-color), calc(var(--lattice-opacity) * 0.8)) 0.6%, transparent 1.2%,
      transparent 49%, rgba(var(--lattice-color), calc(var(--lattice-opacity) * 0.8)) 49.5%, rgba(var(--lattice-color), calc(var(--lattice-opacity) * 0.8)) 50.5%, transparent 51%,
      transparent 98.8%, rgba(var(--lattice-color), calc(var(--lattice-opacity) * 0.8)) 99.4%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, #000 60%, transparent 100%);
}

/* Hero visual — faceted abstract display */

.lattice--canvas {
  z-index: 2;
  opacity: 1;
  mix-blend-mode: normal;
  background: none; /* Only JS-drawn content — no CSS grid lines */
}

/* Hero logo sitting behind the canvas effect — positioned by lattice.js */
.hero__logo {
  position: absolute;
  z-index: 1; /* behind canvas (z-index 0 from .lattice) but above muted lattice */
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 40px rgba(12, 128, 104, 0.25));
}

/* ----- Team credential cards ----- */

.card--team {
  text-align: left;
}

.team-role {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  border: 1px solid;
}

.team-role svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.team-label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* Per-card accent tints — all labels use the same nvert teal */
.card--team .team-label {
  color: var(--nvert-teal);
}

/* ----- Team domain expertise strip ----- */

.team-domains {
  margin-top: var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}

.team-domains__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.team-domains__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.team-domains__list span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: border-color var(--dur-fast) var(--ease-out-soft), color var(--dur-fast) var(--ease-out-soft);
}

.team-domains__list span:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ----- Team closer ----- */

.team-closer {
  text-align: center;
  margin-top: var(--space-7);
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Differentiator card icon tints */
.card--diff:nth-child(1) .card__icon {
  background: rgba(12, 128, 104, 0.12);
  color: var(--nvert-teal);
  border-color: rgba(12, 128, 104, 0.25);
}

.card--diff:nth-child(2) .card__icon {
  background: rgba(10, 94, 184, 0.15);
  color: #5C9EFF;
  border-color: rgba(10, 94, 184, 0.3);
}

.card--diff:nth-child(3) .card__icon {
  background: rgba(107, 63, 160, 0.15);
  color: #A77BDF;
  border-color: rgba(107, 63, 160, 0.3);
}

.card--diff:nth-child(4) .card__icon {
  background: rgba(176, 40, 120, 0.12);
  color: #E0529E;
  border-color: rgba(176, 40, 120, 0.25);
}

/* ----- Parallax dividers (between sections) ----- */

.parallax {
  position: relative;
  height: clamp(280px, 36vw, 440px);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.parallax__bg {
  position: absolute;
  inset: -20% 0;
  background-size: 640px 640px;
  background-repeat: repeat;
  background-position: 0 0;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  transition: transform 60ms linear;
  z-index: 1;
}

/* Logo ghost layer — drifts with its own parallax speed */
.parallax__logo {
  position: absolute;
  top: 50%;
  width: clamp(340px, 52vw, 620px);
  height: auto;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  will-change: transform;
  filter: drop-shadow(0 24px 60px rgba(107, 63, 160, 0.45));
}

.parallax__logo--right {
  right: -8%;
  transform: translate3d(0, calc(-50% + var(--parallax-y, 0px)), 0) rotate(-8deg);
}

.parallax__logo--left {
  left: -8%;
  transform: translate3d(0, calc(-50% + var(--parallax-y, 0px)), 0) rotate(12deg);
}

.parallax__logo--center {
  left: 50%;
  transform: translate3d(-50%, calc(-50% + var(--parallax-y, 0px)), 0);
}

.parallax__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--surface-black) 0%,
      transparent 18%,
      transparent 82%,
      var(--surface-black) 100%);
  z-index: 2;
  pointer-events: none;
}

.parallax__caption {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  padding-inline: var(--space-5);
}

.parallax__caption-text {
  font-size: clamp(var(--text-lg), 2.2vw, var(--text-2xl));
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  max-width: 720px;
  line-height: 1.3;
}

.parallax__caption-text .grad {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* Parallax variants — gradient-only color washes (line/dot patterns removed for uniformity). */
.parallax--topo .parallax__bg {
  background-color: #0A0E17;
  background-image:
    radial-gradient(ellipse 640px 160px at 30% 50%, rgba(10, 94, 184, 0.22), transparent 60%),
    radial-gradient(ellipse 520px 140px at 75% 45%, rgba(107, 63, 160, 0.20), transparent 60%);
}

.parallax--hex .parallax__bg {
  background-color: #0A0E17;
  background-image:
    radial-gradient(ellipse 600px 220px at 50% 50%, rgba(12, 128, 104, 0.22), transparent 70%);
}

.parallax--mesh .parallax__bg {
  background-color: #0A0E17;
  background-image:
    radial-gradient(ellipse 760px 220px at 60% 50%, rgba(176, 40, 120, 0.22), transparent 65%);
}

.parallax__caption .eyebrow {
  color: var(--nvert-teal);
}

/* ----- Nav separator (divides section anchors from page links) ----- */

.nav__sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--border-muted);
  margin-inline: var(--space-2);
  vertical-align: middle;
  flex-shrink: 0;
}

/* ----- Author byline (E-E-A-T trust signal) ----- */

.byline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin-top: var(--space-6);
}

.byline__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.byline__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.byline__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}

.byline__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.byline__creds {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

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

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  /* hide default triangle */
  user-select: none;
  transition: color var(--dur-base) var(--ease-out-soft);
}

/* Hide the default disclosure triangle in all browsers */
.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::marker {
  content: '';
}

/* Custom chevron indicator */
.faq__q::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4em;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--dur-base) var(--ease-out-soft);
}

.faq__item[open] .faq__q::after {
  content: '−';
  color: var(--nvert-teal);
}

.faq__q:hover {
  color: var(--nvert-teal);
}

.faq__a {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
  padding-bottom: var(--space-5);
}

/* Trust strip logos */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-5), 5vw, var(--space-8));
  flex-wrap: wrap;
  padding: var(--space-5) 0;
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease-out-soft);
}

.trust-strip__item:hover {
  opacity: 1;
}

.trust-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ----- Mobile: tap-target floor + readable micro-labels (≤ 760px) ----- */
@media (max-width: 760px) {
  /* Every primary interactive element must meet WCAG 2.5.5 (44×44 px) */
  .btn {
    min-height: 44px;
    font-size: var(--text-base);
  }

  .nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Body text in cards/steps reads small on phone — nudge up to 15 px */
  .card__body,
  .step__body {
    font-size: 0.9375rem;
  }

  /* Bump 12 px micro-labels to 13 px so they're still readable in sunlight */
  .metric__label,
  .team-label,
  .byline__label,
  .byline__creds,
  .team-domains__label {
    font-size: 0.8125rem;
  }

  .faq__a { line-height: 1.7; }

  .byline {
    flex-wrap: wrap;
    padding: var(--space-4);
  }

  /* Tighten parallax logo on phones — the desktop clamp floor of 340px is
     too dominant on 360px viewports. */
  .parallax__logo {
    width: clamp(220px, 55vw, 340px);
  }

  /* Trust strip with 5 items + 4 separators stacks awkwardly on 360px.
     Drop the separators on mobile and let the items wrap. */
  .trust-strip__dot { display: none; }
}

/* ----- Touch fallback (no hover capability) ----- */
@media (hover: none) {
  /* :hover gets sticky after a tap on touch — neutralize the lift and rely
     on :active for the press feedback instead. */
  .btn:hover { transform: none; }
  .btn:hover .btn__arrow { transform: none; }
  .card:hover { transform: none; box-shadow: none; }
  .card:hover::before { opacity: 0; }
  .step:hover { transform: none; box-shadow: none; }

  /* Press feedback that does fire on touch */
  .btn:active { transform: translateY(1px); }
  .card:active { transform: translateY(-2px); }
  .step:active { transform: translateY(-2px); }
}

/* ----- Mobile nav: hamburger button + slide-down panel ----- */

.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: var(--space-2);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out-soft);
}

.nav__hamburger:hover,
.nav__hamburger:focus-visible {
  border-color: var(--border-strong);
}

.nav__hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform var(--dur-base) var(--ease-out-soft),
    opacity var(--dur-fast) var(--ease-out-soft);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(10, 14, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-soft);
}

.mobile-nav-backdrop[hidden] { display: none; }

body.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 95;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-muted);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-base) var(--ease-out-soft),
    transform var(--dur-base) var(--ease-out-soft);
}

.mobile-nav-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-panel[hidden] { display: none; }

.mobile-nav-panel__links {
  display: flex;
  flex-direction: column;
  padding:
    var(--space-3)
    max(var(--space-5), env(safe-area-inset-right))
    calc(var(--space-4) + env(safe-area-inset-bottom))
    max(var(--space-5), env(safe-area-inset-left));
  gap: 0;
}

.mobile-nav-panel__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-3) 0;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--dur-fast) var(--ease-out-soft);
}

.mobile-nav-panel__links a:hover,
.mobile-nav-panel__links a:focus-visible {
  color: var(--nvert-teal);
}

.mobile-nav-panel__links a:last-child {
  border-bottom: none;
}

.mobile-nav-panel__links a.is-active {
  color: var(--nvert-teal);
}

/* The separator from the desktop nav becomes a styled divider in the panel */
.mobile-nav-panel__sep {
  display: block;
  width: 100%;
  height: 0;
  margin: var(--space-3) 0;
  border-top: 1px solid var(--border-muted);
  background: none;
}

/* Scroll lock when the panel is open */
body.mobile-nav-open {
  overflow: hidden;
}

/* Show hamburger and hide the desktop CTA buttons on mobile.
   .nav__links is already display:none below 760px in layout.css. */
@media (max-width: 760px) {
  .nav__hamburger { display: inline-flex; }
  .nav__cta { display: none; }
}

/* Honor reduced-motion: skip the slide/transform animation, just toggle visibility */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel {
    transform: none;
    transition: opacity var(--dur-fast) linear;
  }
  .nav__hamburger-bar { transition: none; }
  .mobile-nav-backdrop { transition: none; }
}