/*
 * gen6-deck.css: the seller-plan / buyer-consult deck look for the public site (owner 2026-12-02: "that really nice
 * clean brand style" of the slideshows). One shared component sheet. Values come from the approved deck
 * (tools/listing_presentation/shell.py) scaled from its 1920 stage to the web, and from the tokens in gen6.css :root
 * (--g6-navy/sky/light/pale/white/wash/hair/text/mute/deep/on-deep). Spec:
 * substrate/projects/milner_team/website/HOMEPAGE_HERO_AND_DECK_LOOK_SPEC_20261202.md sections 4.1-4.4.
 *
 * Printed by inc/gen6-polish-1201.php on the core pages (after gen6-polish-1201.css), followed by the page layer
 * (css/gen6-deck-home.css, css/gen6-deck-buysell.css, css/gen6-deck-pages.css). Section 1 (primitives) is shared:
 * page layers never restyle a primitive, they only place it. Section 2 (hero + header over the hero) is the one
 * home-hero implementation (spec 5 item 14: every older hero layer is deleted, not overridden).
 *
 * Rules: tokens only (no new hex), no !important, no decorative gradients on grounds (only the photo scrim and the
 * timeline line), never gold, never beige, at most 3 dark grounds per page and never two identical grounds back to back.
 */

/* ---------- 1. Primitives (spec 4.2) ---------- */

/* Band: full-bleed section with a deck ground. Modifiers carry ground + padding so the older .g6-band users keep theirs. */
.gen6 :is(.g6-band--white,.g6-band--paper,.g6-band--wash,.g6-band--navy,.g6-band--photo) {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px);
}
.gen6 .g6-band--white { background: var(--g6-white); color: var(--g6-text); }
.gen6 .g6-band--paper { background: var(--g6-paper); color: var(--g6-text); }
.gen6 .g6-band--wash  { background: var(--g6-wash);  color: var(--g6-text); }
.gen6 .g6-band--navy  { background: var(--g6-navy);  color: var(--g6-white); }
.gen6 .g6-band--photo { background: var(--g6-deep);  color: var(--g6-white); isolation: isolate; overflow: hidden; }
.gen6 .g6-band--photo > .g6-band-media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.gen6 .g6-band--photo > .g6-band-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen6 .g6-band--photo > .g6-band-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,38,62,.92) 0%, rgba(6,38,62,.78) 44%, rgba(6,38,62,.25) 100%);
}
@media (max-width: 700px) {
  .gen6 .g6-band--photo > .g6-band-shade {
    background: linear-gradient(180deg, rgba(6,38,62,.55) 0%, rgba(6,38,62,.80) 45%, rgba(6,38,62,.92) 100%);
  }
}

/* Eyebrow: Manrope 800 uppercase. NAVY on light grounds, PALE on navy/photo/deep (SKY on white is 4.28:1, fails small text). */
.gen6 .g6-eyebrow {
  display: block; margin: 0 0 14px;
  font: 800 13px/1.3 var(--g6-ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--g6-navy);
}
@media (min-width: 701px) { .gen6 .g6-eyebrow { font-size: 14px; } }
.gen6 :is(.g6-band--navy,.g6-band--photo) .g6-eyebrow { color: var(--g6-pale); }

/* Band heading: Cormorant 700 NAVY, one upright accent phrase in SKY (LIGHT on dark). */
.gen6 :is(.g6-band--white,.g6-band--paper,.g6-band--wash,.g6-band--navy,.g6-band--photo) h2.g6-band-h2,
.gen6 .g6-band-h2 {
  margin: 0;
  font: 700 clamp(32px, 3.3vw, 50px)/1.05 var(--g6-display); letter-spacing: -.01em;
  color: var(--g6-navy); max-width: 18ch; text-wrap: balance;
}
/* The accent differs by colour only (its weight follows the H2). css/gen6-v4ns.css:378 skips .g6-band-h2 (2026-12-02). */
.gen6 .g6-band-h2 em { font-style: normal; font-weight: inherit; color: var(--g6-sky); }
/* Dark grounds: the same specificity as the light rule above (0,3,1), declared later, so it wins. The old
   `:is(navy,photo) .g6-band-h2` (0,3,0) lost to that rule's `h2.g6-band-h2` branch: NAVY on the deep photo, 1.8:1. */
