/* ============================================================
   Syndicate Design & Construction - Homepage Concept
   Design language: Vibrant Energy (type/spacing/composition/motion)
   Palette: Syndicate's real brand colors (black logo, warm
   off-white #f8f6f2 and gold #c8a96f from their site theme)
   ============================================================ */

:root {
  /* Backgrounds */
  --deep-dark:   #0c0c0b;
  --dark:        #161614;
  --dark-2:      #1e1e1b;
  --off-white:   #f8f6f2;   /* their site background */
  --light-warm:  #efece4;

  /* Accent: their gold, deepened variant for small text on light */
  --gold:        #c8a96f;   /* their theme accent */
  --gold-bright: #d6bb85;
  --gold-deep:   #77602c;   /* same family, darkened for contrast on light */
  --gold-muted:  rgba(200, 169, 111, 0.22);

  /* Text */
  --text-dark:        #171713;
  --text-body:        #45443f;
  --text-muted:       #6d6b63;
  --text-light:       rgba(255, 255, 255, 0.92);
  --text-light-mid:   rgba(255, 255, 255, 0.72);
  --text-light-muted: rgba(255, 255, 255, 0.55);

  /* Type */
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: min(90%, 1180px);
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
  --nav-height: 76px;

  /* Motion */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--off-white);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container { width: var(--container); margin-inline: auto; }

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

h1, h2, h3 { color: var(--text-dark); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

.h-display { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
.h-section { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.h-card    { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gold);
}
.on-dark .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.45s var(--spring), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }

.btn .btn-ic {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.5s var(--spring);
}
.btn:hover .btn-ic { transform: translateX(3px); }
.btn .btn-ic svg { width: 0.85rem; height: 0.85rem; }

.btn-gold { background: var(--gold); color: #14120c; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-gold .btn-ic { background: rgba(12, 12, 11, 0.14); }

.btn-outline-light { border-color: rgba(255,255,255,0.4); color: var(--text-light); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-outline-light .btn-ic { background: rgba(255,255,255,0.12); }

.btn-dark { background: var(--dark); color: var(--off-white); }
.btn-dark:hover { background: var(--deep-dark); }
.btn-dark .btn-ic { background: rgba(255,255,255,0.14); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(12, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 169, 111, 0.18);
}
.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo img {
  height: 30px;
  width: auto;
  filter: invert(1) brightness(1.6);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2rem);
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light-mid);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta { display: inline-flex; }
.nav-cta .btn { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 320;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 5px auto;
  transition: transform 0.4s var(--spring), opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--deep-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; display: grid; gap: 0.4rem; }
.mobile-menu a:not(.btn) {
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 700;
  color: var(--text-light);
  display: block;
  padding-block: 0.55rem;
  transition: color 0.25s;
}
.mobile-menu a:not(.btn):hover { color: var(--gold); }
.mobile-menu .mm-divider {
  height: 2px;
  background: var(--gold-muted);
  margin-block: 1.4rem;
}

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

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--deep-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12,12,11,0.92) 0%, rgba(12,12,11,0.45) 42%, rgba(12,12,11,0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}
.hero h1 {
  color: #fff;
  margin: 1rem 0 1.1rem;
  max-width: 18ch;
}
.hero h1 .hl-line { display: block; overflow: hidden; }
.hero h1 .hl-word { display: inline-block; transform: translateY(110%); }
.hero .hero-sub {
  color: var(--text-light-mid);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold); }

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

