/* base.css - Abel Plumbing & Bathrooms. Phone first (390), then 640 / 960 / 1200.
   Motion is a layer: hidden states live only under html.mo-ready (set by motion.js) or html.hero-anim (set in the head
   when motion is allowed). With JavaScript off, or reduced motion, every word and photo is simply there. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; }
h2 { font-size: var(--t-h2); line-height: 1.06; text-wrap: pretty; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--copper); color: var(--ink-night); padding: 12px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- buttons: square-cornered, like the tile they sit beside ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 .95rem/1.1 var(--f-text); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { flex: none; }
.btn--copper { background: var(--copper); color: var(--ink-night); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -14px rgba(0, 0, 0, .7); }
.btn--copper:hover { background: var(--copper-hi); }
.btn--glass { background: rgba(10, 32, 28, .42); color: var(--ink); border-color: rgba(238, 242, 238, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { border-color: var(--ink); background: rgba(10, 32, 28, .62); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--copper); }
.btn--line:hover { background: rgba(214, 138, 92, .12); }
.btn--wide { width: 100%; }

/* ---------- the setting-out line: each section's marker, a tiler's line with its joints ticked ---------- */
.setline { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--copper); font: 500 .875rem/1.2 var(--f-text); letter-spacing: .01em; }
.setline span { flex: none; }
.setline::after {
  content: ""; flex: 1; height: 9px; transform-origin: left center;
  background:
    linear-gradient(to bottom, transparent 4px, rgba(214, 138, 92, .55) 4px 5px, transparent 5px),
    repeating-linear-gradient(to right, rgba(214, 138, 92, .55) 0 1px, transparent 1px 56px);
}
.mo-ready .setline[data-reveal]::after { transform: scaleX(0); transition: transform 1.1s var(--ease-lay) .1s; }
.mo-ready .setline[data-reveal] span { display: inline-block; clip-path: inset(-20% 100% -20% 0); transition: clip-path .8s var(--ease); }
.mo-ready .setline.is-in::after { transform: none; }
.mo-ready .setline.is-in span { clip-path: inset(-20% -2% -20% 0); }

