/* 00 · Header · sticky top bar (Paper node 9AT-0, 1440×68; CTA frame 450 wide) */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Same centred container as the page sections (1100 + gutters), so the brand and CTA line up with the content below
   instead of sitting at the viewport edges (Remy, 16 Sept 2026). */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0 var(--gutter);
}

/* Brand */
.header-brand { display: inline-flex; align-items: baseline; gap: 9px; flex: 0 0 auto; }
.header-wordmark { font-weight: 500; font-size: 19px; line-height: 24px; letter-spacing: -0.03em; color: var(--ink); }

/* Centre nav */
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav-link { font-size: 14px; line-height: 18px; color: var(--ink-3); transition: color var(--fast) var(--ease); }
.header-nav-link:hover { color: var(--ink); }

/* Right: chip + small CTA */
.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

@media (max-width: 900px) {
  .header-inner { padding: 0 32px; }
  .header-nav { display: none; }
}
/* Hamburger + drawer only exist on the phone */
.header-menu { display: none; }
.header-drawer { display: none; }

/* Phone (Paper node ILO-0 "Header · Mobile", 390×76): wordmark left, 44px round hamburger right, hairline below. */
@media (max-width: 600px) {
  .header { height: 76px; border-bottom-color: var(--line-m); transition: transform var(--med) var(--ease); }
  /* Hides while scrolling down, returns on the first scroll up (js/sections/00-header.js). Never while the drawer is open. */
  .header--hidden { transform: translateY(-100%); }
  @media (prefers-reduced-motion: reduce) { .header { transition: none; } }
  .header-inner { padding: 0 24px; gap: 12px; }
  .header-actions .cta { display: none; }
  .header-menu {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid #D6D0C8; color: var(--ink); background: var(--bg);
  }
  .header-menu-icon--close { display: none; }
  .header-menu[aria-expanded="true"] .header-menu-icon--open { display: none; }
  .header-menu[aria-expanded="true"] .header-menu-icon--close { display: block; }
  .header-drawer {
    position: absolute; left: 0; right: 0; top: 100%;
    display: flex; flex-direction: column;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-m);
    box-shadow: 0 24px 40px -24px rgba(26, 24, 22, 0.25);
  }
  .header-drawer[hidden] { display: none; }
  .header-drawer-link {
    display: block; padding: 16px 0;
    font-weight: 500; font-size: 19px; line-height: 24px; letter-spacing: -0.02em; color: var(--ink);
    border-bottom: 1px solid var(--line-m);
  }
  .header-drawer-cta { margin-top: 24px; }
}