.stats {
  background: var(--deep-dark);
  border-top: 1px solid rgba(200,169,111,0.16);
  padding-block: clamp(2.2rem, 4.5vw, 3.4rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.stat { text-align: left; }
.stat-num {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* ---------- Values ticker ---------- */

.ticker {
  background: var(--gold);
  overflow: hidden;
  padding-block: 0.85rem;
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker-track span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #14120c;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.ticker-track span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(12,12,11,0.45);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Intro ---------- */

.intro { padding-block: var(--section-pad); background: var(--off-white); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.intro-copy h2 { margin: 1rem 0 1.3rem; }
.intro-copy p + p { margin-top: 1rem; }
.intro-media { position: relative; }
.intro-media img {
  border-radius: 14px;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  width: 100%;
}
.intro-chip {
  position: absolute;
  left: clamp(-1.25rem, -2vw, -2rem);
  bottom: 2rem;
  background: var(--dark);
  color: var(--text-light);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  box-shadow: 0 18px 40px rgba(12,12,11,0.28);
  max-width: 240px;
}
.intro-chip strong {
  display: block;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.intro-chip small { font-size: 0.8rem; color: var(--text-light-muted); line-height: 1.45; display: block; margin-top: 0.25rem; }

/* ---------- Services ---------- */

.services { padding-block: var(--section-pad); background: var(--dark); }
.services-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.services-head h2 { color: #fff; margin-top: 1rem; }
.services-head p { color: var(--text-light-mid); margin-top: 1rem; }

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(200,169,111,0.16);
}
.svc-row:last-child { border-bottom: 1px solid rgba(200,169,111,0.16); }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { overflow: hidden; border-radius: 12px; }
.svc-media img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.svc-row:hover .svc-media img { transform: scale(1.045); }
.svc-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
}
.svc-copy h3 { color: #fff; margin: 0.65rem 0 0.8rem; }
.svc-copy p { color: var(--text-light-mid); max-width: 52ch; }
.svc-price {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(200,169,111,0.4);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.svc-note {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-light-muted);
}

/* ---------- Work ---------- */

.work { padding-block: var(--section-pad); background: var(--off-white); }
.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.work-head h2 { margin-top: 1rem; max-width: 16ch; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.work-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dark);
}
.work-card:nth-child(1) { grid-column: span 7; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: span 5; }
.work-card:nth-child(4) { grid-column: span 7; }
.work-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.4s;
}
.work-card:hover img { transform: scale(1.05); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,11,0.88) 0%, rgba(12,12,11,0.12) 55%, transparent 100%);
  pointer-events: none;
}
.work-meta {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.25rem;
}
.work-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #14120c;
  background: var(--gold);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.6rem;
}
.work-meta h3 { color: #fff; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 500; }
.work-meta p { color: var(--text-light-mid); font-size: 0.88rem; margin-top: 0.3rem; max-width: 48ch; }

/* ---------- Process ---------- */

.process { padding-block: var(--section-pad); background: var(--light-warm); }
.process-head { max-width: 620px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.process-head h2 { margin-top: 1rem; }
.process-head p { margin-top: 1rem; }

.process-rail {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: clamp(2.4rem, 6vw, 3.4rem);
}
.rail-line {
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: rgba(23, 23, 19, 0.12);
  border-radius: 3px;
  overflow: hidden;
}
.rail-line .rail-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(0);
}
.step { position: relative; padding-block: clamp(1.2rem, 3vw, 1.9rem); }
.step + .step { border-top: 1px solid rgba(23,23,19,0.08); }
.step-dot {
  position: absolute;
  left: calc(-1 * clamp(2.4rem, 6vw, 3.4rem) + 4px);
  top: clamp(1.55rem, 3.4vw, 2.3rem);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--off-white);
  border: 3px solid rgba(23,23,19,0.25);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.5s var(--spring);
}
.step.active .step-dot {
  border-color: var(--gold);
  background: var(--gold);
  transform: scale(1.18);
}
.step-k {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}
.step h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 500; margin: 0.35rem 0 0.5rem; }
.step p { max-width: 60ch; }

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