/* a heading drawn on like a squeegee across glass: left to right, never down */
.mo-ready .wipe[data-reveal] { clip-path: inset(-8% 100% -12% 0); transform: translateX(-10px); transition: clip-path 1s var(--ease-lay) .08s, transform 1s var(--ease) .08s; }
.mo-ready .wipe.is-in { clip-path: inset(-8% -2% -12% 0); transform: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr);
  background: rgba(10, 32, 28, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
.hdr__in { height: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 10px; }
/* his lockup on its own black ground, the full height of the bar: a sign plate, nothing hanging off it */
.brand { display: block; flex: none; align-self: stretch; margin: 0 auto -1px calc(-1 * min(var(--gut), 8px)); background: #000; }
.brand img { width: auto; height: 100%; }
.hdr__num { display: none; }
.callbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--copper); color: var(--ink-night); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.burger { width: 44px; height: 44px; border: 1px solid rgba(238, 242, 238, .35); border-radius: var(--r); background: rgba(10, 32, 28, .35); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), opacity .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.menu { position: absolute; top: var(--hdr); left: 0; right: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7); }
.menu[hidden] { display: none; }
.menu ul { list-style: none; display: grid; }
.menu li { border-bottom: 1px solid var(--line); }
.menu a, .menu .quiet { display: flex; align-items: center; min-height: 48px; text-decoration: none; font: 600 1.05rem/1.2 var(--f-display); }
.menu .quiet { color: var(--stone); font-weight: 500; opacity: .75; }
.menu__num { color: var(--copper); font: 700 1.4rem/1 var(--f-display) !important; }
/* on the homepage the header starts clear over the photo, and takes its ground as the page moves */
.page-index .hdr.hdr--clear { background: linear-gradient(to bottom, rgba(6, 20, 17, .55), rgba(6, 20, 17, 0)); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
main { display: block; }
body:not(.page-index) main { padding-top: var(--hdr); }

/* ---------- the opening: his onyx shower, steamed over, wiped clear ---------- */
.top { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: var(--night); }
.top__media { position: absolute; inset: 0; z-index: -1; transform-origin: 50% 30%; will-change: transform; }
.top__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.top__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 24, 21, .95) 0%, rgba(7, 24, 21, .88) 34%, rgba(7, 24, 21, .62) 44%, rgba(7, 24, 21, .2) 51%, rgba(7, 24, 21, 0) 57%),
    linear-gradient(to bottom, rgba(7, 24, 21, .32) 0, rgba(7, 24, 21, 0) 88px);
}
.top__steam { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.top__copy { position: relative; padding: calc(var(--hdr) + 24px) var(--gut) 26px; max-width: 620px; will-change: transform; }
.top__name { display: flex; align-items: center; gap: 12px; color: var(--copper-hi); font: 600 .9rem/1.2 var(--f-text); margin-bottom: 14px; }
.top__rule { display: block; width: 34px; height: 2px; background: var(--pipe); transform-origin: left; }
.top h1 { margin-bottom: 14px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.top h1 .ln { display: block; }
.top h1 .ln > span { display: inline-block; }
.top__lede { color: #dbe5e0; font-size: .97rem; line-height: 1.5; max-width: 34ch; margin-bottom: 20px; }
.top__asks { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-bottom: 18px; }
.top__asks .btn { padding: 0 16px; }
.proof { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(238, 242, 238, .2); border-radius: var(--r); background: rgba(7, 24, 21, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.proof__tile { padding: 10px 11px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.proof__tile + .proof__tile { border-left: 1px solid rgba(238, 242, 238, .16); }
.proof__tile > b { grid-row: span 2; font: 700 1.5rem/1 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.proof__tile > span { grid-column: 2; font-size: .75rem; line-height: 1.3; color: var(--stone); }
.proof__count b { font-weight: 700; color: var(--ink); }

/* the opening's motion, only when allowed (the head sets .hero-anim) */
@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.hero-anim .top__steam {
  opacity: 1;
  background: radial-gradient(ellipse at 50% 42%, rgba(226, 236, 232, .5), rgba(210, 224, 219, .36) 70%);
  -webkit-backdrop-filter: blur(16px) saturate(.7); backdrop-filter: blur(16px) saturate(.7);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 40%, transparent var(--wipe), #000 calc(var(--wipe) + 22%));
  mask-image: radial-gradient(ellipse 120% 90% at 50% 40%, transparent var(--wipe), #000 calc(var(--wipe) + 22%));
  animation: md-wipe 1.6s cubic-bezier(.55, .05, .25, 1) .2s forwards, md-clear .5s ease-out 1.55s forwards;
}
@keyframes md-wipe { to { --wipe: 150%; } }
@keyframes md-clear { to { opacity: 0; visibility: hidden; } }
.hero-anim .top__media img { animation: md-settle 2.4s var(--ease) both; }
@keyframes md-settle { from { transform: scale(1.09); } to { transform: none; } }
.hero-anim .top h1 .ln > span { clip-path: inset(-10% 100% -20% 0); transform: translateX(-28px); animation: md-line 1s var(--ease) forwards; }
.hero-anim .top h1 .ln:nth-child(1) > span { animation-delay: .05s; }
.hero-anim .top h1 .ln:nth-child(2) > span { animation-delay: .17s; }
.hero-anim .top h1 .ln:nth-child(3) > span { animation-delay: .29s; }
@keyframes md-line { to { clip-path: inset(-10% -4% -20% 0); transform: none; } }
.hero-anim .top__rule { transform: scaleX(0); animation: md-draw .9s var(--ease-lay) .3s forwards; }
@keyframes md-draw { to { transform: none; } }
.hero-anim .proof__tile { transform: translateX(22px); clip-path: inset(0 0 0 100%); animation: md-tile .8s var(--ease) forwards; }
.hero-anim .proof__tile:nth-child(1) { animation-delay: .75s; }
.hero-anim .proof__tile:nth-child(2) { animation-delay: .87s; }
@keyframes md-tile { to { transform: none; clip-path: inset(0 0 0 0); } }

/* ---------- sections ---------- */
.turn, .jobs, .behind, .doubts, .ask { position: relative; z-index: 1; padding: var(--pad-y) 0; }
.turn { background: var(--ground); box-shadow: 0 -30px 60px -10px rgba(0, 0, 0, .45); }
.jobs { background: var(--well); }
.behind { background: var(--ground); }
.doubts { background: var(--well); }
.ask { background: var(--night); overflow: hidden; isolation: isolate; }

/* ---------- the turn: the signature ---------- */
.turn__grid { display: grid; gap: 18px; }
.turn__head h2 { max-width: 20ch; }
.turn__fig { margin: 0; }
.turn__cap { margin-top: 10px; color: var(--stone); font-size: var(--t-small); line-height: 1.45; }
.turn__body { color: #d7e1dc; max-width: 46ch; }
.ba { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba__pane { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--night); }
.ba__pane img { width: 100%; height: 100%; object-fit: cover; }
.ba__tag {
  position: absolute; z-index: 4; top: 10px; padding: 6px 10px; border-radius: 2px;
  font: 600 .78rem/1 var(--f-text); letter-spacing: .02em; pointer-events: none;
}
.ba__tag--before { left: 10px; background: rgba(238, 242, 238, .92); color: var(--ink-night); }
.ba__tag--after { right: 10px; background: var(--copper); color: var(--ink-night); }
.js .ba__tag { opacity: 0; transition: opacity .4s; }
.js .ba.is-live .ba__tag { opacity: 1; }
.ba__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba__range:focus-visible ~ .ba__handle .ba__grip { outline: 2px solid var(--copper-hi); outline-offset: 3px; }
/* with the script: one frame, the after-room laid over the before, a handle to pull between them */
.js .ba { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: var(--night); touch-action: pan-y; cursor: ew-resize; perspective: 900px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.js .ba__pane { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.js .ba img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.js .ba__pane--after { z-index: 1; clip-path: inset(0 0 0 var(--x, 0%)); }
.ba__tiles { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform-style: preserve-3d; }
.ba__tile {
  position: absolute; background-repeat: no-repeat; backface-visibility: hidden;
  transform-origin: 0% 50%; will-change: transform, opacity; opacity: 0;
}
.ba__tile::after {
  content: ""; position: absolute; inset: 0; opacity: var(--glint, 0);
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .1) 56%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: var(--sheen, 100%) 0;
}
.ba.is-laid .ba__tiles { opacity: 0; transition: opacity .35s; }
.ba__handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--x, 0%); width: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.ba.is-live .ba__handle { opacity: 1; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 3px; background: var(--pipe); box-shadow: 0 0 18px rgba(0, 0, 0, .45); }
.ba__grip {
  position: absolute; top: 50%; left: 0; width: 46px; height: 46px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 2px; background: var(--copper); color: var(--ink-night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -8px rgba(0, 0, 0, .7);
}
.ba.is-live.is-nudge .ba__grip { animation: md-nudge 1.4s var(--ease) .2s 1; }
@keyframes md-nudge { 0%, 100% { transform: translate(-50%, -50%); } 35% { transform: translate(-20%, -50%); } 65% { transform: translate(-62%, -50%); } }

/* ---------- jobs ---------- */
.jobs__head { margin-bottom: 18px; }
.jobs__lede { color: #d7e1dc; margin-top: 12px; max-width: 44ch; }
.tally { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 14px; max-width: 360px; }
.tally i { aspect-ratio: 1; border-radius: 1px; background: linear-gradient(135deg, #e3a074, var(--copper) 45%, #a95f37); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transition: opacity .35s, transform .35s var(--ease), background .35s; }
.tally .tally__one { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stone); }
.jobs[data-sel="1"] .tally i { opacity: .28; }
.jobs[data-sel="1"] .tally .tally__one { opacity: 1; background: linear-gradient(135deg, #e3a074, var(--copper) 45%, #a95f37); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); transform: scale(1.15); }
.mo-ready .tally[data-reveal] i { opacity: 0; transform: translateX(-10px) rotateY(70deg); }
.mo-ready .tally.is-in i { opacity: 1; transform: none; transition: opacity .4s calc(var(--i) * 70ms), transform .6s var(--ease) calc(var(--i) * 70ms); }
.mo-ready .jobs[data-sel="1"] .tally.is-in i { opacity: .28; transition-delay: 0s; }
.mo-ready .jobs[data-sel="1"] .tally.is-in .tally__one { opacity: 1; transform: scale(1.15); }
.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border: 1px solid var(--edge); border-radius: var(--r); padding: 3px; background: rgba(10, 32, 28, .5); }
.switch[hidden] { display: none; }
.switch button { position: relative; z-index: 1; min-height: 46px; border: 0; background: none; cursor: pointer; font: 600 .95rem/1 var(--f-text); color: var(--stone); transition: color .3s; }
.switch button[aria-selected="true"] { color: var(--ink); }
.switch__glide { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 2px; background: rgba(214, 138, 92, .1); box-shadow: inset 0 -3px 0 var(--copper); transition: transform .45s var(--ease); }
.jobs[data-sel="1"] .switch__glide { transform: translateX(100%); }
.jobs__track { display: grid; gap: 28px; }
.job { display: grid; gap: 16px; align-content: start; }
.job__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--night); }
.job__photo img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }
.job__body { display: grid; gap: 12px; align-content: start; }
.job__list { list-style: none; display: grid; }
.job__list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.job__list li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 1px; background: var(--copper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.job__body .btn { margin-top: 6px; }
/* with the script, on a phone: one door at a time, swiped or switched */
@media (max-width: 959px) {
  .js .jobs__track { grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); scroll-padding: 0 var(--gut); }
  .js .jobs__track::-webkit-scrollbar { display: none; }
  .js .job { scroll-snap-align: start; }
}

/* ---------- behind: how a job runs ---------- */
.behind__grid { display: grid; gap: 22px; }
.behind__media { position: relative; height: 300px; margin-bottom: 10px; }
.behind__back { position: absolute; right: 0; top: 0; width: 70%; height: 100%; overflow: hidden; border-radius: 2px; background: var(--night); }
.behind__back img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
.behind__front { position: absolute; left: 0; bottom: -18px; width: 44%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; border: 5px solid var(--ground); box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .8); transform: translate3d(0, var(--py, 0px), 0); }
.behind__front img { width: 100%; height: 100%; object-fit: cover; }
.mo-ready .behind__back[data-reveal] { clip-path: inset(0 0 0 100%); transition: clip-path 1.2s var(--ease-lay); }
.mo-ready .behind__back.is-in { clip-path: inset(0 0 0 0); }
.say { margin: 0; position: relative; }
.say blockquote { margin: 0; }
.say blockquote p { font: 600 1.18rem/1.36 var(--f-display); letter-spacing: -.005em; color: var(--ink); }
.say figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--t-small); color: var(--stone); }
.say__who { color: var(--ink); font-weight: 600; }
.say__src { display: inline-flex; align-items: center; gap: 6px; }
.say__src::before { content: ""; width: 7px; height: 7px; background: var(--copper); border-radius: 1px; }
.say--sylvia { padding-left: 18px; border-left: 3px solid; border-image: var(--pipe) 1; }
.mo-ready .say--sylvia[data-reveal] blockquote p { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-lay) .1s; }
.mo-ready .say--sylvia.is-in blockquote p { clip-path: inset(-5% -2% -5% 0); }
.steps { list-style: none; position: relative; display: grid; gap: 4px; padding-left: 30px; --pipe-p: 1; }
.steps::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: rgba(238, 242, 238, .12); }
.steps::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--pipe); transform-origin: top; transform: scaleY(var(--pipe-p)); }
.step-row { position: relative; padding: 4px 0 16px; }
.step-row__joint { position: absolute; left: -29px; top: 7px; width: 14px; height: 14px; border-radius: 2px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--edge); transition: background .35s, box-shadow .35s, transform .35s var(--ease); }
.step-row.is-on .step-row__joint, .steps:not([data-pipe-live]) .step-row__joint { background: var(--pipe); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.step-row.is-on .step-row__joint { transform: scale(1.1); }
.step-row h3 { margin-bottom: 4px; }
.step-row p { color: var(--stone); font-size: .94rem; }

/* ---------- doubts ---------- */
.doubts__grid { display: grid; gap: 22px; }
.qa { display: grid; }
.qa__row { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.qa__row:last-child { border-bottom: 1px solid var(--line); }
.qa dt { font: 600 1.06rem/1.3 var(--f-display); }
.qa dd { color: var(--stone); font-size: .95rem; }
.qa__yn { display: inline-block; color: var(--copper-hi); font: 700 1.06rem/1 var(--f-display); margin-right: 2px; }
.mo-ready .qa { perspective: 900px; }
.mo-ready .qa__row[data-reveal] { transform: translate3d(0, 0, -110px) rotateX(14deg); transform-origin: 50% 0; transition: transform 1.1s var(--ease); }
.mo-ready .qa__row.is-in { transform: none; }
.mo-ready .qa__row[data-reveal] dt { clip-path: inset(-10% 100% -10% 0); transition: clip-path .9s var(--ease-lay); }
.mo-ready .qa__row[data-reveal] .qa__yn { transform: translateX(-18px) rotateY(80deg); transition: transform .7s var(--ease) .35s; }
.mo-ready .qa__row.is-in dt { clip-path: inset(-10% -2% -10% 0); }
.mo-ready .qa__row.is-in .qa__yn { transform: none; }
.doubts__side { position: relative; display: grid; }
.doubts__photo { position: relative; overflow: hidden; border-radius: 2px; background: var(--night); }
.doubts__photo > img, .doubts__photo picture img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }
.say--steven { position: relative; z-index: 1; margin: -58px 12px 0; padding: 14px 16px; background: rgba(10, 32, 28, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(214, 138, 92, .35); border-radius: 2px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8); transform: translate3d(0, var(--py, 0px), 0); }
.say--steven blockquote p { font-size: 1.02rem; }
.say--steven figcaption { margin-top: 8px; }

/* ---------- the ask: his green stone, a few taps, the number ---------- */
/* his green stone and brass tap, at its own size along the foot of the section, never stretched */
.ask__stone {
  position: absolute; left: 0; right: 0; top: -70px; bottom: -70px; z-index: -1;
  background: url(/assets/img/ask/stone-1440.webp) 0% 100% / 1210px auto no-repeat; transform: translate3d(0, var(--py, 0px), 0);
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(100% - 462px), #000 calc(100% - 200px));
  mask-image: linear-gradient(to bottom, transparent calc(100% - 462px), #000 calc(100% - 200px));
}
.ask__stone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 32, 28, .74), rgba(10, 32, 28, .5) 75%, rgba(10, 32, 28, .62)); }
.ask__grid { display: grid; gap: 22px; }
.ask__grid > * { min-width: 0; }
.ask__lede { color: #dbe5e0; margin-top: 12px; max-width: 44ch; }
.ask__num { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 14px; color: var(--copper-hi); text-decoration: none; font: 700 1.9rem/1 var(--f-display); letter-spacing: -.01em; }
.ask__photo { position: relative; margin-top: 16px; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 2px; background: var(--night); box-shadow: 0 26px 44px -22px rgba(0, 0, 0, .85); }
.ask__photo img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.1); }
.quote { position: relative; padding: 20px 18px 18px; border-radius: var(--r); background: rgba(10, 32, 28, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(214, 138, 92, .4); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.quote__head h3 { font-size: 1.25rem; }
.quote__head p { color: var(--stone); font-size: .9rem; margin-top: 6px; }
.quote__dots { list-style: none; display: flex; gap: 5px; margin-top: 14px; }
.quote__dots[hidden] { display: none; }
.quote__dots li { width: 22px; height: 6px; border-radius: 1px; background: rgba(238, 242, 238, .16); transition: background .35s; }
.quote__dots li.is-done { background: var(--copper); }
.quote__window { margin-top: 16px; transition: height .4s var(--ease); }
.qstep { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.qstep legend { padding: 0; margin-bottom: 10px; font: 600 1rem/1.2 var(--f-display); color: var(--ink); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 52px; padding: 8px 12px; border-radius: 2px; border: 1px solid var(--edge); background: rgba(238, 242, 238, .04); font-size: .92rem; line-height: 1.25; transition: background .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: var(--copper); }
.chip input:checked + span { background: var(--copper); border-color: var(--copper); color: var(--ink-night); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field__label { font-size: .84rem; color: var(--stone); }
.field__input { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 2px; border: 1px solid transparent; background: var(--porcelain); color: var(--ink-night); font-size: 1rem; }
.field__input:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.area-say { min-height: 1.4em; font-size: .92rem; line-height: 1.4; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.area-say:empty { display: none; }
.area-say::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 2px; }
.area-say[data-near="yes"]::before { background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230a201c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.area-say[data-near="no"]::before { background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%230a201c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.area-say a { color: var(--copper-hi); font-weight: 600; }
.mo-ready .area-say.is-new { animation: md-say .5s var(--ease); }
@keyframes md-say { from { transform: translateX(-12px); } to { transform: none; } }
.quote__nav { display: flex; gap: 8px; }
.quote__nav .btn { flex: 1; }
.quote__nav .btn[hidden] { display: none; }
.quote__back { flex: 0 0 auto !important; }
.quote__status { margin-top: 12px; padding: 14px 16px; border-radius: 2px; background: var(--well); border: 1px solid var(--copper); }
.quote__status[hidden] { display: none; }
/* with the script: one step at a time, sliding sideways */
.js .quote__window { overflow: hidden; margin-left: -6px; margin-right: -6px; }
.js .quote__steps { display: flex; align-items: flex-start; transition: transform .5s var(--ease); }
.js .qstep { flex: 0 0 100%; width: 100%; margin: 0; padding: 4px 6px 14px; box-sizing: border-box; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; background: #071815; border-top: 1px solid var(--line); padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--stone); font-size: .9rem; }
.foot .wrap { display: grid; gap: 26px; }
.foot__brand { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.foot__brand > img { width: auto; height: 80px; grid-row: span 2; }
.foot__brand .num { display: inline-flex; align-items: center; min-height: 44px; color: var(--copper-hi); text-decoration: none; font: 700 1.5rem/1 var(--f-display); }
.foot__brand p { line-height: 1.45; }
.foot__social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot__social a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.foot__social a:hover { border-color: var(--copper); }
.foot__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot__nav a, .foot__nav .quiet { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot__nav a { color: var(--ink); }
.foot__nav .quiet { opacity: .7; }
.foot__legal { border-top: 1px solid var(--line); padding-top: 18px; font-size: .8rem; display: grid; gap: 6px; }
.foot__legal a { color: var(--stone); }

/* ---------- the rail: the number, in reach of a thumb ---------- */
.rail {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: var(--r);
  background: var(--copper); color: var(--ink-night); text-decoration: none; font: 700 1.08rem/1 var(--f-display); letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 34px -12px rgba(0, 0, 0, .75);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.rail[hidden] { display: none; }
.rail.show { transform: none; }

/* ---------- consent: small, never over the opening ---------- */
.consent { position: fixed; z-index: 58; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); padding: 14px 16px; border-radius: var(--r); background: var(--night); border: 1px solid var(--edge); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8); font-size: .84rem; color: var(--stone); }
.consent[hidden] { display: none; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.consent__actions button { min-height: 44px; border-radius: 2px; border: 1px solid var(--copper); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.consent__actions button:first-child { background: var(--copper); color: var(--ink-night); }

/* ---------- legal pages and the 404 ---------- */
.answer, .page-404 main section { padding: 48px 0 64px; }
.legal-body { max-width: 760px; }
.legal-body h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: 18px; }
.legal-body h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.legal-body p, .legal-body li { color: #d5dfda; margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 20px; margin-bottom: 12px; }
.legal-body a { color: var(--copper-hi); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .9rem; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-404 h1 { margin-bottom: 12px; }
.page-404 .num { display: inline-flex; min-height: 48px; align-items: center; color: var(--copper-hi); font: 700 1.6rem/1 var(--f-display); margin-top: 12px; }

/* ---------- 640+ ---------- */
@media (min-width: 640px) {
  .top__copy { padding-bottom: 44px; }
  .top__lede { font-size: 1.05rem; }
  .top__asks { grid-template-columns: auto auto; justify-content: start; }
  .behind__media { height: 420px; }
  .rail { left: auto; right: 24px; bottom: 24px; padding: 0 22px; }
  .consent { left: 24px; right: auto; bottom: 24px; max-width: 420px; }
}

/* ---------- 960+: the desktop ---------- */
@media (min-width: 960px) {
  :root { --hdr: 84px; }
  .hdr__in { gap: 14px; }
  .hdr__num { display: inline-flex; align-items: center; min-height: 44px; position: absolute; left: 50%; transform: translateX(-50%); color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--f-display); letter-spacing: .01em; }
  .hdr__num:hover { color: var(--copper-hi); }
  .hdr__in { position: relative; }
  .top { justify-items: end; align-items: center; }
  .top__media img { object-position: 50% 60%; }
  .top__media::after {
    background:
      linear-gradient(to left, rgba(7, 24, 21, .92) 0%, rgba(7, 24, 21, .8) 30%, rgba(7, 24, 21, .25) 54%, rgba(7, 24, 21, 0) 66%),
      linear-gradient(to bottom, rgba(7, 24, 21, .5) 0, rgba(7, 24, 21, 0) 160px);
  }
  .top__copy { max-width: min(680px, 58vw); margin-right: max(var(--gut), calc((100vw - var(--max)) / 2)); padding: calc(var(--hdr) + 40px) 0 64px; }
  .hero-anim .top__steam { -webkit-mask-image: radial-gradient(ellipse 90% 110% at 40% 50%, transparent var(--wipe), #000 calc(var(--wipe) + 22%)); mask-image: radial-gradient(ellipse 90% 110% at 40% 50%, transparent var(--wipe), #000 calc(var(--wipe) + 22%)); }
  .proof { max-width: 520px; }
  .proof__tile { padding: 14px 16px 12px; }
  .proof__tile > b { font-size: 2rem; }
  .proof__tile span { font-size: .82rem; }

  .turn__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 20px; align-items: start; }
  .turn__head { grid-column: 1; grid-row: 1; padding-top: 24px; }
  .turn__body { grid-column: 1; grid-row: 2; font-size: 1.08rem; }
  .turn__fig { grid-column: 2; grid-row: 1 / span 2; }

  .jobs__head { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: end; margin-bottom: 30px; }
  .jobs__head .setline, .jobs__head h2 { grid-column: 1; }
  .jobs__lede { grid-column: 2; grid-row: 2; margin: 0; font-size: 1.08rem; }
  .switch { display: none; }
  .tally { max-width: 460px; margin-bottom: 28px; }
  .jobs__track { grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start; }
  .job--plumb .job__photo { aspect-ratio: 4 / 3; }

  .behind__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 72px; row-gap: 32px; align-items: start; }
  .behind__head { grid-column: 1 / -1; }
  .behind__media { grid-column: 1; grid-row: 2 / span 2; height: 620px; position: sticky; top: calc(var(--hdr) + 32px); }
  .say--sylvia { grid-column: 2; grid-row: 2; }
  .say--sylvia blockquote p { font-size: 1.5rem; }
  .steps { grid-column: 2; grid-row: 3; }

  .doubts__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr; column-gap: 64px; align-items: start; }
  .doubts__head { grid-column: 1 / -1; }
  .qa { grid-column: 1; grid-row: 2; }
  .qa dt { font-size: 1.2rem; }
  .qa dd { font-size: 1.02rem; }
  .doubts__side { grid-column: 2; grid-row: 2 / span 3; position: sticky; top: calc(var(--hdr) + 32px); }
  .doubts__photo picture img, .doubts__photo > img { aspect-ratio: 1 / 1; }
  .say--steven { margin: -90px 24px 0 -48px; padding: 18px 20px; }
  .say--steven blockquote p { font-size: 1.2rem; }
  .doubts__ring { grid-column: 1; grid-row: 3; width: auto; justify-self: start; }

  .ask__stone { background-position: 50% 100%; background-size: 1540px auto; -webkit-mask-image: linear-gradient(to bottom, transparent calc(100% - 590px), #000 calc(100% - 280px)); mask-image: linear-gradient(to bottom, transparent calc(100% - 590px), #000 calc(100% - 280px)); }
  .ask__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 72px; align-items: start; }
  .ask__photo { margin-top: 28px; aspect-ratio: 4 / 5; max-width: 340px; }
  .ask__photo img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
  .ask__num { font-size: 2.6rem; }
  .quote { padding: 32px 30px 28px; }
  .quote__head h3 { font-size: 1.5rem; }

  .foot .wrap { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .foot__legal { grid-column: 1 / -1; }
}

/* ---------- reduced motion: complete and calm ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
