:root{--accent:#5C1A1A;--hairline:#D8D4C8;--gold:#9A7B4F;--ink-soft:#2A2620;--serif:var(--display);--serif-text:var(--body);--pad-x:clamp(40px,9vw,160px);}
  /* ---------------- Navbar ---------------- */
  .navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 80;
    padding: clamp(18px, 2.4vh, 30px) var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    background: rgba(245, 245, 241, 0.55);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
            backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .navbar .brand {
    font-weight: 500;
    padding-left: 4px;
    font-size:var(--text-wordmark);
    letter-spacing: 0.42em;
    color: var(--ink);
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 200ms ease;
  }
  .navbar .brand:hover { opacity: 0.7; }
  .navbar .brand .amp {
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--accent);
    padding: 0 6px;
  }
  .navbar .links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.6vw, 40px);
  }
  .navbar .links a {
    font-size:var(--text-small);
    color: var(--ink-soft);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 220ms ease;
  }
  .navbar .links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .navbar .links a:hover { color: var(--accent); }
  .navbar .links a:hover::after { transform: scaleX(1); }
  .navbar .links a.active { color: var(--accent); }
  .navbar .links a.active::after { transform: scaleX(1); }
  .navbar .cta {
    font-style: italic;
    font-size:var(--text-small);
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 1px;
    background: transparent;
    padding: clamp(10px, 1.4vh, 16px) clamp(20px, 2.4vw, 36px);
    white-space: nowrap;
    letter-spacing: 0.06em;
    transition: background-color 320ms ease, color 320ms ease, letter-spacing 320ms ease;
  }
  @media (max-width: 480px) {
    .navbar .cta { padding-left: 14px; padding-right: 14px; }
  }
  .navbar .cta:hover {
    background: var(--accent);
    color: var(--paper);
    letter-spacing: 0.12em;
  }

  /* Right-side cluster: founding-cohort indicator + CTA (+ burger). */
  .navbar .nav-end {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
  }
  .navbar .slots {
    font-family: var(--serif);
    font-style: italic;
    font-size:var(--text-wordmark);
    color: var(--accent);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 700ms ease;
  }
  .navbar .slots::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    transition: background-color 700ms ease;
  }
  body.plate-active .navbar .slots { color: var(--gold); }
  body.plate-active .navbar .slots::before { background: var(--gold); }
  @media (max-width: 1100px) {
    .navbar .slots { display: none; }
  }

  @media (max-width: 900px) {
    .navbar .links { display: none; }
  }

  /* ---------------- Mobile burger + fullscreen menu ---------------- */
  .burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 34px; height: 34px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .burger span {
    display: block;
    width: 22px; height: 1px;
    background: var(--ink);
    transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
                opacity 200ms ease, background-color 700ms ease;
  }
  body.plate-active .burger span { background: rgba(232, 224, 207, 0.85); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    gap: clamp(2px, 1vh, 8px);
    padding: clamp(88px, 13vh, 120px) var(--pad-x) clamp(40px, 8vh, 72px);
    overflow-y: auto;
    background: rgba(245, 245, 241, 0.98);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
            backdrop-filter: saturate(140%) blur(20px);
    opacity: 0;
    visibility: hidden;
    /* Hide only after the fade-out; show instantly on open so it's focusable. */
    transition: opacity 320ms ease, visibility 0s linear 320ms;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 320ms ease, visibility 0s linear 0s;
  }
  /* Staggered settle as the menu opens (disabled under reduced motion). */
  @keyframes m-settle {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mobile-menu.open > * { animation: m-settle 460ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .mobile-menu.open > *:nth-child(1) { animation-delay: 70ms; }
  .mobile-menu.open > *:nth-child(2) { animation-delay: 120ms; }
  .mobile-menu.open > *:nth-child(3) { animation-delay: 170ms; }
  .mobile-menu.open > *:nth-child(4) { animation-delay: 210ms; }
  .mobile-menu.open > *:nth-child(5) { animation-delay: 250ms; }
  .mobile-menu.open > *:nth-child(6) { animation-delay: 310ms; }
  .mobile-menu.open > *:nth-child(7) { animation-delay: 350ms; }
  .mobile-menu.open > *:nth-child(8) { animation-delay: 400ms; }
  /* Link tap targets held to 44px (WCAG 2.5.5). */
  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--serif);
    font-weight: 500;
    font-size:var(--text-heading-small);
    line-height: 1.1;
    color: var(--ink);
    text-decoration: none;
    width: max-content;
    transition: color 200ms ease;
  }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-menu a { font-style: italic; color: var(--accent); }
  /* The site's default oxblood CTA. */
  .mobile-menu .m-cta {
    margin-top: clamp(10px, 2.5vh, 24px);
    justify-content: center;
    font-style: italic;
    font-weight: 400;
    font-size:var(--text-lead);
    color: var(--paper);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 1px;
    padding: 12px 28px;
    letter-spacing: 0.06em;
    transition: background-color 260ms ease, color 260ms ease, letter-spacing 320ms ease;
  }
  .mobile-menu .m-cta:hover {
    background: transparent;
    color: var(--accent);
    letter-spacing: 0.1em;
  }
  /* The overlay is a mobile pattern only; keep it out of the desktop DOM. */
  @media (min-width: 901px) { .mobile-menu { display: none; } }

  @media (max-width: 900px) {
    .burger { display: flex; }
    .navbar .cta { display: none; }
    /* Tighten the bar so the burger sits near the right edge. */
    .navbar { padding-left: clamp(20px, 5vw, 34px); padding-right: clamp(20px, 5vw, 34px); }
  }

  /* Navbar night inversion while a night plate sits under it, same
     ~700ms soft fade as the deck's closing slide. */
  .navbar { transition: background-color 700ms ease, border-color 700ms ease; }
  .navbar .brand { transition: opacity 200ms ease, color 700ms ease; }
  .navbar .brand .amp { transition: color 700ms ease; }
  .navbar .links a { transition: color 500ms ease; }
  .navbar .links a::after {
    transition: background-color 500ms ease, transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .navbar .cta {
    transition: background-color 400ms ease, color 500ms ease,
                letter-spacing 320ms ease, border-color 500ms ease;
  }
  body.plate-active .navbar {
    background: rgba(20, 17, 13, 0.9);
    border-bottom-color: rgba(232, 224, 207, 0.18);
  }
  body.plate-active .navbar .brand,
  body.plate-active .navbar .links a {
    color: rgba(232, 224, 207, 0.85);
  }
  body.plate-active .navbar .brand .amp { color: var(--gold); }
  body.plate-active .navbar .links a:hover,
  body.plate-active .navbar .links a.active { color: var(--gold); }
  body.plate-active .navbar .links a::after { background: var(--gold); }
  body.plate-active .navbar .cta {
    color: var(--gold);
    border-color: var(--gold);
  }
  body.plate-active .navbar .cta:hover {
    background: var(--gold);
    color: #14110D;
  }
  body.plate-active .navbar a:focus-visible { outline-color: var(--gold); }

  /* Menu open holds the bar in its light state, even over a dark plate.
     Declared after plate-active so it wins at equal specificity. */
  body.menu-open { overflow: hidden; }
  body.menu-open .navbar { background: rgba(245, 245, 241, 0.9); border-bottom-color: transparent; }
  body.menu-open .navbar .brand { color: var(--ink); }
  body.menu-open .navbar .brand .amp { color: var(--accent); }
  body.menu-open .burger span { background: var(--ink); }
  body.menu-open .navbar .cta { color: var(--accent); border-color: var(--accent); }

  /* ---------------- Shared type ---------------- */

.navbar, .mobile-menu { font-family:var(--serif); }
