/* CP Carpentry & Building Services. Tokens and decisions: _work/design-plan.md */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Black"), local("Arial"); size-adjust: 103%; ascent-override: 81%; descent-override: 19%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"); size-adjust: 102%; ascent-override: 103%; descent-override: 31%; line-gap-override: 0%; }

:root {
  --ink: #151B20;
  --ink-2: #1D252B;
  --slate: #2C353C;
  --text: #1D2429;
  --muted: #4A555D;
  --moss: #55622A;
  --moss-d: #434E1F;
  --moss-tint: #E7EAD8;
  --oak: #C99459;
  --oak-l: #E3B97F;
  --oak-deep: #8C5E2A;
  --paper: #F4EFE6;
  --sky: #E2EBEF;
  --white: #FFFFFF;
  --line-dark: rgba(244, 239, 230, .5);
  --r: 8px;
  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 56px);
  --head-h: 96px;
  --display: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --body: "Hanken Grotesk", "Hanken Fallback", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --media-cap: min(76vh, 760px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3 { display: flow-root; margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-stretch: 105%; line-height: 1.15; }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--muted); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--oak); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }

/* heading line masks (frontend-design recipe) */
.ln-mask { padding: .2em .15em .5em; margin: -.7em -.15em -.5em; }
.ln-mask:first-child { margin-top: -.2em; }

