/* Awanex nav bar. LOCKED FINAL (Sir, Nov 22, 3:25 PM): "WE WON'T CHANGE IT EVER". Only change since: Book a call fades in after the logo on first visit (Sir OK'd, 5 PM). Do not edit; locked copy in Archive/Backups/awanex-nav-FINAL-nov22. Locked colours (Sir, Nov 22): black #000000, white #FFFFFF, chrome #D8DBDE, crimson #DC143C. Font: Geist only. */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --chrome: #D8DBDE;
  --crimson: #DC143C;
  --p: 0; /* scroll progress 0..1, set by nav.js */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  color-scheme: dark;
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.nav {
  position: fixed;
  z-index: 50;
  top: calc(env(safe-area-inset-top, 0px) + 16px + 4px * var(--p));
  left: 50%;
  width: calc(min(1160px, 100vw - 48px) * (1 - var(--p)) + min(720px, 100vw - 48px) * var(--p));
  height: calc(64px - 8px * var(--p));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 9px 0 24px;
  border-radius: 999px;
  /* real glass: see-through, blur, light falling from the top, thin bright rim */
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(.075 + .02 * var(--p))) 0%, rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .04) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(216, 219, 222, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 0 0 1px rgba(255, 255, 255, .03),
    inset 0 -1px 0 rgba(216, 219, 222, .08),
    0 18px 50px rgba(0, 0, 0, .6);
}
/* Still light along the top rim (glass reflects light; it never animates). */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, .10) 50%, transparent 90%) top / 100% 1px no-repeat;
}

/* Logo = Home. AWANEX in wide-spaced capitals, shiny chrome. */
.nav-logo {
  position: relative;
  flex: none;
  margin-top: -2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .34em;
  margin-right: -.34em;
  text-decoration: none;
  background: linear-gradient(180deg, var(--white) 0%, var(--chrome) 45%, var(--white) 70%, var(--chrome) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-logo::after { content: ""; position: absolute; inset: -14px -10px; }

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  transition: color .2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }

/* One glass bubble that slides behind the hovered (or current) link. */
.nav-bubble {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), width .3s var(--ease), opacity .2s var(--ease);
}

/* The one button: solid chrome, black text, crimson glow on hover. */
.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: calc(46px - 6px * var(--p));
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  /* shiny chrome: bright, a band of silver, bright again (matches the logo) */
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 22%, var(--chrome) 50%, var(--chrome) 62%, var(--white) 100%);
  box-shadow: inset 0 1px 0 var(--white), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:active { transform: scale(.97); }

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav[data-open] .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav[data-open] .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-right { display: flex; align-items: center; }

:focus-visible { outline: 2px solid var(--chrome); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: inset 0 1px 0 var(--white), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 8px 28px rgba(220, 20, 60, .38);
  }
  .nav-cta:active { transform: scale(.97); }
}

/* Phone and small tablet: logo, button, menu. The call button never hides. */
@media (max-width: 820px) {
  .nav {
    width: calc(100vw - 24px);
    height: 60px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    padding: 0 8px 0 20px;
  }
  .nav-logo { font-size: 15px; }
  .nav-cta { height: 44px; padding: 0 18px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 9px);
    left: -1px;
    right: -1px;
    transform: translateY(-6px);
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .04)), rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(216, 219, 222, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 50px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav[data-open] .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .08); }
  .nav-bubble { display: none; }
}

@media (max-width: 360px) {
  .nav-logo { letter-spacing: .26em; margin-right: -.26em; }
  .nav-cta { padding: 0 14px; }
}

/* One entrance, the first page of a visit only: the bar glides down once, then stays still. */
@keyframes nav-enter {
  from { opacity: 0; translate: 0 -14px; }
  to { opacity: 1; translate: 0 0; }
}
[data-enter] .nav { animation: nav-enter .8s cubic-bezier(.16, 1, .3, 1) .1s both; }
/* Nov 22 (Sir OK'd "make it 10/10"): the bright button used to read before the logo;
   on the first visit it now fades in a beat after the pill, so the logo lands first. */
@keyframes nav-cta-in { from { opacity: 0; } to { opacity: 1; } }
[data-enter] .nav-cta { animation: nav-cta-in .5s cubic-bezier(.16, 1, .3, 1) .45s both; }

@media (prefers-reduced-motion: reduce) {
  [data-enter] .nav { animation: none; }
  [data-enter] .nav-cta { animation: none; }
  .nav-bubble, .nav-cta, .nav-links, .nav-toggle span { transition: none; }
}
