/* ==========================================================================
   DREAMSPACE ROCHESTER — Design System
   Built by SiteSculpt LLC
   Signature: "The Reveal Line" — brass scrubber in hero, scroll rail, gallery divider
   ========================================================================== */

/* --- 1. TOKENS ----------------------------------------------------------- */
:root {
  /* Warm walnut / sand palette. Variable names are historical — --ink is a
     dark walnut, not blue-black, and --blueprint is a bronze hairline. */
  --ink:        #1B1A18;   /* near-black, neutral — footer + banner only */
  --ink-2:      #262522;
  --ink-3:      #343330;
  --ink-line:   #3A3835;

  --plaster:    #FFFFFF;   /* primary surface */
  --plaster-2:  #F7F4F0;
  --plaster-3:  #E9E4DD;
  --line:       #E7E2DB;   /* hairlines on light */

  --brass:      #D6A24C;
  --brass-lite: #EFC777;
  --brass-deep: #7E5620;

  --blueprint:  #C09A5E;   /* bronze hairline (was cyan) */
  --sand:       #F7F4F0;
  --sand-deep:  #EFEAE3;

  --txt-dark:   #1B1A18;
  --txt-light:  #F4EDE1;
  --muted-dark: rgba(27,26,24,.82);
  --muted-light:rgba(244,237,225,.8);

  /* Type */
  /* Fraunces carries the warmth a design-led trade needs; the old
     monospace read as a terminal, so labels now use the body face. */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Figtree", system-ui, -apple-system, sans-serif;
  --mono:    "Figtree", system-ui, -apple-system, sans-serif;

  /* Scale */
  --t-hero:  clamp(2.6rem, 6.4vw, 5rem);
  --t-h1:    clamp(2.1rem, 5vw, 3.9rem);
  --t-h2:    clamp(1.7rem, 3.4vw, 2.7rem);
  --t-h3:    clamp(1.25rem, 2.2vw, 1.7rem);
  /* Sized for sentence case, not for spaced-out uppercase marks. The old
     micro/small steps (11px / 13px) were unreadable once the labels stopped
     being decorative. */
  --t-body:  clamp(1.075rem, 1.15vw, 1.16rem);
  --t-small: .95rem;
  --t-micro: .84rem;

  /* Space */
  --gut: clamp(1.25rem, 4vw, 3.25rem);
  --sec: clamp(5.5rem, 12vw, 11rem);
  --max: 1280px;
  --rail: 68px;

  /* Motion */
  --focus:     var(--brass-lite);
  --ease:      cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur:       .75s;
}

/* --- 2. RESET ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--txt-dark);
  background: var(--plaster);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brass); color: var(--ink);
  padding: .8rem 1.2rem; font-weight: 700;
}
.skip:focus { left: 0; }

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- 3. TYPOGRAPHY ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 96;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.08rem, 1.25vw, 1.22rem);
  letter-spacing: 0;
  color: var(--brass-deep);
  display: block;
  margin-bottom: .7rem;
}


.on-light 

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.78;
  color: var(--muted-dark);
  max-width: 62ch;
}
.on-light .lede { color: var(--muted-dark); }

p + p { margin-top: 1.05rem; }
p b, p strong { color: var(--txt-dark); font-weight: 600; }

/* Prose links: an underline reads as a link without turning every other
   phrase into a gold headline. The copy is keyword-dense, so weight here
   compounds badly. */
/* :not(.btn) — a button inside a paragraph must keep its own colours; without
   this the "Start your project" button rendered dark text on a dark fill. */
.section p a:not(.btn), .lede a:not(.btn), .legal p a:not(.btn) {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(190,123,44,.5);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .3s, color .3s;
}
.section p a:not(.btn):hover, .lede a:not(.btn):hover, .legal p a:not(.btn):hover {
  color: var(--brass-deep);
  text-decoration-color: var(--brass-deep);
}
.on-light p b, .on-light p strong { color: var(--brass-deep); }

.thin { font-weight: 300; letter-spacing: -.01em; }
.brass-txt { color: var(--brass); }

/* --- 4. LAYOUT ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: var(--sec);
  position: relative;
  scroll-margin-top: 96px;
  background: var(--plaster);
  color: var(--txt-dark);
}
.section--tight { padding-block: calc(var(--sec) * .6); }
.section--flush-top { padding-top: 0; }

.on-light { background: var(--plaster-2); color: var(--txt-dark); --focus: var(--brass-deep); }
/* Third surface so consecutive light sections still read as separate bands.
   Used alongside .on-light, which carries all the component overrides. */