/* ---------- buttons (pill: "CP" 2 mod 3 = 2) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); will-change: transform; }
.btn--lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.05rem; }
.btn--wide { width: 100%; }
.btn--oak { background: var(--oak); color: var(--ink); }
.btn--oak:hover { background: var(--oak-l); }
.btn--line { border-color: rgba(244, 239, 230, .55); color: var(--paper); }
.btn--line:hover { border-color: var(--oak); color: var(--oak-l); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--slate); }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid currentColor; background: transparent; display: inline-grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s; }
.icon-btn svg, .svc__go svg, .link-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--oak); padding: 8px 0; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--head-h); color: var(--paper); transition: height .35s var(--ease), background-color .35s var(--ease); background: rgba(21, 27, 32, .96); }
.page-home .site-head:not(.is-stuck) { background: linear-gradient(rgba(21, 27, 32, .85), rgba(21, 27, 32, 0)); }
.site-head.is-stuck { --head-h: 76px; background: rgba(21, 27, 32, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(244, 239, 230, .08); }
.site-head__in { height: 100%; display: flex; align-items: center; gap: 28px; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 70px; width: auto; transition: height .35s var(--ease); }
.site-head.is-stuck .brand img { height: 56px; }
.brand__mark { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; min-height: 44px; border: 0; background: none; font-size: .98rem; font-weight: 500; text-decoration: none; cursor: pointer; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link[data-current]::after, .nav__drop-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__chev { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.nav__drop-btn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 250px; padding: 10px; background: var(--paper); color: var(--text); border-radius: var(--r); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); visibility: hidden; opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0 round var(--r)); transition: opacity .3s var(--ease), transform .35s var(--ease), clip-path .45s var(--ease), visibility 0s .45s; }
.nav__item--drop.is-open .dd, .no-js .nav__item--drop:hover .dd, .no-js .nav__item--drop:focus-within .dd { visibility: visible; opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--r)); transition: opacity .3s var(--ease), transform .35s var(--ease), clip-path .45s var(--ease), visibility 0s; }
.dd__link { display: block; padding: 11px 14px; border-radius: calc(var(--r) - 4px); text-decoration: none; font-weight: 500; transition: background-color .25s, padding .3s var(--ease); }
.dd__link:hover, .dd__link[aria-current="page"] { background: var(--moss-tint); padding-left: 20px; }
.site-head__cta { flex: none; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper); transition: transform .35s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--paper); padding: calc(var(--head-h) + 20px) var(--gut) 32px; overflow-y: auto; background-image: linear-gradient(rgba(244, 239, 230, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 230, .04) 1px, transparent 1px); background-size: 32px 32px; }
.mnav[hidden] { display: none; }
.mnav__label { font-family: var(--display); font-stretch: 75%; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--oak); margin: 0 0 6px; }
.mnav__list a { display: block; padding: 10px 0; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 1.5rem; text-decoration: none; border-bottom: 1px solid rgba(244, 239, 230, .1); }
.mnav__list a[aria-current="page"] { color: var(--oak-l); }
.mnav__list--main { margin-top: 18px; }
.mnav__cta { margin-top: 28px; width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; background-color: var(--ink); color: var(--paper); overflow: clip; isolation: isolate;
  background-image: linear-gradient(rgba(244, 239, 230, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 230, .035) 1px, transparent 1px), linear-gradient(rgba(244, 239, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 230, .06) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; --mx: 70%; --my: 40%; }
.hero__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 45% at 72% 92%, rgba(201, 148, 89, .34), transparent 70%), radial-gradient(28vw 28vw at var(--mx) var(--my), rgba(227, 185, 127, .12), transparent 70%); }
.street { position: absolute; left: 0; right: 0; bottom: 8vh; width: 100%; pointer-events: none; }
.street--far { height: 30vh; bottom: 10vh; }
.street--near { height: 26vh; }
.street--far .street__body { fill: #1B242B; }
.street--near .street__body { fill: #1F2930; }
.street .sw { fill: #2A343B; transition: fill 1.2s; }
.street .sw.is-lit { fill: #D9A867; }
.street--far .sw.is-lit { fill: #A98457; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8vh; background: var(--ink); border-top: 1px solid rgba(244, 239, 230, .2); z-index: 1; }
.gulls { position: absolute; inset: 0 0 40% 0; width: 100%; height: 60%; pointer-events: none; }
.gull { fill: none; stroke: rgba(244, 239, 230, .55); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.hero__house { position: absolute; z-index: 2; right: max(2vw, calc((100vw - var(--wrap)) / 2 - 40px)); bottom: calc(8vh - 1.2%); height: min(80vh, 720px); aspect-ratio: 800 / 760; }
.house { width: 100%; height: 100%; overflow: visible; }
.house .ln { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.house .ln-main { stroke: rgba(244, 239, 230, .85); stroke-width: 2; }
.house .ln-thin { stroke: rgba(244, 239, 230, .5); stroke-width: 1.4; }
.house .ln-oak { stroke: var(--oak); stroke-width: 2.2; }
.house .ln-dim { stroke: var(--oak-l); stroke-width: 1.3; stroke-dasharray: 0; }
.house .h-solid { fill: var(--ink); }
.house .h-cut { fill: url(#hatch); }
.house .hatch-l { stroke: rgba(244, 239, 230, .35); stroke-width: 1.4; }
.house .joist-r { fill: rgba(201, 148, 89, .55); }
.house .h-floor { fill: url(#joists); }
.house .h-glass { fill: #2E3A42; stroke: rgba(244, 239, 230, .6); stroke-width: 1; }
.house .h-win.is-lit { fill: #D9A867; }
.house .st-done ~ .st .h-dwin, .house .h-dwin { fill: #E9B871; }
.house .h-steel { fill: #9AA7AF; stroke: none; }
.house .h-shaft { fill: url(#shaft); }
.house .h-spill { fill: url(#spill); }
.house .h-room { fill: rgba(244, 239, 230, .07); }
.house .h-lamp { fill: url(#lamp); }
.house .h-label, .house .h-dim { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 19px; letter-spacing: .12em; text-transform: uppercase; fill: var(--oak-l); }
.house .h-label { fill: rgba(244, 239, 230, .6); }
.house .st-before, .house .st-survey, .house .st-oldslope { opacity: 0; }
.hero__in { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--head-h) + 10px); padding-bottom: 14vh; }
.hero__title { font-size: clamp(2.6rem, 4.5vw, 4.9rem); font-stretch: 116%; line-height: 1.02; max-width: min(52vw, 800px); margin-bottom: .45em; }
.hero__lede { font-size: clamp(1.08rem, 1.25vw, 1.22rem); max-width: min(40vw, 600px); color: rgba(244, 239, 230, .82); margin-bottom: 1.8em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.stage { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; margin-top: 2.4em; max-width: 360px; }
.stage__count { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: .95rem; letter-spacing: .1em; color: rgba(244, 239, 230, .6); font-variant-numeric: tabular-nums; }
.stage__count b { color: var(--oak-l); font-weight: 700; }
.stage__name { font-weight: 600; font-size: 1rem; color: var(--paper); }
.stage__bar { grid-column: 1 / -1; height: 2px; background: rgba(244, 239, 230, .18); overflow: hidden; }
.stage__bar i { display: block; height: 100%; background: var(--oak); transform-origin: left; transform: scaleX(1); }
.hero__towns { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 0; height: 8vh; margin: 0; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: .9rem; letter-spacing: .06em; color: rgba(244, 239, 230, .72); padding: 0; }
.hero__towns span { color: var(--oak); }
.js:not(.rm):not(.gs):not(.reveal-all) :is(.hero__title, [data-hero-rise], .hero__house, [data-split], [data-rise], [data-card], [data-foot]) { opacity: 0; }
.js.gs:not(.rm) [data-frame]:not(.is-in)::before { opacity: 0; transform: translate(-16px, -16px); }
[data-frame]::before { transition: opacity .9s .5s var(--ease), transform 1.1s .5s var(--ease); }

/* ---------- section basics ---------- */
section { position: relative; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .lede { margin: 0; }
.sec-head--dark h2 { color: var(--paper); }
.sec-head--dark .lede { color: rgba(244, 239, 230, .78); }
.frame-cap { position: absolute; left: 14px; bottom: 14px; z-index: 3; background: var(--ink); color: var(--paper); font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: calc(var(--r) - 4px); }

/* ---------- services ---------- */
.services { background: var(--white); padding: clamp(72px, 7vw, 100px) 0; }
.svc-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(2, min(30vh, 280px)); gap: 22px; }
.svc:not(.svc--big) { flex-direction: row; }
.svc:not(.svc--big) .svc__img { aspect-ratio: auto; width: 46%; flex: none; }
.svc:not(.svc--big) .svc__img img { position: absolute; inset: 0; }
.svc:not(.svc--big) .svc__body { align-content: center; }
.svc { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--r); overflow: hidden; isolation: isolate; }
.svc--big { grid-row: span 2; background: var(--ink); color: var(--paper); }
.svc__img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.svc--big .svc__img { aspect-ratio: auto; flex: 1; min-height: 0; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.svc--big .svc__img img { position: absolute; inset: 0; object-position: 50% 60%; }
.svc:hover .svc__img img { transform: scale(1.12); }
.svc__body { padding: 22px 26px 24px; display: grid; gap: 8px; }
.svc__body p { margin: 0; color: var(--muted); }
.svc--big .svc__body p { color: rgba(244, 239, 230, .78); }
.svc--big h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.svc__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--oak-deep); }
.svc--big .svc__go { color: var(--oak-l); }
.svc__go svg { transition: transform .35s var(--ease); }
.svc:hover .svc__go svg { transform: translateX(5px); }
.svc::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); border: 2px solid var(--oak); opacity: 0; transition: opacity .35s; pointer-events: none; }
.svc:hover::after, .svc:focus-visible::after { opacity: 1; }
.svc-more { margin: 28px 0 0; font-size: 1.05rem; }
.svc-more a { font-weight: 600; text-decoration-color: var(--oak); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cursor-label { position: fixed; z-index: 120; left: 0; top: 0; pointer-events: none; background: var(--oak); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 10px 16px; border-radius: 999px; opacity: 0; transform: translate(-50%, -50%) scale(.6); }

/* ---------- drawing to done (signature) ---------- */
.d2d { background: var(--paper); background-image: linear-gradient(rgba(44, 53, 60, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 53, 60, .05) 1px, transparent 1px); background-size: 28px 28px; }
.d2d__pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head-h) + 10px) 0 40px; }
.d2d__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.d2d__text h2 { margin-bottom: .45em; }
.d2d__intro { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.4em; }
.steps { display: grid; gap: 4px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(44, 53, 60, .14); opacity: .42; transition: opacity .45s var(--ease); }
.step h3 { font-size: 1.15rem; }
.step p { margin: .3em 0 0; font-size: 1rem; color: var(--muted); display: grid; grid-template-rows: 0fr; }
.step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--slate); font-family: var(--display); font-weight: 800; font-size: .95rem; transition: background-color .4s, color .4s, border-color .4s; }
.step.is-on { opacity: 1; }
.step.is-on .step__n { background: var(--moss); border-color: var(--moss); color: var(--white); }
.d2d__bar { height: 3px; background: rgba(44, 53, 60, .12); margin-top: 18px; }
.d2d__bar i { display: block; height: 100%; background: var(--moss); transform-origin: left; transform: scaleX(1); }
.d2d__frame { position: relative; height: min(76vh, 760px); height: min(76svh, 760px); aspect-ratio: 3 / 4; max-width: 100%; }
.d2d__frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--oak); border-radius: var(--r); }
.d2d__media { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px rgba(44, 53, 60, .18); }
.d2d__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d2d__notes { position: absolute; inset: 0; width: 100%; height: 100%; }
.note-l { fill: none; stroke: var(--oak-deep); stroke-width: 5; }
.note-dot { fill: var(--oak); stroke: var(--white); stroke-width: 3; }
.note-t { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -100%); background: var(--ink); color: var(--paper); font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; white-space: nowrap; }
.d2d__stamp { position: absolute; right: 22px; top: 22px; font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 1.5rem; color: var(--white); background: var(--moss); padding: 8px 18px; border-radius: 999px; }
.js .d2d__notes, .js .note-t, .js .d2d__stamp { opacity: 1; }

