/* ============================================================
   HOMEPAGE · builds only on tokens and components in site.css
   ============================================================ */

/* ---------- Hero: inset photo, copy over a dark gradient ---------- */
.hero { padding: var(--s4) max(var(--s4), env(safe-area-inset-right, 0px)) 0 max(var(--s4), env(safe-area-inset-left, 0px)); }
.hero-frame { position: relative; min-height: clamp(560px, 84vh, 860px); border-radius: 8px; overflow: hidden; background: var(--ink); display: grid; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease); }
.hero-video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--shade), .84) 0%, rgba(var(--shade), .58) 42%, rgba(var(--shade), .06) 78%), linear-gradient(180deg, rgba(var(--shade), 0) 60%, rgba(var(--shade), .35) 100%); }
.hero-copy { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); justify-items: start; max-width: 820px; min-width: 0; padding: clamp(var(--s6), 5vw, 72px); color: var(--white); }
.hero-copy h1 { color: var(--white); }
.hero-copy h1 em { color: var(--accent); }
.hero-copy > p { color: rgba(255, 255, 255, .86); max-width: 54ch; }
.hero-copy > .hero-lead { color: var(--white); font-size: var(--t-sub); font-weight: 500; line-height: 1.35; max-width: 30ch; }
/* proof under the buttons: the two verified review scores, always in view */
.hero-copy > .hero-proof { display: flex; flex-wrap: wrap; gap: 0 var(--s6); width: 100%; max-width: 640px; padding-top: var(--s4); border-top: var(--rule) solid rgba(255, 255, 255, .24); font-size: var(--t-ui); }
.hero-proof a { color: rgba(255, 255, 255, .86); text-decoration: none; padding-block: 5px; }
.hero-proof b { color: var(--white); font-weight: 600; }
.hero-proof a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.hero-copy .actions { margin-top: var(--s2); }
.hero-card { position: absolute; right: clamp(var(--s5), 3vw, 40px); bottom: clamp(var(--s5), 3vw, 40px); width: 326px; background: var(--white); border-radius: var(--r); padding: 12px; display: grid; gap: 12px; text-decoration: none; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero-card-img { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; }
.hero-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card-text { display: grid; gap: 3px; padding: 2px 7px 7px; }
.hero-card-text b { font-family: var(--display); font-weight: 600; font-size: var(--t-h3); }
.hero-card-text span { font-size: var(--t-ui); color: var(--muted); }

/* ---------- Introduction and stats ---------- */

/* ---------- Featured project ---------- */

/* ---------- Approach ---------- */

/* ---------- Why: staggered photo cards ---------- */
.link .arrow { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- FAQ with photo ---------- */

/* ---------- Advice teaser ---------- */

/* ---------- Estimate band ---------- */
.estimate { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding-block: clamp(var(--s8), 9vw, 120px); }
/* wood behind the band (Shane, 25 Nov 2026): the same 1800px herringbone texture as the process band, mirrored so the two
   bands do not repeat, under the same charcoal shade. Fetched only as the band approaches (home.js adds .bg-on).
   The 750px photo that sat here before was shown at nearly twice its size and was removed on 21 Nov 2026. */
.estimate::before { content: ""; position: absolute; inset: 0; background: var(--ink); }
.estimate.bg-on::before { background: linear-gradient(rgba(var(--shade), .88), rgba(var(--shade), .88)), var(--ink) url("photos/process-herringbone.jpg") center / cover no-repeat; transform: scaleX(-1); }
.estimate-copy h2, .estimate-copy > p { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.estimate-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7) var(--s8); align-items: center; }
.estimate-copy { display: grid; gap: var(--s4); justify-items: start; }
.estimate-copy h2 { max-width: 20ch; color: var(--white); }
.estimate-copy > p:not(.fine) { color: rgba(255, 255, 255, .82); max-width: 52ch; }
.estimate-copy .btn { margin-top: var(--s2); }
.estimate-copy .fine { font-size: var(--t-small); color: rgba(255, 255, 255, .6); max-width: 60ch; }
.estimate-card { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; max-width: 680px; justify-self: end; width: 100%; }
.estimate-card canvas { display: block; width: 100%; aspect-ratio: 16 / 11; background: var(--off); border-radius: var(--r-sm); }
.estimate-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 4px 8px 6px; font-size: var(--t-small); color: var(--muted); }
.estimate-card-foot b { font-family: var(--display); font-weight: 600; font-size: var(--t-body); color: var(--ink); }

