/* ============================================================================
   nav.css — three-step structure labels + the dropdown navigation carried by
   the bottom bar (the client-crown). Nothing here touches section internals;
   it styles only the shell wrappers this file owns:
     .step / .step__head        the 01 / 02 / 03 step chapters
     .workgroup                  category anchors inside Step 01
     .crownnav                   the dropdown opened from the crown
   ========================================================================== */

/* --- Step chapters ---------------------------------------------------------
   The wrapping <section class="step"> adds no vertical padding of its own — the
   sections it mounts already carry .section padding — so ordering is unchanged.
   Only the step head introduces new height. */
.step { position: relative; }

.step__head {
  max-width: var(--maxw, 1200px);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-edge, 1.5rem) 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
  column-gap: clamp(0.9rem, 2vw, 1.6rem);
  row-gap: 0.35rem;
}

/* Numeric index language — mirrors the "01" marks used across the deck. */
.step__num {
  grid-row: 1 / span 2;
  font-family: var(--font-client-mono, monospace);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--muted, rgba(5, 5, 5, 0.4));
  font-variant-numeric: tabular-nums;
}

.step__name {
  grid-column: 1;
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

/* Extra specificity + !important are needed only to beat
   body.ol-pitch h2 { font-family: var(--font-client-display) !important }
   so the step label keeps the mono "01 / FW26" numeric idiom, not the heading face. */
.step .step__name {
  font-family: var(--font-client-mono, monospace) !important;
}

.step__note {
  grid-column: 1;
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-client-mono, monospace);
  font-size: var(--text-label, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, rgba(5, 5, 5, 0.4));
  line-height: 1.5;
}

/* Category anchors inside Step 01 add no box of their own. */
.workgroup { scroll-margin-top: 5rem; }

/* ============================================================================
   Dropdown navigation — opened from the crown's brand row. Rendered as a fixed
   sibling of the crown (the crown clips its own overflow), and positioned above
   it by nav.js so it tracks the crown across every breakpoint.
   ========================================================================== */

/* The brand row is now a <button>; strip native chrome, keep the wordmark look. */
.cc-tapis-pitch .client-crown__brand {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.client-crown__brand[aria-expanded="true"] { color: var(--cc-blue, inherit); }

.crownnav {
  position: fixed;
  left: var(--client-edge-pad, 1rem);
  bottom: 0;                     /* nav.js overrides bottom to sit above crown */
  width: min(520px, calc(100vw - (var(--client-edge-pad, 1rem) * 2)));
  z-index: calc(var(--z-nav, 40) + 5);
  background: #e9e9e6;           /* same tint as the crown */
  border: 1px solid rgba(5, 5, 5, 0.08);
  box-shadow: 0 18px 42px rgba(5, 5, 5, 0.12);
  color: var(--fg, #050505);
  transform: translateY(0.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out-expo, ease),
    transform 0.28s var(--ease-out-expo, ease), visibility 0.28s linear;
}
.crownnav[hidden] { display: block; }   /* keep it in flow for the transition */
.crownnav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.crownnav__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: grid;
  gap: 0.15rem;
}

.crownnav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--fg, #050505);
  font-family: var(--font-client-mono, monospace);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: color var(--dur-ui, 0.2s) var(--ease-spring, ease),
    background-color var(--dur-ui, 0.2s) var(--ease-spring, ease);
}
.crownnav__list a:hover,
.crownnav__list a:focus-visible {
  color: var(--cc-blue, #050505);
  background: rgba(5, 5, 5, 0.05);
  outline: none;
  border-color: rgba(5, 5, 5, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .crownnav { transition: opacity 0.01ms linear, visibility 0.01ms linear; }
}
