/* ==========================================================================
   Argentec — site styles
   Layout: full-bleed video hero under a transparent two-row header
   (utility row + centred brand, primary nav row), content anchored left.
   ========================================================================== */

:root {
  /* Brand colour — sampled from the Argentec logo */
  --navy: #194376;
  --navy-deep: #0f2a4d;
  --ink: #0a1220;
  --silver: #e3e7ed;
  --silver-dim: #b9c1cc;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.2);

  /* Type */
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(1rem, 5.8vw, 7rem);
  --header-top-h: 90px;
  --header-main-h: 62px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading,
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.5s var(--ease-out);
}

/* fill that sweeps up on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }

.btn--navy {
  padding: 0.95rem 1.6rem;
  background: var(--navy);
  color: var(--white);
}
.btn--navy::before { background: var(--white); }
.btn--navy:hover,
.btn--navy:focus-visible { color: var(--navy); }

.btn--silver {
  min-width: 17.25rem;
  padding: 1.25rem 2.25rem;
  background: var(--silver);
  color: var(--navy-deep);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
}
.btn--silver::before { background: var(--navy); }
.btn--silver:hover,
.btn--silver:focus-visible { color: var(--white); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.3s;
}
.icon-btn:hover { opacity: 0.7; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--white);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-in-out);
}
.preloader.is-leaving { clip-path: inset(0 0 100% 0); }
.preloader.is-done { display: none; }

.preloader__inner {
  position: relative;
  width: clamp(140px, 22vw, 190px);
  aspect-ratio: 1;
  max-width: 100%;
  transition: transform 0.9s var(--ease-in-out), opacity 0.6s ease;
}
.preloader.is-leaving .preloader__inner {
  transform: translateY(-40px) scale(0.92);
  opacity: 0;
}

.preloader__logo {
  position: absolute;
  inset: 11%;
  opacity: 0;
  transform: scale(0.86);
  animation: logo-in 1.1s var(--ease-out) 0.15s forwards;
}
.preloader__logo svg { width: 100%; height: 100%; }

.preloader__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.preloader__ring circle { fill: none; stroke-width: 1.2; }
.preloader__ring-track { stroke: rgba(25, 67, 118, 0.12); }
.preloader__ring-progress {
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-dasharray: 358.1;
  stroke-dashoffset: 358.1;
  transition: stroke-dashoffset 0.6s var(--ease-out);
}

@keyframes logo-in {
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  --hdr-fg: var(--white);
  --hdr-line: var(--line);
  color: var(--hdr-fg);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, color 0.4s ease, transform 0.6s var(--ease-out);
}
/* Scrolled: frosted white glass with dark text */
.site-header.is-scrolled {
  --hdr-fg: var(--ink);
  --hdr-line: rgba(10, 18, 32, 0.1);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px -18px rgba(10, 18, 32, 0.35);
}
.site-header.is-scrolled :focus-visible { outline-color: var(--navy); }
/* Careers keeps its navy style; hover fill goes dark so it stays visible on white */
.site-header.is-scrolled .btn--navy::before { background: var(--ink); }
.site-header.is-scrolled .btn--navy:hover,
.site-header.is-scrolled .btn--navy:focus-visible { color: var(--white); }
.site-header .icon-btn { color: inherit; }

.site-header__top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-top-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--hdr-line);
  transition: height 0.5s var(--ease-out), border-color 0.4s ease;
}
.site-header.is-scrolled .site-header__top { height: 58px; }
.site-header.is-scrolled .site-header__main { height: 42px; }

/* Logo returns to its original Argentec navy on the white header */
.site-header.is-scrolled .brand { color: var(--navy); }
.site-header.is-scrolled .brand__mark { height: 30px; }
.site-header.is-scrolled .brand__word { height: 18px; }
.site-header.is-scrolled .utility-nav .btn--navy { padding-block: 0.7rem; }

.utility-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}
.utility-nav--left { justify-self: start; margin-left: -10px; }
.utility-nav--right { justify-self: end; }

.nav-link {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  transition: color 0.4s ease;
}
.brand__mark { height: 38px; width: auto; transition: height 0.5s var(--ease-out); }
.brand__word { height: 22px; width: auto; transition: height 0.5s var(--ease-out); }

.site-header__main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 4.4vw, 4.5rem);
  height: var(--header-main-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--hdr-line);
  transition: height 0.5s var(--ease-out), opacity 0.4s ease, border-color 0.4s ease;
}

.menu-toggle,
.icon-btn--mobile { display: none; }