/* ---------- Responsive ---------- */
/* the card sits over the hero paragraph below this width */
@media (max-width: 1180px) { .hero-card { display: none; } }
@media (max-width: 1080px) {
}
@media (max-width: 960px) {
  .hero-frame { min-height: clamp(520px, 74vh, 720px); }
  /* the words span the frame here, so the shade is even across it: white text holds 4.5 to 1 on the brightest video frame */
  .hero-shade { background: linear-gradient(180deg, rgba(var(--shade), .7) 0%, rgba(var(--shade), .64) 45%, rgba(var(--shade), .8) 100%); }
  .estimate-grid { gap: var(--s6); }
}
@media (max-width: 760px) {
  .estimate-grid { grid-template-columns: minmax(0, 1fr); }
  .estimate-card { justify-self: start; }
}
@media (max-width: 640px) {
  .hero { padding: var(--s2) max(var(--s2), env(safe-area-inset-right, 0px)) 0 max(var(--s2), env(safe-area-inset-left, 0px)); }
  .hero-frame { min-height: 78vh; border-radius: var(--r); }
  .hero-copy { padding: var(--s5); gap: var(--s4); }
  .hero-copy .actions, .hero-copy .btn { width: 100%; }
  .estimate-copy .btn { width: 100%; }
  /* phone: the centre panel sits above the cards instead of over them */
}

/* ---------- What we do ---------- */

/* showroom: copy first on desktop, photo first on phones */

