/* GM Wood Floors, sample homepage. The brand comes from his monogram: charcoal, oak and steel.
   Fraunces for the big type, Manrope for reading, JetBrains Mono for labels. Sharp corners, hairlines, no shadows. */

/* Metric-matched fallbacks (measured against Liberation Serif and Sans, which share Times New Roman and Arial metrics):
   the hero keeps its shape while the web fonts load. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Tinos Bold");
  font-weight: 600 900;
  size-adjust: 100%;
  ascent-override: 98%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Times New Roman Bold Italic"), local("TimesNewRomanPS-BoldItalicMT"), local("Liberation Serif Bold Italic"), local("Tinos Bold Italic");
  font-weight: 500 900;
  font-style: italic;
  size-adjust: 92%;
  ascent-override: 107%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 102%;
  ascent-override: 105%;
  descent-override: 29%;
  line-gap-override: 0%;
}

:root {
  --char: #16130F;      /* his monogram's disc */
  --char-2: #1C1814;
  --char-3: #2A231C;
  --walnut: #2E1F14;
  --cream: #F3ECE1;
  --cream-2: #E9DFCF;
  --oak: #A57F4A;       /* sampled from the wood G */
  --oak-lt: #C9A46E;    /* oak for type on charcoal */
  --oak-dk: #7A5A2E;    /* oak for type on cream */
  --steel: #C7CBD1;     /* the chrome M */
  --steel-dk: #8E949C;
  --ink-2: #5A5148;
  --error: #9E2A1C;
  --line-d: rgba(199, 203, 209, 0.16);
  --line-l: rgba(22, 19, 15, 0.16);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1360px;
  --gutter: 20px;
  --nav-h: 64px;
  --sec-y: 88px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --sec-y: 112px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --nav-h: 76px; --sec-y: 136px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--char);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus, var(--oak-lt)); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 14px 18px; background: var(--cream); color: var(--char);
  border-radius: 2px; font-family: var(--mono); font-size: 0.8125rem; text-decoration: none;
}
.skip:focus { top: 12px; }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 48px; pointer-events: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; transition: transform 250ms var(--ease); }

/* ---------- Photo slots: his photo, or a procedural floor until it is in ---------- */
.slot { position: relative; overflow: hidden; background-color: var(--char-3); border-radius: 2px; }
.slot__img, .slot__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot__img { z-index: 3; object-fit: cover; color: transparent; font-size: 0; }
.slot__canvas { z-index: 1; }
.slot__file {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 4px 8px; border-radius: 2px;
  background: rgba(22, 19, 15, 0.88); color: var(--cream);
  font-family: var(--mono); font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.04em;
}
.js .slot__file { display: none; }
.js .slot.is-missing .slot__file { display: block; }
.slot.is-missing .slot__img { display: none; }
.slot.has-photo .slot__canvas { display: none; }
.slot.is-missing, .no-js .slot {
  background-color: #A67B4D;
  background-image:
    repeating-linear-gradient(180deg, rgba(48, 28, 14, 0.55) 0 1px, transparent 1px 36px),
    linear-gradient(90deg, #A67B4D, #BC9262 30%, #A47C4E 62%, #C09767);
}
.hero__media.slot, .cta__media.slot { border-radius: 0; }
.svc__media .slot__file { left: 6px; bottom: 6px; font-size: 0.625rem; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 .rv, .cta__title .rv { display: block; }
.h2 em { font-style: italic; font-weight: 600; color: var(--accent, var(--oak-lt)); }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  font-family: var(--mono); font-weight: 500; font-size: 0.75rem; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2, var(--steel));
}
.eyebrow span { color: var(--accent, var(--oak-lt)); }
.eyebrow::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: 0.45; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-lede { max-width: 34em; margin-top: 22px; font-size: 1.0625rem; color: var(--fg-2, var(--steel)); text-wrap: pretty; }
.sec-head--split { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .sec-head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .sec-head--split .sec-lede { max-width: 22em; margin: 0 0 6px; }
}

