/* SaniGLAZE Utah · split stage. Tokens first, then the page's own classes.
   The engine's .sc-stage / [data-sc-*] rules are the mechanism: not restyled. */

:root {
  --sc-canvas:     #F4F5F2;   /* Restore ground: clinical, cool white */
  --sc-surface:    #FFFFFF;
  --sc-ink:        #121A1D;
  --sc-ink-soft:   #485357;
  --sc-accent:     #1C45C4;   /* cobalt, taken from the school's own door frames */
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-shadow-color: 200 18% 28%;

  --replace:      #E6E1D8;    /* Replace ground: the dusty beige of the old tile */
  --replace-soft: #4E4940;    /* secondary ink on the Replace ground, tinted to it */
  --sx: 50vw;                 /* divider x, px, written by page.js */
  --gap: clamp(2.5rem, 5vw, 5.5rem);
  --colw: 34rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--sc-canvas); overflow-x: clip; }
.sc-body--ink { color: var(--sc-ink); }
img { display: block; max-width: 100%; height: auto; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 80;
  background: var(--sc-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--sc-r-sm);
}
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------ grounds -- */
.grounds { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grounds__replace {
  position: absolute; inset: 0; background: var(--replace);
  clip-path: inset(0 calc(100% - var(--sx)) 0 0);
  opacity: var(--ground, 1);
}
main { position: relative; z-index: 1; }

/* -------------------------------------------------------------- pairs -- */
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair > .rep { padding-inline: var(--sc-gutter) var(--gap); display: flex; flex-direction: column; align-items: flex-end; }
.pair > .res { padding-inline: var(--gap) var(--sc-gutter); display: flex; flex-direction: column; align-items: flex-start; }
.pair > .rep > *, .pair > .res > * { width: 100%; max-width: var(--colw); }
.rep .sc-body { color: var(--replace-soft); }
h2, h3 { text-wrap: balance; }
h3 { font-family: var(--sc-font-display); font-weight: 650; letter-spacing: var(--sc-track-snug); margin: 0; line-height: 1.15; }
.sc-display { font-weight: 700; }
.rep .sc-display { font-weight: 600; }

/* ------------------------------------------------------------ divider -- */
.divider {
  position: fixed; top: 0; bottom: 0; left: 0; width: 0; z-index: var(--sc-z-chrome);
  transform: translate3d(var(--sx), 0, 0);
  pointer-events: none;
}
.divider > * { pointer-events: auto; }
.divider__line {
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: color-mix(in oklab, var(--sc-ink) 78%, transparent);
  pointer-events: none; opacity: var(--show, 1);
}
.divider__fill {
  position: absolute; inset: 0; background: var(--sc-accent);
  transform-origin: 50% 0; transform: scaleY(var(--prog, 0));
}
.divider__mark, .divider__day {
  position: absolute; left: 0; translate: -50% 0; white-space: nowrap;
  border-radius: var(--sc-r-pill);
}
.divider__mark {
  top: 18px; padding: .5rem 1rem;
  background: var(--sc-ink); color: #fff; text-decoration: none;
  font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-sm); letter-spacing: -.01em;
  box-shadow: var(--sc-e2);
}
.divider__mark b, .foot__mark b { font-weight: 500; opacity: .72; }
.divider__label {
  position: absolute; top: 27px;
  font-size: var(--sc-t-xs); font-weight: 600; letter-spacing: var(--sc-track-wide); text-transform: uppercase;
  color: var(--sc-ink); pointer-events: none;
}
.divider__label--l { right: 108px; }
.divider__label--r { left: 108px; color: var(--sc-accent); }
.divider__ticks {
  position: absolute; top: 24vh; bottom: 24vh; left: 0; translate: -50% 0;
  display: flex; flex-direction: column; justify-content: space-between;
  list-style: none; margin: 0; padding: 0;
}
.divider__ticks a {
  display: grid; place-items: center; width: 24px; height: 24px; position: relative;
  color: var(--sc-ink); text-decoration: none;
}
.divider__ticks a::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--sc-canvas); box-shadow: 0 0 0 2px var(--sc-ink);
  transition: transform var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.divider__ticks a.is-past::before { background: var(--sc-ink); }