/* ---------- Meet Mark: photo and story left, USPs and figure blocks right ---------- */
.meet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7) clamp(var(--s7), 5vw, 80px); align-items: stretch; }
.meet-media { display: grid; min-width: 0; }
.meet-media .photo { aspect-ratio: auto; height: 100%; min-height: 420px; }
.meet-body { display: grid; gap: var(--s5); justify-items: start; min-width: 0; }
.meet-body h2 { max-width: 20ch; }
.meet-body > p { color: var(--muted); max-width: 60ch; }
.meet-points { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); width: 100%; font-size: var(--t-ui); }
.meet-points li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.meet-points li::before { content: ""; flex: none; width: 8px; height: 8px; margin: .5em 4px 0; background: var(--ink); transform: rotate(45deg); }
@media (max-width: 960px) { .meet { gap: var(--s6); } .meet-points { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .meet { grid-template-columns: minmax(0, 1fr); }
  .meet-media .photo { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}
@media (max-width: 520px) {
  .meet-body .btn { width: 100%; }
}

/* ---------- Motion: homepage entrance ---------- */
@keyframes mr-hero-scale { from { transform: scale(1.025); } to { transform: none; } }
.motion .hero-img { animation: mr-hero-scale 1400ms var(--ease) both; }   /* no fade: the photo is the LCP and paints at once */
.motion .hero-video { animation: mr-hero-scale 1400ms var(--ease) both; }
.motion .hero-copy > * { animation: mr-rise 720ms var(--ease) both; }
.motion .hero-copy > h1 { animation-delay: 200ms; }
.motion .hero-copy > .hero-lead { animation-delay: 320ms; }
.motion .hero-copy > p:not(.hero-lead) { animation-delay: 400ms; }
.motion .hero-copy > .hero-proof { animation-delay: 660ms; }
.motion .hero-copy > .actions { animation: none; }
.motion .hero-copy .actions > .btn { animation: mr-rise 640ms var(--ease) both; animation-delay: 480ms; }
.motion .hero-copy .actions > .btn + .btn { animation-delay: 570ms; }
.motion .hero-card { animation: mr-rise 720ms var(--ease) 650ms both; }
/* review tabs crossfade when switching source */

/* ---------- Our work: project index left, large photo right ---------- */
.work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; grid-template-areas: "head stage" "list stage" "foot stage"; gap: var(--s5) clamp(var(--s7), 5vw, 96px); }
.work > .sec-head { grid-area: head; }
.work-stage { grid-area: stage; position: relative; min-height: 560px; border-radius: 8px; overflow: hidden; background: var(--off); }
.work-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity var(--t-reveal) var(--ease), transform 1400ms var(--ease); }
.work-stage img.on { opacity: 1; transform: none; }
.work-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: var(--r-sm); padding: 4px 9px; font-size: var(--t-small); font-weight: 500; }   /* a caption, drawn like the gallery captions */
.work-list { grid-area: list; list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--line); }
.work-list button { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--s4); padding: 14px 0; background: none; border: 0; border-bottom: var(--rule) solid var(--line); font: inherit; text-align: left; color: var(--muted); cursor: pointer; transition: color var(--t) var(--ease); }
.work-list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--rule) * -1); height: var(--rule-strong); background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-reveal) var(--ease); }
.work-list b { grid-column: 1; font-family: var(--display); font-weight: 500; font-size: var(--t-sub); color: inherit; }
.work-list span { grid-column: 1; font-size: var(--t-small); }
.work-list svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-6px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.work-list button:hover, .work-list button.on { color: var(--ink); }
.work-list button.on::after { transform: scaleX(1); }
.work-list button.on svg { opacity: 1; transform: none; }
.work-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.work-foot { grid-area: foot; display: grid; gap: var(--s5); align-content: end; justify-items: start; }
.work-foot p { color: var(--muted); max-width: 52ch; min-height: 3.3em; }
@media (max-width: 960px) { .work { gap: var(--s5) var(--s6); } .work-stage { min-height: 460px; } }
@media (max-width: 720px) {
  .work { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "stage" "list" "foot"; }
  .work-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .work-foot p { min-height: 0; }
}
@media (max-width: 560px) { .work-foot .btn { width: 100%; } }

/* pause control (WCAG 2.2.2): keyboard and touch, not only hover */
/* motion off: a still row the visitor can scroll */

/* ---------- Our process: grey herringbone behind a charcoal overlay ---------- */
#process { background: var(--ink); }
/* the texture is fetched only as the section approaches (home.js adds .bg-on) */
#process.bg-on { background: linear-gradient(rgba(var(--shade), .88), rgba(var(--shade), .88)), var(--ink) url("photos/process-herringbone.jpg") center / cover no-repeat; }

/* ---------- Homepage try-out: Mark's floor engine, laid to scale ---------- */
.tryout { gap: 12px; }
.try-controls { display: grid; gap: var(--s4); padding: var(--s2) 8px 8px; }
.try-row { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s2); }
.try-row legend { padding: 0; margin-bottom: var(--s2); font-size: var(--t-ui); font-weight: 600; color: var(--ink); }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.try-chips label { position: relative; }
.try-chips input, .try-finishes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.try-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--pill); border: var(--rule) solid var(--line-strong); font-size: var(--t-ui); font-weight: 500; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
.try-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.try-chips input:focus-visible + span, .try-finishes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.try-finishes { display: flex; flex-wrap: wrap; gap: 10px; }
.try-finishes label { position: relative; display: grid; gap: 6px; justify-items: center; font-size: var(--t-small); color: var(--muted); width: 88px; text-align: center; }
.try-finishes span { width: 100%; height: 42px; border-radius: var(--r-sm); border: 2px solid transparent; overflow: hidden; transition: border-color var(--t) var(--ease); }
.try-finishes canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.try-finishes input:checked + span { border-color: var(--ink); }
.try-finishes input:checked ~ em { color: var(--ink); font-weight: 600; }
.try-finishes em { font-style: normal; }
.try-dims { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--s4); row-gap: var(--s3); }
.try-dims label { font-size: var(--t-ui); font-weight: 600; color: var(--ink); white-space: nowrap; }
.try-dims output { font-weight: 400; color: var(--muted); margin-left: 6px; }
.try-dims input[type="range"] { width: 100%; accent-color: var(--ink); min-height: 24px; }
.try-go { justify-self: start; }
@media (max-width: 560px) { .try-go { width: 100%; } .try-finishes label { width: calc(33.333% - 7px); } }

