/* Mark Osborne Construction
   One stylesheet. Phone layout first, wider screens added with min-width queries.
   Motion rule: only transform, opacity and SVG stroke are animated.
   (One exception, asked for in the brief: the season panel's height.) */

/* ---------- Fonts (self-hosted, two families only) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --snow: #F5F3EE;
  --paper: #FBFAF6;
  --slate: #1F2A33;
  --slate-soft: #4A5761;      /* secondary text on snow, 6.7:1 */
  --cedar: #B5562B;           /* buttons: white on cedar is 4.85:1 */
  --cedar-ink: #A04A24;       /* cedar for text on light backgrounds, 5.4:1 on snow */
  --pine: #2F5D50;
  --sky: #BFD6E6;
  --sky-wash: #DCE8EF;
  --yellow: #E8B931;
  --line: rgba(31, 42, 51, .2);
  --line-on-dark: rgba(245, 243, 238, .28);

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fast: 140ms;
  --ui: 240ms;

  --gutter: 20px;
  --header-h: 64px;
  --stroke: 1.7;
}
@media (min-width: 720px) { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: var(--slate-soft) var(--snow);
}
body {
  margin: 0;
  background: var(--snow);
  color: var(--slate);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
@media (min-width: 720px) { body { padding-bottom: 0; font-size: 1.125rem; } }

::selection { background: var(--yellow); color: var(--slate); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--cedar-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--cedar); outline-offset: 3px; border-radius: 4px; }
.work :focus-visible, .estimate__side :focus-visible, .urgent :focus-visible,
.site-footer :focus-visible, .callbar :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .defs {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--slate); color: var(--snow); padding: 12px 18px; border-radius: var(--r);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

h2 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  font-weight: 760;
  font-stretch: 116%;
  letter-spacing: -.02em;
  max-width: 18ch;
}