.divider__ticks a.is-now::before { background: var(--sc-accent); box-shadow: 0 0 0 2px var(--sc-accent); transform: scale(1.35); }
.divider__ticks span {
  position: absolute; left: 22px; top: 50%; translate: 0 -50%;
  background: var(--sc-ink); color: #fff; font-size: var(--sc-t-xs); font-weight: 500;
  padding: .25rem .6rem; border-radius: var(--sc-r-pill); white-space: nowrap;
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--sc-d-fast) var(--sc-ease-out), transform var(--sc-d-fast) var(--sc-ease-out);
  pointer-events: none;
}
.divider__ticks a:hover span, .divider__ticks a:focus-visible span { opacity: 1; transform: none; }
.divider__day {
  top: 50%; translate: -50% -50%; padding: .45rem .9rem;
  background: #fff; color: var(--sc-ink); font-weight: 600; font-size: var(--sc-t-sm);
  box-shadow: var(--sc-e2); opacity: 0; transition: opacity var(--sc-d-base) var(--sc-ease-out);
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.divider.is-glazing .divider__day:not(:empty) { opacity: 1; }
.divider.is-glazing :is(.divider__ticks, .divider__mark, .divider__label) { opacity: 0; pointer-events: none; }
/* While it glazes, the line is the applicator: it exists only on the photo. */
.divider__line { clip-path: inset(var(--lt, 0px) 0 var(--lb, 0px) 0); }
.divider__ticks, .divider__label, .divider__mark { transition: opacity var(--sc-d-base) var(--sc-ease-out); }
.divider.is-solo :is(.divider__ticks, .divider__label, .divider__day) { opacity: 0; pointer-events: none; visibility: hidden; }
/* With no split on screen the mark docks top-left instead of straddling a line that is not there. */
.divider__mark { transition: opacity var(--sc-d-base) var(--sc-ease-out), translate var(--sc-d-slow) var(--sc-ease-out); }
.divider.is-solo .divider__mark { translate: calc(-1 * var(--sx) + var(--sc-gutter)) 0; }

/* --------------------------------------------------------------- hero -- */
/* Not pinned. A real headline on the left, a comparison on the right that
   moves on load and answers to a drag, so something changes before the
   visitor has decided whether to scroll. */
.hero { --mx: 0; --my: 0; }
.hero__inner {
  min-height: 100svh; max-width: 82rem; margin-inline: auto;
  padding: calc(80px + 2vh) var(--sc-gutter) clamp(2.5rem, 7vh, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5.5rem); align-items: center;
}
.hero__h1 {
  margin: 0; max-width: 15ch;
  font-family: var(--sc-font-display); font-weight: 700;
  font-size: clamp(2.4rem, 1.1rem + 3.7vw, 5.2rem);
  line-height: 1.02; letter-spacing: var(--sc-track-tight); text-wrap: balance;
}
.hero__sub { margin: var(--sc-6) 0 0; max-width: 31rem; font-size: var(--sc-t-lg); line-height: 1.45; color: var(--sc-ink-soft); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sc-3); margin-top: var(--sc-7); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem;
  border-radius: var(--sc-r-pill); font-weight: 600; font-size: var(--sc-t-base); text-decoration: none; white-space: nowrap;
  transition: transform var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out), border-color var(--sc-d-fast) var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: var(--sc-e2), var(--sc-edge); }