/* ---------- Every room: a page from the sample book (rows generated from the floor data) ---------- */
.floors-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5) var(--s7); }
.floors-head .link { margin-bottom: 6px; }
.sample-book { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(var(--s6), 5vw, 80px); }
.sample { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: var(--s5); padding: var(--s4) 0; text-decoration: none; color: inherit; border-bottom: var(--rule) solid var(--line-strong); min-height: 144px; }
.sample-book > li:nth-child(-n + 2) .sample { border-top: var(--rule) solid var(--line-strong); }
.sample-swatch { position: relative; display: block; width: 112px; height: 112px; border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
/* zoom into the floor itself, so the photo reads as the material */
.sample-swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; transform: scale(1.9); transform-origin: 50% 92%; transition: transform 700ms var(--ease); }
.sample:hover .sample-swatch img { transform: scale(2.05); }
.sample-text { display: grid; gap: 6px; min-width: 0; }
.sample-text b { font-family: var(--serif); font-weight: 400; font-size: var(--t-sub); line-height: 1.15; letter-spacing: -.01em; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-color var(--t) var(--ease); }
.sample:hover .sample-text b, .sample:focus-visible .sample-text b { text-decoration-color: var(--accent); }
.sample-text span { color: var(--muted); font-size: var(--t-body); line-height: 1.5; }
.sample-arrow { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t) var(--ease); }
.sample:hover .sample-arrow { transform: translateX(4px); }
.sample:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
/* a floor with no photo of its own: a plain tile with the logo's diamond, never a borrowed photo */
.sample-swatch canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sample-swatch.none { background: var(--white); border: var(--rule) solid var(--line); display: grid; place-items: center; }
.sample-swatch.none::before { content: ""; width: 30%; aspect-ratio: 1; border: var(--rule-strong) solid var(--line-strong); transform: rotate(45deg); }
@media (max-width: 900px) {
  .sample-book { grid-template-columns: minmax(0, 1fr); }
  .sample-book > li:nth-child(2) .sample { border-top: 0; }
}
@media (max-width: 480px) {
  .sample { grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--s4); min-height: 116px; }
  .sample-swatch { width: 84px; height: 84px; }
}

/* ---------- Reviews under the people section ---------- */

/* ---------- What the team takes care of: a plain list under the steps ---------- */

/* ---------- Showroom beside the questions ---------- */

/* =====================================================================================
   Sections pass (22 Nov 2026): reviews, process, services, showroom and questions each
   get their own section and their own layout, with one idea and far fewer words on show.
   ===================================================================================== */

