/* Iconic Homes & Construction: paper, ink, their navy and their gold. */
:root {
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --card: #fbfaf6;
  --ink: #16212b;
  --ink-2: #44505b;
  --navy: #00436c;
  --gold: #ae9a63;
  --gold-ink: #6c5c30;
  --night: #0c1824;
  --night-2: #13222f;
  --line: rgba(22, 33, 43, .14);
  --line-2: rgba(22, 33, 43, .24);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 48px);
  --head-h: 64px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 960px) { :root { --head-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 5vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small labels */
.eyebrow { font: 600 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px; }
.wry { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.12rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.fine { font-size: .875rem; color: var(--ink-2); }

/* The motif: the gold "I" from their logo, a single upright stroke. */
.ib { display: inline-block; width: .16em; min-width: 4px; height: .82em; background: var(--gold); margin-right: .22em; vertical-align: -.02em; }

/* buttons: square, like theirs */
.btn { --b: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 22px; border: 1.5px solid var(--b); background: var(--b); color: var(--ink); font: 650 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: #c3b17c; border-color: #c3b17c; }
.btn.line { background: transparent; border-color: currentColor; color: inherit; }
.btn.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .btn.line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.arrow { font: 600 .875rem/1.3 var(--sans); letter-spacing: .06em; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; display: inline-block; }
.arrow::after { content: " \2192"; }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 40; height: var(--head-h); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.head > .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
html.scrolled .head { border-bottom-color: var(--line); }
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; transition: height .3s var(--ease); }
@media (min-width: 960px) { .brand img { height: 38px; } html.scrolled .brand img { height: 32px; } }
.head nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-links { display: none; list-style: none; margin: 0; padding: 0; }
.menu-links a { display: block; padding: 10px 12px; font: 500 .9rem/1 var(--sans); text-decoration: none; color: var(--ink); }
.menu-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.head-call { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 9px 12px; border: 1.5px solid var(--gold); font: 650 .9rem/1 var(--sans); text-decoration: none; white-space: nowrap; color: var(--ink); }
.head-call svg { width: 16px; height: 16px; color: var(--gold-ink); }
.head-call:hover { background: var(--gold); }
@media (max-width: 400px) { .head-call .num-long { display: none; } }
@media (min-width: 401px) { .head-call .num-short { display: none; } }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span { display: block; width: 22px; height: 1.5px; background: var(--ink); box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink); }
.menu[open] > summary span { background: transparent; box-shadow: none; position: relative; }
.menu[open] > summary span::before, .menu[open] > summary span::after { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.menu[open] > summary span::after { transform: rotate(-45deg); }
.menu-panel { position: fixed; left: 0; right: 0; top: var(--head-h); bottom: 0; background: var(--paper); padding: 20px var(--gut) 120px; overflow-y: auto; border-top: 1px solid var(--line); }
.menu-panel ul { list-style: none; margin: 0 0 28px; padding: 0; }
.menu-panel li { margin: 0; border-bottom: 1px solid var(--line); }
.menu-panel a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font: 400 1.45rem/1.2 var(--serif); color: var(--navy); text-decoration: none; }
.menu-panel a small { font: 500 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
@media (min-width: 1100px) {
  .menu-links { display: flex; }
  .menu { display: none; }
}

/* the tape: fills as the page is read, marks every 10, longer every 50 */
.tape { position: fixed; left: 0; right: 0; top: var(--head-h); height: 9px; z-index: 39; pointer-events: none; display: none; }
@supports (animation-timeline: scroll()) {
  .tape { display: block; }
  .tape i { position: absolute; inset: 0 auto 0 0; width: 100%; background:
      repeating-linear-gradient(90deg, rgba(12, 24, 36, .55) 0 1px, transparent 1px 10px) 0 0 / 100% 4px no-repeat,
      repeating-linear-gradient(90deg, rgba(12, 24, 36, .7) 0 1px, transparent 1px 50px) 0 0 / 100% 7px no-repeat,
      linear-gradient(var(--gold), #c8b580);
    clip-path: inset(0 100% 0 0); animation: tape-pull linear both; animation-timeline: scroll(root); }
  .tape b { position: absolute; top: -1px; width: 7px; height: 11px; background: #2a3440; border-radius: 0 2px 2px 0; left: 0; animation: tape-hook linear both; animation-timeline: scroll(root); }
}
@keyframes tape-pull { to { clip-path: inset(0 0 0 0); } }
@keyframes tape-hook { to { left: calc(100% - 7px); } }

/* ---------- phone bar: the number never leaves the screen ---------- */
.bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--night) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .35s var(--ease); }
.bar a, .bar button { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 650 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; }
.bar .call { background: var(--gold); color: var(--ink); transition: flex .35s var(--ease); }
.bar .ask { background: transparent; color: var(--paper); border: 1.5px solid rgba(246, 243, 236, .5); transition: flex .35s var(--ease), opacity .25s, padding .35s; overflow: hidden; white-space: nowrap; }
.bar svg { width: 18px; height: 18px; }
html.going-down .bar .ask { flex: 0 0 0; opacity: 0; padding: 0; border-width: 0; }
@media (min-width: 960px) { .bar { display: none; } }
body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* ---------- reveal on scroll (only once the script has said it will reveal) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  html.js .rv.in { opacity: 1; transform: none; }
  html.js .rv.d1 { transition-delay: .08s; } html.js .rv.d2 { transition-delay: .16s; } html.js .rv.d3 { transition-delay: .24s; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(46px, 10vw, 128px) 0; position: relative; }
.sec.tight { padding: clamp(48px, 8vw, 88px) 0; }
.sec.alt { background: var(--paper-2); }
.on-dark { background: var(--night); color: var(--paper); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .wry, .on-dark .muted, .on-dark .lead, .on-dark .fine { color: rgba(246, 243, 236, .78); }
.q { display: flex; align-items: center; gap: 12px; font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 18px; }
.q::before { content: ""; width: 4px; height: 26px; background: var(--gold); }
.on-dark .q { color: var(--gold); }
.sec-head { max-width: 760px; margin-bottom: clamp(22px, 5vw, 48px); }
.sec-head h2 { margin-bottom: .35em; }
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.r { grid-template-columns: 1.1fr .9fr; } .split.l { grid-template-columns: .9fr 1.1fr; } }

/* ---------- the opening (built to hold their video) ---------- */
.open { position: relative; min-height: max(560px, calc(100svh - var(--head-h) - var(--bar-h))); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--night); isolation: isolate; }
@media (min-width: 960px) { .open { min-height: max(620px, calc(100svh - var(--head-h))); } }
.stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.stage img, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 2; background:
    linear-gradient(180deg, rgba(8, 18, 28, .25) 0%, rgba(8, 18, 28, 0) 28%, rgba(8, 18, 28, .35) 55%, rgba(8, 18, 28, .9) 100%),
    linear-gradient(90deg, rgba(8, 18, 28, .55), rgba(8, 18, 28, 0) 70%); }
.stage::after { content: ""; position: absolute; inset: -20%; z-index: 1; background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 196, .16) 48%, transparent 58%); transform: translateX(-70%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .stage img { animation: drift 26s ease-in-out infinite alternate; transform-origin: 60% 55%; }
  .stage::after { animation: sweep 13s 1.2s ease-in-out infinite; }
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2.5%, -1.5%, 0); } }
@keyframes sweep { 0% { transform: translateX(-70%); opacity: 0; } 15% { opacity: 1; } 55% { transform: translateX(70%); opacity: 0; } 100% { transform: translateX(70%); opacity: 0; } }
.open-in { padding: 40px 0 clamp(32px, 6vw, 72px); }
.open .eyebrow { color: #e3d6ae; }
.big { display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 20px); margin: 0 0 6px; }
.big b { font: 400 clamp(7rem, 34vw, 15rem)/.8 var(--serif); letter-spacing: -.04em; color: #fff; }
.big i { display: block; width: clamp(10px, 2.4vw, 18px); height: clamp(5.4rem, 26vw, 11.6rem); background: var(--gold); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) { html.js .big i { animation: draw 1.4s .2s var(--ease) both; } html.js .big b { animation: rise 1.2s .35s var(--ease) both; } }
@keyframes draw { from { transform: scaleY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.big-cap { font: 500 1rem/1.45 var(--sans); max-width: 30ch; color: rgba(255, 255, 255, .9); margin: 0 0 22px; }
.open h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 3.1rem); max-width: 22ch; margin-bottom: .4em; }
.open .sub { max-width: 52ch; color: rgba(255, 255, 255, .86); margin-bottom: 22px; }
.open .wry { color: rgba(255, 255, 255, .78); font-size: 1.02rem; max-width: 46ch; margin: 18px 0 0; }
.open .btn.line { color: #fff; }
.creds { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; padding: 0; list-style: none; font: 500 .8rem/1.3 var(--sans); color: rgba(255, 255, 255, .82); }
.creds li { margin: 0; display: flex; align-items: center; gap: 8px; }
.creds li::before { content: ""; width: 3px; height: 12px; background: var(--gold); }

/* ---------- cost guide ---------- */
.cost { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 959px) { .cost .answer { order: -1; } }
@media (min-width: 960px) { .cost { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; } .cost .answer { position: sticky; top: calc(var(--head-h) + 24px); } }
.cost fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.cost fieldset .fine { margin: 8px 0 0; }
.cost legend, .cost .lab { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; padding: 0; display: flex; justify-content: space-between; width: 100%; }
.cost .lab output { font: 400 1.35rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--navy); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line-2); background: var(--card); }
.seg label { position: relative; display: grid; place-items: center; min-height: 48px; padding: 6px 4px; font: 600 .82rem/1.15 var(--sans); text-align: center; cursor: pointer; color: var(--ink-2); transition: background .25s, color .25s; }
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--night); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: -3px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 25%), var(--line-2) var(--p, 25%)); }
.range::-moz-range-track { height: 6px; background: var(--line-2); }
.range::-moz-range-progress { height: 6px; background: var(--gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; background: var(--night); border: 3px solid var(--gold); border-radius: 0; }
.range::-moz-range-thumb { width: 22px; height: 22px; background: var(--night); border: 3px solid var(--gold); border-radius: 0; }
.scale-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-2); margin-top: -4px; }
.answer { background: var(--night); color: var(--paper); padding: clamp(22px, 4vw, 36px); position: relative; }
.answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); }
.answer .lab { color: rgba(246, 243, 236, .7); font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.answer .figure { font: 400 clamp(2.3rem, 8vw, 3.6rem)/1 var(--serif); color: #fff; letter-spacing: -.02em; margin: 0 0 6px; font-variant-numeric: lining-nums; }
.answer .figure small { font-size: .5em; color: rgba(255, 255, 255, .7); }
.answer .plus { margin: 0 0 18px; color: rgba(246, 243, 236, .86); }
.answer .plus strong { color: #fff; font-weight: 600; }
.answer .btns { margin-top: 20px; align-items: center; gap: 16px 22px; }
.answer .arrow { color: #fff; }
.open .arrow { color: #fff; }
.answer .btn.line { color: var(--paper); }
.ruler { position: relative; height: 58px; margin: 14px 0 6px; }
.ruler .tp { position: absolute; left: 0; right: 0; top: 22px; height: 22px; background:
    repeating-linear-gradient(90deg, rgba(12, 24, 36, .5) 0 1px, transparent 1px 3.3333%) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(12, 24, 36, .85) 0 1.5px, transparent 1.5px 33.3333%) 0 0 / 100% 12px no-repeat,
    linear-gradient(#cdbb86, var(--gold)); }
.ruler .band { position: absolute; top: 17px; height: 32px; left: var(--lo, 41.67%); width: max(6px, calc(var(--hi, 46.67%) - var(--lo, 41.67%))); background: rgba(255, 255, 255, .18); border: 2px solid #fff; transition: left .5s var(--ease), width .5s var(--ease); }
.ruler .band.open-end { border-right-style: dashed; }
.ruler .mark { position: absolute; top: 2px; height: 50px; width: 0; border-left: 1.5px dashed rgba(246, 243, 236, .8); left: var(--at, 13.3%); }
.ruler .mark span { position: absolute; left: 6px; top: -2px; font-size: .68rem; white-space: nowrap; color: rgba(246, 243, 236, .85); }
.ruler-nums { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(246, 243, 236, .65); }
.cost-note { font-size: .86rem; color: rgba(246, 243, 236, .72); margin: 16px 0 0; }
.sites { list-style: none; padding: 0; margin: 0 0 4px; font-size: .92rem; }
.sites li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(246, 243, 236, .14); margin: 0; }
.sites li[hidden] { display: none; }
.sites b { font-weight: 600; white-space: nowrap; color: #fff; }
.checks { display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.check:has(input:checked) { border-color: var(--navy); }
.check small { display: block; color: var(--ink-2); font-size: .82rem; }

/* ---------- tabs with no script (block types) ---------- */
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)) 24px; padding: 0 var(--gut); }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list label { flex: none; padding: 12px 16px; border: 1.5px solid var(--line-2); font: 600 .85rem/1 var(--sans); cursor: pointer; white-space: nowrap; color: var(--ink-2); background: var(--card); transition: background .25s, color .25s, border-color .25s; }
.tab-panels > div { display: none; }
#bt-1:checked ~ .tab-list label[for="bt-1"], #bt-2:checked ~ .tab-list label[for="bt-2"], #bt-3:checked ~ .tab-list label[for="bt-3"], #bt-4:checked ~ .tab-list label[for="bt-4"] { background: var(--night); color: #fff; border-color: var(--night); }
#bt-1:focus-visible ~ .tab-list label[for="bt-1"], #bt-2:focus-visible ~ .tab-list label[for="bt-2"], #bt-3:focus-visible ~ .tab-list label[for="bt-3"], #bt-4:focus-visible ~ .tab-list label[for="bt-4"] { outline: 3px solid var(--gold); outline-offset: 2px; }
#bt-1:checked ~ .tab-panels > div:nth-child(1), #bt-2:checked ~ .tab-panels > div:nth-child(2), #bt-3:checked ~ .tab-panels > div:nth-child(3), #bt-4:checked ~ .tab-panels > div:nth-child(4) { display: grid; }
@media (prefers-reduced-motion: no-preference) { .tab-panels > div { animation: fadein .6s var(--ease); } }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.panel { gap: clamp(16px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .panel { grid-template-columns: 1.25fr 1fr; } }
.model { position: relative; aspect-ratio: 4 / 3; }
.model img { width: 100%; height: 100%; object-fit: contain; }
.model.kdr img + img { position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) { .model.kdr img + img { opacity: 0; animation: rebuild 7s 1s ease-in-out infinite; } .model.kdr img:first-child { animation: rebuild-out 7s 1s ease-in-out infinite; } }
@keyframes rebuild { 0%, 12% { opacity: 0; } 42%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rebuild-out { 0%, 12% { opacity: 1; } 42%, 82% { opacity: 0; } 100% { opacity: 1; } }
.model.kdr::after { content: "Before \2192  after"; position: absolute; right: 0; bottom: 4%; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
@media (prefers-reduced-motion: reduce) { .model.kdr img:first-child { opacity: 0; } .model.kdr::after { content: "After"; } }
.model figcaption, .fig-note { font-size: .78rem; color: var(--ink-2); margin-top: 6px; }
.proof { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; margin: 18px 0; }
.proof a { font-weight: 600; }

/* ---------- swipe rows ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 0 var(--gut) 14px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.row > * { scroll-snap-align: start; }
@media (min-width: 960px) { .row.grid-lg { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; margin: 0; gap: 22px; } }

/* project cards */
.card { display: block; text-decoration: none; color: inherit; background: var(--card); position: relative; }
.card .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
@media (min-width: 960px) { .card .ph { aspect-ratio: 4 / 5; } }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .ph img { transform: scale(1.04); }
.card .cap { padding: 14px 16px 18px; border-left: 4px solid transparent; transition: border-color .3s; }
.card:hover .cap, .card:focus-visible .cap { border-left-color: var(--gold); }
.card .cap small { display: block; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.card .cap strong { display: block; font: 400 1.25rem/1.2 var(--serif); color: var(--navy); margin-bottom: 4px; }
.card .cap span { font-size: .9rem; color: var(--ink-2); }

/* filter chips (radio, no script) */
.filters > input { position: absolute; opacity: 0; pointer-events: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)) 22px; padding: 2px var(--gut); }
.chips::-webkit-scrollbar { display: none; }
.chips label { flex: none; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; font: 600 .82rem/1 var(--sans); cursor: pointer; color: var(--ink-2); background: var(--card); white-space: nowrap; }
#f-all:checked ~ .chips label[for="f-all"], #f-custom:checked ~ .chips label[for="f-custom"], #f-rebuild:checked ~ .chips label[for="f-rebuild"], #f-multi:checked ~ .chips label[for="f-multi"], #f-tricky:checked ~ .chips label[for="f-tricky"] { background: var(--night); border-color: var(--night); color: #fff; }
#f-all:focus-visible ~ .chips label[for="f-all"], #f-custom:focus-visible ~ .chips label[for="f-custom"], #f-rebuild:focus-visible ~ .chips label[for="f-rebuild"], #f-multi:focus-visible ~ .chips label[for="f-multi"], #f-tricky:focus-visible ~ .chips label[for="f-tricky"] { outline: 3px solid var(--gold); outline-offset: 2px; }
#f-custom:checked ~ .jobs > :not(.t-custom), #f-rebuild:checked ~ .jobs > :not(.t-rebuild), #f-multi:checked ~ .jobs > :not(.t-multi), #f-tricky:checked ~ .jobs > :not(.t-tricky) { display: none; }
.chips label .n { font-weight: 500; opacity: .7; margin-left: 4px; }

/* people */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.person .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
@media (min-width: 900px) { .person .ph { aspect-ratio: 3 / 4; } }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.85); }
.person h3 { margin: 12px 0 4px; font-size: 1.25rem; }
.person p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.facts { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 4px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.facts li::before { content: ""; background: var(--gold); }
.facts strong { display: block; font: 400 1.2rem/1.25 var(--serif); color: var(--navy); }
.on-dark .facts li { border-color: rgba(246, 243, 236, .16); }
.on-dark .facts strong { color: #fff; }

/* suburbs */
.subs { display: flex; gap: 8px; list-style: none; padding: 0 var(--gut) 6px; margin: 0 calc(-1 * var(--gut)) 20px; overflow-x: auto; scrollbar-width: none; }
.subs::-webkit-scrollbar { display: none; }
.subs li { flex: none; }
@media (min-width: 900px) { .subs { flex-wrap: wrap; overflow: visible; padding: 0; margin: 0 0 24px; } }
.subs li { margin: 0; }
.subs a, .subs span { display: inline-block; padding: 9px 14px; border: 1.5px solid rgba(246, 243, 236, .3); font-size: .9rem; text-decoration: none; color: inherit; }
.subs .home { border-color: var(--gold); color: #fff; }
.sec:not(.on-dark) .subs a, .sec:not(.on-dark) .subs span { border-color: var(--line-2); }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(44px, 9vw, 104px) 0 clamp(28px, 5vw, 56px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 60ch; }
.crumbs { font-size: .82rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.hero-ph { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .hero-ph { aspect-ratio: 21 / 9; } }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--gold); }
.cols { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .cols.c2 { grid-template-columns: 1fr 1fr; } .cols.c3 { grid-template-columns: repeat(3, 1fr); } }
.box { background: var(--card); padding: clamp(20px, 3vw, 32px); border-top: 3px solid var(--gold); }
.box h3 { margin-top: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.steps > li::before { content: counter(s, decimal-leading-zero); font: 400 2rem/1 var(--serif); color: var(--gold-ink); }
.steps h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 32px; padding: 0; list-style: none; }
.stats li { flex: 1 1 140px; padding: 16px 16px 16px 0; margin: 0; }
.stats b { display: block; font: 400 1.6rem/1.1 var(--serif); color: var(--navy); }
.stats span { font-size: .82rem; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery figure { margin: 0; background: var(--paper-2); }
.gallery figure.w { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figure.w img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } .gallery figure.w { grid-column: span 2; } .gallery figure.w img { aspect-ratio: auto; height: 100%; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 400 1.18rem/1.35 var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 1.6rem/1 var(--sans); color: var(--gold-ink); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 66ch; }
.ba { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.ba figure { margin: 0; }
.ba figcaption { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-top: 8px; }
.ba img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.next { display: grid; gap: 4px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.next small { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.next strong { font: 400 clamp(1.5rem, 4vw, 2.2rem)/1.15 var(--serif); color: var(--navy); }
.cta-band { background: var(--night); color: var(--paper); padding: clamp(48px, 8vw, 88px) 0; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band .btn.line { color: var(--paper); }
.map-card { background: var(--card); padding: 24px; border-left: 4px solid var(--gold); }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.contact-list small { display: block; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.contact-list a, .contact-list span { font: 400 1.3rem/1.3 var(--serif); color: var(--navy); text-decoration: none; }
.contact-list a.fine { font: 400 .9rem/1.5 var(--sans); color: var(--ink-2); text-decoration: underline; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.split > *, .cols > * { min-width: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 600 .8rem/1.2 var(--sans); letter-spacing: .04em; color: var(--ink); }
.form input, .form select, .form textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 0; padding: 12px 12px; min-height: 48px; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--navy); }
.form .two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form button { width: 100%; }
.carry { border: 1.5px dashed var(--gold); background: #fffdf6; padding: 12px 14px; font-size: .88rem; }
.carry[hidden] { display: none; }
.carry p { margin: 0 0 6px; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.carry ul { list-style: none; margin: 0; padding: 0; }
.carry li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin: 4px 0 0; }
.carry li span { flex: 1 1 auto; min-width: 0; }
.carry button { background: none; border: 0; padding: 0 2px; font: 600 .78rem/1.3 var(--sans); color: var(--navy); text-decoration: underline; cursor: pointer; flex: none; }
.next-steps { list-style: none; padding: 0; margin: 4px 0 0; font-size: .85rem; color: var(--ink-2); counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 22px 1fr; margin: 6px 0 0; }
.next-steps li::before { content: counter(n) "."; color: var(--gold-ink); font-weight: 600; }

/* quote drawer: rises over the page */
.drawer { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 92svh; overflow-y: auto; overflow-x: hidden; border: 0; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px rgba(8, 18, 28, .3); }
.drawer::backdrop { background: rgba(8, 18, 28, .55); }
.drawer-in { padding: 22px var(--gut) calc(24px + env(safe-area-inset-bottom)); }
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.drawer-top h2 { font-size: 1.7rem; margin: 0; }
.drawer-top p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); }
.x { flex: none; width: 44px; height: 44px; border: 1.5px solid var(--line-2); background: transparent; font: 300 1.5rem/1 var(--sans); cursor: pointer; color: var(--ink); }
.drawer::before { content: ""; display: block; height: 5px; background: var(--gold); }
@media (min-width: 760px) { .drawer { inset: auto 24px 24px auto; width: 460px; max-height: calc(100svh - 48px); } }
@media (prefers-reduced-motion: no-preference) {
  .drawer { transition: transform .45s var(--ease), opacity .45s, overlay .45s allow-discrete, display .45s allow-discrete; transform: translateY(100%); opacity: 0; }
  .drawer:popover-open { transform: none; opacity: 1; }
  @starting-style { .drawer:popover-open { transform: translateY(100%); opacity: 0; } }
  .drawer::backdrop { transition: background .45s, overlay .45s allow-discrete, display .45s allow-discrete; }
  @starting-style { .drawer:popover-open::backdrop { background: rgba(8, 18, 28, 0); } }
}
.no-popover .drawer:not(:popover-open) { display: none; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: rgba(246, 243, 236, .82); padding: clamp(44px, 8vw, 88px) 0 28px; font-size: .92rem; }
.foot a { color: inherit; }
.foot-grid { display: grid; gap: 28px 20px; grid-template-columns: 1fr 1fr; }
.foot-grid > :first-child, .foot-grid > :nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .foot-grid > :first-child, .foot-grid > :nth-child(2) { grid-column: auto; } }
.foot p { margin-bottom: .7em; }
.foot img { height: 40px; width: auto; margin-bottom: 18px; }
.foot h2 { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot .big-tel { font: 400 1.6rem/1.2 var(--serif); color: #fff; text-decoration: none; }
.legal { border-top: 1px solid rgba(246, 243, 236, .14); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: rgba(246, 243, 236, .6); }
.credit a { color: rgba(246, 243, 236, .6); }

/* ---------- photo carry: a job's picture grows into its own page ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; }
.vt-1 { view-transition-name: job-1; } .vt-2 { view-transition-name: job-2; } .vt-3 { view-transition-name: job-3; } .vt-4 { view-transition-name: job-4; } .vt-5 { view-transition-name: job-5; }
.vt-6 { view-transition-name: job-6; } .vt-7 { view-transition-name: job-7; } .vt-8 { view-transition-name: job-8; } .vt-9 { view-transition-name: job-9; } .vt-10 { view-transition-name: job-10; }
.head { view-transition-name: head; }
.bar { view-transition-name: bar; }

@media print { .head, .bar, .tape, .drawer, .foot { display: none !important; } body { padding: 0; } }
