/* E.F.W. Interiors. Paper and ink, with their black as the colour and timber as the one supporting tone. */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-italic.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/opensans.woff2) format('woff2'); }
@font-face { font-family: 'Serif fallback'; src: local('Georgia'); size-adjust: 112%; ascent-override: 92%; descent-override: 24%; }

:root {
  --ink: #000;
  --ink-2: #161616;
  --paper: #f5f3ef;
  --paper-2: #ebe8e2;
  --white: #fff;
  --mute: #5a626c;
  --line: rgba(0, 0, 0, .16);
  --line-light: rgba(255, 255, 255, .28);
  --timber: #b68c63;
  --timber-ink: #7a5534;
  --serif: 'Playfair Display', 'Serif fallback', Georgia, serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --type: 'Courier New', Courier, ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1240px;
  --head: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { overflow-x: clip; margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--timber); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.label { font: 700 .8125rem/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; color: var(--mute); }
.on-ink .label, .label.light { color: rgba(255, 255, 255, .8); }
.lede { font-size: clamp(1.0625rem, 2.6vw, 1.25rem); max-width: 34em; }
.rule { height: 1px; background: currentColor; opacity: .25; border: 0; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.4em; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font: 700 .875rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 0; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { font: 700 .875rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: none; border: 0; border-bottom: 1.5px solid currentColor; padding: 0 0 .35em; display: inline-block; cursor: pointer; color: inherit; }
.dive-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.link:hover { color: var(--timber-ink); }
.on-ink .link:hover { color: var(--timber); }

/* ---------- Header ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--head); color: var(--ink); transition: transform .35s var(--ease); }
.head-bar { position: absolute; inset: 0; background: rgba(245, 243, 239, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .35s, transform .35s var(--ease); }
.head-in { position: relative; height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: 54px; transition: height .3s var(--ease); }
.brand .logo-white { display: none; }
.head-nav { margin-left: auto; }
.head-nav ul { display: flex; gap: 28px; }
.head-nav a { font: 600 .9375rem/1 var(--sans); text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.head-nav a:hover, .head-nav a[aria-current="page"] { border-color: currentColor; }
.head-phone { display: inline-flex; align-items: center; gap: 8px; font: 700 .9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.head-phone svg { width: 16px; height: 16px; }
.head .btn { min-height: 40px; padding: 0 1em; font-size: .75rem; }
.menu-btn { display: none; }

/* Over the opening: transparent, white logo. */
.has-opening .head:not(.is-solid) { color: var(--white); }
.has-opening .head:not(.is-solid) .head-bar { opacity: 0; }
.has-opening .head:not(.is-solid) .logo-ink { display: none; }
.has-opening .head:not(.is-solid) .logo-white { display: block; }
.has-opening .head:not(.is-solid) .btn { background: transparent; border-color: rgba(255, 255, 255, .85); }
.head.is-compact { height: 58px; }
.head.is-compact .brand img { height: 42px; }

/* Tape: their progress line. An ink tape with paper marks, pulled out by a timber hook. */
.tape { position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; pointer-events: none; overflow: hidden; }
.tape-run { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255,255,255,.85) 1px, transparent 1px) 0 0 / 40px 100% no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 1px, transparent 1px 40px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 8px) 0 0 / 100% 45% no-repeat,
  var(--ink); clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }
.tape-hook { position: absolute; top: -1px; left: 0; width: 5px; height: 9px; background: var(--timber); transform: translateX(calc(var(--p, 0) * (100vw - 5px))); }
.has-opening .head:not(.is-solid) .tape { opacity: 0; }

