.top.top--reference,
.top.top--reference.scrolled {
  position: relative;
  z-index: 20;
  min-height: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.nav.nav--reference {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 18px;
  width: min(calc(100% - 64px), 1224px);
  max-width: none;
  height: 72px;
  margin-inline: auto;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.nav.nav--reference.is-floating {
  --navbar-top: max(12px, env(safe-area-inset-top));
  position: fixed;
  inset: var(--navbar-top) 0 auto;
  display: block;
  width: min(1224px, max(805px, 82vw), calc(100% - 48px));
  height: clamp(68px, 5.7vw, 84px);
  pointer-events: none;
}

.navbar-body,
.navbar-cta-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.navbar-body {
  z-index: -1;
  display: none;
  /* Leave room for SVG lighting beyond the artwork while the mask opens horizontally. */
  clip-path: inset(-16px 49% -16px 49%);
  opacity: 0;
  transition: clip-path 475ms cubic-bezier(.42, 0, .25, 1), opacity 145ms ease 285ms;
}

.is-floating > .navbar-body { display: block; }

.is-revealed > .navbar-body {
  clip-path: inset(-16px);
  opacity: 1;
  transition: clip-path 640ms cubic-bezier(.55, .03, .16, 1), opacity 110ms ease-out;
}

.navbar-ambient { fill: url(#nav-ambient); }
.navbar-shell { fill: url(#nav-shell-tone); }
.navbar-face { fill: url(#nav-face-tone); }
.navbar-housing { fill: url(#nav-housing-tone); }
.navbar-seam { fill: url(#nav-seam-tone); }
.navbar-lip { fill: url(#nav-lip-tone); }
.navbar-left { fill: url(#nav-left-wash); }
.navbar-left-bounce { fill: url(#nav-left-bounce); }
.navbar-face-wash { fill: url(#nav-face-wash); }
.navbar-face-bounce { fill: url(#nav-face-bounce); }
.navbar-top-wash { fill: url(#nav-top-wash); }
.navbar-housing-shine { fill: url(#nav-housing-shine); }
.navbar-housing-bounce { fill: url(#nav-housing-bounce); }

.navbar-outer,
.navbar-face-edge,
.navbar-angle,
.navbar-top-rim,
.navbar-rim-haze,
.navbar-cut-haze,
.navbar-lower,
.navbar-lower-haze,
.navbar-divider,
.navbar-divider-haze { fill: none; }

.navbar-outer,
.navbar-top-rim,
.navbar-lower,
.navbar-rim-haze,
.navbar-lower-haze {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-outer { stroke: #2c4b54; stroke-width: .85; }
.navbar-top-rim { stroke: url(#nav-top-rim); stroke-width: 1.25; }
.navbar-rim-haze { stroke: url(#nav-upper-glow); stroke-width: 3; opacity: .68; filter: url(#nav-rim-blur); }
.navbar-face-edge { stroke: url(#nav-face-rim); stroke-width: 1.25; }
.navbar-angle--inner { stroke: url(#nav-cut-inner); stroke-width: 1; }
.navbar-angle--outer { stroke: url(#nav-cut-outer); stroke-width: 1.15; }
.navbar-cut-haze { stroke: url(#nav-cut-outer); stroke-width: 4; opacity: .44; filter: url(#nav-divider-blur); }
.navbar-lower { stroke: url(#nav-lower-rim); stroke-width: 1.65; }
.navbar-lower-haze { stroke: url(#nav-lower-rim); stroke-width: 4; opacity: .95; filter: url(#nav-rim-blur); }
.navbar-divider { stroke: url(#nav-divider-rim); stroke-width: 1.2; }
.navbar-divider-haze { stroke: #239eaf; stroke-width: 4; opacity: .85; filter: url(#nav-divider-blur); }


.nav--reference > .brand {
  display: block;
  width: 136px;
  padding: 0;
  border: 0;
}

.nav--reference > .brand img {
  display: block;
  width: 100%;
  height: auto;
}

.navbar-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  color: #e0e5e7;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.navbar-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 5px;
  white-space: nowrap;
  font-weight: 500;
  text-shadow: 0 1px 3px #000b;
  pointer-events: auto;
}

.navbar-links a[aria-current] { color: #fff; font-weight: 700; }
.navbar-links a:hover { color: #fff; }

.navbar-indicator {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: var(--indicator-width, 0px);
  height: 2px;
  translate: var(--indicator-x, 0px) 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #10d9f0, #40f7ff 30%, #e6ffff 49%, #46f9ff 61%, #00dbf1);
  box-shadow: 0 0 4px 1px #03e7ffba, 0 0 10px 1px #02d8f482;
  pointer-events: none;
}

.navbar-indicator.is-positioned {
  transition: translate 270ms cubic-bezier(.22, .72, .25, 1), width 270ms cubic-bezier(.22, .72, .25, 1);
}

.nav--reference > .navbar-cta {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 146px;
  height: 44px;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #001417;
  font: italic 700 14px / 1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.navbar-cta-art {
  height: min(100%, 48px);
  margin-block: auto;
  z-index: -1;
}

.navbar-cta-glow { fill: #01cde0; filter: url(#nav-cta-blur); opacity: .60; }
.navbar-cta-bevel { fill: url(#nav-cta-depth); }
.navbar-cta-face { fill: url(#nav-cta-tone); }
.navbar-cta-edge { fill: none; stroke: url(#nav-cta-rim); stroke-width: 1.2; opacity: .85; }

.navbar-cta-face,
.navbar-cta-glow,
.navbar-cta-edge { transition: filter 180ms ease, opacity 180ms ease; }

.navbar-cta:is(:hover, :focus-visible) .navbar-cta-face { filter: brightness(1.1); }
.navbar-cta:is(:hover, :focus-visible) .navbar-cta-glow { opacity: .85; }
.navbar-cta:is(:hover, :focus-visible) .navbar-cta-edge { opacity: 1; }
.navbar-cta:active .navbar-cta-face { filter: brightness(.94); }
.navbar-cta:is(:hover, :focus-visible) .navbar-cta-reflection {
  animation: navbar-cta-reflection 560ms cubic-bezier(.25, .55, .38, 1);
}

@keyframes navbar-cta-reflection {
  from { transform: translateX(0); }
  to { transform: translateX(405px); }
}

.navbar-cta > span {
  display: flex;
  align-items: center;
  gap: .42em;
  translate: .15em -.12em;
}

.navbar-cta-arrow {
  width: .75em;
  height: .75em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  pointer-events: none;
}

.nav--reference :is(.brand, .navbar-links a, .navbar-cta):focus-visible {
  outline: 2px solid #e0fcff;
  outline-offset: 3px;
  border-radius: 3px;
}

.nav--reference.is-floating > .brand {
  position: absolute;
  top: 51%;
  left: 5.62%;
  width: 12.16%;
  translate: 0 -50%;
}

.is-floating > .navbar-links {
  position: absolute;
  inset: 0;
  display: block;
  font-size: clamp(13px, 1.25vw, 15px);
}

.is-floating .navbar-links a {
  position: absolute;
  top: 46.9%;
  translate: 0 -50%;
  margin-inline-start: -5px;
}

.is-floating .navbar-links a:nth-child(1) { left: 25.9%; }
.is-floating .navbar-links a:nth-child(2) { left: 37.5%; }
.is-floating .navbar-links a:nth-child(3) { left: 48.72%; }

.is-floating .navbar-indicator {
  top: 69.5%;
  bottom: auto;
}

.nav--reference.is-floating > .navbar-cta {
  position: absolute;
  top: 54%;
  left: 80.47%;
  width: 16.65%;
  height: clamp(44px, 62%, 51px);
  translate: 0 -50%;
  font-size: clamp(13px, 1.22vw, 15px);
}

.is-floating > :is(.brand, .navbar-cta),
.is-floating .navbar-links > * {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 180ms ease;
  pointer-events: none;
}

.is-revealed > :is(.brand, .navbar-cta),
.is-revealed .navbar-links > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease-out var(--reveal-delay, 270ms),
    transform 250ms cubic-bezier(.2, .72, .24, 1) var(--reveal-delay, 270ms);
}

.is-revealed :is(.brand, .navbar-links a, .navbar-cta) { pointer-events: auto; }
.is-revealed .navbar-links a:nth-child(2) { --reveal-delay: 210ms; }
.is-revealed .navbar-links a:nth-child(3) { --reveal-delay: 175ms; }
.is-revealed .navbar-indicator { --reveal-delay: 290ms; }
.is-revealed > .brand { --reveal-delay: 325ms; }
.is-revealed > .navbar-cta { --reveal-delay: 365ms; }

.is-floating .navbar-indicator.is-positioned {
  transition: opacity 170ms ease, transform 180ms ease,
    translate 270ms cubic-bezier(.22, .72, .25, 1), width 270ms cubic-bezier(.22, .72, .25, 1);
}
.is-revealed .navbar-indicator.is-positioned { transition-delay: var(--reveal-delay), var(--reveal-delay), 0ms, 0ms; }

.nav--reference.is-preparing > :is(.brand, .navbar-cta, .navbar-body),
.nav--reference.is-preparing .navbar-links > *,
.nav--reference.is-preparing::before { transition: none; }

.navbar-center-glint {
  fill: none;
  stroke: url(#nav-center-glint);
  stroke-width: 2;
  opacity: 0;
}

.is-revealed .navbar-center-glint { animation: navbar-center-glint 390ms ease-out; }

@keyframes navbar-center-glint {
  0% { opacity: 0; }
  20% { opacity: .78; }
  100% { opacity: 0; }
}

.navbar-seam-reflection {
  fill: none;
  stroke: #d9ffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: 16 120;
  stroke-dashoffset: 17;
  filter: drop-shadow(0 0 3px #47e4ef);
  opacity: 0;
}

.is-revealed .navbar-seam-reflection {
  animation: navbar-seam-reflection 630ms cubic-bezier(.3, .36, .4, .99) 490ms both;
}

@keyframes navbar-seam-reflection {
  0% { stroke-dashoffset: 17; opacity: 0; }
  21% { opacity: .95; }
  69% { opacity: .77; }
  100% { stroke-dashoffset: -105; opacity: 0; }
}

html:has(.nav--reference) { scroll-padding-top: 108px; }

@media (max-width: 850px) {
  .top.top--reference,
  .top.top--reference.scrolled { min-height: 96px; }

  .nav.nav--reference,
  .nav.nav--reference.is-floating {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 52px 44px;
    gap: 0 8px;
    width: min(calc(100% - 28px), 640px);
    height: 96px;
    padding-inline: 12px;
  }

  .nav.nav--reference.is-floating { --navbar-top: max(8px, env(safe-area-inset-top)); }
  .is-floating > .navbar-body { display: none; }

  .is-floating::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid #2b666f;
    border-radius: 8px;
    background: linear-gradient(160deg, #142d34f7, #071319fc 64%, #0b292ff7);
    box-shadow: 0 0 12px #031218c4, inset 0 -1px #2ec7d350;
    opacity: 0;
    clip-path: inset(-16px 46% -16px 46%);
    transition: clip-path 270ms ease, opacity 210ms ease;
    pointer-events: none;
  }

  .is-revealed::before {
    clip-path: inset(-16px);
    opacity: 1;
    transition-duration: 350ms, 200ms;
  }

  .nav--reference > .brand,
  .nav--reference.is-floating > .brand {
    position: relative;
    inset: auto;
    width: 116px;
    translate: none;
  }

  .nav--reference > .navbar-cta,
  .nav--reference.is-floating > .navbar-cta {
    position: relative;
    inset: auto;
    grid-area: 1 / 2;
    width: 138px;
    height: 44px;
    translate: none;
    font-size: 13px;
  }

  .navbar-cta-art { height: 41px; }

  .navbar-links,
  .is-floating > .navbar-links {
    position: relative;
    inset: auto;
    grid-area: 2 / 1 / auto / 3;
    display: flex;
    justify-content: space-evenly;
    gap: 2px;
    font-size: 13px;
  }

  .is-floating .navbar-links a:nth-child(n) {
    position: static;
    margin-inline-start: 0;
    translate: none;
  }

  .navbar-indicator,
  .is-floating .navbar-indicator {
    top: auto;
    bottom: 5px;
  }

  .nav--reference.is-revealed > :is(.brand, .navbar-cta),
  .nav--reference.is-revealed .navbar-links > * { --reveal-delay: 130ms; }

  html:has(.nav--reference) { scroll-padding-top: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.nav--reference) { scroll-behavior: auto; }
  .nav--reference *,
  .nav--reference.is-floating::before {
    animation: none !important;
    transition: none !important;
  }
}