/* placeholder marker: has to stand out on any background */
.ph {
  display: inline;
  background: var(--yellow);
  color: var(--slate);
  font-weight: 600;
  padding: .1em .4em;
  border-radius: 4px;
  outline: 1px dashed var(--slate);
  outline-offset: -1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* hairline that draws across under headings */
.rule { display: block; height: 1px; background: currentColor; opacity: .3; margin: 1.5rem 0 2rem; transform-origin: left; }

/* ---------- Drawing styles (shared by every SVG) ---------- */
.s, .d, .lt, .lt-dark, .tick {
  fill: none; stroke: var(--slate); stroke-width: var(--stroke);
  stroke-linecap: round; stroke-linejoin: round;
}
.lt { stroke: var(--snow); stroke-opacity: .45; }
.lt-dark { stroke-opacity: .25; }
.tick { stroke: var(--snow); stroke-width: 2; }
.f-slate { fill: var(--slate); }
.f-paper { fill: var(--paper); }
.f-snow { fill: var(--snow); }
.f-cedar { fill: var(--cedar); }
.f-pine { fill: var(--pine); }
.f-sky { fill: var(--sky); }
.f-deck { fill: var(--sky-wash); }
.f-yellow { fill: var(--yellow); }
.s.f-paper { fill: var(--paper); }
.s.f-sky { fill: var(--sky); }
.s.f-yellow { fill: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.35em;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform var(--fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--cedar); color: #fff; }
.btn--ghost { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn--yellow { background: var(--yellow); color: var(--slate); }
.btn--small { min-height: 48px; padding: .5em 1.1em; font-size: 1rem; }
.btn--big { min-height: 60px; font-size: 1.1875rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) {
  .btn::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--slate);
    opacity: 0; transition: opacity var(--ui) var(--ease-out); pointer-events: none;
  }
  .btn { position: relative; isolation: isolate; }
  .btn:hover::after { opacity: .12; }
}

.textlink {
  display: inline-flex; align-items: center; gap: .4em; min-height: 48px;
  font-weight: 700; color: var(--cedar-ink);
}
.textlink::after, .checks a::after {
  content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 2px 2px 0 0;
  transform: rotate(45deg); transition: transform var(--ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .textlink:hover::after, .checks a:hover::after { transform: translateX(4px) rotate(45deg); }
}

/* ---------- 1. Header ---------- */
.scroll-sentinel { position: absolute; top: 0; height: 80px; width: 1px; pointer-events: none; }
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; background: var(--snow);
  border-bottom: 1px solid transparent; transform-origin: top;
  transition: transform var(--ui) var(--ease-out);
}
.site-header__inner {
  position: relative; height: 100%; display: flex; align-items: center; gap: 1.25rem;
  transform-origin: left center;
  transition: transform var(--ui) var(--ease-out);
}
.is-scrolled .site-header::before { transform: scaleY(.84); border-bottom-color: var(--line); }
.is-scrolled .site-header__inner { transform: translateY(-8%) scale(.96); }

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px;
  color: var(--slate); text-decoration: none; margin-right: auto;
}
.wordmark__mark { width: 30px; height: 30px; fill: none; stroke: var(--cedar); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wordmark__text { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.05; }
.wordmark__text span { font-weight: 500; font-stretch: 100%; }
.site-nav { display: none; gap: 1.75rem; }
.site-nav a, .site-header__phone {
  color: var(--slate); text-decoration: none; font-weight: 600; font-size: 1rem;
  display: inline-flex; align-items: center; min-height: 48px;
}
.site-nav a { background: linear-gradient(currentColor, currentColor) 0 78% / 100% 1px no-repeat; background-size: 0 1px; }
.site-nav a:hover, .site-nav a:focus-visible { background-size: 100% 1px; }
.site-header__phone { display: none; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; }
.site-header__cta { display: none; }
@media (min-width: 720px) {
  .site-header__phone, .site-header__cta { display: inline-flex; }
  .wordmark__text { font-size: 1.1875rem; }
}
@media (min-width: 1000px) { .site-nav { display: flex; margin-right: 1rem; } }

/* ---------- 2. Hero ---------- */
.hero { position: relative; padding: 1.5rem 0 3.5rem; overflow: hidden; }
.hero::before {            /* faint blueprint grid, hero only */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(31, 42, 51, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 42, 51, .09) 1px, transparent 1px),
    linear-gradient(to right, rgba(31, 42, 51, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 42, 51, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
}
.hero__grid { display: grid; gap: 1.5rem; align-items: center; }
.hero__title {
  font-size: clamp(2.25rem, 9.4vw, 5.4rem);
  font-weight: 830;
  font-stretch: 125%;
  letter-spacing: -.03em;
  line-height: .98;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: block; }
.hero__title .accent { color: var(--cedar-ink); }
.hero__lede { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); line-height: 1.5; max-width: 34ch; margin: 1.5rem 0 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions .btn { flex: 1 1 100%; }
.hero__art { order: -1; margin-inline: -6px; }
.house { width: 100%; height: auto; overflow: visible; }

@media (min-width: 560px) { .hero__actions .btn { flex: 0 1 auto; } }
@media (min-width: 900px) {
  .hero { padding: 2.5rem 0 5rem; }
  .hero__grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 1rem; }
  .hero__art { order: 0; margin-right: -40px; }
  .hero__title { font-size: clamp(3rem, 5.4vw, 5.4rem); }
}

/* 3. Proof row, drawn as the title block from a set of plans */
.titleblock {
  display: grid; grid-template-columns: 1fr 1fr; margin: 2.75rem 0 0;
  border: 1px solid var(--slate); border-radius: var(--r); background: var(--paper); overflow: hidden;
}
.titleblock > div { padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }
.titleblock > div:last-child { grid-column: 1 / -1; }
.titleblock dt { font-size: 1rem; color: var(--slate-soft); line-height: 1.3; }
.titleblock dd { margin: .2rem 0 0; font-family: var(--display); font-weight: 760; font-stretch: 100%; font-size: 1.375rem; line-height: 1.15; }
.titleblock dd .ph { font-family: var(--body); font-size: 1rem; font-stretch: 100%; }
@media (min-width: 900px) {
  .titleblock { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); margin-top: 3rem; }
  .titleblock > div:last-child { grid-column: auto; }
  .titleblock > div { padding: 1.1rem 1.25rem 1.25rem; }
  .titleblock dd { font-size: 1.625rem; }
}

/* Hero load sequence: pure CSS, so it runs before any script arrives */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { transform: none; opacity: 1; } }

[data-i="0"] { --i: 0; } [data-i="1"] { --i: 1; } [data-i="2"] { --i: 2; } [data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; } [data-i="5"] { --i: 5; } [data-i="6"] { --i: 6; } [data-i="7"] { --i: 7; }
[data-i="8"] { --i: 8; } [data-i="9"] { --i: 9; } [data-i="10"] { --i: 10; } [data-i="11"] { --i: 11; }
[data-i="12"] { --i: 12; } [data-i="13"] { --i: 13; } [data-i="14"] { --i: 14; }
[data-w="1"] { --w: 0; } [data-w="2"] { --w: 1; } [data-w="3"] { --w: 2; }