@media (max-width: 899px) {
  :root { --head: 64px; }
  .brand img { height: 46px; }
  .head-nav { position: fixed; inset: var(--head) 0 auto; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); margin: 0; padding: 8px var(--gutter) 24px; }
  .head-nav ul { flex-direction: column; gap: 0; }
  .head-nav a { display: block; padding: 14px 0; font: 500 1.75rem/1.1 var(--serif); border-bottom: 1px solid var(--line); }
  .head-nav { display: none; }
  .head.menu-open .head-nav { display: block; }
  .head-in > .btn { display: none; }
  .head-phone { margin-left: auto; font-size: .875rem; }
  .head-phone span { display: none; }
  .head-phone { width: 44px; height: 44px; justify-content: center; border: 1.5px solid currentColor; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid currentColor; background: none; padding: 0; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s; }
  .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-open .menu-btn span { background: transparent; }
  .menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
  .head.menu-open { color: var(--ink); }
  .head.menu-open .head-bar { opacity: 1 !important; }
  .head.menu-open .logo-ink { display: block !important; }
  .head.menu-open .logo-white { display: none !important; }
  .head.is-compact { height: 56px; }
  .head.is-compact .brand img { height: 40px; }
}
@media (min-width: 900px) {
  .head-phone { margin-left: 8px; }
}

/* ---------- Phone bar (phones) ---------- */
.callbar { position: fixed; inset: auto 0 0; z-index: 39; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 243, 239, .96); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.callbar .btn { flex: 1 1 0; min-height: 50px; padding: 0 .8em; transition: flex-grow .35s var(--ease), opacity .25s, padding .35s; white-space: nowrap; overflow: hidden; }
.callbar.is-slim .bar-price { flex-grow: 0; flex-basis: 0; padding: 0; border-width: 0; opacity: 0; }
.callbar.is-slim { gap: 0; }
.callbar .btn:first-child { flex-grow: 1.25; }
@media (max-width: 400px) { .callbar .btn { padding: 0 .55em; letter-spacing: .04em; } .callbar .btn svg { margin-right: -2px; } }
@media (min-width: 900px) { .callbar { display: none; } }
@media (max-width: 899px) { .foot { padding-bottom: 96px !important; } }

/* ---------- Opening ---------- */
.opening { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.opening-media { position: absolute; inset: 0; z-index: -1; }
.opening-media img, .opening-media video { width: 100%; height: 100%; object-fit: cover; }
.opening-media img { transform-origin: 30% 30%; animation: drift 28s var(--ease) both; }
.opening-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 28%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.82) 100%); }
/* A slow band of light running along the battens. */
.sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 226, 190, .16) 48%, transparent 60%) 0 0 / 300% 100%; mix-blend-mode: screen; animation: sheen 9s 1.2s ease-in-out infinite; }
@keyframes drift { from { transform: scale(1.12) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes sheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.opening-words { padding: calc(var(--head) + 40px) 0 calc(48px + 76px); }
.opening h1 { font-size: clamp(2.75rem, 11.5vw, 7.5rem); line-height: .98; max-width: 11ch; letter-spacing: -.02em; }
.opening h1 .kicker { display: block; font: 700 .8125rem/1.4 var(--type); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; color: rgba(255, 255, 255, .86); max-width: 30em; }
.opening .lede { margin: 1.5rem 0 2rem; color: rgba(255, 255, 255, .9); max-width: 28em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.opening .actions .btn { flex: 1 1 220px; max-width: 300px; }
.word-in { display: inline-block; opacity: 0; transform: translateY(.35em); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .opening-words { padding-bottom: 72px; } }

/* ---------- Linings: the dive ---------- */
.dive { position: relative; background: var(--white); }
.dive-stage { position: relative; overflow: hidden; }
.dive-photo { position: absolute; inset: 0; }
.dive-photo img { width: 100%; height: 100%; object-fit: cover; }
.dive-shade { position: absolute; inset: 0; background: #000; opacity: var(--shade, .4); }
.dive-mask { position: relative; display: grid; place-items: center; min-height: 62svh; background: var(--white); mix-blend-mode: screen; color: #000; }
.dive-word { font: 700 clamp(5rem, 24vw, 22rem)/.8 var(--serif); letter-spacing: -.03em; white-space: nowrap; padding-bottom: .06em; will-change: transform; }
.dive-word span { display: inline-block; }
.dive-caption { position: relative; padding: 28px 0 56px; background: var(--white); }
.dive-caption h2 { font-size: clamp(2rem, 7vw, 3.75rem); margin-bottom: .6rem; }
.dive-caption p { color: var(--mute); max-width: 36em; }
/* Scripted version: a sticky stage the reader dives through. */
.dive:not(.is-live) .dive-shade { opacity: 0; }
.dive:not(.is-live) .dive-photo img { object-position: 50% 30%; }
.dive.is-live { height: 170svh; }
.dive.is-live .dive-stage { position: sticky; top: 0; height: 100svh; }
.dive.is-live .dive-mask { position: absolute; inset: 0; min-height: 0; }
.dive.is-live .dive-caption { position: absolute; inset: auto 0 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.55) 60%, transparent); color: var(--white); padding: 120px 0 calc(40px + 70px); opacity: var(--cap, 0); transform: translateY(calc((1 - var(--cap, 0)) * 24px)); }
.dive.is-live .dive-caption p { color: rgba(255, 255, 255, .88); }
.dive.is-live .dive-caption .link { color: var(--white); }
@media (min-width: 900px) { .dive.is-live .dive-caption { padding-bottom: 56px; } }

/* ---------- Sections ---------- */
.sec { padding: clamp(60px, 11vw, 140px) 0; }
.sec-h { font-size: clamp(2.5rem, 10vw, 5.5rem); margin-bottom: 1.25rem; max-width: 14ch; }
.sec-intro { color: var(--mute); max-width: 32em; margin-bottom: 2rem; }
.on-ink { background: var(--ink); color: var(--white); }
.on-ink .sec-intro { color: rgba(255, 255, 255, .78); }

/* Swipe rows: the next card shows at the edge on a phone. */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(66%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 18px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; overscroll-behavior-x: contain; }
.row > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .row { grid-auto-columns: calc((min(100vw - 2 * var(--gutter), var(--max)) - 3 * 18px) / 4); gap: 18px; padding-inline: max(var(--gutter), (100vw - var(--max)) / 2); scroll-padding-inline: max(var(--gutter), (100vw - var(--max)) / 2); margin-inline: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2)); }
}

