:root {
  --ink: #1b1a17;
  --paper: #f7f4ee;
  --paper-dim: #efeae0;
  --gold: #a9834f;
  --gold-deep: #7c5f36;
  --line: rgba(27,26,23,0.12);
  --serif: 'Cormorant Garamond', 'Source Serif 4', serif;
  --sans: 'Outfit', sans-serif;
}

* { box-sizing: border-box; }
/* No global scroll-behavior:smooth: it actively fights GSAP ScrollTrigger's scrub-driven
   animations, compounding with repeated wheel events into runaway scroll jumps (confirmed
   6 Nov 2026: one 300px wheel tick advanced scrollY by over 5000px with this rule in place,
   vs exactly 300px without it). This was the real cause of the Reviews section appearing to
   "stop after three scrolls", the page was rocketing past most of the track, not getting
   stuck. Nav anchor links fall back to the browser's default instant jump, acceptable here. */
/* Revision 9 polish pass: confirmed by direct measurement (document.documentElement.scrollWidth
   > clientWidth on mobile) that transformed elements (the 3D review ring, the off-stage story
   handoff layers) were contributing to the page's scrollable width even where visually clipped
   by a closer overflow:hidden ancestor, a real cross-browser quirk with 3D transforms and
   scrollable overflow, not assumed. This is the actual fix for "the top going out the side."
   `overflow-x: hidden` on `html` ONLY, never on `body`: adding it to body too was tried first
   and broke every `position: sticky` pin in this build (.story__pin, .why-scene__pin,
   .reviews__pin all stopped sticking, confirmed by reading their live getBoundingClientRect()
   mid-scroll, a well-known CSS interaction, not assumed). html alone fixes the horizontal
   scrollbar without touching sticky's containing-block calculation. */
html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; }
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
section { padding: 7rem 6vw; max-width: 1280px; margin: 0 auto; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.9rem; font-weight: 500;
}

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(247,244,238,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 1.1rem 6vw;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: block; line-height: 0; }
/* Revision 23: the client's stacked logo needs more height than the old one-line placeholder; the
   negative margin keeps the bar's height unchanged. */
