/* ==========================================================================
   L'AERIO · masthead · luxe editorial bar
   Single layer (kept simple). No ticker. No scroll-progress. No theme toggle.
   ========================================================================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--vellum) 94%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--m-fast), background var(--m-fast);
}
.masthead.is-scrolled {
  border-bottom-color: var(--wine-12);
  background: color-mix(in srgb, var(--vellum) 98%, transparent);
}

.masthead__inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 22px var(--gutter-d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-32);
}
@media (max-width: 1024px) { .masthead__inner { padding-inline: var(--gutter-t); } }
@media (max-width: 768px)  { .masthead__inner { padding: 16px var(--gutter-m); } }

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--wine);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.005em;
  line-height: 1;
  opacity: 1;
  transition: opacity 360ms ease-out, transform 360ms ease-out;
}

/* On home page · hide brand while hero is in view (no double-logo) */
body.page-home.is-at-hero .masthead__brand {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.masthead__mark {
  width: auto;
  height: 30px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.04));
}
.masthead__wordmark { color: var(--wine); }
.masthead__brand:hover .masthead__wordmark { color: var(--wine-deep); }

/* ── Nav ──────────────────────────────────────────────────────────── */

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.masthead__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black-soft);
  text-decoration: none;
  position: relative;
  padding-block: 6px;
  transition: color var(--m-fast);
}
.masthead__nav a:not(.masthead__cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--wine);
  transition: width 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.masthead__nav a:hover { color: var(--wine); }
.masthead__nav a:hover::after,
.masthead__nav a[aria-current="page"]::after { width: 100%; }
.masthead__nav a[aria-current="page"] { color: var(--wine); }

/* CTA pill */
.masthead__cta {
  margin-left: 8px;
  padding: 13px 22px;
  background: var(--wine);
  color: var(--cream) !important;
  letter-spacing: 0.10em !important;
  font-size: 13px !important;
  transition: background 200ms ease-out, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.masthead__cta::after { display: none !important; }
.masthead__cta:hover {
  background: var(--wine-deep);
  transform: translateY(-1px);
  color: var(--cream) !important;
}
.masthead__cta:active { transform: translateY(0); }

/* ── Mobile toggle (hamburger as two hairlines) ──────────────────── */

.masthead__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--wine-12);
  padding: 0;
}
.masthead__toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--wine);
  transition: transform 240ms ease-out, opacity 200ms ease-out;
}
.masthead__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.masthead__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 768px) {
  .masthead__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: var(--vellum);
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 110;
    padding-inline: var(--gutter-m);
  }
  .masthead__nav.is-open { transform: translateX(0); }
  .masthead__nav a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--wine);
  }
  .masthead__nav a:not(.masthead__cta)::after { display: none; }
  .masthead__cta {
    margin-left: 0;
    margin-top: var(--sp-16);
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    padding: 16px 28px;
  }
  .masthead__toggle { display: inline-flex; position: relative; z-index: 120; }
}

/* legacy ticker/scroll-progress hidden if older partials still render */
.ticker, .scroll-progress { display: none !important; }