.btn--primary:hover { background: color-mix(in oklab, var(--sc-accent) 86%, #000); }
.btn--ghost { color: var(--sc-ink); border: 1.5px solid color-mix(in oklab, var(--sc-ink) 28%, transparent); }
.btn--ghost:hover { border-color: var(--sc-ink); }

.compare { margin: 0; width: min(40vw, calc(76svh * 0.681), 36rem); }
.compare__frame {
  position: relative; aspect-ratio: 1190 / 1748; overflow: hidden;
  border-radius: var(--sc-r-md); box-shadow: var(--sc-e3);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  background: #d9d4cb;
}
.compare__frame:focus-within { outline: 2px solid var(--sc-accent); outline-offset: 4px; }
.compare__room {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--mx) * -4px), calc(var(--my) * -3px + max(0, var(--sc-p, .5) - .5) * 60px), 0)
             scale(calc(1.02 + max(0, var(--sc-p, .5) - .5) * 0.12));
}
.compare__room img, .compare__jamb { position: absolute; top: 0; height: 100%; max-width: none; pointer-events: none; }
.compare__room img { inset: 0; width: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc((1 - var(--cmp)) * 100%) 0 0); }
.compare__light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 40% at 52% 34%, rgb(255 251 240 / .6), transparent 72%);
  mix-blend-mode: soft-light; opacity: .55;
}
/* the doorway's frame is the nearest plane: it leans and parts first */
.compare__jamb--l {
  left: -12.6%; width: 28.57%; transform-origin: 0 50%;
  transform: translate3d(calc(var(--mx) * 10px + max(0, var(--sc-p, .5) - .5) * -140px), calc(var(--my) * 4px), 0)
             scale(calc(1 + max(0, var(--sc-p, .5) - .5) * 0.3));
}
.compare__jamb--r {
  left: 71.43%; width: 32.44%; transform-origin: 100% 50%;
  transform: translate3d(calc(var(--mx) * 10px + max(0, var(--sc-p, .5) - .5) * 140px), calc(var(--my) * 4px), 0)
             scale(calc(1 + max(0, var(--sc-p, .5) - .5) * 0.3));
}
.compare__tag {
  position: absolute; bottom: var(--sc-4); padding: .35rem .75rem; border-radius: var(--sc-r-pill);
  font-size: var(--sc-t-xs); font-weight: 600; letter-spacing: .02em;
  transition: opacity var(--sc-d-base) var(--sc-ease-out); pointer-events: none;
}
.compare__tag--b { left: var(--sc-4); background: rgb(18 26 29 / .78); color: #fff; opacity: clamp(0, calc((var(--cmp) - .12) * 8), 1); }
.compare__tag--a { right: var(--sc-4); background: #fff; color: var(--sc-ink); opacity: clamp(0, calc((.88 - var(--cmp)) * 8), 1); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--cmp) * 100%); width: 2px; translate: -1px 0;
  background: #fff; box-shadow: 0 0 0 1px rgb(18 26 29 / .25); pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%;
  border-radius: 50%; background: #fff; box-shadow: var(--sc-e2);
}
.compare__handle span::before, .compare__handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border: solid var(--sc-ink); border-width: 0 0 2px 2px;
}
.compare__handle span::before { left: 12px; rotate: 45deg; }
.compare__handle span::after { right: 12px; rotate: -135deg; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  pointer-events: none;   /* pointer drags are handled on the frame; the range is for keyboards and AT */
}
.compare figcaption { margin-top: var(--sc-3); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }

/* --------------------------------------------------------------- cost -- */
.cost { padding-top: calc(var(--sc-section) * 0.55); }
.ledger { list-style: none; margin: var(--sc-6) 0 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent); }
.ledger li {
  padding: var(--sc-3) 0; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent);
  display: flex; gap: var(--sc-3); align-items: baseline;
}
.ledger li::before { content: ""; flex: none; width: .7em; height: 2px; background: currentColor; translate: 0 -.3em; opacity: .5; }
.ledger--res li::before { width: .55em; height: .55em; border-radius: 50%; background: var(--sc-accent); translate: 0 -.05em; opacity: 1; }

/* --------------------------------------------------------------- time -- */
.time__stage { align-items: start; }
/* The weekend list lands first and says Open while the remodel list is still arriving. */
.open[data-sc-in] { transition-delay: 620ms; }
.steps--slow > * { transition-duration: 700ms; }
.time__stage .col { width: 100%; max-width: var(--colw); }
.steps { list-style: none; margin: var(--sc-6) 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; align-items: baseline;
  padding: .62rem 0; border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent);
  color: var(--replace-soft);
}
.steps li::before { content: counter(s, decimal-leading-zero); font-size: var(--sc-t-xs); font-variant-numeric: tabular-nums; opacity: .7; }
.steps--res li { grid-template-columns: 2.2rem 1fr; color: var(--sc-ink); }
.steps--res li b { display: block; font-weight: 600; }
.open {
  margin: var(--sc-7) 0 0; display: flex; align-items: center; gap: var(--sc-4);
  font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-2xl);
  letter-spacing: var(--sc-track-tight); line-height: 1; color: var(--sc-accent);
}
.open__mark { flex: none; width: .9em; height: .9em; border-radius: 50%; background: var(--sc-accent); position: relative; }
.open__mark::after {
  content: ""; position: absolute; left: 30%; top: 22%; width: 26%; height: 44%;
  border: solid #fff; border-width: 0 .09em .09em 0; rotate: 45deg;
}