.gen6 :is(.g6-band--navy,.g6-band--photo) :is(h2.g6-band-h2,.g6-band-h2) { color: var(--g6-white); }
.gen6 :is(.g6-band--navy,.g6-band--photo) .g6-band-h2 em { color: var(--g6-light); }
.gen6 .g6-band-h2--wide { max-width: 26ch; }

/* Lede: Manrope 500 muted, one or two sentences. */
.gen6 .g6-band-lede {
  margin: 18px 0 0; max-width: 58ch;
  font: 500 clamp(17px, 1.35vw, 20px)/1.5 var(--g6-ui); color: var(--g6-mute);
}
.gen6 :is(.g6-band--navy,.g6-band--photo) .g6-band-lede { color: var(--g6-on-deep); }

/* Numbered steps (deck .why): hairline rows with a NAVY counter badge. */
.gen6 ol.g6-why { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: g6why; }
.gen6 ol.g6-why > li {
  position: relative; margin: 0; padding: 16px 0 18px 52px;
  border-top: 1px solid var(--g6-hair); counter-increment: g6why;
}
.gen6 ol.g6-why > li:last-child { border-bottom: 1px solid var(--g6-hair); }
.gen6 ol.g6-why > li::before {
  content: counter(g6why); position: absolute; left: 0; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g6-navy); color: var(--g6-white); font: 800 15px/1 var(--g6-ui);
}
.gen6 ol.g6-why > li > b { display: block; font: 800 18px/1.3 var(--g6-ui); color: var(--g6-text); }
.gen6 ol.g6-why > li > span { display: block; margin-top: 4px; font: 500 16px/1.5 var(--g6-ui); color: var(--g6-mute); }
@media (max-width: 700px) { .gen6 ol.g6-why > li::before { width: 30px; height: 30px; } }
.gen6 :is(.g6-band--navy,.g6-band--photo) ol.g6-why > li { border-color: rgba(210,228,245,.28); }
.gen6 :is(.g6-band--navy,.g6-band--photo) ol.g6-why > li::before { background: var(--g6-white); color: var(--g6-navy); }
.gen6 :is(.g6-band--navy,.g6-band--photo) ol.g6-why > li > b { color: var(--g6-white); }
.gen6 :is(.g6-band--navy,.g6-band--photo) ol.g6-why > li > span { color: var(--g6-on-deep); }

/* Timeline (deck .path/.stop): one line, white circles with a SKY ring, current step filled NAVY. */
.gen6 .g6-stops > ol { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 20px; position: relative; }
.gen6 .g6-stops > ol::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: 18px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--g6-navy), var(--g6-light));
}
.gen6 .g6-stop { position: relative; margin: 0; padding-top: 56px; }
.gen6 .g6-stop::before {
  content: attr(data-n); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g6-white); border: 3px solid var(--g6-sky);
  color: var(--g6-navy); font: 800 16px/1 var(--g6-ui);
}
.gen6 .g6-stop.is-now::before { background: var(--g6-navy); border-color: var(--g6-navy); color: var(--g6-white); }
.gen6 .g6-stop > b { display: block; font: 800 17px/1.3 var(--g6-ui); color: var(--g6-text); }
.gen6 .g6-stop > span { display: block; margin-top: 6px; font: 500 16px/1.5 var(--g6-ui); color: var(--g6-mute); }
@media (max-width: 900px) {
  .gen6 .g6-stops > ol { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .gen6 .g6-stops > ol::before { left: 18px; right: auto; top: 20px; bottom: 20px; width: 4px; height: auto; background: linear-gradient(180deg, var(--g6-navy), var(--g6-light)); }
  .gen6 .g6-stop { padding: 0 0 24px 60px; min-height: 40px; }
}

/* Photo: radius 18, deck shadow, caption UNDER the photo (never on it). */
.gen6 figure.g6-photo { margin: 0; }
.gen6 figure.g6-photo > img,
.gen6 figure.g6-photo > picture > img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; /* height:auto so the img height attribute never beats the ratio */
  border-radius: var(--g6-radius); box-shadow: var(--g6-photo-shadow); background: var(--g6-wash);
}
.gen6 figure.g6-photo > figcaption { margin-top: 10px; font: 500 14px/1.4 var(--g6-ui); color: var(--g6-mute); }
.gen6 :is(.g6-band--navy,.g6-band--photo) figure.g6-photo > figcaption { color: var(--g6-on-deep); }

