/* css/page-home.css: Home (DESIGN-SPEC 3.1). Loaded after css/site.css and css/v2.css; the shell is not restyled here. */

/* ---------- the stage poster: the live hero's three paintings on desktop, one flattened picture on phones ---------- */
.page-home .stage-poster {
  background-image: url("../assets/img/wc-fore-craftsman.jpg"), url("../assets/img/wc-water-ferry.jpg"), url("../assets/img/wc-sky-rainier.jpg");
  background-blend-mode: multiply, multiply, normal;
  background-position: 72% 100%, 40% 100%, 62% 0;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 760px) {
  .page-home .stage-poster { background: var(--paper) url("../assets/stills/home-poster.jpg") 50% 60% / cover no-repeat; }
}

/* the stage chip: one caption for ink and paint at every beat */
.chip.design i { background: linear-gradient(90deg, var(--paper) 50%, #d8cab4 50%); border: 1.5px solid #2c2b2e; }

/* ---------- hero card ---------- */
.page-home .beat-hero .lede-2 { font-size: 16px; color: var(--char); max-width: 36em; }
.hero-prices { margin-top: 18px; }
.hp-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.hp-list a {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 56px; height: 100%; padding: 8px 8px 7px;
  border: 1px solid var(--v2-line); border-top: 4px solid var(--c, var(--teal)); border-radius: 10px; background: var(--v2-card);
  color: var(--ink); text-decoration: none;
}
.hp-list li:nth-child(1) a { --c: #7fb3b9; } .hp-list li:nth-child(2) a { --c: #037887; }
.hp-list li:nth-child(3) a { --c: #D4A853; } .hp-list li:nth-child(4) a { --c: #FF8A3D; }
.hp-list a:hover { border-color: var(--teal); }
.hp-list b { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.hp-list span { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--char); }
.hero-prices .price-line { font-size: 13px; margin-top: 8px; }

@media (max-width: 760px) {
  .page-home .story .beat-hero { padding-top: 12px; }
  .page-home .story .beat-hero .eyebrow { margin-bottom: 4px; }
  .page-home .story .beat-hero h1 { font-size: 27px; line-height: 1.12; margin-bottom: 6px; }
  .page-home .story .beat-hero .lede-1 { font-size: 16px; margin: 0; }
  .page-home .story .beat-hero .btn-row { margin-top: 12px; }
  .page-home .beat-hero .hero-proof { margin-top: 10px; font-size: 13px; gap: 4px 8px; }
  .page-home .beat-hero .hero-proof .stars { display: none; }
  .page-home .beat-hero .lede-2 { font-size: 15px; line-height: 1.45; margin: 10px 0 0; }
  .page-home .beat-cue { margin-top: 12px; }
  .hp-list { gap: 5px; }
  .hp-list a { padding: 7px 6px 6px; }
  .hp-list b { font-size: 13px; }
  .d-only { display: none !important; }
}
@media (max-width: 359px) { .hp-list b { white-space: normal; } }
@media (min-width: 761px) {
  /* desktop: the lede's second sentence follows the first; then buttons, proof, prices, cue */
  .page-home .beat-hero > .eyebrow { order: 1; } .page-home .beat-hero > h1 { order: 2; }
  .page-home .beat-hero > .lede-1 { order: 3; margin-bottom: 4px; } .page-home .beat-hero > .lede-2 { order: 4; font-size: clamp(17px, 1.4vw, 19px); }
  .page-home .beat-hero > .btn-row { order: 5; } .page-home .beat-hero > .hero-proof { order: 6; }
  .page-home .beat-hero > .hero-prices { order: 7; } .page-home .beat-hero > .beat-cue { order: 8; }
  .page-home .story .beat-hero h1 { font-size: clamp(38px, 3.9vw, 54px); }
  /* the hero text sits on paper, never on the painting (DESIGN-SPEC 2.2: no text on paint) */
  .page-home .story .beat-hero > * { position: relative; }
  .page-home .story .beat-hero::before {
    content: ""; position: absolute; left: -28px; right: -14px; top: 50%; height: min(92%, 800px); transform: translateY(-50%);
    background: rgba(255, 253, 250, .9); border-radius: 22px; box-shadow: 0 0 18px 8px rgba(255, 253, 250, .5); pointer-events: none;
  }
  .page-home .story .beat-hero { position: relative; }
  .hp-list b { font-size: 15px; }
  .m-only-link { display: none !important; }
}

/* round 3 matrix, a phone on its side (844x390): the buttons come right after the first lede, so the H1 and Start
   Your Project share the first screen; the proof line waits for the next one */
@media (min-width: 761px) and (max-height: 500px) {
  .page-home .beat-hero > .btn-row { order: 3; margin-top: 10px; }
  .page-home .beat-hero > .lede-1 { order: 2; margin: 0; }
  .page-home .beat-hero > h1 { order: 1; }
  .page-home .beat-hero > .eyebrow { order: 0; }
  .page-home .story .beat-hero h1 { font-size: 26px; margin-bottom: 6px; }
  .page-home .story .beat-hero::before { height: 100%; }
  /* L8: the stage chip goes to the painting side, clear of the hero text */
  .page-home .story .stage-ui .chip.design { left: auto; right: 40px; bottom: 12px; }
}
/* round 3 matrix, desktop: about 40 px less paper between the sections; the badge keeps its short form on Home,
   where it sits at the bottom right over the content */
@media (min-width: 761px) and (min-height: 501px) {
  .page-home .section { padding: clamp(56px, 6vw, 88px) 0; }
  .page-home .section.tight { padding: clamp(40px, 5vw, 64px) 0; }
  .page-home .proto-badge span.long { display: none; }
}

/* ---------- story cards ---------- */
.beat-count { white-space: nowrap; }
.step-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 13px/1.3 var(--font); color: var(--ink); }
.step-tag i { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1.5px solid #2c2b2e; }
.step-tag .dot-gold { background: #D4A853; }
.step-tag .dot-orange { background: #ee8b45; }
.reveal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; }
/* L9: what the reveal card shows is a caption, not a pill (no switch on Home); the swatch is the pony wall's colour */
.reveal-shown { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--font); color: var(--muted); cursor: default; }
.reveal-shown i { flex: none; width: 12px; height: 12px; border-radius: 3px; background: #b9a083; border: 1.5px solid #2c2b2e; }
.beat-card .btn-row { margin-top: 10px; }
@media (max-width: 760px) {
  .page-home .beat-card p { font-size: 15px; line-height: 1.45; }
  .page-home .beat-card .step-tag, .page-home .reveal-row { margin-top: 6px; }
}

/* ---------- sections below the story ---------- */
.price-fine { margin: 18px auto 4px; }
.svc-cards .svc {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--v2-line);
  color: var(--char); text-decoration: none; transition: border-color .2s, transform .2s;
}
.svc-cards .svc:hover { border-color: var(--teal); transform: translateY(-2px); }
.svc .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); } /* TODO(WAIT M24): a different placeholder colour while the photo loads is not decided */
.svc .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc .body { padding: 14px 16px 16px; }
.svc .num { font: 700 12px/1 var(--font); letter-spacing: .12em; color: var(--teal); }
.svc h3 { font-size: 19px; margin: 6px 0 4px; color: var(--ink); }
.svc p { font-size: 15px; margin: 0 0 8px; }
.svc .go { font: 700 14px/1.3 var(--font); color: var(--teal-dark); }
.quotes { gap: 18px; }
.read-all { display: inline-block; color: #e9f0ef; }

@media (max-width: 760px) {
  .page-home .section { padding: 32px 0; }
  .page-home .section.tight { padding: 16px 0; }
  .page-home .section h2 { margin-bottom: 8px; }
  .page-home .section .lede { font-size: 16px; line-height: 1.45; margin-bottom: 0; }
  .page-home #pricing .stairs { margin-top: 14px; }
  .page-home #pricing .stairs-inner { gap: 8px; }
  .page-home #pricing .stair { padding: 12px 12px 10px; min-height: 72px; }
  .page-home #pricing .stair .amt { font-size: 19px; }
  .page-home #pricing .stair .what { font-size: 13px; line-height: 1.3; margin-top: 4px; }
  .page-home .price-fine { margin: 12px auto 0; font-size: 13px; }
  .page-home .cta-band { padding: 26px 20px; gap: 14px; }
  .page-home .cta-band .contact-mini { font-size: 14px; line-height: 1.6; }
  .page-home .reviews-band .quote { padding: 18px; }
  .page-home .reviews-band .read-all { margin-top: 12px; font-size: 14px; }
  .page-home .ba-hint { margin-top: 6px; }
  /* footer: the shared phone layout (css/v2.css: one list per row, links in two columns); only the padding is Home's */
  .page-home .site-footer { padding: 36px 0 24px; }
  /* What we do: four rows, a 64 px photo beside the name and line */
  .svc-cards { gap: 10px; margin-top: 18px; }
  .svc-cards .svc { flex-direction: row; align-items: center; border-radius: 14px; min-height: 64px; }
  .svc .media { flex: none; width: 64px; height: 64px; aspect-ratio: auto; }
  .svc .body { padding: 8px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
  .svc .num { grid-row: 1; }
  .svc h3 { font-size: 16px; margin: 0; grid-row: 1; grid-column: 2; }
  .svc p { font-size: 14px; margin: 2px 0 0; grid-column: 1 / -1; line-height: 1.35; }
  .svc .go { display: none; }
  .ba-section .split { gap: 14px; }
  .m-only-link { margin-top: 6px; }
  .page-home .proof-band { padding: 18px 0; }
  .page-home .proof-band .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .page-home .proof-band .big { font-size: 26px; }
  .page-home .proof-band .lbl { font-size: 12px; line-height: 1.25; margin-top: 4px; }
}

/* ---------- fix round (review-home.md 1 and 5): desktop chip and badge ---------- */
@media (min-width: 761px) and (min-height: 501px) {
  /* the active card's top is pinned to the 55% line by DR.story (it reads the card's own rect), so the tall last
     card always runs to the bottom-left corner: on Home the prototype badge moves to the bottom-right instead */
  .page-home .proto-badge { left: auto; right: 14px; }
  /* the chip sits above the veil (both z 3; the veil came later in paint order and faded it) and at the top
     right of the stage, clear of the badge and of the card column */
  .page-home .story .stage-ui { z-index: 4; }
  .page-home .story .stage-ui .chip.design { left: auto; right: 28px; bottom: auto; top: 22px; }
  /* no WebGL: the phone-pose stills keep their left side (the shower and the pony wall), which a centred crop
     pushed under the cards */
  .page-home .story .stage > .stage-still { object-position: 0% 60%; }
}

/* ---------- UX round 2 and 3 ---------- */
/* one home for prices (DESIGN-R3 4): [hidden] wins over the components' own display */
.page-home [data-prices-extra][hidden], .page-home [data-prices-button][hidden] { display: none !important; }
.page-home #pricing .center-row { justify-content: center; margin-top: 18px; }
.page-home #pricing .center-row + .arrow-link { display: inline-block; margin-top: 12px; }
/* the stage chip is a link to Design: a 44 px target that looks like one */
.page-home .stage-ui a.chip.design { min-height: 44px; text-decoration: none; color: var(--ink); }
.page-home .stage-ui a.chip.design::after { content: "→"; margin-left: 2px; color: var(--teal-dark); font-weight: 700; }
.page-home .stage-ui a.chip.design:hover { border-color: var(--teal); }
/* the photo pair: the pressed button is marked */
.page-home .ba-label[aria-pressed="true"] { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
/* H4, when the prices are shown (?prices=1): on phones the four prices and their whole line come before the
   second lede, so they end inside the first screen at 390x844 */
@media (max-width: 760px) {
  .prices-on .page-home .story .beat-hero { display: flex; flex-direction: column; }
  .prices-on .page-home .beat-hero > .eyebrow { order: 1; } .prices-on .page-home .beat-hero > h1 { order: 2; }
  .prices-on .page-home .beat-hero > .lede-1 { order: 3; } .prices-on .page-home .beat-hero > .btn-row { order: 4; }
  .prices-on .page-home .beat-hero > .hero-proof { order: 5; } .prices-on .page-home .beat-hero > .hero-prices { order: 6; margin-top: 12px; }
  .prices-on .page-home .beat-hero > .lede-2 { order: 7; } .prices-on .page-home .beat-hero > .beat-cue { order: 8; }
}
/* H5: the reason for the valve, a sentence beside the gold dot (the dot is the gold ring on the stage) */
.page-home .beat-card p.valve-why { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.page-home .beat-card p.valve-why i { margin-top: 4px; }
/* H8: on phones a card the reader has passed fades back, so one heading is readable at a time under the picture.
   Round 3 fix 3: it dims (to .6 since QA H7, so passed text stays readable) instead of vanishing, so the band between
   the picture and the active card is never up to 200 px of empty paper (DR.story's line sits 200 px under the stage) */
@media (max-width: 760px) {
  .page-home .story .beat > * { transition: opacity .25s ease; }
  /* R2-M3: .85 (every card colour stays at least 4.5:1, the eyebrow in teal-dark), and no fade at all under Reduce Motion,
     where the picture no longer pins (v2.css) */
  html:not(.motion-off) .page-home .story .beat:has(~ .beat.is-active):not(:focus-within) > * { opacity: .85; }
  html:not(.motion-off) .page-home .story .beat:has(~ .beat.is-active) .eyebrow { color: var(--teal-dark); }
  .motion-off .page-home .story .beat > * { transition: none; }
  /* Round 3 fix 2: the stage pill sits at the top of the picture, so no card's chip slides up beside or under it */
  .page-home .story .stage-ui .chip.design { top: 12px; bottom: auto; }
}
/* Round 3 fix 2, desktop: one card at a time; a card shows while it is the active one (or holds focus) */
@media (min-width: 761px) and (min-height: 501px) {
  .page-home .story .beat > *, .page-home .story .beat-hero::before { transition: opacity .3s ease; }
  /* only once DR.story has marked a card, so the first paint never hides the H1 */
  .page-home .story:has(.beat.is-active) .beat:not(.is-active):not(:focus-within) > * { opacity: 0; pointer-events: none; }
  .page-home .story:has(.beat.is-active) .beat-hero:not(.is-active):not(:focus-within)::before { opacity: 0; }
  .motion-off .page-home .story .beat-hero::before { transition: none; }
  .motion-off .page-home .story .beat > * { transition: none; }
  /* cross-fix (final matrix 2): the active card stays whole under the header until the next one takes over. Each
     card sits at the top of its beat and sticks 16 px under the header; DR.story reads a sticky card's place from
     its beat, so the 55% trigger line and the rail jumps are unchanged */
  .page-home .story .beat:not(.beat-hero) { justify-content: flex-start; }
  .page-home .story .beat:not(.beat-hero) > .beat-card { position: sticky; top: calc(var(--nav-h) + 16px); }
}

/* ---------- returning clients (returning-client spec 1): a third row under the two hero buttons ---------- */
.page-home .again-row {
  display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 10px; padding: 6px 14px 6px 10px;
  border: 1.5px solid var(--hair); border-radius: 14px; background: var(--paper); color: var(--ink);
  text-decoration: none; font: 500 15px/1.25 var(--font);
}
.page-home .again-row:hover { border-color: var(--teal); color: var(--ink); }
.page-home .again-row .gate-ico { width: 26px; height: 26px; flex: none; color: var(--teal-dark); }
.page-home .again-row > span { display: flex; flex-direction: column; }
.page-home .again-row b { font-weight: 700; }
.page-home .again-row .again-go { color: var(--teal-dark); font-weight: 600; font-size: 14.5px; }
@media (max-width: 760px) {
  .page-home .story .beat-hero .again-row { margin-top: 8px; }
  .prices-on .page-home .beat-hero > .again-row { order: 4; }
}
@media (min-width: 761px) {
  .page-home .beat-hero > .again-row { order: 5; align-self: flex-start; margin-top: 12px; }
  .page-home .again-row > span { flex-direction: row; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
}
@media (min-width: 761px) and (max-height: 500px) {
  .page-home .beat-hero > .again-row { order: 3; margin-top: 8px; }
}
/* test 2026-11-29 fix 12: with ?prices=1 the price line fits the first phone screen (it ran 10 px past it) */
@media (max-width: 760px) {
  .page-home:has(.hero-prices:not([hidden])) .story .stage { height: clamp(250px, calc(40svh - 24px), 316px); }
  .page-home .hero-prices .price-line { margin-top: 6px; line-height: 1.38; }
}
/* public mode (go-live W1): the poster without people */
@media (max-width: 760px) { html.public .page-home .stage-poster { background-image: url("../assets/stills-public/home-poster.jpg"); } }

/* ---------- fix round 2026-12-03 (QA staging) ---------- */
/* M10: on phones the number is written out under the hero buttons (desktop shows it in the header) */
.page-home .hero-call { display: none; }
@media (max-width: 760px) {
  .page-home .hero-call { display: block; margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--char); text-wrap: pretty; }
  .page-home .hero-call a { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
  .prices-on .page-home .beat-hero > .hero-call { order: 4; }
}
/* H4: the review claims link to /reviews; the proof band is one link. L20: its labels at full white (5.2:1 on teal) */
.page-home .hero-proof a { color: var(--teal-dark); }
.page-home .proof-band a.wrap { color: inherit; text-decoration: none; }
.page-home .proof-band a.wrap:hover .lbl { text-decoration: underline; }
.page-home .proof-band :focus-visible { outline-color: var(--amber); }
.page-home .proof-band .lbl { opacity: 1; }
.page-home a.read-all:hover { color: #fff; }
/* B9: home base, the live page's #where links (West Seattle wording; no map here, maps stay on Our Process) */
.where-band .base-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.where-band .base-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--teal);
  border-radius: 999px; color: var(--teal-dark); font: 600 15px/1.2 var(--font); text-decoration: none;
}
.where-band .base-links a:first-child { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.where-band .base-links a:hover { border-color: var(--teal-dark); }
.where-band .quiz-line { margin: 16px 0 0; }
.where-band .hq {
  display: flex; flex-direction: column; gap: 2px; max-width: 440px; padding: 18px 20px; border: 1px solid var(--v2-line);
  border-radius: 18px; background: #fff; color: var(--char); text-decoration: none;
}
.where-band .hq b { font-size: 18px; color: var(--ink); }
.where-band .hq .hq-go { margin-top: 6px; font-weight: 700; color: var(--teal-dark); }
.where-band .hq:hover { border-color: var(--teal); }