/* ---------- Project cards ---------- */
.card { position: relative; }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; }
.card-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* The motif: a run of battens sweeps across a card on hover. */
.card-pic::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.0) 0 14px, rgba(0,0,0,.22) 14px 18px); clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease); pointer-events: none; }
.card-open:hover .card-pic img, .card-open:focus-visible .card-pic img { transform: scale(1.04); }
.card-open:hover .card-pic::after, .card-open:focus-visible .card-pic::after { clip-path: inset(0 0 0 0); }
.card-name { display: block; font: 500 1.375rem/1.15 var(--serif); margin-top: 12px; }
.card-meta { display: block; font: .8125rem/1.4 var(--type); color: var(--mute); margin-top: 6px; letter-spacing: .02em; }
.card[hidden] { display: none; }

/* ---------- Job finder (the interactive feature: lift out with js/finder.js) ---------- */
.finder-form { display: grid; gap: 18px; margin-bottom: 22px; }
.finder-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.finder-form legend { font: 700 .8125rem/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; padding: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 6px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; padding-inline: 0; margin-inline: 0; } }
.chip { position: relative; flex: none; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); font: 600 .9375rem/1 var(--sans); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; background: var(--paper); }
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--timber); outline-offset: 2px; }
.chip input[type="checkbox"] + span::before { content: ''; width: 9px; height: 9px; border: 1.5px solid currentColor; }
.chip input[type="checkbox"]:checked + span::before { background: var(--timber); border-color: var(--timber); }
.finder-count { display: flex; align-items: baseline; gap: 14px; min-height: 3.2em; margin: 6px 0 18px; }
.finder-count b { font: 500 clamp(3rem, 12vw, 5rem)/.9 var(--serif); font-variant-numeric: lining-nums tabular-nums; min-width: 1.1em; }
.finder-count span { font-size: 1rem; color: var(--mute); max-width: 26em; }
.finder-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 18px; }
.finder-near { font: .875rem/1.5 var(--type); color: var(--timber-ink); margin: -6px 0 16px; }
.finder-near[hidden] { display: none; }
.grid-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 18px; }
@media (max-width: 560px) { .grid-work { grid-template-columns: 1fr 1fr; gap: 26px 12px; } .grid-work .card-name { font-size: 1.125rem; } }
.card.is-in { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Textures: their own materials, close up ---------- */
.tex { position: relative; overflow: hidden; background-color: var(--paper-2); }
.tex-board { background:
  radial-gradient(circle, rgba(0,0,0,.35) 1.2px, transparent 1.8px) 18px 22px / 36px 48px,
  linear-gradient(90deg, transparent calc(50% - 22px), rgba(255,255,255,.75) calc(50% - 10px), rgba(255,255,255,.95) 50%, rgba(255,255,255,.75) calc(50% + 10px), transparent calc(50% + 22px)),
  linear-gradient(180deg, #eeece8, #e3e0da); }
.tex-fire { background:
  radial-gradient(circle, rgba(0,0,0,.4) 1.2px, transparent 1.8px) 30px 0 / 60px 30px,
  linear-gradient(90deg, transparent calc(62% - 1px), rgba(0,0,0,.45) calc(62% - 1px) 62%, rgba(255,255,255,.55) 62% calc(62% + 1px), transparent calc(62% + 1px)),
  linear-gradient(0deg, transparent 0 18px, rgba(155,40,30,.55) 18px 20px, transparent 20px) 0 0 / 100% 100% no-repeat,
  linear-gradient(170deg, #efd9d2, #e3c6bd 60%, #ddbdb3); }
.tex-clad { background:
  linear-gradient(180deg, rgba(255,255,255,.35) 0 2px, transparent 2px 60%, rgba(0,0,0,.08) calc(100% - 5px), rgba(0,0,0,.65) calc(100% - 5px) calc(100% - 2px), rgba(255,255,255,.4) calc(100% - 2px)) 0 0 / 100% 46px,
  linear-gradient(90deg, transparent 0 calc(100% - 3px), rgba(0,0,0,.45) calc(100% - 3px)) 0 0 / 260px 92px,
  linear-gradient(90deg, transparent 0 calc(100% - 3px), rgba(0,0,0,.45) calc(100% - 3px)) 130px 46px / 260px 92px,
  linear-gradient(165deg, #dcdcd8, #c6c7c3 55%, #bfc0bc); }
.tex-batten { background:
  repeating-linear-gradient(90deg, rgba(0,0,0,.0) 0 2px, rgba(60,30,10,.12) 2px 3px, transparent 3px 7px, rgba(255,230,200,.12) 7px 8px, transparent 8px 13px) ,
  repeating-linear-gradient(90deg, transparent 0 22px, #1b120b 22px 30px),
  linear-gradient(90deg, #b9875a, #c99c6e 30%, #a97a4f 60%, #c39468); background-size: 30px 100%, 30px 100%, 100% 100%; }
.tex-perf { background:
  radial-gradient(circle, #2a2a2a 2.2px, rgba(0,0,0,.25) 2.8px, transparent 3.4px) 0 0 / 16px 16px,
  linear-gradient(180deg, #f3f2ef, #e7e5e0); }
.tex-batt { background:
  repeating-radial-gradient(circle at 20% 30%, transparent 0 9px, rgba(122,85,52,.16) 9px 10px, transparent 10px 15px),
  repeating-radial-gradient(circle at 80% 70%, transparent 0 7px, rgba(122,85,52,.14) 7px 8px, transparent 8px 13px),
  linear-gradient(180deg, #efe3cf, #e6d4b8); }
.tex-trim { background:
  linear-gradient(180deg, #f2f0ec 0 18%, #d9d6d0 18% 19%, #fbfaf8 19% 30%, #cfcbc4 30% 31%, #eceae5 31% 46%, #bdb8b0 46% 47.5%, #f6f5f2 47.5% 62%, #d6d2cb 62% 63%, #e9e6e0 63% 100%); }
.tex-felt { background:
  linear-gradient(90deg, transparent 0 calc(100% - 3px), rgba(0,0,0,.28) calc(100% - 3px)) 0 0 / 46px 100%,
  repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px),
  linear-gradient(180deg, #4b4f52, #3d4144); }
.tex-alu { background:
  repeating-linear-gradient(90deg, #8d9092 0 3px, #c9cbcc 3px 9px, #a7aaac 9px 16px, #2a2c2e 16px 22px),
  #999; }
.tex-curve { background:
  repeating-radial-gradient(circle at 110% 120%, #ecebe7 0 28px, rgba(0,0,0,.28) 28px 29px, #f6f5f2 29px 30px, #e6e3de 30px 58px),
  #eceae6; }
.tex::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.12)); }

/* ---------- Services row ---------- */
.svc-card { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; background: var(--white); border: 1px solid var(--line); transition: border-color .25s; }
.svc-card:hover { border-color: var(--ink); }
.svc-card .tex { aspect-ratio: 5 / 3; }
.svc-card div:last-child { padding: 18px 18px 22px; }
.svc-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.svc-card p { font-size: .9375rem; color: var(--mute); margin: 0; }

/* ---------- Builders + facts ---------- */
.names { font: 500 clamp(1.75rem, 6.4vw, 3.6rem)/1.12 var(--serif); letter-spacing: -.01em; max-width: 22ch; }
.names span { white-space: nowrap; }
.names i { font-style: normal; color: var(--timber); padding: 0 .18em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: clamp(40px, 7vw, 72px); border-top: 1px solid var(--line-light); }
.facts div { padding: 18px 16px 4px 0; }
.facts dt { font: 700 .75rem/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.facts dd { margin: 0; font: 500 1.75rem/1.1 var(--serif); }

/* ---------- The line: Caboolture to Noosa ---------- */
.coast { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; }
.coastline { position: relative; margin-left: 8px; padding: 6px 0; display: grid; gap: 18px; }
.coastline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 8px; background: repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 10px); }
.coastline::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: var(--ink); }
.coastline .break { display: none; position: absolute; left: -6px; width: 20px; height: 12px; background: var(--paper); border-block: 2px solid var(--ink); transform: skewY(-24deg); z-index: 1; }
.town { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 3px; }
.town::before { content: ''; flex: none; width: 22px; height: 2px; background: var(--ink); transform: translateY(-.35em); }
.town b { font: 500 1.375rem/1 var(--serif); white-space: nowrap; }
.town small { flex-basis: 100%; padding-left: 36px; font: .75rem/1.35 var(--type); color: var(--mute); }
.town.end b { font-style: italic; }
.town.base b { font-size: 1.75rem; }
.town.base::before { width: 34px; height: 6px; background: var(--timber); transform: translate(-6px, -.35em); }
.coast-scale { position: absolute; left: -76px; font: .6875rem/1 var(--type); color: var(--mute); transform: translateY(-50%); width: 64px; text-align: right; }
@media (min-width: 900px) {
  .coast { grid-template-columns: 5fr 7fr; align-items: start; }
  .coastline { display: block; height: 720px; margin-left: 76px; padding: 0; }
  .coastline .break { display: block; }
  .town { position: absolute; left: 0; right: 0; transform: translateY(-.7em); }
  .town { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
  .town.base { grid-template-columns: 34px auto minmax(0, 1fr); }
  .town small { padding-left: 0; }
  .town b { font-size: 1.75rem; }
  .town.base b { font-size: 2.25rem; }
}

/* ---------- Close ---------- */
.close { padding: clamp(64px, 13vw, 160px) 0; }
.close .sec-h { max-width: 10ch; }
.close-lines { display: grid; gap: 4px; margin: 28px 0 32px; }
.close-lines a { font: 500 clamp(1.5rem, 6.5vw, 3rem)/1.2 var(--serif); text-decoration: none; overflow-wrap: anywhere; }
.close-lines a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .82); padding: clamp(40px, 8vw, 64px) 0 40px; font-size: .9375rem; border-top: 1px solid rgba(255,255,255,.1); }
.foot-top { display: grid; gap: 28px 20px; grid-template-columns: 1fr 1fr; }
.foot-top > div:first-child, .foot-top > div:nth-child(2) { grid-column: 1 / -1; }
.foot img { height: 52px; width: auto; margin-bottom: 14px; }
.foot p { margin: 0; }
.foot h2 { font: 700 .75rem/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.foot ul { display: grid; gap: 4px; }
.foot li { padding: 2px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font: .8125rem/1.5 var(--type); color: rgba(255, 255, 255, .7); }
.foot-legal a { color: rgba(255, 255, 255, .7); }
@media (max-width: 759px) {
  .foot { padding-top: 32px; }
  .foot-top { gap: 22px 20px; }
  .foot img { height: 44px; margin-bottom: 10px; }
  .foot h2 { margin-bottom: 8px; }
  .foot ul { gap: 0; }
  .foot-legal { margin-top: 22px; padding-top: 16px; }
}
@media (min-width: 760px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-top > div:first-child, .foot-top > div:nth-child(2) { grid-column: auto; } }

/* ---------- Quote drawer ---------- */
.drawer { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 92svh; overflow: auto; border: 0; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px rgba(0,0,0,.25); transform: translateY(0); transition: transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; }
.drawer:not(:popover-open) { transform: translateY(100%); }
@starting-style { .drawer:popover-open { transform: translateY(100%); } }
.drawer::backdrop { background: rgba(0, 0, 0, .45); }
.drawer-in { padding: 26px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.drawer-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 16px; }
.drawer h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
.x { flex: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); background: none; cursor: pointer; display: grid; place-items: center; }
.x svg { width: 16px; height: 16px; }
.drawer-alt { font-size: .9375rem; color: var(--mute); margin-bottom: 18px; }
.drawer-alt a { color: var(--ink); font-weight: 600; }
.notes { border-left: 3px solid var(--timber); background: var(--white); padding: 12px 14px; margin: 0 0 18px; font: .875rem/1.5 var(--type); }
.notes[hidden] { display: none; }
.notes p { margin: 0 0 4px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; color: var(--mute); }
.notes li { padding: 2px 0; }
.notes button { margin-top: 6px; background: none; border: 0; padding: 4px 0; font: .8125rem var(--type); text-decoration: underline; cursor: pointer; color: var(--mute); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 600 .875rem/1.2 var(--sans); }
.form input, .form textarea { width: 100%; font: 1rem/1.4 var(--sans); padding: 12px 14px; border: 1.5px solid rgba(0,0,0,.35); background: var(--white); border-radius: 0; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--timber); outline-offset: 0; border-color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { width: 100%; }
.form-small { font-size: .8125rem; color: var(--mute); margin: 4px 0 0; }
.next { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; counter-reset: n; font-size: .9375rem; }
.next li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; }
.next li::before { content: counter(n); font: 700 .8125rem/1.6 var(--type); color: var(--timber-ink); }
@media (min-width: 900px) {
  .drawer { inset: auto 28px 28px auto; width: 460px; max-height: calc(100svh - 56px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
  .drawer:not(:popover-open) { transform: translateY(calc(100% + 40px)); }
  @starting-style { .drawer:popover-open { transform: translateY(calc(100% + 40px)); } }
}

/* ---------- Project sheet ---------- */
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(0,0,0,.6); }
.sheet-hero { position: relative; aspect-ratio: 3 / 2; max-height: 72svh; width: 100%; overflow: hidden; background: var(--paper-2); }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet .x { position: sticky; top: 12px; margin: 12px 12px -56px auto; z-index: 2; background: var(--paper); }
.sheet-body { padding: 28px 0 64px; }
.sheet h2 { font-size: clamp(2.25rem, 8vw, 4.5rem); margin-bottom: .4rem; }
.sheet-what { font-size: 1.125rem; margin-bottom: 1.25rem; }
.sheet dl { display: grid; gap: 14px; margin: 0 0 24px; padding: 18px 0; border-block: 1px solid var(--line); }
.sheet dt { font: 700 .75rem/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.sheet dd { margin: 4px 0 0; }
.sheet-pics { display: grid; gap: 12px; margin: 8px 0 28px; }
.sheet-pics figure { margin: 0; }
.sheet-pics figcaption { font: .8125rem/1.4 var(--type); color: var(--mute); margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: .8125rem/1 var(--type); border: 1px solid var(--line); padding: 8px 10px; background: var(--white); }
@media (min-width: 900px) {
  .sheet { inset: 4vh 0 0; height: 96vh; width: min(1100px, 92vw); margin: 0 auto; }
  .sheet-pics { grid-template-columns: 1fr 1fr; }
  .sheet-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .sheet-body > .full { grid-column: 1 / -1; }
}

/* ---------- Inner pages ---------- */
.page-top { padding: calc(var(--head) + clamp(40px, 9vw, 96px)) 0 clamp(36px, 6vw, 64px); }
.page-top h1 { font-size: clamp(2.6rem, 11vw, 6.5rem); max-width: 13ch; letter-spacing: -.02em; }
.page-top .lede { margin-top: 1.25rem; color: var(--mute); }
.swatch-band { height: clamp(120px, 24vw, 260px); }
.page-photo { aspect-ratio: 3 / 2; max-height: 78svh; width: 100%; overflow: hidden; background: var(--paper-2); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 40em; }
.prose h2 { font-size: clamp(1.9rem, 6vw, 3rem); margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose ul { list-style: none; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--timber); }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; gap: 72px; } .split.even { grid-template-columns: 1fr 1fr; } }
.svc-list > li { display: grid; gap: 18px; padding: 36px 0; border-top: 1px solid var(--line); }
.svc-list .tex { aspect-ratio: 16 / 7; }
.svc-list h2 { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: .5rem; }
.svc-list p { color: var(--mute); max-width: 36em; }
.done-on { font: .8125rem/1.6 var(--type); color: var(--ink); }
.done-on b { color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-right: 6px; }
@media (min-width: 900px) { .svc-list > li { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } }
.guide { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 759px) {
  .guide { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 18px; margin-inline: calc(-1 * var(--gutter)); }
  .guide > * { scroll-snap-align: start; }
}
.guide article { background: var(--white); border: 1px solid var(--line); }
.guide .tex { aspect-ratio: 2 / 1; }
.guide div:last-child { padding: 18px 18px 20px; }
.guide h3 { font-size: 1.375rem; margin-bottom: .4rem; }
.guide p { font-size: .9375rem; color: var(--mute); margin-bottom: .6em; }
.guide .done-on { font-size: .75rem; }
.three { display: grid; gap: 28px; }
.three h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.three p { color: var(--mute); }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); } }
.on-ink .three p { color: rgba(255,255,255,.78); }
.list-names { font: 500 1.25rem/1.6 var(--serif); }
.list-names li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.contact-lines { display: grid; gap: 22px; margin-bottom: 32px; }
.contact-lines dt { font: 700 .75rem/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.contact-lines dd { margin: 0; font: 500 clamp(1.5rem, 5vw, 2.25rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 24px clamp(18px, 4vw, 32px) 28px; }
.legal h2 { font-size: 1.75rem; margin: 1.8em 0 .5em; }

/* Reveal as you scroll (only when scripts run; reads fine without). */
.reveal.r-wait { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.r-wait.is-in { opacity: 1; transform: none; }

/* A picture or swatch that carries into the next page. */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease); }
.vt-walls { view-transition-name: svc-walls; }
.vt-fire { view-transition-name: svc-fire; }
.vt-facades { view-transition-name: svc-facades; }
.vt-timber { view-transition-name: svc-timber; }
.vt-area { view-transition-name: svc-area; }
.vt-sheet { view-transition-name: sheet-pic; }
::view-transition-old(sheet-pic), ::view-transition-new(sheet-pic) { height: 100%; object-fit: cover; overflow: clip; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .sheen { display: none; }
  .opening-media img { animation: none; transform: none; }
  .reveal.r-wait { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
/* Browsers without popovers: keep the sheets and drawer off the page until asked for. */
@supports not selector(:popover-open) {
  [popover]:not(.fallback-open) { display: none; }
  .fallback-open { display: block; z-index: 60; }
  .drawer.fallback-open { transform: none; }
}
@media print { .head, .callbar, .drawer, .tape { display: none !important; } .opening { min-height: 0; color: #000; background: none; } .opening-media { display: none; } }

/* coast:start (written by the build) */
@media (min-width: 900px) {
.town:nth-of-type(1) { top: 3.0%; }
.town:nth-of-type(2) { top: 10.6%; }
.town:nth-of-type(3) { top: 25.9%; }
.town:nth-of-type(4) { top: 38.6%; }
.town:nth-of-type(5) { top: 47.5%; }
.town:nth-of-type(6) { top: 63.3%; }
.town:nth-of-type(7) { top: 70.5%; }
.town:nth-of-type(8) { top: 87.0%; }
.town:nth-of-type(9) { top: 97.0%; }
.coastline .break { top: 91%; }
}
/* coast:end */