@media (prefers-reduced-motion: no-preference) {
  .house .d {
    stroke-dasharray: 1 2; stroke-dashoffset: 1.02;
    animation: draw .75s var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 80ms + 80ms);
  }
  .house .fills { opacity: 0; animation: fade .7s ease-out 1.15s forwards; }
  .house .warm { opacity: 0; animation: fade .5s ease-out forwards; animation-delay: calc(2s + var(--w, 0) * 260ms); }
  .hero__title .line > span { transform: translateY(108%); animation: rise .75s var(--ease-out) forwards; }
  .hero__title .line:nth-child(1) > span { animation-delay: .35s; }
  .hero__title .line:nth-child(2) > span { animation-delay: .45s; }
  .hero__title .line:nth-child(3) > span { animation-delay: .55s; }
  .hero__title .line:nth-child(4) > span { animation-delay: .65s; }
  .hero__lede, .hero__actions, .titleblock { opacity: 0; transform: translateY(14px); animation: rise .6s var(--ease-out) forwards; }
  .hero__lede { animation-delay: .8s; }
  .hero__actions { animation-delay: .9s; }
  .titleblock { animation-delay: 1.05s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art, .hero__copy, .titleblock { opacity: 0; animation: fade .5s ease-out forwards; }
}

/* ---------- Scroll reveals (only once the script has run) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(22px); transition: opacity .5s ease-out, transform .6s var(--ease-out); }
  .js .rule { transform: scaleX(0); transition: transform .9s var(--ease-out) .1s; }
  .js .rise.in, .js .rule.in { opacity: 1; transform: none; }
  .js .rule.in { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 0; transition: opacity .4s ease-out; }
  .js .rise.in { opacity: 1; }
}

/* ---------- 4. Services ---------- */
.services { background: var(--sky-wash); padding: 4rem 0 1rem; }
.services__head h2 { max-width: 20ch; }
.services__intro { margin: 1rem 0 0; font-size: 1.1875rem; max-width: 40ch; }
.services__head .rule { margin-bottom: 0; }

.stage__art { max-width: 620px; margin: 1.5rem auto 0; }
.stage.is-stacked .stage__art { display: none; }
.stage__progress { display: none; }
.scene { width: 100%; height: auto; overflow: hidden; border-radius: var(--r); }
.scene .cut, .scene .tape, .scene .check { opacity: 0; }
.scene .tint { fill: var(--pine); opacity: 0; }

.chapter { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter__num {
  font-family: var(--display); font-weight: 830; font-stretch: 125%; font-size: 4rem; line-height: 1;
  color: var(--cedar-ink); margin: 0 0 .25rem; letter-spacing: -.03em;
}
.chapter__art:empty { display: none; }
.chapter__art { margin: .5rem -6px 1.25rem; max-width: 620px; }
.chapter h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 720; letter-spacing: -.015em; margin-bottom: .75rem; }
.chapter > p { max-width: 46ch; }
.ticks { list-style: none; margin: 1.25rem 0 .75rem; max-width: 52ch; }
.ticks li { position: relative; padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid var(--line); line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: .15rem; top: 1.05em; width: .7rem; height: 2px; background: var(--cedar);
}

/* desktop: the stage holds still while the chapters play */
.stage.is-pinned { height: 100vh; height: 100svh; }
.stage.is-pinned .stage__inner {
  height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem;
  padding-top: calc(var(--header-h) + 1rem); padding-bottom: 1.5rem;
}
.stage.is-pinned .stage__text { position: relative; }
.stage.is-pinned .stage__progress {
  display: block; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line);
}
.stage.is-pinned .stage__progress span { display: block; height: 100%; background: var(--cedar); transform: scaleX(0); transform-origin: left; }
.stage.is-pinned .chapter {
  position: absolute; inset: 0; padding: 1.25rem 0 0; border: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
}
.stage.is-pinned .chapter.is-active { pointer-events: auto; }
.stage.is-pinned .chapter__num { font-size: clamp(3.5rem, 11vh, 7rem); }
.stage.is-pinned .chapter__art { display: none; }
.stage.is-pinned .ticks li { padding-block: .34rem; font-size: 1.0625rem; }
.stage.is-pinned .ticks { margin: .9rem 0 .4rem; }
.stage.is-pinned .stage__art { display: flex; align-items: center; max-width: none; margin: 0; }
.stage.is-pinned .scene { width: 100%; max-height: calc(100svh - var(--header-h) - 3rem); }