/* ---------- Buttons and links ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease), transform 250ms var(--ease);
}
.btn:hover .icon, .link:hover .icon { transform: translateX(4px); }
.btn--oak { background: var(--oak); color: var(--char); }
.btn--oak:hover { background: var(--oak-lt); }
.btn--char { background: var(--char); color: var(--cream); }
.btn--char:hover { background: var(--walnut); }
.btn--cream { background: var(--cream); color: var(--char); }
.btn--cream:hover { background: var(--cream-2); }
.btn--line { border-color: rgba(243, 236, 225, 0.55); color: var(--cream); }
.btn--line:hover { border-color: var(--cream); background: rgba(243, 236, 225, 0.08); }
.link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.nav.is-solid { background: var(--char); border-bottom-color: var(--line-d); }
.nav__inner {
  display: flex; align-items: center; gap: 10px;
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; min-width: 48px; min-height: 48px; margin-right: auto; text-decoration: none; }
.nav__logo { width: 40px; height: 40px; border-radius: 50%; }
.nav__name { display: none; font-family: var(--serif); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav__links { display: none; }
.nav__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 48px; height: 48px;
  border: 1px solid rgba(243, 236, 225, 0.45); border-radius: 2px;
  text-decoration: none;
  transition: border-color 250ms var(--ease), color 250ms var(--ease);
}
.nav__phone:hover { border-color: var(--cream); }
.nav__num { display: none; }
.nav__cta { min-height: 48px; padding: 0 18px; }
@media (min-width: 560px) { .nav__name { display: inline; } }
@media (min-width: 1180px) {
  .nav__links { display: flex; margin-right: 4px; }
  .nav__links a {
    position: relative; padding: 15px 11px;
    font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
    text-decoration: none; color: var(--steel);
    transition: color 250ms var(--ease);
  }
  .nav__links a::after {
    content: ""; position: absolute; left: 11px; right: 11px; bottom: 9px; height: 1px;
    background: var(--oak-lt); transform: scaleX(0); transform-origin: left;
    transition: transform 280ms var(--ease);
  }
  .nav__links a:hover { color: var(--cream); }
  .nav__links a:hover::after { transform: scaleX(1); }
  .nav__phone { width: auto; padding: 0 12px; border-color: transparent; }
  .nav__phone:hover { border-color: transparent; color: var(--oak-lt); }
  .nav__num { display: inline; font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.06em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + 26px) 0 44px;
  background: var(--char); color: var(--cream);
}
.hero__media, .hero__scrim { position: absolute; top: 0; left: 0; right: 0; height: min(100svh, 940px); }
.hero__media { z-index: -2; }
.hero__media .slot__img { object-position: 50% 62%; }
.hero__scrim {
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.86) 0%, rgba(14, 11, 8, 0.7) 34%, rgba(14, 11, 8, 0.4) 58%, rgba(22, 19, 15, 0.7) 82%, var(--char) 100%);
}
.hero__grid {
  position: relative;
  display: grid; gap: 36px;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.hero__copy { min-height: calc(min(100svh, 940px) * 0.6 - var(--nav-h) - 26px); }
.hero__title { font-family: var(--serif); font-weight: 900; }
.hero__kicker {
  display: block; max-width: 30em; margin-bottom: 18px;
  font-family: var(--mono); font-weight: 500; font-size: 0.75rem; line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
}
.hero__line {
  display: block; white-space: nowrap;
  font-size: clamp(3.4rem, 19vw, 6.5rem);
  line-height: 0.9; letter-spacing: -0.03em;
}
.hero__line .w { display: inline-block; padding-right: 0.05em; }
.hero__line .w--it { font-style: italic; font-weight: 600; color: var(--oak-lt); }
.hero__lede { max-width: 30em; margin-top: 22px; font-size: 1.0625rem; line-height: 1.55; min-height: 4.65em; text-wrap: pretty; }
.hero__call {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; margin-top: 12px;
  font-weight: 600; text-decoration: none;
}
.hero__call strong { font-weight: 800; border-bottom: 1px solid var(--oak-lt); padding-bottom: 2px; }
.hero__call:hover strong { color: var(--oak-lt); }
.hero__cap {
  display: none; position: absolute; z-index: 1;
  right: 4px; top: calc(var(--nav-h) + 28px);
  writing-mode: vertical-rl;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel);
}
.hero.has-photos .hero__cap { display: block; }

@media (min-width: 640px) {
  .hero__lede { min-height: 3.1em; }
}
/* Short phones (iPhone SE and the like): a tighter hero, so the form's first answer is on the first screen. */
@media (max-width: 639px) and (max-height: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero__kicker { margin-bottom: 12px; }
  .hero__line { font-size: clamp(3rem, min(19vw, 9.4svh), 6.5rem); }
  .hero__lede { margin-top: 14px; font-size: 1rem; }
  .hero__call { margin-top: 4px; }
  .hero__grid { gap: 22px; }
  .estimate { padding-top: 18px; }
  .est__bar { margin: 12px 0 14px; }
  .est__q { margin-bottom: 12px; font-size: 1.375rem; }
}
@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; min-height: max(100svh, 760px); padding: calc(var(--nav-h) + 36px) 0 64px; }
  .hero__media, .hero__scrim { height: 100%; }
  .hero__media { left: 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
  .hero__media .slot__img { object-position: 50% 74%; }
  .hero__scrim {
    background:
      linear-gradient(90deg, var(--char) 0%, rgba(22, 19, 15, 0.9) 26%, rgba(22, 19, 15, 0.42) 52%, rgba(22, 19, 15, 0.18) 70%, rgba(22, 19, 15, 0.5) 100%),
      linear-gradient(180deg, rgba(14, 11, 8, 0.8) 0%, rgba(14, 11, 8, 0.45) 20%, transparent 34%, transparent 76%, rgba(14, 11, 8, 0.75) 100%);
  }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 432px; gap: 56px; align-items: center; }
  .hero__copy { min-height: 0; }
  .hero__line { font-size: clamp(5rem, 10.4vw, 10.5rem); }
  .hero__lede { font-size: 1.125rem; min-height: 0; max-width: 31em; }
  .hero__kicker { max-width: none; }
  .hero__cap { right: var(--gutter); top: auto; bottom: 22px; writing-mode: horizontal-tb; }
}

