/* ==========================================================================
   NEW WAVE TYPOGRAPHY — the hero, rebuilt from the founder's artifact
   (2026-10-01). Loaded after x-new-wave-typography.css on
   a/new-wave-typography.html only. Scope: .nwh (the room's own .nw-hero,
   .nw-btn and .nw-page are left alone).

   The title and the collage are the art, full width of the page column,
   rising behind the empty top bar. Across the top, a mock nav on the art's
   paper: the wordmark at the left, this page's own sections at the right,
   on one row. With the rail showing, the fixed action cluster holds the
   top-right, so the row runs just below it.

   Wide (hero 1000px and up): the labels, tagline, buttons and columns are
   live type laid on the art's grid, placed in reference pixels (1685 x 852)
   via --nwh-u, with floors so small labels stay readable.
   Narrow: the title and collage first, the words after on the grid.

   Face is the page's own ("NW Archivo", x-new-wave-typography.css).
   Contrast: ink #111111 on paper #F5F3E7 17.0:1; paper on ink the same;
   grey #5E5C57 on paper 6.0:1. The bright magenta #E6007E is 4.0:1 on
   paper: used on the bold 01 numeral and the underline only.
   ========================================================================== */
.nwh {
  --nwh-paper: #F5F3E7;
  --nwh-ink: #111111;
  --nwh-grey: #5E5C57;
  --nwh-mag: #E6007E;
  --nwh-sans: "NW Archivo", "Helvetica Neue", Arial, sans-serif;

  container-type: inline-size;
  --nwh-u: calc(100cqi / 1685);
  position: relative;
  display: block;
  isolation: isolate;
  background: var(--nwh-paper);
  color: var(--nwh-ink);
  font: 400 16px/1.5 var(--nwh-sans);
  border-bottom: 1.5px solid var(--nwh-ink);
  /* Full width of the page column, rising behind the empty top bar. */
  margin: calc(-3rem - var(--s2, 0.5rem)) calc(-1 * var(--s6, 2rem)) 0;
}
@media (max-width: 60rem) {
  .nwh { margin-inline: calc(-1 * var(--s4, 1rem)); }
}
.nwh * { box-sizing: border-box; }
.nwh a:focus-visible { outline: 2px solid var(--nwh-mag); outline-offset: 3px; }

/* ---- the mock nav: the art's paper, one full-width row ------------------ */
.nwh__nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px clamp(20px, calc(140 * var(--nwh-u)), 140px);
  min-height: max(60px, calc(82 * var(--nwh-u)));
  padding: max(8px, calc(16 * var(--nwh-u))) max(20px, calc(74 * var(--nwh-u))) 8px max(20px, calc(79 * var(--nwh-u)));
}
@media (min-width: 60.0625rem) {
  .nwh__nav { /* nav on top, the action bar in the room under its row (founder, 2026-10-01) */ padding-top: 10px; padding-bottom: calc(3rem + var(--s2, 0.5rem)); }
}
/* Tablets: no rail, but the action cluster still sits fixed at the top. */
@media (min-width: 48.0625rem) and (max-width: 60rem) {
  .nwh__nav { padding-top: 24px; }
}
.nwh__mark { flex: none; display: block; line-height: 0; padding-block: 6px; margin-block: -6px; }
.nwh__mark img { display: block; width: max(150px, calc(231 * var(--nwh-u))); height: auto; }
.nwh__toc {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 clamp(4px, calc(37 * var(--nwh-u)), 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nwh__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--nwh-ink);
  font: 400 clamp(15px, calc(18 * var(--nwh-u)), 18px)/1 var(--nwh-sans);
  text-decoration: none;
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}
.nwh__link:hover { text-decoration: underline; text-decoration-color: var(--nwh-mag); }
.nwh__mix {
  display: inline-flex;
  align-items: center;
  height: max(44px, calc(48 * var(--nwh-u)));
  margin-left: clamp(6px, calc(22 * var(--nwh-u)), 22px);
  padding: 0 max(16px, calc(27 * var(--nwh-u)));
  border: 1.5px solid var(--nwh-ink);
  background: var(--nwh-ink);
  color: var(--nwh-paper);
  font: 400 clamp(15px, calc(18 * var(--nwh-u)), 18px)/1 var(--nwh-sans);
  text-decoration: none;
  white-space: nowrap;
}
.nwh__mix:hover { background: var(--nwh-paper); color: var(--nwh-ink); }

/* ---- the art and the live words on it ---------------------------------- */
.nwh__stage {
  position: relative;
  /* Below 1685px the label floors make the columns taller than the art
     leaves room for; a strip of paper under the art takes the difference
     (about 16px at a 1032px hero, none at full size). */
  padding-bottom: max(0px, calc(0.025 * (1685px - 100cqi)));
}
.nwh__art img { display: block; width: 100%; height: auto; }
.nwh__layer { position: absolute; inset: 0; }
.nwh__layer p, .nwh__layer ul { margin: 0; padding: 0; list-style: none; }

/* Letterspaced label: the record's "letterspacing as emphasis" */
.nwh-label {
  font-size: max(11px, calc(13.5 * var(--nwh-u)));
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  line-height: 1.75;
}
.nwh-label li, .nwh-label span { display: block; white-space: nowrap; }