/* ---------- Reviews: the two scores beside the heading, then one quote on stage at a time ---------- */
.rev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6) clamp(var(--s7), 6vw, 96px); align-items: end; }
.rev-scores { margin: 0; display: flex; align-items: start; gap: clamp(var(--s6), 4vw, var(--s8)); }
.rev-scores > div { display: grid; gap: var(--s2); }
.rev-scores dt b { font-family: var(--serif); font-weight: 400; font-size: var(--t-h2); line-height: .95; letter-spacing: -.02em; color: var(--ink); }
.rev-scores dd { margin: 0; font-size: var(--t-ui); line-height: 1.45; color: var(--muted); }
.rev { margin-top: clamp(var(--s7), 5vw, 72px); padding-top: clamp(var(--s7), 5vw, 72px); border-top: var(--rule) solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s7) clamp(var(--s7), 8vw, 136px); align-items: start; }
.rev-stage { display: grid; gap: var(--s7); min-width: 0; }
.rev-stage figure { margin: 0; display: grid; gap: var(--s5); align-content: start; }
.rev-stage blockquote { margin: 0; }
.rev-stage .quote { font-family: var(--serif); font-size: var(--t-h2-sm); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.rev-stage .who { font-family: var(--display); font-weight: 600; font-size: var(--t-ui); color: var(--ink); }
.rev-stage .who span { display: block; margin-top: 2px; font-family: var(--body); font-weight: 400; font-size: var(--t-small); color: var(--muted); }
/* with the script running: quotes share one cell (so the block never changes height); the old one goes at once and the new one fades in, so two quotes never overlap */
.rev.on .rev-stage { gap: 0; }
.rev.on .rev-stage figure { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.rev.on .rev-stage figure.on { visibility: visible; opacity: 1; transition: opacity var(--t) var(--ease); }
.rev-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--line-strong); }
.rev-list button { position: relative; width: 100%; min-height: 64px; display: grid; gap: 2px; align-content: center; padding: var(--s3) 0 var(--s3) 26px; background: none; border: 0; border-bottom: var(--rule) solid var(--line-strong); font: inherit; text-align: left; color: var(--muted); cursor: pointer; transition: color var(--t) var(--ease); }
.rev-list button::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--ink); transform: rotate(45deg) scale(0); transition: transform var(--t) var(--ease); }
.rev-list b { font-family: var(--display); font-weight: 600; font-size: var(--t-body); color: inherit; }
.rev-list span { font-size: var(--t-small); }
.rev-list button:hover, .rev-list button.on { color: var(--ink); }
.rev-list button.on::before { transform: rotate(45deg) scale(1); }
.rev-list button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.rev-side { display: grid; gap: var(--s5); min-width: 0; justify-items: start; }
.rev-side .rev-list { width: 100%; }
.rev-more { margin: 0; }
.rev-more .link { position: relative; }
.rev-more .link::after { content: ""; position: absolute; inset: -8px 0; }   /* a 44px tap area without moving the underline */
@media (max-width: 960px) {
  .rev-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .rev { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
}
@media (max-width: 560px) {
  .rev-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; column-gap: var(--s4); }   /* four names as two by two */
  .rev-list button { height: 100%; min-height: 60px; padding-left: 22px; }
}

/* ---------- Process: four steps along one rule, each starting with the diamond ---------- */
.proc-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5) var(--s7); }
.steps { list-style: none; margin: clamp(var(--s7), 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(var(--s5), 3vw, var(--s7)); row-gap: var(--s7); counter-reset: step; }
.steps li { position: relative; counter-increment: step; display: grid; gap: var(--s3); align-content: start; padding-top: var(--s6); border-top: var(--rule) solid rgba(255, 255, 255, .32); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: var(--t-h2); line-height: 1; letter-spacing: -.02em; color: var(--gold); margin-bottom: var(--s3); }
.steps li::after { content: ""; position: absolute; left: 2px; top: 0; width: 9px; height: 9px; background: var(--gold); transform: translateY(calc(-50% - var(--rule) / 2)) rotate(45deg); }
.steps h3 { font-family: var(--serif); font-size: var(--t-sub); font-weight: 400; color: var(--white); }
.steps p { color: rgba(255, 255, 255, .88); max-width: 34ch; }
#process h2, #process .steps h3, #process .sec-head p { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
#process .sec-head p { color: rgba(255, 255, 255, .88); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .steps li { grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s3); row-gap: var(--s1); align-items: baseline; padding: var(--s5) 0; }
  .steps li::before { grid-row: 1 / span 2; font-size: var(--t-h2-sm); margin: 0; }
  .steps p { max-width: none; }
  .proc-head .btn { width: 100%; }
}