.team { padding-block: var(--section-pad); background: var(--off-white); }
.team-head { max-width: 620px; margin-bottom: clamp(2rem, 4.5vw, 3rem); }
.team-head h2 { margin-top: 1rem; }
.team-head p { margin-top: 1rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.team-card {
  background: #fff;
  border: 1px solid rgba(23,23,19,0.08);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.4rem;
  transition: transform 0.5s var(--spring), box-shadow 0.4s var(--ease);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(12,12,11,0.1);
}
.team-mono {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-muted);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.team-card h3 { font-size: 1.08rem; font-weight: 500; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ---------- Testimonials ---------- */

.quotes { padding-block: var(--section-pad); background: var(--dark); }
.quotes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}
.quotes-head h2 { color: #fff; margin-top: 1rem; }
.quotes-hint { color: var(--text-light-muted); font-size: 0.85rem; }
.quotes-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 82vw);
  gap: clamp(1rem, 2.4vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.quotes-rail::-webkit-scrollbar { display: none; }
.quote-card {
  scroll-snap-align: start;
  background: var(--dark-2);
  border: 1px solid rgba(200,169,111,0.16);
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.quote-mark {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
}
.quote-card blockquote {
  color: var(--text-light-mid);
  font-size: 0.98rem;
  flex: 1;
}
.quote-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

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

.cta {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--deep-dark);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,111,0.16) 0%, transparent 68%);
  top: -240px;
  right: -160px;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin-inline: auto; }
.cta h2 { color: #fff; margin-top: 1rem; }
.cta p { color: var(--text-light-mid); margin: 1.1rem auto 2rem; max-width: 48ch; }
.cta-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta .eyebrow { justify-content: center; }

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

.footer {
  background: var(--deep-dark);
  border-top: 1px solid rgba(200,169,111,0.14);
  padding: clamp(2.5rem, 5vw, 3.6rem) 0 1.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2rem;
}
.footer-brand img { height: 28px; width: auto; filter: invert(1) brightness(1.6); margin-bottom: 1rem; }
.footer-brand p { color: var(--text-light-muted); font-size: 0.9rem; max-width: 30ch; }
.footer h4 {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.35rem; }
.footer ul a {
  color: var(--text-light-mid);
  font-size: 0.92rem;
  transition: color 0.25s;
  display: inline-block;
  padding-block: 0.2rem;
}
.footer ul a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--text-light-muted);
  font-size: 0.8rem;
}

/* ---------- 404 ---------- */

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--deep-dark);
  text-align: center;
  padding-block: calc(var(--nav-height) + 2rem);
}
.error-inner { max-width: 620px; margin-inline: auto; }
.error-code {
  font-size: clamp(6rem, 20vw, 11rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-muted);
  letter-spacing: -0.04em;
}
.error-inner h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0.8rem 0 1rem; }
.error-inner p { color: var(--text-light-mid); margin-bottom: 2rem; }

/* ---------- Reveal helper ---------- */

.reveal { opacity: 0; transform: translateY(28px); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { order: -1; }
  .intro-chip { left: 1rem; bottom: 1rem; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .work-card:nth-child(n) { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { align-items: flex-end; }
  .hero h1 { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero:not([style]) {
    height: auto;
    min-height: 100svh;
    padding-top: 6rem;
  }
}
@media (max-width: 480px) {
  .hero:not([style]) { padding-top: 5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer ul a { padding-block: 0.65rem; }
  .stat-num { font-size: 1.75rem; }
}

/* ---------- Mobile drawer close control ---------- */
/* The burger doubles as the close (X), but the nav's own z-index traps it in a
   stacking context below the drawer, so it is painted over and cannot be tapped.
   This control lives inside the drawer, so it is always visible and always hits. */
#mobileMenu .mnav-close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: 0.85rem;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
#mobileMenu .mnav-close::before,
#mobileMenu .mnav-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 1.5px;
  margin: -0.75px 0 0 -10.5px;
  background: currentColor;
  border-radius: 2px;
}
#mobileMenu .mnav-close::before { transform: rotate(45deg); }
#mobileMenu .mnav-close::after { transform: rotate(-45deg); }
#mobileMenu .mnav-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
