
:root {
  --f-nav-ink: var(--brand-ink-on-dark, #fff);
  --f-nav-accent: var(--brand-accent-bright, #0A99FF);
}
html.f-on-light:not(.f-stuck):not(.f-menu-open) {
  --f-nav-ink: var(--brand-ink-strong, #1A1A1A);
  --f-nav-accent: var(--brand-accent, #0074C8);
}
.f-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--brand-accent, #0074C8);
  z-index: var(--f-z-progress);
  transition: width 0.1s linear;
  pointer-events: none;
}
.f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--f-z-header);
  min-height: var(--f-header-h);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid transparent;
  transition: min-height 0.4s, border-color 0.4s, box-shadow 0.4s;
}
html.f-stuck .f-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.f-header-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brand-glass, rgba(26, 26, 26, 0.7));
  opacity: 0;
  transition: opacity 0.4s;
}
html.f-stuck .f-header-glass {
  opacity: 1;
  -webkit-backdrop-filter: blur(var(--brand-glass-blur, 5px)) saturate(var(--brand-glass-saturate, 1.5));
  backdrop-filter: blur(var(--brand-glass-blur, 5px)) saturate(var(--brand-glass-saturate, 1.5));
}
html.f-menu-open .f-header-glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.f-header-inner {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px clamp(16px, 4vw, 48px);
}
@keyframes f-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.f-logo { animation: f-in 0.5s var(--f-ease) both; }
.f-nav > ul > li > a {
  animation: f-in 0.45s var(--f-ease) both;
  animation-delay: calc(0.08s + var(--n, 0) * 0.05s);
}
.f-header-cta, .f-burger { animation: f-in 0.45s var(--f-ease) 0.42s both; }
.f-logo {
  display: grid;
  place-items: center;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  width: var(--brand-logo-w, 100px);
  height: var(--brand-logo-w, 100px);
  flex: none;
  min-width: 0;
  min-height: 0;
  color: var(--f-nav-ink);
  transition: width 0.4s, height 0.4s, color 0.3s, scale 0.25s var(--f-ease);
}
.f-logo:hover,
.f-logo:focus-visible { scale: 1.05; }
@media (prefers-reduced-motion: reduce) {
  .f-logo { transition: color 0.3s; }
  .f-logo:hover, .f-logo:focus-visible { scale: 1; opacity: 0.82; }
}
html.f-stuck .f-logo {
  width: var(--brand-logo-w-stuck, 77px);
  height: var(--brand-logo-w-stuck, 77px);
}
html.f-stuck .f-logo-secondary > svg,
html.f-stuck .f-logo-secondary > img {
  height: var(--f-header-mark-h, calc(30px + 1.6em));
  width: auto;
}
.f-logo > span { grid-area: 1 / 1; display: block; width: 100%; min-width: 0; }
.f-logo svg, .f-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.f-logo img { filter: invert(var(--brand-logo-invert, 0)); }
html.f-on-light:not(.f-stuck):not(.f-menu-open) .f-logo-primary img { filter: none; }
.f-logo-primary {
  opacity: 1; filter: blur(0); transform: scale(1);
  transition: opacity 0.5s, filter 0.5s, transform 0.5s var(--f-spring);
  scale: var(--brand-logo-scale, 1.5);
  transform-origin: left center;
}
.f-logo { overflow: visible; }
.f-logo-secondary {
  justify-self: center;
  align-self: center;
  display: grid;
  place-content: center;
  translate: var(--brand-logo-mark-x, 0) var(--brand-logo-mark-y, 4%);
  opacity: 0; filter: blur(6px); transform: scale(0.75);
  color: var(--brand-logo-mark-ink, var(--brand-ink-on-dark, #FCFCFC));
  transition: opacity 0.5s 0.1s, filter 0.5s 0.1s, transform 0.5s var(--f-spring) 0.1s;
}
html.f-stuck .f-logo-primary { opacity: 0; filter: blur(6px); transform: scale(0.75); }
.f-logo > span.f-logo-secondary {
  width: var(--brand-logo-mark-ratio, 105%);
  height: var(--brand-logo-mark-ratio, 105%);
  translate: var(--brand-logo-mark-shift, 38%) 0;
  display: grid;
  place-items: center;
}
html.f-stuck .f-logo-secondary { opacity: 1; filter: blur(0); transform: scale(1); }
.f-nav {
  position: relative;
  margin-left: calc(
    var(--brand-logo-w, 100px) * (var(--brand-logo-scale, 1.5) - 1)
    + clamp(24px, 3vw, 44px)
  );
}
.f-nav > ul {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
}
.f-nav > ul > li { position: relative; }
.f-nav > ul > li > a {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  padding: 18px 15px;
  color: var(--f-nav-ink);
  text-decoration: none;
  font-size: 18px; font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s;
}
.f-nav > ul > li > a:hover::after,
.f-nav > ul > li > a[aria-current]::after {  }
.f-nav > ul > li > a::after {
  content: "";
  position: absolute;
  height: 2px; bottom: 5px; width: 80%; left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--f-ease), background-color 0.3s;
  background: var(--f-nav-accent);
}
.f-nav > ul > li.f-has-sub > a::after { left: calc(50% - 8px); }
.f-nav > ul > li > a:hover::after,
.f-nav > ul > li > a[aria-current]::after { transform: translateX(-50%) scaleX(1); }
.f-nav > ul > li.f-nav-holds > a { color: var(--f-nav-accent); }
.f-nav > ul > li.f-nav-holds > a::after {
  transform: translateX(-50%) scaleX(0.42);
  opacity: 0.55;
}
.f-nav > ul > li > a:hover::after { opacity: 1; }
.f-sub a[aria-current] {
  color: var(--brand-accent-bright, var(--brand-accent, #0A99FF));
  font-weight: 700;
}
.f-chev { width: 10px; height: 6px; flex: none; transition: transform 0.3s; }
.f-nav li.f-has-sub:hover > a .f-chev,
.f-nav li.f-has-sub:focus-within > a .f-chev,
.f-nav li.f-has-sub.f-open > a .f-chev { transform: rotate(180deg); }
.f-sub-wrap {
  position: absolute;
  top: 100%; left: 0;
  padding-top: 21px;
  z-index: 2;
  overflow: visible;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}
.f-nav li.f-has-sub:hover > .f-sub-wrap,
.f-nav li.f-has-sub:focus-within > .f-sub-wrap,
.f-nav li.f-has-sub.f-open > .f-sub-wrap { visibility: visible; transition: visibility 0s; }
.f-sub {
  list-style: none; margin: 0; padding: 10px 0; min-width: 260px;
  background: var(--brand-glass, rgba(26, 26, 26, 0.7));
  -webkit-backdrop-filter: blur(var(--brand-glass-blur, 5px));
  backdrop-filter: blur(var(--brand-glass-blur, 5px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease-out 0.15s, transform 0.2s ease-out 0.15s;
}
.f-nav li.f-has-sub:hover > .f-sub-wrap > .f-sub,
.f-nav li.f-has-sub:focus-within > .f-sub-wrap > .f-sub,
.f-nav li.f-has-sub.f-open > .f-sub-wrap > .f-sub {
  opacity: 1; transform: none; transition-delay: 0s, 0s;
}
.f-nav li.f-has-sub.f-suppress:hover > .f-sub-wrap { visibility: hidden; }
.f-nav li.f-has-sub.f-suppress:hover > .f-sub-wrap > .f-sub { opacity: 0; transform: translateY(8px); }
.f-nav > ul > li.f-mega { position: static; }
.f-mega > .f-sub-wrap { left: 0; right: auto; }
.f-mega .f-sub {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--f-sub-rows, 8), auto);
  grid-auto-columns: minmax(180px, max-content);
  width: max-content;
  max-width: calc(100vw - 48px);
  padding: 14px 8px;
}
.f-mega .f-sub li { border-bottom: none; }
.f-mega .f-sub a { padding: 9px 22px; white-space: normal; }
.f-mega .f-sub-grouped {
  grid-auto-flow: column;
  grid-template-rows: none;
  align-items: start;
  gap: 0 4px;
  padding: 16px 10px 18px;
}
.f-sub-grouped > li { border-bottom: none; }
.f-sub-grouped .f-sub-group > ul { list-style: none; margin: 0; padding: 0; }
.f-sub-grouped .f-sub-gh {
  margin: 6px 22px 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--brand-ink-on-dark, #fff);
  opacity: 0.78;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.f-sub-grouped > li.f-sub-group > a { margin-top: 6px; }
.f-sub li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.f-sub li:last-child { border-bottom: none; }
.f-sub a {
  display: block; padding: 12px 30px;
  color: var(--brand-ink-on-dark, #fff);
  text-decoration: none;
  font-size: 16px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase; white-space: nowrap;
  transform: translateX(0);
  transition: color 0.3s, transform 0.3s;
}
.f-sub a:hover, .f-sub a:focus-visible {
  transform: translateX(10px);
}
.f-burger {
  display: none;
  margin-left: auto; flex: none;
  width: 48px; height: 48px; padding: 10px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px;
}
.f-burger-line {
  display: block; height: 2px; border-radius: 1px;
  background: var(--f-nav-ink);
  transform-origin: center;
  transition: width 0.3s var(--f-spring), transform 0.3s var(--f-spring),
              opacity 0.2s, background-color 0.3s;
}
.f-burger-line:nth-child(1) { width: 28px; }
.f-burger-line:nth-child(2) { width: 20px; }
.f-burger-line:nth-child(3) { width: 24px; }
.f-burger:hover .f-burger-line, .f-burger:focus-visible .f-burger-line { width: 28px; }
.f-burger[aria-expanded="true"] .f-burger-line:nth-child(1) { width: 28px; transform: translateY(8px) rotate(45deg); }
.f-burger[aria-expanded="true"] .f-burger-line:nth-child(2) { width: 0; opacity: 0; }
.f-burger[aria-expanded="true"] .f-burger-line:nth-child(3) { width: 28px; transform: translateY(-8px) rotate(-45deg); }
.f-sheet {
  position: fixed; inset: 0;
  height: 100vh; height: 100dvh;
  z-index: 3;
  overflow-y: auto;
  background: color-mix(in srgb, var(--brand-glass, rgba(26,26,26,.7)) 92%, black);
  -webkit-backdrop-filter: blur(calc(var(--brand-glass-blur, 5px) * 4)) saturate(1.6);
  backdrop-filter: blur(calc(var(--brand-glass-blur, 5px) * 4)) saturate(1.6);
  padding: calc(var(--f-header-h) + 20px) clamp(20px, 6vw, 40px) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s linear 0.3s;
}
.f-sheet.f-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s;
}
.f-sheet > nav, .f-sheet-list { flex: 1; display: flex; flex-direction: column; }
.f-sheet-list { list-style: none; margin: 0; padding: 0; }
.f-sheet-list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.f-sheet.f-open .f-sheet-list > li {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.f-sheet-list > li:last-child { border-bottom: none; }
.f-sheet-row { display: block; }
.f-sheet-list > li > a.f-leaf:not(.f-cta),
.f-sheet-list > li > .f-sheet-row .f-sheet-label {
  display: block; padding: 16px 4px;
  color: var(--brand-ink-on-dark, #fff);
  text-decoration: none;
  font-family: var(--brand-font-display, inherit);
  font-weight: 700; font-size: clamp(26px, 4.5vh, 32px);
  text-transform: uppercase;
  transition: color 0.3s;
}
.f-sheet-list > li > a.f-leaf:hover:not(.f-cta),
.f-sheet-list > li > a.f-leaf[aria-current]:not(.f-cta) {
  color: var(--brand-accent-bright, #0A99FF);
}
.f-sheet-list > li.f-sheet-holds > .f-sheet-row .f-sheet-label {
  color: var(--brand-accent-bright, #0A99FF);
}
.f-sub-toggle:hover .f-sheet-label,
.f-sub-toggle[aria-expanded="true"] .f-sheet-label { color: var(--brand-accent-bright, #0A99FF); }
.f-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--brand-ink-on-dark, #fff);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.f-sub-toggle svg { width: 14px; height: 9px; flex: none; transition: transform 0.3s; }
.f-sub-toggle[aria-expanded="true"] { color: var(--brand-accent-bright, #0A99FF); }
.f-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.f-sheet-nest {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.f-sheet-sub.f-open > .f-sheet-nest { grid-template-rows: 1fr; }
.f-sheet-sub-list {
  list-style: none; margin: 0; padding: 0 0 0 16px;
  min-height: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .f-sheet-nest { transition: none; }
}
.f-sheet-group > ul { list-style: none; margin: 0; padding: 0; }
.f-sheet-gh {
  margin: 14px 4px 2px;
  color: var(--brand-ink-on-dark, #fff);
  opacity: 0.72;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.f-sheet-group:first-child .f-sheet-gh { margin-top: 4px; }
.f-sheet-sub-list a.f-leaf {
  font-family: var(--brand-font-display, inherit);
  font-weight: 700;
  display: block;
  font-size: clamp(22px, 3.6vh, 26px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 15px 4px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.3s;
}
.f-sheet-sub-list a.f-leaf:hover,
.f-sheet-sub-list a.f-leaf[aria-current] { color: var(--brand-accent-bright, #0A99FF); }
.f-sheet-cta { margin-top: auto; padding: 20px 0 8px; }
.f-sheet-list .f-sheet-cta a.f-cta {
  color: var(--brand-cta-ink, #fff);
  max-width: none; margin-inline: 0;
  padding: 16px 28px;
  font-family: var(--brand-font-body, inherit);
  font-size: 16px; font-weight: 500;
  display: block;
}
body.f-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
@media (min-width: 1025px) and (max-width: 1220px) {
  .f-header-inner { padding-inline: 20px; }
  .f-nav { margin-left: 16px; }
  .f-nav > ul > li > a { padding-inline: 8px; }
}
@media (max-width: 1024px) {
  .f-nav, .f-header-cta { display: none; }
  .f-burger { display: flex; }
}
@media (min-width: 1025px) { .f-sheet { display: none; } }
.f-sheet-list .f-sheet-cta { margin-top: auto; }