/* Buttons: pill, one filled button per band. Fill NAVY/white; on dark white/NAVY. Quiet action = .g6-text-link. */
.gen6 .g6-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1.2 var(--g6-ui); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--g6-motion), color var(--g6-motion), border-color var(--g6-motion);
}
@media (max-width: 700px) { .gen6 .g6-btn { min-height: 48px; } }
.gen6 .g6-btn--fill { background: var(--g6-navy); border-color: var(--g6-navy); color: var(--g6-white); }
.gen6 .g6-btn--fill:hover { background: var(--g6-deep); border-color: var(--g6-deep); color: var(--g6-white); }
.gen6 .g6-btn--fill-light { background: var(--g6-white); border-color: var(--g6-white); color: var(--g6-navy); }
.gen6 .g6-btn--fill-light:hover { background: var(--g6-pale); border-color: var(--g6-pale); color: var(--g6-navy); }
.gen6 .g6-btn--outline-light { background: transparent; border-color: rgba(255,255,255,.85); color: var(--g6-white); }
.gen6 .g6-btn--outline-light:hover { background: rgba(255,255,255,.12); color: var(--g6-white); }
.gen6 .g6-btn--outline { background: transparent; border-color: var(--g6-navy); color: var(--g6-navy); }
.gen6 .g6-btn--outline:hover { background: var(--g6-wash); color: var(--g6-navy); }
.gen6 .g6-btn:focus-visible { outline: 2px solid var(--g6-navy); outline-offset: 3px; }
.gen6 :is(.g6-band--navy,.g6-band--photo) .g6-btn:focus-visible { outline-color: var(--g6-light); }
.gen6 .g6-deck-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 700 16px/1.3 var(--g6-ui); color: var(--g6-navy);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.gen6 .g6-deck-link::after { content: "\2192"; text-decoration: none; display: inline-block; }
/* css/gen6-actions.css (MIR-505 tap targets) makes `.gen6 main a[href^="tel:"]` inline-block (0,2,2), which dropped the flex
   gap and jammed the arrow on the phone links ("9383→"). Display only, so the colour rules above keep their order. */
.gen6 main a.g6-deck-link[href] { display: inline-flex; }
.gen6 :is(.g6-band--navy,.g6-band--photo) .g6-deck-link { color: var(--g6-white); }
.gen6 .g6-deck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* Big number (deck .stats dt). */
.gen6 .g6-big { font: 700 clamp(40px, 4.4vw, 64px)/1 var(--g6-display); color: var(--g6-navy); font-variant-numeric: tabular-nums lining-nums; }
.gen6 :is(.g6-band--navy,.g6-band--photo) .g6-big { color: var(--g6-white); }

/* Two-column band grid (deck .wrap.two): copy + visual, mirrored with --flip. Phone stacks. */
.gen6 .g6-deck-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.gen6 .g6-deck-grid--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .gen6 .g6-deck-grid { grid-template-columns: 1fr; gap: 28px; }
  .gen6 .g6-deck-grid--flip > :first-child { order: 0; }
}

/* Hairline card (when a card is really one thing with one action): white, 1px hair border, no heavy shadow. */
.gen6 .g6-deck-card { background: var(--g6-white); border: 1px solid var(--g6-hair); border-radius: var(--g6-radius); padding: 24px; }

/* ---------- 2. Home hero + header over the hero (spec 1.4-1.7): owned by the hero build, appended below. ---------- */
/* One full-bleed owned aerial behind the whole first screen, the deck scrim (rgba(6,38,62) = --g6-deep), copy bottom-left.
   Markup: template-parts/gen6-home-opening.php. Height, the pull under the sticky header and the clip are reserved in
   css/gen6-perf-reserve.css (printed first in <head>, so nothing shifts while sheets load); everything else is here.
   The copy column lines up with the header logo (.g6-wrap is 1320px). */
