/* base.css - Smart Render Somerset. The page is finished without this file's motion states: every hidden starting
   state below lives under html.mo (set by head.js only when motion is allowed, cleared if motion.js never starts). */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1rem/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .005em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-core); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--white); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
section[id] { scroll-margin-top: 8px; }

.eyebrow {
  margin: 0 0 10px;
  font: 500 1.0625rem/1.2 var(--font-display);
  letter-spacing: .01em;
  color: var(--teal-core);
}
.h2 { font-size: clamp(2rem, 1.2rem + 3.3vw, 4.2rem); line-height: 1.02; margin-bottom: 16px; }
.lede { font-size: 1.0625rem; }
.mask { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.mask__in { display: block; }

/* ---------- buttons: square, like the mark ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 500 1.0625rem/1.1 var(--font-display); letter-spacing: .02em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn__ico { flex: none; }
.btn--call { background: var(--teal); color: var(--white); }
.btn--call:hover { background: var(--teal-deep); }
.btn--line { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn--white { background: var(--white); color: var(--teal-ink); }
.btn--white:hover { background: var(--paper); }

/* ---------- header: the mark on its own black ---------- */
.hdr { position: relative; z-index: 50; background: var(--black); }
.hdr__in {
  display: flex; align-items: center; gap: 10px;
  height: var(--hdr-h);
  width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto;
}
/* the logo's own black margin (24px of 269) falls into the bar's black, so the lockup fills the bar and its
   "Machine Applied Specialists" line reads; the image itself is the logo as sent */
.brand { display: flex; align-items: center; height: var(--hdr-h); overflow: hidden; margin-right: auto; }
.brand__img { height: calc(var(--hdr-h) * 1.1); width: auto; max-width: none; margin-left: calc(var(--hdr-h) * -.098); }
.hdr__call, .hdr__nav { display: none; }
.callbtn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: var(--white);
}
.burger {
  position: relative; width: 46px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.burger span { top: 22px; }
.burger::before { top: 15px; }
.burger::after { top: 29px; }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--black); border-top: 1px solid var(--line-dark);
  padding: 6px var(--gut) 22px;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0 0 16px; padding: 0; }
.menu li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  font: 500 1.6rem/1 var(--font-display); text-transform: uppercase; text-decoration: none; color: var(--white);
}
.menu__call { width: 100%; }

@media (min-width: 1024px) {
  .hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { margin-right: 0; justify-self: start; }
  .hdr__call {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
    background: var(--teal); color: var(--white); text-decoration: none;
    font: 500 1.0625rem/1 var(--font-display); letter-spacing: .02em;
  }
  .hdr__call:hover { background: var(--teal-deep); }
  .hdr__nav { display: block; justify-self: end; }
  .hdr__nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
  .hdr__nav a {
    display: inline-flex; align-items: center; min-height: 44px; position: relative;
    font: 500 1.0625rem/1 var(--font-display); text-decoration: none; color: var(--white);
  }
  .hdr__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--teal-core);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
  }
  .hdr__nav a:hover::after { transform: scaleX(1); }
  .callbtn, .burger, .menu { display: none; }
}

/* ---------- placeholder slots: framed, labelled, honest ---------- */
.slot { position: relative; }
.slot::after {
  content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
  --c: rgba(255, 255, 255, .5); --l: 18px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l);
  background-repeat: no-repeat;
}
.slot__label {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; margin: 0;
  padding: 6px 9px; background: rgba(0, 0, 0, .8); color: var(--white);
  font: 600 .75rem/1.2 var(--font-text); letter-spacing: .03em;
}
.slot:has(img) .slot__label, .slot:has(img)::after { display: none; }