/* Header entrance — plays once preloader lifts */
.site-header__top > *,
.site-header__main > * {
  opacity: 0;
  transform: translateY(-14px);
}
.site-header__top,
.site-header__main { border-bottom-color: transparent; }

.is-ready .site-header__top,
.is-ready .site-header__main {
  border-bottom-color: var(--hdr-line);
  transition: border-color 1.2s ease 0.3s, height 0.5s var(--ease-out);
}
.is-ready .site-header__top > *,
.is-ready .site-header__main > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.is-ready .brand { transition-delay: 0.15s; }
.is-ready .utility-nav--left,
.is-ready .menu-toggle { transition-delay: 0.25s; }
.is-ready .utility-nav--right,
.is-ready .icon-btn--mobile { transition-delay: 0.3s; }
.is-ready .site-header__main > :nth-child(1) { transition-delay: 0.4s; }
.is-ready .site-header__main > :nth-child(2) { transition-delay: 0.46s; }
.is-ready .site-header__main > :nth-child(3) { transition-delay: 0.52s; }
.is-ready .site-header__main > :nth-child(4) { transition-delay: 0.58s; }
.is-ready .site-header__main > :nth-child(5) { transition-delay: 0.64s; }
.is-ready .site-header__main > :nth-child(6) { transition-delay: 0.7s; }

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding: calc(112px + env(safe-area-inset-top, 0px)) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: var(--navy-deep);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
}
.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out);
}

.mobile-menu__primary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-menu__primary a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.2;
}
.mobile-menu__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.mobile-menu__secondary a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.mobile-menu__cta { align-self: flex-start; min-width: 0; padding: 1rem 1.75rem; font-size: 0.8125rem; }
.mobile-menu__address {
  margin: auto 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--silver-dim);
}

.mobile-menu > *,
.mobile-menu__primary a {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu-open .mobile-menu > *,
.menu-open .mobile-menu__primary a {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.menu-open .mobile-menu__primary a:nth-child(1) { transition-delay: 0.3s; }
.menu-open .mobile-menu__primary a:nth-child(2) { transition-delay: 0.36s; }
.menu-open .mobile-menu__primary a:nth-child(3) { transition-delay: 0.42s; }
.menu-open .mobile-menu__primary a:nth-child(4) { transition-delay: 0.48s; }
.menu-open .mobile-menu__primary a:nth-child(5) { transition-delay: 0.54s; }
.menu-open .mobile-menu__primary a:nth-child(6) { transition-delay: 0.6s; }
.menu-open .mobile-menu > :not(.mobile-menu__primary) { transition-delay: 0.65s; }

/* ==========================================================================
   Search overlay
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) var(--gutter) 1.5rem;
  background: var(--navy-deep);
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease-in-out);
}
.search-overlay.is-open { transform: none; }
.search-overlay__form {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.search-overlay input {
  flex: 1;
  min-width: 0;
  padding: 1rem 0;
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  outline: none;
}
.search-overlay input::placeholder { color: var(--silver-dim); opacity: 0.7; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 2.8s var(--ease-out);
}
.is-ready .hero__video { transform: scale(1); }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.62) 0%, rgba(10, 18, 32, 0.18) 32%, rgba(10, 18, 32, 0.35) 62%, rgba(10, 18, 32, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 18, 32, 0.5) 0%, rgba(10, 18, 32, 0) 65%);
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  padding-inline: calc(var(--gutter) + clamp(0rem, 6.5vw, 8rem)) var(--gutter);
  transform: translateY(-28%);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
}

/* masked line reveal */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}
.is-ready .line__inner { transform: none; }
.is-ready .line:nth-child(1) .line__inner { transition-delay: 0.45s; }
.is-ready .line:nth-child(2) .line__inner { transition-delay: 0.6s; }

.hero__cta {
  margin-top: clamp(2rem, 4.2vw, 3.25rem);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out) 1s, transform 1s var(--ease-out) 1s;
}
.is-ready .hero__cta { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .utility-nav--left .nav-link:nth-of-type(3) { display: none; }
  .site-header__main { gap: 2.25rem; }
}