.home.gen6 .g6-hero { isolation: isolate; background: var(--g6-deep); color: var(--g6-white); }
.home.gen6 .g6-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; margin: 0; }
.home.gen6 .g6-hero-poster { position: absolute; inset: 0; display: block; margin: 0; }
.home.gen6 .g6-hero-poster img,
.home.gen6 .g6-hero-video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 60% 50%;
}
.home.gen6 .g6-hero-poster img { transform-origin: 60% 50%; }
.home.gen6 .g6-hero-video { opacity: 0; transition: opacity 600ms ease-out; }
.home.gen6 .g6-hero-video.is-playing { opacity: 1; }
/* Settle once like the deck cover (shell.py .cover): 1.04 to 1 over 4.5 s, never loops, off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .home.gen6 .g6-hero-poster img { animation: g6-hero-settle 4.5s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes g6-hero-settle { from { transform: scale(1.04); } to { transform: scale(1); } }
/* The "little gradient" (spec 1.4): nav floor on top, CTA floor at the bottom, the deck-cover copy side on the left.
   2026-12-02 F4 (taste review T1 P1 8: the left half read as a flat navy panel): the copy-side layer is lighter, from
   .90/.78/.30/0 at 0/44/64/84% to .86/.70/.22/0 at 0/40/62/80%. The review's .80/.60/.15/0 was measured on real Mac mini
   captures first and dropped the LIGHT accent to 2.81:1 at 1440 and 2.80:1 at 1512 (hard floor 3.0), so it stops here:
   accent 3.67:1, H1 7.28:1, lede 7.82:1 at 1512 (99th-percentile pixel; table in work/REPORT_F4_HOME_FIX.md). */
.home.gen6 .g6-hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,38,62,.66) 0%, rgba(6,38,62,.40) 10%, rgba(6,38,62,0) 22%),
    linear-gradient(0deg, rgba(6,38,62,.55) 0%, rgba(6,38,62,0) 45%),
    linear-gradient(90deg, rgba(6,38,62,.86) 0%, rgba(6,38,62,.70) 40%, rgba(6,38,62,.22) 62%, rgba(6,38,62,0) 80%);
}
.home.gen6 .g6-hero-copy {
  position: absolute; z-index: 2; margin: 0; padding: 0;
  left: max(40px, calc((100% - 1320px) / 2)); bottom: 88px; width: min(600px, 46vw);
}
.home.gen6 .g6-hero-kicker {
  margin: 0 0 18px; font: 800 14px/1.3 var(--g6-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--g6-pale);
}
.home.gen6 .g6-hero h1 {
  margin: 0; max-width: none; font: 700 clamp(34px, 3.9vw, 58px)/1.02 var(--g6-display); letter-spacing: -.01em;
  color: var(--g6-white); text-wrap: balance; text-shadow: none;
}
.home.gen6 .g6-hero h1 em { font-style: normal; font-weight: 700; color: var(--g6-light); }
.home.gen6 .g6-hero-sub { margin: 18px 0 0; max-width: 34em; font: 600 19px/1.45 var(--g6-ui); color: var(--g6-white); }
.home.gen6 .g6-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.home.gen6 .g6-hero-ctas .g6-btn { min-height: 52px; padding: 0 28px; }
.home.gen6 .g6-hero-call { margin: 14px 0 0; font: 600 16px/1.4 var(--g6-ui); color: var(--g6-on-deep); }
.home.gen6 .g6-hero-call a {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; font-weight: 700; color: var(--g6-white);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.home.gen6 .g6-hero .g6-down {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--g6-white);
}
.home.gen6 .g6-hero-pause {
  position: absolute; z-index: 2; right: max(40px, calc((100% - 1320px) / 2)); bottom: 88px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(6,38,62,.55); border: 1px solid rgba(255,255,255,.6); color: var(--g6-white);
}
.home.gen6 .g6-hero-pause[hidden] { display: none; }
.home.gen6 .g6-hero-pause .g6-i-play,
.home.gen6 .g6-hero-pause[aria-pressed="true"] .g6-i-pause { display: none; }
.home.gen6 .g6-hero-pause[aria-pressed="true"] .g6-i-play { display: inline; }
.home.gen6 .g6-hero :is(a, button):focus-visible { outline: 2px solid var(--g6-light); outline-offset: 3px; }
/* Short desktop screens: the accent drops from LIGHT to PALE (LIGHT measured 2.96:1 at 1280x720). */
@media (min-width: 1101px) and (max-height: 760px) {
  .home.gen6 .g6-hero h1 em { color: var(--g6-pale); }
}
/* Tablet and phone: the copy stacks at the bottom over one vertical scrim. */
@media (max-width: 1100px) {
  .home.gen6 .g6-hero-shade {
    background: linear-gradient(180deg, rgba(6,38,62,.68) 0%, rgba(6,38,62,.40) 8%, rgba(6,38,62,0) 16%,
      rgba(6,38,62,0) 38%, rgba(6,38,62,.62) 50%, rgba(6,38,62,.86) 62%, rgba(6,38,62,.92) 100%);
  }
  .home.gen6 .g6-hero-copy { left: 40px; right: 40px; bottom: 40px; width: auto; max-width: 600px; }
  .home.gen6 .g6-hero h1 { font-size: clamp(32px, 5.2vw, 46px); line-height: 1.04; }
  .home.gen6 .g6-hero-sub { font-size: 17px; }
  .home.gen6 .g6-hero .g6-down { left: auto; right: 40px; bottom: 40px; transform: none; }
  .home.gen6 .g6-hero-pause { right: 40px; bottom: 96px; }
}
@media (max-width: 700px) {
  .home.gen6 .g6-hero-poster img,
  .home.gen6 .g6-hero-video { object-position: 45% 50%; }
  .home.gen6 .g6-hero-poster img { transform-origin: 45% 50%; }
  .home.gen6 .g6-hero-copy { left: 20px; right: 20px; bottom: 20px; }
  .home.gen6 .g6-hero-kicker { margin-bottom: 12px; font-size: 13px; }
  .home.gen6 .g6-hero h1 { font-size: 32px; }
  .home.gen6 .g6-hero-sub { margin-top: 14px; font-size: 17px; }
  .home.gen6 .g6-hero-ctas { flex-wrap: nowrap; gap: 10px; margin-top: 20px; }
  .home.gen6 .g6-hero-ctas .g6-btn { flex: 1 1 calc(50% - 5px); min-width: 0; min-height: 48px; padding: 0 12px; }
  .home.gen6 .g6-hero-call { margin-top: 8px; padding-right: 56px; }
  .home.gen6 .g6-hero .g6-down { right: 20px; bottom: 20px; }
  .home.gen6 .g6-hero-pause { right: 20px; bottom: 84px; }
}

