/* ==========================================================================
   MID-CENTURY MODERN — the hero, rebuilt from the founder's artifact
   (2026-09-30). Loaded after x-mid-century-modern.css on
   a/mid-century-modern.html only. Scope: .mch.

   A sunlit room bled across the hero, and the name set on the open plaster
   to its right, where the painted shapes leave a void: the script word, the
   name, the definition, one flat action, and the facts on hairlines. The
   void does the ranking, as the record says it should.

   Faces, palette and focus ring are the page's (Josefin MC, Yellowtail MC,
   the --mc-* inks). The action is one flat organic shape: no gradient, no
   shadow, uneven radii. Positions are in --u, 1/1688 of the hero (the
   photograph's own width); the text is in normal flow, so the hero grows if
   it needs to.
   ========================================================================== */

.mc-hero.mch {
  --mch-top: calc(3rem + var(--s2, 0.5rem));   /* the empty top bar the hero rises behind */
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: none;
  align-content: start;
  gap: 0;
  min-height: auto;                     /* not the room's 88vh: auto keeps the ratio a minimum */
  aspect-ratio: 1688 / 932;             /* a minimum: the text can grow it */
  padding: 0;
  background: #EFDFC8;
  /* 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) {
  .mc-hero.mch { 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 children, where 100cqi is the hero's width. */
.mch > * { --u: calc(100cqi / 1688); }

.mch__fig { position: absolute; inset: 0; margin: 0; }
.mch__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.mch__cap {
  position: absolute; left: calc(40 * var(--u)); bottom: calc(18 * var(--u));
  max-width: min(58ch, calc(760 * var(--u)));
  padding: 6px 10px;
  background: rgba(243, 234, 215, 0.86);
  font: 400 13px/1.4 var(--mc-sans); color: var(--mc-ink);
}
.mch__cap b { font-weight: 700; }

/* ---- the mock nav: the Aesthetic's own site bar along the top, Mix it at
        its right end; the site's action bar sits under it. Its links are
        this page's own sections. ---------------------------------------- */
.mch__nav {
  position: absolute; z-index: 2; left: 0; right: 0;
  /* Along the very top; the action bar sits under it (founder, 2026-10-01). */
  top: calc(14 * var(--u));
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px calc(48 * var(--u));
  padding: 0 calc(60 * var(--u));
  font: 400 max(calc(17 * var(--u)), 15px)/1 var(--mc-sans); color: var(--mc-ink);
}
.mch__nav a { color: var(--mc-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.mch__logo img { display: block; width: max(calc(196 * var(--u)), 132px); height: auto; }
.mch__links { display: flex; flex-wrap: wrap; gap: 0 max(calc(44 * var(--u)), 20px); }
.mch__links a:hover { text-decoration: underline; text-decoration-color: var(--mc-rust); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mch__nav .mch__start {
  margin-left: auto;   /* the top right corner of the bar (founder, 2026-10-01) */
  min-height: 44px; padding: 0 24px;
  border: 1.5px solid var(--mc-ink);
  border-radius: 20px 10px 18px 12px / 14px 12px 18px 14px;   /* the same uneven cut as the hero's action */
}
.mch__nav .mch__start:hover { background: var(--mc-ink); color: var(--mc-paper); }

/* ---- the text, in the void on the right ------------------------------- */
.mc-hero .mch__t {
  grid-column: 1; grid-row: 1;
  position: relative; z-index: 1;
  max-width: none; width: calc(640 * var(--u)); min-width: 380px;
  margin: calc(var(--mch-top) + 150 * var(--u)) 0 calc(90 * var(--u)) calc(1012 * var(--u));
}
.mc-hero .mch__h1 {
  font: 700 max(calc(96 * var(--u)), 46px)/0.94 var(--mc-sans);
  letter-spacing: -0.01em;
}
.mc-hero .mch__scr {
  font-size: max(calc(66 * var(--u)), 32px);
  color: var(--mc-rust-d);
  margin: 0 0 calc(10 * var(--u)) calc(-2 * var(--u));
}
.mc-hero .mch__tag {
  margin: calc(28 * var(--u)) 0 0; max-width: 34ch;
  font: 400 max(calc(25 * var(--u)), 18px)/1.38 var(--mc-sans);
}
.mch__cta { margin: calc(32 * var(--u)) 0 0; }
.mch__cta a {
  display: inline-flex; align-items: center; gap: 18px;
  min-height: 56px; padding: 0 36px;
  background: var(--mc-ink); color: var(--mc-paper);
  font: 400 max(calc(18 * var(--u)), 16px)/1 var(--mc-sans); letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 26px 12px 22px 14px / 18px 14px 22px 16px;   /* organic, uneven: never a pill, never a box */
}
.mch__cta a:hover { background: var(--mc-teal-d); }
.mch__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.mch__facts {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); justify-content: start;
  margin: calc(72 * var(--u)) 0 0;
}
.mch__facts div { padding: 2px calc(34 * var(--u)); border-left: 1.5px solid var(--mc-ink); }
.mch__facts dt { font: 700 11px/1.4 var(--mc-sans); letter-spacing: 0.26em; text-transform: uppercase; color: #1D5652; }   /* deeper teal at 11px: 3.8:1 at p10 before (audit 2026-10-01) */
.mch__facts dd { margin: 8px 0 0; max-width: 16ch; font: 400 16px/1.4 var(--mc-sans); }
.mch__facts div:last-child dd { max-width: 24ch; }

/* ---- a narrower room ---------------------------------------------------- */
/* Below the photograph's own width the text grows the hero past its ratio,
   so the cover crop moves the chair toward the text: slide the room left to
   keep the ottoman clear of the facts, and give the facts equal thirds so
   they stay inside the column. */
@container (max-width: 1400px) {
  .mch__photo { object-position: 45% 50%; }
  .mch__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mch__facts div { padding-inline: 14px; }
  .mch__facts dd, .mch__facts div:last-child dd { max-width: none; }
}

/* ---- narrower windows -------------------------------------------------- */
/* Below 1180px the void on the right is too narrow for the name without
   the text crossing the furniture: the room goes above at its own ratio,
   under the nav, and the name sits beneath it on the page's paper. */
@media (max-width: 1180px) {
  .mc-hero.mch { display: block; aspect-ratio: auto; background: none; }
  .mch__nav { position: static; padding: 18px 28px calc(var(--mch-top) - 2px); gap: 8px 28px; }
  .mch__fig { position: relative; inset: auto; }
  .mch__photo { height: auto; aspect-ratio: 1688 / 932; object-position: 30% 50%; }
  .mch__cap { position: static; max-width: 72ch; padding: 10px 28px 0; background: none; }
  .mc-hero .mch__t { width: auto; min-width: 0; max-width: 760px; margin: 48px 28px 64px; }
  .mch__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
  .mch__facts div { padding-inline: 14px; }
  .mch__facts dd, .mch__facts div:last-child dd { max-width: none; }
}

/* The rail becomes a bar above the page and the cluster rides over it, so
   the nav only has to clear the cluster's last few pixels. */
@media (max-width: 60rem) {
  .mch__nav { padding-top: 20px; }
}

/* Phone: one column throughout, the room cropped to 4:3. */
@media (max-width: 52rem) {
  .mch__nav { padding: 20px 16px 8px; gap: 0 16px; }
  .mch__logo { flex-basis: 100%; }
  .mch__logo img { width: 132px; }
  .mch__links { gap: 0 16px; }
  .mch__nav .mch__start { padding: 0 16px; }
  .mch__photo { aspect-ratio: 4 / 3; object-position: 18% 60%; }
  .mch__cap { padding: 10px 16px 0; }
  .mc-hero .mch__t { margin: 36px 16px 56px; }
  .mch__facts { grid-template-columns: 1fr; gap: 14px; }
  .mch__facts div { border-left: 0; padding: 12px 0 0; border-top: 1.5px solid var(--mc-ink); }
}
/* Phone: the action cluster sits at the foot of the screen, so the nav
   can take the top bar's row. */
@media (max-width: 48rem) {
  .mch__nav { padding-top: 12px; }
}