.on-sand { background: var(--sand-deep); }
.on-light h1, .on-light h2, .on-light h3 { color: var(--txt-dark); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
/* Nudge the supporting column so its first line sits under the heading's cap,
   not level with the eyebrow. */
.split-head > :last-child { padding-top: .35rem; }

/* Hairline divider with a drafting tick */
.rule {
  height: 1px;
  background: var(--line);
  position: relative;
  margin-block: clamp(2rem, 4vw, 3.5rem);
}
.on-light .rule { background: rgba(43,33,26,.14); }


/* --- 5. THE REVEAL LINE (signature) — margin rail ------------------------ */
.rail {
  display: none !important;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  z-index: 60;
  pointer-events: none;
  display: none;
  /* No blend mode: difference inverted the brass into cyan over the plaster
     sections. Fixed warm tones read on walnut and tan alike instead. */
}
.rail__track {
  position: absolute;
  left: 50%; top: 12vh; bottom: 12vh;
  width: 1px;
  background: rgba(150,120,90,.45);
  transform: translateX(-50%);
}
.rail__fill {
  position: absolute;
  left: 0; top: 0; width: 100%;
  height: var(--progress, 0%);
  background: var(--brass);
  transition: height .12s linear;
}
.rail__diamond {
  position: absolute;
  left: 50%; top: var(--progress, 0%);
  width: 9px; height: 9px;
  background: var(--brass);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: top .12s linear;
}
.rail__label {
  position: absolute;
  left: 50%; bottom: 4vh;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: rgba(150,120,90,.85);
}
.rail__ticks {
  position: absolute;
  left: 50%; top: 12vh; bottom: 12vh;
  width: 11px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rail__ticks i {
  display: block;
  height: 1px;
  background: rgba(150,120,90,.5);
  width: 5px;
}
.rail__ticks i:nth-child(5n+1) { width: 11px; background: rgba(150,120,90,.75); }



/* --- 6. HEADER ----------------------------------------------------------- */
.topbar {
  font-weight: 500;
  background: var(--plaster-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: var(--muted-dark);
  position: relative;
  z-index: 70;
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { transition: color .3s var(--ease-soft); }
.topbar a:hover { color: var(--brass-deep); }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; padding-block: .55rem; }
.topbar__item svg { width: 12px; height: 12px; flex: none; opacity: .7; }
.topbar__spacer { margin-left: auto; }
.topbar__badge { color: var(--brass-deep); font-weight: 700; }

.head {
  position: sticky; top: 0;
  z-index: 80;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.head.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px -28px rgba(27,26,24,.45);
}
.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
  transition: min-height .4s var(--ease-soft);
}
.head.is-stuck .head__in { min-height: 74px; }

.logo { display: flex; align-items: center; gap: .8rem; flex: none; }
.logo img {
  height: 58px; width: auto;
  transition: height .4s var(--ease-soft);
}
.head.is-stuck .logo img { height: 46px; }
.logo__fallback {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.logo__fallback span { display: block; font-family: var(--mono); font-size: .55rem; letter-spacing: .3em; color: var(--brass); font-weight: 400; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__link {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: .005em;
  position: relative;
  padding-block: .5rem;
  color: var(--muted-dark);
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--txt-dark); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.head__cta { display: flex; align-items: center; gap: .75rem; }

/* Sister-company mark: knocked back to sit at nav weight, not competing with
   the Dreamspace logo. Monochrome so it needs no light chip behind it. */
.head__sister {
  display: none;
  align-items: center;
  gap: .55rem;
  padding-right: 1rem;
  margin-right: .35rem;
  border-right: 1px solid var(--line);
  opacity: .95;
  transition: opacity .35s var(--ease-soft);
}
.head__sister:hover, .head__sister:focus-visible { opacity: 1; }
.head__sister small {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  color: var(--muted-dark);
  line-height: 1.25;
  max-width: 5.2em;
}
.head__sister img {
  height: 26px;
  width: auto;
  transition: height .4s var(--ease-soft);
}
.head.is-stuck .head__sister img { height: 22px; }

@media (min-width: 901px) { .head__sister { display: flex; } }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute; left: 11px;
  width: 22px; height: 2px;
  background: var(--txt-dark);
  transition: transform .45s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scroll progress hairline under header */
.head__progress {
  position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-lite), var(--blueprint));
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0;
  z-index: 79;
  background: var(--ink);
  color: var(--txt-light);
  /* Closed, this panel must be inert: clip-path hides it and blocks taps, but
     without these two a keyboard user still tabs through the whole menu. */
  visibility: hidden;
  pointer-events: none;
  padding: calc(var(--head-total, 140px) + 1.4rem) var(--gut) var(--gut);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease), visibility 0s linear .45s;
  overflow-y: auto;
}
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; clip-path: inset(0 0 0 0); }
.drawer__link {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1;
  padding-block: .5rem;
  border-bottom: 1px solid var(--ink-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer.is-open .drawer__link:nth-child(1) { transition-delay: .16s; }
.drawer.is-open .drawer__link:nth-child(2) { transition-delay: .24s; }
.drawer.is-open .drawer__link:nth-child(3) { transition-delay: .32s; }
.drawer.is-open .drawer__link:nth-child(4) { transition-delay: .40s; }
.drawer.is-open .drawer__link:nth-child(5) { transition-delay: .48s; }
.drawer__link em {
  font-family: var(--mono);
  font-style: normal;
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--brass);
}
.drawer__foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--muted-light);
}

/* --- 7. BUTTONS ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--plaster);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.02rem 1.9rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease-soft), transform .35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass-deep);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--plaster); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn svg { width: 13px; height: 13px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--txt-dark);
  box-shadow: inset 0 0 0 1px rgba(27,26,24,.24);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--plaster); }

.on-light .btn--ghost { --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px rgba(43,33,26,.22); }
.on-light .btn--ghost::before { background: var(--ink); }
.on-light .btn--ghost:hover { color: var(--plaster); }

.btn--sm { padding: .78rem 1.3rem; }
.btn--wide { width: 100%; }/* --- 8. HERO ------------------------------------------------------------- */
.hero {
  position: relative;
  /* Leaves the credential band breaking the fold, so the seal reads whole
     and there's a visible reason to scroll. */
  min-height: clamp(500px, calc(100svh - 272px), 760px);
  display: flex;
  align-items: center;
  background: var(--plaster);
  overflow: hidden;
  isolation: isolate;
}

.hero__in {
  position: relative; z-index: 3; width: 100%;
  /* Bottom padding must clear the BCB seal, which is pulled ~58px up into
     the hero from the band below; 54px left it touching the buttons. */
  padding-block: clamp(2.5rem, 6vh, 5rem) clamp(6rem, 11vh, 7.5rem);
}
.hero__copy { max-width: min(52%, 620px); }

/* --- The work, shown four ways: one tile per service the copy sells --- */
.hero__panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--plaster);            /* the gaps read as white rules */
  box-shadow: inset 1px 0 0 var(--line);
}

.hero__tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--plaster-3);
  transition: clip-path 1s var(--ease);
}
/* each tile wipes open on its own beat — but only if JS is alive to open it */
.js .hero__tile { clip-path: inset(0 0 100% 0); }
.hero.is-ready .hero__tile { clip-path: inset(0 0 0 0); }
.hero__tile:nth-child(1) { transition-delay: .10s; }
.hero__tile:nth-child(2) { transition-delay: .20s; }
.hero__tile:nth-child(3) { transition-delay: .30s; }
.hero__tile:nth-child(4) { transition-delay: .40s; }

.hero__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.3s var(--ease), filter .6s;
  filter: saturate(.96);
}
.hero__tile:hover img,
.hero__tile:focus-visible img { transform: scale(1.13); filter: saturate(1.06); }

.hero__tile::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(43,33,26,.9) 0%, rgba(43,33,26,0) 100%);
  pointer-events: none;
}