/* --------------------------------------------------------------- peak -- */
.peak__stage {
  --pw: min(calc(100vw - 2 * var(--sc-gutter)), calc(66svh * 1.189), 78rem);
  display: grid; place-content: center; justify-items: center;
}
.peak__h {
  position: absolute; top: clamp(4.2rem, 10vh, 6.5rem);
  left: calc(50% + var(--gap) * 0.6);
  margin: 0; max-width: 24rem;
  font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-lg);
  letter-spacing: var(--sc-track-snug); line-height: 1.2; text-wrap: balance;
}
.glaze {
  position: relative; margin: 0; width: var(--pw); aspect-ratio: 1486 / 1250;
  border-radius: var(--sc-r-sm); overflow: hidden; box-shadow: var(--sc-e3);
  margin-top: clamp(3rem, 7vh, 5rem);
}
.glaze img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.glaze picture { display: contents; }
.glaze__before { clip-path: inset(0 calc((1 - var(--wipe)) * 100%) 0 0); }
/* The wet edge: a specular band that trails the applicator and dries. */
.glaze__wet {
  position: absolute; top: 0; bottom: 0; left: calc(var(--wipe) * 100%); width: 16%;
  background:
    linear-gradient(90deg, rgb(255 255 255 / .5), rgb(255 255 255 / .14) 20%, rgb(255 255 255 / 0) 100%),
    repeating-linear-gradient(100deg, rgb(255 255 255 / 0) 0 22px, rgb(255 255 255 / .16) 22px 24px, rgb(255 255 255 / 0) 24px 48px);
  mix-blend-mode: screen; opacity: var(--wet, 0); pointer-events: none;
}
.glaze__line { display: none; }
.peak__cap {
  position: absolute; bottom: clamp(1.2rem, 4vh, 2.6rem); margin: 0; max-width: 18rem;
  font-size: var(--sc-t-sm); line-height: 1.45;
}
.peak__cap--l { right: calc(50% + var(--gap) * 0.6); text-align: right; color: var(--replace-soft); }
.peak__cap--r { left: calc(50% + var(--gap) * 0.6); }

/* ----------------------------------------------------------- surfaces -- */
.surfaces { padding-top: calc(var(--sc-section) * 0.6); }
.surfaces__head { margin-bottom: var(--sc-8); }
.surface + .surface { margin-top: var(--sc-9); }
.surface img { border-radius: var(--sc-r-sm); box-shadow: var(--sc-e2); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; height: auto; }
.surface h3 { margin-top: var(--sc-5); font-size: var(--sc-t-lg); }
.surface p { margin: var(--sc-2) 0 0; }
.surface .rep p { color: var(--replace-soft); }

/* --------------------------------------------------------- sanitation -- */
.sanitation { align-items: start; }
.macro { margin-bottom: var(--sc-7); }
.macro img {
  width: min(100%, 24rem); height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; box-shadow: var(--sc-e3);
}
.rep .macro img { margin-left: auto; }

/* ----------------------------------------------------- one voice, wide -- */
.wide { max-width: 76rem; margin-inline: auto; padding-inline: var(--sc-gutter); }
.wide__head { max-width: 46rem; margin-bottom: var(--sc-8); }
.wide__head > * + * { margin-top: var(--sc-4); }
.sector-list { border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.sector {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--sc-6); align-items: baseline; padding-block: var(--sc-6);
  border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent);
}
.sector h3 { font-size: var(--sc-t-xl); }
.sector p { margin: 0; line-height: 1.55; font-size: var(--sc-t-lg); max-width: 40rem; }