/* ---------- why us (moss band) ---------- */
.why { background: var(--moss); color: var(--white); padding: clamp(80px, 9vw, 130px) 0; overflow: clip; }
.why__lines { position: absolute; inset: 0; opacity: 1; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px), repeating-linear-gradient(135deg, transparent 0 60px, rgba(255, 255, 255, .07) 60px 63px); background-size: 48px 48px, 48px 48px, 136px 136px; animation: drift 14s linear infinite; }
@keyframes drift { to { background-position: 48px 48px, 48px 48px, 136px 0; } }
.why__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.why h2 { margin-bottom: .5em; }
.why__fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; margin-bottom: 30px; }
.why__num, .why__plus { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(4.5rem, 9vw, 8rem); line-height: .9; color: var(--oak-l); font-variant-numeric: tabular-nums; }
.why__plus { margin-left: -12px; }
.why__unit { font-size: 1.2rem; font-weight: 600; max-width: none; }
.why__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why__list li { border-top: 2px solid rgba(255, 255, 255, .3); padding-top: 16px; }
.why__list h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why__list p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1rem; }
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--oak-l); border-radius: var(--r); }
.frame__img { position: relative; border-radius: var(--r); overflow: hidden; height: min(68vh, 640px); }
.frame__img img { width: 100%; height: 118%; object-fit: cover; }
.why__frame { justify-self: center; width: min(100%, calc(min(68vh, 640px) * .9)); }