.hero__tile-label {
  position: absolute;
  left: clamp(.85rem, 1.4vw, 1.25rem);
  bottom: clamp(.75rem, 1.3vw, 1.1rem);
  z-index: 2;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--plaster);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .35s;
}
.hero__tile-label i { display: none; }
.hero__tile:hover .hero__tile-label { color: var(--brass-lite); }
.hero__tile:hover .hero__tile-label i { transform: rotate(135deg); }

/* --- Copy, staged --- */
.js .hero__eyebrow, .js .hero__sub, .js .hero__actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero.is-ready .hero__eyebrow { opacity: 1; transform: none; transition-delay: .5s; }
.hero.is-ready .hero__sub     { opacity: 1; transform: none; transition-delay: .86s; }
.hero.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: .98s; }

.hero__eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  letter-spacing: 0;
  color: var(--brass-deep);
  display: block;
  margin-bottom: 1rem;
}


.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  letter-spacing: -.015em;
  margin-bottom: 1.5rem;
}
.rise--block { display: block; }
.hero h1 .rise > span { transition-duration: 1.05s; }
/* The name now carries two words, so the location steps down to a subline
   instead of competing with it at full headline size. */
/* .rise (declared later, same specificity) was forcing inline-block, so the
   small location line sat in a line box sized for the 90px name above it. */
.hero h1 .rise.rise--block { display: block; }
.hero h1 .rise.thin { font-size: .5em; margin-top: .25em; letter-spacing: 0; }
.hero.is-ready h1 .rise > span { transform: none; }
.hero h1 .rise:nth-child(1) > span { transition-delay: .40s; }
.hero h1 .rise:nth-child(2) > span { transition-delay: .52s; }

.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 500;
  max-width: 32ch;
  line-height: 1.45;
  margin-bottom: 2.1rem;
  color: var(--muted-dark);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- 8b. CREDENTIAL BAND — the BCB seal straddles the seam ------------- */
.creds {
  position: relative;
  z-index: 5;
  background: var(--sand-deep);
  border-block: 1px solid var(--line);
}
.creds__in {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  min-height: 132px;
}
.creds__list {
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  color: var(--muted-dark);
}
.creds__list li { display: flex; align-items: center; gap: .8rem; }
.creds__list li + li::before {
  content: "";
  width: 1px; height: 13px;
  background: var(--line);
  flex: none;
}
.creds__list b { color: var(--txt-dark); font-weight: 700; }

/* --- The seal --- */
.seal {
  --seal-disc: var(--plaster);   /* swap to var(--ink-2) if the mark is light-coloured */
  position: relative;
  flex: none;
  width: clamp(128px, 14vw, 176px);
  aspect-ratio: 1;
  /* Lifted so it breaks the hero's lower edge and reads as an anchor.
     Never scale this element: the ring text is measured at its rendered size. */
  margin-top: calc(-1 * clamp(44px, 5vw, 58px));
}
.seal__disc {
  position: absolute;
  left: 50%; top: 50%;
  width: 63%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--seal-disc);
  border-radius: 50%;
  box-shadow: 0 16px 38px -18px rgba(27,26,24,.4), 0 0 0 1.5px rgba(190,123,44,.7), 0 0 0 7px var(--sand-deep);
}
.seal__mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 40%; max-height: 40%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.seal__ring text {
  font-family: var(--mono);
  font-weight: 700;
  fill: var(--brass-deep);
  /* size and tracking live on the element in SVG user units — see seals() */
}
@keyframes spin { to { transform: rotate(360deg); } }
.seal:hover .seal__ring { animation-duration: 11s; }

/* Compact seal for the footer */
.seal--foot { margin: 0 0 1.4rem; width: 132px; }
.seal--foot .seal__disc { box-shadow: 0 18px 44px -16px rgba(0,0,0,.9), 0 0 0 1px rgba(214,162,76,.6), 0 0 0 6px var(--ink-2); }

/* Page hero (inner pages) */
.phero {
  position: relative;
  padding-block: clamp(7rem, 18vh, 11rem) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  background: var(--plaster);
  border-bottom: 1px solid var(--line);
}
.phero h1 {
  font-size: var(--t-h1);
}
.crumbs {
  font-weight: 600;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  color: var(--muted-dark);
  margin-top: 1.1rem;
  display: flex;
  gap: .6rem;
}
.crumbs a { padding-block: .35rem; }
.crumbs a:hover { color: var(--brass-deep); }
.crumbs span { color: var(--brass-deep); }

/* --- 10. MASONRY GALLERY ------------------------------------------------- */
.mgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  grid-auto-rows: clamp(120px, 15vw, 210px);
  grid-auto-flow: dense;
}
.mcell {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  cursor: zoom-in;
}
.mcell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s;
  transform: scale(1.02);
}
.mcell:hover img { transform: scale(1.1); }
.mcell::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(214,162,76,.35), transparent 55%);
  opacity: 0;
  transition: opacity .5s;
}
.mcell:hover::after { opacity: 1; }
.mcell__num {
  position: absolute;
  left: 10px; bottom: 8px;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  color: var(--plaster);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
}
.mcell:hover .mcell__num { opacity: 1; transform: none; }

.mcell--tall { grid-row: span 2; }
.mcell--wide { grid-column: span 2; }
.mcell--big  { grid-column: span 2; grid-row: span 2; }

/* --- 11. CARDS ----------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

/* Photo-backed cards keep light type: their captions sit on a dark gradient,
   not on the section surface. */
.on-light .ptile h3, .on-light .rcard h3 { color: var(--txt-light); }

/* Spotlight service card */
.scard {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  background: var(--plaster);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .5s;
  display: flex;
  flex-direction: column;
}
.scard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(214,162,76,.2), transparent 62%);
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}
.scard:hover { transform: translateY(-6px); border-color: rgba(190,123,44,.45); box-shadow: 0 18px 44px -30px rgba(27,26,24,.5); }
.scard:hover::before { opacity: 1; }
.scard__idx {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--brass-deep);
  margin-bottom: 1.1rem;
}
.scard h3 {
  font-size: var(--t-h3);
  margin-bottom: .55rem;
}
.scard p { font-size: 1.02rem; color: var(--muted-dark); line-height: 1.6; }

.scard__line {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.scard:hover .scard__line { transform: scaleX(1); }

.on-light .scard { background: var(--plaster); }
.on-light .scard:hover { border-color: rgba(126,86,32,.4); }
.on-light .scard::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(214,162,76,.26), transparent 62%); }
.on-light .scard__idx { color: var(--brass-deep); }
.on-light .scard p { color: var(--muted-dark); }
.on-sand .scard { background: var(--plaster); }