/* ---------- 5. Seasons ---------- */
.seasons { padding: 4.5rem 0; }
.seasons .rule { margin-bottom: 1.25rem; }
.seasons__note { font-size: 1.1875rem; font-weight: 600; margin-bottom: 1.75rem; }
.seasons__tabs {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--slate); border-radius: var(--r); padding: 4px; max-width: 560px; margin-bottom: 1rem;
}
.seasons__tabs button {
  position: relative; z-index: 1; min-height: 48px; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; border-radius: 7px;
  transition: color var(--ui) var(--ease-out), transform var(--fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.seasons__tabs button:active { transform: scale(.97); }
.seasons__tabs button[aria-selected="true"] { color: var(--snow); }
.seasons__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4);
  background: var(--slate); border-radius: 7px;
  transform: translateX(calc(var(--tab, 0) * 100%));
  transition: transform var(--ui) var(--ease-out);
}
.seasons__panels { position: relative; }
.seasons__panels.is-sizing { transition: height .28s var(--ease-out); overflow: hidden; }
.season h3 { font-size: 1.75rem; font-weight: 720; margin: 1.5rem 0 .5rem; }
.has-tabs .season h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.season { transition: opacity .24s ease-out; }
.season.is-leaving { position: absolute; inset: 0 0 auto 0; opacity: 0; transition-duration: .14s; }
.season.is-entering { opacity: 0; }
.checks { list-style: none; }
.checks li {
  display: grid; gap: .1rem 2rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.checks p { margin: .15rem 0 0; max-width: 58ch; }
.checks a { display: inline-flex; align-items: center; gap: .4em; min-height: 48px; font-weight: 700; white-space: nowrap; }
@media (min-width: 720px) {
  .checks li { grid-template-columns: minmax(0, 1fr) auto; padding: 1.15rem 0; }
}

/* ---------- 6. Recent work ---------- */
.work { background: var(--pine); color: var(--snow); padding: 4.5rem 0; }
.work__intro { max-width: 56ch; margin-bottom: 2rem; }
.ba__frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-on-dark); background: var(--sky);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  --pos: 50%;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 12px; padding: .2em .7em; border-radius: 6px;
  background: var(--slate); color: var(--snow); font-weight: 600; font-size: 1rem; pointer-events: none;
}
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }
.ba__ph { position: absolute; left: 12px; right: 12px; bottom: 12px; width: fit-content; margin-inline: auto; text-align: center; pointer-events: none; }
.ba__handle { position: absolute; inset: 0; transform: translateX(var(--pos)); pointer-events: none; }
.ba__handle::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--slate); }
.ba__grip {
  position: absolute; left: -24px; top: 50%; margin-top: -24px; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 2px solid var(--slate);
  transition: transform var(--fast) var(--ease-out);
}
.ba__grip svg { width: 22px; height: 22px; fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba__frame.is-dragging .ba__grip { transform: scale(.94); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none;
}
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }

.work__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.frame { background: var(--paper); color: var(--slate); border-radius: var(--r); overflow: hidden; }
.frame svg { width: 100%; height: auto; background: var(--snow); }
.frame p { padding: .7rem .8rem .85rem; font-size: 1rem; line-height: 1.45; font-weight: 600; }
.frame .ph { display: block; width: fit-content; margin-bottom: .35rem; font-size: 1rem; }
@media (min-width: 900px) { .work__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; } }

/* ---------- 7. About ---------- */
.about { padding: 4.5rem 0; }
.about__grid { display: grid; gap: 2.5rem; }
.about__lede { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.625rem); line-height: 1.4; font-weight: 500; max-width: 30ch; }
.about__copy > p { max-width: 52ch; }
.about__facts { margin: 2rem 0 0; border-top: 1px solid var(--slate); max-width: 560px; }
.about__facts > div { display: grid; gap: .1rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.about__facts dt { color: var(--slate-soft); }
.about__facts dd { margin: 0; font-weight: 600; }
@media (min-width: 560px) { .about__facts > div { grid-template-columns: 11rem 1fr; } }
.about__photo { margin: 0; max-width: 420px; }
.about__photo svg { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--slate); }
.about__photo figcaption { margin-top: .75rem; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; align-items: start; }
  .about__photo { justify-self: end; width: 100%; }
}

