/* Bargara Homes: their teal glowing on near-black. Colours measured from their logo and their own site. */
:root {
  --ink: #081f24;          /* their site's darkest teal */
  --ink-2: #0c292f;
  --ink-3: #123840;
  --line: rgba(186, 214, 216, .16);
  --teal: #009cb4;         /* logo */
  --teal-hi: #34c4d9;      /* the logo teal, lit */
  --teal-deep: #006d7f;    /* their site's buttons */
  --roofline: #bababa;     /* the grey roofline in the logo */
  --ben: #f6a03b;          /* "by Ben Warren" in the logo */
  --text: #edf5f4;
  --soft: #a9c0c1;
  --paper: #f4f6f3;
  --paper-ink: #0c292f;
  --r: 22px;
  --r-sm: 14px;
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT", "Arial Rounded MT Bold", "Nunito", "Quicksand", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .display { font-family: var(--round); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 9.2vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.eyebrow { font: 700 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-hi); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 8px; flex: none; background: url("/img/roofline.svg") no-repeat center / contain; }
.wry { font-family: var(--round); color: var(--ben); font-size: 1rem; margin-top: 10px; }
.lede { font-size: 1.15rem; color: var(--soft); max-width: 38ch; }
.muted { color: var(--soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--paper-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ben); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 1rem/1 var(--round); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.btn:active { transform: scale(.97); }
.btn-call { background: var(--teal); color: #fff; box-shadow: 0 0 0 0 rgba(52, 196, 217, .0), 0 10px 30px -10px rgba(0, 156, 180, .8); }
.btn-call:hover { background: #00aac4; box-shadow: 0 0 0 6px rgba(52, 196, 217, .16), 0 12px 34px -10px rgba(0, 156, 180, .9); }
.btn-ghost { background: rgba(237, 245, 244, .08); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(237, 245, 244, .3); }
.btn-ghost:hover { background: rgba(237, 245, 244, .14); }
.btn-light { background: var(--paper); color: var(--paper-ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-arrow { font: 700 1rem var(--round); color: var(--teal-hi); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head); display: flex; align-items: center; transition: transform .35s var(--ease), background .35s, box-shadow .35s; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-head.is-solid { background: rgba(8, 31, 36, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.site-head.is-hidden { transform: translateY(-100%); }
.brand { display: block; width: 92px; flex: none; }
.brand img { width: 92px; height: auto; }
.nav-links { display: none; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font: 600 .95rem var(--round); color: var(--soft); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(237, 245, 244, .08); }
.head-call { display: none; }
.menu-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(237, 245, 244, .1); display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 39; background: var(--ink); padding: calc(var(--head) + 20px) 16px 120px; display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font: 700 1.9rem/1.15 var(--round); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu small { display: block; font: 500 .9rem var(--sans); color: var(--soft); margin-top: 2px; }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .head-call { display: inline-flex; min-height: 44px; padding: 0 18px; }
  .menu-btn, .menu { display: none; }
  .brand, .brand img { width: 104px; }
}

/* ---------- phone bar: the number never leaves the screen */
.phone-bar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(12, 41, 47, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), padding .3s; }
.phone-bar a, .phone-bar button { flex: 1; min-height: 48px; justify-content: center; padding: 0 12px; font-size: .95rem; }
.phone-bar .btn-ghost { box-shadow: none; }
.phone-bar.is-compact { padding: 6px; }
.phone-bar.is-compact .btn-ghost { flex: 0 1 auto; }
.phone-bar.is-compact .label-long { display: none; }
@media (min-width: 980px) { .phone-bar { left: auto; right: 24px; bottom: 24px; width: 360px; } }
body { padding-bottom: 92px; }

/* ---------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--head) + 24px) 0 116px; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 60% 60%; animation: drift 26s var(--ease) both alternate infinite; }
@keyframes drift { from { transform: scale(1.12) translate3d(1.5%, 0, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 31, 36, .55) 0%, rgba(8, 31, 36, .12) 32%, rgba(8, 31, 36, .62) 62%, var(--ink) 100%), radial-gradient(120% 70% at 20% 100%, rgba(8, 31, 36, .9), transparent 70%); }
.hero .promise { max-width: 15ch; }
.hero .promise em { font-style: normal; color: var(--teal-hi); text-shadow: 0 0 34px rgba(52, 196, 217, .45); }
.hero .lede { margin: 18px 0 26px; color: #d3e2e2; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { font: 600 .82rem/1 var(--sans); padding: 9px 12px; border-radius: 999px; background: rgba(8, 31, 36, .55); box-shadow: inset 0 0 0 1px var(--line); color: #d5e4e4; backdrop-filter: blur(6px); }
.facts b { color: var(--teal-hi); font-weight: 700; }
.hero-credit { position: absolute; right: 16px; bottom: 100px; font-size: .7rem; color: rgba(237, 245, 244, .55); writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---------- the deck: sections are cards that stack and settle */
.deck { position: relative; }
.card { position: relative; background: var(--ink-2); border-radius: var(--r) var(--r) 0 0; padding: 48px 0 56px; margin-top: -28px; box-shadow: 0 -24px 50px -20px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(237, 245, 244, .06); }
.card:nth-child(even) { background: var(--ink); }
.card.light { background: var(--paper); color: var(--paper-ink); }
.card.light .muted, .card.light .lede { color: #3e5a5e; }
.card.light .eyebrow { color: var(--teal-deep); }
.card.light .link-arrow { color: var(--teal-deep); }
.card.light .wry { color: #a35a0a; }
.card.light .btn-ghost { background: rgba(12, 41, 47, .05); color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px rgba(12, 41, 47, .32); }
.card-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes settle { from { transform: translateY(70px) scale(.965); border-radius: 40px 40px 0 0; } to { transform: none; } }
  }
}

/* ---------- the build: six stages on one block */
.build { display: grid; gap: 18px; }
.stage-view { position: relative; aspect-ratio: 5 / 3; margin: -10px -8px 0; }
.stage-view::before { content: ""; position: absolute; inset: 18% 6% 4%; background: radial-gradient(closest-side, rgba(0, 156, 180, .38), transparent); filter: blur(28px); }
.stage-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); transform: translateY(6px) scale(.985); }
.stage-view img.is-on { opacity: 1; transform: none; }
.stage-view img:last-child { opacity: 1; transform: none; }
.js .stage-view img:last-child:not(.is-on) { opacity: 0; }
.stage-tag { position: absolute; left: 8px; top: 8px; font: 700 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.stage-tag b { color: var(--teal-hi); font-size: 1.6rem; font-family: var(--round); letter-spacing: 0; margin-right: 6px; vertical-align: -3px; }
.roofline-track { width: 100%; height: 44px; display: block; margin: 4px 0 6px; }
.roofline-track .base { stroke: rgba(186, 186, 186, .28); }
.roofline-track .fill { stroke: var(--teal-hi); filter: drop-shadow(0 0 6px rgba(52, 196, 217, .6)); transition: stroke-dashoffset .7s var(--ease); }
.roofline-track circle { fill: var(--ink-2); stroke: rgba(186, 186, 186, .5); stroke-width: 2; cursor: pointer; transition: fill .3s, stroke .3s; }
.roofline-track circle.is-done { fill: var(--teal-hi); stroke: var(--teal-hi); }
.stages { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none; list-style: none; }
.stages::-webkit-scrollbar { display: none; }
.stages li { flex: 0 0 82%; scroll-snap-align: center; background: var(--ink-3); border-radius: var(--r-sm); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s; }
.stages li.is-on { background: #14424b; box-shadow: inset 0 0 0 1.5px rgba(52, 196, 217, .55); }
.stages .n { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-hi); }
.stages h3 { margin: 6px 0 8px; }
.stages p { margin: 0; font-size: .98rem; color: var(--soft); }
.stages .wry { font-size: .92rem; }
@media (min-width: 900px) {
  .build { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 40px; }
  .stage-view { margin: 0; }
  .stages { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 8px; }
  .stages li { flex: none; padding: 14px 18px; cursor: pointer; }
  .stages li:not(.is-on) p { display: none; }
}

/* ---------- plan finder */
.finder-filters { display: grid; gap: 14px; margin-bottom: 18px; }
.filter { border: 0; padding: 0; margin: 0; }
.filter legend { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; padding: 0; }
.card.light .filter legend { color: #3e5a5e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 700 .95rem var(--round); box-shadow: inset 0 0 0 1.5px rgba(12, 41, 47, .22); transition: background .2s, color .2s, box-shadow .2s; }
.chip input:checked + span { background: var(--paper-ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--ben); outline-offset: 2px; }
.dark .chip span { box-shadow: inset 0 0 0 1.5px rgba(237, 245, 244, .25); }
.dark .chip input:checked + span { background: var(--teal); color: #fff; }
.finder-count { font: 700 1.05rem var(--round); margin: 4px 0 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.finder-count b { font-size: 2rem; color: var(--teal-deep); }
.dark .finder-count b { color: var(--teal-hi); }
.size-range { display: grid; gap: 6px; }
.size-range output { font: 700 1rem var(--round); }
.dual { position: relative; height: 44px; }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 44px; }
.dual input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: grab; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; cursor: grab; }
.dual .rail { position: absolute; left: 14px; right: 14px; top: 20px; height: 4px; border-radius: 4px; background: rgba(237, 245, 244, .2); }
.dual .rail i { position: absolute; top: 0; bottom: 0; left: var(--a, 0%); right: calc(100% - var(--b, 100%)); background: var(--teal-hi); border-radius: 4px; }
.plans-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none; }
.plans-row::-webkit-scrollbar { display: none; }
.plans-row .plan { flex: 0 0 62%; scroll-snap-align: start; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.plan { position: relative; background: #fff; color: var(--paper-ink); border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 1px 0 rgba(12, 41, 47, .06), 0 10px 30px -18px rgba(12, 41, 47, .5); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(12, 41, 47, .55); }
.plan[hidden] { display: none; }
.plan .sheet { aspect-ratio: 400 / 360; overflow: hidden; background: #fff; }
.plan .sheet img { width: 100%; height: auto; transform: translateY(-36%); }
.plan-body { padding: 12px 14px 14px; display: grid; gap: 4px; border-top: 1px solid #e6ecea; }
.plan-body h3 { font-size: 1.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-body h3 small { font: 700 .95rem var(--sans); color: var(--teal-deep); }
.plan-body .spec { font-size: .9rem; color: #3e5a5e; margin: 0; }
.plan-actions { display: flex; gap: 6px; margin-top: 8px; }
.plan-actions button, .plan-actions a { flex: 1; min-height: 42px; border-radius: 999px; border: 0; font: 700 .86rem var(--round); cursor: pointer; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.plan-actions .view { background: #e9f1f0; color: var(--paper-ink); }
.plan-actions .ask { background: var(--paper-ink); color: #fff; }
.save { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(12, 41, 47, .2); cursor: pointer; display: grid; place-items: center; }
.save svg { width: 20px; height: 20px; fill: none; stroke: var(--paper-ink); stroke-width: 2; transition: fill .2s, stroke .2s, transform .3s var(--ease); }
.save[hidden] { display: none; }
.save[aria-pressed="true"] svg { fill: var(--teal); stroke: var(--teal); transform: scale(1.12); }
.band-title { margin: 34px 0 14px; font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; }
.band-title small { font: 600 .95rem var(--sans); color: #3e5a5e; }
.shortlist { position: sticky; bottom: 96px; z-index: 5; margin-top: 22px; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--paper-ink); color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); }
.shortlist.is-on { display: flex; }
.shortlist p { margin: 0; font: 700 .95rem var(--round); }
.empty { padding: 26px; border-radius: var(--r-sm); background: #e9f1f0; text-align: center; }

/* ---------- photos */
.photo-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.photo-row::-webkit-scrollbar { display: none; }
.photo-row figure { flex: 0 0 74%; margin: 0; scroll-snap-align: start; }
.photo-row img { border-radius: var(--r-sm); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.photo-row figcaption { font-size: .85rem; color: var(--soft); margin-top: 8px; }
@media (min-width: 900px) { .photo-row figure { flex-basis: 30%; } .plans-row .plan { flex-basis: 24%; } }
.feature-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; margin-bottom: 18px; isolation: isolate; }
.feature-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-card:hover img { transform: scale(1.04); }
.feature-card .over { position: absolute; inset: auto 0 0 0; padding: 70px 20px 22px; background: linear-gradient(rgba(8, 31, 36, 0), rgba(8, 31, 36, .78) 38%, rgba(8, 31, 36, .95)); }
.feature-card .eyebrow { color: var(--teal-hi); }
.feature-card h3 { font-size: 1.6rem; margin: 4px 0 10px; }
.feature-card .stats { display: flex; gap: 14px; flex-wrap: wrap; font: 600 .9rem var(--sans); color: #d5e4e4; }
.feature-card .stats b { font-family: var(--round); font-size: 1.15rem; color: #fff; }
@media (min-width: 900px) { .feature-card img { aspect-ratio: 16 / 8; } }

/* ---------- quotes */
.quotes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px; margin: 0 -16px; scrollbar-width: none; list-style: none; }
.quotes::-webkit-scrollbar { display: none; }
.quotes li { flex: 0 0 86%; scroll-snap-align: start; background: var(--ink-3); border-radius: var(--r-sm); padding: 24px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.quotes blockquote { margin: 0 0 14px; font: 500 1.12rem/1.5 var(--round); }
.quotes blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--teal-hi); margin-bottom: 8px; }
.quotes cite { font: 700 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-style: normal; }
@media (min-width: 900px) { .quotes li { flex-basis: 48%; } }

/* ---------- area */
.area { display: grid; gap: 22px; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.towns li a, .towns li span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 999px; background: rgba(237, 245, 244, .08); text-decoration: none; font: 700 .95rem var(--round); }
.towns li a { background: var(--teal-deep); color: #fff; }
.towns li span small { font: 500 .8rem var(--sans); color: var(--soft); margin-left: 6px; }
.contact-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact-lines a { text-decoration: none; font: 700 1.25rem var(--round); }
.contact-lines span { display: block; font-size: .82rem; color: var(--soft); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- inner pages */
.page-top { padding: calc(var(--head) + 40px) 0 40px; position: relative; overflow: hidden; }
.page-top .lede { margin-top: 16px; }
.page-top.photo { min-height: 72svh; display: flex; align-items: flex-end; padding-bottom: 56px; isolation: isolate; }
.page-top.photo .bg { position: absolute; inset: 0; z-index: -2; }
.page-top.photo .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-top.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 31, 36, .5), rgba(8, 31, 36, .2) 40%, var(--ink)); }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 26px 0; padding: 0; list-style: none; }
.stat-row li { background: var(--ink-3); border-radius: var(--r-sm); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.stat-row b { display: block; font: 700 1.9rem/1 var(--round); color: var(--teal-hi); margin-bottom: 6px; }
.stat-row span { font-size: .88rem; color: var(--soft); }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split.wide-left { grid-template-columns: 1.4fr 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 24px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px var(--teal-hi); }
.timeline b { display: block; font: 700 1.3rem var(--round); color: var(--teal-hi); }
.incl { display: grid; gap: 14px; }
.incl details { background: var(--ink-3); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.incl summary { list-style: none; cursor: pointer; padding: 16px 18px; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; font: 700 1.1rem var(--round); }
.incl summary::-webkit-details-marker { display: none; }
.incl summary::after { content: "+"; font-size: 1.5rem; color: var(--teal-hi); transition: transform .3s var(--ease); }
.incl details[open] summary::after { transform: rotate(45deg); }
.incl summary img { width: 64px; height: 48px; object-fit: contain; }
.incl summary small { display: block; font: 500 .85rem var(--sans); color: var(--soft); }
.incl .body { padding: 0 18px 18px; }
.incl .body img { width: 100%; max-width: 560px; margin: 0 auto 8px; }
.incl ul { margin: 0; padding-left: 1.1em; color: #d5e4e4; }
.incl li { margin: .35em 0; }
.faq { display: grid; gap: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font: 700 1.08rem var(--round); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-hi); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--soft); }

/* ---------- gallery by room */
.room-filter { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 6px; margin: 0 -16px 18px; scrollbar-width: none; }
.room-filter::-webkit-scrollbar { display: none; }
.room-filter button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(237, 245, 244, .08); color: var(--text); font: 700 .95rem var(--round); cursor: pointer; }
.room-filter button[aria-pressed="true"] { background: var(--teal); }
.room-filter button span { color: var(--soft); font-weight: 600; margin-left: 4px; }
.room-filter button[aria-pressed="true"] span { color: #e2f6f8; }
.gallery { columns: 2 160px; column-gap: 10px; }
.gallery figure { break-inside: avoid; margin: 0 0 10px; }
.gallery figure[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .78rem; color: var(--soft); padding: 6px 2px 0; }
@media (min-width: 900px) { .gallery { columns: 3; column-gap: 14px; } }

/* ---------- dialogs: lightbox, plan viewer, quote drawer */
dialog { border: 0; padding: 0; color: inherit; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(4, 16, 19, .78); backdrop-filter: blur(6px); }
.lightbox { width: 100vw; height: 100dvh; margin: 0; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 120px); width: auto; border-radius: 12px; }
.lightbox p { color: var(--soft); text-align: center; margin: 10px 16px 0; font-size: .9rem; }
.close-x { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(237, 245, 244, .14); color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.plan-view { width: min(100vw, 760px); height: 100dvh; margin: 0 auto; background: #fff; color: var(--paper-ink); overflow: auto; }
.plan-view .pv-head { position: sticky; top: 0; background: #fff; padding: 14px 70px 12px 16px; border-bottom: 1px solid #e6ecea; }
.plan-view .pv-head h2 { font-size: 1.7rem; }
.plan-view .pv-head p { margin: 4px 0 0; color: #3e5a5e; }
.plan-view .close-x { position: absolute; background: #e9f1f0; color: var(--paper-ink); }
.plan-view img { width: 100%; }
.plan-view .pv-foot { position: sticky; bottom: 0; background: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; border-top: 1px solid #e6ecea; }
.plan-view .pv-foot .btn { flex: 1; justify-content: center; }
.drawer { width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 26px 26px 0 0; background: var(--paper); color: var(--paper-ink); padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; }
.drawer[open] { animation: rise .5s var(--ease); }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.drawer .handle { display: block; width: 64px; height: 14px; margin: 0 auto 10px; background: url("/img/roofline-dark.svg") no-repeat center / contain; }
.drawer h2 { font-size: 1.8rem; margin-bottom: 6px; }
.drawer .close-x { position: absolute; top: 12px; right: 12px; background: #e3ebea; color: var(--paper-ink); }
.form { display: grid; gap: 12px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font: 700 .9rem var(--round); }
.form input, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #c5d3d2; background: #fff; color: var(--paper-ink); font-weight: 400; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(0, 109, 127, .18); }
.form .note { font-size: .82rem; color: #3e5a5e; margin: 0; }
.form .note a { color: var(--teal-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.carried { background: #e3f1f2; border-radius: 14px; padding: 10px 14px; font-size: .92rem; display: none; }
.carried.is-on { display: block; }
.card.light .form, .page-form .form { max-width: 560px; }
.page-form { background: var(--paper); color: var(--paper-ink); border-radius: var(--r); padding: 26px 20px; }
.page-form h2 { font-size: 1.8rem; }
@media (min-width: 600px) { .drawer { border-radius: 26px; margin: auto; } .drawer[open] { animation: pop .4s var(--ease); } @keyframes pop { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } } }

/* ---------- photo carry: a job's picture grows into the top of its own page */
.carry-ghost { position: fixed; z-index: 60; object-fit: cover; border-radius: var(--r); transition: all .55s var(--ease); pointer-events: none; }

/* ---------- footer */
.site-foot { background: #051518; padding: 56px 0 40px; margin-top: -28px; position: relative; border-radius: var(--r) var(--r) 0 0; font-size: .95rem; }
.site-foot .cols { display: grid; gap: 30px; }
.site-foot h2 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: 10px; color: var(--soft); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--teal-hi); }
.site-foot .logo-foot { width: 120px; margin-bottom: 14px; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; color: var(--soft); }
.credit a { color: var(--soft); }
@media (min-width: 800px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}

/* ---------- small utilities */
.mt { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit { display: block; font: 700 1.25rem var(--round); color: var(--text); letter-spacing: 0; text-transform: none; }
.contact-lines .visit { font-size: 1.25rem; color: var(--text); letter-spacing: 0; text-transform: none; }
.lost { max-width: min(100%, 560px); }
.split > img { border-radius: var(--r); }

@media (min-width: 900px) {
  [data-finder="full"] .finder-filters { grid-template-columns: auto auto auto minmax(260px, 1fr); gap: 28px; align-items: start; }
  [data-finder="mini"] .finder-filters { grid-template-columns: auto auto; justify-content: start; gap: 34px; }
}
.drawer .muted, .page-form .muted, .plan-view .muted { color: #3e5a5e; }
.drawer a, .page-form a { color: var(--teal-deep); }
.site-head:not(.is-solid) { background: linear-gradient(rgba(8, 31, 36, .72), rgba(8, 31, 36, 0)); }
.stat-row b { font-size: clamp(1.35rem, 5vw, 1.9rem); }