/* Project tile with wipe caption */
.ptile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
  display: block;
}
.ptile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .7s;
  filter: saturate(.85) brightness(.86);
}
.ptile:hover img { transform: scale(1.09); filter: saturate(1.05) brightness(1); }
.ptile__veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(43,33,26,.94) 0%, rgba(43,33,26,.15) 55%, transparent 100%);
}
.ptile__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1.1rem, 2vw, 1.7rem);
  z-index: 2;
}
.ptile h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  margin-bottom: .35rem;
}
.ptile__more {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .2em;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s;
}
.ptile:hover .ptile__more, .ptile:focus-visible .ptile__more { max-height: 30px; opacity: 1; }
.ptile__bar {
  position: absolute; left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .7s var(--ease);
  z-index: 3;
}
.ptile:hover .ptile__bar { transform: scaleY(1); }

/* Room card (game rooms / bathrooms / kitchens) */
.rcard {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--ink-2);
}
.rcard img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease);
}
.rcard:hover img { transform: scale(1.08) rotate(.6deg); }
.rcard__body {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1.2rem, 2.2vw, 1.9rem);
  background: linear-gradient(0deg, rgba(20,19,17,.97) 0%, rgba(20,19,17,.86) 45%, rgba(20,19,17,.4) 78%, transparent);
  transform: translateY(calc(100% - 5.1rem));
  transition: transform .65s var(--ease);
}
.rcard:hover .rcard__body, .rcard:focus-within .rcard__body { transform: translateY(0); }
.rcard h3 { font-size: var(--t-h3); margin-bottom: .6rem; }
.rcard p { font-size: 1rem; color: var(--muted-light); }
.rcard__tick {
  position: absolute; right: 1rem; top: 1rem;
  width: 34px; height: 34px;
  border: 1px solid rgba(244,237,225,.3);
  display: grid; place-items: center;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.rcard:hover .rcard__tick { background: var(--brass); border-color: var(--brass); transform: rotate(90deg); }
.rcard__tick svg { width: 13px; height: 13px; }

/* --- 12. STATS / LEVEL BARS ---------------------------------------------- */
.levels { display: grid; gap: 1.7rem; }
.level__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .07em;
  margin-bottom: .6rem;
}
.level__val { color: var(--brass-deep); font-weight: 700; font-size: .85rem; }
.level__bar {
  position: relative;
  height: 8px;
  background: var(--plaster-3);
  overflow: hidden;
}
.on-light .level__bar { background: rgba(43,33,26,.1); }
.level__fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-lite));
  transition: width 1.7s var(--ease);
}
.level__fill::after {
  content: "";
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ink);
}
.is-in .level__fill { width: var(--w); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.stat {
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  background: var(--plaster);
  position: relative;
  overflow: hidden;
}
.on-light .stat { background: var(--plaster); }
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--brass);
  display: flex;
  align-items: baseline;
}
.stat__num sup { font-size: .38em; font-weight: 700; margin-left: 3px; align-self: flex-start; line-height: 1.35; }
.stat__label {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .07em;
  color: var(--muted-dark);
  margin-top: .7rem;
}

/* --- 13. PROCESS --------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: clamp(90px, 12vw, 170px) 1fr;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
  position: relative;
  transition: background .5s;
}
.on-light .step { border-top-color: rgba(43,33,26,.14); }
.step:last-child { border-bottom: 1px solid var(--line); }
.on-light .step:last-child { border-bottom-color: rgba(43,33,26,.14); }
.step::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  height: 1px; width: 0;
  background: var(--brass);
  transition: width 1.1s var(--ease);
}
.step.is-in::before { width: 100%; }
.step__n {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--brass-deep);
  transition: color .55s var(--ease), -webkit-text-stroke-color .55s;
}
.step:hover .step__n { color: var(--brass-deep); }
.step h3 { font-size: var(--t-h3); margin-bottom: .7rem; }
.step p { color: var(--muted-dark); max-width: 60ch; }
.on-light .step p { color: var(--muted-dark); }

/* --- 14. BEFORE / AFTER SLIDER (signature, reprised) --------------------- */
.ba {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  --pos: 50%;
}
.ba img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* The after image occupies the RIGHT of the divider so the panel matches its
   label: Before sits left, After sits right, as the tags say. */
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--brass);
  z-index: 3;
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%,-50%) rotate(45deg);
  background: var(--brass);
  box-shadow: 0 10px 34px -8px rgba(0,0,0,.85);
  transition: transform .35s var(--ease);
}
.ba:hover .ba__knob { transform: translate(-50%,-50%) rotate(45deg) scale(1.12); }
.ba__knob span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%) rotate(-45deg);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
}
.ba__tag {
  position: absolute;
  bottom: 12px;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  padding: .35rem .7rem;
  background: rgba(43,33,26,.72);
  backdrop-filter: blur(6px);
  z-index: 4;
  pointer-events: none;
  color: var(--plaster);
}
.ba__tag--b { left: 12px; }
.ba__tag--a { right: 12px; color: var(--brass); }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.ba-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .85rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .07em;
  color: var(--muted-dark);
}
.ba-item__meta b { color: var(--brass-deep); font-weight: 700; }

