/* Site menu: the three-line button in nav.topnav and the panel it opens.
   A plain stylesheet (not injected by js/site-nav.js) so the header is in its
   final layout on first paint: no restyle, no shift, no slide on load.
   index.html links it too, although it does not load style.css. */

/* ── Wordmark (header) ── */
nav.topnav .brand { justify-self: start; display: flex; align-items: center; height: 56px; width: auto; overflow: visible; }
nav.topnav .brand img { height: 40px; width: auto; display: block; transform: none; transition: height .25s ease, opacity .25s ease; }
nav.topnav .brand:hover img { transform: none; opacity: .82; }
nav.topnav.scrolled .brand { height: 48px; }
nav.topnav.scrolled .brand img { height: 34px; }

/* ── Menu button: three bare lines, 44px hit area ── */
.nhc-burger {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 -10px 0 6px; padding: 0;
  background: none; border: 0; color: #fff; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nhc-burger i {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .2s ease, width .3s cubic-bezier(.16,1,.3,1);
}
.nhc-burger i:nth-child(1) { top: 14.5px; }
.nhc-burger i:nth-child(2) { top: 21.25px; width: 16px; }
.nhc-burger i:nth-child(3) { top: 28px; }
.nhc-burger:hover i:nth-child(2) { width: 22px; }
.nhc-burger:focus-visible { outline: 1px solid #4A83E8; outline-offset: 2px; }
.nhc-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.nhc-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nhc-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* The bar sits above the panel and cannot slide away while it is open. */
nav.topnav.nhc-open { z-index: 1001 !important; transform: none !important; }

/* ── Panel ── */
.nhc-menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--nhc-top, 68px); z-index: 1000;
  overflow-y: auto; overscroll-behavior: contain;
  background: #121414; color: #e3e2e2; border-top: 1px solid rgba(255,255,255,.08);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.nhc-menu::before {
  content: ""; position: fixed; top: 0; right: -10%; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px;
  pointer-events: none; background: radial-gradient(circle, rgba(15,82,186,.20) 0%, transparent 62%); transform: translateY(-35%);
}
.nhc-menu::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.nhc-menu-open .nhc-menu { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
html.nhc-menu-open, html.nhc-menu-open body { overflow: hidden; }

.nhc-menu-inner {
  position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 40px 48px 56px;
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 88px; align-items: start;
}

/* Eyebrow: same treatment as .section-label across the site */
.nhc-eyebrow {
  display: flex; align-items: center; margin: 0 0 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #4A83E8;
}
.nhc-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; margin-right: 14px; }

