/* Navigation: a soft editorial panel with the site's 3D artwork. */
:is(.desktop-nav, .detail-nav, .contact-nav) {
  gap: clamp(10px, 1.15vw, 19px);
  font-size: 13px;
  font-weight: 700;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > a,
:is(.desktop-nav, .detail-nav, .contact-nav) > .nav-dropdown > summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > .nq-nav-home {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: #eee8f7;
  color: #4d3777;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > .nq-nav-home:is(:hover, :focus-visible, [aria-current="page"]) {
  background: var(--purple);
  color: white;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > a[href="/contact/"] {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > a[href="/contact/"]:is(:hover, :focus-visible) {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #422f3624;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > .nav-dropdown > summary:is(:hover, :focus-visible),
:is(.desktop-nav, .detail-nav, .contact-nav) > .nav-dropdown[open] > summary {
  color: #5d428f;
}
/* Draw the same balanced chevron in every header instead of relying on a font glyph. */
:is(.desktop-nav, .detail-nav, .contact-nav) > .nav-dropdown > summary {
  gap: 8px;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > .nav-dropdown > summary::after {
  content: "";
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: -4px 2px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform .2s ease, margin .2s ease;
}
:is(.desktop-nav, .detail-nav, .contact-nav) > .nav-dropdown[open] > summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.nav-mega {
  width: min(1000px, calc(100vw - 56px));
  padding: 27px;
  border: 2px solid #e2d4f2;
  border-radius: 30px;
  background: #fffbf9;
  box-shadow: 0 26px 70px #422f3638;
}
.nav-mega--services { width: min(930px, calc(100vw - 56px)); max-height: calc(100dvh - 128px); overflow-y: auto; overscroll-behavior: contain; }
.nav-mega-heading { align-items: end; padding-bottom: 23px; }
.nav-mega-kicker { font-size: 11px; color: #65479e; }
.nav-mega-heading strong { font-size: clamp(23px, 2.5vw, 31px); letter-spacing: -.035em; }
.nav-mega-heading > a { min-height: 32px; font-size: 12px; }
.nav-service-grid { gap: 10px; }
.nav-service-card {
  grid-template-columns: 64px minmax(0, 1fr) 14px;
  gap: 11px;
  min-height: 104px;
  padding: 11px;
  border-color: #e9dee8;
  border-radius: 19px;
  background: #fff;
}
.nav-service-card:nth-child(5n + 1) { background: #f7f0ff; }
.nav-service-card:nth-child(5n + 2) { background: #fff0eb; }
.nav-service-card:nth-child(5n + 3) { background: #fff9df; }
.nav-service-card:nth-child(5n + 4) { background: #eaf6fa; }
.nav-service-card:nth-child(5n) { background: #fff0f5; }
.nav-service-card:is(:hover, :focus-visible) {
  border-color: #b093d3;
  background: #fff;
  box-shadow: 0 9px 21px #422f3619;
}
.nav-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff9f6;
  overflow: hidden;
}
.nav-service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.nav-service-copy { gap: 5px; }
.nav-service-copy strong { font-size: 14px; line-height: 1.18; }
.nav-service-copy small { color: #69585f; font-size: 11.5px; line-height: 1.25; }
.nav-service-arrow { color: #65479e; }
.nav-case-grid { gap: 13px; }
.nav-case-image { aspect-ratio: 1; border-radius: 17px; }
.nav-case-image img { object-fit: contain; object-position: center; }
.nav-case-card:is(:hover, :focus-visible) .nav-case-image img { transform: none; }
.nav-case-card--orange .nav-case-image { background: #f1e5d6; }
.nav-case-card--yellow .nav-case-image { background: #ebe9d9; }
.nav-case-card--purple .nav-case-image { background: #eee6dc; }
.nav-case-card--blue .nav-case-image { background: #e4eff4; }
.nav-case-card:is(:hover, :focus-visible) .nav-case-image { box-shadow: 0 9px 20px #422f3626; }
.nav-case-image-arrow { width: 34px; height: 34px; background: var(--yellow); }
.nav-case-caption { gap: 5px; padding: 12px 2px 0; }
.nav-case-caption strong { font-size: 16px; line-height: 1.05; }
.nav-case-caption small { color: #68595e; font-size: 11px; }

/* The mobile accordion uses the same chevron and keeps a generous tap target. */
:is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) .nav-mobile-group > summary > span[aria-hidden="true"] {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #dac9e8;
  border-radius: 50%;
  background: #f7f1fb;
  color: transparent;
  font-size: 0;
  display: grid;
  place-items: center;
  transform: none;
}
:is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) .nav-mobile-group > summary > span[aria-hidden="true"]::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid #5d428f;
  border-bottom: 2px solid #5d428f;
  border-radius: 1px;
  transform: rotate(45deg);
  transition: transform .2s ease, margin .2s ease;
}
:is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) .nav-mobile-group[open] > summary > span[aria-hidden="true"] {
  transform: none;
}
:is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) .nav-mobile-group[open] > summary > span[aria-hidden="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

@media (max-width: 1080px) {
  :is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) {
    position: static;
  }
  :is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) > summary {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yellow);
  }
  :is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) > .nav-mobile-list {
    left: 50%;
    right: auto;
    width: min(340px, calc(100vw - 32px));
    max-height: min(78dvh, 700px);
    padding: 17px;
    border: 2px solid #e2d4f2;
    border-radius: 24px;
    background: #fffbf9;
    transform: translateX(-50%);
  }
  .nav-mobile-list > .nq-nav-home {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eee8f7;
    color: #4d3777;
    font-weight: 800;
  }
  .nav-mobile-list > .nq-nav-home[aria-current="page"] { background: var(--purple); color: white; }
  :is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) .nav-mobile-service {
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    min-height: 60px;
    border-radius: 13px;
    background: #fff;
    font-size: 14px;
  }
  .nav-mobile-service .nav-service-icon { width: 48px; height: 48px; border-radius: 10px; }
  .nav-mobile-service .nav-service-icon img { padding: 1px; }
  .nav-mobile-list > a[href="/contact/"] {
    justify-content: center;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 800;
    border-radius: 999px;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.desktop-nav, .detail-nav, .contact-nav) > a[href="/contact/"] { transition: none; }
  :is(.desktop-nav, .detail-nav, .contact-nav) > .nav-dropdown > summary::after,
  :is(.site-header .mobile-nav, .detail-header .detail-mobile-nav, .contact-header .contact-mobile-nav) .nav-mobile-group > summary > span[aria-hidden="true"]::after { transition: none; }
}