.nwh__kicker,
.nwh__keys { position: absolute; top: calc(56 * var(--nwh-u)); }
.nwh__kicker { left: calc(84 * var(--nwh-u)); }
.nwh__keys { left: calc(879 * var(--nwh-u)); }
.nwh__kicker::after,
.nwh__keys::after {
  content: "";
  display: block;
  width: calc(31 * var(--nwh-u));
  height: 2px;
  margin-top: calc(13 * var(--nwh-u));
  background: var(--nwh-ink);
}

.nwh__tagline {
  position: absolute;
  left: calc(262 * var(--nwh-u));
  top: calc(536 * var(--nwh-u));
  font-size: max(16px, calc(25.8 * var(--nwh-u)));
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.005em;
}
.nwh__tagline span { display: block; white-space: nowrap; }

.nwh__actions {
  position: absolute;
  left: calc(261 * var(--nwh-u));
  top: calc(632 * var(--nwh-u));
  display: flex;
  gap: calc(19 * var(--nwh-u));
}
.nwh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--nwh-u));
  height: max(44px, calc(51 * var(--nwh-u)));
  padding: 0 calc(26 * var(--nwh-u));
  font: 500 max(11.5px, calc(13.5 * var(--nwh-u)))/1 var(--nwh-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--nwh-ink);
}
.nwh-btn svg { width: 1.6em; height: 1.6em; margin-right: -.3em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nwh-btn--solid { min-width: calc(266 * var(--nwh-u)); background: var(--nwh-ink); color: var(--nwh-paper); }
.nwh-btn--line { min-width: calc(207 * var(--nwh-u)); background: var(--nwh-paper); color: var(--nwh-ink); }
/* Hover by spacing, not fill: the record's emphasis device */
.nwh-btn:hover { letter-spacing: .42em; }

.nwh__cols {
  position: absolute;
  left: calc(84 * var(--nwh-u));
  top: calc(707 * var(--nwh-u));
  display: grid;
  grid-template-columns: calc(211 * var(--nwh-u)) calc(240 * var(--nwh-u)) auto;
}
.nwh-col__n {
  display: inline-block;
  font-size: max(12px, calc(15 * var(--nwh-u)));
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  padding-bottom: calc(13 * var(--nwh-u));
  border-bottom: 2px solid var(--nwh-ink);
}
.nwh-col__n--hot { color: #C2006C; border-color: var(--nwh-mag); }   /* the magenta at 12px was 4.0:1 on cream; this is 5.3 */
.nwh__layer .nwh-col ul { margin-top: calc(7 * var(--nwh-u)); padding-left: calc(25 * var(--nwh-u)); line-height: 1.5; }
.nwh__layer .nwh-col:not(:first-child) ul { padding-left: calc(34 * var(--nwh-u)); }

/* ---- narrow: title and collage, then the words ------------------------- */
@container (max-width: 999px) {
  .nwh__nav { border-bottom: 1.5px solid var(--nwh-ink); }
  .nwh__layer {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px 24px;
    padding: 28px clamp(20px, 6cqi, 56px) 40px;
    border-top: 1.5px solid var(--nwh-ink);
    background:
      linear-gradient(90deg, rgba(17, 17, 17, .12) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
      var(--nwh-paper);
  }
  .nwh__stage { padding-bottom: 0; }
  .nwh__kicker, .nwh__keys, .nwh__tagline, .nwh__actions, .nwh__cols { position: static; }
  .nwh-label { font-size: 11.5px; }
  .nwh__kicker { grid-column: 1; }
  .nwh__keys { grid-column: 2; grid-row: 1 / span 2; }
  .nwh__kicker::after, .nwh__keys::after { width: 28px; margin-top: 8px; }
  .nwh__tagline { grid-column: 1 / -1; font-size: clamp(19px, 4.4cqi, 26px); }
  .nwh__tagline span { display: inline; white-space: normal; }
  .nwh__actions { grid-column: 1 / -1; flex-wrap: wrap; gap: 12px; }
  .nwh-btn { padding: 0 20px; gap: 12px; min-width: 0; }
  .nwh__cols { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
  .nwh-col__n { font-size: 13px; padding-bottom: 5px; }
  .nwh__layer .nwh-col ul, .nwh__layer .nwh-col:not(:first-child) ul { margin-top: 10px; padding-left: 16px; }
}
@container (max-width: 520px) {
  /* Phones: the wordmark takes its own line, the sections run under it. */
  .nwh__nav { flex-wrap: wrap; row-gap: 2px; }
  .nwh__toc { flex-wrap: wrap; margin-left: -6px; }
}
@container (max-width: 420px) {
  .nwh__keys { grid-column: 1; grid-row: auto; white-space: normal; }
  .nwh__keys li { display: inline; white-space: normal; }
  .nwh__keys li:not(:last-child)::after { content: " · "; }
}

/* ---- under the hero: the grid levers, the specimen and the note --------- */
.nw-under { padding-top: 28px; }
/* Without the title above it the grid is shorter, so the film strata sit
   higher, behind the specimen, and stay inside the sheet. */
.nw-under .nw-film--m { top: 14%; }
.nw-under .nw-film--c { top: 30%; }
.nw-under .nw-film--y { top: 8%; }

/* The images were generated (founder, 2026-10-01); the hero says so. */
.nwh { position: relative; }
.nwh__gen { position: absolute; z-index: 5; right: 12px; bottom: 8px; margin: 0; padding: 2px 6px; background: rgba(245,243,231,.85); color: #111; font: 500 11px/1.3 var(--ui, system-ui), sans-serif; letter-spacing: .01em; }
@media (max-width: 760px) { .nwh__gen { position: static; display: block; width: max-content; margin: 6px 12px 0 auto; } }
