/* ==========================================================================
   MAXIMALISM — the hero, rebuilt from the founder's artifact (2026-09-30).
   Loaded after x-maximalism.css on a/maximalism.html only. Scope: .mx-top.

   Wide: the room is one picture with the name lettered into it, full-bleed;
   live cards sit exactly over the cards painted into it, placed in the
   picture's own pixels (1685 x 934) through --u. Text sizes have floors, so a
   card can grow at smaller widths; it grows from its centre (the quote from
   its top) and still covers the painting beneath it. The mock nav is a cream bar laid over the bar
   painted across the top, carrying this page's sections, left-aligned so the
   site's action cluster sits on its empty right end.
   Narrow (hero under 760px): the nav in flow, the title band of the art,
   then the cards stacked on a dotted magenta ground.

   Faces and inks are the page's (Abril/Playfair/Space Grotesk, --mx-*);
   Playfair roman is added for the defining line. Solid grounds, ink edges,
   hard magenta offsets, never a blur.
   ========================================================================== */
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair.woff2") format("woff2-variations"); font-weight: 400 900; font-style: normal; font-display: swap; }

.mx-top {
  --mx-top-bar: calc(3rem + var(--s2, 0.5rem));   /* the empty top bar the hero rises behind */
  container-type: inline-size;
  position: relative;
  display: block;
  background: var(--mx-ink);
  color: var(--mx-ink);
  font: 500 16px/1.5 var(--mx-text);
  font-synthesis: none;
  /* 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) {
  .mx-top { margin-inline: calc(-1 * var(--s4, 1rem)); }
}
/* container-type on the hero means its own cqi can't be read from itself;
   --u resolves on the descendants, where 100cqi is the hero's width. */
.mx-top > * { --u: calc(100cqi / 1685); }
.mx-top :focus-visible { outline: 4px solid var(--mx-saf); outline-offset: 2px; box-shadow: 0 0 0 8px var(--mx-ink); }

.mx-vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mx-top__art { display: block; }
.mx-top__art img { display: block; width: 100%; height: auto; }

/* ---- the mock nav: a cream bar over the painted one -------------------- */
.mx-top__nav {
  position: absolute; z-index: 3; top: 0;
  left: calc(93 * var(--u)); right: calc(90 * var(--u));
  min-height: max(52px, calc(73 * var(--u)));
  display: flex; align-items: center; gap: calc(60 * var(--u));
  padding: 0 calc(28 * var(--u)) 0 calc(26 * var(--u));
  background: var(--mx-cream);
  border-radius: 0 0 16px 16px;
  font: 500 clamp(14px, calc(17.5 * var(--u)), 18px)/1 var(--mx-text);
}
.mx-top__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mx-ink); text-decoration: none; white-space: nowrap; }
.mx-top__logo img { display: block; width: max(calc(197 * var(--u)), 120px); height: auto; }
.mx-top__links { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, calc(58 * var(--u)), 62px); }
.mx-top__links a { padding: 0 6px; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.mx-top__links a:hover { text-decoration: underline; text-decoration-color: var(--mx-mag); }

/* The action bar sits under this bar now, not on it (founder, 2026-10-01), so the
   row keeps its full spacing at every desktop width. */

/* ---- the cards, pinned over the painted ones --------------------------- */
.mx-top__layer { position: absolute; inset: 0; pointer-events: none; }
.mx-top__layer > * { pointer-events: auto; }

.mx-top__card {
  margin: 0;
  background: var(--mx-cream);
  color: var(--mx-ink);
  border: max(2px, calc(2.5 * var(--u))) solid var(--mx-ink);
  box-shadow: max(5px, calc(9 * var(--u))) max(6px, calc(11 * var(--u))) 0 var(--mx-mag);
}

.mx-top__kicker,
.mx-top__tagline,
.mx-top__quote {
  position: absolute;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(var(--r));
  left: calc(var(--cx) * var(--u));
  top: calc(var(--cy) * var(--u));
  min-width: calc(var(--w) * var(--u));
  min-height: calc(var(--h) * var(--u));
}

.mx-top__kicker {
  --cx: 647; --cy: 242.5; --w: 550; --h: 44; --r: -3.4deg;
  display: grid; place-items: center;
  width: max-content;
  padding: 0 calc(14 * var(--u));
  font: 700 max(11px, calc(14.2 * var(--u)))/1 var(--mx-text);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Each chip starts exactly where its painted one does, so it always covers
   it; where a text floor widens a chip, it laps the next, as pills in a pile. */
.mx-top__chips { list-style: none; margin: 0; padding: 0; }
.mx-top__chip {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(502 * var(--u));
  min-width: calc(var(--w) * var(--u));
  height: max(24px, calc(44 * var(--u)));
  padding: 0 max(6px, calc(18 * var(--u)));
  box-sizing: border-box;
  display: grid; place-items: center;
  border-radius: 999px;
  font: 600 max(10.5px, calc(19 * var(--u)))/1 var(--mx-text);
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--mx-ink);
}
.mx-top__chip--saf { background: var(--mx-saf); }
.mx-top__chip--mag { background: var(--mx-mag); color: #fff; }   /* 5.1:1; ink was 3.7 (audit 2026-10-01) */
.mx-top__chip--cream { background: var(--mx-cream); }

.mx-top__tagline {
  --cx: 716; --cy: 584.5; --w: 912; --h: 55; --r: -.6deg;
  display: grid; place-items: center;
  width: max-content;
  padding: 0 calc(16 * var(--u));
  font: 700 max(15px, calc(25 * var(--u)))/1.1 var(--mx-italic);
  letter-spacing: -.012em;
  white-space: nowrap;
}

.mx-top__quote {
  --cx: 527.5; --cy: 685; --w: 526; --h: 120; --r: -2.44deg;
  /* Pinned by its top edge: where the text floors grow it, it grows down,
     away from the defining line above it. */
  top: calc((var(--cy) - var(--h) / 2) * var(--u));
  transform: translate(-50%, 0) rotate(var(--r));
  width: max-content;
  padding: calc(15 * var(--u)) calc(22 * var(--u)) calc(11 * var(--u));
}
.mx-top__quote blockquote { margin: 0; }
.mx-top__quote p {
  margin: 0;
  font: italic 500 max(15px, calc(26.5 * var(--u)))/1.06 var(--mx-italic);
  letter-spacing: -.005em;
}
.mx-top__quote span { display: block; white-space: nowrap; }
.mx-top__quote span + span { padding-left: calc(3 * var(--u)); }
.mx-top__quote figcaption {
  margin-top: calc(7 * var(--u));
  font: 500 max(10px, calc(14 * var(--u)))/1 var(--mx-text);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---- narrow: nav in flow, title band, cards stacked on a dotted ground -- */
@container (max-width: 759px) {
  .mx-top__nav {
    position: relative; left: auto; right: auto; z-index: auto;
    flex-wrap: wrap; gap: 4px 18px;
    min-height: 0;
    padding: 10px 20px 8px;
    border-radius: 0;
    border-bottom: 2px solid var(--mx-ink);
    font-size: 15px;
  }
  .mx-top__logo img { width: 140px; }
  .mx-top__links { gap: 0 14px; }
  .mx-top__links a { padding: 0; }
}
/* Where the action bar sits at the top (desktop; below 60rem it docks at the
   foot), the narrow nav leads and the bar takes the room under its links
   (founder, 2026-10-01: nav on top, the bar below). */
@media (min-width: 60.0625rem) {
  @container (max-width: 759px) {
    .mx-top__nav { padding-top: 16px; padding-bottom: calc(var(--mx-top-bar) - 4px); }
  }
}
@container (max-width: 759px) {

  .mx-top__layer {
    position: static;
    display: grid;
    gap: 22px;
    justify-items: start;
    padding: 30px 20px 44px;
    background:
      radial-gradient(circle at 50% 50%, rgba(244, 180, 0, .5) 2.2px, transparent 2.6px) 0 0 / 16px 16px,
      var(--mx-mag);
  }
  .mx-top__kicker,
  .mx-top__tagline,
  .mx-top__quote,
  .mx-top__chip {
    position: relative;
    left: auto; top: auto;
    min-width: 0; min-height: 0;
  }
  .mx-top__kicker,
  .mx-top__tagline,
  .mx-top__quote { transform: rotate(var(--r)); width: auto; max-width: 100%; }
  .mx-top__card { box-shadow: 6px 7px 0 var(--mx-ink); }
  .mx-top__kicker { padding: 9px 12px; white-space: normal; font-size: 11.5px; line-height: 1.35; margin-top: -14px; --r: -2.5deg; }
  .mx-top__chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .mx-top__chip { height: 36px; padding: 0 16px; font-size: 15px; border: 2px solid var(--mx-ink); }
  .mx-top__tagline { padding: 12px 14px; white-space: normal; font-size: 19px; line-height: 1.2; place-items: start; --r: -1deg; }
  .mx-top__quote { padding: 14px 16px 12px; justify-self: end; margin-right: 6px; --r: -2deg; }
  .mx-top__quote p { font-size: 19px; }
  .mx-top__quote span { white-space: normal; display: inline; }
  .mx-top__quote figcaption { font-size: 11px; margin-top: 10px; }
}

/* The art was generated (founder, 2026-10-01); it says so on the picture. */
.mx-top__gen { position: absolute; z-index: 3; right: 1.25%; bottom: 1.4%; margin: 0; padding: 2px 6px; background: rgba(20, 16, 18, .72); color: #FFF4E0; font: 500 11px/1.3 "Space Grotesk", system-ui, sans-serif; letter-spacing: .02em; }
@media (max-width: 760px) { .mx-top__gen { position: static; display: block; text-align: right; } }