@media (max-width: 1023px) {
  :root { --header-top-h: 76px; }

  .utility-nav,
  .site-header__main { display: none; }

  .site-header__top { padding-inline: 1rem; }
  .site-header.is-scrolled .site-header__top { height: 56px; }
  .site-header.is-scrolled .brand__mark { height: 26px; }
  .site-header.is-scrolled .brand__word { height: 15px; }

  .menu-toggle,
  .icon-btn--mobile { display: inline-grid; }
  .icon-btn--mobile { justify-self: end; margin-right: -8px; }

  .menu-toggle {
    position: relative;
    justify-self: start;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
  }
  .menu-toggle span:nth-child(1) { top: 15px; }
  .menu-toggle span:nth-child(2) { top: 23px; }
  .menu-open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }
  .menu-open .site-header .brand { color: var(--white); }
  .menu-open .site-header {
    --hdr-fg: var(--white);
    --hdr-line: var(--line);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .brand { gap: 10px; }
  .brand__mark { height: 30px; }
  .brand__word { height: 17px; }

  .hero__content {
    top: auto;
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    padding-inline: 1.25rem;
    transform: none;
  }
  .hero__shade {
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.6) 0%, rgba(10, 18, 32, 0.12) 30%, rgba(10, 18, 32, 0.45) 60%, rgba(10, 18, 32, 0.94) 100%);
  }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .btn--silver { min-width: 0; width: 100%; max-width: 22rem; padding: 1.15rem 1.5rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ==========================================================================
   Expertise mega menu (desktop) and expandable group (mobile menu)
   Markup is generated into every page by scripts/build_expertise.py;
   open/close and keyboard handling live in js/main.js.
   ========================================================================== */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-item__toggle {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav-item__toggle svg { width: 10px; height: 10px; transition: transform 0.35s var(--ease-out); }
.nav-item.is-open .nav-item__toggle svg { transform: rotate(180deg); }
.nav-link.is-current::after { transform: scaleX(1); }

/* Expertise panel: solid white, full width, with a navy wipe on hover */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.5rem) var(--gutter) clamp(2rem, 3.5vw, 2.75rem);
  background: var(--white);
  border-top: 1px solid rgba(10, 18, 32, 0.08);
  box-shadow: 0 30px 60px -30px rgba(10, 18, 32, 0.45);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
/* Large A mark watermark on the left */
.mega::before {
  content: "";
  position: absolute;
  top: 50%;
  left: clamp(-6rem, -4vw, -2rem);
  width: clamp(320px, 34vw, 520px);
  aspect-ratio: 71.56 / 66.17;
  background: url("../assets/img/argentec-mark.svg") center / contain no-repeat;
  opacity: 0.1;
  transform: translateY(-50%);
  pointer-events: none;
}
.mega__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.6fr);
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}
.mega__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.mega__lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.mega__all {
  display: inline-block;
  margin-top: 1.25rem;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.mega__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Item: on hover a navy outline draws around the row; background stays
   white. Palette is limited to navy, white and ink. */
.mega__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding: 0.9rem 2.75rem 0.9rem 0.9rem;
  border: 1px solid transparent;
  border-bottom-color: rgba(10, 18, 32, 0.08);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mega__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M1 9h15M10 3l6 6-6 6' fill='none' stroke='%23194376' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}
.mega__num {
  grid-row: span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(10, 18, 32, 0.14);
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.3s ease;
}
.mega__name {
  padding-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.3s ease;
}
.mega__desc {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #56657a;
}
.mega__link:hover,
.mega__link:focus-visible {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  outline: none;
}
.mega__link:hover .mega__num,
.mega__link:focus-visible .mega__num { border-color: var(--navy); }
.mega__link:hover .mega__name,
.mega__link:focus-visible .mega__name { color: var(--navy); }
.mega__link:hover::after,
.mega__link:focus-visible::after { opacity: 1; transform: none; }

/* Current page: a navy rule on the left and a filled number */
.mega__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--navy); }
.mega__link[aria-current="page"]:hover { box-shadow: inset 3px 0 0 var(--navy), inset 0 0 0 1px var(--navy); }
.mega__link[aria-current="page"] .mega__num { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Open panel: header takes the solid white treatment */
.site-header.has-mega {
  --hdr-fg: var(--ink);
  --hdr-line: rgba(10, 18, 32, 0.1);
  background: var(--white);
}
.site-header.has-mega .brand { color: var(--navy); }

/* Mobile menu group */
.mm-group__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mm-group__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.mm-group__toggle svg { width: 12px; height: 12px; transition: transform 0.35s var(--ease-out); }
.mm-group__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-group__list {
  display: grid;
  gap: 0.15rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--line);
  list-style: none;
}
.mobile-menu__primary .mm-group__list a {
  display: block;
  padding: 0.45rem 0;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--silver);
  opacity: 1;
  transform: none;
}
.mobile-menu__primary .mm-group__list a[aria-current="page"] { color: var(--white); }
.mobile-menu__primary .mm-group__list a[aria-current="page"]::before { content: "\2014  "; color: var(--white); }

@media (max-width: 1180px) {
  .mega__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mega { transform: none; }
}