/* ---------- 1. top: the hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(86vh - var(--hdr-h));
  min-height: calc(86svh - var(--hdr-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--black-1); color: var(--white);
}
.hero__wall { position: absolute; inset: 0; z-index: -1; transform: translate3d(0, var(--hy, 0px), 0); }
.hero__settle { position: absolute; inset: -6% 0; transform-origin: 60% 40%; }
.hero__grain { position: absolute; inset: 0; background: #060909 var(--grain-fine) 0 0 / 116px; }
/* Jack's hero photo goes in .hero__settle as <img class="hero__img">: full bleed, under the scrim, the words over it */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__wall.slot::after { top: 14px; bottom: 14px; }
.hero__wall .slot__label { left: auto; right: 18px; top: 18px; bottom: auto; }
.hero__lamp {
  position: absolute; top: -25%; left: -30%; width: 120%; height: 130%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .2), rgba(50, 145, 145, .14) 46%, rgba(50, 145, 145, 0) 100%);
  transform: translateX(46%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06) 0%, rgba(0, 0, 0, .06) 16%, rgba(0, 0, 0, .6) 36%, rgba(0, 0, 0, .74) 48%);
}
.hero__copy { position: relative; padding: 26px 0 30px; }
.hero__eyebrow { margin-bottom: 14px; padding-left: 11px; border-left: 3px solid var(--teal-core); color: var(--white); }
.hero__h1 { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 5.6rem); line-height: 1; }
/* the place and the trade on a teal band, run in from the screen's edge like one pass of the machine */
.hero__band {
  position: relative; isolation: isolate; display: block; width: fit-content; max-width: 100%;
  margin-top: 16px; padding: 9px 14px 10px 0;
  font-size: max(1.0625rem, .44em); line-height: 1.12; letter-spacing: .02em; color: var(--white); text-wrap: balance;
}
.hero__band::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; left: -100vw;
  background: var(--teal); transform-origin: left center;
}
.hero__sub { margin: 16px 0 22px; max-width: 34ch; font-size: 1.0625rem; color: #dde4e2; }
.hero__acts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 360px; }

@media (min-width: 768px) {
  .hero__copy { padding: 56px 0 48px; }
  .hero__sub { font-size: 1.1875rem; }
  .hero__acts { flex-direction: row; max-width: none; align-items: center; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(calc(100vh - var(--hdr-h)), 900px); justify-content: center; }
  .hero__copy { padding: 64px 0; }
  .hero__h1 { font-size: clamp(3.6rem, 1.4rem + 3.6vw, 5rem); max-width: 9.6em; }
  .hero__scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, .06) 72%); }
  .hero__lamp { top: -40%; }
}

/* ---------- 2. doors ---------- */
.doors { background: var(--black); padding: 26px 0 var(--pad); }
.doors__rule { display: block; height: 3px; background: var(--teal-core); transform-origin: left center; }
.doors__grid { display: grid; gap: 10px; perspective: 1400px; }
.door {
  position: relative; display: block; min-height: 156px; padding: 22px 70px 24px 20px;
  text-decoration: none; transform-origin: 50% 0;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.door:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }
.door--house { background: var(--r-white) var(--grain-smooth) 0 0 / 100px; color: var(--ink); }
.door--site { background: var(--teal-deep) var(--grain-smooth) 0 0 / 100px; color: var(--white); }
.door__h { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); line-height: 1; margin-bottom: 10px; }
.door__p { margin: 0; max-width: 32ch; }
.door--house .door__p { color: #262d2d; }
.door--site .door__p { color: #e7f3f1; }
.door__go {
  position: absolute; right: 16px; top: 18px; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--black); color: var(--white);
}
.door--site .door__go { background: var(--white); color: var(--teal-deep); }
@media (min-width: 640px) {
  .doors__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .door { min-height: 210px; padding: 28px 80px 30px 26px; }
}
@media (min-width: 1024px) {
  .door { min-height: 250px; padding: 36px 96px 36px 34px; }
  .door__p { font-size: 1.125rem; }
  .door__go { width: 52px; height: 52px; right: 24px; top: 26px; }
}

/* ---------- 3. colour: the signature ---------- */
.colour { background: var(--paper); color: var(--ink); padding: var(--pad) 0; overflow: hidden; }
.colour .eyebrow { color: var(--teal-deep); }
.colour__h2 { font-size: clamp(3.2rem, 1rem + 11vw, 8.6rem); line-height: .92; margin: 4px 0 16px; }
.colour__head .lede { max-width: 34ch; color: #1d2424; }
.colour__stage { margin-top: 24px; }

.wall {
  --p: 1; --c1: var(--r-sand); --c2: var(--r-sand); --gy: 0px;
  position: relative; overflow: hidden; isolation: isolate;
  margin-inline: calc(-1 * var(--gut));
  height: min(112vw, 470px);
  background: var(--r-base);
}
.wall__base { position: absolute; inset: 0; background: var(--r-base) var(--grain-scraped) 0 0 / 120px; }
.wall__passes { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(5, 1fr); }
.pass { position: relative; overflow: hidden; --s: clamp(0, calc(var(--p) * 5 - var(--i)), 1); }
.pass:nth-child(1) { --i: 0; } .pass:nth-child(2) { --i: 1; } .pass:nth-child(3) { --i: 2; } .pass:nth-child(4) { --i: 3; }
.pass:nth-child(5) { --i: 4; }
.coat { position: absolute; top: -1px; bottom: -1px; width: calc(100% + 64px); will-change: transform; }
.coat--a { --cc: var(--c1); }
.coat--b { --cc: var(--c2); }
.pass:nth-child(odd) .coat { left: 0; background: linear-gradient(90deg, var(--cc) calc(100% - 64px), rgba(255, 255, 255, 0)); }
.pass:nth-child(even) .coat { right: 0; background: linear-gradient(270deg, var(--cc) calc(100% - 64px), rgba(255, 255, 255, 0)); }
.pass:nth-child(odd) .coat--a { transform: translateX(calc((var(--s) - 1) * 100%)); }
.pass:nth-child(even) .coat--a { transform: translateX(calc((1 - var(--s)) * 100%)); }
.pass:nth-child(odd) .coat--b { transform: translateX(-100%); }
.pass:nth-child(even) .coat--b { transform: translateX(100%); }
.wall.is-respray .coat--b { transform: none; transition: transform .5s var(--ease-io) calc(var(--i) * 110ms); }
.wall.no-tr .coat { transition: none !important; }
.wall__grain {
  position: absolute; inset: -30px; pointer-events: none;
  background: var(--grain-fine) 0 0 / 110px;
  transform: translate3d(0, var(--gy), 0);
}
.wall::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .16) 100%);
}
.wall__name {
  position: absolute; left: var(--gut); bottom: 14px; z-index: 2; margin: 0;
  font: 500 clamp(2.6rem, 1.6rem + 5vw, 5.2rem)/1 var(--font-display); text-transform: uppercase;
  color: rgba(11, 15, 15, .9); transition: color .4s;
}
.wall[data-ink="light"] .wall__name { color: var(--white); }

