/* ==========================================================================
   QUIET LUXURY — the hero, rebuilt (2026-09-30). Load after x-quiet-luxury.css.

   One photograph across the whole room, the text set on the lit travertine
   wall to the right: label, name, line, definition. Nothing on a panel,
   nothing boxed; the wall is the ground. The facts row moves beneath the
   photograph onto the room's own ground, where it can breathe.

   Faces and colours are the room's own (Newsreader, Hanken Grotesk, --ql-*).
   The text sits in normal flow, so opening "Why we say this" lets the hero
   grow instead of clipping it; positions are in --u, 1/1688 of the hero.
   Art direction, not canon (see the header of x-quiet-luxury.css).
   ========================================================================== */

.qlh { --u: calc(100cqi / 1688); background: var(--ql-ground); }

.qlh__stage {
  position: relative;
  display: grid;
  aspect-ratio: 1688 / 932;           /* a minimum: the stage grows if the text needs it */
  background: #CDBFA8;
}
.qlh__fig { position: absolute; inset: 0; margin: 0; }
.qlh__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.qlh__cap {
  position: absolute; right: calc(40 * var(--u)); bottom: calc(22 * var(--u));
  display: flex; gap: 16px;
  /* Two short lines at the right edge, on the travertine (audit 2026-10-01:
     the AI line made it 451px and its first words sat on the dark coat). */
  max-width: max(calc(300 * var(--u)), 15rem); text-align: right;
}
.qlh__cap .ql-ev { color: var(--ql-ink2); }

/* ---- the text, on the wall ---------------------------------------------- */
.qlh__text {
  position: relative; z-index: 1;
  align-self: start;
  width: calc(540 * var(--u)); min-width: 340px;
  margin: calc(166 * var(--u)) 0 calc(96 * var(--u)) calc(1107 * var(--u));
  display: flex; flex-direction: column;
}
.qlh__kick { font-size: max(calc(15 * var(--u)), 13px); letter-spacing: .06em; color: var(--ql-ink); }
.qlh .qlh__h1 {
  margin-top: calc(84 * var(--u)) !important;
  font-size: max(calc(88 * var(--u)), 46px); line-height: 1;
  letter-spacing: -0.015em; color: var(--ql-ink);
}
.qlh__tag {
  margin-top: calc(34 * var(--u)) !important;
  font: italic 400 max(calc(33.8 * var(--u)), 20px)/1.25 var(--ql-f-nr);
  color: var(--ql-ink);
}
.qlh .qlh__def {
  margin-top: calc(38 * var(--u)) !important;
  max-width: calc(426 * var(--u)); min-width: 300px;
  font-size: max(calc(17.5 * var(--u)), 15px); line-height: 1.7;
  color: var(--ql-ink2);
}
/* The marker sits on the wall, so it takes the darker mute for contrast. */
.qlh .qlh__def .ql-mk { color: var(--ql-ink2) !important; }
.qlh__text > .ql-why { margin-block: 16px 0; max-width: 520px; }

/* ---- the facts, beneath the photograph ---------------------------------- */
.qlh__foot { padding: 28px var(--gut, 64px) 0; }
.qlh .qlh__meta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 32px; padding-top: 14px;
}
.qlh .qlh__meta .ql-hero__ev { grid-column: auto; }

/* ============================================================== TABLET */
@container room (max-width: 999px) {
  .qlh__foot { padding-inline: 32px; }
  .qlh .qlh__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qlh .qlh__meta .ql-hero__ev { grid-column: span 2; }
  /* The column stays on the wall: it starts where the lit plaster does. */
  .qlh__text { width: auto; min-width: 0; margin: 64px 32px 48px 55%; }
  .qlh .qlh__h1 { margin-top: 28px !important; }
  .qlh__tag { margin-top: 16px !important; }
  .qlh .qlh__def { margin-top: 18px !important; max-width: none; min-width: 0; }
}

/* =============================================================== PHONE */
/* The photograph on top, cropped to the sitter; the text beneath on the ground. */
@container room (max-width: 639px) {
  .qlh__stage { display: block; aspect-ratio: auto; background: none; }
  .qlh__fig { position: relative; inset: auto; }
  .qlh__photo { height: auto; aspect-ratio: 4 / 5; object-position: 24% 50%; }
  .qlh__cap { position: static; padding: 10px 16px 0; }
  .qlh__cap .ql-ev { color: var(--ql-mute); }
  .qlh__text { margin: 36px 16px 0; }
  .qlh .qlh__h1 { margin-top: 18px !important; font-size: 46px; }
  .qlh__tag { margin-top: 12px !important; font-size: 21px; }
  .qlh .qlh__def { margin-top: 16px !important; font-size: 16px; }
  .qlh__foot { padding: 28px 16px 0; }
  .qlh .qlh__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .qlh .qlh__meta .ql-hero__ev { grid-column: 1 / -1; }
}

/* ---- the mock nav (founder, 2026-09-30: every redesigned hero reads as a home
        page). Along the top-left of the photograph, clear of the action cluster;
        the links are this page's own chapters. ---------------------------------- */
.qlh__nav {
  position: absolute; z-index: 2; top: calc(40 * var(--u)); left: calc(56 * var(--u));
  display: flex; align-items: center; gap: max(calc(34 * var(--u)), 16px);
  font: 500 max(calc(14 * var(--u)), 12px)/1 var(--ql-f-hk); letter-spacing: .02em;
}
.qlh__nav a { color: var(--ql-ink); text-decoration: none; }
.qlh__nav a:hover, .qlh__nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.qlh__logo { margin-right: max(calc(14 * var(--u)), 6px); }
.qlh__logo img { display: block; height: max(calc(15 * var(--u)), 11px); width: auto; }
@container room (max-width: 639px) { .qlh__nav { top: 16px; left: 16px; gap: 14px; } }
/* The top-left of the photograph is the pillar's shadow: the nav is set light on it. */
.qlh__nav a { color: #F3EEE4; }
@container room (max-width: 639px) { .qlh__nav a { color: #F3EEE4; } }

/* Tap area (audit 2026-10-01): the links were 11–16px tall. Padding grows
   the hit area, the matching negative margin keeps the line where it was. */
.qlh__nav a { padding-block: 10px; margin-block: -10px; }

/* Focus on the photograph's dark top: a light ring (audit 2026-10-01: the
   ink outline measured 1.07:1 there). */
.qlh__nav a:focus-visible { outline: 2px solid #F3EEE4; outline-offset: 3px; }

/* The text column over the leaf shadow (audit 2026-10-01: the definition fell
   to 1.3:1 where the shadow crosses it). A halo in the travertine's own colour
   lifts it off the shadow without a visible plate. */
.qlh__text, .qlh__cap { text-shadow: 0 0 .5em rgba(226, 216, 198, .9), 0 0 .18em rgba(226, 216, 198, .95); }

/* NAV ON TOP (founder, 2026-10-01): on desktop the hero rises behind the empty top bar, as
   the other Aesthetic heroes do, so its own nav runs along the top of the page and the
   action bar sits under it. */
@media (min-width: 60.0625rem) {
  .ql-page .qlh { margin-top: -48px; }
  /* The empty top bar stays above the hero (it holds the action bar) but no longer paints
     over it or takes the nav's clicks. */
  .ql-page main .topbar { background: none; pointer-events: none; }
  .ql-page main .topbar > * { pointer-events: auto; }
}

/* Desktop with a narrower room: the action bar sits under the nav, so the text column
   starts below it (founder, 2026-10-01). */
@media (min-width: 60.0625rem) { @container room (max-width: 999px) { .qlh__text { margin-top: 104px; } } }