/* Link list */
.nhc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.08); }
.nhc-list li {
  border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
html.nhc-menu-open .nhc-list li {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(70ms + var(--i) * 35ms);
}
.nhc-list a {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto 20px; align-items: baseline; column-gap: 16px;
  padding: 13px 0; color: rgba(255,255,255,.9); text-decoration: none;
}
.nhc-n { font-size: 11px; font-weight: 500; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.4); transition: color .3s ease; }
.nhc-t {
  position: relative; justify-self: start;
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 3.1vw, 42px); line-height: 1.04; letter-spacing: -.02em;
  transition: transform .45s cubic-bezier(.16,1,.3,1), color .3s ease;
}
.nhc-d { font-size: 13px; color: rgba(255,255,255,.5); white-space: nowrap; transition: color .3s ease; }
.nhc-a { align-self: center; width: 16px; height: 16px; color: #4A83E8; opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.nhc-a svg { width: 16px; height: 16px; display: block; }
.nhc-list a:hover .nhc-t, .nhc-list a:focus-visible .nhc-t { transform: translateX(8px); color: #fff; }
.nhc-list a:hover .nhc-n, .nhc-list a:focus-visible .nhc-n { color: #4A83E8; }
.nhc-list a:hover .nhc-d, .nhc-list a:focus-visible .nhc-d { color: rgba(255,255,255,.75); }
.nhc-list a:hover .nhc-a, .nhc-list a:focus-visible .nhc-a { opacity: 1; transform: none; }
.nhc-list a:focus-visible { outline: none; }
.nhc-list a:focus-visible .nhc-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* Current page: italic with the sapphire underline the page headlines use */
.nhc-list a[aria-current="page"] .nhc-t { font-style: italic; color: #fff; }
.nhc-list a[aria-current="page"] .nhc-t::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 1px;
  background: linear-gradient(90deg, #0F52BA, #4A83E8); opacity: .8;
}
.nhc-list a[aria-current="page"] .nhc-n { color: #4A83E8; }

/* Contact column */
.nhc-aside { padding-top: 1px; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
html.nhc-menu-open .nhc-aside { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.16,1,.3,1) .25s, transform .7s cubic-bezier(.16,1,.3,1) .25s; }
.nhc-aside-body { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }
.nhc-mail {
  display: inline-block; font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.01em; color: #fff; text-decoration: none;
  background: linear-gradient(90deg, #0F52BA, #4A83E8) 0 100% / 0 1px no-repeat;
  transition: background-size .5s cubic-bezier(.16,1,.3,1); word-break: break-word;
}
.nhc-mail:hover, .nhc-mail:focus-visible { background-size: 100% 1px; outline: none; }
.nhc-social {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.66); text-decoration: none; transition: color .3s ease;
}
.nhc-social:hover, .nhc-social:focus-visible { color: #fff; outline: none; }
.nhc-social svg { width: 11px; height: 11px; }
.nhc-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding: 17px 22px;
  background: #0F52BA; border: 1px solid #0F52BA; color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 8px 24px -10px rgba(15,82,186,.55), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .38s cubic-bezier(.16,1,.3,1), border-color .38s cubic-bezier(.16,1,.3,1);
}
.nhc-cta:hover { background: #0A3F8F; border-color: #4A83E8; }
.nhc-cta:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.nhc-cta svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.nhc-cta:hover svg { transform: translateX(4px); }
.nhc-fine { margin: 28px 0 0; font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.5); }

/* Below 1280px the links, CTA and menu button no longer fit side by side, so the links fold into the menu. */
@media (max-width: 1279.98px) {
  nav.topnav .nav-mid { display: none !important; }
  nav.topnav { display: flex !important; justify-content: space-between; align-items: center; }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
  nav.topnav .nav-mid { gap: 26px !important; }
}

@media (max-width: 900px) {
  .nhc-menu-inner { grid-template-columns: 1fr; gap: 40px; padding: 28px 36px 48px; }
  .nhc-d { display: none; }
  .nhc-list a { grid-template-columns: 36px minmax(0,1fr) 20px; }
}

/* Short laptop screens: keep the whole list above the fold */
@media (min-width: 901px) and (max-height: 820px) {
  .nhc-menu-inner { padding-top: 28px; }
  .nhc-list a { padding: 9px 0; }
  .nhc-t { font-size: clamp(28px, 2.6vw, 34px); }
}

/* Phones: the bar keeps the wordmark and menu button; the page CTA lives in the panel. */
@media (max-width: 600px) {
  nav.topnav { padding: 6px 10px 6px 16px !important; }
  nav.topnav.scrolled { padding: 4px 10px 4px 16px !important; }
  nav.topnav .nav-right .btn { display: none !important; }
  nav.topnav .brand img { height: 34px; }
  nav.topnav.scrolled .brand img { height: 30px; }
  .nhc-burger { margin: 0; }
  .nhc-menu-inner { padding: 20px 20px 40px; gap: 36px; }
  .nhc-eyebrow { margin-bottom: 14px; }
  .nhc-list a { grid-template-columns: 30px minmax(0,1fr) 16px; column-gap: 12px; padding: 10px 0; }
  .nhc-t { font-size: 30px; }
  .nhc-cta { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .nhc-menu, .nhc-menu *, .nhc-burger i { transition: none !important; }
  .nhc-list li, .nhc-aside { transform: none !important; }
}