/* ---------- Estimate card ---------- */
.estimate {
  position: relative;
  padding: 22px 20px 18px;
  background: var(--cream); color: var(--char);
  border-radius: 2px;
  --focus: var(--char);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.estimate::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid rgba(165, 127, 74, 0.5); border-radius: 1px;
}
@media (min-width: 480px) { .estimate { padding: 30px 30px 24px; } }
@media (min-width: 640px) and (max-width: 1023px) { .estimate { max-width: 560px; } }
.est__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.est__title { font-family: var(--serif); font-weight: 800; font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.01em; }
.est__count {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.est__bar { position: relative; height: 2px; margin: 14px 0 18px; background: rgba(22, 19, 15, 0.12); overflow: hidden; }
.est__bar span {
  position: absolute; inset: 0; background: var(--oak-dk);
  transform-origin: left; transform: scaleX(calc(var(--step, 1) / 4));
  transition: transform 600ms var(--ease);
}
.est__for { margin: -6px 0 12px; font-size: 0.875rem; color: var(--ink-2); }
.est__for strong { color: var(--char); }
.est__q {
  margin-bottom: 14px;
  font-family: var(--serif); font-weight: 800; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em;
}
.est__q:focus:not(:focus-visible) { outline: none; }

.chips { display: grid; gap: 8px; }
.chip {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 10px 44px 10px 16px;
  font-weight: 600; cursor: pointer;
}
.chip input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip__bg {
  position: absolute; inset: 0; z-index: -1;
  border: 1px solid rgba(22, 19, 15, 0.3); border-radius: 2px;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.chip__i { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--ink-2); transition: color 220ms var(--ease); }
.chip__t { transition: color 220ms var(--ease); }
.chip__t::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 11px; height: 6px; margin-top: -5px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) scale(0); transition: transform 220ms var(--ease);
}
.chip:hover .chip__bg { border-color: var(--char); }
.chip input:checked ~ .chip__bg { background: var(--char); border-color: var(--char); }
.chip input:checked ~ .chip__i { color: var(--oak-lt); }
.chip input:checked ~ .chip__t { color: var(--cream); }
.chip input:checked ~ .chip__t::after { transform: rotate(-45deg) scale(1); }
.chip input:focus-visible ~ .chip__bg { outline: 2px solid var(--char); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field__opt { font-weight: 500; color: var(--ink-2); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid #7C7062; border-radius: 2px;
  background: #FBF7EF; color: var(--char);
  font-size: 1rem; line-height: 1.4;
  transition: border-color 200ms var(--ease);
}
.field textarea { min-height: 52px; height: 52px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--char); outline-offset: 1px; border-color: var(--char); }
.field [aria-invalid="true"] { border-color: var(--error); background: #FCF0EA; }
.field__hint { font-size: 0.875rem; color: var(--ink-2); }
.est__err { font-size: 0.875rem; font-weight: 700; line-height: 1.4; color: var(--error); }
.est__err:empty { display: block; height: 0; }
.chips + .est__err:not(:empty) { margin-top: 10px; }

.field--file { position: relative; }
.file__input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.file {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 14px;
  border: 1px solid rgba(22, 19, 15, 0.3); border-radius: 2px;
  font-weight: 700; cursor: pointer;
  transition: border-color 220ms var(--ease);
}
.file:hover { border-color: var(--char); }
.file__input:focus-visible + .file { outline: 2px solid var(--char); outline-offset: 2px; }
.file__list { font-size: 0.875rem; font-weight: 600; color: var(--oak-dk); }

.est__sum { margin-bottom: 14px; border-top: 1px solid var(--line-l); }
.est__sum > div {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line-l);
}
.est__sum dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.est__sum dd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 700; overflow-wrap: anywhere; }
.est__link {
  display: inline-flex; align-items: center;
  min-height: 44px; margin: -12px -8px; padding: 0 8px;
  border: 0; background: none;
  font-size: 0.875rem; font-weight: 700; color: var(--char);
  text-decoration: underline; text-underline-offset: 3px;
}
.est__link:hover { color: var(--oak-dk); }
.est__fine { margin-top: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
.est__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.est__back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px 0 0;
  border: 0; background: none; font-weight: 700;
}
.est__back:hover .icon { transform: translateX(-4px); }
.est__back.is-hidden { visibility: hidden; }
.est__next { min-width: 144px; }
.est__submit { padding: 0 22px; }
.est__resume { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }
.est__resume .est__link { font-size: 0.8125rem; margin-inline: 0; }
.est__fail { font-weight: 700; color: var(--error); }
.est__fail:not(:empty) { margin-top: 12px; }

