.section-nav {
  position: relative;
  isolation: isolate;
  /* Sticky-offset + glide tokens (rail/hero/close share these). */
  --sn-header-offset: calc(var(--header-height, 9.375rem) + var(--wp-admin--admin-bar--height, 0px) + 1rem);
  --sn-sticky-top: var(--sn-header-offset);
  --sn-glide: 650ms var(--ease-settle);
}

/* Header hidden on scroll → pin the sticky rail/hero/close to the top. */
html:has(.site-header[data-hidden="true"]) .section-nav {
  --sn-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

/* Sticky-header offset so anchored sections / focused targets clear the bar. */
.section-nav {
  scroll-margin-top: max(80px, var(--sn-header-offset));
}

/* ── Layout: sticky rail (with decorative card) beside the items column ── */
.section-nav__layout {
  position: relative;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .section-nav__layout {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    column-gap: 5rem;
    align-items: start;
  }
}

/* ── Aside (rail + decorative tilted card) ───────────────────────────── */
.section-nav__aside {
  position: relative;
}

@media (min-width: 60rem) {
  .section-nav__aside {
    position: sticky;
    top: var(--sn-sticky-top);
    padding-top: 94px;
    align-self: start;
    /* Glide with the header as it hides/shows (matches the header reveal). */
    transition: top var(--sn-glide);
  }
}

@media (min-width: 60rem) and (prefers-reduced-motion: reduce) {
  .section-nav__aside {
    transition: none;
  }
}

/* Clip the accent card at the section edges so the sticky rail can't drag it
   down into the next block; clip (not hidden) keeps the rail sticky (#95). */
@media (min-width: 60rem) {
  .section-nav {
    overflow: clip;
  }
}

/* Decorative tilted accent card — bleeds off the left, sits behind the rail.
   Hidden on mobile (the cards themselves carry the navigation there). */
.section-nav__accent-card {
  display: none;
}

@media (min-width: 60rem) {
  .section-nav__accent-card {
    display: block;
    position: absolute;
    z-index: 0;
    top: -1rem;
    /* Bleed left to the viewport edge; width absorbs the bleed so the card stays under the rail. */
    left: calc(-1 * (max((100vw - 90rem) / 2, 0px) + 6rem));
    width: calc(max((100vw - 90rem) / 2, 0px) + 20.5rem);
    /* Grows past the base size to hug every rail item (aside height + top bleed + 3rem). */
    height: max(min(32.5rem, 70vh), calc(100% + 4rem));
    background: var(--sn-accent-light, var(--color-light-green));
    /* Independent rotate property so data-reveal can animate transform. */
    rotate: 4deg;
    transform-origin: center;
    pointer-events: none;
    transition: background-color 0.4s ease;
  }
}

/* ── Rail (section list, built by JS) ────────────────────────────────── */
.section-nav__rail {
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 1.5rem;
}

/* Ships `hidden` (empty <nav> would be an AT landmark); JS reveals once filled.
   Guard on :not([hidden]) so the set display can't override the hidden attr. */
.section-nav__rail:not([hidden]) {
  display: flex;
}

@media (max-width: 59.999rem) {
  /* Mobile: sticky horizontal nav bar (Figma 1824-54387). */
  .section-nav__aside {
    position: sticky;
    top: var(--sn-sticky-top);
    z-index: 30; /* above the cards (which scroll under it); below the header */
    transition: top var(--sn-glide);
  }

  /* Header hidden → pin flush to the top (no float gap, so cards don't peek above). */
  html:has(.site-header[data-hidden="true"]) .section-nav__aside {
    top: var(--wp-admin--admin-bar--height, 0px);
  }

  .section-nav__rail:not([hidden]) {
    flex-direction: row;
    gap: 1.5rem; /* Figma gap-4 = 24px */
    overflow-x: auto;
    scrollbar-width: none;
    /* Full-bleed to the viewport edges (root html overflow-x: clip stops scroll). */
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 0.5rem 1.25rem; /* 1.25rem inline = .site-container's 20px, so titles align with the cards */
    background: var(--sn-accent-light, var(--color-light-green));
  }

  .section-nav__rail::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 59.999rem) and (prefers-reduced-motion: reduce) {
  .section-nav__aside {
    transition: none;
  }
}

.section-nav__rail-item {
  display: block;
}

/* Rail items fade-slide in (staggered) — JS-built, so the reveal engine can't reach them. */
@media (prefers-reduced-motion: no-preference) {
  .section-nav__rail-item {
    opacity: 0;
    translate: -1.5rem 0;
  }

  .section-nav__rail.is-revealed .section-nav__rail-item {
    animation: section-nav-rail-in var(--sn-glide, 650ms var(--ease-settle)) forwards;
    /* Lead delay so the rail staggers in behind the accent card. */
    animation-delay: calc(0.9s + var(--sn-rail-i, 0) * 80ms);
  }

  @keyframes section-nav-rail-in {
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

.section-nav__rail-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
  color: color-mix(in srgb, var(--color-charcoal, #111111) 50%, transparent);
  line-height: 1.2;
  transition: color 0.2s ease;
}

.section-nav__rail-link:hover,
.section-nav__rail-link:focus-visible {
  color: var(--color-charcoal);
}

/* Active section — bold with a charcoal rule on the inline-start edge. */
.section-nav__rail-item[data-active] .section-nav__rail-link {
  color: var(--color-charcoal);
  font-weight: 700;
}

@media (min-width: 60rem) {
  .section-nav__rail-item[data-active] .section-nav__rail-link {
    border-inline-start: 1px solid var(--color-charcoal);
    padding-inline-start: 1rem;
  }
}

@media (max-width: 59.999rem) {
  .section-nav__rail-item {
    flex: none; /* keep each title intact in the horizontal strip */
  }

  .section-nav__rail-link {
    white-space: nowrap;
    color: var(--color-charcoal); /* readable on the light-green bar */
    padding-block: 0.5rem; /* ≥24px tap target (WCAG 2.2) without changing bar height */
    /* Underline transparent → fades in on the active title rather than popping. */
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.4s var(--ease-settle);
  }

  /* Active section: bold + underlined on the bar (Figma), no pill. */
  .section-nav__rail-item[data-active] .section-nav__rail-link {
    font-weight: 700;
    text-decoration-color: currentColor;
  }
}

/* ── Items column ────────────────────────────────────────────────────── */
.section-nav__items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ── Video box → lightbox trigger (added by JS to panel videos/embeds) ── */
.section-nav__video-box {
  position: relative;
}

.section-nav__video-box video {
  pointer-events: none;
}

.section-nav__video-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: color-mix(in srgb, var(--color-charcoal, #111111) 25%, transparent);
  color: var(--color-off-white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.section-nav__video-trigger:hover,
.section-nav__video-trigger:focus-visible {
  background: color-mix(in srgb, var(--color-charcoal, #111111) 40%, transparent);
}

.section-nav__video-trigger svg {
  width: 3rem;
  height: 3rem;
}

@media (prefers-reduced-motion: reduce) {
  .section-nav__accent-card,
  .section-nav__video-trigger {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Items (card → expandable panel) — styled here because the child block ships
   no stylesheet of its own.
   ════════════════════════════════════════════════════════════════════════ */
.section-nav__item {
  position: relative;
  scroll-margin-top: max(80px, var(--sn-header-offset));
}

/* ── Hero / card (collapsed) ── */
.section-nav__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Recolour to the accent surface smoothly when the section opens; `top`
     glides with the header as it hides/shows (open hero is sticky). */
  transition:
    background-color var(--duration-collapse, 420ms) var(--ease-collapse, ease),
    color var(--duration-collapse, 420ms) var(--ease-collapse, ease),
    padding var(--duration-collapse, 420ms) var(--ease-collapse, ease),
    top var(--sn-glide);
}

/* Natural aspect ratio, capped — "support different aspect ratio, max 420px". */
.section-nav__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.section-nav__caption {
  margin: 0;
  color: color-mix(in srgb, var(--color-charcoal, #111111) 50%, transparent);
}

.section-nav__item-eyebrow {
  margin: 0;
  color: color-mix(in srgb, var(--color-charcoal, #111111) 80%, transparent);
}

.section-nav__item-title {
  margin: 0;
}

.section-nav__item-desc {
  margin: 0;
  color: var(--color-charcoal);
}

/* Recolour the text in lockstep with the hero's accent fill (hover + open), so
   the colour and the background move together instead of the text snapping to
   white while the fill eases in (BugHerd #129). */
.section-nav__item-title,
.section-nav__item-desc,
.section-nav__item-eyebrow,
.section-nav__caption {
  transition: color var(--duration-collapse, 420ms) var(--ease-collapse, ease);
}

@media (prefers-reduced-motion: reduce) {
  .section-nav__item-title,
  .section-nav__item-desc,
  .section-nav__item-eyebrow,
  .section-nav__caption {
    transition: none;
  }
}

/* ── Zig-zag: cards take half width, alternating side (desktop) ── */
@media (min-width: 60rem) {
  .section-nav__item:not(.is-open) .section-nav__hero {
    width: calc(50% - 1.5rem);
    /* Padding lives in the collapsed state too, so opening (or hovering) only
       adds the accent fill — the image/text never shrink. */
    padding: 1.5rem;
  }

  /* 1st, 3rd, 5th … sit on the right; the rest stay left. */
  .section-nav__item:not(.is-open):nth-child(odd) .section-nav__hero {
    margin-inline-start: auto;
  }

  /* Smoother, gentler hover fill (BugHerd #129): the collapse default is
     ease-in-out over 420ms — swap to ease-settle (expo-out) over a longer 0.55s
     so the fill + text ease in more softly. Scoped to the collapsed cards so the
     open/close keeps its timing; gated to motion-allowed for accessibility. */
  @media (prefers-reduced-motion: no-preference) {
    .section-nav__item--openable:not(.is-open) .section-nav__hero {
      transition:
        background-color 0.55s var(--ease-settle),
        color 0.55s var(--ease-settle),
        padding 0.55s var(--ease-settle),
        top var(--sn-glide);
    }

    .section-nav__item--openable:not(.is-open) .section-nav__hero .section-nav__item-title,
    .section-nav__item--openable:not(.is-open) .section-nav__hero .section-nav__item-desc,
    .section-nav__item--openable:not(.is-open) .section-nav__hero .section-nav__item-eyebrow,
    .section-nav__item--openable:not(.is-open) .section-nav__hero .section-nav__caption {
      transition: color 0.55s var(--ease-settle);
    }
  }

  /* Hover previews the open (active) state: accent fill + inverted text. */
  .section-nav__item--openable:not(.is-open) .section-nav__hero:hover {
    background: var(--sn-accent, var(--color-dark-green));
    color: var(--color-white);
  }

  .section-nav__item--openable:not(.is-open) .section-nav__hero:hover .section-nav__item-title {
    color: var(--color-white);
  }

  .section-nav__item--openable:not(.is-open) .section-nav__hero:hover .section-nav__item-desc {
    color: var(--color-white);
  }

  .section-nav__item--openable:not(.is-open) .section-nav__hero:hover .section-nav__item-eyebrow {
    color: color-mix(in srgb, var(--color-white, #ffffff) 80%, transparent);
  }

  .section-nav__item--openable:not(.is-open) .section-nav__hero:hover .section-nav__caption {
    color: color-mix(in srgb, var(--color-white, #ffffff) 60%, transparent);
  }
}

/* ── Learn more (disclosure trigger) ── */
.section-nav__learn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.section-nav__learn-label {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.section-nav__learn-arrow {
  flex: none;
  transition: transform 0.3s ease;
}

.section-nav__learn:hover .section-nav__learn-arrow,
.section-nav__learn:focus-visible .section-nav__learn-arrow {
  transform: translateX(4px);
}

.section-nav__learn:hover .section-nav__learn-label,
.section-nav__learn:focus-visible .section-nav__learn-label {
  text-decoration-color: transparent;
}

/* Whole-card click target: the disclosure button's ::after stretches over the
   hero (collapsed only). */
.section-nav__item:not(.is-open) .section-nav__learn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-nav__caption a,
.section-nav__item-desc a {
  position: relative;
  z-index: 1;
}

/* ── Close (only while open) — sticky X on a full-height right rail. ── */
.section-nav__close-track {
  display: none;
}

/* 2.5rem right rail; the X sticks at its top, the scroll indicator runs below. */
.section-nav__item.is-open .section-nav__close-track {
  display: block;
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 2.5rem;
  z-index: 20; /* stay above all panel content so it's clickable while scrolling */
  pointer-events: none; /* track is just a sticky rail; only the button is live */
}

/* X glyph (charcoal/70%) on a cream chip matching the panel, so content scrolling
   underneath never bleeds through and the whole 2.5rem disc stays clickable. */
.section-nav__close {
  position: sticky;
  top: var(--sn-sticky-top);
  margin-inline: auto;
  margin-block-start: 0.25rem;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-off-white);
  color: var(--color-charcoal);
  cursor: pointer;
  pointer-events: auto;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    top var(--sn-glide);
}

.section-nav__close-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.section-nav__close:hover,
.section-nav__close:focus-visible {
  color: var(--color-charcoal);
  background: color-mix(in srgb, var(--color-off-white, #fffdf6) 92%, var(--color-charcoal));
}

/* ── Panel ── */
/* Collapsed: inert + aria-hidden (no `hidden` attr, so it can animate); grid-rows animates height. */
.section-nav__panel {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  translate: 0 0.75rem;
  transition:
    grid-template-rows var(--duration-collapse, 420ms) var(--ease-collapse, ease),
    opacity var(--duration-collapse, 420ms) var(--ease-collapse, ease),
    translate var(--duration-collapse, 420ms) var(--ease-collapse, ease);
}

.section-nav__panel-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow: hidden;
  min-height: 0;
  /* Right gutter clears the close/scroll rail. */
  padding-inline-end: 3rem;
}

.section-nav__item.is-open .section-nav__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  translate: 0 0;
}

.section-nav__item.is-instant,
.section-nav__item.is-instant * {
  transition: none !important;
}

/* Reading progress track + fill (JS sets the fill height); centred under the close X. */
.section-nav__progress {
  position: absolute;
  inset-block-start: 3rem;
  inset-block-end: 0;
  inset-inline-end: calc(1.25rem - 1.5px);
  width: 3px;
  background: color-mix(in srgb, var(--color-charcoal, #111111) 20%, transparent);
}

.section-nav__progress-fill {
  display: block;
  width: 100%;
  height: 0; /* JS sets the live height as the section scrolls */
  background: var(--color-charcoal);
}

/* ── Open state ── */
.section-nav__item.is-open .section-nav__item-eyebrow,
.section-nav__item.is-open .section-nav__item-desc,
.section-nav__item.is-open .section-nav__learn {
  display: none;
}

.section-nav__item.is-open .section-nav__hero {
  background: var(--sn-accent, var(--color-dark-green));
  color: var(--color-white);
  padding: 1.5rem;
}

.section-nav__item.is-open .section-nav__caption {
  color: color-mix(in srgb, var(--color-white, #ffffff) 60%, transparent);
}

.section-nav__item.is-open .section-nav__item-title {
  color: var(--color-white);
}

@media (min-width: 60rem) {
  .section-nav__item.is-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* 1.5rem each side of the divider line on the panel = a ~3rem gutter. */
    column-gap: 1.5rem;
    align-items: start;
  }

  /* Open hero is always the left column with the panel on the right, matching
     the Figma open state (1824-51810 / 2127-41242) regardless of which side the
     card sat on while collapsed. */
  .section-nav__item.is-open .section-nav__hero {
    position: sticky;
    top: var(--sn-sticky-top);
    align-self: start;
  }

  /* Vertical divider down the left of the panel, full panel height (Figma
     2127-41242, "Line 160" = charcoal). Stretch the panel to the hero's height
     so the divider spans the full card even when content is short; content stays
     top-aligned via the panel-content flex column. */
  .section-nav__item.is-open .section-nav__panel {
    border-inline-start: 1px solid var(--color-charcoal);
    align-self: stretch;
  }

  .section-nav__item.is-open .section-nav__panel-content {
    padding-inline-start: 1.5rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .section-nav__learn-arrow,
  .section-nav__close,
  .section-nav__hero,
  .section-nav__panel {
    transition: none;
  }

  /* No slide — just snap open/closed. */
  .section-nav__panel {
    translate: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Timeline variant (Figma 2127-41242) — date-driven eras, scoped to
   .section-nav--timeline so the default layout is untouched.
   ════════════════════════════════════════════════════════════════════════ */

/* Era date — hidden in the default variant, the lead element in timeline. */
.section-nav__date {
  display: none;
  margin: 0;
}

.section-nav--timeline .section-nav__date {
  display: block;
  font-size: var(--text-display); /* clamps to 80px on desktop */
}

/* No image card — the zig-zag (left/right alternation) from the base rules still
   applies to timeline eras; only the figure is dropped. */
.section-nav--timeline .section-nav__figure {
  display: none;
}

/* Title is the era subtitle — Neue Haas Text (font-sans), not the display face. */
.section-nav--timeline .section-nav__item-title {
  font-family: var(--font-sans, sans-serif);
}

/* When open, the timeline hero keeps its full content — body + Learn More link —
   instead of collapsing to just the date/title (Figma 2127-41242). Higher
   specificity than the shared open-state hide rule, so these win. */
.section-nav--timeline .section-nav__item.is-open .section-nav__item-desc {
  display: block;
  color: var(--color-white); /* override the base charcoal — sits on the accent hero */
}

.section-nav--timeline .section-nav__item.is-open .section-nav__item-eyebrow {
  display: block;
  color: color-mix(in srgb, var(--color-white, #ffffff) 80%, transparent);
}

/* ── Timeline open-state Learn More link (hidden in the image-card variant). ── */
.section-nav__learn-more {
  display: none;
}

.section-nav--timeline .section-nav__item.is-open .section-nav__learn-more {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
}

.section-nav__learn-more-label {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.section-nav__learn-more-arrow {
  flex: none;
  transition: translate 0.3s ease;
}

.section-nav__learn-more:hover .section-nav__learn-more-arrow,
.section-nav__learn-more:focus-visible .section-nav__learn-more-arrow {
  translate: 4px 0;
}

.section-nav__learn-more:hover .section-nav__learn-more-label,
.section-nav__learn-more:focus-visible .section-nav__learn-more-label {
  text-decoration-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .section-nav__learn-more-arrow,
  .section-nav__learn-label,
  .section-nav__learn-more-label,
  .section-nav__rail-link {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Mobile open state (Figma 1824-54387) — contained full-screen modal
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 59.999rem) {
  /* Lift the section-nav above the sticky header + rail so the modal covers all. */
  html.section-nav-modal-open .section-nav {
    position: relative;
    z-index: 100;
  }

  .section-nav__items:has(.section-nav__item.is-open) {
    z-index: 40;
  }

  .section-nav__item.is-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* visible viewport — not the toolbar-inclusive layout one */
    z-index: 60;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--wp-admin--admin-bar--height, 0px) + 4rem) 1.125rem 3rem;
    background: var(--color-off-white);
  }

  /* Open content = eyebrow + heading + reading content. Drop the card image, the
     collapsed description and the Learn More button (Figma open state). */
  .section-nav__item.is-open .section-nav__figure,
  .section-nav__item.is-open .section-nav__item-desc,
  .section-nav__item.is-open .section-nav__learn {
    display: none;
  }

  /* Hero rides the modal flow as plain content (not the filled card). */
  .section-nav__item.is-open .section-nav__hero {
    background: none;
    padding: 0;
    color: var(--color-charcoal);
  }

  .section-nav__item.is-open .section-nav__hero-text {
    padding-inline-end: 3rem; /* room for the close X */
  }

  .section-nav__item.is-open .section-nav__item-eyebrow {
    display: block;
    color: var(--color-charcoal);
  }

  .section-nav__item.is-open .section-nav__item-title {
    color: var(--color-charcoal);
  }

  /* Timeline keeps its body + link in the modal; the desktop rules paint them white for the filled hero. */
  .section-nav--timeline .section-nav__item.is-open .section-nav__item-desc,
  .section-nav--timeline .section-nav__item.is-open .section-nav__item-eyebrow,
  .section-nav--timeline .section-nav__item.is-open .section-nav__learn-more {
    color: var(--color-charcoal);
  }

  /* Reading content at natural height, with breathing room under the heading. */
  .section-nav__panel {
    transition: none;
  }

  .section-nav__item.is-open .section-nav__panel {
    display: block;
    opacity: 1;
    translate: none;
    margin-top: 1.5rem;
  }

  .section-nav__item.is-open .section-nav__panel-content {
    overflow: visible;
    padding-inline-end: 0;
  }

  .section-nav__item.is-open .section-nav__progress {
    display: none;
  }

  /* Close X — fixed top-right of the modal. */
  .section-nav__item.is-open .section-nav__close-track {
    position: fixed;
    inset: calc(var(--wp-admin--admin-bar--height, 0px) + 0.75rem) 0.75rem auto auto;
    width: auto;
    z-index: 70;
  }

  .section-nav__item.is-open .section-nav__close {
    position: static;
    margin: 0;
    top: auto;
  }

  /* Content entrance — fades + slides up so it doesn't snap in (BugHerd #99). */
  @media (prefers-reduced-motion: no-preference) {
    .section-nav__item.is-open .section-nav__hero,
    .section-nav__item.is-open .section-nav__panel-content {
      animation: sn-popup-in 0.35s var(--ease-settle, ease-out) both;
    }

    @keyframes sn-popup-in {
      from {
        opacity: 0;
        transform: translateY(1.5rem);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}