.chooser { margin-top: 18px; }
.chooser__label { margin: 0 0 10px; font: 500 1.0625rem/1 var(--font-display); color: var(--teal-deep); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.sw {
  appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-height: 44px;
  font: 600 .8125rem/1.1 var(--font-text); color: var(--ink); text-align: center;
}
.sw__chip {
  display: block; aspect-ratio: 1; background: var(--sw) var(--grain-fine) 0 0 / 70px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.sw:hover .sw__chip { transform: translateY(-2px); }
.sw[aria-pressed="true"] .sw__chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 3px var(--paper), 0 0 0 5px var(--teal-deep); }
.sw[aria-pressed="true"] .sw__name { color: var(--teal-deep); }
.sw--white { --sw: var(--r-white); } .sw--cream { --sw: var(--r-cream); } .sw--sand { --sw: var(--r-sand); }
.sw--stone { --sw: var(--r-stone); } .sw--grey { --sw: var(--r-grey); } .sw--charcoal { --sw: var(--r-charcoal); }

.colour__more { margin-top: 30px; }
.colour__through { font-size: 1.0625rem; color: #1d2424; border-left: 3px solid var(--teal-deep); padding-left: 14px; margin-bottom: 22px; max-width: 46ch; }
.colour__ring p { color: var(--mute); max-width: 40ch; }

@media (min-width: 768px) {
  .wall { margin-inline: 0; height: 460px; }
  .wall__name { left: 24px; bottom: 18px; }
  .colour__more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .swatches { gap: 12px; }
  .sw__chip { aspect-ratio: auto; height: 64px; }
}
@media (min-width: 1024px) {
  .colour__grid {
    display: grid; grid-template-columns: 5fr 7fr; column-gap: 56px;
    grid-template-areas: "head stage" "more stage"; grid-template-rows: auto 1fr; align-items: start;
  }
  .colour__head { grid-area: head; }
  .colour__h2 { font-size: clamp(4.2rem, 1rem + 4.4vw, 5.8rem); }
  .colour__stage { grid-area: stage; margin-top: 0; }
  .colour__more { grid-area: more; display: block; margin-top: 28px; }
  .wall { height: 540px; }
}

/* ---------- 4. sites: the developer's door ---------- */
.sites { background: var(--teal-deep) var(--grain-smooth) 0 0 / 100px; color: var(--white); padding: var(--pad) 0; }
.sites .eyebrow { color: var(--teal-pale); }
.sites__copy p { color: #e7f3f1; max-width: 46ch; }
.sites__ask { font-weight: 600; color: var(--white) !important; }
.sites__copy .btn { margin-top: 6px; }
.terrace { --p: 1; margin: 30px 0 0; }
.terrace__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.plot {
  --s: clamp(0, calc(var(--p) * 4 - var(--i)), 1);
  position: relative; display: block; aspect-ratio: 3 / 5; overflow: hidden;
  transform: translate3d(0, calc((1 - var(--s)) * 16px), 0) scale(calc(.93 + var(--s) * .07));
  transform-origin: 50% 100%;
}
.plot:nth-child(1) { --i: 0; --pc: #f3f2ee; }
.plot:nth-child(2) { --i: 1; --pc: #eeede8; }
.plot:nth-child(3) { --i: 2; --pc: #f1f0eb; }
.plot:nth-child(4) { --i: 3; --pc: #ebeae5; }
.plot__face { position: absolute; inset: 0; background: var(--pc) var(--grain-fine) 0 0 / 110px; }
.plot__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16)); }
.plot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the cover drops away top to bottom, a teal line on its edge, like a scaffold being struck */
.plot__cover {
  position: absolute; inset: 0; background: #0f2f33 var(--grain-scraped) 0 0 / 120px;
  transform: translate3d(0, calc(var(--s) * 102%), 0);
}
.plot__cover::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--teal-core); }
.terrace__cap { margin: 12px 0 0; font: 600 .8125rem/1.2 var(--font-text); letter-spacing: .03em; color: var(--teal-pale); }
@media (min-width: 560px) { .terrace__row { gap: 10px; } }
@media (min-width: 900px) {
  .sites__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .terrace { margin-top: 0; }
  .terrace__row { gap: 12px; }
}

/* ---------- 5. finishes: the swipe row ---------- */
.finishes { background: var(--black); color: var(--white); padding: var(--pad) 0 calc(var(--pad) - 4px); }
.finishes__head .lede { color: #d5dcda; max-width: 44ch; margin-bottom: 0; }
.finishes__bar { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; margin-bottom: 14px; }
.finishes__hint { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 1rem/1 var(--font-display); color: var(--teal-core); }
.finishes__hint-line { display: block; width: 30px; height: 2px; background: currentColor; transform-origin: left; }
.finishes__arrows { display: none; gap: 8px; }
/* the closing line under the cards; .later = empty slots for Jack's answers (approvals, guarantee, colour charts), hidden until filled */
.finishes__foot { margin-top: 26px; }
.finishes__foot .lede { color: #d5dcda; max-width: 52ch; margin: 0; }
.later[hidden] { display: none; }
.arrow {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
  background: none; color: var(--white); border: 1.5px solid #3c4a4a; border-radius: 0;
  transition: border-color .2s, background-color .2s;
}
.arrow:hover { border-color: var(--teal-core); background: var(--black-2); }
.arrow:disabled { opacity: .35; cursor: default; }
.cards {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
  padding: 2px var(--gut) 10px; scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 84%; scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--black-2); border: 1px solid var(--line-dark);
}
.card__tex { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tc); }
.card__tex::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .22)); }
.card__grain { position: absolute; inset: -14px; background: var(--tg) 0 0 / var(--ts); transition: filter .38s var(--ease-out), transform .42s var(--ease-out); }
.card--machine { --tc: #e4e5e1; --tg: var(--grain-fine); --ts: 90px; }
.card--mono { --tc: #dfdcd4; --tg: var(--grain-scraped); --ts: 150px; }
.card--silicone { --tc: #e7e8e5; --tg: var(--grain-smooth); --ts: 80px; }
.card--rough { --tc: #d6d3cb; --tg: var(--grain-coarse); --ts: 190px; }
.card__body { padding: 18px 18px 22px; }
.card__h { font-size: 1.6rem; line-height: 1.05; margin-bottom: 8px; }
.card__body p { margin: 0; color: var(--mute-dark); }
@media (min-width: 768px) {
  .finishes__arrows { display: flex; }
  .cards { padding-inline: max(var(--gut), calc((100% - var(--max)) / 2)); scroll-padding-inline: max(var(--gut), calc((100% - var(--max)) / 2)); gap: 16px; }
  .card { flex-basis: 44%; }
  .finishes__head .h2 { max-width: 16em; }
}
@media (min-width: 1100px) {
  .finishes__head { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 48px; align-items: end; }
  .finishes__head .eyebrow { grid-column: 1 / -1; }
  .finishes__head .h2 { margin-bottom: 0; }
  .card { flex-basis: calc((min(100vw, var(--max)) - 2 * var(--gut) - 32px) / 3.25); }
  .card__h { font-size: 1.85rem; }
}
/* wide enough for all four finishes side by side: nothing to swipe, nothing cut */
@media (min-width: 1280px) {
  .finishes__bar { display: none; }
  .cards { margin-top: 30px; }
  .card { flex-basis: calc((100% - 48px) / 4); }
  .card__h { font-size: 1.7rem; }
}

/* ---------- 6. ask: the smart form ---------- */
.ask { background: var(--black-1); color: var(--white); padding: var(--pad) 0; }
.ask__right { perspective: 1400px; }
.ask__intro .lede { color: #d5dcda; max-width: 38ch; }
.ask__intro .btn { margin-bottom: 28px; }
.ask__card {
  position: relative; background: var(--paper); color: var(--ink); padding: 22px 18px 20px;
  box-shadow: 0 34px 80px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05);
  border-top: 4px solid var(--teal);
}
.sf { margin: 0; }
.sf__prog { display: none; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 .95rem/1 var(--font-display); color: var(--mute); }
.sf__count b { color: var(--teal-deep); font-weight: 600; }
.sf__bar { flex: 1; height: 3px; background: var(--paper-2); overflow: hidden; }
.sf__fill { display: block; height: 100%; background: var(--teal-deep); transform-origin: left; transform: scaleX(var(--sf, .2)); transition: transform .45s var(--ease-out); }
.sf__step { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.sf__q { display: block; padding: 0; margin: 0 0 14px; font: 500 1.6rem/1.08 var(--font-display); text-transform: uppercase; color: var(--ink); }
.sf__q--long { font-size: 1.35rem; }
.sf__opt {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 7px;
  background: var(--paper-2); color: var(--mute); font: 600 .75rem/1.2 var(--font-text); text-transform: none; letter-spacing: .02em;
}
.sf__err { margin: -4px 0 10px; color: #a3241b; font-weight: 600; }
.sf__choices { display: grid; gap: 8px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 16px;
  background: var(--white); border: 1.5px solid var(--field-line); cursor: pointer;
  font: 500 1.2rem/1.1 var(--font-display); color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__t { display: flex; align-items: center; gap: 14px; }
.choice__t::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--field-line); background: var(--white); transition: background-color .2s, border-color .2s; }
.choice:hover { border-color: var(--teal-deep); }
.choice:has(input:checked) { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.choice input:checked + .choice__t::before { background: var(--white); border-color: var(--white); box-shadow: inset 0 0 0 4px var(--teal-deep); }
.choice:has(input:focus-visible) { outline: 3px solid var(--teal-core); outline-offset: 2px; }
.sf__in {
  display: block; width: 100%; min-height: 56px; padding: 12px 14px; margin: 0;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--field-line); border-radius: 0;
  font: 400 1.0625rem/1.4 var(--font-text);
}
.sf__in::placeholder { color: #66716f; opacity: 1; }
.sf__in:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(35, 98, 105, .28); }
.sf__in[aria-invalid="true"] { border-color: #a3241b; }
.sf__in--long { min-height: 104px; resize: vertical; }
.sf__in--select { appearance: none; -webkit-appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b0f0f' stroke-width='2'/%3E%3C/svg%3E") right 16px center / 14px 9px no-repeat; padding-right: 40px; }
.sf__small { display: block; margin: 16px 0 8px; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.sf__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.sf__btn {
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 0; cursor: pointer;
  font: 500 1.0625rem/1 var(--font-display); letter-spacing: .02em;
}
.sf__btn--next, .sf__btn--send { margin-left: auto; background: var(--teal-deep); color: var(--white); }
.sf__btn--next:hover, .sf__btn--send:hover { background: var(--teal-ink); }
.sf__btn--send { min-width: 60%; }
.sf__btn--back { padding: 0 6px; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.sf__note { margin: 14px 0 0; font-size: .875rem; color: var(--mute); }
.sf__done, .sf__fail { padding: 6px 0 4px; }
.sf__done[hidden], .sf__fail[hidden] { display: none; }
.sf__done-h { font: 500 1.6rem/1.12 var(--font-display); text-transform: uppercase; color: var(--teal-deep); margin: 0 0 10px; }
.sf__done-note { color: var(--mute); margin: 0; }
.sf__done-note:empty { display: none; }
.sf__fail p { font-weight: 600; color: #a3241b; margin: 0; }
.sf__fail a { color: var(--teal-deep); }
.md-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; opacity: 0 !important; clip-path: inset(50%) !important; pointer-events: none !important; }

/* without the script the form is one long form; the stepping only arrives with it */
.sf:not(.is-smart) .sf__btn--next, .sf:not(.is-smart) .sf__btn--back { display: none; }
.sf.is-smart .sf__prog { display: flex; }
.sf.is-smart .sf__step { display: none; margin-bottom: 0; }
.sf.is-smart .sf__step.is-current { display: block; animation: sf-in .42s var(--ease-out) both; }
.sf.is-smart.go-back .sf__step.is-current { animation-name: sf-back; }
.sf.is-smart.is-first .sf__step.is-current { animation: none; }
@keyframes sf-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes sf-back { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
  .ask__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
  .ask .h2 { font-size: clamp(2.2rem, 1rem + 2.6vw, 4.2rem); }
  .ask__card { padding: 26px 24px 24px; }
}
@media (min-width: 900px) {
  .ask__grid { grid-template-columns: 5fr 6fr; gap: 64px; }
  .ask__card { padding: 34px 34px 30px; }
  .sf__q { font-size: 2rem; }
  .sf__q--long { font-size: 1.5rem; }
}

/* ---------- footer ---------- */
.foot { background: var(--black); color: var(--white); border-top: 3px solid var(--teal); padding: 40px 0 96px; }
.foot__in { display: grid; gap: 24px; }
.foot__logo { width: 111px; height: auto; }
.foot__num { display: inline-flex; align-items: center; min-height: 44px; font: 500 2rem/1 var(--font-display); color: var(--white); text-decoration: none; }
.foot__reach p { color: var(--mute-dark); margin: 8px 0 0; max-width: 40ch; }
.foot__social a { color: var(--white); }
.foot__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font: 500 1.0625rem/1 var(--font-display); color: var(--white); text-decoration: none; }
.foot__nav a:hover { color: var(--teal-core); }
.foot__legal { border-top: 1px solid var(--line-dark); padding-top: 16px; font-size: .875rem; color: var(--mute-dark); }
.foot__legal p { margin: 0 0 6px; }
.foot__legal a { color: #d5dcda; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
@media (min-width: 900px) {
  .foot { padding-bottom: 48px; }
  .foot__in { grid-template-columns: auto 1fr auto; column-gap: 56px; align-items: start; }
  .foot__legal { grid-column: 1 / -1; }
}

/* ---------- the call rail and the consent sheet ---------- */
/* a slim full-width bar on a phone and tablet (it sits under the text, never over the middle of a line),
   a floating button on desktop */
.rail {
  position: fixed; left: 0; right: 0; z-index: 60;
  bottom: var(--consent-h, 0px);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 20px env(safe-area-inset-bottom, 0px);
  background: var(--teal); color: var(--white); text-decoration: none; border-top: 1px solid var(--teal-core);
  font: 500 1.0625rem/1 var(--font-display); letter-spacing: .02em;
  box-shadow: 0 -12px 28px -16px rgba(0, 0, 0, .8);
  transform: translateY(110%); transition: transform .45s var(--ease-out), bottom .3s;
}
.rail.show { transform: none; }
@media (min-width: 1024px) {
  .rail { left: auto; right: 20px; bottom: calc(20px + var(--consent-h, 0px)); min-height: 54px; border-top: 0; box-shadow: 0 14px 34px -8px rgba(0, 0, 0, .7); transform: translateY(160%); }
}
.rail[hidden] { display: none; }
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 460px;
  background: var(--black-2); color: var(--white); border: 1px solid var(--line-dark); border-top: 3px solid var(--teal);
  padding: 14px 16px 16px; font-size: .9375rem; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; color: #d5dcda; }
.consent__actions { display: flex; gap: 8px; }
.consent__actions button {
  flex: 1; min-height: 46px; border: 1.5px solid #5d6b6b; background: none; color: var(--white); cursor: pointer;
  font: 500 1rem/1 var(--font-display); letter-spacing: .02em; border-radius: 0;
}
.consent__actions button:hover { border-color: var(--teal-core); }

/* ---------- legal pages and 404 ---------- */
.legal-page, #not-found { padding: 48px 0 64px; background: var(--black); }
.legal-page h1, #not-found h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.02; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.5rem; margin: 32px 0 10px; color: var(--teal-core); }
.legal-page p, #not-found p { max-width: 68ch; color: #d5dcda; }
.legal-page a { color: var(--teal-core); }
#not-found .num { font: 500 2rem/1 var(--font-display); color: var(--white); }

/* =====================================================================================================
   MOTION - a layer over the finished page. Hidden starting states only under html.mo; the hero's own
   opening under html.hero-anim (both set by head.js, never under reduced motion).
   ===================================================================================================== */

/* the opening: the wall settles, the lamp rakes across it, the words slide in sideways from behind masks */
.hero-anim .hero__settle { animation: hero-settle 1.7s var(--ease-out) both; }
.hero-anim .hero__lamp { animation: hero-lamp 2.4s var(--ease-out) .1s both; }
.hero-anim .hero__copy .mask__in { animation: mask-x .8s var(--ease-out) both; }
.hero-anim .hero__eyebrow .mask__in { animation-delay: .08s; }
.hero-anim .hero__h1 .mask:nth-child(1) .mask__in { animation-delay: .16s; }
.hero-anim .hero__band::before { animation: band-run .7s var(--ease-io) .18s both; }
.hero-anim .hero__band .mask__in { animation-delay: .34s; }
.hero-anim .hero__sub .mask__in { animation-delay: .38s; }
.hero-anim .hero__acts > * { animation: rise-in .6s var(--ease-out) both; }
.hero-anim .hero__acts > *:nth-child(1) { animation-delay: .5s; }
.hero-anim .hero__acts > *:nth-child(2) { animation-delay: .58s; }
.hero-anim .hero__wall .slot__label { animation: fade-in 1s ease .9s both; }
@keyframes hero-settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes hero-lamp { from { transform: translateX(-50%); opacity: .35; } to { transform: translateX(46%); opacity: 1; } }
@keyframes mask-x { from { transform: translateX(-102%); } to { transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes band-run { from { transform: scaleX(0); } to { transform: none; } }

/* eyebrows: a quick wipe, like a pass of the machine */
.mo [data-arrive] .eyebrow { clip-path: inset(0 100% 0 0); transition: clip-path .4s var(--ease-out); }
.mo [data-arrive].is-in .eyebrow { clip-path: inset(0 0 0 0); }
/* headings that rise from a mask */
.mo [data-arrive] .mask__in { transform: translateY(108%); transition: transform .42s var(--ease-out); }
.mo [data-arrive].is-in .mask__in { transform: none; }
.mo [data-arrive].is-in .mask:nth-child(2) .mask__in { transition-delay: .06s; }

/* 2. doors: the rule draws, the tiles unfold down from it, left then right */
.mo .doors .doors__rule { transform: scaleX(0); transition: transform .6s var(--ease-io); }
.mo .doors .door { transform: rotateX(-84deg); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s ease; }
.mo .doors.is-in .doors__rule { transform: none; }
.mo .doors.is-in .door { transform: none; opacity: 1; }
.mo .doors.is-in .door--house { transition-delay: .12s, .12s; }
.mo .doors.is-in .door--site { transition-delay: .2s, .2s; }
.mo .doors.is-in .door:hover { transform: translateY(-3px); transition-delay: 0s; }

/* 3. colour: lede in, swatches set down one by one, the closing lines slide in */
.mo .colour__head .lede { opacity: 0; transform: translateX(-16px); transition: opacity .35s ease .06s, transform .4s var(--ease-out) .06s; }
.mo .colour__head.is-in .lede { opacity: 1; transform: none; }
.mo .chooser .sw { opacity: 0; transform: translateY(16px) scale(.86); transition: opacity .35s ease, transform .55s var(--ease-out); }
.mo .chooser.is-in .sw { opacity: 1; transform: none; }
.mo .chooser.is-in .sw:nth-child(2) { transition-delay: .05s; } .mo .chooser.is-in .sw:nth-child(3) { transition-delay: .1s; }
.mo .chooser.is-in .sw:nth-child(4) { transition-delay: .15s; } .mo .chooser.is-in .sw:nth-child(5) { transition-delay: .2s; }
.mo .chooser.is-in .sw:nth-child(6) { transition-delay: .25s; }
.mo .colour__more > * { opacity: 0; transform: translateX(-22px); transition: opacity .3s ease, transform .4s var(--ease-out); }
.mo .colour__more.is-in > * { opacity: 1; transform: none; }
.mo .colour__more.is-in > *:nth-child(2) { transition-delay: .06s; }

/* 4. sites: the words arrive at once; the plots are coated by the scroll (motion.js sets --p) */
.mo .sites__copy { opacity: 0; transform: translateX(-28px); transition: opacity .3s ease, transform .4s var(--ease-out); }
.mo .sites__copy.is-in { opacity: 1; transform: none; }
.mo .sites__copy .eyebrow { clip-path: none; }

/* 5. finishes: the row slides in from the side it swipes to; each texture sharpens as it snaps into place */
.mo .cards .card { opacity: 0; transform: translateX(70px); transition: opacity .3s ease, transform .42s var(--ease-out); }
.mo .cards.is-in .card { opacity: 1; transform: none; }
.mo .cards.is-in .card:nth-child(2) { transition-delay: .03s; } .mo .cards.is-in .card:nth-child(3) { transition-delay: .06s; }
.mo .cards.is-in .card:nth-child(4) { transition-delay: .09s; }
.mo .card:not(.is-snapped) .card__grain { filter: blur(7px); transform: scale(1.1); }
.mo .finishes__head .lede { opacity: 0; transition: opacity .35s ease .06s; }
.mo .finishes__head.is-in .lede { opacity: 1; }
.mo .finishes__hint-line { animation: hint 1.6s var(--ease-io) 3; }
@keyframes hint { 0%, 100% { transform: scaleX(.4); } 50% { transform: scaleX(1); } }

/* 6. ask: the intro slides in, the form card comes forward from depth, the first choices set down */
.mo .ask__intro > * { opacity: 0; transform: translateX(-24px); transition: opacity .3s ease, transform .4s var(--ease-out); }
.mo .ask__intro.is-in > * { opacity: 1; transform: none; }
.mo .ask__intro.is-in > *:nth-child(2) { transition-delay: .03s; } .mo .ask__intro.is-in > *:nth-child(3) { transition-delay: .06s; }
.mo .ask__intro.is-in > *:nth-child(4) { transition-delay: .09s; }
.mo .ask__intro .eyebrow { clip-path: none; }
.mo .ask__right .ask__card {
  opacity: 0; transform: translate3d(0, 46px, -180px) rotateX(6deg);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
  transition: opacity .3s ease, transform .45s var(--ease-out), box-shadow .5s var(--ease-out);
}
.mo .ask__right.is-in .ask__card { opacity: 1; transform: none; box-shadow: 0 34px 80px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .05); }
.mo .ask__right .ask__card .choice { opacity: 0; transform: translateX(26px); transition: opacity .25s ease, transform .35s var(--ease-out), background-color .2s, border-color .2s, color .2s; }
.mo .ask__right.is-in .ask__card .choice { opacity: 1; transform: none; transition-delay: .08s, .08s, 0s, 0s, 0s; }
.mo .ask__right.is-in .ask__card .choice:nth-child(2) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
.mo .ask__right.is-in .ask__card .choice:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s, 0s; }

/* the footer's rule draws across */
.mo .foot { border-top-color: transparent; position: relative; }
.mo .foot::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-io); }
.mo .foot.is-in::before { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero__wall, .wall__grain { transform: none !important; }
}