/* One question at a time once JavaScript runs; every step stays in the card's grid cell so the card never jumps. */
.js .est__steps { display: grid; }
.js .est__step { grid-area: 1 / 1; visibility: hidden; }
.js .est__step.is-on { visibility: visible; }
.no-js .est__back, .no-js .est__next, .no-js .est__bar, .no-js .est__count, .no-js .est__sum { display: none; }
.no-js .est__submit { width: 100%; }
.no-js .est__step + .est__step { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-l); }
@media (prefers-reduced-motion: no-preference) {
  .js .est__step.in-fwd { animation: stepFwd 700ms var(--ease) both; }
  .js .est__step.in-back { animation: stepBack 700ms var(--ease) both; }
  .js .est__done.in-fwd { animation: stepFwd 800ms var(--ease) both; }
}
@keyframes stepFwd { from { clip-path: inset(-8px 100% -8px -8px); } to { clip-path: inset(-8px -8px -8px -8px); } }
@keyframes stepBack { from { clip-path: inset(-8px -8px -8px 100%); } to { clip-path: inset(-8px -8px -8px -8px); } }

.estimate.is-done { display: flex; flex-direction: column; justify-content: center; }
.est__done { padding: 10px 0 6px; }
.est__more { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-l); }
.est__more .est__link { margin: -6px 0; }
.est__done:focus { outline: none; }
.est__got { font-family: var(--serif); font-weight: 900; font-size: clamp(3.25rem, 9vw, 4.5rem); line-height: 0.95; letter-spacing: -0.03em; }
.est__got-line { margin-top: 16px; font-size: 1.125rem; font-weight: 700; line-height: 1.45; }
.est__done a { font-weight: 700; }