/* --- 15. CTA BANNER ------------------------------------------------------ */
.banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 9rem);
  text-align: center;
  background: var(--ink);
  color: var(--txt-light);
  border-block: 1px solid var(--ink-line);
}
.banner h2 { color: var(--txt-light); }
.banner .eyebrow { color: var(--brass); }
.banner 
.banner .btn { --btn-bg: var(--plaster); --btn-fg: var(--ink); }
.banner .btn::before { background: var(--brass); }
.banner .btn:hover { color: var(--ink); }
.banner__lines {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
}
.banner h2 {
  font-size: var(--t-h1);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.banner .eyebrow { justify-content: center; position: relative; z-index: 2; }
.banner .btn { position: relative; z-index: 2; }

/* Big highlight sweep on a word */
.hl {
  position: relative;
  display: inline-block;
  color: var(--ink);
  z-index: 1;
  padding-inline: .18em;
}
.hl::before {
  content: "";
  position: absolute;
  left: 0; top: 6%; bottom: 6%;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .95s var(--ease) .25s;
  z-index: -1;
}
.is-in .hl::before { transform: scaleX(1); }
.hl--pre { color: var(--txt-light); transition: color .4s .55s; }
.is-in .hl--pre { color: var(--ink); }
/* On plaster sections the word must stay legible before the sweep lands */
.on-light .hl--pre, .on-light .is-in .hl--pre { color: var(--txt-dark); }

/* --- 16. FORM ------------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0 .65rem;
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color .4s;
  border-radius: 0;
}
.on-light .field input, .on-light .field textarea { border-bottom-color: rgba(43,33,26,.22); }
.field textarea { resize: vertical; min-height: 110px; }
.field label {
  position: absolute;
  left: 0; top: 1.15rem;
  font-family: var(--mono);
  font-size: var(--t-small);
  letter-spacing: .1em;
  color: var(--muted-dark);
  pointer-events: none;
  transform-origin: left;
  transition: transform .4s var(--ease), color .3s;
}
.on-light .field label { color: var(--muted-dark); }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--brass); }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.15rem) scale(.76);
  color: var(--brass-deep);
}
.field__line {
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--brass-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line { transform: scaleX(1); }
.hp { position: absolute; left: -9999px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.cinfo { display: grid; gap: 1.4rem; }
.cinfo__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease);
}
.on-light .cinfo__row { border-bottom-color: rgba(43,33,26,.14); }
.cinfo__row:hover { transform: translateX(6px); }
.cinfo__ico {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--brass-deep);
  transition: background .4s, color .4s, border-color .4s;
}
.on-light .cinfo__ico { border-color: rgba(43,33,26,.18); }
.cinfo__row:hover .cinfo__ico { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.cinfo__ico svg { width: 17px; height: 17px; }
.cinfo__k {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: var(--muted-dark);
  display: block;
  margin-bottom: 2px;
}
.on-light .cinfo__k { color: var(--muted-dark); }
.cinfo__v { font-weight: 600; font-size: 1.02rem; }

.form-note {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: var(--muted-dark);
  margin-top: .4rem;
}
.on-light .form-note { color: var(--muted-dark); }

/* --- 17. FOOTER ---------------------------------------------------------- */
.foot { background: var(--ink-2); color: var(--txt-light); border-top: 1px solid var(--ink-line); }

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.foot__logo {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
  padding: .55rem .9rem;
  background: var(--plaster);
  border-radius: 3px;
  box-sizing: content-box;
}
.foot p { color: var(--muted-light); font-size: 1.02rem; max-width: 42ch; }

.foot h4 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: var(--brass);
  margin-bottom: 1.15rem;
}

.foot__links { display: grid; gap: .1rem; }
.foot__links a {
  font-weight: 600;
  font-family: var(--mono);
  font-size: var(--t-small);
  letter-spacing: .08em;
  color: var(--muted-light);
  display: inline-flex;
  align-items: center;
  min-height: 34px;          /* comfortable thumb target on a phone */
  padding-block: .35rem;
  gap: .5rem;
  transition: color .3s, gap .3s;
}
.foot__links a::before { content: "/"; color: var(--brass); }
.foot__links a:hover { color: var(--txt-light); gap: .78rem; }

/* Contact column */
.foot__contact { display: grid; gap: 1rem; }
.foot__contact a, .foot__contact span { display: block; }
.foot__row {
  display: grid;
  gap: 2px;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--ink-line);
}
.foot__row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.foot__k {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: var(--brass);
}
.foot__v { font-size: .96rem; font-weight: 600; color: var(--txt-light); transition: color .3s; }
a.foot__row:hover .foot__v { color: var(--brass-lite); }

.foot__brand-foot { margin-top: 1.6rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

/* Recent work band */
.foot__work {
  border-top: 1px solid var(--ink-line);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.foot__work h4 { margin-bottom: 1rem; }
.strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.strip a {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--ink-3);
}
.strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s, transform .8s var(--ease);
}
.strip a:hover img { filter: none; transform: scale(1.12); }

/* Bottom bar */
.foot__bot {
  font-weight: 500;
  border-top: 1px solid var(--ink-line);
  padding-block: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  color: var(--muted-light);
}
.foot__legal { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.foot__legal > * { position: relative; }
.foot__legal a { transition: color .3s; }
.foot__legal a:hover { color: var(--brass); }
/* Diamond between every item, not just between the two links */
.foot__legal > * + *::before {
  content: "";
  position: absolute; left: -.62rem; top: 50%;
  width: 1px; height: 11px;
  background: rgba(244,237,225,.3);
  transform: translateY(-50%);
}
.foot__made a { color: var(--brass); transition: color .3s; }
.foot__made a:hover { color: var(--brass-lite); }

.socials { display: flex; gap: .5rem; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line);
  transition: background .35s, color .35s, transform .45s var(--ease), border-color .35s;
}
.socials a:hover { background: var(--brass); color: var(--ink); transform: translateY(-3px); border-color: var(--brass); }
.socials svg { width: 15px; height: 15px; }

/* --- 18. LIGHTBOX -------------------------------------------------------- */
.lb {
  position: fixed; inset: 0;
  color: var(--txt-light);
  z-index: 200;
  background: rgba(6,10,14,.96);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-soft), visibility .45s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  transform: scale(.94);
  transition: transform .55s var(--ease);
  box-shadow: 0 40px 120px -30px #000;
}
.lb.is-open img { transform: scale(1); }
.lb__x {
  position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem);
  width: 48px; height: 48px;
  border: 1px solid var(--ink-line);
  display: grid; place-items: center;
  color: var(--plaster);
  transition: background .35s, color .35s, transform .4s;
}
.lb__x:hover { background: var(--brass); color: var(--ink); transform: rotate(90deg); }
.lb__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line);
  color: var(--plaster);
  transition: background .35s, color .35s;
}
.lb__nav:hover { background: var(--brass); color: var(--ink); }
.lb__nav--p { left: clamp(.5rem,2vw,2rem); }
.lb__nav--n { right: clamp(.5rem,2vw,2rem); }
.lb__count {
  position: absolute; bottom: clamp(1rem,3vw,2rem); left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .08em;
  color: var(--muted-light);
}

