/* ============================================================
   Madley Fine Cabinetry - Homepage Concept
   Design language: Soft Luxury (type/spacing/motion only)
   Palette: Madley's real brand colors, extracted from
   madleyfinecabinetry.com Squarespace theme:
     accent hsl(30.81,40.22%,63.92%) = #c8a47e (camel)
     darkAccent hsl(273,20.41%,19.22%) = #32273b (plum), deepened
     lightAccent = #f1f1ef (ivory family, warmed)
   ============================================================ */

:root {
  /* Backgrounds */
  --ivory:        #f7f4ee;
  --champagne:    #efeae1;
  --plum:         #2a2133;
  --plum-deep:    #1d1725;
  --plum-card:    #362b42;

  /* Accent (Madley's camel, exact + deepened within family) */
  --camel:        #c8a47e;
  --camel-deep:   #725737;   /* deepened 7/22/26 for AA on champagne/ivory */
  --camel-hero:   #e5cdb4;   /* lightened camel for the eyebrow over the bright hero photo */
  --camel-muted:  rgba(200, 164, 126, 0.3);
  --camel-soft:   rgba(200, 164, 126, 0.14);

  /* Text */
  --text-dark:    #241f29;
  --text-body:    #57505e;
  --text-muted:   #837c8a;
  --text-light:   rgba(255, 255, 255, 0.82);
  --text-light-muted: rgba(255, 255, 255, 0.72);

  /* Typography */
  --font-display: 'Tenor Sans', serif;
  --font-body:    'Jost', sans-serif;

  /* Layout */
  --container:    min(90%, 1160px);
  --gutter:       clamp(1.5rem, 4vw, 3rem);
  --nav-height:   84px;
  --radius:       16px;
  --radius-sm:    12px;

  /* Motion */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-body);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

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

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

section { position: relative; }

.section-pad { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--camel-deep);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--camel);
}
.on-dark .eyebrow { color: var(--camel); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.02rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.55s var(--ease), color 0.55s var(--ease),
              border-color 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: transform;
}
.btn .btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  transition: transform 0.55s var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.6); }

.btn--solid { background: var(--camel); color: var(--plum-deep); }
.btn--solid:hover { background: #d5b493; }

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn--ghost-dark {
  border-color: rgba(36, 31, 41, 0.3);
  color: var(--text-dark);
  background: transparent;
}
.btn--ghost-dark:hover { border-color: var(--text-dark); background: rgba(36,31,41,0.05); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease),
              height 0.6s var(--ease);
}
.nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.5s var(--ease);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.4rem);
  list-style: none;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 0.5rem;
  transition: color 0.4s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.62rem 1.35rem !important;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease) !important;
}
.nav__cta:hover { background: var(--camel); border-color: var(--camel); color: var(--plum-deep) !important; }

.nav.scrolled {
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(36, 31, 41, 0.08);
  height: 68px;
}
.nav.scrolled .nav__logo img { filter: none; }
.nav.scrolled .nav__links a { color: var(--text-dark); }
.nav.scrolled .nav__links a:hover { color: var(--camel-deep); }
.nav.scrolled .nav__cta { border-color: rgba(36, 31, 41, 0.35); }
.nav.scrolled .nav__cta:hover { background: var(--plum); border-color: var(--plum); color: #fff !important; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 320;
  padding: 10px;
}
.nav__burger span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: #fff;
  transition: transform 0.45s var(--ease), opacity 0.3s, background 0.4s;
}
.nav.scrolled .nav__burger span { background: var(--text-dark); }
.nav__burger.open span { background: #fff; }
.nav__burger.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--plum-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  color: var(--text-light);
  display: inline-block;
  padding-block: 0.55rem;
  transition: color 0.4s;
}
.mobile-menu__links a:hover { color: var(--camel); }
.mobile-menu__divider {
  width: 48px; height: 1px;
  background: var(--camel-muted);
  margin-block: 1.8rem;
}
.mobile-menu .btn { align-self: flex-start; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--plum-deep);
}
.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* scrim strengthened 7/22/26: nav links + hero eyebrow sat on a bright photo */
  background: linear-gradient(to top,
    rgba(23, 17, 28, 0.88) 0%,
    rgba(23, 17, 28, 0.62) 45%,
    rgba(23, 17, 28, 0.68) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 8vh, 6.5rem);
  max-width: 1160px;
}
.hero .eyebrow { color: var(--camel-hero); }
.hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  max-width: 17ch;
  margin-bottom: 1.4rem;
}
.hero__sub {
  color: var(--text-light);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 52ch;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   Intro
   ============================================================ */
.intro { background: var(--ivory); }
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.intro__grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  max-width: 18ch;
}
.intro__body p { margin-bottom: 1.3rem; font-size: 1.02rem; }
.intro__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
}
.cred-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--camel-muted);
  border-radius: 999px;
  background: var(--camel-soft);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: var(--camel-deep);
}
.cred-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--camel);
}

/* ============================================================
   Spaces (signature hover gallery)
   ============================================================ */
.spaces { background: var(--champagne); overflow: hidden; }
.spaces__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.spaces__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 20ch; }
.spaces__head p { max-width: 56ch; margin-top: 1.1rem; }