.nav__brand img { height: 54px; width: auto; margin: -0.7rem 0; }
.nav__links { display: flex; gap: 2rem; font-size: 0.92rem; }
.nav__links a:hover { color: var(--gold-deep); }
.nav__actions { display: flex; gap: 0.75rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 2px;
  font-size: 0.88rem; letter-spacing: 0.02em; transition: transform .25s ease, background .25s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn--outline { border: 1px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { color: var(--ink); opacity: .8; }

/* hero. Revision 25: the text sits in .hero__content inside .hero__pin. Without JS it is the
   original paper hero; main.js adds .is-scrub (pinned construction scroll) or .is-static
   (reduced motion: finished building behind the text, ordinary flow). */
.hero {
  position: relative; padding: 0; max-width: none;
  /* Revision 31: the v36 film is 16:9 and carries its own street and neighbours, so it covers the
     screen on its own. The Revision 25/26 wide backdrop, moving sky layer and --film-crop-* side
     mask were removed (the backdrop is a different scene; no seams, no extra cloud motion). */
}
.hero__pin {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; position: relative;
  background: radial-gradient(circle at 50% 20%, var(--paper-dim), var(--paper) 70%);
}
.hero__content {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  padding: 6rem 6vw 7rem; max-width: 1280px;
}
.hero__scene, .hero__veil, .hero__stage, .hero__progress { display: none; }
.hero.is-scrub .hero__pin, .hero.is-static .hero__pin {
  height: 100vh; height: 100lvh; min-height: 0; overflow: hidden;
  /* sky above the film, only seen on tall phone screens (Revision 31: the v36 film's own sky blue) */
  background: linear-gradient(180deg, #1f63c6 0%, #236bcc 45%, #444346 55%, #434245 100%);
}
.hero.is-scrub .hero__pin { position: sticky; top: 0; }
.hero.is-scrub .hero__scene, .hero.is-static .hero__scene { display: block; position: absolute; inset: 0; }
.hero__canvas { position: absolute; left: 0; top: 0; display: block; max-width: none; }
.hero.is-narrow .hero__canvas {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 100%);
}
.hero.is-scrub .hero__veil, .hero.is-static .hero__veil {
  display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Revision 26: a light wash only (was .9/.78). Revision 28: softer again, .62/.50 -> .50/.40
     (heading and subtext still AA, measured in renders/revision-28/contrast.mjs) */
  background: radial-gradient(ellipse 58% 62% at 50% 54%, rgba(247,244,238,.5) 0%, rgba(247,244,238,.4) 48%, rgba(247,244,238,0) 100%);
}
.hero.is-scrub .hero__content { will-change: opacity, transform; }
/* inside the fixed-height pin the text must fit under the nav on short laptop screens */
.hero.is-scrub .hero__content, .hero.is-static .hero__content { padding: 5.5rem 6vw 2.5rem; }
@media (max-height: 760px) and (min-width: 700px) {
  .hero.is-scrub .hero__badge, .hero.is-static .hero__badge { margin-bottom: 1rem; }
  .hero.is-scrub .hero__sub, .hero.is-static .hero__sub { margin: 1.1rem 0 1.5rem; }
  .hero.is-scrub .hero__stats, .hero.is-static .hero__stats { margin-bottom: 1.6rem; }
}
.hero.is-scrub .hero__stage {
  display: flex; flex-direction: column; position: absolute; z-index: 3; left: 6vw; bottom: 3.6rem;
  color: #fff; text-align: left; opacity: 0; pointer-events: none;
  text-shadow: 0 1px 14px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
  /* Revision 29: a soft dark backing and a firmer shadow so the label reads over any frame */
  padding: .7rem 1.1rem .8rem; border-radius: 4px; margin-left: -1.1rem;
  background: linear-gradient(90deg, rgba(12,11,9,.5), rgba(12,11,9,.28) 75%, rgba(12,11,9,0));
  text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 16px rgba(0,0,0,.55);
}
.hero__stage-num { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 1; color: #f1dcb2; }
.hero__stage-title { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; margin-top: .3rem; }
.hero__stage-title.is-in { animation: stageIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes stageIn { from { transform: translateY(14px); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
/* Revision 31: the stage label sits above the stage timeline. --bar-gap = the part of the 100lvh pin hidden
   behind a phone's address/tool bar while it shows (0 on desktop), so the label and timeline stay visible. */
.hero { --bar-gap: 0px; }
@supports (height: 100lvh) { .hero { --bar-gap: calc(100lvh - 100svh); } }
.hero.is-scrub .hero__stage { bottom: calc(5.4rem + var(--bar-gap)); }
/* reduced motion shows the full timeline at once: the static scroll hint sits above it (wide screens);
   on phones the buttons and timeline fill the bottom, so the hint is left out there */
.hero.is-static .hero__scroll { bottom: calc(4.6rem + var(--bar-gap)); }
.hero.is-static.is-narrow .hero__scroll { display: none; }
@media (max-height: 800px) { .hero.is-static .hero__scroll { display: none; } } /* no room under the buttons */
/* Revision 31: stage timeline (replaces the short progress line). Full width inside the side padding;
   the right edge clears the WhatsApp/Call buttons (--tl-right, measured in main.js). Major ticks at each
   stage's start (--at, from STAGES in main.js), minor ticks evenly spaced, gold fill = scrub progress. */
.hero.is-scrub .hero__progress, .hero.is-static .hero__progress {
  display: block; position: absolute; z-index: 3; left: 6vw; right: var(--tl-right, 6vw); bottom: calc(1.3rem + var(--bar-gap));
  height: 2.4rem; opacity: 0; --minor: calc(100% / 48);
}
.hero.is-static .hero__progress { opacity: 1; }
.hero__progress::after {
  /* soft dark band under the timeline so ticks and names read over any frame */
  content: ''; position: absolute; z-index: -1; left: -6vw; width: 100vw; bottom: -1.3rem; height: 6.5rem;
  background: linear-gradient(0deg, rgba(12,11,9,.42), rgba(12,11,9,0)); pointer-events: none;
}
.hero__track { position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: rgba(255,255,255,.24); }
.hero__track::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px var(--minor));
}
.hero__bar { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.hero__marks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.hero__mark { position: absolute; top: 0; left: calc(var(--at, 0) * 100%); width: 0; }
.hero__mark::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: rgba(255,255,255,.8); }
.hero__mark.is-past::before, .hero__mark.is-on::before { background: var(--gold); }
.hero__mark span {
  position: absolute; top: 22px; left: 0; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--sans); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.62); text-shadow: 0 1px 3px rgba(0,0,0,.7); transition: color .3s ease;
}
.hero__mark[data-align="start"] span { transform: none; }
.hero__mark[data-align="end"] span { transform: translateX(-100%); letter-spacing: 0.2em; margin-left: 0.2em; }
.hero__mark.is-past span { color: rgba(255,255,255,.88); }
.hero__mark.is-on span { color: #e2c48f; } /* the site gold, lifted for legibility on the film */
/* phones and portrait: fewer ticks, only the current stage's name */
.hero.is-narrow .hero__progress { --minor: calc(100% / 20); }
.hero.is-narrow .hero__mark span { opacity: 0; transition: opacity .3s ease, color .3s ease; }
.hero.is-narrow .hero__mark.is-on span { opacity: 1; }
.hero.is-scrub .hero__scroll { z-index: 3; }
.hero__badge {
  font-size: 0.8rem; padding: 0.4rem 1rem; border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 1.5rem; opacity: 0;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 16ch; opacity: 0; font-weight: 700; }
.hero__title .hero__since { font-weight: 500; }
.hero__title .hero__year { color: var(--gold-deep); font-style: italic; }
/* Revision 28: "Since 2008" a little smaller, on its own line directly under "Cape Town's Luxury Builder," */
.hero__title .hero__since { display: block; font-size: .68em; line-height: 1.1; margin-top: .12em; }
/* Revision 29: smaller again, clearly a secondary line */
.hero__title .hero__since { font-size: .5em; margin-top: .3em; letter-spacing: .01em; }
/* Revision 26: over the lighter wash the year takes a deeper bronze so it keeps AA contrast */
.hero.is-scrub .hero__title .hero__year, .hero.is-static .hero__title .hero__year { color: #4e3a20; } /* Revision 28: a touch deeper for the softer wash */
.hero__sub { max-width: 42ch; margin: 1.6rem 0 2.2rem; font-size: 1.1rem; opacity: 0; }
.hero__stats { display: flex; gap: 2.5rem; margin-bottom: 2.4rem; opacity: 0; }
.hero__stats div { display: flex; flex-direction: column; align-items: center; }
.hero__stats strong { font-family: var(--serif); font-size: 1.4rem; }
.hero__stats span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: .6; }
.hero__ctas { display: flex; gap: 1rem; opacity: 0; }
.hero__scroll {
  /* Revision 26: small mouse icon + label; main.js fades it out as soon as scrolling starts */
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: .5;
  pointer-events: none;
}
.hero__mouse {
  width: 20px; height: 31px; border: 1.5px solid currentColor; border-radius: 11px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero__wheel {
  width: 2px; height: 6px; border-radius: 2px; background: currentColor;
  animation: wheel 1.8s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.hero.is-scrub .hero__scroll, .hero.is-static .hero__scroll { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); opacity: .85; }
.hero.is-scrub .hero__mouse, .hero.is-static .hero__mouse { box-shadow: 0 1px 6px rgba(0,0,0,.25); }

/* scroll story: before -> after -> dock */
.story { position: relative; padding: 0; max-width: none; }
.story__pin {
  height: 100vh; height: 100lvh; position: sticky; top: 0; display: flex; flex-direction: column;
  justify-content: center; padding: 0 6vw; overflow: hidden; background: var(--ink);
}
.story__eyebrow { color: #e4c998; text-align: center; }
.story__frame {
  position: relative; z-index: 4; max-width: 1100px; margin: 0 auto; width: 100%;
  aspect-ratio: 16/9; border-radius: 4px; overflow: hidden;
  /* translate BEFORE scale: CSS composes right-to-left, so scale() first would scale down the
     translate distance too (a real bug found and fixed 6 Nov 2026, confirmed via an isolated
     transform test: scale(0.5) translate(400px,0) only moves the element 200px on screen, not
     400, because the translation happens inside the scaled space). This order keeps --dockX/Y
     as true on-screen pixel displacement regardless of the current scale. */
  transform: translate(var(--dockX, 0px), var(--dockY, 0px)) scale(var(--dockScale, 1));
  transform-origin: center center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
}
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__img--after { clip-path: inset(0 var(--wipe, 100%) 0 0); }
.story__caption {
  position: absolute; left: 2rem; bottom: 2rem; color: #fff;
}
.story__caption h3 { color: #fff; font-size: 1.6rem; }
.story__caption p { color: rgba(255,255,255,.7); margin-top: 0.2rem; }
/* Revision 9: more scroll room for the new horizontal push-into-portfolio phase added at the
   tail of this same pinned stage (Josh: "instead of moving down, it'll move horizontally,
   showing their projects"), on top of the existing wipe/dock/uncrop phases. */
.story__spacer { height: 420vh; height: 420lvh; }

/* Revision 7, corrected mechanics again (Josh's own direction: not a zoom, an uncropping
   mask, then a downward follow, then a slot-in to an EMPTY grid position, never a duplicate).
   .story__frame shrinks then FREEZES at half screen size and never moves again. This card
   (.story__next) is the thing Josh actually wants to follow: it sits at its real, final size
   from the moment it appears (no width-growth zoom any more), overlapping the frozen frame's
   bottom-right corner (the original screenshot's composition), and a clip-path mask reveals
   its real content upward from the bottom edge as the visitor scrolls, exactly like a photo
   being uncropped: subtitle first, then title, then the COMPLETED badge above that, then the
   full image completing the card. Content never re-scales, only the crop window moves (see
   main.js's measureNextReveal). bottom clears the persistent contact-float cluster so it
   never collides with it. */
.story__next {
  position: absolute; z-index: 5; right: 6vw; bottom: 180px;
  width: var(--nextW, 70px);
  /* Revision 15: re-enabled so the same hover interaction the real Portfolio grid cards have
     (lift, image zoom, .card__hover overlay) actually reaches this card while it's still in the
     proof scene (Josh: "I still should get the same interactive effect as it does when it's on
     the project page"). The hover transform lands on .story__next .card, a different element
     from #storyNext itself (which carries the JS-driven FLIP transform), so the two never fight. */
  pointer-events: auto;
  clip-path: inset(100% 0 0 0); /* fully cropped away until main.js reveals it */
  /* Revision 12: the push-phase transform (a FLIP interpolation toward the real target card's
     live position) is built entirely in main.js as one inline transform string now, same reason
     storyReveal's already was: an inline style fully replaces the property, so a separate rule
     referencing a custom property here would never actually apply once JS sets it directly. */
}
.story__next .card {
  box-shadow: 0 30px 60px rgba(0,0,0,0.45); width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
/* Revision 10: Josh's own words, "I want that screen to be the same size as the one that says
   Claremont Kitchen Living... the exact same" as the real grid card. Deliberately NO size
   overrides here any more (no bigger font, no stretched image aspect-ratio): this card inherits
   the exact same .card/.card__img/h3/p/.tag rules as every resting grid card, so at the same
   width (--nextW, set from the real target card's own measured rect in main.js) it renders at
   the real card's own natural height too, a true match, not an approximation. Revision 9's
   larger overrides made this "the size of the whole section," which Josh corrected directly. */

/* The real Portfolio slot this is all heading toward: an empty, reserved placeholder (same
   box, same footprint, so nothing in the grid reflows) until the traveling card above actually
   arrives. Keeps the grid's shape honest while making sure the same project is never shown
   twice on screen at once, Josh's explicit "that same project can't be a duplicate" rule. */
.card--story-target.is-pending .card__img,
.card--story-target.is-pending .tag,
.card--story-target.is-pending h3,
.card--story-target.is-pending p { visibility: hidden; }

/* Slides in from off screen left as the frame vacates that space on its way to the dock.
   Pure translateX, no opacity change; clipped by .story__pin's own overflow:hidden until
   it moves into frame. */
.story__reveal {
  position: absolute; left: 6vw; top: 50%; max-width: 340px;
  transform: translate(-135%, -50%);
  color: #fff;
}
.story__reveal .story__reveal-eyebrow { color: #e4c998; }
.story__reveal h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.6rem; }
.story__reveal p:last-child { color: rgba(255,255,255,.72); }
/* .story__reveal's transform (including the push-left offset) is built entirely in main.js as
   one inline string, an inline style fully replaces the property so a separate CSS rule here
   referencing --pushX would never apply, kept out deliberately rather than left as dead code. */

/* Revision 9: the horizontal push-into-portfolio phase (Josh: "it'll move to the left, pushing
   all of the Featured Work... all the other projects will come in from the right, instead of
   moving down it'll move horizontally"). Once the Claremont card has fully unfolded to its real
   size, continued scroll pushes it and the reveal text left (--pushX goes negative) while these
   preview strips enter from the right, honestly a stylised transition motion into Portfolio
   (not a pixel-matched chase onto the live grid, which the dock math alone can't reach while
   still pinned, see docs/scroll-story-build-guide.md), hard-cutting to the real, un-pending grid
   card the instant the pin releases so nothing duplicates. */
.story__incoming {
  position: absolute; z-index: 3; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; gap: 1.2rem; pointer-events: none;
}
/* Revision 11: these are now real .card elements (same markup as the Portfolio grid), not
   generic image strips, so they need the card's own image height etc. reinstated on a dark
   context (the card's own h3/p colours assume a light card background, which still applies
   here since .card itself is unstyled/light by default, only position/motion are added). Width
   is set inline from main.js to match storyNext's own measured width. */
/* Revision 12: the real Portfolio grid now lives inside the pin itself (see index.html's
   comment on #portfolioStage), wipe-revealed via clip-path (real movement, never a fade) on the
   same progress as storyNext/storyReveal's push, so the pin settles directly into the actual,
   final Portfolio view, nothing to cut away to or scroll through separately afterward. z-index
   below storyNext/storyReveal so the travelling card and text stay visible on top of it while it
   arrives underneath them. */
.story__portfolio {
  position: absolute; inset: 0; z-index: 2;
  background: var(--paper, #f7f5f1); padding: 4rem 6vw;
  clip-path: inset(0 100% 0 0);
  display: flex; flex-direction: column; justify-content: center;
}
.story__portfolio .portfolio__head,
.story__portfolio .portfolio__grid { max-width: 1400px; margin-inline: auto; width: 100%; min-width: 0; }
.anchor-target { position: absolute; top: 0; }

/* portfolio */
.portfolio__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.portfolio__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.portfolio__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
/* Revision 9: real hover movement and a bit more info surfacing (Josh: "a little bit more
   interactive when I hover over it, give me a little bit more movement, and maybe a little bit
   more info"). The whole card lifts (not just the image scaling), and a status/detail line
   slides up from the bottom, built from the card's own already-real content (status tag plus
   location/type), nothing invented. */
.card {
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff;
  position: relative; transition: transform .35s cubic-bezier(.22,.8,.25,1), box-shadow .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0,0,0,0.16); }
.card__img { height: 220px; background-size: cover; background-position: center; transition: transform .6s ease; position: relative; }
.card:hover .card__img { transform: scale(1.08); }
.card h3 { padding: 1.1rem 1.2rem 0.2rem; font-size: 1.2rem; }
.card p { padding: 0 1.2rem 1.2rem; opacity: .65; font-size: 0.9rem; }
/* Revision 12: the independent review measured this overlay overlapping the card's own
   subtitle text underneath (both sat in the bottom ~90px of the card). Reined in to the image
   area only (top:0, same fixed height as .card__img), so it never reaches down into the
   h3/p metadata block below the image. "View Project" removed per the same review: it was
   plain inert text with no real link or destination, a promised action that did nothing;
   until real per-project pages exist, this just surfaces the card's own real detail line. */
.card__hover {
  position: absolute; inset: 0 0 auto 0; height: 220px; padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(27,26,23,0.78), rgba(27,26,23,0) 65%);
  color: #fff; font-size: 0.82rem; letter-spacing: 0.02em;
  display: flex; align-items: flex-end;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.card:hover .card__hover { opacity: 1; transform: translateY(0); }
.tag {
  display: inline-block; margin: 1rem 1.2rem 0; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px;
}
/* Revision 32: flip cards. Only the image area turns (rotateY, its own perspective); the card's lift,
   text and status pill are untouched. Hover flips on mouse devices; tap or Enter/Space toggles .is-flipped.
   Reduced motion: the second photo simply swaps in, no spin. */
.card__img--flip { perspective: 1100px; cursor: pointer; background: #e9e4da; }
.card:hover .card__img--flip { transform: none; }
.card__flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.22,.8,.25,1); }
.card__face { position: absolute; inset: 0; background-size: cover; background-position: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card__face--front { transform: rotateY(0deg) translateZ(1px); }
.card__face--back { transform: rotateY(180deg) translateZ(1px); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__flip { transform: rotateY(180deg); } }
.card__img--flip.is-flipped .card__flip { transform: rotateY(180deg); }
.card__img--flip:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
  .card__flip, .card:hover .card__flip, .card__img--flip.is-flipped .card__flip { transform: none !important; transition: none; }
  .card__face--back { transform: none; opacity: 0; transition: opacity .25s ease; }
  .card:hover .card__face--back, .card__img--flip.is-flipped .card__face--back { opacity: 1; }
}
.tag--done { background: #e4ecdf; color: #3c5a34; }
.tag--progress { background: #f4e6cf; color: #8a5a1e; }
.tag--soon { background: #e9e5f3; color: #4a3c7a; }

/* why: Revision 8, DeepBook-style pinned object (docs/reference-sites.md's deepbook entry,
   and Josh's own direct screenshot of deepbook-v2-wip.webflow.io). The right-side object STAYS
   in the same screen position while the object ITSELF transforms (rotates, recolours) between
   three states; the left column shows ONLY the active item, the other two slid fully out of
   view (translateY, never opacity), matching "you first see number 1 with nothing else". */
/* Revision 9: a light warm tint distinguishes this section from the surrounding white-paper
   sections, one of several deliberate background shifts added site-wide (Josh: "I don't want it
   to just be one background colour the whole time"). */
.why-scene { position: relative; height: 500vh; height: 500lvh; } /* Revision 27: was 300vh; longer hold on the finished house. Revision 32: 420 -> 500 for four steps */
.why-scene__pin {
  position: sticky; top: 0; height: 100vh; height: 100lvh; display: flex; align-items: center;
  gap: clamp(2rem, 6vw, 5rem); text-align: left;
}
/* Generous fixed height (measured the tallest real item at ~148px, this clears it with real
   margin) plus a translateY well past 100% on the exit/enter states, so a slight content/box
   height mismatch can never leave a sliver of the outgoing item visible, a real bug found and
   fixed 6 Nov 2026 by direct screenshot inspection (the previous item's last line was bleeding
   into the active item's space at the default 9.5rem/105%). */
.why-scene__text { flex: 1 1 46%; min-width: 0; height: 12rem; overflow: hidden; position: relative; }
.why-scene__item {
  position: absolute; inset: 0; transform: translateY(160%);
  transition: transform .6s cubic-bezier(.22,.8,.25,1);
}
.why-scene__item.is-active { transform: translateY(0); }
.why-scene__item.is-prev { transform: translateY(-160%); }
.why__num { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-deep); }
.why-scene__item h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: 0.8rem 0 0.8rem; }
.why-scene__item p { opacity: .78; max-width: 42ch; font-size: 1.1rem; line-height: 1.65; }
@media (max-width: 900px) {
  .why-scene { height: auto; }
  .why-scene__pin { position: relative; height: auto; flex-direction: column; padding: 2rem 0; }
  .why-scene__text { height: auto; overflow: visible; position: relative; order: 2; }
  .why-scene__panel { display: contents; }
  .why-scene__counter { display: none; }
  /* Revision 16: all three points stacked under the photo on mobile. The pin is released here,
     so the old "only the active point" rule left a zero-length scroll range that jumped from
     point 1 straight to point 3. */
  .why-scene__item { position: relative; transform: none !important; display: block; margin-bottom: 1.8rem; }
}

/* reviews: Revision 8, the draggable 3D ring IS the section now, not background decoration
   behind a card stack (Josh's own words: "I want that for the whole review... a circle of
   reviews... semi-transparent... you can see the text... drag your mouse, not scroll").
   Adapted from Profound's own 3D node field (tryprofound.com), the technique, not their
   content: Executive Works' own six real reviews, kept verbatim, sit on translucent panels
   arranged in a ring the visitor can drag to rotate. No scroll-tied motion at all here, this
   section behaves like ordinary page content for scrolling, only pointer-drag moves the ring. */
/* overflow-x:hidden here, not on body (that broke every position:sticky pin elsewhere in this
   build, see html's own overflow-x rule above): .reviews has no sticky descendant of its own,
   so it's safe here, and it directly contains the 3D ring's real scrollWidth contribution,
   which `.reviews__orbit`'s own overflow:hidden alone didn't fully clip, a known interaction
   between overflow:hidden and 3D-transformed (preserve-3d) descendants, confirmed by measuring
   document.documentElement.scrollWidth directly, not assumed. */
/* Revision 10: a distinct background so this reads as "just a section" on its own, not a
   continuation of whatever's above it (Josh: "make the background different... turn this into
   just a section"), a soft radial vignette using the same two paper tones already established
   elsewhere (the hero uses the same pattern), not a new colour. */
/* Revision 11: "make the section itself 20% smaller" (Josh), tightened padding/margins while
   the ring itself (below) grows, a more compact wrapper around a bigger focal element. */
/* Revision 14: "this review thing can get 20% smaller and also be moved up by about 20%"
   (Josh). The ring shrinks in CSS/JS below; top padding trimmed here so the smaller, higher
   ring doesn't leave a tall empty gap above it, bottom padding left alone so the section still
   closes with real breathing room under the ring. */
.reviews { text-align: center; padding-top: 4.5rem; padding-bottom: 4.5rem; overflow-x: hidden; }
.reviews__pin { display: flex; flex-direction: column; align-items: center; }
.reviews h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.reviews__rating { margin: 0.5rem 0 0.3rem; opacity: .7; }
.reviews__hint {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: .45;
  margin-bottom: 1.1rem;
}
.reviews__orbit {
  /* Revision 11: "20% bigger" (Josh), clamp range raised from 460-680px.
     Revision 14: "20% smaller" (Josh), clamp range reduced back down from the Revision 11
     values (552-816px), a straight ×0.8 on both ends, not a return to the original pre-11
     460-680px range. */
  position: relative; width: 100%; height: clamp(442px, 54vw, 653px);
  perspective: 1400px; cursor: grab; touch-action: pan-y;
  /* Without this, dragging to rotate the ring also drag-selects the card text underneath the
     cursor, a real defect seen in the actual drag render, not assumed. */
  user-select: none; -webkit-user-select: none;
  /* Revision 9 polish pass: nodes at the wide part of their rotation were extending past the
     section's own padding box and causing genuine page-level horizontal scroll on narrow
     viewports, confirmed by measuring document.scrollWidth > clientWidth, not assumed. The
     window onto the 3D ring is this box; full 360 rotation still works inside it, nodes just
     crop at this edge the way a real viewport onto the scene would, not a rotation limit. */
  overflow: hidden;
}
.reviews__orbit:active { cursor: grabbing; }
.orbit__ring {
  /* Revision 14: "moved up by about 20%" (Josh). Anchor shifted from dead-centre (50%) to 38%,
     a real upward shift of the ring within its own box, not a container/padding trick. */
  position: absolute; top: 38%; left: 50%; width: 0; height: 0;
  transform-style: preserve-3d; will-change: transform;
}
.orbit__node {
  /* Revision 11: "20% bigger" (Josh), node box up from 250x170. Revision 12: the independent
     review measured real quote boxes at 85px tall against content actually needing 115-173px,
     a genuine clipping bug, not a design choice, confirmed by reading real review text lengths
     here. Height increased again so the real quotes fit without truncation.
     Revision 14: "20% smaller" (Josh). Shrunk the box by ×0.8 (240×237, still comfortably
     above Revision 12's measured 173px content-height requirement) but left font-size and
     padding alone, shrinking those too would have fought the section's other ask this round,
     "angled up... so it's easy to read." */
  position: absolute; top: -118px; left: -120px; width: 240px; height: 237px;
  border-radius: 6px; padding: 1.1rem 1.2rem; text-align: left;
  /* Revision 9: more transparent (Josh: "a tiny bit more transparent") and the text brightened
     for legibility against whatever's behind it (Josh's own reference screenshot: "a little
     bit brighter and clearer to read the words"). */
  background: rgba(247,244,238,0.4); backdrop-filter: blur(6px);
  border: 1px solid rgba(27,26,23,0.14); box-shadow: 0 20px 44px rgba(0,0,0,0.12);
  display: flex; flex-direction: column; gap: 0.5rem;
  /* Revision 9: Josh wants the FULL 360, including each node's back face as it rotates away
     ("I want to see the full 360 so I also see the ones behind, I obviously won't be able to
     see the text as it'll be facing the other way", which he's fine with). Removed
     backface-visibility:hidden, the opposite of Revision 8's fix, which hid the back entirely;
     this time hiding it is the actual defect. */
}
.orbit__node p {
  font-size: 0.78rem; line-height: 1.48; color: var(--ink); flex: 1;
}
.orbit__node .orbit__who { display: flex; align-items: center; gap: 0.55rem; }
.orbit__node .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(169,131,79,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 0.64rem; font-weight: 600;
  color: var(--gold-deep); flex: none;
}
.orbit__node strong { font-size: 0.78rem; }
/* Revision 15: "indicate these are from Google reviews with the little Google icon next to each
   one... just a small little thing under the name" (Josh). A small, understated credibility
   mark, not a dominant element. */
.orbit__source {
  display: flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem;
  font-size: 0.6rem; letter-spacing: 0.02em; color: var(--ink);
}
/* Revision 23: the dimming moved from the whole row to the mark and label, so the stars beside
   them keep their full gold. */
.orbit__g { display: inline-flex; align-items: center; gap: 0.3rem; opacity: .55; white-space: nowrap; }
/* Revision 30: names and the source row may shrink and wrap (between words) inside the card, never run out of it. */
.orbit__who > div { min-width: 0; }
.orbit__node strong { display: block; overflow-wrap: break-word; line-height: 1.25; }
.orbit__source { flex-wrap: wrap; row-gap: 0.15rem; }
.orbit__source svg { width: 11px; height: 11px; flex: none; }
.orbit__stars {
  color: #c79a3e; font-size: 0.66rem; letter-spacing: 0.08em; line-height: 1;
  margin-right: 0.15rem; text-shadow: 0 0 0.5px rgba(124,95,54,.6);
}
.orbit__node--mark {
  align-items: center; justify-content: center; text-align: center; width: 150px; height: 150px;
  top: -75px; left: -75px; border-radius: 50%;
}
.orbit__node--mark span { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); }
.reviews__fallback { display: none; }

/* cta */
/* Revision 9: Josh confirmed this closing statement-plus-badges treatment is exactly the
   "ending part" he likes and wants reinforced, given a touch more visual weight as the page's
   final confident moment before the last CTA. */
.cta { text-align: center; background: var(--ink); color: var(--paper); max-width: none; padding: 7rem 6vw; }
/* Revision 11: Josh liked the hero's image-behind-the-heading treatment and asked for the same
   on this closing section, "the image must obviously have a grey tint or a dark overlay so the
   text pops." A real exterior shot (the same Modern Constantia image used elsewhere on this
   page, not a new asset) with a dark overlay strong enough that every existing text colour on
   this section (already tuned for a flat --ink background) stays legible without changes. */
.cta--photo {
  background:
    linear-gradient(rgba(12,11,9,0.82), rgba(12,11,9,0.88)),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80') center/cover no-repeat;
}
.cta__since { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: #e4c998; }
.cta__stats { opacity: .75; margin-top: 0.8rem; max-width: 46ch; margin-inline: auto; font-size: 1.05rem; }
.badges { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin: 2.6rem 0; }
.badges span { font-size: 0.8rem; letter-spacing: 0.06em; border: 1px solid rgba(247,244,238,.3); padding: 0.6rem 1.1rem; border-radius: 999px; }
.cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 1.5rem 0 1rem; }
.cta p { max-width: 50ch; margin: 0 auto 2.2rem; opacity: .75; }
.cta .btn--primary { background: var(--gold); color: var(--ink); }
.cta .btn--outline { border-color: rgba(247,244,238,.5); }
.cta__actions { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; } /* Revision 29: was 1rem; the magnet also stops short of the neighbour */

/* footer */
.footer { background: #141310; color: rgba(247,244,238,.85); padding: 0 6vw 9rem; position: relative; overflow: hidden; }
.footer__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
.footer__name { color: #fff; font-family: var(--serif); font-size: 1.3rem; opacity: 1 !important; margin-top: 0 !important; }
.footer__name img { display: block; height: 104px; width: auto; }
.footer__head { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #e4c998; margin-bottom: 0.9rem; }
.footer p { opacity: .7; margin-top: 0.8rem; font-size: 0.92rem; }
.footer__accred { opacity: .5; font-size: 0.78rem; margin-top: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; opacity: .75; }
.footer__bottom {
  max-width: 1280px; margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid rgba(247,244,238,.1);
  display: flex; justify-content: space-between; font-size: 0.78rem; opacity: .5; flex-wrap: wrap; gap: 0.6rem;
}

/* persistent contact cluster: always reachable, not buried in one section */
.contact-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 60;
  display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end;
  opacity: 1; transform: translateY(0);
}
.contact-float__btn {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1.2rem;
  border-radius: 999px; font-size: 0.85rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2); transition: transform .25s ease, box-shadow .25s ease;
}
.contact-float__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.26); }
.contact-float__btn--whatsapp { background: #25D366; color: #fff; }
.contact-float__btn--call { background: var(--ink); color: var(--paper); }
.contact-float__icon { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
/* Revision 9: the real WhatsApp mark, not a generic dot (Josh: "add your WhatsApp icon next to
   WhatsApp"). Only the WhatsApp button gets the brand glyph, Call keeps the plain dot. */
.contact-float__btn--whatsapp .contact-float__icon--brand {
  width: 18px; height: 18px; border-radius: 0; background: none;
}
.contact-float__btn--whatsapp .contact-float__icon--brand svg { width: 100%; height: 100%; fill: #fff; }
@media (max-width: 480px) {
  .contact-float__btn { padding: 0.8rem; }
  .contact-float__btn .label { display: none; }
}

/* magnetic quote buttons: pointer-driven, premium micro-interaction, pointer+hover only */
[data-magnetic] { transition: transform .35s cubic-bezier(.2,.9,.3,1), background .25s ease; }

/* portfolio: the Claremont card is the before/after handoff's landing target, the rest
   of the grid gathers in around it once the frame arrives (see main.js) */
.card--story-target { position: relative; }
.card--story-target .tag,
.card--story-target h3,
.card--story-target p { position: relative; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__inner { padding: 0.9rem 5vw; }
  .nav__brand img { height: 44px; margin: -0.5rem 0; }
  .nav__actions .btn--ghost { display: none; }
  section { padding: 5rem 6vw; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .story__spacer { height: 270vh; height: 270lvh; }
  .story__frame { aspect-ratio: 3/4; }
  .story__caption { left: 1.2rem; bottom: 1.2rem; right: 1.2rem; }
  .story__caption h3 { font-size: 1.2rem; }
  /* Mobile is too narrow to fit the reveal text and the docking card side by side without
     the overlap Josh's "nothing should overlap" rule forbids; the image-docks-into-place
     movement still reads clearly on its own, so the bridging text is dropped here rather
     than forced to collide, Portfolio's own real heading follows moments later anyway. */
  .story__reveal { display: none; }
  /* Revision 9 polish pass: mobile skips the push phase entirely (main.js's isMobile() branch
     forces pushP to 0 and reveals the real grid directly), so this preview strip never
     animates in here, but it was still sitting in the DOM at its resting right:0 offset and
     pushing document.scrollWidth past the viewport, a real horizontal-scroll bug confirmed by
     measurement, not assumed. Remove it outright on mobile rather than leave dead, overflowing
     markup. */
  .story__incoming { display: none; }
  /* No fixed width override here any more: main.js's isMobile() branch drives --nextW
     directly (snaps straight to the unfolded size rather than animating gradually), a stale
     fixed width from the pre-Revision-6 mechanics would silently fight that, found and
     removed 6 Nov 2026. */
  .story__next { bottom: 140px; }
  /* Revision 12: #portfolioStage now lives inside the 100vh-tall, overflow:hidden sticky pin
     (see styles.css above), which would clip a full 5-card grid at mobile widths if the pin
     stayed pinned/fixed-height here. Same fix as the reduced-motion block below: drop the pin
     to normal static flow on mobile so the backdrop, the snapped-in dock card, and the real
     Portfolio grid all simply stack and are fully scrollable, no clipped/hidden content. */
  .story__pin { position: relative; height: auto; overflow: visible; padding: 4rem 6vw 0; }
  .story__spacer { display: none; }
  /* min-width:0 is load-bearing here: .story__pin stayed display:flex;flex-direction:column
     (inherited, not overridden above), and a flex item's default min-width is auto, not 0 --
     combined with .portfolio__grid's CSS Grid auto-fit sizing, that let the grid compute an
     intrinsic width (measured at 1117px against a 390px viewport, a real horizontal-overflow
     bug, not assumed) instead of respecting the flex container's actual cross-axis size. */
  .story__portfolio { position: static; clip-path: none; margin-top: 2.4rem; padding: 0 0 2.4rem; width: 100%; min-width: 0; }
  .reviews__spacer { height: 260vh; height: 260lvh; }
  .review-card { flex-basis: min(300px, 82vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__wheel { animation: none; }
  .story__pin { position: relative; height: auto; padding: 4rem 6vw; }
  .story__spacer { height: auto; }
  .story__img--after { clip-path: none; position: relative; }
  .story__img--before { display: none; }
  .story__frame { transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .story__next { display: none !important; }
  .story__incoming { display: none !important; }
  .story__reveal { display: none !important; }
  .story__portfolio { position: static; clip-path: none; margin-top: 2.4rem; }
  .portfolio__grid .card { opacity: 1 !important; transform: none !important; }
  .card--story-target.is-pending .card__img,
  .card--story-target.is-pending .tag,
  .card--story-target.is-pending h3,
  .card--story-target.is-pending p { visibility: visible !important; }
  .contact-float { opacity: 1 !important; transform: none !important; }
  .reviews__orbit, .reviews__controls { display: none; }
  .reviews__hint { display: none; }
  .reviews__fallback {
    display: flex; flex-direction: column; gap: 1.2rem; text-align: left; width: 100%;
    max-width: 640px; margin: 0 auto; list-style: none; padding: 0;
  }
  .reviews__fallback li {
    background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1.4rem 1.6rem;
    font-size: 0.92rem; opacity: .85;
  }
  .why-scene { height: auto; }
  .why-scene__pin { position: relative; height: auto; flex-direction: column; padding: 2rem 0; }
  .why-scene__text { height: auto; overflow: visible; }
  .why-scene__item { position: relative; transform: none !important; display: block; margin-bottom: 1.8rem; }
}

/* =====================================================================================
   REVISION 17 (6 Nov 2026). Surfaces and texture, Process trail, Reviews stage, build
   diagram, project map, quick fixes. See BUILD-BRIEF.md "Revision 17".
   ===================================================================================== */
:root {
  --stone: #25221e;
  --stone-2: #2f2b26;
  --sand: #ece3d3;
  --sand-2: #e4d7c1;
  --ink-soft: #5a554b;
  --line-strong: rgba(27,26,23,0.28);
  --sea: #e6e1d6;
  --land: #f7f4ee;
  --contour: rgba(124,95,54,0.30);
  --card: #fffdf9;
  --nav-h: 80px;
  --gold-light: #e4c998;
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.96 0 0 0 0 0.9 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Surface system (B1): full-bleed bands, content column unchanged ---------- */
.surface {
  max-width: none; position: relative; isolation: isolate;
  /* Same content width as the old 1280px-capped section, but the band runs edge to edge. */
  padding-left: max(6vw, calc(50% - 640px + 6vw));
  padding-right: max(6vw, calc(50% - 640px + 6vw));
}
.surface::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-dark); opacity: .05;
}
.surface--paper { background: var(--paper); }
.surface--sand { background: var(--sand); }
.surface--sand::before { opacity: .07; }
.surface--blueprint {
  background:
    linear-gradient(rgba(124,95,54,0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(124,95,54,0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper-dim);
}
/* Dark stone: a faint plaster mottling plus light grain. */
.surface--stone {
  color: #efe9dd;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,240,215,0.05), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(0,0,0,0.25), transparent 60%),
    var(--stone);
}
.surface--stone::before { background-image: var(--grain-light); opacity: .06; }
.surface--stone .eyebrow { color: var(--gold-light); }
.surface--stone h2, .surface--stone h3 { color: #f6f1e7; }
/* Architectural hairline with dimension ticks at the top edge of a band, used sparingly. */
.has-rule::after, .where::after {
  content: ''; position: absolute; top: 0; height: 9px; pointer-events: none;
  left: max(6vw, calc(50% - 640px + 6vw)); right: max(6vw, calc(50% - 640px + 6vw));
  border-top: 1px solid rgba(169,131,79,0.45);
  background: linear-gradient(rgba(169,131,79,.6), rgba(169,131,79,.6)) left top / 1px 9px no-repeat,
              linear-gradient(rgba(169,131,79,.6), rgba(169,131,79,.6)) right top / 1px 9px no-repeat;
}

/* ---------- Site-wide keyboard focus (Q5) ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[data-tone="dark"] :focus-visible, .footer :focus-visible, .cta :focus-visible { outline-color: var(--gold-light); }
.nav__links a, .footer a { position: relative; }

/* ---------- Nav: scroll progress, active section, Call Now reveals the number ---------- */
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--nav-p, 0));
}
.nav__links a::after, .footer a:not(.footer__copy)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.22,.8,.25,1);
}
.nav__links a:hover::after, .nav__links a.is-active::after, .footer a:hover::after,
.nav__links a:focus-visible::after, .footer a:focus-visible::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--gold-deep); }
.nav__call { display: inline-grid; overflow: hidden; vertical-align: middle; }
.nav__call > span { grid-area: 1 / 1; text-align: center; transition: transform .35s cubic-bezier(.22,.8,.25,1); }
.nav__call-number { transform: translateY(260%); white-space: nowrap; }
.nav__call:hover .nav__call-label, .nav__call:focus-visible .nav__call-label { transform: translateY(-260%); }
.nav__call:hover .nav__call-number, .nav__call:focus-visible .nav__call-number { transform: translateY(0); }

/* ---------- Floating contact (Q1) ---------- */
.contact-float__btn--call .contact-float__icon--brand { width: 16px; height: 16px; border-radius: 0; background: none; opacity: 1; }
.contact-float__btn--call .contact-float__icon--brand svg { width: 100%; height: 100%; fill: currentColor; }
.contact-float__btn--call { box-shadow: 0 10px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(247,244,238,0.18); transition: transform .25s ease, box-shadow .25s ease, background .3s ease, color .3s ease; }
/* Over a dark band the Call pill turns cream so it never disappears (main.js sets .on-dark). */
.contact-float.on-dark .contact-float__btn--call { background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(169,131,79,0.55); }

/* ---------- Portfolio heading clear of the menu bar at the settled point (Q-heading) ---------- */
/* The stage used to centre content taller than the screen, which pushed "Our Projects" up under
   the fixed bar. Content now starts below the bar and the head is tighter so the whole grid fits. */
.story__portfolio { justify-content: flex-start; padding-top: calc(var(--nav-h) + 14px); padding-bottom: 12px; }
/* Revision 19: on a screen shorter than the grid, the lower cards (Newlands, "Coming Soon") were
   cut off for good: the stage was locked to the 100vh pin (inset:0) and the pin clipped both ways.
   The stage now grows downward to its content, the pin clips only sideways, and main.js gives
   .story a bottom margin equal to the overflow so the rest of the grid scrolls into view after the
   release, before Where We Build. The margin sits outside .story's box, so the pin and scroll
   timings are unchanged. */
/* Revision 23: the pin no longer clips at all on wide screens. Revisions 19 and 22 kept a sideways
   clip (`overflow: clip visible`, opened at runtime on older Safari), so the grid hanging below the
   100vh sticky pin depended on Safari painting outside a clipped, composited box; after a card's
   hover ended, Safari repainted the bottom row clipped at the pin's edge. Nothing in the pin needs a
   clip of its own: sideways overflow is already cut by `html { overflow-x: hidden }`, and vertically
   only the grid extends past the pin, which is meant to show. */
@media (min-width: 820px) {
  .story__pin { overflow: visible; }
  .story__portfolio { bottom: auto; min-height: 100%; }
}
.story__portfolio .portfolio__head { margin-bottom: 1.1rem; }
.story__portfolio .portfolio__head .eyebrow { margin-bottom: 0.3rem; }
.story__portfolio .portfolio__grid { gap: 1.25rem; }

/* ---------- House line drawing, now in Why (Revision 18; was item 9's own section) ---------- */
/* A light drawing sheet on the dark stone band. Its stage comes from Why's scroll progress
   (main.js); the old From the Ground Up section's own CSS is parked in _parked/. */
.why-draw {
  flex: 1 1 50%; min-width: 0; margin: 0;
  display: grid; gap: 1rem; justify-items: center;
  background: var(--card); border: 1px solid rgba(239,233,221,0.12); border-radius: 4px;
  padding: clamp(1rem, 2vw, 1.8rem); box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}
.why-draw svg { width: 100%; height: auto; display: block; overflow: visible; }
.stepper { display: flex; gap: 8px; }
.stepper button {
  font: inherit; font-size: 0.82rem; font-weight: 500; min-width: 44px; min-height: 40px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 2px;
  transition: transform .25s cubic-bezier(.22,.8,.25,1), background .25s, color .25s, border-color .25s;
}
.stepper button:hover { transform: translateY(-2px); border-color: var(--gold); }
.stepper button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.why-draw :focus-visible { outline-color: var(--gold); }
/* Revision 24: the 3D model takes the drawing's place (same proportions) once it has drawn; the
   SVG stays underneath as the no-WebGL fallback. */
.why-3d { display: none; width: 100%; aspect-ratio: 640 / 380; position: relative; }
.why-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.why-draw.has-3d .why-3d { display: block; }
.why-draw.has-3d > svg { display: none; }
/* Revision 32: the steps are an ordered list; drag (or a sideways swipe) turns the house. pan-y keeps
   vertical swipes as page scroll on touch screens, so the model never traps the page. */
ol.why-scene__text { list-style: none; margin: 0; padding: 0; }
.why-3d.can-drag canvas { touch-action: pan-y; cursor: grab; }
.why-3d.is-dragging canvas { cursor: grabbing; }
.why-hint {
  display: none; position: absolute; left: 50%; bottom: 0.4rem; transform: translateX(-50%); z-index: 2; pointer-events: none;
  align-items: center; gap: 0.45rem; white-space: nowrap;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft, #5d554b);
  background: rgba(247,244,238,0.86); border: 1px solid rgba(124,95,54,0.25); border-radius: 999px; padding: 0.32rem 0.75rem;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.25,1);
}
.why-3d.can-drag .why-hint { display: inline-flex; }
.why-hint svg { color: var(--gold-deep); }
.why-hint.is-used { opacity: 0; transform: translateX(-50%) translateY(6px); }
@media (prefers-reduced-motion: reduce) { .why-hint { display: none; } }
/* drawing */
.d-context { fill: none; stroke: rgba(124,95,54,0.22); stroke-width: 1; }
.d-ground { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.d-hatch { fill: none; stroke: var(--contour); stroke-width: 0.8; }
.d-label { font-family: var(--sans); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--ink-soft); }
.d-label--gold { fill: var(--gold-deep); }
.d-line { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.5,0,.2,1); }
.d-fine { stroke-width: 0.9; stroke: var(--ink-soft); }
.d-gold { stroke: var(--gold); }
.d-dash { stroke-dasharray: 0.012 0.008; }
.d-build { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s cubic-bezier(.5,0,.2,1); }
.d-slab { fill: #3a352f; }
.d-panel { fill: var(--paper-dim); stroke: var(--ink-soft); stroke-width: 0.8; }
.d-panel--stone { fill: #ddd2c0; }
.d-panel--timber { fill: #d7c1a0; }
.d-texture { fill: none; stroke: rgba(124,95,54,0.45); stroke-width: 0.7; }
.d-texture--water { stroke: rgba(255,255,255,0.8); }
.d-glass { fill: #d8dedc; stroke: var(--ink-soft); stroke-width: 0.6; transition: fill 1.2s ease .2s; }
.d-water { fill: #b9cfcb; }
.d-spill { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform 1.2s cubic-bezier(.5,0,.2,1) .3s; }
#buildSvg:not([data-stage="0"]) .s1 .d-line { stroke-dashoffset: 0; }
#buildSvg:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .s2 .d-line { stroke-dashoffset: 0; }
#buildSvg:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .s2 .d-build { transform: scaleY(1); }
#buildSvg:is([data-stage="3"], [data-stage="4"]) .s3 .d-line { stroke-dashoffset: 0; }
#buildSvg:is([data-stage="3"], [data-stage="4"]) .s3 .d-build { transform: scaleY(1); }
#buildSvg[data-stage="4"] .s4 .d-line { stroke-dashoffset: 0; }
#buildSvg[data-stage="4"] .s4 .d-build { transform: scaleY(1); }
#buildSvg[data-lit="1"] .s4 .d-spill { transform: scaleY(1); }
#buildSvg[data-lit="1"] .d-glass { fill: #f0d7a6; } /* lights on (Revision 18: its own beat, near the end of point 3) */
#buildSvg .s1 .d-dash { stroke-dashoffset: 0; } /* dashed setting-out line: shown by its own build */
.s1 .d-label, .s2 .d-label { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .5s ease .6s; }
#buildSvg:not([data-stage="0"]) .s1 .d-label, #buildSvg:is([data-stage="2"], [data-stage="3"], [data-stage="4"]) .s2 .d-label { transform: scaleY(1); }
.d-delay-1 { transition-delay: .15s; } .d-delay-2 { transition-delay: .3s; } .d-delay-3 { transition-delay: .45s; }

/* ---------- Where we build (item 10) ---------- */
.where { padding-top: 6rem; padding-bottom: 5rem; }
.where__head { max-width: 46rem; margin-bottom: 2.4rem; }
.where__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.map-shell {
  position: relative; width: 100%; aspect-ratio: 5 / 4; background: var(--sea);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(27,26,23,0.12), 0 2px 6px rgba(27,26,23,0.06);
}
.map-shell svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-label { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--ink-soft); }
.map-label--sea { font-family: var(--serif); font-style: italic; font-size: 17px; letter-spacing: 0.04em; text-transform: none; fill: rgba(240,234,220,.9); }
/* Revision 24: the map is a real terrain render, so place names carry a soft halo to read over it. */
.map-label--place { paint-order: stroke; stroke: rgba(247,244,238,.75); stroke-width: 2.5px; stroke-linejoin: round; }
.where__foot a { color: inherit; }
.map-label--suburb { font-size: 10.5px; fill: var(--ink); letter-spacing: 0.12em; paint-order: stroke; stroke: rgba(247,244,238,.85); stroke-width: 3px; stroke-linejoin: round; }
/* Revision 23: relief names in italic serif, other places small and quiet. */
.map-label--relief { font-family: var(--serif); font-style: italic; font-size: 12px; letter-spacing: 0.06em; text-transform: none; fill: var(--gold-deep); paint-order: stroke; stroke: rgba(247,244,238,.7); stroke-width: 2.5px; }
.map-label--place { font-size: 8.5px; letter-spacing: 0.18em; fill: var(--ink); opacity: .85; }
/* Revision 24: relief names in cream with a dark halo over the terrain render. */
.map-label--relief { fill: #fbf8f1; stroke: rgba(27,26,23,.55); stroke-width: 2px; stroke-linejoin: round; }
.pin {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; padding: 0;
  background: transparent; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
  transform: translateY(-26px) scale(0); transition: transform .55s cubic-bezier(.3,1.4,.5,1);
}
.where.is-in .pin { transform: none; }
.pin .dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px solid var(--card);
  box-shadow: 0 2px 4px rgba(27,26,23,0.25); position: relative;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s;
}
.pin:hover .dot, .pin:focus-visible .dot, .pin[aria-expanded="true"] .dot { transform: translateY(-3px) scale(1.25); box-shadow: 0 6px 12px rgba(27,26,23,0.3); background: var(--gold-deep); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .dot { outline: 2px solid var(--gold); outline-offset: 4px; }
/* Revision 23: the popup is a small rounded photo card, the project's Portfolio image only,
   rising in above the pin. Placement classes unchanged. */
.pcard {
  position: absolute; z-index: 3; width: min(184px, 42%); pointer-events: none;
  transform: translate(-50%, calc(-100% - 24px));
}
.pcard.is-left { transform: translate(calc(-100% + 30px), calc(-100% - 24px)); }
.pcard.is-right { transform: translate(-30px, calc(-100% - 24px)); }
.pcard.is-below { transform: translate(-50%, 24px); }
.pcard.is-below.is-left { transform: translate(calc(-100% + 30px), 24px); }
.pcard.is-below.is-right { transform: translate(-30px, 24px); }
.pcard__photo {
  aspect-ratio: 4 / 3; border-radius: 14px; background: var(--sand) center / cover no-repeat;
  border: 4px solid var(--card);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 34px rgba(27,26,23,0.26), 0 3px 8px rgba(27,26,23,0.14);
  transform-origin: 50% 100%;
}
.pcard.is-rising .pcard__photo { animation: pcardRise .42s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes pcardRise {
  from { opacity: 0; transform: translateY(14px) scale(.9) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .pcard.is-rising .pcard__photo { animation: none; } }
.where__list .tag { margin: 0; width: fit-content; }
.where__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.where__item {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 0.85rem 1rem;
  box-shadow: 0 2px 6px rgba(27,26,23,0.05);
  transition: transform .3s cubic-bezier(.22,.8,.25,1), box-shadow .3s, border-color .3s;
}
.where__item:hover, .where__item:focus-visible, .where__item.is-hot {
  transform: translateX(6px); border-color: var(--gold); box-shadow: 0 12px 26px rgba(27,26,23,0.10);
}
.where__item-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(169,131,79,0.18); }
.where__item strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.where__item small { color: var(--ink-soft); font-size: 0.8rem; }
.where__foot { margin-top: 1.4rem; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Why (B6, Q3): stone stage, counter above the text, proof chips ---------- */
.why { padding-top: 0; padding-bottom: 0; text-align: left; }
.why-scene__panel { flex: 1 1 46%; min-width: 0; }
.why-scene__panel h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 2rem; max-width: 18ch; }
.why-scene__counter { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.why-scene__ghost {
  font-family: var(--serif); font-size: clamp(3.4rem, 5.5vw, 4.6rem); line-height: 1; font-weight: 600;
  color: var(--gold-light); display: inline-block; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.why-scene__ghost.is-pulse { transform: translateY(-4px); }
.why-scene__total { font-family: var(--serif); font-size: 1.4rem; color: rgba(239,233,221,0.55); }
.why-scene__rail { flex: 1; max-width: 220px; height: 2px; background: rgba(239,233,221,0.16); position: relative; overflow: hidden; }
.why-scene__rail-fill { position: absolute; inset: 0; background: var(--gold-light); transform-origin: 0 50%; transform: scaleX(var(--why-p, 0)); }
.why-scene__text { height: 15rem; }
.why-scene__item h3 { margin-top: 0; }
.why-scene__item p { color: rgba(239,233,221,0.8); opacity: 1; }
.why-chip {
  display: inline-block; margin-top: 1.1rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid rgba(228,201,152,0.45); border-radius: 999px; padding: 0.45rem 0.95rem;
  transform: translateX(-40px); transition: transform .7s cubic-bezier(.22,.8,.25,1) .15s;
}
.why-scene__item.is-active .why-chip { transform: none; }

/* ---------- Reviews (B3) ---------- */
.reviews {
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(240,214,170,0.16), transparent 70%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.3), transparent 60%),
    var(--stone);
}
.reviews__rating { color: rgba(239,233,221,0.75); opacity: 1; }
.reviews__stars { color: var(--gold-light); letter-spacing: 0.1em; margin-right: 0.3rem; }
.reviews__orbit { height: clamp(400px, 35vw, 500px); margin-top: 0.6rem; }
.reviews__orbit:focus-visible { outline-offset: -6px; }
.orbit__ring { top: 44%; }
.orbit__node {
  height: auto; min-height: 237px; cursor: pointer; color: var(--ink);
  background: rgba(247,244,238,0.62); border-color: rgba(247,244,238,0.25);
  transition: background .35s ease, box-shadow .35s ease;
}
.orbit__node.is-front { background: rgba(251,248,242,0.98); box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.orbit__node--mark { min-height: 0; background: rgba(37,34,30,0.7); border-color: rgba(228,201,152,0.4); }
.orbit__node--mark span { color: var(--gold-light); }
.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 0.4rem; }
.reviews__arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(228,201,152,0.5); background: rgba(247,244,238,0.06);
  color: #f6f1e7; cursor: pointer; display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.22,.8,.25,1), background .25s, border-color .25s;
}
.reviews__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reviews__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
#reviewsPrev:hover { transform: translateX(-3px); }
#reviewsNext:hover { transform: translateX(3px); }
.reviews__status { min-width: 12rem; color: rgba(239,233,221,0.8); font-size: 0.9rem; }
.reviews__who { display: block; font-family: var(--serif); font-size: 1.1rem; color: #f6f1e7; }
.reviews__hint { color: rgba(239,233,221,0.7); margin: 0.9rem 0 0; }

/* ---------- Closing CTA: trust pills respond (B7) ---------- */
.cta--photo { background-position: center, center calc(50% + var(--cta-y, 0px)); }
.badges span { transition: transform .3s cubic-bezier(.22,.8,.25,1), border-color .3s, background .3s; }
.badges span:hover { transform: translateY(-3px); border-color: var(--gold-light); background: rgba(247,244,238,0.06); }

/* ---------- Footer finishing beat (B8) ---------- */
/* Revision 23: the wordmark's own band between Reviews and the closing section. Background is the
   footer colour on purpose: the outline is a stroke under a #141310 fill. The footer gets the top
   padding the wordmark used to give it. */
.markband { background: #141310; padding: 0 6vw; overflow: hidden; position: relative; }
.footer { padding-top: 4.5rem; }
.footer__mark {
  /* Revision 29: spans the full band width inside the side padding at every size; main.js sets
     --mark-fs from the measured text width (this clamp is only the before-script fallback). */
  font-family: var(--serif); font-size: var(--mark-fs, clamp(2rem, 12vw, 11rem)); line-height: 1; white-space: nowrap;
  padding: 3.2rem 0 2.6rem; margin: 0 auto;
  /* Revision 21: the outline is drawn as a 2px stroke under a footer-coloured fill (paint-order), so
     only its outer 1px shows and the font's internal overlap seams no longer show through. */
  color: #141310; -webkit-text-stroke: 2px rgba(228,201,152,0.38); paint-order: stroke fill;
  /* Revision 21: a heavier cut and crisp edge rendering so the letters read as solid and rounded */
  font-weight: 600; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: geometricPrecision;
}
.footer__mark span { display: inline-block; transform: translateX(var(--mark-x, 0px)); will-change: transform; }
/* Revision 20: light reveal (Lusion awards idea, in champagne). The lit copy sits exactly over the
   outline and is shown only through a soft trail of radial masks that main.js moves. Nothing but the
   wordmark is ever painted; no layout space is taken. */
.footer__mark span { position: relative; }
/* Revision 21: what the light reveals is now iridescent liquid chrome: a chrome "horizon" (sky over
   a dark band over bright ground), overlaid on repeating silver bands with chromatic amber / yellow / blue edges,
   and a specular hotspot. main.js moves --chrome-x/--chrome-y/--hx/--hy with the light, so the
   highlight flows as the visitor scrolls, moves the mouse or touches. */
.footer__mark span::before {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle var(--hr, 9rem) at var(--hx, 40%) var(--hy, 45%), rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.25) 40%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #ffffff 0%, #e6e9ed 30%, #7d838c 43%, #121418 50%, #3a3f47 56%, #b4bac2 70%, #ffffff 100%)
      0 var(--chrome-y, 50%) / 100% 150%,
    linear-gradient(104deg, #eef1f4 0%, #ffffff 5%, #c3c9d1 10%, #ffe680 13.5%, #ffae3d 16.5%, #ff7a1f 19%, #16181d 22%, #0a0b0e 24.5%,
      #2a63ff 27.5%, #8fc1ff 30.5%, #f5f7fa 34.5%, #ffffff 39%, #b7bdc5 45%, #fff08a 48%, #ff9a33 51%, #17191e 54.5%, #3a82ff 58%,
      #a9d0ff 61%, #ffffff 67%, #a6adb6 75%, #ffdf6a 78%, #ff8f33 81%, #0f1115 84%, #4689ff 87.5%, #eef2f6 92%, #ffffff 100%)
      var(--chrome-x, 35%) 0 / 85% 100%;
  background-blend-mode: screen, overlay, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0; filter: drop-shadow(0 0 0.6px rgba(255,255,255,0.95));
  -webkit-mask-image: var(--lit, radial-gradient(circle at 0 0, transparent 0, transparent 0));
  mask-image: var(--lit, radial-gradient(circle at 0 0, transparent 0, transparent 0));
}
/* Revision 23: no divider line now the wordmark no longer sits above the grid. */
.footer__grid { padding-top: 0.5rem; }
.footer__hours { margin: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.footer__hours div { display: flex; justify-content: space-between; gap: 1rem; opacity: .75; }
.footer__hours dt, .footer__hours dd { margin: 0; }
.footer__area { font-size: 0.85rem !important; }
.footer__copy {
  font: inherit; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.4rem;
  color: var(--gold-light); background: none; border: 1px solid rgba(228,201,152,0.4); border-radius: 999px;
  padding: 0.15rem 0.6rem; cursor: pointer; transition: background .25s, color .25s;
}
.footer__copy:hover { background: var(--gold-light); color: var(--ink); }
.footer__copied { font-size: 0.75rem; color: var(--gold-light); margin-left: 0.4rem; }

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .why { padding-top: 4rem; padding-bottom: 3rem; }
  .why-scene__panel h2 { margin-bottom: 1.4rem; }
  .why-chip { transform: none; }
  .why-scene__counter { display: none; }
  .why-scene__pin { align-items: stretch; }
  /* Revision 18: the house drawing sits above the three stacked points and stays pinned under
     the bar while they scroll past, so it is always visible next to the text it follows. */
  .why-draw { order: 1; position: sticky; top: calc(var(--nav-h) + 8px); z-index: 3; padding: 0.7rem; gap: 0.6rem; flex: 0 0 auto; }
  .why-draw svg { max-height: 27vh; }
  .why-3d { max-height: 27vh; }
  .why-draw .stepper button { min-height: 36px; }
}
@media (max-width: 820px) {
  :root { --nav-h: 60px; }
  .story__portfolio { padding-top: 0; }
  .where__grid { grid-template-columns: 1fr; }
  .reviews { padding-top: 4rem; padding-bottom: 3.5rem; }
  .reviews__orbit { height: 490px; }
  .orbit__node { font-size: 0.95em; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .d-line, .d-build, .d-spill, .s1 .d-label, .s2 .d-label { transition: none !important; stroke-dashoffset: 0 !important; transform: none !important; }
  .d-glass { transition: none !important; fill: #f0d7a6 !important; }
  .stepper { display: none; }
  .why-draw { position: relative; top: 0; flex: 0 0 auto; width: 100%; max-width: 760px; align-self: center; }
  .why-scene__text { height: auto; overflow: visible; }
  .pin { transform: none !important; transition: none; }
  .why-chip, .why-scene__ghost { transform: none !important; transition: none; }
  .why-scene__counter { display: none; }
  .nav__progress { display: none; }
  .footer__mark span { transform: none !important; }
  .footer__mark span::before {
    /* Revision 21: a calm static chrome state, lit softly across the whole word */
    --lit: radial-gradient(ellipse 75% 170% at 42% 50%, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.3) 100%) !important;
  }
  .reviews__fallback li { background: rgba(251,248,242,0.97); color: var(--ink); opacity: 1; }
  .reviews__controls { display: none; }
  .story__portfolio { padding-top: 0; }
}
/* Revision 18: reduced motion on a wide screen keeps the drawing (finished) beside the three
   stacked points instead of under them. */
@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
  .why-scene__pin { flex-direction: row; align-items: center; padding: 6rem 0; }
  .why-draw { flex: 1 1 50%; width: auto; max-width: none; }
}

/* ---------- Revision 28: phones only (<= 430px). Wider screens are unchanged. ---------- */
@media (max-width: 430px) {
  /* Our Projects: the settled grid fills the whole phone width (it used to sit inside the pin's
     6vw dark side padding, which showed as black strips). One column, photo on top, text under. */
  .story__portfolio { width: auto; margin-inline: -6vw; padding-bottom: 1.6rem; }
  .story__portfolio .portfolio__head { padding-inline: 16px; }
  .story__portfolio .portfolio__grid { grid-template-columns: 1fr; gap: 12px; }
  .story__portfolio .card { border-radius: 0; border-left: 0; border-right: 0; }
  .story__portfolio .card__img { height: auto; aspect-ratio: 4 / 3; }
  .story__portfolio .card h3 { padding-inline: 16px; }
  .story__portfolio .card p { padding-inline: 16px; }
  /* Reviews: ring and cards about 30% smaller (main.js sizeRing); tighter padding and a slightly
     smaller quote so the whole quote still fits each card. */
  .orbit__node { --card-min: 150px; padding: 0.6rem 0.65rem; gap: 0.35rem; }
  .orbit__node p { font-size: 0.62rem; line-height: 1.4; } /* Revision 29: cards 20% narrower, quote smaller so it still fits whole */
  /* Revision 30: names and the "Google review" label ran out of the 118-128px cards. Smaller avatar and
     name beside it (wrapping between words onto a second line); the stars and the Google mark and label
     take the full card width underneath, on their own lines when they need them. */
  .orbit__node .orbit__who { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.35rem; row-gap: 0.2rem; align-items: center; }
  .orbit__who > div { display: contents; }
  .orbit__source { grid-column: 1 / -1; margin-top: 0; }
  .orbit__node .avatar { width: 20px; height: 20px; font-size: 0.52rem; }
  .orbit__node strong { font-size: 0.68rem; }
  .orbit__source { font-size: 0.56rem; }
  .orbit__stars { font-size: 0.6rem; letter-spacing: 0.04em; }
}
/* Built on Trust, compact (Revision 28 phones; Revision 29 also tablets and smaller laptop windows:
   narrower than 1100px or shorter than 800px unless the desktop layout clearly fits, decided in
   main.js, which sets html.why-compact; never with reduced motion). The section pins: the heading
   scrolls away first (negative sticky top, --why-lift measured in main.js), then the 3D house stays
   at the top of the screen and the three points slide through underneath it one at a time
   (sideways, never a fade), each held for about a screen of scrolling. svh: the pin is sized to the
   screen with the address bar showing, so it never changes size as the bar slides. */
html.why-compact .why-scene { height: 500vh; height: 500lvh; }
html.why-compact .why-scene__pin {
  position: sticky; top: calc(-1 * var(--why-lift, 0px)); height: calc(100vh + var(--why-lift, 0px)); height: calc(100svh + var(--why-lift, 0px));
  flex-direction: column; align-items: stretch; padding: 2rem 0 0; justify-content: flex-start; gap: 0;
}
/* Revision 32 (client, iPhone): the pin now holds the heading, the house and the current step together.
   It locks with the eyebrow just under the bar (no lift), the heading is smaller and the house shorter. */
html.why-compact .why-scene__pin { padding-top: calc(var(--nav-h, 60px) + 1.4rem); }
html.why-compact .why-scene__panel .eyebrow { margin-bottom: .4rem; }
html.why-compact .why-scene__panel h2 { font-size: clamp(1.5rem, 6.4vw, 2.2rem); margin-bottom: .8rem !important; }
html.why-compact .why-scene__panel { display: contents; }
html.why-compact .why-scene__counter { display: none; }
html.why-compact .why-scene__panel h2 { margin-bottom: 1.4rem; max-width: none; }
html.why-compact .why-draw {
  order: 1; position: relative; top: 0; z-index: 3; flex: 0 0 auto; padding: 0.7rem; gap: 0.6rem;
  width: 100%; max-width: min(760px, 56svh); align-self: center;
}
html.why-compact .why-3d, html.why-compact .why-draw svg { max-height: max(150px, min(30svh, calc(100svh - var(--nav-h, 60px) - 25rem))); }
html.why-compact .why-draw { padding: .5rem; gap: .45rem; }
html.why-compact .why-draw .stepper button { min-height: 34px; min-width: 40px; }
html.why-compact .why-scene__text {
  order: 2; flex: 1 1 auto; height: auto; min-height: 0; overflow: hidden; position: relative; margin-top: .9rem;
  width: 100%; max-width: 760px; align-self: center;
}
html.why-compact .why-scene .why-scene__item {
  position: absolute; inset: 0 0 auto 0; margin: 0; display: block;
  transform: translateX(115%) !important; transition: transform .6s cubic-bezier(.22,.8,.25,1);
}
html.why-compact .why-scene .why-scene__item.is-active { transform: translateX(0) !important; }
html.why-compact .why-scene .why-scene__item.is-prev { transform: translateX(-115%) !important; }
html.why-compact .why-scene__item h3 { font-size: 1.45rem; margin: 0 0 0.5rem; }
html.why-compact .why-scene__item p { font-size: 0.98rem; line-height: 1.55; }
@media (min-width: 600px) {
  html.why-compact .why-3d, html.why-compact .why-draw svg { max-height: min(40svh, calc(100svh - var(--nav-h, 60px) - 25rem)); }
  html.why-compact .why-draw { max-width: min(760px, 72svh); }
  html.why-compact .why-scene__item h3 { font-size: 1.7rem; }
  html.why-compact .why-scene__item p { font-size: 1.05rem; max-width: 60ch; }
}

/* Revision 29: tablets get the reviews ring about 20% smaller (main.js sizeRing); the quote steps down
   so it still fits whole in the narrower card. */
@media (min-width: 431px) and (max-width: 1024px) {
  .orbit__node { padding: 0.85rem 0.9rem; gap: 0.4rem; }
  .orbit__node p { font-size: 0.7rem; line-height: 1.42; }
}

/* ---------- Revision 32: Built on Trust plaques (client-approved mockup 3B, ported) ----------
   Blueprint fronts turn over (rotateY) to engraved material backs: honed limestone, brushed brass, smoked oak.
   Hover on mouse devices, tap on touch, Enter/Space on keyboard (main.js toggles .is-flipped).
   Reduced motion: no spin, the back simply swaps in. Phones: the three stack. */
.trust {
  --print: #10263f; --print-deep: #0a1a2d; --print-line: #cfe2f2; --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --tbc-fg: var(--gold-deep); --tbc-bg: rgba(169,131,79,.16); --tbc-bd: var(--gold); --cream-hi: #f6f1e7;
  --veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .018' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .37 0 0 0 0 .3 3.2 0 0 0 -1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
  --pores: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='turbulence' baseFrequency='.55' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .24 -2.2 0 0 0 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0015 .9' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .06 1.4 0 0 0 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --grain-wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='500'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.07 .0025' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .035 0 0 0 0 .02 2.4 0 0 0 -.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  background:
    linear-gradient(rgba(16,38,63,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(16,38,63,.06) 1px, transparent 1px) 0 0 / 24px 24px, var(--paper-dim);
  padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4.5rem, 8vw, 7rem);
}
.trust__head { margin-bottom: clamp(26px, 3.4vw, 44px); }
.trust__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: .45rem; max-width: 22ch; }
.trust__legend { margin-top: 26px; font-size: .82rem; opacity: .8; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-tbc { font-family: var(--sans); font-size: .72rem; font-weight: 400; letter-spacing: .03em; background: var(--tbc-bg); color: var(--tbc-fg); padding: 1px 6px; border: 1px dashed var(--tbc-bd); white-space: nowrap; text-shadow: none; }
.tp-plaques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); }
.tp-plaque { perspective: 1600px; height: 500px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tp-plaque:focus-visible { outline: none; }
.tp-plaque:focus-visible .tp-face { outline: 2px solid var(--gold); outline-offset: 5px; }
.tp-tilt { height: 100%; transform-style: preserve-3d; }
.tp-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.2,.7,.15,1); }
.tp-plaque.is-flipped .tp-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .tp-plaque:hover .tp-inner { transform: rotateY(180deg); } }
.tp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 6px; box-shadow: 0 28px 36px -14px rgba(10,26,45,.5), 0 2px 4px rgba(10,26,45,.3); }
.tp-front { transform: rotateY(0deg) translateZ(1px); }
.tp-back { transform: rotateY(180deg) translateZ(1px); }
/* WebKit: the faces' own children are separate layers that ignore the face's backface-visibility,
   so each child hides its back too (otherwise the mirrored back shows through the front). */
.tp-face > *, .tp-face::before, .tp-face::after { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tp-face > * { position: relative; z-index: 2; }
.tp-hint { margin-top: auto; padding-top: 16px; font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.tp-hint::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.tp-proof { list-style: none; padding: 0; margin: 0; display: grid; }
.tp-proof li { font-size: .88rem; line-height: 1.45; padding-block: 8px; }
.tp-proof strong { font-weight: 500; }
/* front: the drawing sheet */
.tp-front { color: var(--print-line); padding: 16px 16px 14px; background:
  linear-gradient(rgba(207,226,242,.12) 1px, transparent 1px) -1px -1px / 20px 20px,
  linear-gradient(90deg, rgba(207,226,242,.12) 1px, transparent 1px) -1px -1px / 20px 20px,
  linear-gradient(rgba(207,226,242,.05) 1px, transparent 1px) -1px -1px / 5px 5px,
  linear-gradient(90deg, rgba(207,226,242,.05) 1px, transparent 1px) -1px -1px / 5px 5px,
  radial-gradient(110% 80% at 50% 20%, #17375a, var(--print) 60%, var(--print-deep)); }
.tp-front::before { content: ''; position: absolute; inset: 0; background-image: var(--grain-light); opacity: .07; z-index: 1; }
/* pass 2: cyanotype paper. Uneven exposure (soft low-frequency blotches), paper fibre and a darker,
   slightly burnt edge, all vector/CSS so it stays sharp on retina. */
.tp-front::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .75 0 0 0 0 .86 0 0 0 0 .97 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E") 0 0 / 520px 520px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .92 0 0 0 0 1 0 0 0 .35 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 240px 240px,
    radial-gradient(120% 95% at 50% 45%, transparent 62%, rgba(4,12,24,.45));
  opacity: .32; }
.tp-sheet { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; border: 1.25px solid rgba(220,235,248,.75); outline: .75px solid rgba(207,226,242,.3); outline-offset: 3px; }
/* registration ticks at the sheet corners (pass 2) */
.tp-reg { position: absolute; inset: -9px; pointer-events: none; z-index: 3;
  background:
    linear-gradient(rgba(207,226,242,.7), rgba(207,226,242,.7)) 0 50% / 6px .75px no-repeat,
    linear-gradient(rgba(207,226,242,.7), rgba(207,226,242,.7)) 100% 50% / 6px .75px no-repeat,
    linear-gradient(rgba(207,226,242,.7), rgba(207,226,242,.7)) 50% 0 / .75px 6px no-repeat,
    linear-gradient(rgba(207,226,242,.7), rgba(207,226,242,.7)) 50% 100% / .75px 6px no-repeat; }
.tp-zones { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(207,226,242,.35); font-family: var(--mono); font-size: .56rem; text-align: center; color: rgba(207,226,242,.7); }
.tp-zones span { padding-block: 2px; }
.tp-zones span + span { border-left: 1px solid rgba(207,226,242,.25); }
.tp-drawing { flex: 1; min-height: 0; position: relative; }
.tp-drawing svg { position: absolute; left: 8px; top: 8px; width: calc(100% - 16px); height: calc(100% - 14px); shape-rendering: geometricPrecision;
  filter: drop-shadow(0 0 .5px rgba(214,234,252,.55)); } /* pass 2: a faint ink bleed, like a real print */
/* pass 2 line hierarchy: cut lines heavy and bright, detail fine, centre lines faint chain-dot */
.tp-drawing .tp-k { fill: none; stroke: #e3f0fb; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.tp-drawing .tp-t { fill: none; stroke: var(--print-line); stroke-width: .5; opacity: .8; stroke-linecap: round; }
.tp-drawing .tp-c { fill: none; stroke: var(--print-line); stroke-width: .35; opacity: .45; stroke-dasharray: 9 2 1.2 2; }

.tp-drawing .tp-g { fill: none; stroke: var(--gold-light); stroke-width: 1; }
.tp-drawing text { font-family: var(--mono); font-size: 7.2px; letter-spacing: .05em; fill: var(--print-line); opacity: .92; }
.tp-drawing text.tp-s { font-size: 6.1px; opacity: .85; }
.tp-drawing text.tp-gt { fill: var(--gold-light); opacity: 1; }
.tp-tblock { display: grid; grid-template-columns: auto 1fr auto auto; border-top: 1.25px solid rgba(220,235,248,.75); font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.tp-tblock h3 { grid-column: 1 / -1; font-family: var(--serif); font-size: clamp(1.75rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: 0; text-transform: none; color: #f2f7fb; padding: 10px 10px 9px; margin: 0; min-height: calc(2.16em + 19px); display: flex; align-items: flex-end; border-bottom: 1px solid rgba(207,226,242,.35); line-height: 1.08; }
.tp-tblock .tp-cell { padding: 4px 9px 5px; white-space: nowrap; border-top: 1px solid rgba(207,226,242,.25); border-left: 1px solid rgba(207,226,242,.3); color: #e8f2fb; line-height: 1.35; }
.tp-tblock .tp-cell:nth-of-type(1), .tp-tblock .tp-cell:nth-of-type(4) { border-left: 0; }
.tp-tblock .tp-cell em { display: block; font-style: normal; font-size: .78em; letter-spacing: .14em; color: rgba(207,226,242,.6); }
.tp-tblock .tp-cell:nth-of-type(1), .tp-tblock .tp-cell:nth-of-type(3), .tp-tblock .tp-cell:nth-of-type(5) { color: var(--gold-light); }
.tp-drawing svg text { paint-order: stroke; stroke: rgba(16,38,63,.85); stroke-width: 1.6px; } /* pass 3: labels knock out the lines under them */
.tp-tblock .tp-wide { grid-column: span 2; white-space: normal; }
.tp-front .tp-hint { color: rgba(207,226,242,.8); padding: 11px 2px 0; margin-top: 0; }
/* back: engraved material */
.tp-back { padding: 28px 26px 22px; box-shadow: 0 28px 36px -14px rgba(10,26,45,.5), 0 2px 4px rgba(10,26,45,.3), inset 0 1px 0 rgba(255,255,255,.55), inset 1px 0 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.28), inset -1px 0 0 rgba(0,0,0,.15); }
.tp-back::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light;
  background: radial-gradient(60% 50% at var(--mx, 30%) var(--my, 12%), rgba(255,252,240,.85), transparent 70%), linear-gradient(170deg, rgba(255,255,255,.35), transparent 40%, rgba(0,0,0,.35)); }
.tp-m-stone { background-color: #d9cfbd; background-image: var(--pores), var(--veins), radial-gradient(120% 90% at 20% 10%, #ebe3d3, #cfc3ae 80%); background-size: 160px, 420px, auto; color: #2b2620;
  --engrave: 0 1px 0 rgba(255,255,255,.6), 0 -1px 0 rgba(0,0,0,.2); --accent: #6e5330; --rule: rgba(43,38,32,.25); }
.tp-m-brass { background-color: #a9834f; background-image: var(--brush), linear-gradient(115deg, #7a5c33 0%, #c9a66d 26%, #e9d3a6 40%, #b38c55 54%, #dcbf8a 70%, #8a6a3d 100%); background-size: 600px 300px, auto; color: #3d2d17;
  --engrave: 0 1px 0 rgba(255,240,205,.6), 0 -1px 0 rgba(60,40,15,.35); --accent: #3a2a14; --rule: rgba(61,45,23,.3); --tbc-fg: #33240f; --tbc-bg: rgba(255,240,205,.32); --tbc-bd: #5a4220; }
.tp-m-wood { background-color: #3a281b; background-image: var(--grain-wood), linear-gradient(100deg, #2c1e14, #4a3323 30%, #3b291c 55%, #523928 78%, #2e2016); background-size: 400px 500px, auto; color: #e4c998;
  --engrave: 0 -1px 0 rgba(0,0,0,.8), 0 1px 0 rgba(255,225,170,.2); --accent: var(--gold-light); --rule: rgba(228,201,152,.22); --tbc-fg: var(--gold-light); --tbc-bg: rgba(0,0,0,.3); --tbc-bd: rgba(228,201,152,.6); }
.tp-back .tp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tp-big { font-family: var(--serif); font-weight: 600; font-size: clamp(3.3rem, 4.4vw, 4rem); line-height: .9; letter-spacing: -.01em; color: var(--accent); text-shadow: var(--engrave); font-variant-numeric: lining-nums; margin: 0; }
.tp-big-l { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; opacity: .85; text-shadow: var(--engrave); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tp-big-l .tp-tbc { text-transform: none; letter-spacing: .03em; }
.tp-seal { width: 76px; height: 76px; flex: none; color: var(--accent); filter: drop-shadow(0 1px 0 rgba(255,245,225,.35)); }
.tp-m-wood .tp-seal { filter: drop-shadow(0 -1px 0 rgba(0,0,0,.7)); }
.tp-seal text { font-family: var(--sans); font-size: 7.4px; letter-spacing: .22em; fill: currentColor; text-transform: uppercase; }
.tp-seal .tp-mono { font-family: var(--serif); font-size: 20px; letter-spacing: 0; font-weight: 600; }
.tp-back h3 { font-size: 1.6rem; font-weight: 600; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); text-shadow: var(--engrave); color: inherit !important; }
.tp-back .tp-proof { margin-top: 6px; }
.tp-back .tp-proof li { border-top: 1px solid var(--rule); text-shadow: var(--engrave); }
.tp-back .tp-proof li:first-child { border-top: 0; }
.tp-back .tp-hint { color: inherit; opacity: .8; }
.tp-back .tp-hint .tp-mat { margin-left: auto; font-family: var(--mono); font-weight: 400; letter-spacing: .1em; }
@media (max-width: 900px) {
  .tp-plaques { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .tp-plaque { height: 490px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-inner, .tp-plaque:hover .tp-inner, .tp-plaque.is-flipped .tp-inner { transition: none; transform: none !important; }
  .tp-back { transform: none; opacity: 0; transition: opacity .25s ease; }
  .tp-plaque.is-flipped .tp-back { opacity: 1; z-index: 3; }
  .tp-plaque.is-flipped .tp-front { visibility: hidden; }
}

/* ---------- Revision 32: the logo's blue double-roof mark (assets/brand/roof-mark.svg, traced from the
   logo), used as a small sign-off beside a few section eyebrows and as a faint watermark in the closing
   section. Drawn as a CSS mask so it takes each surface's colour: brand blue on light, cream on dark. */
.rm { display: inline-block; width: 1.9em; aspect-ratio: 305.5 / 161.9; margin-right: .7em; vertical-align: -0.08em;
  background: #004aad; -webkit-mask: url("assets/brand/roof-mark.svg") center / contain no-repeat; mask: url("assets/brand/roof-mark.svg") center / contain no-repeat; }
.surface--stone .rm { background: #efe9dd; }
.rm--watermark { position: absolute; z-index: 0; left: 50%; top: 50%; width: min(64vw, 760px); margin: 0; transform: translate(-50%, -54%);
  background: #fff; opacity: .05; pointer-events: none; }
.cta--photo > *:not(.rm--watermark) { position: relative; z-index: 1; }
.cta--photo { position: relative; }
.tp-back .tp-proof li { padding-block: 10px; }
/* Revision 32 (client): the roof mark beside the hero stage number ("STAGE 01" ...), cap-height tall, in the
   label's own cream. A pseudo-element, so it stays when main.js rewrites the number's text. Label CSS only. */
.hero__stage-num::before { content: ''; display: inline-block; height: 0.72em; aspect-ratio: 305.5 / 161.9; margin-right: .6em; vertical-align: 0;
  background: currentColor; -webkit-mask: url("assets/brand/roof-mark.svg") center / contain no-repeat; mask: url("assets/brand/roof-mark.svg") center / contain no-repeat; }
/* Revision 32 (client, iPhone): the reviews ring runs the full screen width on phones (out of the 6vw side
   padding; the orbit box still clips it, so nothing scrolls sideways). */
@media (max-width: 600px) { .reviews__orbit { width: auto; align-self: stretch; margin-inline: -6vw; } }
/* Revision 32: faces also swap visibility at the half-turn, so the right side shows even where a browser
   or a GPU path ignores backface-visibility (seen in WebKit test builds). */
.tp-back, .card__face--back { visibility: hidden; }
.tp-face, .card__face { transition: visibility 0s linear .45s; }
.card__face { transition-delay: .38s; }
.tp-plaque.is-flipped .tp-back, .card__img--flip.is-flipped .card__face--back { visibility: visible; }
.tp-plaque.is-flipped .tp-front, .card__img--flip.is-flipped .card__face--front { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .tp-plaque:hover .tp-back, .card:hover .card__face--back { visibility: visible; }
  .tp-plaque:hover .tp-front, .card:hover .card__face--front { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .tp-face, .card__face { transition: opacity .25s ease; } }
/* Revision 34: the plaques swapped faces on a fixed 0.45 s clock, but the eased turn is edge-on at about
   0.15 s and a quick hover-out reverses it mid-turn, so for up to a second the front showed its hidden back
   while the back was still switched off (both blank). Safari also ignores backface-visibility on these
   faces, so the swap must be exact. main.js (.tp-js) now turns the plaque and sets .tp-facing-back in the
   same frame, at exactly 90 degrees. Without that script the old CSS hover turn still works. */
.tp-plaque.tp-js .tp-inner { transition: none; }
.tp-plaque.tp-js .tp-face { transition: none; }
.tp-plaque.tp-js .tp-front, .tp-plaque.tp-js:hover .tp-front, .tp-plaque.tp-js.is-flipped .tp-front { visibility: visible; }
.tp-plaque.tp-js .tp-back, .tp-plaque.tp-js:hover .tp-back, .tp-plaque.tp-js.is-flipped .tp-back { visibility: hidden; }
.tp-plaque.tp-js.tp-facing-back .tp-front { visibility: hidden; }
.tp-plaque.tp-js.tp-facing-back .tp-back { visibility: visible; }
/* Revision 34: the step-04 poster (main.js, why3d.js) fills the 3D box at once on a reload at step 04,
   then fades out over the live model, which has the same size and view. */
.why-draw.has-poster .why-3d { display: block; }
.why-draw.has-poster > svg { display: none; }
.why-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; pointer-events: none; transition: opacity .45s ease; }
.why-poster.is-gone { opacity: 0; }

/* Revision 35: reloading inside Your Journey. The page is held hidden (layout still runs) until main.js has
   moved to step 01, then fades in, so the visitor never sees the top of the page or a jump. */
html.ew-rejourney body { opacity: 0; }
html.ew-reveal body { transition: opacity .3s ease; }

/* ---------- Revision 38: FAQ (parked in Revision 17, back with the client's answers) ----------
   Paper band after the dark Reviews ring. Wide screens: the heading holds on the left while the questions
   run on the right; phones stack. Each question is a real button (aria-expanded); main.js opens the panel by
   height. Without JavaScript the panels stay open (.faq--js is only added by main.js). */
.faq { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4.5rem, 8vw, 7rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
.faq__head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .45rem; }
.faq__intro { margin-top: 1.1rem; max-width: 30ch; color: var(--ink-soft); font-size: 1.02rem; }
.faq__intro a { color: var(--ink); border-bottom: 1px solid rgba(169,131,79,.55); transition: color .25s ease, border-color .25s ease; }
.faq__intro a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.faq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; margin-top: 2rem; }
.faq__call { font-size: .88rem; color: var(--ink-soft); }
.faq__call a { color: var(--ink); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line-strong); transition: border-color .25s ease, color .25s ease; }
.faq__call a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.faq__q[aria-expanded="true"] .faq__n { color: var(--ink); }
.faq__list { border-top: 1px solid var(--line-strong); counter-reset: none; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__h { font: inherit; margin: 0; }
.faq__q {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent;
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2rem; align-items: start; gap: 0 .9rem;
  padding: 1.45rem 0; color: var(--ink);
}
.faq__n { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; color: var(--gold-deep); font-variant-numeric: tabular-nums; line-height: 1; padding-top: .62em; transition: color .25s ease; }
.faq__qt { font-family: var(--serif); font-weight: 500; font-size: clamp(1.28rem, 1.9vw, 1.55rem); line-height: 1.22; transition: color .25s ease; }
.faq__icon { position: relative; justify-self: end; margin-top: -.1rem; width: 2rem; height: 2rem; border: 1px solid var(--line-strong); border-radius: 50%;
  transition: border-color .25s ease, background-color .25s ease; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: .72rem; height: 1px; margin: -.5px 0 0 -.36rem;
  background: currentColor; transition: transform .4s cubic-bezier(.3,.7,.2,1), opacity .3s ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); opacity: 0; }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq__q:hover .faq__qt { color: var(--gold-deep); }
.faq__q:hover .faq__icon { border-color: var(--gold); }
.faq__q[aria-expanded="true"]:hover .faq__icon { background: var(--gold-deep); border-color: var(--gold-deep); }
.faq__q:focus-visible { outline: none; }
.faq__q:focus-visible .faq__qt { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.faq__q:focus-visible .faq__icon { outline: 2px solid var(--gold); outline-offset: 3px; }
.faq__a-inner { padding: 0 2.9rem 1.7rem 3.5rem; color: var(--ink-soft); font-size: 1rem; }
.faq__a-inner p, .faq__a-inner li { line-height: 1.7; max-width: 60ch; }
.faq__steps { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .55rem; }
.faq__steps li { padding-left: 1rem; border-left: 1px solid rgba(169,131,79,.45); }
.faq__steps strong { font-weight: 500; color: var(--ink); }
/* JS on: closed panels take no height and leave the reading and tab order; main.js animates the height. */
.faq--js .faq__a { overflow: hidden; transition: height .5s cubic-bezier(.3,.7,.2,1); }
.faq--js .faq__a:not(.is-open):not(.is-moving) { height: 0; visibility: hidden; }
.faq--js .faq__a-inner { transition: opacity .45s ease, transform .5s cubic-bezier(.3,.7,.2,1); }
.faq--js .faq__a:not(.is-open) .faq__a-inner { opacity: 0; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .faq--js .faq__a, .faq--js .faq__a-inner, .faq__icon, .faq__icon::before, .faq__icon::after { transition: none; }
  .faq--js .faq__a:not(.is-open) .faq__a-inner { transform: none; }
}
@media (max-width: 900px) {
  .faq { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .faq__head { position: static; }
}
@media (max-width: 520px) {
  .faq__q { grid-template-columns: 2rem minmax(0, 1fr) 1.9rem; gap: 0 .6rem; padding: 1.25rem 0; }
  .faq__icon { width: 1.9rem; height: 1.9rem; }
  .faq__a-inner { padding: 0 0 1.5rem 2.6rem; font-size: .97rem; }
  .faq__actions { display: none; } /* phones already carry the floating WhatsApp and Call buttons */
}