/* ---------- Wood strip ---------- */
.strip {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  height: clamp(104px, 13vw, 184px);
  color: #1B130C;
  background-color: #C39762;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 calc(33.333% - 1px), rgba(60, 36, 18, 0.5) calc(33.333% - 1px) 33.333%),
    linear-gradient(90deg, #C39762, #B48550 35%, #CBA170 70%, #BB8E5B);
  border-block: 1px solid #0D0B08;
}
.strip__wood { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 100% 0 0); }
.strip__wood.is-ready { clip-path: inset(0); transition: clip-path 1100ms var(--ease); }
.strip__track { position: relative; display: flex; width: max-content; animation: strip 46s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__set {
  display: flex; align-items: center; flex: none; white-space: nowrap;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.9rem, 7.4vw, 7rem); line-height: 1; letter-spacing: -0.025em;
}
.strip__set em { font-style: italic; font-weight: 600; }
.strip__mark { width: 0.4em; height: 0.4em; margin: 0 0.36em; flex: none; }
@keyframes strip { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Visualizer ---------- */
.viz { padding-block: var(--sec-y); background: var(--char); }
.viz__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .viz__grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 56px; align-items: start; }
  .viz__stage { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.viz__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  background-color: #6A4529;
  background-image: repeating-linear-gradient(90deg, rgba(30, 16, 8, 0.5) 0 1px, transparent 1px 11.1%);
}
@media (min-width: 640px) { .viz__frame { aspect-ratio: 4 / 3; } }
.viz__frame::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background:
    linear-gradient(var(--cream), var(--cream)) left top / 18px 1px no-repeat,
    linear-gradient(var(--cream), var(--cream)) left top / 1px 18px no-repeat,
    linear-gradient(var(--cream), var(--cream)) right top / 18px 1px no-repeat,
    linear-gradient(var(--cream), var(--cream)) right top / 1px 18px no-repeat,
    linear-gradient(var(--cream), var(--cream)) left bottom / 18px 1px no-repeat,
    linear-gradient(var(--cream), var(--cream)) left bottom / 1px 18px no-repeat,
    linear-gradient(var(--cream), var(--cream)) right bottom / 18px 1px no-repeat,
    linear-gradient(var(--cream), var(--cream)) right bottom / 1px 18px no-repeat;
  opacity: 0.8;
}
.viz__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.viz__hint {
  position: absolute; left: 24px; top: 24px; z-index: 1; pointer-events: none;
  padding: 6px 10px; border-radius: 2px;
  background: rgba(22, 19, 15, 0.86); color: var(--cream);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: clip-path 600ms var(--ease);
  clip-path: inset(0);
}
.viz__frame.is-touched .viz__hint { clip-path: inset(0 100% 0 0); }
.viz__readout {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel);
}
.viz__controls { display: grid; gap: 26px; align-content: start; }
.opt__legend {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
}
.opt__note { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: none; color: var(--steel-dk); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg__item { position: relative; }
.seg__item input, .sw input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 52px; padding: 8px 6px;
  border: 1px solid rgba(199, 203, 209, 0.32); border-radius: 2px;
  font-weight: 700; font-size: 0.875rem; text-align: center;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.seg__item:hover .seg__box { border-color: var(--steel); }
.seg__item input:checked + .seg__box { background: var(--cream); border-color: var(--cream); color: var(--char); }
.seg__item input:focus-visible + .seg__box { outline: 2px solid var(--oak-lt); outline-offset: 2px; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.sw { position: relative; display: grid; gap: 8px; align-content: start; }
.sw__chip {
  display: block; width: 100%; aspect-ratio: 1.5; border-radius: 2px;
  background: var(--swc) center / cover no-repeat;
  outline: 1px solid rgba(243, 236, 225, 0.2); outline-offset: -1px;
  transition: outline-color 220ms var(--ease), outline-offset 220ms var(--ease);
}
.sw__chip[data-swatch="natural"] { --swc: #C99B66; }
.sw__chip[data-swatch="golden"] { --swc: #B07A42; }
.sw__chip[data-swatch="provincial"] { --swc: #855632; }
.sw__chip[data-swatch="special"] { --swc: #6E4429; }
.sw__chip[data-swatch="dark"] { --swc: #52321D; }
.sw__chip[data-swatch="jacobean"] { --swc: #3B2519; }
.sw__chip[data-swatch="ebony"] { --swc: #2A1F18; }
.sw__chip[data-swatch="gray"] { --swc: #87827B; }
.sw__name { font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--steel); transition: color 220ms var(--ease); }
.sw:hover .sw__chip { outline-color: rgba(243, 236, 225, 0.6); }
.sw input:checked ~ .sw__chip { outline: 2px solid var(--cream); outline-offset: 3px; }
.sw input:checked ~ .sw__name { color: var(--cream); }
.sw input:focus-visible ~ .sw__chip { outline: 2px solid var(--oak-lt); outline-offset: 3px; }
.viz__note { padding-left: 14px; border-left: 2px solid var(--oak); font-size: 0.9375rem; color: var(--steel); }
.viz__cta { justify-self: start; }
.viz__real .slot { aspect-ratio: 16 / 9; }
/* Without JavaScript the preview cannot draw: keep the stain chart and the note, drop the dead controls. */
.no-js .viz__stage, .no-js .viz__controls .opt:not(.opt--stain) { display: none; }

/* Captions that name a job only show once that job's photo is on the page. */
.cap {
  display: none; margin-top: 10px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
}
.has-photos > .cap { display: block; }

/* ---------- Services ---------- */
.services {
  --fg-2: var(--ink-2); --accent: var(--oak-dk); --focus: var(--char);
  padding-block: var(--sec-y);
  background: var(--cream); color: var(--char);
}
.svc-list { border-top: 1px solid var(--char); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "num media" "title media" "body media";
  column-gap: 16px; align-items: start;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line-l);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cream-2);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 300ms var(--ease);
}
.svc:hover::before { clip-path: inset(0); }
.svc__num { grid-area: num; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--oak-dk); }
.svc__title {
  grid-area: title; margin-top: 6px;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3rem); line-height: 1; letter-spacing: -0.02em;
  transition: transform 300ms var(--ease);
}
.svc__link { text-decoration: none; }
.svc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc__body { grid-area: body; max-width: 34em; margin-top: 10px; color: var(--ink-2); }
.svc__go { display: none; }
.svc__media { grid-area: media; width: 92px; height: 92px; align-self: center; border-radius: 2px; }
@media (min-width: 1024px) {
  .svc {
    grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) auto auto;
    grid-template-areas: "num title body go media";
    column-gap: 32px; align-items: center;
    padding: 30px 0;
  }
  .svc__num { align-self: center; }
  .svc__title { margin: 0; font-size: clamp(2.75rem, 1.4rem + 2.6vw, 4.5rem); }
  .svc:hover .svc__title { transform: translateX(10px); }
  .svc__body { margin: 0; }
  .svc__go {
    grid-area: go; display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--char);
  }
  .svc__go svg { transition: transform 250ms var(--ease); }
  .svc:hover .svc__go svg { transform: translateX(4px); }
  .svc__media { width: 120px; height: 88px; }
}
/* Desktop with a mouse: the row's photo follows the cursor (positioned by main.js). */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .svc__media {
    display: block; position: fixed; left: 0; top: 0; z-index: 40;
    width: 340px; height: 240px; pointer-events: none;
    visibility: hidden; clip-path: inset(50% 50% 50% 50%);
    transition: clip-path 320ms var(--ease), visibility 0s linear 320ms;
  }
  .svc__media.is-on { visibility: visible; clip-path: inset(0); transition: clip-path 320ms var(--ease), visibility 0s; }
}

/* Photo strips: phones and tablets swipe sideways, desktops lay each job out on the grid */
.job__grid {
  display: flex; gap: 12px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.job__grid::-webkit-scrollbar { display: none; }
.job__grid.is-dragging { scroll-snap-type: none; cursor: grabbing; }

/* ---------- Photos (shared) ---------- */
.shot { position: relative; }
.shot .slot__img, .shot .slot__canvas { transition: transform 300ms var(--ease); }
.shot:hover .slot__img, .shot:hover .slot__canvas { transform: scale(1.04); }
.tag {
  display: none; position: absolute; left: 10px; top: 10px; z-index: 4;
  padding: 5px 9px; border-radius: 2px;
  background: rgba(22, 19, 15, 0.88); color: var(--cream);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.shot.has-photo .tag { display: block; }

/* ---------- The work, by job ---------- */
.work { padding-block: var(--sec-y); background: var(--char); border-top: 1px solid var(--line-d); }
.work .sec-head--split .link { justify-self: start; color: var(--cream); }
.job + .job { margin-top: clamp(56px, 8vw, 112px); }
.job__cap {
  display: none; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-bottom: 16px;
  font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
}
.job.has-photos .job__cap { display: flex; }
.job__type { color: var(--oak-lt); }
.job__grid .shot { flex: none; width: 84%; scroll-snap-align: start; }
.job__grid .slot { aspect-ratio: 5 / 4; }
.job--chevron .shot--1 { width: 50.4%; }
.job--chevron .shot--1 .slot { aspect-ratio: 3 / 4; }
.job--redoak .job__grid .shot { width: 72%; }
.job--redoak .job__grid .slot { aspect-ratio: 4 / 5; }
@media (min-width: 640px) {
  .job__grid .shot { width: 58%; }
  .job--chevron .shot--1 { width: 34.8%; }
  .job--redoak .job__grid .shot { width: 42%; }
}
@media (min-width: 900px) {
  .job { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .job__grid { display: contents; }
  .job__grid .shot { width: auto; }
  .job.has-photos .job__cap {
    display: grid; align-content: end; gap: 10px; margin: 0; padding-bottom: 2px;
  }
  .job__cap .job__sep { display: none; }
  .job__type {
    font-family: var(--serif); font-style: italic; font-weight: 600;
    font-size: clamp(2.25rem, 1rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; text-transform: none;
  }
  .job--oak .shot--1 { grid-column: 1 / 9; grid-row: 1 / 3; }
  .job--oak .shot--1 .slot { aspect-ratio: auto; height: 100%; }
  .job--oak .shot--2 { grid-column: 9 / 13; grid-row: 1; }
  .job--oak .shot--3 { grid-column: 9 / 13; grid-row: 2; }
  .job--oak .shot--2 .slot, .job--oak .shot--3 .slot { aspect-ratio: 1.24; }
  .job--oak .job__cap { grid-column: 1 / 6; grid-row: 3; }
  .job--oak .shot--4 { grid-column: 6 / 13; grid-row: 3; }
  .job--oak .shot--4 .slot { aspect-ratio: 16 / 10; }

  .job--chevron .shot--1 { grid-column: 1 / 6; grid-row: 1 / 3; }
  .job--chevron .shot--1 .slot { aspect-ratio: auto; height: 100%; }
  .job--chevron .shot--2 { grid-column: 6 / 13; grid-row: 1; }
  .job--chevron .shot--2 .slot { aspect-ratio: 2.1; }
  .job--chevron .shot--3 { grid-column: 6 / 10; grid-row: 2; }
  .job--chevron .shot--3 .slot { aspect-ratio: 1.17; }
  .job--chevron .shot--4 { grid-column: 10 / 13; grid-row: 2; }
  .job--chevron .shot--4 .slot { aspect-ratio: 0.87; }
  .job--chevron .shot--5 { grid-column: 1 / 8; grid-row: 3; }
  .job--chevron .shot--5 .slot { aspect-ratio: 16 / 10; }
  .job--chevron .job__cap { grid-column: 8 / 13; grid-row: 3; }

  .job--redoak .job__cap { grid-column: 1 / 4; grid-row: 1; }
  .job--redoak .shot--1 { grid-column: 4 / 7; grid-row: 1; }
  .job--redoak .shot--2 { grid-column: 7 / 10; grid-row: 1; }
  .job--redoak .shot--3 { grid-column: 10 / 13; grid-row: 1; }
  .job--redoak .job__grid .shot { width: auto; }
  .job--redoak .job__grid .slot { aspect-ratio: 3 / 4; }
  /* Until a red oak photo is in, its caption stays hidden: let the three shots take the whole row. */
  .job--redoak:not(.has-photos) .shot--1 { grid-column: 1 / 5; }
  .job--redoak:not(.has-photos) .shot--2 { grid-column: 5 / 9; }
  .job--redoak:not(.has-photos) .shot--3 { grid-column: 9 / 13; }
  .job--redoak:not(.has-photos) .job__grid .slot { aspect-ratio: 4 / 5; }
}

/* ---------- Service area ---------- */
.area {
  --fg-2: var(--ink-2); --accent: var(--oak-dk); --focus: var(--char);
  padding-block: var(--sec-y);
  background: var(--cream); color: var(--char);
}
.area__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .area__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; } }
.area__note { max-width: 30em; margin-top: 24px; font-size: 1.0625rem; color: var(--ink-2); }
.area .link { margin-top: 12px; }
.map { position: relative; aspect-ratio: 1; color: rgba(22, 19, 15, 0.38); font-family: var(--mono); }
.map__in { position: absolute; inset: 0; }
.map__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__n { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-size: 0.75rem; color: var(--oak-dk); }
.map__q { position: absolute; display: flex; flex-direction: column; gap: 6px; width: 50%; height: 50%; padding: 16px; }
.map__q--nw { left: 0; top: 0; }
.map__q--ne { right: 0; top: 0; align-items: flex-end; text-align: right; }
.map__q--sw { left: 0; bottom: 0; justify-content: flex-end; }
.map__q--se { right: 0; bottom: 0; align-items: flex-end; justify-content: flex-end; text-align: right; }
.map__dir { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oak-dk); }
.map__q li { font-size: 0.8125rem; line-height: 1.85; letter-spacing: 0.06em; text-transform: uppercase; color: var(--char); }
.map__center { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 12px; transform: translate(-50%, -7px); }
.map__dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--oak); }
.map__label {
  padding: 7px 11px; border-radius: 2px; background: var(--char); color: var(--cream);
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
@media (min-width: 480px) { .map__q { padding: 22px; } .map__q li { font-size: 0.875rem; } }
@media (prefers-reduced-motion: no-preference) {
  .map__dot::before, .map__dot::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 1px solid var(--oak);
    animation: pulse 2.8s var(--ease) infinite;
  }
  .map__dot::after { animation-delay: 1.4s; }
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Closing call to action ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(96px, 14vw, 184px);
  background: var(--walnut); color: var(--cream);
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media .slot__img { object-position: 50% 92%; }
.cta__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.86) 0%, rgba(14, 11, 8, 0.66) 50%, rgba(14, 11, 8, 0.88) 100%);
}
.eyebrow--light { color: var(--steel); }
.cta__title {
  max-width: 11ch;
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(3.1rem, 1.6rem + 7vw, 8.75rem); line-height: 0.92; letter-spacing: -0.03em;
}
.cta__title em { display: block; font-style: italic; font-weight: 600; color: var(--oak-lt); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--char); color: var(--cream);
  border-top: 1px solid var(--line-d);
}
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__logo { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; }
.footer__name { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; line-height: 1.2; }
.footer__brand p:not(.footer__name) { color: var(--steel); }
.footer__phone {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--mono); font-size: 1.125rem; letter-spacing: 0.04em;
  color: var(--cream); text-decoration: underline; text-decoration-color: var(--oak); text-underline-offset: 6px;
}
.footer__head { margin-bottom: 8px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-dk); }
.footer__col a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: var(--cream); text-decoration: none;
  transition: color 220ms var(--ease);
}
.footer__col a:hover { color: var(--oak-lt); }
.footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line-d);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--steel-dk);
}
.footer__legal { display: flex; flex-wrap: wrap; column-gap: 24px; }
.footer__legal a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px;
  color: var(--steel); text-decoration: none; transition: color 220ms var(--ease);
}
.footer__legal a:hover, .footer__legal a[aria-current="page"] { color: var(--cream); }