/* ---------- planner ---------- */
.planner-band { background-color: var(--ink); color: var(--paper); padding: clamp(80px, 9vw, 130px) 0; background-image: linear-gradient(rgba(244, 239, 230, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 230, .04) 1px, transparent 1px); background-size: 32px 32px; }
.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.seg { border: 0; padding: 0; margin: 0 0 28px; }
.seg legend, .range__l { font-family: var(--display); font-stretch: 80%; font-weight: 600; font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oak-l); margin-bottom: 12px; padding: 0; }
.seg__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opts label { position: relative; cursor: pointer; }
.seg__opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opts span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(244, 239, 230, .3); font-weight: 600; transition: background-color .3s, color .3s, border-color .3s; }
.seg__opts input:checked + span { background: var(--oak); border-color: var(--oak); color: var(--ink); }
.seg__opts input:focus-visible + span { outline: 3px solid var(--oak-l); outline-offset: 3px; }
.seg__opts label:hover span { border-color: var(--oak); }
.range { display: grid; gap: 10px; }
.range__l { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0; }
.range__v { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--paper); }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--oak) var(--p, 50%), rgba(244, 239, 230, .2) var(--p, 50%)); }
.range input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(244, 239, 230, .2); }
.range input::-moz-range-progress { height: 4px; background: var(--oak); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--paper); border: 4px solid var(--oak); }
.range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--oak); }
.range__help { font-size: .95rem; color: rgba(244, 239, 230, .7); }
.planner__draw { position: relative; }
.pl-house { width: 100%; height: auto; overflow: visible; }
.pl-ground { stroke: rgba(244, 239, 230, .5); stroke-width: 2; }
.pl-ghost { fill: none; stroke: rgba(244, 239, 230, .45); stroke-width: 1.6; stroke-dasharray: 6 6; }
.pl-roof { fill: url(#pl-hatch); stroke: var(--paper); stroke-width: 2.4; stroke-linejoin: round; }
.hatch-l { stroke: rgba(201, 148, 89, .55); stroke-width: 1.4; }
.pl-body { fill: var(--ink-2); stroke: var(--paper); stroke-width: 2.4; }
.pl-floor { stroke: rgba(244, 239, 230, .4); stroke-width: 1.4; }
.pl-win { fill: #2E3A42; stroke: rgba(244, 239, 230, .7); stroke-width: 1.4; }
.pl-win--lit { fill: #E2B26E; }
.pl-door { fill: var(--oak-deep); stroke: rgba(244, 239, 230, .7); stroke-width: 1.4; }
.pl-nb { opacity: 0; transition: opacity .5s; }
.pl-nb.is-on { opacity: 1; }
.pl-nb path { fill: none; stroke: rgba(244, 239, 230, .35); stroke-width: 1.6; stroke-dasharray: 5 6; }
.pl-x { opacity: 0; transition: opacity .5s; }
.pl-x.is-on { opacity: 1; }
.pl-x path { fill: none; stroke: var(--oak-l); stroke-width: 3; stroke-linecap: round; }
.pl-x .pl-gablewall { stroke: var(--paper); stroke-width: 2.4; }
.pl-guide { stroke: rgba(201, 148, 89, .8); stroke-width: 1.4; stroke-dasharray: 4 4; }
.pl-guide-t { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 17px; letter-spacing: .08em; fill: var(--oak-l); }
.pl-dim, .pl-dim-cap, .pl-dim-top { stroke: var(--oak-l); stroke-width: 2; }
.planner__out { background: rgba(244, 239, 230, .06); border: 1px solid rgba(244, 239, 230, .14); border-radius: var(--r); padding: 28px; }
.planner__type { font-size: 1.6rem; margin-bottom: 12px; color: var(--paper); }
.planner__out p { color: rgba(244, 239, 230, .82); font-size: 1rem; }
.verdict { padding-left: 14px; border-left: 4px solid var(--oak); }
.verdict--good { border-color: #9DB05A; }
.verdict--maybe { border-color: var(--oak); }
.verdict--tight { border-color: #D9785B; }
.verdict b { color: var(--paper); }

/* ---------- lofts filmstrip ---------- */
.lofts { background: var(--white); padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px); overflow: clip; }
.lofts__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.lofts__head .sec-head { flex: 1; margin-bottom: 40px; }
.lofts__ctrl { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; flex: none; }
.lofts__count { font-family: var(--display); font-stretch: 75%; font-weight: 600; letter-spacing: .1em; margin-right: 8px; font-variant-numeric: tabular-nums; }
.lofts__count b { font-size: 1.4rem; color: var(--oak-deep); }
.film { overflow-x: clip; cursor: grab; touch-action: pan-y; padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); }
.film:active { cursor: grabbing; }
.film__track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.film__item { position: relative; width: clamp(260px, 26vw, 400px); flex: none; }
.film__img { border-radius: var(--r); overflow: hidden; height: min(62vh, 540px); background: var(--paper); }
.film__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1s var(--ease); -webkit-user-drag: none; user-select: none; }
.film__item:hover .film__img img { transform: scale(1.05); }
.film__item figcaption { margin-top: 12px; font-weight: 600; display: flex; gap: 10px; }
.film__item figcaption span { font-family: var(--display); font-stretch: 75%; color: var(--oak-deep); }
.lofts__foot { display: flex; align-items: center; gap: 32px; margin-top: 36px; }
.film__progress { flex: 1; height: 3px; background: rgba(44, 53, 60, .12); }
.film__progress i { display: block; height: 100%; width: 100%; background: var(--moss); transform-origin: left; transform: scaleX(.11); }

/* ---------- areas ---------- */
.areas { background: var(--sky); padding: clamp(80px, 9vw, 130px) 0; overflow: clip; }
.areas__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.areas h2 { margin-bottom: .45em; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 30px; }
.town { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid rgba(44, 53, 60, .3); background: var(--white); font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.town:hover, .town.is-on { background: var(--moss); border-color: var(--moss); color: var(--white); }
.map { width: 100%; height: auto; overflow: visible; }
.map__land { fill: var(--white); }
.map__land-grid { fill: url(#map-grid); pointer-events: none; }
.map__inland { fill: none; stroke: rgba(44, 53, 60, .35); stroke-width: 1.4; stroke-dasharray: 3 6; }
.map__route-dash { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 1 12; stroke-linecap: round; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -13; } }
.map__coast { fill: none; stroke: var(--slate); stroke-width: 2.4; stroke-linejoin: round; }
.map__sea path { fill: none; stroke: rgba(44, 53, 60, .25); stroke-width: 1.5; stroke-linecap: round; }
.map__route { fill: none; stroke: var(--oak); stroke-width: 4; stroke-linecap: round; opacity: .75; }
.map__dot { fill: var(--moss); stroke: var(--white); stroke-width: 3; transition: fill .3s; }
.map__pulse { fill: rgba(85, 98, 42, .3); transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.map__pin:nth-of-type(2) .map__pulse { animation-delay: .5s; } .map__pin:nth-of-type(3) .map__pulse { animation-delay: 1s; } .map__pin:nth-of-type(4) .map__pulse { animation-delay: 1.5s; } .map__pin:nth-of-type(5) .map__pulse { animation-delay: 2s; }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.map__pin.is-on .map__dot { fill: var(--oak-deep); }
.map__label { font-family: var(--display); font-stretch: 90%; font-weight: 700; font-size: 16px; fill: var(--text); paint-order: stroke; stroke: var(--white); stroke-width: 4px; transition: fill .3s; }
.map__label.is-on { fill: var(--oak-deep); }
.map__sea-t { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; fill: rgba(44, 53, 60, .55); }

/* ---------- enquiry band ---------- */
.enquire { color: var(--white); padding: clamp(80px, 9vw, 130px) 0; overflow: clip; background: var(--slate); }
.enquire__bg { position: absolute; inset: 0; }
.enquire__bg img { width: 100%; height: 100%; object-fit: cover; }
.enquire__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(21, 27, 32, .9) 0%, rgba(21, 27, 32, .6) 48%, rgba(85, 98, 42, .38) 100%); }
.enquire__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.enquire h2 { margin-bottom: .45em; }
.enquire .lede { color: rgba(255, 255, 255, .85); }
.enquire__tips { display: grid; gap: 10px; margin-top: 18px; }
.enquire__tips li { position: relative; padding-left: 30px; font-weight: 500; }
.enquire__tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px; border-left: 2px solid var(--oak-l); border-bottom: 2px solid var(--oak-l); transform: rotate(-45deg); }
.enquire__card { background: var(--paper); color: var(--text); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; scroll-margin-top: 110px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field__l { font-weight: 600; font-size: .95rem; }
.field__l em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid rgba(44, 53, 60, .22); border-radius: calc(var(--r) - 2px); background: var(--white); font: inherit; font-size: 1rem; color: var(--text); transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C353C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(85, 98, 42, .18); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form[hidden] { display: none; }
.form__note { margin: 0; font-size: .92rem; color: var(--muted); }
.form__note a { color: var(--text); }
.form__status { padding: 14px 16px; border-radius: calc(var(--r) - 2px); font-weight: 600; margin: 0; }
.form__status--ok { background: var(--moss-tint); color: var(--moss-d); }
.form__status--err { background: #F7E1D9; color: #8A3A20; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--ink); color: rgba(244, 239, 230, .82); padding: 0 0 28px; overflow: clip; }
.site-foot__ridge { width: 100%; height: 90px; display: block; }
.ridge-line { fill: none; stroke: var(--oak); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ridge-dash { fill: none; stroke: rgba(244, 239, 230, .25); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.site-foot__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 30px; padding-bottom: 50px; }
.site-foot__brand img { height: 70px; width: auto; margin-bottom: 20px; }
.site-foot__brand p { max-width: 46ch; }
.site-foot__h { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-l); margin-bottom: 16px; }
.site-foot__col li { padding: 0; min-height: 34px; }
.site-foot__col a { text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; padding: 4px 0; background: linear-gradient(var(--oak), var(--oak)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .3s; }
.site-foot__col a:hover { background-size: 100% 2px; color: var(--white); }
.site-foot__marquee { border-top: 1px solid rgba(244, 239, 230, .1); border-bottom: 1px solid rgba(244, 239, 230, .1); padding: 16px 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 50s linear infinite; }
.marquee__track span { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: rgba(244, 239, 230, .46); padding: 0 28px; }
.marquee__track span:nth-child(5n) { color: var(--oak); }
@keyframes marquee { to { transform: translateX(-50%); } }
.site-foot__base { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 24px; font-size: .95rem; }
.site-foot__base p { margin: 0; }
.site-foot__base p:first-child { margin-right: auto; }
.site-foot__base a { color: var(--white); text-decoration-color: var(--oak); text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 8px; font-size: .94rem; }
  .site-head__in { gap: 16px; }
  .brand__full { display: none; }
  .brand__mark { display: block; }
}
@media (max-width: 980px) {
  .nav, .site-head__cta { display: none; }
  .burger { display: block; }
  .brand__full { display: block; }
  .brand__mark { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-rows: auto auto; }
  .svc--big { grid-column: 1 / -1; grid-row: auto; }
  .svc:not(.svc--big) { flex-direction: column; }
  .svc:not(.svc--big) .svc__img { width: 100%; aspect-ratio: 16 / 10; }
  .svc--big .svc__img { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .why__grid, .areas__grid, .enquire__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr 1fr 1fr; }
  .planner { grid-template-columns: 1fr 1fr; }
  .planner__draw { grid-column: 1 / -1; grid-row: 1; max-width: 520px; justify-self: center; width: 100%; }
  .site-foot__in { grid-template-columns: 1fr 1fr 1fr; }
  .site-foot__brand { grid-column: 1 / -1; }
  .hero__house { right: 50%; transform: translateX(50%); height: min(46svh, 440px); bottom: calc(8vh - 1%); }
  .hero__in { justify-content: flex-start; padding-top: calc(var(--head-h) + 6vh); }
  .hero__title, .hero__lede { max-width: 640px; }
  .stage { display: none; }
}
@media (max-width: 700px) {
  :root { --head-h: 76px; }
  .site-head.is-stuck { --head-h: 66px; }
  .brand img { height: 54px; }
  .site-head.is-stuck .brand img { height: 48px; }
  .brand__full { display: none; }
  .brand__mark { display: block; }
  h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero { min-height: 620px; }
  .hero__in { padding-top: calc(var(--head-h) + 22px); }
  .hero__title { font-size: clamp(2.05rem, 9.4vw, 2.6rem); max-width: none; }
  .hero__lede { font-size: 1.02rem; max-width: none; margin-bottom: 1.3em; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { min-height: 50px; padding: .7em 1.1em; font-size: .98rem; }
  .hero__house { height: min(45svh, 400px); }
  .hero__towns { font-size: .74rem; font-stretch: 72%; gap: 4px 7px; flex-wrap: nowrap; letter-spacing: .02em; }
  .street--far { height: 20vh; }
  .street--near { height: 16vh; }
  .svc-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .svc:not(.svc--big) { flex-direction: column; }
  .svc:not(.svc--big) .svc__img { width: 100%; aspect-ratio: 16 / 9; }
  .why__list { grid-template-columns: 1fr; gap: 16px; }
  .planner { grid-template-columns: 1fr; }
  .lofts__head { flex-direction: column; align-items: stretch; gap: 0; }
  .lofts__ctrl { margin-bottom: 24px; }
  .film__item { width: 74vw; }
  .film__img { height: min(56vh, 440px); }
  .form__row { grid-template-columns: 1fr; }
  .site-foot__in { grid-template-columns: 1fr 1fr; }
  .site-foot__col:last-child { grid-column: 1 / -1; }
  .d2d__pin { padding-top: calc(var(--head-h) + 8px); padding-bottom: 16px; align-items: flex-start; }
  .d2d__grid { grid-template-columns: 1fr; gap: 16px; }
  .d2d__frame { order: -1; height: min(40svh, 380px); justify-self: center; }
  .d2d__frame::before { inset: -8px 8px 8px -8px; }
  .d2d__text h2 { font-size: 1.55rem; margin-bottom: .3em; }
  .d2d__intro { display: none; }
  .steps { gap: 0; }
  .step { padding: 6px 0; grid-template-columns: 34px 1fr; gap: 10px; }
  .step__n { width: 30px; height: 30px; font-size: .82rem; }
  .step h3 { font-size: 1rem; }
  .step p { display: none; }
  .step.is-on p { display: block; font-size: .95rem; }
  .note-t { font-size: .875rem; padding: 3px 7px; letter-spacing: .02em; }
  .d2d__stamp { font-size: 1.1rem; right: 12px; top: 12px; }
  .house .h-label, .house .h-dim, .map__sea-t, .pl-guide-t { display: none; }
  .map__label { font-size: 23px; opacity: 0; transition: opacity .3s; }
  .map__label.is-on { opacity: 1; }
}
@media (max-width: 420px) {
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* reduced motion: everything visible and still */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .why__lines, .map__pulse, .map__route-dash { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* no-JS and reduced motion: the drawing-to-done steps all read at once */
.no-js .step, .rm .step { opacity: 1; }
.no-js .step p, .rm .step p { display: block; }

/* ---------- 404 ---------- */
.nf { background: var(--paper); padding: calc(var(--head-h) + clamp(48px, 7vw, 100px)) 0 clamp(64px, 8vw, 110px); min-height: 60vh; background-image: linear-gradient(rgba(44, 53, 60, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 53, 60, .05) 1px, transparent 1px); background-size: 28px 28px; }
.nf__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.nf h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); margin-bottom: .4em; }
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; }
.nf__house { width: 100%; max-height: 50vh; }
.nf__l { fill: none; stroke: var(--slate); stroke-width: 3; stroke-dasharray: 10 9; stroke-linecap: round; animation: march 2.4s linear infinite; }
@media (max-width: 700px) { .nf__grid { grid-template-columns: 1fr; } .nf__house { max-height: 30vh; } }
@media (prefers-reduced-motion: reduce) { .nf__l { animation: none; } }