/* --- 20. REVEAL SYSTEM --------------------------------------------------- */
.js [data-reveal] { opacity: 0; transition: opacity .85s var(--ease), transform .95s var(--ease); }
.js [data-reveal="up"]    { transform: translateY(42px); }
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"]  { transform: scale(.93); }
[data-reveal].is-in   { opacity: 1; transform: none; }

/* Wipe reveal for imagery — the trowel edge.
   The clip lives on the child image, never the observed element: an element
   that clips itself to zero width reports zero intersection in Chromium and
   would never trigger its own reveal. */
.js [data-wipe] > img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.15s var(--ease);
}
[data-wipe].is-in > img { clip-path: inset(0 0 0 0); }
.js [data-wipe="up"] > img { clip-path: inset(100% 0 0 0); }
[data-wipe="up"].is-in > img { clip-path: inset(0 0 0 0); }

/* Word-by-word mask rise */
.rise { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.js .rise > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .95s var(--ease);
}
.is-in .rise > span { transform: none; }

/* Stagger children */
.js [data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].is-in > * { opacity: 1; transform: none; }

/* Parallax layer */
[data-para] { will-change: transform; }

/* --- 21. RESPONSIVE ------------------------------------------------------ */
@media (max-width: 1180px) {
  .foot__grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .creds__list { letter-spacing: .13em; gap: 1rem 1.5rem; }
}

@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .nav, .head__cta .btn--ghost { display: none; }
  .burger { display: block; }
  .grid-2, .split-head, .contact-grid { grid-template-columns: 1fr; }
  .split-head { align-items: start; }
  .mgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 30vw; }
  .mcell--big { grid-column: span 2; grid-row: span 1; }
  .step { grid-template-columns: 1fr; gap: .8rem; }
  .topbar__item--addr { display: none; }
}

@media (max-width: 1180px) {
  /* tighten the tracking so the three credentials hold one line */
  .creds__list { letter-spacing: .13em; gap: 1rem 1.5rem; }
}

@media (max-width: 980px) {
  /* No room for a side-by-side split: the copy stacks above the gallery */
  .hero { display: block; min-height: 0; }
  .hero__in { z-index: 5; padding-block: clamp(2.5rem, 7vh, 4rem) 1.75rem; }
  .hero__copy { max-width: 100%; }
  .hero__panel {
    position: static;
    /* Align the tiles to the same measure as the copy — full-bleed photos
       against inset text made the hero look like two different layouts. */
    width: calc(100% - (var(--gut) * 2));
    margin: .5rem auto 0;
    aspect-ratio: 1 / 1;
    max-height: 58vh;
    gap: 6px;
    background: transparent;
    box-shadow: none;
  }
  .hero__in { padding-block: clamp(2rem, 5.5vh, 3rem) 1.5rem; }

  .creds__in { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-block: 1.75rem; }
  .creds__list { gap: .7rem 1.4rem; }
  .creds__list li + li::before { display: none; }
  .seal { margin-top: 0; margin-bottom: 0; }
}

@media (max-width: 1180px) {
  .topbar__badge { display: none; }
}

@media (max-width: 900px) {
  .topbar__in { justify-content: space-between; }
    }

@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .topbar__item--mail { display: none; }
  .foot__bot { justify-content: center; text-align: center; }
  .foot__legal { justify-content: center; }
  .ba-grid { grid-template-columns: 1fr; }
}

/* --- 23. SECTION CONTAINMENT -------------------------------------------
   The ambient blueprint layers are gone; these two properties are all that
   remains of that block and they still matter for section stacking. */
.section {
  overflow: hidden;
  isolation: isolate;
}
.banner, .foot { position: relative; isolation: isolate; }

/* --- 24. LEGAL PAGES ----------------------------------------------------- */
.legal { max-width: 74ch; }
.legal__meta {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .07em;
  color: var(--muted-dark);
  padding-bottom: 1.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid rgba(43,33,26,.16);
}
.legal h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  margin-top: 2.8rem;
  margin-bottom: .85rem;
  display: flex;
  align-items: baseline;
  gap: .8rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h2 em {
  font-family: var(--mono);
  font-style: normal;
  font-size: var(--t-micro);
  letter-spacing: .2em;
  color: var(--brass-deep);
  flex: none;
}
.legal h3 {
  font-size: 1.02rem;
  margin-top: 1.5rem;
  margin-bottom: .45rem;
}
.legal p, .legal li { color: var(--muted-dark); }
.legal ul { margin: .7rem 0 0; display: grid; gap: .5rem; }
.legal li { padding-left: 1.35rem; position: relative; }
.legal li::before {
  content: "";
  position: absolute; left: 0; top: .82em;
  width: 14px; height: 1px;
  background: var(--brass-deep);
}
.legal a { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }

.legal__note {
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255,255,255,.5);
  border-left: 3px solid var(--brass);
}
.legal__note p { font-size: .9rem; }

/* --- 25. SISTER COMPANY PAGE --------------------------------------------- */
/* Matco's mark is dark ink on transparency — 8.1:1 on plaster, 1.4:1 on
   walnut — so it only ever sits on a light surface, on its own card. */
.partner-card {
  background: #fff;
  border: 1px solid rgba(43,33,26,.12);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  box-shadow: 0 26px 60px -34px rgba(43,33,26,.5);
}
.partner-card img { width: min(280px, 100%); height: auto; }
.partner-card__meta { display: grid; gap: .9rem; width: 100%; }
.partner-card__row {
  display: grid; gap: 2px;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(43,33,26,.1);
}
.partner-card__row:last-child { border-bottom: 0; padding-bottom: 0; }
.partner-card__k {
  font-family: var(--mono); font-size: var(--t-micro); font-weight: 600; letter-spacing: .06em; color: var(--brass-deep);
}
.partner-card__v { font-weight: 600; font-size: .98rem; color: var(--txt-dark); }
a.partner-card__row:hover .partner-card__v { color: var(--brass-deep); }

/* Two companies, side by side */
.split-co {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.co {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--plaster);
  position: relative;
  overflow: hidden;
}
.on-light .co { background: var(--plaster); }
.co__tag {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .2em; color: var(--brass-deep); margin-bottom: .9rem; display: block;
}
.on-light .co__tag { color: var(--brass-deep); }
.co h3 { font-size: var(--t-h3); margin-bottom: .8rem; }
.co ul { display: grid; gap: .5rem; margin-top: 1rem; }
.co li {
  position: relative; padding-left: 1.3rem;
  font-size: 1.02rem; color: var(--muted-dark);
}
.co li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 14px; height: 1px; background: var(--brass-deep);
}
.on-light .co li::before { background: var(--brass-deep); }