/* ---------- 8. Questions ---------- */
.faq { padding: 1rem 0 5rem; }
.faq__grid { display: grid; gap: 0; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; } .faq .rule { margin-bottom: 0; } }
.faq__list { border-top: 1px solid var(--slate); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 64px; padding: .9rem 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; text-wrap: pretty; }
.faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background:
    linear-gradient(var(--cedar-ink), var(--cedar-ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--cedar-ink), var(--cedar-ink)) center / 2px 100% no-repeat;
  transition: transform var(--ui) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 2.5rem 1.4rem 0; max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq__a { animation: faq-in .28s var(--ease-out); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 9. Estimate ---------- */
.estimate { background: var(--slate); color: var(--snow); padding: 4.5rem 0 5rem; }
.estimate__grid { display: grid; gap: 2.5rem; }
.estimate__side > p { max-width: 36ch; font-size: 1.1875rem; }
.estimate__side .btn--big { width: 100%; max-width: 420px; margin-top: .5rem; }
.map { margin: 2.5rem 0 0; max-width: 300px; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map figcaption { margin-top: .75rem; line-height: 1.9; }
.map__city { fill: rgba(245, 243, 238, .07); stroke: var(--snow); stroke-width: var(--stroke); stroke-linejoin: round; }
.map__water { fill: none; stroke: var(--sky); stroke-width: 5; stroke-linecap: round; }
.map__lake { fill: var(--sky); }
.map__road { fill: none; stroke: var(--snow); stroke-opacity: .3; stroke-width: 1; }
.map__area { fill: none; stroke: var(--yellow); stroke-width: var(--stroke); stroke-dasharray: 7 7; }
.map__pin { fill: var(--cedar); stroke: var(--snow); stroke-width: var(--stroke); stroke-linejoin: round; }
.map__north { fill: none; stroke: var(--snow); stroke-width: var(--stroke); stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .estimate__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .estimate__side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.urgent {
  border: 1px solid var(--yellow); border-radius: var(--r); padding: 1.1rem; margin-bottom: 1rem;
  animation: urgent-in .26s var(--ease-out);
}
.urgent p { margin-bottom: .75rem; font-size: 1.1875rem; }
.urgent .btn { width: 100%; }
@keyframes urgent-in { from { opacity: 0; transform: translateY(8px); } }

.sheet-wrap { position: relative; }
.sheet-clip { overflow: hidden; border-radius: var(--r); position: relative; }
.sheet {
  background: var(--paper); color: var(--slate); border-radius: var(--r);
  padding: 1.5rem 1.15rem 1.75rem; display: grid; gap: 1.5rem;
}
@media (min-width: 720px) { .sheet { padding: 2.5rem; gap: 1.75rem; } }
.sheet-roll {
  position: absolute; left: -6px; right: -6px; bottom: 0; height: 24px; border-radius: 12px;
  background: var(--sky); border: 1.5px solid var(--slate); opacity: 0;
}
.is-rolling .sheet-clip, .is-rolling .sheet { transition: transform .55s cubic-bezier(.5, 0, .2, 1); }
.is-rolling .sheet-clip { transform: translateY(calc(var(--roll, 0px) * -1)); }
.is-rolling .sheet { transform: translateY(var(--roll, 0px)); }
.is-rolling .sheet-roll { opacity: 1; transition: opacity .12s; }

.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; font-weight: 700; margin-bottom: .45rem; font-size: 1.0625rem; }
.opt { font-weight: 400; color: var(--slate-soft); }
.field-row { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .7rem .9rem;
  background: #fff; border: 1px solid var(--slate-soft); border-radius: var(--r);
  font-size: 1.0625rem; line-height: 1.4; caret-color: var(--cedar);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(-45deg, transparent 50%, var(--slate) 50%);
  background-position: right 1.25rem center, right .9rem center; background-size: .4rem .4rem; background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--slate); border-radius: var(--r); }
.field [aria-invalid="true"] { border-color: var(--cedar-ink); border-width: 2px; }
.hint { color: var(--slate-soft); margin: .4rem 0 0; font-size: 1rem; }
.error {
  color: var(--cedar-ink); font-weight: 600; margin: .45rem 0 0; font-size: 1rem;
  display: flex; gap: .45em; align-items: baseline;
}
.error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--cedar-ink); color: #fff; font-size: .8em; font-weight: 800; }
.form-errors { border: 2px solid var(--cedar-ink); border-radius: var(--r); padding: 1rem 1.1rem; }
.form-errors p { font-weight: 700; margin-bottom: .4rem; }
.form-errors ul { list-style: none; }
.form-errors a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: .5rem 1.05rem;
  border: 1px solid var(--slate-soft); border-radius: var(--r); background: #fff; font-weight: 600;
  transition: transform var(--fast) var(--ease-out);
}
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--slate); border-color: var(--slate); color: var(--snow); }
.chip--urgent input:checked + span { background: var(--cedar); border-color: var(--cedar); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--cedar); outline-offset: 3px; }

