/* =========================================================
   bymagicmike.com — shared site styles
   Brand: Futura, monochrome (black, white, light grey, dark grey)
   ========================================================= */

:root {
  --white:   #ffffff;
  --paper:   #ffffff;   /* pure white */
  --grey-1:  #f3f3f3;   /* light grey */
  --grey-2:  #d8d6d0;   /* line / divider */
  --grey-3:  #8a8780;   /* muted body */
  --grey-4:  #3d3b36;   /* dark grey body */
  --ink:     #0d0d0c;   /* near-black */
  --line:    var(--grey-2);
  --muted:   var(--grey-3);
  --accent:  var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Futura", "Futura PT", "Trebuchet MS", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }

/* Body-copy: Futura PT Book (Adobe Fonts kit). Scoped to <p> so headings,
   nav, buttons, etc. continue using the system Futura stack. */
p {
  font-family: "futura-pt", "Futura", "Futura PT", "Trebuchet MS", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--white); }

.display {
  font-family: "Futura", "Futura PT", "Trebuchet MS", "Century Gothic", "Avenir Next Heavy", "Avenir Next", sans-serif;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: .92;
  text-transform: uppercase;
}
.serif {
  font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow    { max-width: 880px;  margin: 0 auto; padding: 0 28px; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}
.nav-left, .nav-right {
  display: flex; gap: 28px; align-items: center;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.nav-left a:hover, .nav-right a:hover { border-bottom-color: rgba(13,13,12,.33); }
.nav-left a[aria-current="page"], .nav-right a[aria-current="page"] { border-bottom-color: rgba(13,13,12,.33); }
.nav-mark { display: inline-flex; align-items: center; }
.nav-mark img { height: 36px; width: auto; display: block; }
@media (max-width: 720px) { .nav-mark img { height: 28px; } }
.pill-btn {
  background: var(--ink);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 700; letter-spacing: .14em;
  transition: background .15s ease, transform .15s ease;
}
.pill-btn:hover { background: var(--grey-4); transform: translateY(-1px); }

/* ===================== MOBILE MENU TOGGLE — ASTERISK + LABEL =====================
   Mobile-only. Desktop keeps the original inline nav links visible. On mobile
   the inline groups collapse behind a menu toggle (brand asterisk + "MENU" in
   Futura Light) on the left and a search button on the right. The asterisk
   rotates 30° clockwise when the menu is open. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none; border: 0; padding: 6px 0; margin: 0;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.nav-toggle .nav-toggle-mark {
  font-family: "Futura", "Futura PT", "Trebuchet MS", "Century Gothic", sans-serif;
  font-weight: 900;
  font-size: 26px; line-height: 1;
  display: inline-block;
  transform-origin: 50% 55%;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-mark { transform: rotate(30deg); }
.nav-toggle .nav-toggle-text {
  font-family: "Futura", "Futura PT", "Trebuchet MS", "Century Gothic", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "menu mark search";
  }
  .nav-toggle { grid-area: menu; justify-self: start; }
  .nav-mark { grid-area: mark; justify-self: center; }
  .nav-search { grid-area: search; justify-self: end; }
  .nav-left, .nav-right { display: none; }

  /* Drawer state */
  .nav.is-open .nav-inner {
    grid-template-areas:
      "menu mark search"
      "left left  left"
      "right right right";
    grid-template-rows: 76px auto auto;
    height: auto;
    padding-bottom: 22px;
    row-gap: 0;
  }
  .nav.is-open .nav-left,
  .nav.is-open .nav-right {
    display: flex; flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0 0;
    font-size: 15px; letter-spacing: .12em;
  }
  .nav.is-open .nav-left {
    grid-area: left;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .nav.is-open .nav-right { grid-area: right; padding-top: 6px; }
  body.nav-open { overflow: hidden; }
}

/* ===================== SEARCH BUTTON ===================== */
.nav-search {
  display: inline-flex;
  background: none; border: 0; padding: 6px; margin: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--ink);
  transition: opacity .15s ease;
}
.nav-search:hover { opacity: .65; }
.nav-search:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.nav-search svg { width: 25px; height: 25px; display: block; }
/* Two buttons get injected: one as a direct child of .site-nav (.nav-search--mobile)
   for the mobile grid right slot, and one inside .site-nav__group--right as a <li>
   (.nav-search--desktop) for the desktop right nav. Only the right one shows at
   each viewport. */
.nav-search--mobile { display: none; }
.nav-search--desktop { display: inline-flex; }
.site-nav__search-item { display: flex; align-items: center; }
@media (max-width: 720px) {
  .nav-search--mobile { display: inline-flex; }
  .nav-search--desktop { display: none; }
  /* Hide the desktop button's wrapper li so it doesn't add an empty row
     inside the mobile slide-in drawer. */
  .site-nav__search-item { display: none; }
}
/* While the drawer is open, fade the trigger so it doesn't sit under the dim
   backdrop and overlap with the close button. */
body.search-open .nav-search {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

/* ===================== SEARCH RESULTS (live) ===================== */
.search-results {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.search-results:empty { margin: 0; }
.search-results li { margin: 0; }
.search-results li + li { border-top: 1px solid rgba(13,13,12,.08); }
.search-results a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
}
.search-result__type {
  display: block;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(13,13,12,.5);
  font-weight: 700;
  margin-bottom: 4px;
}
.search-result__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.search-result__excerpt {
  display: block;
  font-size: 13px;
  color: rgba(13,13,12,.6);
  margin-top: 4px;
}
.search-results a:hover .search-result__title { text-decoration: underline; }
.search-results__none {
  padding: 18px 0;
  color: rgba(13,13,12,.55);
  font-size: 12px; letter-spacing: .08em;
}

/* ===================== SEARCH DRAWER (right slide-in) =====================
   Container is fixed full-viewport; the .search-form inside is the actual
   panel that slides in from the right. A pseudo-backdrop dims the page. */
.search-overlay {
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none;
}
.search-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(13,13,12,.4);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.search-overlay.is-open { pointer-events: auto; }
.search-overlay.is-open::before { opacity: 1; pointer-events: auto; }
body.search-open { overflow: hidden; }

.search-form {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(85vw, 360px);
  background: var(--paper);
  padding: 96px 32px 40px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .25s ease;
  box-shadow: none;
}
.search-overlay.is-open .search-form {
  transform: translateX(0);
  box-shadow: -20px 0 50px rgba(0,0,0,.18);
}
.search-form input[type="search"] {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(13,13,12,.2);
  padding: 14px 40px 14px 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.005em;
  outline: none;
}
.search-form input[type="search"]::placeholder { color: rgba(13,13,12,.4); }
.search-form input[type="search"]:focus { border-bottom-color: var(--ink); }
.search-form .search-submit {
  position: absolute;
  right: 32px; top: 96px;
  background: none; border: 0; padding: 8px;
  color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-form .search-submit svg { width: 20px; height: 20px; }
.search-form .search-hint {
  margin-top: 16px;
  color: rgba(13,13,12,.55);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
.search-overlay .search-close {
  position: absolute; top: 22px; right: 22px;
  background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--ink);
  font-size: 28px; line-height: 1;
  /* z-index keeps the × above the sliding .search-form panel (same
     stacking context); opacity gating hides it while the drawer is
     closed so it doesn't overlap the .nav-search trigger. */
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.search-overlay.is-open .search-close {
  opacity: 1;
  pointer-events: auto;
}


/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px;
  transition: all .15s ease;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--grey-4); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-on-dark { background: var(--white); color: var(--ink); }
.btn-on-dark:hover { background: var(--paper); transform: translateY(-2px); }

/* ===================== PAGE HEADER ===================== */
.page-header {
  padding: 7px 0 80px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-header .eyebrow { display: block; margin-bottom: 18px; }
.page-header h1 {
  font-size: clamp(48px, 8.25vw, 135px);
  margin: 0;
  line-height: .9;
}
.page-header p {
  margin-top: 24px;
  max-width: 640px;
  font-size: 18px;
  color: var(--grey-4);
  line-height: 1.55;
}

/* ===================== SECTION HEAD ===================== */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 24px; flex-wrap: wrap;
}
.section-head h1,
.section-head h2 { font-size: clamp(40px, 5.6vw, 80px); margin: 0; line-height: .95; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head .link {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
}

/* ===================== FOOTER ===================== */
.foot { background: var(--ink); color: var(--paper); padding: 90px 0 36px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,244,242,.12);
}
.foot-mark {
  width: 150px; height: auto;
  margin: 0 0 26px -28px;   /* nudge left so the visible M aligns with paragraph below */
  display: block;
}
@media (max-width: 720px) {
  .foot-mark { width: 120px; margin-left: -22px; margin-bottom: 20px; }
}
.foot p { color: rgba(244,244,242,.62); max-width: 320px; font-size: 14px; line-height: 1.55; margin: 0; }
.foot h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; font-weight: 700; color: rgba(244,244,242,.45); margin: 0 0 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 10px; font-size: 14px; }
.foot li a { color: rgba(244,244,242,.85); transition: color .15s; }
.foot li a:hover { color: var(--white); }
.foot-bottom {
  padding-top: 28px; display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; color: rgba(244,244,242,.4); letter-spacing: .04em;
}
.foot-bottom a { color: rgba(244,244,242,.65); }

/* ===================== UTIL ===================== */
.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--grey-4);
  font-weight: 400;
}
.divider {
  height: 1px; background: var(--line); border: 0; margin: 0;
}
.section { padding: 110px 0; }
.section--grey-1 { background: var(--grey-1); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .eyebrow { color: rgba(244,244,242,.55); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  /* Nav layout below 720px is handled by the asterisk-menu drawer above. */
  .container, .narrow { padding: 0 20px; }
  .page-header { padding: 5px 0 60px; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h1,
  .section-head h2 { font-size: clamp(32px, 9vw, 56px); }
  .foot { padding: 60px 0 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .foot-bottom { flex-direction: column; gap: 8px; font-size: 11px; }
  .foot p { font-size: 13px; }
  .foot li { font-size: 15px; margin-bottom: 12px; }
  .lede { font-size: 18px; line-height: 1.5; }
  .btn { padding: 14px 22px; font-size: 11px; }
}
@media (max-width: 380px) {
  .container, .narrow { padding: 0 16px; }
}

/* ============= SKIP TO CONTENT (keyboard a11y) ============= */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink, #0d0d0c);
  color: var(--paper, #f4efe6);
  font-family: "futura-pt", "Futura", "Trebuchet MS", "Century Gothic", sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--paper); outline-offset: 2px; }

/* ============= SITE HEADER (single-line navbar: links | wordmark | links) ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 30px 0 14px;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header > .site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(13,13,12,.10);
  box-shadow: 0 1px 12px rgba(13,13,12,.04);
}
.site-mark {
  position: relative;
  display: inline-block;
  justify-self: center;
  line-height: 0;
}
.site-mark > img {
  height: clamp(38px, 4.16vw, 51px);
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
/* The wordmark is split into two perfectly-aligned PNGs (same canvas size):
     - wordmark-no-asterisk.png : everything except the asterisk
     - wordmark-asterisk-only.png : just the asterisk on transparent canvas
   The asterisk overlay sits absolutely on top, rotating in place around its
   own center on hover. No masking, no fragments. */
.site-mark__asterisk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Asterisk center sits at (76.20%, 19.60%) of the wordmark canvas — this
     is the rotation pivot so it spins on its own pinpoint center. */
  transform-origin: 76.20% 19.60%;
}
@keyframes site-mark-asterisk-spin {
  0%   { transform: rotate(0deg)    scale(1); }
  25%  { transform: rotate(90deg)   scale(1.08); }
  50%  { transform: rotate(180deg)  scale(1.12); }
  75%  { transform: rotate(270deg)  scale(1.08); }
  100% { transform: rotate(360deg)  scale(1); }
}
.site-mark:hover .site-mark__asterisk {
  animation: site-mark-asterisk-spin .7s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .site-mark:hover .site-mark__asterisk { animation: none; }
}
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}
.site-nav__group {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  white-space: nowrap;
}
.site-nav__group--left  { justify-content: flex-start; }
.site-nav__group--right { justify-content: flex-end; }
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-family: "futura-pt", "Futura", "Trebuchet MS", "Century Gothic", sans-serif;
  font-weight: 600;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(13,13,12,.62);
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  font-family: "futura-pt", "Futura", "Trebuchet MS", "Century Gothic", sans-serif;
}
.site-nav a[aria-current="page"]::after { display: none; }
/* Primary CTA in nav (e.g. Visits) — pill, inverted */
.site-nav a.cta {
  background: var(--ink, #0d0d0c);
  color: var(--paper, #fff);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.site-nav a.cta:hover { background: var(--grey-4, #3d3b36); color: var(--paper, #fff); }
.site-nav a.cta[aria-current="page"] { color: var(--paper, #fff); }
.site-nav a.cta[aria-current="page"]::after { display: none; }
@media (max-width: 640px) {
  .site-nav a.cta { padding: 7px 14px; }
}
.site-nav a:focus-visible,
.site-mark:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--ink, #0d0d0c);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .site-header { padding: 24px 0 14px; }
  .site-header > .site-nav { padding: 0 16px; }
  .site-mark > img { height: 35px; }
  .site-nav { gap: 10px; }
  .site-nav__group { gap: 12px; }
  .site-nav a { font-size: 11px; letter-spacing: .16em; }
}
@media (max-width: 420px) {
  .site-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }
  .site-mark { order: -1; }
  .site-nav__group { justify-content: center; }
}

/* ============= MOBILE HAMBURGER NAV (overrides for <=720px) ============= */
.nav-burger {
  display: none;
  background: none; border: 0; padding: 10px; margin: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  color: var(--ink);
  position: relative;
  z-index: 62;
}
.nav-burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel wrapper is layout-transparent on desktop so the existing 3-column
   grid (left | mark | right) still works. */
.site-nav__panel { display: contents; }
.site-nav__backdrop { display: none; }

/* Mobile-only Visits CTA hidden on desktop (the in-panel Visits handles desktop). */
.site-nav a.site-nav__cta-mobile { display: none; }

/* Keep desktop visual order even though DOM order changes (mark first). */
.site-nav .site-nav__group--left  { order: 1; }
.site-nav .site-mark               { order: 2; }
.site-nav .site-nav__group--right { order: 3; }
.site-nav .site-nav__cta-mobile    { order: 4; }
.site-nav .nav-burger              { order: 5; }

@media (max-width: 720px) {
  /* 3-column grid forces the logo to true page center regardless of the
     widths of the burger (left) and Visits CTA (right). */
  .site-header > .site-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
  }
  .site-nav .nav-burger           { grid-row: 1; grid-column: 1; justify-self: start; }
  .site-nav .site-mark            { grid-row: 1; grid-column: 2; justify-self: center; flex: none; display: inline-block; }
  .site-nav .nav-search           { grid-row: 1; grid-column: 3; justify-self: end; }
  .site-nav .site-mark > img { height: 34px; }
  .nav-burger { display: inline-flex; }

  /* The mobile Visits pill is intentionally hidden on mobile — Visits now
     lives inside the slide-in menu drawer. */
  .site-nav a.site-nav__cta-mobile { display: none; }

  /* In-panel Visits CTA shows inside the slide-in drawer on mobile
     (the right-side mobile pill has been replaced by the search button). */

  .site-nav__panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: min(85vw, 360px);
    height: 100dvh;
    background: var(--paper);
    padding: 96px 32px 40px;
    gap: 26px;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .25s ease;
    z-index: 60;
    box-shadow: none;
    overflow-y: auto;
  }
  .site-nav.is-open .site-nav__panel {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0,0,0,.18);
  }

  .site-nav__panel .site-nav__group {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    white-space: normal;
  }
  .site-nav__panel .site-nav__group a {
    font-size: 17px;
    letter-spacing: .16em;
    padding: 4px 0;
  }
  .site-nav__panel .site-nav__group a.cta {
    margin-top: 4px;
    padding: 11px 22px;
    font-size: 12px;
  }

  .site-nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(13,13,12,.4);
    z-index: 59;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .site-nav.is-open .site-nav__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }
}

/* The older 420px stack-centered rule (earlier in this file) targets
   `.site-nav` directly with lower specificity than `.site-header > .site-nav`,
   so the 720px grid layout above wins on small phones. No 420px override
   needed — the 3-column grid scales fine. */