/* Brands strip */
.brands {
  display: flex; flex-wrap: wrap;
  gap: .6rem clamp(.6rem, 1.4vw, 1rem);
}
.brands span {
  font-family: var(--mono); font-size: var(--t-small);
  letter-spacing: .04em;
  padding: .62rem 1.05rem;
  border: 1px solid rgba(43,33,26,.16);
  color: var(--muted-dark);
  transition: border-color .35s, color .35s, transform .4s var(--ease);
}
.brands span:hover { border-color: var(--brass-deep); color: var(--txt-dark); transform: translateY(-2px); }

@media (max-width: 760px) {
  .split-co { grid-template-columns: 1fr; }
}

/* --- 26. "FROM THE GROUND UP" — scroll-scrubbed build sequence ----------- */
.build { position: relative; background: var(--plaster); color: var(--txt-dark); padding-block: var(--sec); }
.build__sticky { display: flex; align-items: center; }
.build__in {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
}
.build__stage { position: relative; }
.build__stage svg { width: 100%; height: auto; overflow: visible; }

/* every stroke draws itself; every fill fades up */
.js .build g[data-stage] [data-draw] {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset .9s var(--ease);
}
.build g[data-stage].is-on [data-draw] { stroke-dashoffset: 0; }
.js .build g[data-stage] [data-fill] { opacity: 0; transition: opacity .7s var(--ease) .25s; }
.build g[data-stage].is-on [data-fill] { opacity: 1; }

.build__steps { counter-reset: bs; display: grid; gap: .15rem; }
.build__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: baseline;
  padding: .72rem 0;
  border-top: 1px solid var(--line);
  opacity: .38;
  transition: opacity .45s var(--ease), color .45s;
}
.build__step:last-child { border-bottom: 1px solid var(--line); }
.build__step.is-on { opacity: 1; }
.build__step em {
  font-family: var(--mono); font-style: normal;
  font-size: var(--t-micro); letter-spacing: .07em;
  color: var(--brass-deep);
}
.build__step b {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(.98rem, 1.5vw, 1.18rem);
  letter-spacing: -.01em;
}
.build__step span {
  grid-column: 2; font-size: .98rem; color: var(--muted-dark);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s;
}
.build__step.is-on span { max-height: 4rem; opacity: 1; margin-top: .25rem; }

.build__meter {
  height: 2px; background: var(--plaster-3);
  margin-top: 1.6rem; position: relative; overflow: hidden;
}
.build__meter i {
  position: absolute; inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-lite));
  transition: width 1.05s var(--ease-soft);
}
.build__foot {
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: .8rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .03em; color: var(--muted-dark);
}
.build__replay {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 34px; padding-block: .4rem;
  color: var(--brass-deep); transition: color .3s;
}
.build__replay:hover { color: var(--ink); }
.build__replay svg { width: 13px; height: 13px; transition: transform .5s var(--ease); }
.build__replay:hover svg { transform: rotate(-180deg); }

@media (max-width: 860px) {
  .build__in { grid-template-columns: 1fr; gap: 1.5rem; }
  .build__stage { order: -1; }
  .build__step span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* no playback: the finished house and all six stages, at rest */
  .build g[data-stage] [data-draw] { stroke-dashoffset: 0 !important; }
  .build g[data-stage] [data-fill] { opacity: 1 !important; }
  .build__step { opacity: 1; }
  .build__step span { max-height: 4rem; opacity: 1; }
  .build__meter i { width: 100%; }
}

/* --- 27. LIGHT-SURFACE VARIANT OF THE BUILD SEQUENCE --------------------- */
/* Same machinery as Matco's house, re-skinned for a plaster/sand section so
   the light-dark rhythm of the homepage isn't disturbed. */
.build.on-light { background: var(--sand); color: var(--txt-dark); }
.build.on-light .build__step { border-top-color: rgba(43,33,26,.16); }
.build.on-light .build__step:last-child { border-bottom-color: rgba(43,33,26,.16); }
.build.on-light .build__step em { color: var(--brass-deep); }
.build.on-light .build__step span { color: var(--muted-dark); }
.build.on-light .build__meter { background: rgba(43,33,26,.14); }
.build.on-light .build__foot { color: var(--muted-dark); }
.build.on-light .build__replay { color: var(--brass-deep); }
.build.on-light .build__replay:hover { color: var(--ink); }