/* Header over the hero (spec 1.6). header.php prints data-over-video="true" on the front page only; js/gen6-chrome.js
   adds .is-scrolled past 80px. At rest: no ground (the scrim's top layer carries the nav), white type, white logo, the
   header "Book a call" as a white outline so the first screen has one filled button. Scrolled: the site header (gen6.css).
   The header pill's fill comes from the --g6-action-* tokens (css/gen6-actions.css paints them with !important), so the
   rest state changes the tokens, never the paint. */
.gen6 .g6-header[data-over-video="true"] { transition: background-color var(--g6-motion), border-color var(--g6-motion), transform .32s cubic-bezier(.22,1,.36,1); }
.gen6 .g6-header[data-over-video="true"]:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; box-shadow: none; }
.gen6 .g6-header[data-over-video="true"]:not(.is-scrolled) :is(.g6-primary > a, .g6-areas > summary, .g6-phone, .g6-mobile-fallback > summary, .g6-brand-text) {
  color: var(--g6-white); font-size: 15px; text-shadow: none;
}
.gen6 .g6-header[data-over-video="true"]:not(.is-scrolled) .g6-primary > a:hover { color: var(--g6-pale); }
.gen6 .g6-header[data-over-video="true"]:not(.is-scrolled) .g6-brand img { filter: brightness(0) invert(1); }
.gen6 .g6-header[data-over-video="true"]:not(.is-scrolled) .g6-book {
  --g6-action-bg: transparent; --g6-action-hover: rgba(255,255,255,.14); --g6-action-text: var(--g6-white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85);
}
.gen6 .g6-header[data-over-video="true"]:not(.is-scrolled) .g6-menu-trigger { background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; color: var(--g6-white); }
.gen6 .g6-header[data-over-video="true"]:not(.is-scrolled) :is(a, button, summary):focus-visible { outline: 2px solid var(--g6-light); outline-offset: 3px; }
.gen6 .g6-header[data-over-video="true"] .g6-area-panel { color: var(--g6-text); }
@media (prefers-reduced-motion: reduce) { .gen6 .g6-header[data-over-video="true"] { transition: none; } }