.faq__list { margin: 0; }
.faq__list > div {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: var(--sc-6);
  padding-block: var(--sc-5); border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent);
}
.faq__list dt { font-family: var(--sc-font-display); font-weight: 650; font-size: var(--sc-t-lg); line-height: 1.25; letter-spacing: var(--sc-track-snug); }
.faq__list dd { margin: 0; color: var(--sc-ink-soft); }

/* -------------------------------------------------------------- close -- */
/* Once the divider has collapsed the whole width is Restore, so the close
   uses it: the offer on the left, the form on the right. */
.close {
  --c: 0;
  position: relative; min-height: 100svh;
  padding: calc(var(--sc-section) * 0.8) var(--sc-gutter) var(--sc-6);
  display: flex; flex-direction: column;
}
.close__body {
  width: 100%; max-width: 76rem; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
  gap: var(--sc-9); align-items: start;
}
.close__intro > * + * { margin-top: var(--sc-5); }
.close__intro .sc-display { max-width: 11ch; }
.includes { list-style: none; margin: var(--sc-7) 0 0; padding: 0; counter-reset: i; max-width: 34rem; }
.includes li {
  counter-increment: i; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 var(--sc-2);
  padding: var(--sc-4) 0; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent);
}
.includes li::before {
  content: counter(i); grid-row: span 2; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--sc-t-xs); font-weight: 600;
  background: color-mix(in oklab, var(--sc-accent) 12%, transparent); color: var(--sc-accent);
}
.includes b { font-weight: 600; }
.includes span { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.5; }
.close__call { margin: var(--sc-6) 0 0; font-weight: 500; }
.close__call a { color: var(--sc-accent); font-weight: 600; text-underline-offset: 3px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4);
  background: var(--sc-surface); padding: clamp(1.25rem, 2.6vw, 2.25rem); border-radius: var(--sc-r-md);
  box-shadow: var(--sc-e3), var(--sc-edge);
  border-top: 3px solid var(--sc-accent);
}
.form__title {
  grid-column: 1 / -1; margin: 0 0 var(--sc-1);
  font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-t-lg); letter-spacing: var(--sc-track-snug);
}
.form label { display: grid; gap: .4rem; align-content: start; font-size: var(--sc-t-sm); font-weight: 500; min-width: 0; }
.form label em { font-style: normal; font-weight: 400; color: var(--sc-ink-soft); }
.form__wide { grid-column: 1 / -1; }
.form :is(input, select, textarea) {
  font: inherit; font-size: 1rem; line-height: 1.3; color: var(--sc-ink); width: 100%;
  background: var(--sc-canvas); border: 1px solid color-mix(in oklab, var(--sc-ink) 20%, transparent);
  border-radius: var(--sc-r-sm); padding: .7rem .8rem; height: 2.9rem;
  transition: border-color var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.form textarea { height: auto; min-height: 5.5rem; resize: vertical; }
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23485357' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: .75rem;
}
.form ::placeholder { color: color-mix(in oklab, var(--sc-ink-soft) 70%, transparent); }
.form :is(input, select, textarea):hover { border-color: color-mix(in oklab, var(--sc-ink) 38%, transparent); }
.form :is(input, select, textarea):focus-visible { outline: none; background-color: #fff; border-color: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 22%, transparent); }
.form [aria-invalid="true"] { border-color: #B3261E; }
.form__foot { display: grid; gap: var(--sc-3); margin-top: var(--sc-2); }
.cta {
  font: inherit; font-weight: 600; font-size: var(--sc-t-base); width: 100%;
  background: var(--sc-accent); color: var(--sc-accent-ink); border: 0; cursor: pointer;
  padding: .95rem 1.6rem; border-radius: var(--sc-r-pill); box-shadow: var(--sc-e2), var(--sc-edge);
  transition: transform var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.cta:hover { background: color-mix(in oklab, var(--sc-accent) 86%, #000); }
.cta:active { transform: scale(0.98); }
.cta:disabled { opacity: .55; cursor: not-allowed; }
.form__status { margin: 0; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); text-align: center; }
.foot {
  width: 100%; max-width: 76rem; margin: var(--sc-9) auto 0;
  padding: var(--sc-6) 0 3.5rem; /* the last row of links clears the floating dock */
  border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: var(--sc-6) var(--sc-8);
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.foot a { color: var(--sc-ink); text-underline-offset: 3px; }
.foot p { margin: 0; line-height: 1.5; }
.foot__brand { display: grid; gap: var(--sc-3); align-content: start; }
.foot__mark { font-family: var(--sc-font-display); font-weight: 700; color: var(--sc-ink); text-decoration: none; }
.foot__contact { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-5); }
/* Every page, from every page: the crawl path that does not depend on a menu. */
.foot__nav { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: var(--sc-6); }
.foot__h { font-family: var(--sc-font-display); font-weight: 650; color: var(--sc-ink); padding-bottom: var(--sc-2); }
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav a { display: block; padding-block: .3rem; text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- link list -- */
/* Service links with a one-line reason each: home page and inner pages. */
.linklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sc-8);
}
.linklist li { border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.linklist a { display: grid; gap: .3rem; padding-block: var(--sc-5); color: inherit; text-decoration: none; }
.linklist b { font-family: var(--sc-font-display); font-weight: 650; font-size: var(--sc-t-lg); line-height: 1.25; letter-spacing: var(--sc-track-snug); color: var(--sc-ink); }
.linklist span { color: var(--sc-ink-soft); line-height: 1.5; }
.linklist a:hover b { color: var(--sc-accent); }

/* --------------------------------------------------------------- dock -- */
/* Always there: call or book. A split pill, like the page. */
.dock {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.5rem); z-index: calc(var(--sc-z-chrome) + 1);
  display: flex; border-radius: var(--sc-r-pill); overflow: hidden;
  box-shadow: var(--sc-e3); background: var(--sc-surface);
}
.dock a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.2rem; font-weight: 600; font-size: var(--sc-t-sm); text-decoration: none; white-space: nowrap;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out);
}
.dock__call { color: var(--sc-ink); border-right: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent); }
.dock__call:hover { background: color-mix(in oklab, var(--sc-ink) 6%, #fff); }
.dock__book { background: var(--sc-accent); color: var(--sc-accent-ink); }
.dock__book:hover { background: color-mix(in oklab, var(--sc-accent) 86%, #000); }
.dock a:active { transform: translateY(1px); }
.dock a:focus-visible { outline-offset: -4px; outline-color: #fff; }
.dock__call:focus-visible { outline-color: var(--sc-accent); }
/* At the form, the Book half would point at where they already are. */
.dock.is-at-form .dock__book { display: none; }
.dock { transition: opacity var(--sc-d-base) var(--sc-ease-out), transform var(--sc-d-base) var(--sc-ease-out); }
.dock.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity var(--sc-d-base) var(--sc-ease-out), transform var(--sc-d-base) var(--sc-ease-out), visibility 0s linear var(--sc-d-base); }
.dock.is-at-form .dock__call { border-right: 0; }

/* ------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  :root { --gap: 0px; }
  .grounds { display: none; }

  /* The divider folds into a top bar: mark left, CTA right, progress under. */
  .divider { transform: none; inset: 0 0 auto 0; width: auto; height: 56px;
             background: color-mix(in oklab, var(--sc-canvas) 92%, transparent);
             -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
             border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent); }
  .divider__line { top: auto; bottom: -1px; left: 0; right: 0; width: auto; height: 2px; background: transparent; }
  .divider__fill { transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
  .divider__mark { top: 10px; left: var(--sc-gutter); translate: none; padding: .45rem .85rem; }
    .divider__label, .divider__ticks, .divider__day { display: none; }
  .divider.is-solo .divider__mark { opacity: 1; visibility: visible; pointer-events: auto; }

  .pair { grid-template-columns: 1fr; }
  .pair > .rep, .pair > .res { padding-inline: var(--sc-gutter); align-items: stretch; }
  .pair > .rep { background: var(--replace); padding-block: var(--sc-7); }
  .pair > .res { padding-block: var(--sc-7); }
  .pair > .rep > *, .pair > .res > * { max-width: none; }

  /* hero: headline first, comparison full width under it */
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 84px; gap: var(--sc-6); }
  .hero__h1 { font-size: clamp(2.1rem, 9.4vw, 2.9rem); max-width: none; }
  .hero__sub { margin-top: var(--sc-4); font-size: var(--sc-t-base); }
  .hero__ctas { margin-top: var(--sc-5); }
  .hero__ctas .btn { flex: 1; }
  .compare { width: 100%; }

  .time { padding-block: 0; }
  .time__stage { grid-template-columns: 1fr 1fr; }
  .time__stage > .rep, .time__stage > .res { padding-block: var(--sc-5); padding-inline: var(--sc-4); }
  .time__stage > .rep { padding-left: var(--sc-gutter); height: 100%; justify-content: center; }
  .time__stage > .res { padding-right: var(--sc-gutter); }
  .time__stage .sc-display--md { font-size: var(--sc-t-lg); }
  .steps li { grid-template-columns: 1fr; font-size: var(--sc-t-sm); padding: .45rem 0; }
  .steps li::before { display: none; }
  .open { font-size: var(--sc-t-xl); margin-top: var(--sc-5); }

  .peak__stage { --pw: calc(100vw - 2 * var(--sc-gutter)); align-content: start; padding-top: 76px; }
  .peak__h { position: static; margin: 0 var(--sc-gutter) var(--sc-4); max-width: none; font-size: var(--sc-t-base); }
  .glaze { aspect-ratio: 1100 / 1506; max-height: 54svh; width: auto; height: 54svh; margin-top: 0; }
  .glaze__line {
    display: block; position: absolute; top: 0; bottom: 0; left: calc(var(--wipe) * 100%); width: 2px;
    translate: -1px 0; background: #fff; box-shadow: 0 0 0 1px rgb(18 26 29 / .35);
  }
  .glaze__day {
    position: absolute; top: 50%; left: 0; white-space: nowrap;
    /* rides the line but never leaves the photo: fully left of it at the right edge, fully right at the left */
    translate: calc(var(--wipe) * -100%) -50%;
    background: #fff; color: var(--sc-ink); font-size: var(--sc-t-xs); font-weight: 600;
    padding: .35rem .7rem; border-radius: var(--sc-r-pill); box-shadow: var(--sc-e2);
  }
  .glaze__day:empty { display: none; }
  .peak__cap { position: static; margin: var(--sc-3) var(--sc-gutter) 0; font-size: var(--sc-t-xs); text-align: left; max-width: none; }
  .peak__cap--l { display: none; }

  .surfaces, .sanitation { padding-block: 0; }
  .surfaces__head { margin-bottom: 0; }
  .wide__head { margin-bottom: var(--sc-6); }
  .sector { grid-template-columns: 1fr; gap: var(--sc-3); padding-block: var(--sc-5); }
  .faq__list > div { grid-template-columns: 1fr; gap: var(--sc-2); }
  .divider.is-solo .divider__mark { translate: none; }
  .surface + .surface { margin-top: 0; }
  .macro { margin-bottom: var(--sc-5); }
  .rep .macro img { margin-left: 0; }
  .close { padding: var(--sc-8) var(--sc-gutter) calc(var(--sc-6) + 72px + env(safe-area-inset-bottom)); }
  .close__body { grid-template-columns: 1fr; gap: var(--sc-7); }
  .includes { margin-top: var(--sc-5); }
  .form { grid-template-columns: 1fr; padding: var(--sc-5); margin-inline: calc(var(--sc-gutter) * -0.5); }
  .foot { margin-top: var(--sc-7); grid-template-columns: 1fr; padding-bottom: 0; }
  .foot__nav { grid-template-columns: 1fr 1fr; }
  .foot__nav a { padding-block: .5rem; }
  .linklist { grid-template-columns: 1fr; }
  .linklist a { padding-block: var(--sc-4); }

  /* the dock becomes a bottom bar: two equal halves, thumb height */
  .dock { left: 0; right: 0; bottom: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom);
          box-shadow: 0 -1px 0 color-mix(in oklab, var(--sc-ink) 10%, transparent), 0 -8px 24px -12px hsl(var(--sc-shadow-color) / .35); }
  .dock a { flex: 1; min-height: 56px; font-size: var(--sc-t-base); }
  .form { grid-template-columns: 1fr; padding: var(--sc-5); }
}

@media (prefers-reduced-motion: reduce) {
  .compare__room, .compare__jamb--l, .compare__jamb--r { transform: none !important; }
}
