@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #f5f6f6;
  --surface: #e9ebec;
  --ink: #18212b;
  --muted: #485460;
  --accent: #364f68;
  --accent-dark: #253d55;
  --rule: #c9cfd5;
  --outline: #77828d;
  --accent-light: #c1d4e7;
  --header: 75px;
  --gutter: clamp(24px, 5.2vw, 83px);
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.55 'Instrument Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; }
body, button, select, textarea, input { font-family: 'Instrument Sans', Arial, sans-serif; }
button, input, select, textarea { font-size: 1rem; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.section-space { padding-block: clamp(76px, 9vw, 148px); }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: .72rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.accent-line { display: inline-block; flex: 0 0 20px; height: 2px; background: var(--accent); }
h2 { font-size: clamp(2.55rem, 5.1vw, 5.2rem); line-height: .98; letter-spacing: -.062em; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 20px; padding: 12px 19px; border: 1px solid transparent; background: var(--accent); color: #fff; font-size: .94rem; font-weight: 600; line-height: 1.25; text-align: left; text-decoration: none; transition: background 150ms, color 150ms, border-color 150ms; }
.button:hover { background: var(--accent-dark); }
.button span, .text-link span { font-size: 1.1em; }
.arrow-up-right { position: relative; display: inline-block; flex: 0 0 .68em; width: .68em; height: .68em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.arrow-up-right::before { position: absolute; content: ''; right: 0; top: 0; width: .82em; border-top: 1.5px solid currentColor; transform: rotate(-45deg); transform-origin: right top; }
.button-small { min-height: 42px; padding: 9px 13px; gap: 10px; font-size: .83rem; }
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: #dce4ec; }
.button-outline { border-color: var(--outline); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 11px; align-self: flex-start; padding-block: 3px; border-bottom: 1px solid currentColor; font-size: .91rem; font-weight: 700; line-height: 1.35; text-decoration: none; transition: color 150ms; }
.text-link:hover { color: var(--accent); }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: calc(var(--header) - 1px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; font-size: 1.27rem; font-weight: 700; letter-spacing: -.072em; text-decoration: none; white-space: nowrap; line-height: 1; }
.brand img { flex: 0 0 auto; }
#main-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
#main-nav a { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
#main-nav a:hover { color: var(--accent); }
.menu-toggle { display: none; }

/* Full-width scroll sequence with copy layered over the same scene. */
.hero { --progress: 0; --tone: 0; --grid-strength: 1; position: relative; border-bottom: 1px solid var(--rule); }
.hero.can-scrub::after { display: block; height: clamp(2550px, 475svh, 4420px); content: ''; }
.hero-screen { position: relative; isolation: isolate; overflow: clip; min-height: max(490px, calc(100svh - var(--header))); background: #e9ebec; }
.hero.can-scrub .hero-screen { position: sticky; top: var(--header); }
.hero-screen::before { position: absolute; z-index: -3; inset: 0; content: ''; background: radial-gradient(ellipse at 58% 42%, #f5f6f6 9%, #c9ced2 100%); opacity: var(--tone); }
.hero-grid-overlay { position: absolute; z-index: -2; inset: 0; pointer-events: none; background-image: linear-gradient(to right, #42566a19 1px, transparent 1px), linear-gradient(to bottom, #42566a19 1px, transparent 1px); background-size: 36px 36px; background-position: center; opacity: var(--grid-strength); mask-image: radial-gradient(ellipse at 64% 49%, #000 25%, transparent 90%); }
.hero-model { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-fallback { position: absolute; right: 5%; top: 15%; width: min(64%, 990px); max-height: 74%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.hero-model canvas { display: none; width: 100%; height: 100%; }
.hero.is-animated .hero-model canvas { display: block; }
.hero.is-animated .hero-fallback { display: none; }
.hero-before { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #36404a; opacity: var(--before-opacity, 1); }
.hero-before img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; transform: scale(var(--before-scale, 1)); }
.hero-before::after { position: absolute; inset: 0; content: ''; background: linear-gradient(85deg, #111923c4, #11192372 37%, transparent 78%), linear-gradient(0deg, #111923b3, transparent 24%); }
.hero-interior { position: absolute; inset: 0; z-index: 0; visibility: hidden; overflow: hidden; pointer-events: none; opacity: var(--photo-opacity, 0); clip-path: inset(var(--reveal-top, 50%) var(--reveal-right, 50%) var(--reveal-bottom, 50%) var(--reveal-left, 50%)); }
@supports (mask-composite: intersect) {
  .hero-interior {
    --feather: var(--reveal-feather, 0px);
    --top: var(--reveal-top, 50%);
    --right: calc(100% - var(--reveal-right, 50%));
    --bottom: calc(100% - var(--reveal-bottom, 50%));
    --left: var(--reveal-left, 50%);
    mask-image:
      linear-gradient(90deg, transparent var(--left), #000 calc(var(--left) + var(--feather)), #000 calc(var(--right) - var(--feather)), transparent var(--right)),
      linear-gradient(180deg, transparent var(--top), #000 calc(var(--top) + var(--feather)), #000 calc(var(--bottom) - var(--feather)), transparent var(--bottom));
    mask-composite: intersect;
  }
}
.hero.is-animated .hero-interior { visibility: visible; }
.hero-interior img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--interior-scale, 1)); }
.hero-interior .hero-work-shot { position: absolute; inset: 0; transform: scale(var(--interior-scale, 1)); }
.hero-interior .hero-work-shot img { object-position: var(--work-position, 50%) center; transform: none; }
.hero-radiator-rough-in, .hero-work-shot[data-kitchen-rough-in]::after { pointer-events: none; }
.hero-work-shot[data-kitchen-rough-in]::after {
  position: absolute;
  inset: 0;
  background: url('assets/kitchen-rough-in.webp') var(--work-position, 50%) center / cover no-repeat;
  content: '';
}
.hero-interior .hero-interior-wiring { opacity: var(--wiring-room, 0); }
.hero-interior .hero-interior-plumbing { opacity: var(--plumbing-room, 0); }
.hero-interior .hero-interior-plaster { opacity: var(--plaster-room, 0); }
.hero-interior .hero-interior-painting { opacity: var(--painting-room, 0); }
.hero-interior .hero-interior-flooring { opacity: var(--flooring-room, 0); }
.hero-interior .hero-interior-fitout { position: absolute; inset: 0; opacity: var(--fitout-room, 0); }
.hero-interior .hero-interior-final { position: absolute; inset: 0; opacity: var(--finished-room, 0); }
.hero-interior :is(.hero-interior-fitout, .hero-interior-final) img { object-position: 64% center; }
@media (max-width: 600px) and (orientation: portrait), (max-aspect-ratio: 3/2) {
  .hero-interior :is(.hero-interior-fitout, .hero-interior-final) img { object-position: 82% center; }
}
.hero-interior::before, .hero-interior::after { position: absolute; z-index: 1; inset: 0; content: ''; }
.hero-interior::before { background: linear-gradient(0deg, #101923bd, transparent 31%); }
.hero-interior::after { background: linear-gradient(85deg, #141a21ad, #141a2147 40%, transparent 74%); opacity: var(--ending-opacity, 0); }
.hero-layout { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-layout a, .hero-layout button { pointer-events: auto; }
.hero-chapter { position: absolute; left: 0; }
.hero-opening { top: clamp(32px, 7.3vh, 91px); opacity: var(--opening-opacity, 1); transform: translateY(var(--opening-rise, 0)); }
.hero-chapter h1, .hero-title { margin: 15px 0 18px; font-size: clamp(3.4rem, 6.3vw, 7.35rem); font-weight: 600; line-height: .89; letter-spacing: -.077em; }
.hero-chapter h1 { font-size: clamp(3.4rem, 5.9vw, 7rem); text-wrap: nowrap; }
.hero-chapter h1 span, .hero-title span { color: var(--accent); }
.hero-lead { max-width: 30ch; color: var(--muted); font-size: clamp(.96rem, 1.28vw, 1.16rem); }
.hero:has(.hero-before) .hero-opening { color: var(--paper); }
.hero:has(.hero-before) .hero-opening .accent-line { background: var(--accent-light); }
.hero:has(.hero-before) .hero-opening h1 span { color: var(--accent-light); }
.hero:has(.hero-before) .hero-opening .hero-lead { color: #edf0f3; }
.hero-middle { position: absolute; display: flex; align-items: center; gap: 10px; bottom: clamp(78px, 12vh, 123px); left: 0; opacity: var(--caption-opacity, 0); padding: 8px 12px; background: #f4f5f5ef; border: 1px solid var(--rule); font-size: .83rem; font-weight: 700; }
.hero-ending { bottom: clamp(91px, 14vh, 145px); color: var(--paper); opacity: var(--ending-opacity, 0); transform: translateY(var(--ending-rise, 25px)); }
.hero-ending .accent-line { background: var(--accent-light); }
.hero-ending .hero-title span { color: var(--accent-light); }
.hero-ending a { visibility: hidden; }
.hero.has-ending .hero-ending a { visibility: visible; }
.hero-ending :focus-visible { outline-color: #fff; }
.hero-foot { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 18px; min-height: 60px; padding-block: 13px; color: var(--ink); border-top: 1px solid #42566a45; font-size: .77rem; }
.hero:is(.has-before, .is-interior) .hero-foot, .hero:not(.is-animated):has(.hero-before) .hero-foot { color: var(--paper); border-color: #f5f6f663; }
.hero:is(.has-before, .is-interior) .hero-foot :focus-visible, .hero:not(.is-animated):has(.hero-before) .hero-foot :focus-visible { outline-color: var(--paper); }
.hero-steps, .hero-scroll-hint { display: none; }
.hero.is-animated:not(.can-scrub) .hero-steps { display: flex; align-items: center; gap: 5px; }
.hero-steps button { min-height: 38px; padding: 5px 10px; border: 1px solid transparent; color: inherit; background: transparent; font-size: .76rem; font-weight: 700; }
.hero-steps button:hover { border-color: currentColor; }
.hero-steps button[aria-pressed='true'] { color: var(--paper); background: var(--ink); }
.hero:is(.has-before, .is-interior) .hero-steps button[aria-pressed='true'] { color: var(--ink); background: var(--paper); }
.hero.can-scrub .hero-scroll-hint { display: inline-flex; align-items: center; gap: 9px; opacity: var(--hint-opacity, 1); }
.hint-arrow { color: var(--accent); font-size: 1.18em; }
.hero.has-before .hint-arrow { color: var(--accent-light); }
.hero-caption { margin-left: auto; }
.hero-skip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-underline-offset: 4px; }
.hero.can-scrub .hero-skip { position: absolute; left: 50%; transform: translateX(-50%); }
.hero-progress { position: absolute; z-index: 3; inset: auto 0 0; height: 2px; pointer-events: none; }
.hero-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(var(--progress)); transform-origin: left center; }
.hero:is(.has-before, .is-interior) .hero-progress span { background: var(--accent-light); }
.flip-photo figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; color: var(--muted); font-size: .76rem; }

.section-intro h2 { margin-top: 16px; }
.services-list { margin-top: 42px; border-top: 1px solid var(--rule); }
.service-row { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr) 52px; align-items: center; gap: 27px; border-bottom: 1px solid var(--rule); padding-block: clamp(24px, 3.2vw, 43px); }
.service-row h3 { font-size: clamp(1.62rem, 3vw, 3.12rem); line-height: 1.04; letter-spacing: -.052em; }
.service-row p { max-width: 48ch; color: var(--muted); }
.round-link { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--outline); border-radius: 50%; text-decoration: none; font-size: 1.45rem; line-height: 1; transition: background 150ms, color 150ms, border-color 150ms; }
.round-link:hover { background: var(--accent); color: white; border-color: var(--accent); }

.flip { background: var(--ink); color: var(--paper); padding-block: clamp(47px, 7.2vw, 99px); }
.flip-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 7vw, 106px); align-items: center; }
.flip-photo img { aspect-ratio: 1.58; width: 100%; height: auto; object-fit: cover; object-position: 35% center; }
.flip-photo figcaption { color: #c6d0d9; }
.flip-copy h2 { margin-block: 18px 20px; font-size: clamp(2.4rem, 4.4vw, 4.8rem); text-wrap: initial; }
.flip-copy > p:not(.eyebrow), .trade p:not(.eyebrow) { max-width: 44ch; color: #d5dce3; }
.flip-copy .text-link { margin-top: 25px; }
.flip-copy .text-link:hover { color: var(--accent-light); }
.flip .accent-line { background: var(--accent-light); }
.flip :focus-visible { outline-color: var(--accent-light); }

.guide-grid, .contact-grid, .trade-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 7vw, 98px); }
.guide h2, .trade h2, .contact h2 { margin-top: 17px; font-size: clamp(2.45rem, 4.65vw, 4.95rem); text-wrap: initial; }
.questions { border-top: 1px solid var(--rule); }
.questions details { border-bottom: 1px solid var(--rule); padding-block: 18px; }
.questions summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(1.02rem, 1.6vw, 1.32rem); line-height: 1.3; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; color: var(--accent); font-size: 1.25em; line-height: 1; }
.questions details[open] summary::after { content: '−'; }
.questions p { padding-top: 12px; max-width: 54ch; color: var(--muted); }

.trade { padding-block: clamp(43px, 6vw, 86px); background: var(--accent); color: var(--paper); }
.trade-grid { align-items: center; }
.trade .accent-line { background: var(--accent-light); }
.trade p:not(.eyebrow) { color: #edf2f7; }
.trade .button { margin-top: 22px; }
.trade :focus-visible { outline-color: white; }

.contact h2 { margin-bottom: 20px; }
.contact h2 + p { color: var(--muted); max-width: 38ch; }
.contact address { display: grid; justify-items: start; gap: 4px; margin-top: 25px; font-style: normal; }
.contact address a { text-decoration-color: var(--outline); text-underline-offset: 3px; }
.contact address a:hover { color: var(--accent); }
.contact address span { color: var(--muted); }
.contact-form { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3.2vw, 43px); background: var(--surface); }
.form-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 700; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--outline); border-radius: 0; padding: 9px 10px; color: var(--ink); background: var(--paper); }
.contact-form textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.form-note, .form-status { font-size: .81rem; color: var(--muted); }
.form-status:empty { display: none; }
.site-footer { padding-block: 26px; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-inner > span { color: var(--muted); font-size: .83rem; }
.footer-inner .text-link { align-self: center; }

@media (max-width: 1060px) {
  .header-inner { gap: 13px; }
  #main-nav { gap: 13px; }
  #main-nav a { font-size: .79rem; }
}
@media (max-width: 790px) {
  :root { --header: 62px; }
  .site-header .brand img { width: 31px; height: 31px; }
  .header-cta { margin-left: auto; }
  #main-nav { position: absolute; inset: 100% 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 14px; border-bottom: 1px solid var(--rule); background: var(--paper); }
  #main-nav.is-open { display: flex; }
  #main-nav a { min-height: 46px; display: flex; align-items: center; border-bottom: 1px solid var(--rule); font-size: .94rem; }
  #main-nav a:last-child { border: 0; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0; background: transparent; color: var(--ink); border: 0; font-size: .82rem; font-weight: 700; }
  .hero.can-scrub::after { height: clamp(2340px, 495svh, 3980px); }
  .hero-screen { min-height: max(450px, calc(100svh - var(--header))); }
  .hero-opening { top: clamp(24px, 5vh, 54px); }
  .hero-chapter h1, .hero-title { font-size: clamp(2.65rem, 9.2vw, 5rem); margin: 12px 0 14px; }
  .hero-lead { max-width: 34ch; }
  .hero-fallback { top: 37%; left: 5%; width: 90%; max-height: 49%; }
  .hero-before img { object-position: var(--before-focus, 77%) center; }
  .hero-before::after { background: linear-gradient(180deg, #111923cb, #1119236e 31%, transparent 57%), linear-gradient(0deg, #111923c4, transparent 29%); }
  .hero-interior img { object-position: 37% center; }
  .hero-interior .hero-interior-rough { object-position: 26% center; }
  .hero-interior .hero-interior-wiring { object-position: 73% center; }
  .hero-interior .hero-work-shot { --work-position: 37%; }
  .hero-interior .hero-interior-plaster { --work-position: 48%; }
  .hero-interior .hero-interior-painting { --work-position: 14%; height: min(72svh, 166vw); top: 50%; transform: translateY(-50%) scale(var(--interior-scale, 1)); }
  .hero-interior .hero-interior-flooring { --work-position: 46%; }
  .hero-interior::after { background: linear-gradient(0deg, #141a21df, #141a219c 36%, #141a2133 63%, transparent 84%); }
  .hero-ending { bottom: 89px; }
  .hero-foot { gap: 8px; min-height: 51px; padding-block: 7px; font-size: .71rem; }
  .hero.can-scrub .hero-skip { position: static; margin-left: auto; transform: none; }
  .hero-caption { display: none; }
  .guide-grid, .contact-grid, .trade-grid { grid-template-columns: 1fr; }
  .flip-grid { gap: 26px; }
  .flip-copy h2 { font-size: clamp(2rem, 6.2vw, 3.5rem); }
}
@media (min-width: 791px) and (pointer: coarse) {
  .hero.can-scrub::after { height: clamp(2680px, 510svh, 4680px); }
}
@media (max-width: 530px) {
  :root { --gutter: 20px; }
  .brand { font-size: 1.03rem; }
  .header-cta { min-height: 38px; font-size: .75rem; padding-inline: 8px; gap: 5px; }
  .service-row { grid-template-columns: minmax(0, 1fr) 46px; gap: 8px 14px; }
  .service-row p { grid-column: 1; }
  .round-link { grid-column: 2; grid-row: 1 / 3; width: 44px; height: 44px; }
  .flip-grid { grid-template-columns: 1fr; }
  .flip-photo img { aspect-ratio: 1.77; }
  .form-top { grid-template-columns: 1fr; }
  .footer-inner > span { width: 100%; order: 2; }
}
@media (max-height: 645px) and (max-width: 790px) {
  .hero-opening { top: 21px; }
  .hero-chapter h1, .hero-title { font-size: clamp(2.35rem, 8.2vw, 3.5rem); }
}
@media (max-height: 490px) and (min-width: 791px) {
  .hero-screen { min-height: 455px; }
  .hero-chapter h1, .hero-title { font-size: clamp(3.1rem, 5.6vw, 5.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
@media (max-width: 360px) {
  .header-inner { gap: 9px; }
  .site-header .brand { font-size: .94rem; gap: 4px; }
  .site-header .brand img { width: 26px; height: 26px; }
  .header-cta { white-space: nowrap; font-size: .7rem; padding-inline: 6px; }
  .header-cta .arrow-up-right { display: none; }
  .hero-chapter h1, .hero-title { font-size: clamp(2.32rem, 10vw, 2.95rem); }
  .menu-toggle { font-size: .75rem; }
}