.spaces__stage {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.spaces__list { list-style: none; }
.spaces__item { border-bottom: 1px solid rgba(36, 31, 41, 0.12); }
.spaces__item:first-child { border-top: 1px solid rgba(36, 31, 41, 0.12); }
.spaces__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: padding-left 0.55s var(--ease);
}
.spaces__link h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--text-muted);
  transition: color 0.5s var(--ease);
}
.spaces__link .spaces__num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--camel-deep);
  opacity: 0.9;
  transition: opacity 0.5s;
}
.spaces__item.active .spaces__link { padding-left: 1.1rem; }
.spaces__item.active h3 { color: var(--text-dark); }
.spaces__item.active .spaces__num { opacity: 1; }
.spaces__desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s var(--ease), opacity 0.55s var(--ease), padding 0.5s var(--ease);
  padding: 0 0.25rem 0 1.1rem;
  font-size: 0.98rem;
}
.spaces__item.active .spaces__desc {
  max-height: 130px;
  opacity: 1;
  padding-bottom: 1.4rem;
}

.spaces__viewer {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(36, 31, 41, 0.18);
}
.spaces__viewer img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s var(--ease), transform 1.6s var(--ease);
}
.spaces__viewer img.visible { opacity: 1; transform: scale(1); }
.spaces__viewer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

/* Mobile stacked cards (replaces hover gallery) */
.spaces__cards { display: none; }

/* ============================================================
   Craft (dark)
   ============================================================ */
.craft { background: var(--plum); }
.craft h2, .craft h3 { color: #fff; }
.craft p { color: var(--text-light-muted); }
.craft__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.craft__grid h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.craft__grid p { margin-bottom: 1.2rem; font-size: 1.02rem; }
.craft__materials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
}
.material-chip {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--camel-muted);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--camel);
  background: rgba(200, 164, 126, 0.08);
}
.craft__imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.craft__imgs figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.craft__imgs img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}
.craft__imgs figure:hover img { transform: scale(1.08); }

/* ============================================================
   Process
   ============================================================ */
.process { background: var(--ivory); }
.process__head { max-width: 60ch; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.process__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1.1rem; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.step {
  background: #fff;
  border: 1px solid rgba(36, 31, 41, 0.07);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 10px 30px rgba(36, 31, 41, 0.05);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(36, 31, 41, 0.1);
}
.step__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--camel-deep);
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
  display: block;
}
.step h3 { font-size: 1.22rem; margin-bottom: 0.7rem; }
.step p { font-size: 0.95rem; }
.process__cta { margin-top: clamp(2.4rem, 5vw, 3.5rem); display: flex; justify-content: center; }

/* ============================================================
   Testimonials (dark)
   ============================================================ */
.reviews { background: var(--plum-deep); }
.reviews .eyebrow { color: var(--camel); }
.reviews h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 22ch; }
.reviews__head { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.review-card {
  background: var(--plum-card);
  border: 1px solid rgba(200, 164, 126, 0.16);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.review-card__stars {
  color: var(--camel);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
}
.review-card blockquote {
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.75;
  flex: 1;
}
.review-card cite {
  font-style: normal;
  font-family: var(--font-display);
  color: var(--camel);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   Team
   ============================================================ */
.team { background: var(--champagne); }
.team__head { max-width: 62ch; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.team__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1.1rem; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  max-width: 940px;
}
.member {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  align-items: start;
}
.member__photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 3.8;
  box-shadow: 0 14px 34px rgba(36, 31, 41, 0.14);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.member__role {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--camel-deep);
  margin-bottom: 0.9rem;
  font-weight: 400;
}
.member p { font-size: 0.95rem; }

/* ============================================================
   Service area strip
   ============================================================ */
.area {
  background: var(--camel);
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
}
.area p {
  text-align: center;
  color: var(--plum-deep);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--plum-deep);
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.14;
}
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.cta p { color: var(--text-light-muted); margin-bottom: 2.4rem; font-size: 1.05rem; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.cta__address {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--plum-deep);
  border-top: 1px solid rgba(200, 164, 126, 0.14);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__brand img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.2rem;
}
.footer__brand p {
  color: var(--text-light-muted);
  font-size: 0.88rem;
  max-width: 30ch;
}
.footer h4 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; }
.footer ul a {
  display: inline-block;
  color: var(--text-light-muted);
  font-size: 0.92rem;
  padding-block: 0.3rem;
  transition: color 0.4s;
}
.footer ul a:hover { color: #fff; }
.footer ul li span {
  display: inline-block;
  color: var(--text-light-muted);
  font-size: 0.92rem;
  padding-block: 0.3rem;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   Reveal animation base
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; max-width: 640px; }
  .craft__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .intro__grid { grid-template-columns: 1fr; }

  /* Spaces: swap hover gallery for stacked cards */
  .spaces__stage { display: none; }
  .spaces__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .space-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 40px rgba(36, 31, 41, 0.14);
  }
  .space-card img { width: 100%; height: 100%; object-fit: cover; }
  .space-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem 1.4rem 1.3rem;
    background: linear-gradient(to top, rgba(23, 17, 28, 0.85), transparent);
  }
  .space-card figcaption h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }
  .space-card figcaption p {
    color: var(--text-light-muted);
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .team__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer ul a, .footer ul li span { padding-block: 0.65rem; }
}

@media (max-width: 768px) {
  .hero:not([style]) {
    height: auto;
    min-height: 100svh;
    padding-top: 7rem;
  }
  .craft__imgs { grid-template-columns: repeat(2, 1fr); }
  .craft__imgs figure:nth-child(3) { display: none; }
}

@media (max-width: 560px) {
  .process__grid { grid-template-columns: 1fr; }
  .member { grid-template-columns: 128px 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero:not([style]) { padding-top: 6rem; }
  .member { grid-template-columns: 1fr; }
  .member__photo { max-width: 220px; }
}

/* ---------- 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.82);
  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; }