/* ---------- Services: the heading across the top, then an index of six in two columns ---------- */
.care { display: grid; gap: clamp(var(--s7), 5vw, 72px); }
.care-head { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(var(--s6), 4vw, 64px); align-items: end; }
.care-head h2 { max-width: 16ch; }
.care-head > p:last-child { max-width: 46ch; }
.care-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(var(--s6), 4vw, 64px); }
.care-list a { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: var(--s2) var(--s5); align-content: start; padding: var(--s5) 0 var(--s6); border-top: var(--rule) solid var(--line-strong); text-decoration: none; color: inherit; }
.care-list b { grid-column: 1; font-family: var(--serif); font-weight: 400; font-size: var(--t-sub); line-height: 1.2; color: var(--ink); }
.care-list span { grid-column: 1; grid-row: 2; color: var(--muted); line-height: 1.55; max-width: 44ch; }
.care-list .arrow { grid-column: 2; grid-row: 1; align-self: center; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t) var(--ease); }
.care-list a:hover .arrow, .care-list a:focus-visible .arrow { transform: translateX(4px); }
.care-list a:hover b, .care-list a:focus-visible b { text-decoration: underline; text-decoration-thickness: var(--rule); text-underline-offset: 5px; }
@media (max-width: 760px) {
  .care-head { grid-template-columns: minmax(0, 1fr); }
  .care-list { grid-template-columns: minmax(0, 1fr); }
  .care-list a { padding-bottom: var(--s5); }
}


/* ---------- Questions: the heading and "ask Mark" on the left, the answers on the right ---------- */
.faq-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "head list" "more list"; grid-template-rows: auto 1fr; gap: var(--s6) clamp(var(--s7), 8vw, 136px); align-items: start; }
.faq-sec > h2 { grid-area: head; max-width: 14ch; }
.faq-sec > .faq { grid-area: list; }
.faq-more { grid-area: more; display: grid; gap: var(--s4); justify-items: start; }
.faq-more p { margin: 0; display: grid; gap: 4px; }
.faq-more b { font-family: var(--display); font-weight: 600; font-size: var(--t-h3); }
.faq-more span { color: var(--muted); font-size: var(--t-ui); max-width: 34ch; }
.faq-more-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 960px) {
  .faq-sec { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "more"; grid-template-rows: none; }
  .faq-sec > h2 { max-width: 22ch; }
  .faq-more span { max-width: none; }
}
@media (max-width: 560px) { .faq-more-actions, .faq-more-actions .btn { width: 100%; } }

/* ---------- Guides (25 Nov 2026): article cards on a rail. It starts on the page's left line and runs off the right
   edge of the screen; arrow buttons, swipe, trackpad and the Tab key all move along it ---------- */
.guides-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4) var(--s6); }
.rail-nav { display: flex; gap: var(--s2); }
.rail-nav button { width: 52px; height: 52px; display: grid; place-items: center; padding: 0; background: var(--ink); color: var(--white); border: var(--rule-strong) solid var(--ink); border-radius: var(--r); cursor: pointer; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease); }
.rail-nav button:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--white); }
.rail-nav button:disabled { background: none; border-color: var(--line-strong); color: var(--soft); cursor: default; }
.rail-nav button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.rail-nav .arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-nav button[data-dir="-1"] .arrow { transform: rotate(180deg); }
.guide-rail { --edge: max(var(--gutter), calc((100% - var(--container)) / 2));   /* the same left line as .wrap */
  list-style: none; margin: clamp(var(--s6), 4vw, var(--s7)) 0 0; padding: 4px var(--edge) var(--s3); display: flex; gap: clamp(var(--s4), 2vw, var(--s5));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.guide-rail::-webkit-scrollbar { display: none; }
/* card width is set so the next card always shows about a third: the rail visibly carries on off the page. Never wider than the 750px photo files */
.guide-rail > li { flex: 0 0 min(74vw, 300px); display: flex; scroll-snap-align: start; }
@media (min-width: 600px) { .guide-rail > li { flex-basis: 41vw; } }
@media (min-width: 960px) { .guide-rail > li { flex-basis: min(27.3vw, 400px); } }
/* the cards themselves are in site.css: the Advice page uses them too */
@media (max-width: 720px) { .rail-nav button { width: 48px; height: 48px; } }