/* ---------- Phone action bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--char); border-top: 1px solid var(--line-d);
  transform: translateY(110%); visibility: hidden;
  transition: transform 320ms var(--ease), visibility 0s linear 320ms;
}
.bar.is-on { transform: none; visibility: visible; transition: transform 320ms var(--ease), visibility 0s; }
.bar .btn { min-height: 52px; padding: 0 14px; }
@media (min-width: 768px) { .bar { display: none; } }

/* ---------- Motion: clip reveals, once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line .w { animation: word 900ms var(--ease) both; animation-delay: calc(140ms + var(--i) * 90ms); }
  .js .hero__media .slot__img { animation: settle 1800ms var(--ease) both; }
  /* The clip sits on a child: Chrome reports a fully clipped element as off screen, so the observer would never fire. */
  .js [data-reveal] > .rv { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in > .rv { clip-path: inset(-20% -6% -20% -6%); }
}
@keyframes word {
  from { clip-path: inset(0 -10% 100% -10%); transform: translateY(0.2em); }
  to { clip-path: inset(-30% -10% -30% -10%); transform: none; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
  .strip__wood.is-ready, .svc__media, .svc__media.is-on { transition: none; }
}

/* The hero's procedural floor (only while hero-herringbone.jpg is missing) wipes in like a sander pass. */
.hero__media .slot__canvas { clip-path: inset(0 100% 0 0); }
.hero__media.is-filled .slot__canvas { clip-path: inset(0); transition: clip-path 1200ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .hero__media.is-filled .slot__canvas { transition: none; } }

/* ---------- Text consent on the last step ---------- */
.est__consent { margin-top: 16px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.js .est__consent:not(.is-on) { display: none; } /* main.js shows it on the last step, in place of .est__fine */
.est__consent a { color: var(--char); text-decoration: underline; text-decoration-color: var(--oak); text-underline-offset: 3px; }

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-page .nav { background: var(--char); border-bottom-color: var(--line-d); }
.legal {
  --fg-2: var(--ink-2); --accent: var(--oak-dk); --focus: var(--char);
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(72px, 9vw, 128px);
  background: var(--cream); color: var(--char);
}
.legal__wrap { max-width: calc(46rem + var(--gutter) * 2); }
.legal__title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em;
}
.legal__title em { font-style: italic; font-weight: 600; color: var(--oak-dk); }
.legal__meta { margin-top: 20px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.legal__lede {
  margin-top: 36px; padding: 18px 20px;
  border-left: 2px solid var(--oak); background: var(--cream-2);
  font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty;
}
.legal__toc { margin-top: 36px; border-top: 1px solid var(--line-l); }
.legal__toc ol { display: grid; counter-reset: toc; }
.legal__toc li { border-bottom: 1px solid var(--line-l); }
.legal__toc a {
  display: flex; align-items: center; gap: 14px; min-height: 48px;
  color: var(--char); text-decoration: none; font-weight: 600;
  transition: color 220ms var(--ease);
}
.legal__toc a::before {
  counter-increment: toc; content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: var(--oak-dk);
}
.legal__toc a:hover { color: var(--oak-dk); }
@media (min-width: 640px) { .legal__toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.legal__body { counter-reset: sec; }
.legal__body h2 {
  margin-top: clamp(44px, 6vw, 64px);
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal__body h2::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--oak-dk);
}
.legal__body p, .legal__body ul { max-width: 40em; margin-top: 14px; font-size: 1.0625rem; line-height: 1.65; }
.legal__body li { position: relative; margin-top: 10px; padding-left: 24px; }
.legal__body li::before { content: ""; position: absolute; left: 2px; top: 0.8em; width: 10px; height: 1px; background: var(--oak-dk); }
.legal__body a { color: var(--char); text-decoration: underline; text-decoration-color: var(--oak); text-underline-offset: 4px; }
.legal__body strong { font-weight: 700; }
.legal__key { padding: 16px 18px; border: 1px solid var(--char); border-radius: 2px; }
.legal__back { margin-top: clamp(48px, 7vw, 72px); }

