/* Homepage chapter compositions. Shared site styles remain in styles.css. */
/* Full-stage story: opening, reputation, promise. Small screens keep the reading order. */
@media(min-width:1000px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
 html.cinematic:not(.motion-paused) .chapter-site .hero:has(.hero-stage) { height:420svh; } /* 420svh total: 100svh sticky stage + 260svh of scroll travel + 60svh hold on the finished scene (script.js: hold) */
 html.cinematic:not(.motion-paused) .chapter-site .hero-stage { display:block; padding:0; }
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy { position:absolute; inset:0; padding:0; pointer-events:none; }
 html.cinematic:not(.motion-paused) .hero-copy .eyebrow { position:absolute; left:6%; top:9%; opacity:var(--opening-opacity,1); }
 html.cinematic:not(.motion-paused) .hero-copy .hero-sub { position:absolute; left:6%; top:26%; width:38%; font:500 clamp(30px,3.5vw,53px)/1.15 var(--heading); letter-spacing:-.045em; margin:0; opacity:var(--reputation-opacity,0); translate:0 calc((1 - var(--reputation-opacity,0))*36px); filter:blur(calc((1 - var(--reputation-opacity,0))*10px)); }
 html.cinematic:not(.motion-paused) .hero-copy .hero-description { position:absolute; left:6%; top:26%; width:37%; max-width:560px; font:500 clamp(30px,3.3vw,49px)/1.18 var(--heading); letter-spacing:-.045em; color:inherit; opacity:var(--promise-opacity,0); translate:0 calc((1 - var(--promise-opacity,0))*36px); filter:blur(calc((1 - var(--promise-opacity,0))*10px)); }
 html.cinematic:not(.motion-paused) .hero-copy .button { position:absolute; left:6%; bottom:16%; pointer-events:auto; }
 html.cinematic:not(.motion-paused) .chapter-site .hero .scene { position:absolute; top:19%; right:5%; width:47%; max-width:750px; height:min(570px,65svh); opacity:calc(.16 + min(1,var(--hero-progress,0)*3)*.84); transform:translateX(calc((1 - min(1,var(--hero-progress,0)*3))*-18vw)) translateY(calc((1 - min(1,var(--hero-progress,0)*3))*18vh)); }
 html.cinematic:not(.motion-paused) .hero-copy .button:focus-visible { outline-offset:7px; }
 /* The stage travels with the story: paper opening -> dark resolved chapter, so .recognition continues the frame instead of hard-cutting. */
 html.cinematic:not(.motion-paused) .chapter-site .hero-stage { --stage-progress:clamp(0,calc((var(--hero-progress,0) - .18)/.14),1); --muted:color-mix(in oklab,#686b64,var(--chapter-soft) calc(var(--stage-progress)*100%)); --line:color-mix(in oklab,#d8d8cf,#3d4739 calc(var(--stage-progress)*100%)); background:color-mix(in oklab,var(--paper),var(--chapter-dark) calc(var(--stage-progress)*100%)); color:color-mix(in oklab,var(--ink),var(--chapter-light) calc(var(--stage-progress)*100%)); }
 html.cinematic:not(.motion-paused) .chapter-site .hero-stage:after { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 50% 42%,transparent 52%,#0007 100%); opacity:var(--stage-progress); }
 /* Key light sweeps across the scene as the beats advance; pointer lighting still overrides while hovering. */
 html.cinematic:not(.motion-paused) .chapter-site .hero .scene { --light-x:calc(64% - var(--hero-progress,0)*36%); --light-y:calc(26% + var(--hero-progress,0)*34%); }
 /* The white proof cards and the mockup keep ink text; they must not inherit the stage's ink-to-light travel. */
 html.cinematic:not(.motion-paused) .chapter-site .hero-stage .floating, html.cinematic:not(.motion-paused) .chapter-site .hero-stage .mock-browser { color:var(--ink); }
}
.chapter-site .hero:has(.hero-stage) { display:block; padding:0; overflow:visible; }
.hero-stage { padding:60px 5.5% 0; display:grid; grid-template-columns:1fr 1.05fr; column-gap:3%; align-items:center; overflow:clip; }
.chapter-site .hero-stage .scene-caption { bottom:-23px; color:var(--muted); }
.cinematic .hero-stage .floating,.cinematic .hero-stage .orbit-two,.cinematic .hero-stage .wave i { animation:none; }
.cinematic .hero-stage .mock-browser:after { display:none; }
.cinematic .hero-stage .scene { translate:none; }
.cinematic .hero-stage .mock-browser { scale:calc(.79 + var(--hero-progress,1)*.21); translate:0 calc((1 - var(--hero-progress,1))*40px); transform:translateZ(25px) rotateZ(calc(-16deg + var(--hero-progress,1)*12deg)) rotateY(calc((1 - var(--hero-progress,1))*-12deg)); }
.cinematic .hero-stage .trust { opacity:var(--trust-cue,1); translate:calc((1 - var(--trust-cue,1))*75px) calc((1 - var(--trust-cue,1))*-70px); }
.cinematic .hero-stage .audio { opacity:var(--audio-cue,1); translate:calc((1 - var(--audio-cue,1))*70px) calc((1 - var(--audio-cue,1))*65px); }
.cinematic .hero-stage .find { opacity:var(--find-cue,1); translate:calc((1 - var(--find-cue,1))*-85px) 0; }
.cinematic .hero-stage .welcome { opacity:var(--welcome-cue,1); translate:calc((1 - var(--welcome-cue,1))*60px) calc((1 - var(--welcome-cue,1))*40px); }
.cinematic .hero-stage .scene-assembly { transition:none; }
@media(min-width:1000px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
 .cinematic:not(.motion-paused) .hero:has(.hero-stage) { height:230svh; }
 .cinematic:not(.motion-paused) .hero-stage { position:sticky; top:0; height:100svh; align-content:center; padding-top:20px; }
}
@media(max-width:999px),(max-height:739px) {
 .cinematic .hero-stage .floating,.cinematic .hero-stage .welcome { opacity:1; translate:none; }
}
@media(max-width:760px) {
 .hero-stage { display:block; padding:32px 6% 72px; } /* room so the 3D stage gets its own screen before the trade pick */
}
.motion-paused .hero-stage .floating,.motion-paused .hero-stage .welcome { opacity:1; translate:none; }
@media(prefers-reduced-motion:reduce) {
 .cinematic .hero-stage .floating,.cinematic .hero-stage .welcome { opacity:1; translate:none; }
}
/* Hero: a lit dimensional stage with the approved message alongside it. */
.chapter-site .hero { padding-top:72px; column-gap:3%; grid-template-columns:1fr 1.05fr; }
.chapter-site .hero-copy { padding:18px 0; position:relative; z-index:4; }
.chapter-site .hero .scene { height:570px; margin:0; border-radius:140px 12px 12px 12px; background:radial-gradient(ellipse at 60% 25%,#3b4c6e 0%,#1c2740 46%,#0f1626 90%); perspective:1300px; }
.chapter-site .scene:before { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:radial-gradient(ellipse at var(--light-x,60%) var(--light-y,30%),#e8eefc26,transparent 58%); }
.chapter-site .scene:after { content:''; position:absolute; bottom:58px; left:8%; right:8%; height:95px; border:1px solid #8d9bb855; border-top:2px solid #b6c3dc77; background:linear-gradient(150deg,#4d608833,#1c284055); transform:rotateX(65deg) rotateZ(-8deg); box-shadow:0 18px 0 #0a0f1a,0 30px 35px #070b1488; z-index:-1; }
.chapter-site .scene-orbit { width:440px; height:440px; top:25px; left:calc(50% - 220px); border-color:#b6bfd030; }
.chapter-site .orbit-two { width:330px; height:330px; top:80px; left:calc(50% - 165px); }
.chapter-site .scene-shadow { bottom:60px; background:#070b1499; }
.chapter-site .mock-browser { top:118px; left:22px; right:auto; width:min(100% - 34px,600px); transform:translateZ(25px) rotateZ(calc(-7deg + var(--hero-progress,0)*8deg)); box-shadow:2px 3px 0 #c7cedb,6px 7px 0 #8b96ad,10px 12px 0 #3b4a6a,22px 38px 45px #070b1477; }
.chapter-site .trust { top:64px; right:16px; padding:17px 22px; transform:translateZ(110px) rotate(7deg); }
.chapter-site .find { top:455px; left:-124px; transform:translateZ(135px) rotate(-6deg); }
.chapter-site .audio { bottom:-2px; right:-34px; transform:translateZ(125px) rotate(5deg); }
/* Welcome figure climbs out of the mockup's photo box. The box is baked into proof-site.webp;
   these percentages are its measured rect inside that 1280x800 render (work/proof-site/index.html .photo).
   The slot clips its own bottom edge only, so the lower body stays inside the box while the head,
   shoulders and reaching hand break out above it. */
.proof-frame { position:relative; display:block; }
.welcome-slot { position:absolute; left:35.94%; top:18.56%; width:28.13%; height:50%; pointer-events:none;
  /* Open above and to the sides, cut straight along the box floor: that hard line is the box edge. */
  clip-path:inset(-400% -400% 0 -400%); }
/* welcome-reach.webp is the same frame with everything but the reaching arm erased (built from the
   arm's own silhouette, feathered). Laid over the clipped copy at identical geometry, it lets the hand
   hang past the box floor with a soft edge while the body keeps the hard box edge above. A CSS mask
   cannot do this: below the floor the arm and torso overlap in x, so any gradient drags shirt out too. */
.welcome-reach { clip-path:none; }
.welcome-reach .welcome { filter:drop-shadow(-6px 10px 14px #0b1426b0); }
/* The hero mockup drops its own clipping so the reach can break the browser frame. Safe here only
   because the glass-light sweep that relied on it is already display:none inside .hero-stage (below).
   The proof image keeps the rounded bottom corners the frame used to cut for it. */
.chapter-site .hero-stage .mock-browser { overflow:visible; }
.chapter-site .hero-stage .mock-browser .proof { border-radius:0 0 9px 9px; }
.welcome { position:absolute; bottom:-45%; right:-17%; height:178%; width:auto; filter:drop-shadow(-10px 14px 22px #0b1426aa); }
.chapter-site .scene-caption { bottom:15px; color:#c9d2e3; font-size:10px; }
.chapter-site .scene-assembly { transform:rotateX(var(--rx,8deg)) rotateY(var(--ry,-14deg)); }
.chapter-site .trust { --plane-depth:-95px; }
.chapter-site .find { --plane-depth:50px; }
.chapter-site .audio { --plane-depth:95px; }
@media(min-width:761px) and (hover:hover) and (pointer:fine) {
 .chapter-site .trust { transform:translateZ(110px) rotate(calc(7deg + var(--pointer-x,0)*2deg)); }
 .chapter-site .find { transform:translateZ(135px) rotate(calc(-6deg + var(--pointer-y,0)*2deg)); }
}
@media(max-width:1100px) and (min-width:761px) {
 .chapter-site .hero { column-gap:24px; padding-top:45px; }
 .chapter-site .hero .scene { height:530px; }
 .chapter-site .mock-browser { left:10px; right:8px; }
 .chapter-site .trust { top:78px; right:4px; padding:12px; }
 .chapter-site .find { left:-40px; top:430px; }
 .chapter-site .audio { right:2px; bottom:46px; padding:12px; }
}
@media(max-width:760px) {
 .chapter-site .hero { padding-top:32px; }
 .chapter-site .hero-copy { padding:0; }
 .chapter-site .hero .scene { height:470px; margin:35px auto 0; width:100%; border-radius:80px 8px 8px 8px; }
 .chapter-site .scene-orbit { width:310px; height:310px; top:62px; left:calc(50% - 155px); }
 .chapter-site .orbit-two { width:230px; height:230px; top:102px; left:calc(50% - 115px); }
 .chapter-site .mock-browser { top:115px; left:15px; right:10px; }
 .chapter-site .trust { top:84px; right:10px; padding:10px 12px; transform:translateZ(45px) rotate(5deg); }
 .chapter-site .find { top:16px; left:-6px; padding:10px 12px; transform:translateZ(55px) rotate(-5deg); } /* 23 Nov: was top:290px, covered the reaching hand (Merlon: "how am I supposed to shake their hands") */
 .chapter-site .audio { bottom:14px; right:7px; padding:10px 12px; transform:translateZ(50px) rotate(4deg); }
 .chapter-site .scene-caption { font-size:9px; bottom:14px; }
 .chapter-site .scene:after { bottom:62px; }
}
.motion-paused .scene:before { background:radial-gradient(ellipse at 60% 30%,#e8eefc26,transparent 58%); }
.chapter-site { --chapter-dark:#111827; --chapter-deeper:#0b111d; --chapter-lifted:#182236; --chapter-light:#f5f3ed; --chapter-soft:#b6bfd0; }
/* Dark context: everything after the hero. Shared tokens flip once here so text, rules and muted labels follow. */
.chapter-site main > section:not(.hero), .chapter-site footer { --ink:var(--chapter-light); --muted:var(--chapter-soft); --line:#2c3a55; --white:var(--chapter-lifted); background:var(--chapter-dark); color:var(--ink); }
.chapter-site main > section.pain, .chapter-site main > section.approach, .chapter-site footer { background:var(--chapter-deeper); }
.chapter-site main > section.services, .chapter-site main > section.faq { background:var(--chapter-lifted); }
.chapter-site main > section:not(.hero) h2 span { color:var(--chapter-soft); }
.chapter-site h2 { text-wrap:balance; }
.chapter-site p { text-wrap:pretty; }
.chapter-site figure { margin:0; }
.recognition { padding-top:90px; padding-bottom:85px; }
.recognition-heading { display:flex; justify-content:space-between; gap:50px; align-items:end; margin-bottom:50px; }
.recognition h2 span { color:var(--chapter-soft); }
.recognition-heading>p { color:#b6bfd0; max-width:360px; font-size:15px; margin:0 0 6px; }
.industry-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:25px; align-items:start; }
@media(max-width:1199px) { .industry-gallery { grid-template-columns:1fr 1fr; } }
.industry-advice,.industry-auto { padding-top:62px; }
.industry-scene>img { width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; display:block; border-radius:22px; box-shadow:0 18px 40px #0b11261f; }
.industry-scene figcaption { padding:20px 0 0; }
.industry-scene h3 { font-size:20px; letter-spacing:-.025em; }
.industry-scene figcaption p { font-size:14px; line-height:1.6; margin:8px 0 0; color:#b6bfd0; }
.chapter-site .pain { padding-top:110px; padding-bottom:110px; }
.chapter-site .approach { border-top:1px solid var(--line); }
.chapter-site .founder { grid-template-columns:.8fr 1.2fr; gap:8%; align-items:center; padding-top:70px; padding-bottom:70px; }
.founder-photo { background:#1a2640; align-self:start; }
.founder-photo img { width:100%; height:auto; display:block; aspect-ratio:1/1; object-fit:contain; }
.founder-photo figcaption { padding:20px 25px; border-top:1px solid #3a4a6a; font-size:15px; font-weight:600; }
.founder-photo figcaption span { display:block; font-size:11px; color:var(--muted); font-weight:400; margin-top:3px; }
.chapter-site .founder h2 { font-size:clamp(30px,3.4vw,47px); }
.chapter-site .review { padding-top:100px; padding-bottom:100px; }
.chapter-site .faq { padding-top:65px; padding-bottom:65px; }
.chapter-site .service-row { transition:color .18s; }
.chapter-site .service-row:hover { padding-left:0; }
.chapter-site .service-row:hover .service-text { transform:translateX(5px); }
.chapter-site .service-text { transition:transform .18s ease-out; }
.chapter-site a:active,.chapter-site button:active { translate:0 1px; }
@media(max-width:999px) {
 .recognition-heading { align-items:start; }
 .recognition-heading>p { max-width:300px; }
 .industry-gallery { gap:18px; }
}
@media(max-width:760px) {
 .recognition { padding-top:58px; padding-bottom:58px; }
 .recognition-heading { display:block; margin-bottom:32px; }
 .recognition-heading>p { margin:22px 0 0; max-width:440px; font-size:16px; }
 .industry-gallery { grid-template-columns:1fr; gap:40px; }
 .industry-advice,.industry-trades,.industry-auto { padding-top:0; }
 .industry-scene>img { aspect-ratio:4/3; border-radius:20px; } /* 4/5 -> 4/3 on phone, trim step 2 (Merlon, 22 Nov) */
 .industry-scene figcaption { padding-top:16px; }
 .industry-scene h3 { font-size:22px; }
 .industry-scene figcaption p { font-size:16px; }
 .chapter-site .pain { padding-top:65px; padding-bottom:65px; }
 .chapter-site .founder { grid-template-columns:1fr; gap:32px; padding-top:45px; padding-bottom:55px; }
 .founder-photo { max-width:430px; width:100%; }
 .chapter-site .review { padding-top:65px; padding-bottom:65px; }
}
/* Phase 2 card system: one card, two skins. Phone is the base; desktop via min-width. */
.card { border-radius:20px; padding:24px; border:1px solid #2c3a55; background:var(--chapter-dark); color:var(--chapter-light); box-shadow:0 1px 0 #ffffff0d inset,0 14px 30px #0006; }
.card-paper { background:var(--chapter-light); color:var(--chapter-dark); border-color:#d0d6e2; }
.card h3 { font-size:26px; margin:0 0 12px; }
.card p { margin:0; font-size:15px; line-height:1.6; }
.card-navy p { color:var(--chapter-soft); }
.card-navy strong { color:var(--chapter-light); font-weight:600; }
.card-paper p { color:#4b5568; }
a.card { transition:transform .25s cubic-bezier(.16,1,.3,1),border-color .2s; }
a.card:hover { transform:translateY(-4px); border-color:#4d6088; }
/* Stakes pair: problem on paper, answer on navy. */
.stakes { display:grid; gap:14px; }
.stakes .card-navy { border-color:#4d6088; }
/* Steps: numbered cards with a chip. */
.chapter-site .steps { display:grid; gap:14px; }
.chapter-site .steps article.card { padding:24px; border-top:1px solid #2c3a55; display:flex; gap:18px; }
.steps article > span { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; border:1px solid #4d6088; color:var(--chapter-soft); font-size:12px; padding:0; }
.steps .card h3 { font-size:21px; margin-bottom:8px; }
/* Services: swipe rail on phone, grid on wider screens. */
.chapter-site .service-list { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -6%; padding:4px 6% 18px; scroll-padding-left:6%; scrollbar-width:none; }
.chapter-site .service-list::-webkit-scrollbar { display:none; }
.chapter-site .service-row.card { flex:0 0 78%; scroll-snap-align:start; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto 1fr; gap:22px 0; padding:22px; min-height:190px; border:1px solid #2c3a55; }
.chapter-site .service-row.card:last-child { border-bottom:1px solid #2c3a55; }
.service-row.card .service-number { display:none; }
.service-row.card .service-icon { width:44px; height:44px; border-radius:50%; background:#ffffff0f; place-items:center; display:grid; color:var(--chapter-soft); }
.service-row.card .service-arrow { grid-area:1/2; justify-self:end; align-self:start; }
.service-row.card .service-text { grid-column:1/-1; align-self:end; }
.chapter-site .service-row.card:hover { padding-left:22px; }
.chapter-site .service-row.card:hover .service-text { transform:none; }
@media(min-width:761px) {
 .stakes { grid-template-columns:1fr 1fr; align-items:stretch; }
 .card { padding:32px; }
 .card h3 { font-size:clamp(26px,2.4vw,34px); }
 .chapter-site .service-list { display:grid; grid-template-columns:1fr 1fr; overflow:visible; margin:0; padding:0; }
 .chapter-site .service-row.card:last-child { grid-column:1/-1; min-height:150px; }
}
/* Chapter sheets: each chapter slides over the previous one. Painted in DOM order, so no z-index needed.
   The negative margin overlaps the previous chapter's bottom padding (always >= 58px), so no extra top padding is required and each chapter keeps its own rhythm. */
.chapter-site main > section:not(.hero) { position:relative; border-radius:32px 32px 0 0; margin-top:-32px; box-shadow:0 -18px 40px #0008; }
@media(max-width:760px){ .chapter-site main > section:not(.hero) { border-radius:24px 24px 0 0; margin-top:-24px; } }

/* Sticky glass header (web glassmorphism approximation, not Apple Liquid Glass). Colour follows the hero stage via --stage-progress on <html>. */
.chapter-site .header { position:sticky; top:0; z-index:10; padding:14px 5.5%; border-bottom:1px solid color-mix(in oklab, #d8d8cf, #2c3a55 calc(var(--stage-progress,0)*100%)); background:color-mix(in oklab, color-mix(in oklab, var(--paper), var(--chapter-dark) calc(var(--stage-progress,0)*100%)) 82%, transparent); color:color-mix(in oklab, var(--ink), var(--chapter-light) calc(var(--stage-progress,0)*100%)); backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%); }
/* Logo: the paper (navy text) file sits underneath, the navy-header (silver text) file fades in on top. --logo-dark tracks the same value the header colour is mixed with, so the logo never reads wrong on the header. */
.chapter-site .header { --logo-dark:var(--stage-progress,0); }
html.prologue-on .chapter-site .header { --logo-dark:var(--pro,1); }
.motion-paused .chapter-site .header { --logo-dark:1; }
@media(prefers-reduced-motion:reduce){ .chapter-site .header { --logo-dark:1; } }
@media(prefers-reduced-transparency:reduce){ .chapter-site .header { --logo-dark:1; } }
.chapter-site .brand { position:relative; }
.chapter-site .brand-logo-dark { display:block; position:absolute; left:0; top:0; opacity:var(--logo-dark); }
.chapter-site .menu-toggle { color:inherit; }
.chapter-site .nav-cta { background:var(--red); color:#fff; border:1px solid var(--red); border-radius:6px; padding:10px 16px; line-height:1; transition:transform 160ms cubic-bezier(.23,1,.32,1); position:relative; overflow:hidden; }
.tap-ripple { position:absolute; border-radius:50%; background:radial-gradient(circle,currentColor 60%,transparent 70%); pointer-events:none; }
.chapter-site .nav-cta:active { transform:scale(.97); }
@media (hover:hover) and (pointer:fine) { .chapter-site .nav-cta:hover { background:#a92417; } }
.motion-paused .chapter-site .header { background:color-mix(in oklab, var(--chapter-dark) 92%, transparent); color:var(--chapter-light); border-bottom-color:#2c3a55; }
@media(prefers-reduced-motion:reduce){ .chapter-site .header { background:color-mix(in oklab, var(--chapter-dark) 92%, transparent); color:var(--chapter-light); border-bottom-color:#2c3a55; } }
@media(prefers-reduced-transparency:reduce){ .chapter-site .header { backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--chapter-dark); color:var(--chapter-light); } }
@media(max-width:760px){ .chapter-site .header { padding:12px 6%; } }

/* Footer: ambient dot band + oversized wordmark as the editorial close. */
.chapter-site footer { padding:0 5.5% 28px; border-top:0; max-width:none; overflow:hidden; }
.footer-dots { position:relative; height:110px; overflow:hidden; margin:0 -6.2%; }
.footer-dots__line { position:absolute; left:0; top:50%; width:200%; height:70px; opacity:.55; transform:translate3d(0,-50%,0); background-image:radial-gradient(circle,#ffffff8c 1.5px,transparent 2px),radial-gradient(circle,#ffffff59 1px,transparent 1.5px),radial-gradient(circle,#ffffff73 1.2px,transparent 1.8px); background-position:0 8px,24px 22px,48px 14px; background-size:72px 38px,110px 44px,160px 52px; animation:footerDotsMove 18s linear infinite; }
@keyframes footerDotsMove { from { transform:translate3d(0,-50%,0); } to { transform:translate3d(-50%,-50%,0); } }
.chapter-site .footer-top { max-width:1600px; margin:0 auto; padding:18px 0 22px; }
.footer-brand { display:block; max-width:1600px; margin:0 auto; color:var(--chapter-light); }
.footer-wordmark { display:block; font:800 clamp(58px,11.1vw,214px)/.8 var(--heading); letter-spacing:-.055em; white-space:nowrap; }
.chapter-site .footer-bottom { max-width:1600px; margin:14px auto 0; border-top:1px solid #2c3a55; color:var(--chapter-soft); }
@media(max-width:760px){ .footer-dots { height:70px; } .footer-wordmark { font-size:clamp(26px,10.2vw,84px); } }

/* Trade picker + story shell (phase A). Scenes arrive in a later phase; slots are placeholders. Shape: cards 10px, controls 6px. */
.trade-pick { padding-top:85px; padding-bottom:85px; }
.trade-heading p { color:var(--chapter-soft); margin-top:14px; max-width:420px; font-size:15px; }
.trade-options { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:34px; }
.trade-options button { background:transparent; border:1px solid #4d6088; color:var(--ink); padding:16px 14px; min-height:92px; text-align:left; border-radius:6px; display:flex; justify-content:space-between; align-items:flex-start; gap:10px; cursor:pointer; font-size:15px; font-weight:600; line-height:1.3; transition:background .2s,border-color .2s,transform .16s; }
.trade-options button small { display:block; margin-top:6px; font-size:12px; font-weight:400; color:var(--chapter-soft); line-height:1.4; }
.trade-options button:active { transform:scale(.97); }
.trade-options button[aria-pressed=true] { background:var(--chapter-light); color:var(--chapter-dark); border-color:var(--chapter-light); }
.trade-options button[aria-pressed=true] small { color:#4a5367; }
.trade-fallback { margin-top:24px; color:var(--chapter-soft); }
.trade-fallback a { color:var(--ink); text-decoration:underline; }
html:not(.js) .trade-options { display:none; }
@media(min-width:900px) { .trade-options { grid-template-columns:repeat(4,1fr); } .trade-options button { min-height:120px; padding:20px 18px; } }
.story[hidden] { display:none !important; }
.chapter-site main > section.story { padding:0; max-width:none; margin-inline:0; }
.story-beat { position:relative; background:var(--chapter-dark); }
.story-beat[data-beat=overlooked], .story-beat[data-beat=close] { background:var(--chapter-deeper); }
.story-beat[data-beat=chosen] { background:var(--chapter-lifted); }
.story-stage { position:relative; isolation:isolate; min-height:100svh; display:flex; align-items:flex-end; overflow:clip; }
.story-slot { position:absolute; inset:0; z-index:-1; display:grid; place-items:center; background:radial-gradient(ellipse at 55% 30%,#22304b 0%,transparent 62%); }
.story-media { position:relative; width:100%; height:100%; }
.story-media canvas, .story-media .story-poster { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.story-media canvas { opacity:0; transition:opacity .25s linear; }
.story-media canvas.is-ready { opacity:1; }
.story-poster:not([src]) { display:none; }
.story-copy { position:relative; width:100%; max-width:640px; padding:120px 5.5% max(56px,7svh); background:linear-gradient(to top,#0b111de6 38%,transparent); opacity:var(--copy,1); translate:0 var(--copy-shift,0px); }
.story-copy h2 { font-size:clamp(2.2rem,8.4vw,3.9rem); }
.story-copy p { color:var(--chapter-soft); margin-top:18px; font-size:17px; max-width:460px; }
.story-copy .button { margin-top:30px; }
.story-beat[data-beat=chosen] .story-copy::after { content:''; display:block; width:56px; height:3px; background:var(--red); margin-top:28px; }
@media(min-width:900px) {
 /* Portrait scene on the right, copy on the left, so they never overlap. */
 .story-slot { justify-items:end; padding-right:max(5.5%,calc((100% - 1600px)/2 + 88px)); }
 .story-media { width:min(46%,calc(100svh * 9 / 16)); }
 .story-copy { position:absolute; left:max(5.5%,calc((100% - 1600px)/2 + 88px)); bottom:0; max-width:360px; width:auto; background:none; padding:0 0 max(56px,8svh) 0; }
}
/* Scroll scrub: each beat is a tall run with a sticky stage. The peak (chosen) gets the most room. Static layout under reduced motion or pause. */
@media(prefers-reduced-motion:no-preference) {
 html:not(.motion-paused) .story-beat { height:var(--span,220svh); }
 html:not(.motion-paused) .story-stage { position:sticky; top:0; height:100svh; min-height:0; }
}
.story-beat[data-beat=seen] { --span:230svh; }
.story-beat[data-beat=overlooked] { --span:200svh; }
.story-beat[data-beat=chosen] { --span:330svh; }
.story-beat[data-beat=close] { --span:210svh; }
/* Phone contact bar: after the hero, hidden on the contact chapter. */
.contact-bar { display:none; }
@media(max-width:760px) {
 .contact-bar { display:flex; position:fixed; left:12px; right:12px; bottom:max(12px,env(safe-area-inset-bottom)); z-index:19; gap:8px; padding:8px; border-radius:10px; border:1px solid #2c3a55; background:color-mix(in oklab,var(--chapter-deeper) 90%,transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); transform:translateY(calc(100% + 28px)); transition:transform .35s cubic-bezier(.16,1,.3,1); }
 .contact-bar.is-on { transform:none; }
 .contact-bar a { flex:1; min-height:48px; display:flex; align-items:center; justify-content:center; gap:10px; border-radius:6px; font-size:15px; font-weight:600; }
 .contact-bar .bar-call { background:var(--red); color:#fff; }
 .contact-bar .bar-text { border:1px solid #4d6088; color:var(--chapter-light); }
 .story-copy { padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) { .contact-bar { transition:none; } }
html.motion-paused .contact-bar { transition:none; }
/* Wide desktop: the hero stage runs edge to edge; copy keeps the 1600px grid
   (aligned with the header logo), the scene grows, and the CTA sits under the headline. */
@media(min-width:1100px) {
 .chapter-site .header { max-width:none; padding-inline:max(5.5%,calc((100vw - 1600px)/2 + 88px)); }
 .hero:has(.hero-stage) { max-width:none; }
}
@media(min-width:1100px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
 html.cinematic:not(.motion-paused) .chapter-site .hero-stage { --gut:max(6vw,calc((100vw - 1600px)/2 + 96px)); --inner:calc(100vw - 2*var(--gut)); --sw:min(calc(var(--inner)*.58),980px); --sh:min(calc(var(--sw)*.76),70svh); }
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy .eyebrow,
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy .hero-sub,
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy .hero-description,
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy .button { left:var(--gut); }
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy .hero-sub { width:calc(var(--inner)*.38); }
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy .hero-description { width:calc(var(--inner)*.37); }
 html.cinematic:not(.motion-paused) .chapter-site .hero-copy .button { bottom:auto; top:calc(17% + 3.1*clamp(64px,7.6vw,112px) + 56px); }
 html.cinematic:not(.motion-paused) .chapter-site .hero .scene { width:var(--sw); max-width:none; height:var(--sh); right:max(7vw,calc(var(--gut) - 90px)); top:calc(50% - var(--sh)/2 + 24px); }
}
@media(min-width:1100px) and (max-width:1359px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
 html.cinematic:not(.motion-paused) .chapter-site .hero-stage .floating { scale:.78; }
 html.cinematic:not(.motion-paused) .chapter-site .hero-stage .scene-caption { display:none; }
}

/* Prologue: a scroll-scrubbed 360 orbit before the hero. Same position, same frame. Hidden for reduced motion and paused motion; the hero starts straight away. */
.prologue { position:relative; height:calc(240svh + 72px); background:var(--chapter-deeper); color:var(--chapter-light); }
.prologue-stage { position:sticky; top:0; height:100svh; overflow:clip; isolation:isolate; display:grid; place-items:center; background:radial-gradient(ellipse at 50% 40%,var(--chapter-lifted) 0%,var(--chapter-dark) 55%,var(--chapter-deeper) 100%); }
.prologue-media { position:absolute; inset:0; }
.prologue-media img, .prologue-media canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.prologue-media canvas { opacity:0; transition:opacity .25s linear; }
.prologue-media canvas.is-ready { opacity:1; }
.prologue-media:after { content:''; position:absolute; inset:0; background:linear-gradient(to top,#0b111de6 0%,#0b111db3 52%,#0b111d00 82%); pointer-events:none; } /* stops moved up 10% with the copy (12svh from the bottom, plus the 5svh drift) so the text still sits on the scrim */
/* Screen 1 copy: the H1, the promise and the one CTA are readable on load (no entrance), over the scrim. The orbit is the only moving thing. */
.prologue-copy { position:absolute; inset:auto 6% max(64px,12svh) 6%; z-index:3; display:grid; gap:18px; justify-items:start; }
.prologue-copy h1,.prologue-line { margin:0; font:600 clamp(34px,9.6vw,50px)/1.04 var(--heading); letter-spacing:-.05em; text-shadow:0 2px 24px #0009; }
.prologue-copy h1>span,.prologue-line>span { color:#ffd9a0; }
/* Beats: the copy changes as he turns to each screen. All five share one grid cell, so the block keeps the height of the tallest
   (the opening headline) and the button under it never moves. Only the first is visible until prologue.js scrubs the others in;
   with JS off, reduced motion or motion paused the opening headline simply stays. */
.prologue-beats { display:grid; }
.prologue-beat { grid-area:1/1; display:grid; gap:18px; align-content:end; justify-items:start; translate:0 calc(var(--u,0)*-5svh); } /* --u: how far through its own beat (0 to 1), from prologue.js; the line drifts up as he turns, then fades */
.prologue-beat+.prologue-beat { opacity:0; visibility:hidden; }
.prologue-promise { margin:0; font:500 clamp(18px,4.8vw,22px)/1.35 var(--body); letter-spacing:-.01em; color:#e8ecf5; text-shadow:0 1px 12px #0009; }
.prologue-copy .button { box-shadow:0 10px 28px #0007; }
.prologue-fade { position:absolute; inset:0; z-index:4; background:var(--paper); opacity:var(--fade,0); pointer-events:none; }
html.prologue-on .chapter-site .header { background:color-mix(in oklab,color-mix(in oklab,var(--paper),var(--chapter-deeper) calc(var(--pro,1)*100%)) 82%,transparent); color:color-mix(in oklab,var(--ink),var(--chapter-light) calc(var(--pro,1)*100%)); border-bottom-color:color-mix(in oklab,#d8d8cf,#2c3a55 calc(var(--pro,1)*100%)); }
/* Desktop: the portrait frame sits on the right of the 1600px grid and melts into the dark stage; the copy takes the left. */
@media(min-width:1000px) and (min-aspect-ratio:1/1) {
 .prologue-media { inset:0 max(6vw,calc((100vw - 1600px)/2 + 96px)) 0 auto; width:min(calc(100svh*9/16),42vw); -webkit-mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent); mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent); }
 .prologue-media:after { background:none; }
 .prologue-copy { inset:0 auto 0 max(6vw,calc((100vw - 1600px)/2 + 96px)); width:42vw; align-content:center; }
 .prologue { height:calc(220svh + 72px); }
 .prologue-copy h1,.prologue-line { font-size:clamp(48px,5vw,80px); }
 .prologue-beat { align-content:start; }
 .prologue-promise { font-size:clamp(18px,1.4vw,22px); }
}
/* Motion off (paused, reduced, data saver): the prologue becomes one static first screen, so the H1 and CTA never disappear. */
html.motion-paused .prologue, html.prologue-off .prologue { height:auto; }
html.motion-paused .prologue-stage, html.prologue-off .prologue-stage { position:relative; }
html.motion-paused .prologue-media canvas, html.prologue-off .prologue-media canvas, html.motion-paused .prologue-fade, html.prologue-off .prologue-fade { display:none; }
@media(prefers-reduced-motion:reduce) { .prologue { height:auto; } .prologue-stage { position:relative; } .prologue-media canvas, .prologue-fade { display:none; } }
/* Beat the generic dark-section rules (rounded top, overlap, shadow): the prologue slides under the sticky header and has square edges. */
.chapter-site main > section.prologue:not(.hero) { margin-top:-72px; border-radius:0; box-shadow:none; background:var(--chapter-deeper); color:var(--chapter-light); }

/* Phase 3 rhythm: paper chapters between the navy ones (approach, who, FAQ). Tokens flip back to the light set. */
.chapter-site main > section.paper { --ink:#232622; --muted:#5d6158; --line:#d8d8cf; --white:#fffefa; background:var(--paper); color:var(--ink); box-shadow:0 -18px 40px #0004; }
.chapter-site main > section.paper h2 span { color:#5b6a8a; }
.chapter-site .paper .recognition-heading>p, .chapter-site .paper .industry-scene figcaption p { color:var(--muted); }
/* Phase 4 free sample: the 4-tap check. Phone first; two columns on desktop. */
.check-heading>p { color:var(--muted); margin:18px 0 0; font-size:15px; }
.check-list { list-style:none; margin:0; padding:0; counter-reset:q; }
.check-q { padding:16px 0; border-top:1px solid var(--line); }
.check-q>p { margin:0 0 12px; font-size:16px; line-height:1.45; }
.check-a { display:flex; gap:8px; }
.check-a button { min-height:44px; padding:0 16px; border-radius:30px; border:1px solid #4d6088; background:transparent; color:var(--ink); font-size:14px; cursor:pointer; }
.check-a button[aria-pressed="true"] { background:var(--chapter-light); color:var(--chapter-dark); border-color:var(--chapter-light); }
.check-result { margin-top:18px; }
.check-result h3 { font-size:22px; }
.check-result ul { margin:14px 0 0; padding-left:18px; color:#4b5568; font-size:14px; line-height:1.55; }
.check-result li+li { margin-top:8px; }
.check-result strong { color:var(--chapter-dark); }
.check-result .check-note { font-size:13px; margin:16px 0 18px; }
.check-result .micro { color:#4b5568; margin:10px 0 0; }
@media(min-width:761px) { .check { display:grid; grid-template-columns:.8fr 1.2fr; gap:8%; } .check-body { display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:start; } .check-result { margin-top:0; position:sticky; top:100px; } }
/* Phase 5 AEO: the direct answer under each question H2 reads first and a touch larger. */
.chapter-site p.answer { color:var(--ink); font-size:17px; line-height:1.55; max-width:520px; margin-top:22px; }
.chapter-site .answer-lead { font-weight:500; color:var(--ink); }
.chapter-site .text-call { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.industry-note { font-size:12px; color:var(--muted); margin:22px 0 0; }

/* Services push-forward stage. services.js scrubs --s, --r, --o, --po, --px and --arc from the scroll position; none of them has a CSS transition.
   Without services.js, with reduced motion or with motion paused, this is the plain service list above: same links, same text.
   services.js adds .services-staged, sets data-view (intro | stop | end) on the section and .is-live on the current stop. */
.service-stage { display:contents; }
.service-more,.service-cue,.service-chips { display:none; }
/* Plain list (JS off, reduced motion, motion paused): the hologram takes the place of the small line icon on each card. */
.services:not(.services-staged) .service-icon { display:none; }
.services:not(.services-staged) .service-holo { display:block; width:88px; height:88px; margin:-10px 0 -10px -10px; mix-blend-mode:screen; }
.service-end { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; margin-top:28px; }
.service-end p { margin:0; font-size:16px; color:var(--chapter-soft); }
.service-end .text-call { display:inline-block; min-height:44px; line-height:44px; }
.chapter-site .services.services-staged { display:block; padding:0; max-width:none; height:360svh; } /* 100svh stage + 260svh of travel (shares in services.js: intro 13%, five stops, end 11%); was 560svh, trimmed 22 Nov (Merlon) */
.services-staged .service-stage { --bar:78px; background:var(--chapter-lifted); display:block; position:sticky; top:0; height:100svh; overflow:hidden; }
.services-staged .service-intro { position:absolute; left:6%; right:6%; top:92px; margin:0; opacity:var(--arc,1); }
.services-staged .service-cue { display:block; margin-top:18px; }
.services-staged:not([data-view=intro]) .service-intro,.services-staged:not([data-view=end]) .service-end { opacity:0; visibility:hidden; }
.services-staged .service-end { position:absolute; left:6%; right:6%; bottom:calc(var(--bar) + 72px); margin:0; opacity:var(--arc,1); }
.chapter-site .services-staged .service-list { display:block; position:absolute; inset:0; margin:0; padding:0; overflow:visible; }
.chapter-site .services-staged .service-row.card { position:absolute; inset:0; display:block; min-height:0; padding:0; border:0; background:none; box-shadow:none; transform:none; pointer-events:none; }
.services-staged .service-number,.services-staged .service-icon,.services-staged .service-arrow { display:none; }
/* Hologram. Rest position is the arc (intro and end); the live one comes forward. The images are glowing objects on pure black,
   so screen blending drops the black with no cut-out and no halo. The sticky stage is its own stacking context, which is why it
   repeats the section background above: the blend needs that colour behind it. */
.services-staged .service-holo { --a:calc((var(--i,0) - 2)/2); display:block; position:absolute; left:calc(50% + var(--a)*36%); top:calc(100% - var(--bar) - 124px + max(var(--a),-1*var(--a))*3%); width:15vw; height:15vw; translate:-50% -50%; mix-blend-mode:screen; opacity:var(--arc,1); }
.service-holo img { display:block; width:100%; height:100%; object-fit:contain; }
.services-staged[data-view=stop] .service-holo { opacity:0; }
.services-staged[data-view=stop] .is-live .service-holo { opacity:var(--o,1); scale:var(--s,1); rotate:var(--r,0deg); --size:min(72vw,(100svh - 472px)/1.18); left:50%; top:calc(86px + var(--size)*.59); width:var(--size); height:var(--size); } /* 472px = header + panel + chips + contact bar; 1.18 = the box at full push (scale 1.04, turned 8deg), so it never touches the panel on short phones */
.services-staged[data-view=end] .service-holo { top:calc(34% + max(var(--a),-1*var(--a))*4%); }
/* Panel: solid card under the hologram, so text never sits on the image. */
.chapter-site .services-staged .service-row .service-text { display:block; position:absolute; left:6%; right:6%; bottom:calc(var(--bar) + 58px); padding:22px; border-radius:20px; border:1px solid #2c3a55; background:var(--chapter-dark); box-shadow:0 14px 30px #0006; transform:none; opacity:0; visibility:hidden; pointer-events:auto; }
.chapter-site .services-staged .service-row.is-live .service-text { opacity:var(--po,1); visibility:visible; translate:calc(var(--px,0)*-26px) 0; }
.services-staged .service-text h3 { font-size:26px; margin:0 0 10px; }
.services-staged .service-text p { font-size:16px; line-height:1.5; margin:0; color:var(--chapter-soft); }
.services-staged .service-text .service-loop { font-size:15px; margin-top:14px; padding-top:14px; border-top:1px solid #2c3a55; color:var(--chapter-light); }
.services-staged .service-more { display:inline-block; min-height:44px; line-height:44px; margin-top:6px; font-size:15px; color:var(--chapter-light); text-decoration:underline; text-underline-offset:4px; }
/* Chips: one per stop, 44 px targets. Dots on phone, numbered circles on desktop. */
.services-staged .service-chips { display:flex; justify-content:center; position:absolute; left:0; right:0; bottom:calc(var(--bar) + 6px); }
.service-chips button { width:44px; height:44px; padding:0; border:0; background:none; font:500 0/1 var(--body); color:var(--chapter-soft); cursor:pointer; display:grid; place-items:center; }
.service-chips button::before { content:""; width:10px; height:10px; border-radius:50%; border:1px solid #8d9bb8; transition:background .26s,border-color .26s; }
.service-chips button[aria-current]::before { background:var(--red); border-color:var(--red); }
@media(max-width:999px) and (max-height:740px) { .services-staged[data-view=intro] .service-holo { opacity:0; } } /* short phones: the intro text needs the room the arc would take */
@media(min-width:1000px) {
 .services-staged .service-stage { --bar:0px; }
 .services-staged .service-intro { right:auto; width:46%; top:16%; }
 .services-staged .service-end { right:auto; bottom:auto; top:58%; }
 .services-staged .service-holo { left:calc(50% + var(--a)*30%); top:calc(70% + max(var(--a),-1*var(--a))*5%); width:min(11vw,20svh); height:min(11vw,20svh); }
 .services-staged[data-view=stop] .is-live .service-holo { left:64%; top:50%; width:min(52svh,34vw); height:min(52svh,34vw); } /* right of centre: the panel needs the left third */
 .services-staged[data-view=end] .service-holo { top:calc(30% + max(var(--a),-1*var(--a))*5%); }
 .chapter-site .services-staged .service-row .service-text { right:auto; width:32%; bottom:auto; top:50%; translate:0 -50%; padding:32px; }
 .chapter-site .services-staged .service-row.is-live .service-text { translate:calc(var(--px,0)*-26px) -50%; }
 .services-staged .service-chips { flex-direction:column; left:auto; right:22px; top:50%; bottom:auto; translate:0 -50%; }
 .service-chips button { font-size:11px; border-radius:50%; box-shadow:inset 0 0 0 1px #4d6088; transition:box-shadow .26s,color .26s; }
 .service-chips button::before { display:none; }
 .service-chips button[aria-current] { color:#fff; box-shadow:inset 0 0 0 1px var(--red),inset 0 0 0 44px #cd352633; }
}


/* ===== Section backgrounds, phase 1 (Section Backgrounds Blueprint, 21 Nov): icon pattern -> veil -> brush/wave edge.
   Patterns: work/build-patterns.mjs. Each edge is the section's own colour drawn up over the seam above it.
   Navy-to-navy seams measure 1.06-1.19 contrast, so those edges also carry a light rim (--rim-img). ===== */
.chapter-site { --edge:clamp(18px,3.4vw,44px); --brush:url(assets/patterns/edge-brush.svg); --wave:url(assets/patterns/edge-wave.svg); --brush-rim:url(assets/patterns/edge-brush-rim.svg); --wave-rim:url(assets/patterns/edge-wave-rim.svg); }
.chapter-site main > section:is(.roofing-sample,.trade-pick,.pain,.approach,.services,.recognition,.check,.founder,.faq,.review) { --bgc:var(--chapter-dark); --veil:color-mix(in srgb,var(--bgc) 91%,transparent); --pat:url(assets/patterns/icons-on-dark.svg); --shape:var(--brush); --rim-img:none; border-radius:0; margin-top:0; box-shadow:none; }
.chapter-site main > section:is(.trade-pick,.pain,.approach,.recognition,.check,.founder,.faq,.review) { background-image:linear-gradient(var(--bgc) 0,var(--veil) 15%,var(--veil) 85%,var(--bgc) 100%),var(--pat); background-size:auto,1008px; background-position:0 0,var(--pat-pos,0 0); }
.chapter-site main > section:is(.roofing-sample,.trade-pick,.pain,.approach,.services,.recognition,.check,.founder,.faq,.review)::before,
.chapter-site main > section.review::after { content:""; position:absolute; left:0; right:0; bottom:calc(100% - 1px); height:var(--edge); z-index:2; pointer-events:none; background:var(--rim-img) 0 0/100% 100% no-repeat,var(--bgc); -webkit-mask:var(--shape) 0 0/100% 100% no-repeat; mask:var(--shape) 0 0/100% 100% no-repeat; }
.chapter-site main > section:is(.pain,.services,.check,.faq) { --shape:var(--wave); }
.chapter-site main > section.trade-pick { --pat-pos:-420px -84px; --rim-img:var(--brush-rim); --veil:color-mix(in srgb,var(--bgc) 80%,transparent); } /* 22 Nov: stronger icons here, Merlon */
.chapter-site main > section.pain { --bgc:var(--chapter-deeper); --pat-pos:-252px -168px; --rim-img:var(--wave-rim); }
.chapter-site main > section.services { --bgc:var(--chapter-lifted); }
.chapter-site main > section.check { --pat-pos:-168px -504px; }
.chapter-site main > section.founder { --pat-pos:-588px -336px; --rim-img:var(--brush-rim); }
.chapter-site main > section.review { --pat-pos:-756px -252px; }
/* Paper muted text measures 4.54:1 over a stroke at 88%; 90% gives it headroom (4.8:1). */
.chapter-site main > section.paper { --bgc:var(--paper); --veil:color-mix(in srgb,var(--bgc) 94%,transparent); --pat:url(assets/patterns/icons-on-light.svg); }
.chapter-site main > section.recognition { --pat-pos:-336px -420px; }
.chapter-site main > section.faq { --pat-pos:-84px -672px; }
/* The footer sits outside <main> and clips its overflow, so review draws the footer colour into its own bottom edge. */
.chapter-site main > section.review::after { --bgc:var(--chapter-deeper); --shape:var(--wave); --rim-img:var(--wave-rim); bottom:0; }

/* ===== Section backgrounds, phase 2: frosted glass behind each section's heading + intro block.
   The veil stays at 0.88/0.90 (text outside the glass sits on it too); the glass reads by tint, edge light and shadow. ===== */
.chapter-site main > section.trade-pick > .trade-heading,
.chapter-site main > section:is(.pain,.approach) > .section-heading,
.chapter-site main > section.recognition > .recognition-heading,
.chapter-site main > section.check > .check-heading,
.chapter-site main > section.founder > div,
.chapter-site main > section:is(.faq,.review) > div:first-child {
  position:relative; z-index:1; align-self:start; padding:22px 16px; margin-inline:-10px; border-radius:20px;
  background:#ffffff0d; border:1px solid #ffffff1f; box-shadow:0 1px 0 #ffffff17 inset,0 18px 40px -18px #000a;
  -webkit-backdrop-filter:blur(7px) saturate(1.2); backdrop-filter:blur(7px) saturate(1.2);
}
.chapter-site main > section.paper > :is(.section-heading,.recognition-heading,div:first-child) {
  background:#fffefa99; border-color:#ffffffd9; box-shadow:0 1px 0 #fff inset,0 18px 40px -22px #11182740;
}
@media (min-width:761px) {
  .chapter-site main > section:is(.trade-pick,.pain,.approach,.recognition,.check,.founder,.faq,.review) > :is(.trade-heading,.section-heading,.recognition-heading,.check-heading,div:first-child),
  .chapter-site main > section.founder > div { padding:32px 30px; margin-inline:-30px; }
  /* Trade heading is a short full-width row; hug the text instead of a wide empty pane. */
  .chapter-site main > section.trade-pick > .trade-heading { width:fit-content; max-width:min(100%,720px); }
}
/* No backdrop blur, or the visitor asked for less transparency: a near-solid card, so the text never loses its ground. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .chapter-site main > section:is(.trade-pick,.pain,.approach,.recognition,.check,.founder,.faq,.review) > :is(.trade-heading,.section-heading,.recognition-heading,.check-heading,div:first-child),
  .chapter-site main > section.founder > div { background:color-mix(in srgb,var(--bgc) 94%,#fff); }
  .chapter-site main > section.paper > :is(.section-heading,.recognition-heading,div:first-child) { background:#fffefa; }
}
@media (prefers-reduced-transparency:reduce) {
  .chapter-site main > section:is(.trade-pick,.pain,.approach,.recognition,.check,.founder,.faq,.review) > :is(.trade-heading,.section-heading,.recognition-heading,.check-heading,div:first-child),
  .chapter-site main > section.founder > div { -webkit-backdrop-filter:none; backdrop-filter:none; background:color-mix(in srgb,var(--bgc) 94%,#fff); }
  .chapter-site main > section.paper > :is(.section-heading,.recognition-heading,div:first-child) { background:#fffefa; }
}

/* 22 Nov: trade cards get a 75% navy fill, no glass: icons faint inside, text clean (Merlon 22 Nov). Picked card keeps its solid light fill. */
.chapter-site .trade-options button:not([aria-pressed=true]) { background:color-mix(in srgb,var(--chapter-dark) 75%,transparent); }

/* 22 Nov: readable text +2px (Merlon). Generated from measured sizes; anything already 16px+ untouched. */
.chapter-site .footer-bottom { font-size:11px; }
.chapter-site .footer-top>a:last-child { font-size:16px; }
.chapter-site main > section.check .check-heading>p { font-size:17px; }
.chapter-site main > section.check .check-result ul { font-size:16px; }
.chapter-site main > section.founder .founder-photo figcaption span { font-size:13px; }
.chapter-site main > section.recognition .recognition-heading>p { font-size:18px; }
.chapter-site main > section.review .recommendation p { font-size:15px; }
.chapter-site main > section.review .recommendation .button { font-size:14px; }
.chapter-site main > section.services .service-more { font-size:17px; }
.chapter-site main > section.services:not(.services-staged) .service-text p { font-size:17px; }
.chapter-site main > section.founder p.signature span { font-size:13px; }
.chapter-site main > section.approach p:not([class]) { font-size:17px; }
.chapter-site main > section.approach p.intro-body { font-size:17px; }
.chapter-site main > section.check a.button { font-size:15px; }
.chapter-site main > section.check button:not([class]) { font-size:16px; }
.chapter-site main > section.check p.check-note { font-size:15px; }
.chapter-site main > section.check p.micro { font-size:17px; }
.chapter-site main > section.faq a.text-call { font-size:16px; }
.chapter-site main > section.faq p:not([class]) { font-size:16px; }
.chapter-site main > section.faq summary:not([class]) { font-size:16px; }
.chapter-site main > section.founder figcaption:not([class]) { font-size:17px; }
.chapter-site main > section.founder p:not([class]) { font-size:17px; }
.chapter-site main > section.founder p.signature { font-size:17px; }
.chapter-site main > section.hero a.button { font-size:14px; }
.chapter-site main > section.hero p.eyebrow { font-size:10px; }
.chapter-site main > section.hero p.hero-description { font-size:16px; }
.chapter-site main > section.pain p:not([class]) { font-size:17px; }
.chapter-site main > section.pain strong:not([class]) { font-size:17px; }
.chapter-site main > section.prologue a.button { font-size:15px; }
.chapter-site main > section.recognition p.industry-note { font-size:14px; }
.chapter-site main > section.recognition strong.answer-lead { font-size:18px; }
.chapter-site main > section.review a.button { font-size:14px; }
.chapter-site main > section.review button:not([class]) { font-size:13px; }
.chapter-site main > section.review p.micro { font-size:13px; }
.chapter-site main > section.review p.picker-label { font-size:11px; }
.chapter-site main > section.services a.button { font-size:15px; }
.chapter-site main > section.services p.service-loop { font-size:17px; }
.chapter-site main > section.story a.button { font-size:15px; }
.chapter-site main > section.trade-pick p:not([class]) { font-size:17px; }
.chapter-site main > section.trade-pick small:not([class]) { font-size:14px; }
.chapter-site main > section.trade-pick span:not([class]) { font-size:17px; }
@media(min-width:761px) {
  .chapter-site .footer-bottom { font-size:12px; }
  .chapter-site main > section.recognition .recognition-heading>p { font-size:17px; }
  .chapter-site main > section.recognition .industry-scene figcaption p { font-size:16px; }
  .chapter-site main > section.faq summary:not([class]) { font-size:17px; }
  .chapter-site main > section.hero a.button { font-size:15px; }
  .chapter-site main > section.hero p.eyebrow { font-size:12px; }
  .chapter-site main > section.recognition strong.answer-lead { font-size:17px; }
  .chapter-site main > section.review button:not([class]) { font-size:14px; }
}

/* 22 Nov: niche lines in the trade cards start each word with a capital (Merlon). */
.chapter-site .trade-options button small { text-transform:capitalize; }
/* Bigger text must still fit two cards on a 320px phone: let the columns shrink and long words wrap. */
.chapter-site .trade-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
.chapter-site .trade-options button > span { min-width:0; overflow-wrap:anywhere; hyphens:auto; }
@media(min-width:900px) { .chapter-site .trade-options { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* 22 Nov: a film between the self-check questions and the icon pattern (Merlon). Same 75% navy as the trade cards. */
.chapter-site main > section.check > .check-body { background:color-mix(in srgb,var(--chapter-dark) 75%,transparent); border:1px solid #ffffff1f; border-radius:20px; padding:22px 16px; margin-inline:-10px; }
@media(min-width:761px) { .chapter-site main > section.check > .check-body { padding:32px 30px; margin-inline:-30px; } }

/* 22 Nov: hero caption +4px so people can read it (Merlon): 9 -> 13 phone, 10 -> 14 desktop. Card titles in Title Case like the niches. */
.chapter-site .scene-caption { font-size:13px; letter-spacing:.02em; }
@media(min-width:761px) { .chapter-site .scene-caption { font-size:14px; } }
.chapter-site .trade-options button > span { text-transform:capitalize; }
.chapter-site .hero-stage .scene-caption { top:calc(100% + 8px); bottom:auto; padding-inline:8px; } /* hangs below the stage, so a 2-line wrap on small phones never sits on it */

/* 22 Nov: emphasis, style C (Merlon). Card titles gold (9.4:1 on navy, picked card keeps dark text); heading accent lines red italic (5.5:1). */
.chapter-site .trade-options button:not([aria-pressed=true]) > span { color:#e8b44c; }
.chapter-site main > section:not(.hero) h2 span { color:#f0604f; font-style:italic; }
.chapter-site main > section:is(.approach,.recognition,.faq) h2 span { color:#cd3526; } /* light sections: brand red, coral is too faint on paper */
/* 22 Nov: no Pause button in the header (Merlon: visitors look or leave). Phones set to reduce motion still get the paused version automatically. */
.chapter-site .motion-toggle { display:none; }

/* 22 Nov: industry niche lines in Title Case like the trade cards; a breath of space before each red italic heading line (Merlon). */
.chapter-site .industry-scene figcaption p { text-transform:capitalize; }
.chapter-site main > section:not(.hero) h2 span { display:inline-block; margin-top:.28em; }
/* 22 Nov: pain heading on phone: top 28px, red line 32px (Merlon). */
@media(max-width:760px) { .chapter-site main > section.pain h2 { font-size:28px; } .chapter-site main > section.pain h2 span { font-size:32px; } }
.chapter-site .industry-scene figcaption p .lc { text-transform:none; } /* 22 Nov: "and" stays lowercase inside the Title Case niche line */

/* 22 Nov 2026: trade stills and customer-choice examples. */
.story-photo-credit, .story-example { display:none; }
html:not(.motion-paused) .story-beat:is([data-scene=photo],[data-scene=example]) { height:auto; }
html:not(.motion-paused) .story-beat:is([data-scene=photo],[data-scene=example]) .story-stage,
.story-beat:is([data-scene=photo],[data-scene=example]) .story-stage {
 position:relative; top:auto; height:auto; min-height:0; display:grid; gap:14px;
 align-items:center; padding:clamp(48px,8vw,96px) 6%;
}
.story-beat:is([data-scene=photo],[data-scene=example]) .story-copy {
 position:static; width:auto; padding:0; margin-top:12px; background:none;
}
.story-beat[data-scene=photo] .story-slot {
 position:relative; inset:auto; z-index:auto; display:block; padding:0; background:none;
}
.story-beat[data-scene=photo] .story-media { width:100%; aspect-ratio:4/3; overflow:hidden; border-radius:10px; }
.story-beat[data-scene=photo] .story-poster { object-position:center 35%; }
.story-beat[data-scene=photo] .story-photo-credit { display:block; color:var(--chapter-soft); font-size:14px; }
.story-beat[data-scene=example] .story-slot { display:none; }
.story-beat[data-scene=example] .story-example {
 display:block; margin:0; overflow:hidden; padding:24px; border:1px solid #2c3a55; border-radius:10px;
 color:var(--chapter-dark); background:var(--chapter-light); box-shadow:0 22px 50px #0b111d70;
}
.story-example figcaption {
 margin:-24px -24px 22px; padding:12px 24px; background:#e6e4dd; color:#444743;
 font-size:13px; font-weight:600;
}
.story-example h3 { font-size:clamp(1.4rem,3vw,2.25rem); }
.story-example p { font-size:16px; margin:12px 0 18px; }
.story-example-action { display:block; border-top:1px solid #cbc9bf; padding-top:12px; font-weight:700; }
@media(min-width:900px) {
 .story-beat:is([data-scene=photo],[data-scene=example]) .story-stage {
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
  column-gap:clamp(36px,7vw,100px); padding-inline:max(6%,calc((100% - 1440px)/2 + 48px));
 }
 .story-beat:is([data-scene=photo],[data-scene=example]) .story-copy { grid-column:1; grid-row:1 / span 2; max-width:460px; margin:0; }
 .story-beat[data-scene=photo] :is(.story-slot,.story-photo-credit),
 .story-beat[data-scene=example] .story-example { grid-column:2; }
 .story-beat[data-scene=example] .story-example { grid-row:1 / span 2; }
}

/* 22 Nov 2026: a still from the working sample, with a face-on desktop reveal. */
.chapter-site main > section.roofing-sample {
 max-width:none; margin:0; border-radius:0; box-shadow:none; background:var(--chapter-deeper);
 scroll-margin-top:76px; padding-block:clamp(48px,7vw,96px);
}
.roofing-showcase { max-width:1240px; margin-inline:auto; display:grid; gap:22px; }
.roofing-sample-copy p:not(.roofing-sample-label) { color:var(--muted); font-size:17px; max-width:38ch; margin:16px 0 0; }
.roofing-sample-label { color:var(--muted); font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin:0 0 12px; }
.roofing-sample-copy h2 { max-width:15ch; }
.roofing-browser {
 margin:0; overflow:hidden; border:1px solid #4d6088; border-radius:10px; background:var(--chapter-dark);
 box-shadow:0 1px 0 #ffffff26 inset,0 20px 44px #070b1599;
}
.roofing-browser figcaption { display:flex; align-items:center; gap:10px; padding:8px 12px; color:var(--chapter-soft); font-size:12px; }
.roofing-browser figcaption span { width:6px; height:6px; border-radius:50%; background:#8d9bb8; }
.roofing-browser img { display:block; width:100%; height:auto; }
.roofing-sample-action p { margin:0 0 14px; color:var(--muted); font-size:16px; }
.roofing-sample-action strong { display:block; color:var(--ink); font-weight:600; }
.roofing-sample-action .button { min-height:44px; font-size:15px; }
.roofing-sample-action .button:focus-visible { outline:2px solid var(--chapter-light); outline-offset:4px; }
.roofing-sample-action .button:active { transform:scale(.98); }
@media(min-width:1000px) {
 .roofing-showcase { grid-template-columns:minmax(0,1fr) minmax(0,1.65fr); gap:24px clamp(36px,6vw,88px); }
 .roofing-sample-copy { grid-column:1; grid-row:1; align-self:end; }
 .roofing-preview { grid-column:2; grid-row:1 / span 2; align-self:center; min-width:0; }
 .roofing-sample-action { grid-column:1; grid-row:2; align-self:start; }
}
@supports(animation-timeline:view()) {
 @media(min-width:1000px) and (prefers-reduced-motion:no-preference) {
  html.js:not(.motion-paused) .roofing-showcase { view-timeline-name:--roofing-showcase; }
  html.js:not(.motion-paused) .roofing-browser {
   animation:roofing-face-on linear both;
   animation-timeline:--roofing-showcase;
   animation-range:entry 0% entry 100%;
  }
 }
}
@keyframes roofing-face-on {
 from { transform:perspective(1000px) rotateY(-19deg) rotateX(5deg) scale(.93); }
 to { transform:none; }
}
.chapter-site .services-staged .service-row .service-icon { display:none; } /* 22 Nov: the 5 line icons showed stacked top-left of the stage; line 190 (.service-row.card .service-icon) out-ranked the hide rule on line 404 */
/* 22 Nov: key-phrase highlighter (Merlon: yellow marker, D1 soft arch). mark.hl = hand-drawn gold stroke behind the words; em = italic single words. */
.chapter-site mark.hl { color:var(--ink); font-weight:600; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M3 16Q100-2 197 14L198 30Q100 16 2 34Z' fill='%23e8b44c' fill-opacity='.5'/%3E%3C/svg%3E") no-repeat 0 60%/100% 95%; -webkit-box-decoration-break:clone; box-decoration-break:clone; padding:0 4px; margin:0 -2px; }
.chapter-site :is(.hero,.card-navy,.story-copy,.check,.founder,.review) mark.hl { color:#111827; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M2 6Q100-2 198 6L198 38Q100 30 2 38Z' fill='%23e8b44c' fill-opacity='.92'/%3E%3C/svg%3E"); background-size:100% 130%; background-position:0 50%; } /* on navy a 50% gold turns to brown mud: near-solid gold + navy ink instead (about 9:1); a thicker, flatter arch so every letter sits on gold */

/* 2026-11-22: customer route. Each leg connects consecutive marker centers. */
.chapter-site .approach {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:start;gap:clamp(28px,5vw,80px)}
.approach .section-heading {margin:0}
.approach .customer-photo {margin-top:22px}
.stakes .customer-photo {margin:0 0 18px}
.customer-route {--marker:36px;position:relative;list-style:none;padding:0;margin:0;color:#111827}
.customer-route li {display:grid;grid-template-columns:var(--marker) minmax(0,1fr);gap:14px;position:relative;padding-bottom:24px}
.customer-route li:last-child {padding-bottom:0}
.customer-route li:not(:last-child)::before,.customer-route li:not(:last-child)::after {content:"";position:absolute;left:calc(var(--marker)/2 - 1.5px);width:3px;top:calc(var(--marker)/2);height:100%;background:#111827}
.customer-route li:not(:last-child)::after {background:#e8b44c;transform:scaleY(var(--fill,1));transform-origin:top}
.route-number {position:relative;z-index:1;display:grid;place-items:center;width:var(--marker);height:var(--marker);border-radius:50%;background:#e8b44c;border:1px solid #111827;font:italic 22px Georgia,serif}
.route-phase {font-size:12px;text-transform:uppercase;letter-spacing:.11em;font-weight:700}
.customer-route h3 {display:flex;align-items:baseline;gap:.35em;font-size:clamp(22px,2vw,30px);line-height:1.14;margin:4px 0 7px;color:#111827}
.customer-route p {margin:0;line-height:1.5;color:#111827}
.step-check {flex:none;position:relative;width:.74em;height:.74em;border:1.5px solid currentColor;border-radius:3px;background:#e8b44c}
.step-check::after {content:"";position:absolute;left:28%;top:5%;width:25%;height:53%;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.step-title {background:linear-gradient(transparent 75%,rgb(232 180 76 / .54) 75%,rgb(232 180 76 / .54) 96%,transparent 96%)}
html:not(.motion-paused) .customer-route .ahead :is(.route-number,.step-check){background:#f5f3ed}
html:not(.motion-paused) .customer-route .ahead .step-title{background:none}
html:not(.motion-paused) .customer-route .ahead .step-check::after{opacity:0}
.motion-paused .customer-route li::after{transform:none}
@media(max-width:760px){.chapter-site .approach{grid-template-columns:1fr;gap:24px}.customer-route{--marker:32px}.customer-route li{padding-bottom:18px}.approach .customer-photo{aspect-ratio:3}}
/* 22 Nov fix: cream highlights used the muted text colour (3.75-4.38:1 on the gold); now ink #232622. The hero joins the solid-gold group because it turns navy on desktop. */
/* 22 Nov: showcase now links the Sanctuary Foundation sample, with Premium as a second link (Merlon). */
.roofing-sample-action .sample-alt { display:inline-flex; align-items:center; min-height:44px; margin-left:18px; color:var(--ink); font-size:15px; font-weight:600; text-decoration:underline; text-underline-offset:4px; }
/* 23 Nov: the sample showcase gets the same brush top edge as every other chapter (check-shell). */
.chapter-site main > section.roofing-sample { --bgc:var(--chapter-deeper); --rim-img:var(--brush-rim); position:relative; } /* 23 Nov: now follows the navy services stage, so the seam carries the light rim like the other navy-to-navy edges */
/* 23 Nov: one button label on the page is "Let’s talk" (check-shell), so the sample opens from a strong text link. */
.roofing-sample-action .sample-open { display:inline-flex; align-items:center; min-height:44px; color:#f0604f; font-size:17px; font-weight:700; text-decoration:underline; text-underline-offset:5px; }
.roofing-sample-action .sample-alt { margin-left:0; } .roofing-sample-action .sample-open { margin-right:22px; }

/* 23 Nov: a cream card inside a navy section inherits cream --ink, so its highlight text was cream on cream. Pin it to ink. */
.chapter-site .card-paper mark.hl { color:#232622; }

/* 23 Nov: desktop icons in "What do you do?" read too strong (Merlon); match the other sections (91% veil). Phone keeps the stronger 80% from 22 Nov. */
@media(min-width:761px){ .chapter-site main > section.trade-pick { --veil:color-mix(in srgb,var(--bgc) 91%,transparent); } }

/* 23 Nov: phone stage is ~343px wide, so the 1300px desktop camera flattened the tilt to a skew (Merlon: "barely moves"). Same width-to-depth ratio as desktop. */
@media(max-width:760px){ .chapter-site .hero .scene { perspective:650px; } }
/* 23 Nov: touch tilt (script.js followTouch) eases in and back instead of snapping. Phones only. */
@media(max-width:760px) and (prefers-reduced-motion:no-preference){ .chapter-site .hero .scene-assembly { transition:transform .25s ease-out; } }