.field input[type="file"] { width: 100%; font-size: 1rem; min-height: 52px; padding: .35rem 0; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; min-height: 48px; margin-right: .9rem; padding: .5rem 1rem; cursor: pointer;
  background: #fff; color: var(--slate); border: 1px solid var(--slate); border-radius: var(--r);
}
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 88px; height: 88px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--slate-soft); animation: urgent-in .24s var(--ease-out); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button {
  position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: start end; padding: 4px;
}
.thumbs button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--slate); color: var(--snow); font-weight: 700; line-height: 1; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet__send { width: 100%; }

.done {
  background: var(--paper); color: var(--slate); border-radius: var(--r); padding: 1.75rem 1.25rem;
  animation: urgent-in .4s var(--ease-out);
}
@media (min-width: 720px) { .done { padding: 2.5rem; } }
.done h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 740; margin-bottom: 1.25rem; }
.done ol { list-style: none; counter-reset: step; margin-bottom: 1.5rem; border-top: 1px solid var(--line); }
.done li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.done li::before { content: counter(step); font-family: var(--display); font-weight: 800; color: var(--cedar-ink); }
.done:focus { outline: none; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--slate); color: var(--snow); border-top: 1px solid var(--line-on-dark); padding: 2.5rem 0 2rem; overflow: hidden; }
.site-footer .wrap { container-type: inline-size; }
.site-footer__name {
  font-family: var(--display); font-weight: 830; font-stretch: 125%; letter-spacing: -.03em; line-height: .9;
  font-size: 5.3vw; font-size: 6.02cqi; white-space: nowrap; margin: 0 0 2rem; color: var(--snow);
}
.site-footer__row { display: grid; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line-on-dark); border-bottom: 1px solid var(--line-on-dark); }
.site-footer a { color: var(--snow); }
.site-footer__phone { font-family: var(--display); font-weight: 760; font-stretch: 112%; font-size: 1.75rem; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer nav a { display: inline-flex; min-height: 48px; align-items: center; }
.site-footer__legal { margin-top: 1.5rem; color: #B9C4CC; font-size: 1rem; }
@media (min-width: 900px) { .site-footer__row { grid-template-columns: 1fr auto 1.4fr; align-items: center; gap: 3rem; } .site-footer nav { justify-content: flex-end; } }

/* ---------- Phone bottom bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--slate); border-top: 1px solid var(--line-on-dark);
  transition: transform var(--ui) var(--ease-out);
}
.callbar .btn { min-height: 54px; padding-inline: .6em; font-size: 1.0625rem; }
.callbar.is-solo { grid-template-columns: 1fr; }
.callbar.is-solo .callbar__estimate { display: none; }
.callbar.is-away { transform: translateY(110%); }
@media (min-width: 720px) { .callbar { display: none; } }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 3rem 0; }
.lost__inner { max-width: 620px; }
.lost h1 { font-size: clamp(2.25rem, 8vw, 4rem); font-weight: 830; font-stretch: 125%; letter-spacing: -.03em; margin: 1.5rem 0 1rem; }
.lost .hero__actions { margin-top: 1.5rem; }

/* ---------- Reduced motion: finished drawings, simple fades, nothing held ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip span, .seasons__pill, .seasons__tabs button, .callbar, .site-header::before, .site-header__inner,
  .ba__grip, .textlink::after, .checks a::after, .faq summary::after { transition: none; }
  .is-rolling .sheet-clip, .is-rolling .sheet { transition: none; }
  .seasons__panels.is-sizing { transition: none; }
  .urgent, .thumbs li { animation: none; }
  .done { animation: fade .4s ease-out both; opacity: 0; }
}

@media print {
  .site-header, .callbar, .skip { display: none; }
  body { padding: 0; }
}
