/* <site-header> host adds no box: nav participates in .page-wrapper flow as before */
site-header { display: contents; }

.nav {
  /* Scrolls normally with the page (not sticky). Stays `relative` so the hero
     corner brackets and pinstripe below can anchor to it. */
  position: relative;
  /* Above the vertical tram lines (101) and the full-bleed scroll-media video
     (102) while in view; below the mobile drawer (150). */
  z-index: 105;
  height: var(--nav-height);
}

.nav__inner {
  /* Logo + MENU align to the RAIL (the vertical tram lines / hero corner
     brackets at --rail-width), not the content column — sit just inside the
     rail with a small inset rather than out at the content edge like the hero
     text. */
  width: var(--rail-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 28px;
  width: auto;
  margin-top: 28px;
}

/* Hover group: pushes menu-btn to far right, reveals links on hover */
.nav__menu-group {
  margin-left: auto;
  margin-top: 28px;
  display: flex;
  align-items: center;
}

.nav__links {
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav__menu-group:hover .nav__links {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--nav-height);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transition: opacity 0.2s;
}

.nav__link:hover { opacity: 0.7; }

/* Active single underline */
.nav__item--active .nav__link::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--white);
}

/* Non-active links: lighter weight and colour */
.nav__item:not(.nav__item--active) .nav__link {
  font-weight: 400;
  color: rgba(255,255,255,0.80);
}

/* Orange chevron flags a nav item that has a hover submenu */
.nav__chevron {
  flex-shrink: 0;
  color: var(--orange);
  margin-left: -12px;
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.nav__item--has-sub:hover .nav__chevron { transform: rotate(180deg); }

/* ── Hover submenu ──────────────────────────────────────────────────── */
.nav__item--has-sub { position: relative; }

.nav__submenu {
  position: absolute;
  top: 100%;          /* flush with the bottom of the 64px-tall nav item */
  left: 14px;         /* line the panel up with the link text */
  min-width: 170px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: var(--almost-black);
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Hidden until the parent item is hovered. visibility (not display) so the
     opacity/transform transition can play. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 110;
}

.nav__item--has-sub:hover .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__submenu-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.80);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 9px 18px;
  transition: color 0.18s, background 0.18s;
}

.nav__submenu-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Current page within the submenu (e.g. Contact on contact-us.html) — white
   underline, matching the top-level active item. */
.nav__submenu-link--active {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* MENU button with corner brackets */
.nav__menu-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  position: relative;
  padding: 6px 8px;
  display: flex;
  align-items: center;
}

.nav__menu-corner {
  position: absolute;
  width: var(--bracket);
  height: var(--bracket);
}

/* Horizontal pinstripe — stays sticky with nav */
.nav::after {
  content: '';
  position: absolute;
  top: calc(100% + 30px);
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
  pointer-events: none;
}

/* Hero TL/TR corner brackets — anchored to sticky nav. L-shape from the shared
   .bracket primitive (css/brackets.css); these rules only position them on the
   tram lines. The base .nav__hero-corner class is kept on the markup purely so
   mobile.css can hide them. */
.nav__hero-corner--tl {
  top: calc(100% + 30px);
  left: var(--rail-edge);
}
.nav__hero-corner--tr {
  top: calc(100% + 30px);
  right: var(--rail-edge);
}
.nav__menu-corner--tl {
  top: 0; right: -1px;
  border-top: var(--bracket-w) solid var(--orange);
  border-right: var(--bracket-w) solid var(--orange);
}
.nav__menu-corner--br {
  bottom: 0; left: -1px;
  border-bottom: var(--bracket-w) solid var(--orange);
  border-left: var(--bracket-w) solid var(--orange);
}