/* Line weights for the room drawing, tuned for a light ground */
.rm-a  { stroke: #7E5620; stroke-width: 2; }
.rm-b  { stroke: rgba(43,33,26,.42); stroke-width: 1.2; }
.rm-c  { stroke: #B4823C; stroke-width: 1.5; }
.rm-f1 { fill: #C7A97E; }
.rm-f2 { fill: #EFE7D8; }
.rm-f3 { fill: #8A6A45; }
.rm-glow { fill: #F6D89A; }

/* --- 28. GALLERY --------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.filter {
  font-weight: 600;
  font-family: var(--mono);
  font-size: var(--t-small);
  letter-spacing: .07em;
  padding: .5rem 0;
  margin-right: 1.9rem;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted-dark);
  transition: border-color .3s, color .3s;
}
.filter:hover { color: var(--txt-dark); }
.filter[aria-pressed="true"] { color: var(--txt-dark); border-bottom-color: var(--txt-dark); }
.filter span { color: var(--brass-deep); margin-left: .45rem; }
.filter[aria-pressed="true"] span { color: var(--brass-lite); }

.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.gal figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-2);
  cursor: zoom-in;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.gal figure[hidden] { display: none; }
.gal figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease);
}
.gal figure:hover img { transform: scale(1.1); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  background: linear-gradient(0deg, rgba(20,19,17,.95), rgba(20,19,17,.35) 60%, rgba(20,19,17,0));
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .07em;
  color: var(--plaster);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gal figure:hover figcaption, .gal figure:focus-visible figcaption { opacity: 1; transform: none; }

.gal__empty {
  font-family: var(--mono); font-size: var(--t-small);
  letter-spacing: .04em;
  color: var(--muted-dark); padding: 2rem 0;
}

@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gal { grid-template-columns: 1fr; } }

/* --- 29. FAIL-SAFE ------------------------------------------------------
   Nothing above is allowed to hide content unless JS has confirmed it is
   running (the .js class) AND has had a chance to reveal it. If the script
   fails, is blocked, or is slow, every section renders normally. On a page
   bought with ad clicks, an invisible contact form is the costliest bug
   available, so the animation is strictly an enhancement.
   ---------------------------------------------------------------------- */
html.no-anim [data-reveal],
html.no-anim [data-stagger] > *,
html.no-anim .hero__eyebrow,
html.no-anim .hero__sub,
html.no-anim .hero__actions { opacity: 1 !important; transform: none !important; }
html.no-anim [data-wipe] > img,
html.no-anim .hero__tile { clip-path: none !important; }
html.no-anim .rise > span { transform: none !important; }

/* Drawer counterpart of .head__sister — knockout mark, no chip needed */
.drawer__partner {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink-line);
  opacity: 1;
  transition: opacity .3s;
}
.drawer__partner:hover { opacity: 1; }
.drawer__partner em {
  font-family: var(--mono); font-style: normal;
  font-size: var(--t-micro); letter-spacing: .04em;
  color: var(--brass-lite); flex: none;
}
.drawer__partner img { height: 30px; width: auto; }

/* --- 30. TOUCH DEVICES: NOTHING HIDES BEHIND HOVER ---------------------- */
@media (hover: none) {
  .rcard__body { transform: none; }
  .rcard p { color: rgba(244,237,225,.9); }
  .gal figcaption { opacity: 1; transform: none; }
  .hero__tile img { transform: none; }
}

/* --- 31. HEADER STATE WHILE THE MOBILE MENU IS OPEN --------------------- */
body.is-locked .head {
  background: var(--ink);
  border-bottom-color: transparent;
  box-shadow: none;
}
body.is-locked .logo { opacity: 0; pointer-events: none; transition: opacity .3s; }
body.is-locked .burger span { background: var(--txt-light); }
body.is-locked .head__cta .btn { opacity: 0; pointer-events: none; transition: opacity .25s; }
body.is-locked .topbar { opacity: 0; pointer-events: none; transition: opacity .3s; }

.drawer__cta {
  margin-top: 1.6rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease) .54s, transform .5s var(--ease) .54s;
}
.drawer.is-open .drawer__cta { opacity: 1; transform: none; }
.drawer__cta .btn { --btn-bg: var(--plaster); --btn-fg: var(--ink); flex: 1 1 auto; justify-content: center; }
.drawer__cta .btn::before { background: var(--brass); }
.drawer__cta .btn:hover { color: var(--ink); }
.drawer__cta .btn--ghost { --btn-bg: transparent; --btn-fg: var(--txt-light); box-shadow: inset 0 0 0 1px var(--ink-line); }
.drawer__cta .btn--ghost::before { background: var(--plaster); }
.drawer__cta .btn--ghost:hover { color: var(--ink); }

/* Short phones (SE and similar): the menu must fit without scrolling, so the
   type steps down and the spacing tightens rather than pushing contact
   details off the bottom. */
@media (max-height: 740px) {
  .drawer { gap: .5rem; padding-top: calc(var(--head-total, 140px) + .5rem); }
  .drawer__link { font-size: clamp(1.6rem, 7vw, 2.1rem); padding-block: .3rem; }
  .drawer__cta { margin-top: 1rem; }
  .drawer__foot { margin-top: 1rem; padding-top: 1rem; gap: .45rem; }
  .drawer__partner { margin-top: .8rem; padding-top: .8rem; }
  .drawer__partner img { height: 26px; }
}

/* --- 32. CUSTOMER BROCHURE ---------------------------------------------- */
.brochure__in {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  max-width: 1060px;
}
.brochure__cover {
  display: block;
  box-shadow: 0 30px 60px -28px rgba(27,26,24,.55), 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.brochure__cover img { width: 100%; height: auto; display: block; }
.brochure__cover:hover, .brochure__cover:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -30px rgba(27,26,24,.6), 0 0 0 1px var(--line);
}
.brochure__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .9rem 1.4rem;
  margin-top: 1.9rem;
}
.brochure__meta { font-size: var(--t-small); color: var(--muted-dark); }
@media (max-width: 900px) {
  .brochure__in { grid-template-columns: 1fr; justify-items: start; }
  .brochure__cover { width: min(220px, 62vw); }
}

/* --- 33. SISTER MARK IN THE MOBILE TOPBAR ------------------------------
   The header row is full on a phone (logo + CTA + burger leave ~29px at
   360px), so below 900px the sister mark lives in the topbar strip, which
   otherwise carries only the phone number. */
.topbar__sister {
  display: none;
  align-items: center;
  gap: .55rem;
  padding-block: .55rem;
  color: var(--muted-dark);
  transition: color .3s, opacity .3s;
}
.topbar__sister span {
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.topbar__sister img {
  height: 22px;
  width: auto;
  display: block;
}
.topbar__sister:hover, .topbar__sister:focus-visible { color: var(--txt-dark); }

@media (max-width: 900px) {
  .topbar__sister { display: inline-flex; }
}
/* Below 375px the label collides with the phone number (measured), so the
   mark carries it alone; from 375px up both fit with room to spare. */
@media (max-width: 374px) {
  .topbar__sister span { display: none; }
  .topbar__sister img { height: 20px; }
}

/* --- 34. MOBILE STICKY CTA BAR -----------------------------------------
   Below 900px the header collapses to logo + burger, so the two actions
   that actually matter sit in a thumb-reachable bar pinned to the bottom
   of the viewport. Above 900px the header still carries them and this
   never renders. */
.mcta { display: none; }

@media (max-width: 900px) {
  /* The header row hands its CTAs to the bar below. */
  .head__cta .btn { display: none; }

  .mcta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 65;
    padding: .5rem var(--gut);
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-top: 1px solid var(--line);
    transition: transform .35s var(--ease), opacity .25s;
  }
  .mcta .btn {
    width: 100%;
    min-height: 50px;
    padding-inline: .5rem;
    font-size: .98rem;
  }

  /* Keep the footer clear of the bar. */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

  /* Out of the way while the mobile drawer is open. */
  body.is-locked .mcta {
    transform: translateY(115%);
    opacity: 0;
    pointer-events: none;
  }
}
