/* Coastrise Luxury Homes
   Colours from their own logo: the warm black it sits on (#231f20) and its gold (#eecd4a, shading to #b89c3c).
   The thread through the site is the logo's rising line: the skillion that climbs inside its frame.
   It is the slope on the top edge of every button and photo, the gold rule under each heading, and the
   frame that draws itself around the opening words. */

@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/fonts/jost.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair fallback"; src: local("Georgia"); size-adjust: 112%; ascent-override: 88%; descent-override: 22%; }
@font-face { font-family: "Jost fallback"; src: local("Arial"); size-adjust: 95%; ascent-override: 104%; descent-override: 30%; }

:root {
  --ink: #231f20;
  --ink-2: #2c2728;
  --ink-3: #3a3435;
  --gold: #eecd4a;
  --gold-2: #b89c3c;
  --gold-text: #7d600c;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --stone: #ddd5c7;
  --text: #231f20;
  --muted: #625a55;
  --on-ink: #f3efe7;
  --on-ink-2: #c3baac;
  --line: rgb(35 31 32 / .14);
  --line-ink: rgb(243 239 231 / .14);
  --warn: #a5482f;
  --metal: linear-gradient(100deg, #b89c3c 0%, #eecd4a 38%, #fff4c4 50%, #eecd4a 62%, #b89c3c 100%);
  --head: "Playfair Display", "Playfair fallback", Georgia, serif;
  --body: "Jost", "Jost fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --max: 1240px;
  --hd: 4.25rem;
  --rise: 9px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold-2); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 450; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 7.2vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.on-ink :focus-visible, .hd :focus-visible, .ft :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--ink); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .7rem 1rem; font-weight: 500; text-decoration: none; transition: top .2s; }
.skip:focus { top: .75rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.narrow { max-width: 44rem; }

/* ---------- eyebrow, the rising rule, buttons ---------- */
.eyebrow { font: 500 .78rem/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 1rem; display: flex; align-items: center; gap: .7rem; }
.on-ink .eyebrow { color: var(--gold); }
.rise { display: block; width: 5.5rem; height: 12px; margin: 0 0 1.4rem; position: relative; }
.rise::before { content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 1.5px; background: var(--gold-2); }
.rise::after { content: ""; position: absolute; left: 72%; bottom: 0; width: 30%; height: 1.5px; background: var(--gold-2); transform-origin: 0 50%; transform: rotate(-17deg); }
.on-ink .rise::before, .on-ink .rise::after { background: var(--gold); }
.center .rise { margin-inline: auto; }
.center { text-align: center; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 40rem; }
.on-ink .lede { color: var(--on-ink-2); }

.btn { --b: var(--gold); --c: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.15rem; padding: .85rem 1.45rem .75rem; background: var(--b); color: var(--c); font: 500 .98rem/1.1 var(--body); letter-spacing: .02em; text-decoration: none; border: 0; cursor: pointer; clip-path: polygon(0 5px, 100% 0, 100% 100%, 0 100%); position: relative; overflow: hidden; transition: background-color .25s, color .25s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--ink { --b: var(--ink); --c: var(--on-ink); }
.btn--ghost { --b: transparent; --c: currentColor; box-shadow: inset 0 0 0 1px currentColor; clip-path: none; }
.btn--ghost:hover { --b: rgb(255 255 255 / .08); }
.btn--ghost::after { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold-2); padding-bottom: .15rem; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.on-ink .link-arrow { border-color: var(--gold); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 1px 0 var(--line-ink), 0 10px 30px rgb(0 0 0 / .18); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--hd); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 50px; width: auto; transition: height .3s var(--ease); }
.hd.is-scrolled .brand img { height: 40px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a { font: 500 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--on-ink); padding: .6rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd-tel { display: none; align-items: center; gap: .55rem; color: var(--gold); font-weight: 500; text-decoration: none; letter-spacing: .03em; white-space: nowrap; }
.hd-tel svg { width: 1rem; height: 1rem; }
.menu-btn { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 1px solid var(--line-ink); color: var(--on-ink); padding: .6rem .85rem; font: 500 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; min-height: 2.75rem; }
.menu-btn span.bars { width: 16px; height: 9px; position: relative; }
.menu-btn span.bars::before, .menu-btn span.bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.menu-btn span.bars::before { top: 0; }
.menu-btn span.bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] span.bars::before { top: 3.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span.bars::after { top: 3.5px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: var(--hd) 0 0; background: var(--ink); color: var(--on-ink); padding: 1.5rem var(--gutter) 6rem; overflow-y: auto; z-index: 49; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s; }
.mnav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .35s var(--ease); }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li { border-bottom: 1px solid var(--line-ink); }
.mnav a { display: block; padding: 1.05rem 0; font: 400 1.6rem/1.2 var(--head); text-decoration: none; }
.mnav a[aria-current="page"] { color: var(--gold); }
.mnav .mnav-foot { margin-top: 2rem; color: var(--on-ink-2); font-size: .95rem; }
.mnav .mnav-foot a { font: inherit; display: inline; padding: 0; color: var(--gold); }
@media (min-width: 980px) {
  .nav { display: block; }
  .hd-tel { display: inline-flex; }
  .menu-btn, .mnav { display: none; }
  .brand img { height: 52px; }
  :root { --hd: 5rem; }
}

/* the tape: a gold measuring tape that pulls out along the top as the page is read */
.tape { display: none; }
@supports (animation-timeline: scroll()) {
  .tape { display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; background: var(--metal); background-size: 200% 100%;
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, rgb(0 0 0 / .45) 7px 8px); mask: repeating-linear-gradient(90deg, #000 0 7px, rgb(0 0 0 / .45) 7px 8px);
    transform-origin: 0 50%; transform: scaleX(0); animation: tape linear both; animation-timeline: scroll(root); }
  @keyframes tape { to { transform: scaleX(1); } }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: var(--on-ink); background: var(--ink); min-height: calc(100svh - var(--hd)); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--ink) url(/img/living-river-view-lqip.webp) center / cover; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; animation: drift 38s ease-in-out infinite alternate; transform-origin: 40% 45%; }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2.5%, -1.2%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(35 31 32 / .3) 0%, rgb(35 31 32 / .38) 24%, rgb(35 31 32 / .82) 50%, rgb(35 31 32 / .96) 100%); }
.hero-in { position: relative; padding: 5rem 0 1.75rem; }
.hero-copy { position: relative; max-width: 40rem; }
.hero h1 { margin-bottom: 0; font-size: clamp(2.3rem, 7vw, 4.6rem); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero .eyebrow { color: #f0e6c4; text-shadow: 0 1px 12px rgb(0 0 0 / .5); }
.hero .lede { color: #e6dfd3; margin: 1.25rem 0 1.4rem; max-width: 34rem; font-size: 1.04rem; }
.hero .btn-row { align-items: center; gap: .9rem 1.4rem; }
.hero-next { color: var(--on-ink); border-color: var(--gold); }
/* the frame from the logo, drawn around the opening words: short top bar, the rising line, the side, the base */
.hero-title { position: relative; padding: 1.35rem 0 1.35rem 1.2rem; }
.hf { position: absolute; display: block; background: var(--metal); background-size: 300% 100%; animation: sheen 9s 2.6s ease-in-out infinite; }
.hf-top { left: 0; top: 0; width: 30%; height: 2px; transform-origin: 0 50%; transform: scaleX(0); animation: grow-x .7s .2s var(--ease) forwards, sheen 9s 2.6s ease-in-out infinite; }
.hf-rise { left: 30%; top: 0; width: 42%; height: 2px; transform-origin: 0 50%; transform: rotate(-9deg) scaleX(0); animation: grow-rise .9s 1.1s var(--ease) forwards, sheen 9s 2.6s ease-in-out infinite; }
.hf-left { left: 0; top: 0; width: 2px; height: 100%; background: linear-gradient(180deg, #b89c3c, #eecd4a 45%, #fff4c4 55%, #b89c3c); transform-origin: 50% 0; transform: scaleY(0); animation: grow-y .8s .55s var(--ease) forwards; }
.hf-bot { left: 0; bottom: 0; width: 62%; height: 2px; transform-origin: 0 50%; transform: scaleX(0); animation: grow-x 1s 1.1s var(--ease) forwards, sheen 9s 2.6s ease-in-out infinite; }
@keyframes grow-x { to { transform: scaleX(1); } }
@keyframes grow-y { to { transform: scaleY(1); } }
@keyframes grow-rise { to { transform: rotate(-9deg) scaleX(1); } }
@keyframes sheen { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.6rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line-ink); list-style: none; font-size: .9rem; color: #ddd5c8; letter-spacing: .02em; }
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust li::before { content: ""; width: 7px; height: 7px; background: var(--gold); clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
@media (min-width: 860px) {
  .hero { align-items: center; min-height: min(calc(100svh - var(--hd)), 54rem); }
  .hero::before { background: linear-gradient(90deg, rgb(35 31 32 / .92) 0%, rgb(35 31 32 / .7) 38%, rgb(35 31 32 / .1) 72%, rgb(35 31 32 / 0) 100%), linear-gradient(0deg, rgb(35 31 32 / .5), transparent 30%); }
  .hero-in { padding: 4rem 0; }
  .hero-title { padding: 2rem 0 2rem 2.2rem; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(3.75rem, 8vw, 7rem) 0; position: relative; }
.sec--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.sec--stone { background: var(--paper-2); }
.sec--ink, .on-ink { background: var(--ink); color: var(--on-ink); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-head h2 { margin: 0; }
.sec-head > div { max-width: 40rem; }
.sec-head p { margin: .6rem 0 0; color: var(--muted); }
.on-ink .sec-head p { color: var(--on-ink-2); }

/* swipe rows: the next card peeks in at the edge on a phone */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: .25rem var(--gutter) 1rem; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--stone) transparent; overscroll-behavior-x: contain; }
.row > * { scroll-snap-align: start; }
@media (min-width: 700px) { .row { grid-auto-columns: calc((100% - 2rem) / 2.25); } }
@media (min-width: 1080px) { .row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 1.5rem; } .row--4 { grid-template-columns: repeat(4, 1fr); } .row--2 { grid-template-columns: repeat(2, 1fr); } }
.row--2 + .small-print { margin-top: 1.5rem; }

/* photos and drawings: top edge rises like the logo's skillion */
.rise-frame { clip-path: polygon(0 var(--rise), 100% 0, 100% 100%, 0 100%); }

/* ---------- block finder ---------- */
.finder { display: grid; gap: 1.5rem; grid-template-areas: "head" "panel" "cards"; }
.finder-head { grid-area: head; }
.finder-head .lede { margin-bottom: 0; }
.finder-panel { grid-area: panel; }
.finder-cards { grid-area: cards; }
.finder-opts { border: 0; padding: 0; margin: 1.1rem 0 0; }
.finder-panel { background: var(--paper); border: 1px solid var(--line); padding: 1.1rem 1.1rem 1.25rem; position: relative; }
.finder-iso { aspect-ratio: 3 / 2; width: 100%; margin: 0 0 .25rem; display: grid; place-items: center; }
.finder-iso svg { width: 100%; height: 100%; }
.finder-iso svg * { transition: none; }
.finder-control { display: grid; gap: .6rem; }
.finder-control label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 500; }
.finder-control output { font: 500 1.6rem/1 var(--head); color: var(--ink); white-space: nowrap; }
.finder-control output small { font: 400 .95rem var(--body); color: var(--muted); }
.finder-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: -.1rem; }
.finder-result { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: 1rem; min-height: 3.2em; }
.finder-result strong { font-weight: 500; }
.finder-opts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 1px solid var(--line); font-size: .92rem; min-height: 2.75rem; background: var(--paper); transition: background-color .2s, border-color .2s; }
.chip span::before { content: ""; width: .8rem; height: .8rem; border: 1px solid var(--muted); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.chip input:checked + span::before { background: var(--gold); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.75rem; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--gold-2) var(--p), var(--stone) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; background: var(--stone); }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--gold-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px; background: var(--ink); border: 3px solid var(--gold); border-radius: 0; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; background: var(--ink); border: 3px solid var(--gold); border-radius: 0; }
input[type="range"]:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }

@media (min-width: 980px) {
  .finder { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "head panel" "cards cards"; gap: 2.5rem 3.5rem; align-items: center; }
}

/* ---------- design cards ---------- */
.dcard { position: relative; display: flex; flex-direction: column; background: var(--paper); color: var(--text); text-decoration: none; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.sec--ink .dcard { border-color: transparent; }
.dcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(35 31 32 / .14); }
.dcard-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.dcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dcard:hover .dcard-img img { transform: scale(1.04); }
.dcard-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.dcard h3 { margin: 0; font-size: 1.55rem; }
.dcard h3 a { text-decoration: none; }
.dcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dcard .tag { font-style: italic; font-family: var(--head); color: var(--muted); margin: 0; }
.badge { position: absolute; z-index: 2; left: .8rem; top: calc(.8rem + var(--rise)); display: inline-flex; align-items: center; gap: .4rem; background: var(--ink); color: var(--on-ink); font-size: .8rem; font-weight: 500; letter-spacing: .04em; padding: .4rem .65rem; transition: background-color .3s, color .3s; }
.badge::before { content: ""; width: .5rem; height: .5rem; background: var(--gold); clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
.badge[data-fit="no"] { background: var(--paper); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.badge[data-fit="no"]::before { background: var(--warn); }
.dcard[data-fit="no"] .dcard-img img { filter: saturate(.55); opacity: .82; }
.dcard.is-placed { box-shadow: inset 0 0 0 2px var(--gold-2); }
.stats { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; margin: .45rem 0 0; padding: .7rem 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.stats li { display: inline-flex; align-items: center; gap: .4rem; }
.stats svg { width: 1.8rem; height: 1.8rem; color: var(--gold-text); }
.stats b { font-weight: 500; }
.dcard-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .8rem; position: relative; z-index: 2; }
.dcard-actions .btn { min-height: 2.75rem; padding: .65rem 1rem .6rem; font-size: .9rem; }
.place-btn { background: none; border: 1px solid var(--line); padding: .6rem .9rem; font-size: .9rem; min-height: 2.75rem; cursor: pointer; }
.place-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }

/* ---------- gallery by room ---------- */
.tabs { display: flex; gap: .4rem; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 1.25rem; padding: 0 var(--gutter) .25rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 1px solid var(--line); padding: .6rem 1.05rem; min-height: 2.75rem; font-size: .92rem; letter-spacing: .03em; cursor: pointer; color: inherit; transition: background-color .25s, color .25s, border-color .25s; }
.on-ink .tab { border-color: var(--line-ink); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.ph { margin: 0; }
.ph-img { overflow: hidden; background: var(--ink-3); aspect-ratio: 4 / 3; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph:hover .ph-img img { transform: scale(1.035); }
.ph figcaption { font-size: .88rem; padding-top: .6rem; color: var(--muted); }
.on-ink .ph figcaption { color: var(--on-ink-2); }
.panel[hidden] { display: none; }
.panel.is-in .ph { animation: panelin .6s var(--ease) both; }
.panel.is-in .ph:nth-child(2) { animation-delay: .07s; }
.panel.is-in .ph:nth-child(3) { animation-delay: .14s; }
.panel.is-in .ph:nth-child(4) { animation-delay: .21s; }
@keyframes panelin { from { opacity: 0; transform: translateY(14px); } }

/* ---------- proof ---------- */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; padding: 0; margin: 0; }
.proof li { background: var(--paper); padding: 1.15rem 1rem 1.25rem; }
.proof b { display: block; font: 400 clamp(1.35rem, 3.4vw, 2rem)/1.05 var(--head); color: var(--gold-text); margin-bottom: .45rem; }
.proof span { color: var(--muted); font-size: .92rem; line-height: 1.5; display: block; }
@media (min-width: 640px) { .proof li { padding: 1.5rem 1.35rem; } .proof span { font-size: .98rem; } }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); } .split--wide { grid-template-columns: 1.15fr .85fr; } }
.split-img { overflow: hidden; }
.split-img img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }

/* ---------- services ---------- */
.svc { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(35 31 32 / .12); }
.svc-img { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 1.1rem 1.15rem 1.3rem; }
.svc h3 { margin: 0 0 .35rem; }
.svc p { margin: 0; color: var(--muted); font-size: .98rem; }
.svc .link-arrow { margin-top: .9rem; font-size: .92rem; }

/* ---------- call to action band ---------- */
.cta { position: relative; overflow: hidden; }
.cta-in { display: grid; gap: 1.5rem; align-items: end; }
.cta h2 { max-width: 18ch; }
.cta p { color: var(--on-ink-2); max-width: 36rem; }
.cta-line { position: absolute; right: -2rem; top: 1.5rem; width: min(46vw, 34rem); height: auto; opacity: .55; pointer-events: none; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1.2fr .8fr; } .cta .btn-row { justify-content: flex-end; } }

/* ---------- inner page opening ---------- */
.phero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; isolation: isolate; }
.phero-in { padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.phero h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 18ch; }
.phero .lede { color: var(--on-ink-2); }
.phero .eyebrow { color: var(--gold); }
.phero--img .lede, .phero--img .crumbs { color: #e6dfd3; }
.phero--img { min-height: min(72svh, 40rem); display: flex; align-items: flex-end; }
.phero--img .phero-bg { position: absolute; inset: 0; z-index: -2; }
.phero--img .phero-bg img { width: 100%; height: 100%; object-fit: cover; }
.phero--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(35 31 32 / .05) 0%, rgb(35 31 32 / .35) 45%, rgb(35 31 32 / .92) 100%); }
.crumbs { font-size: .85rem; color: var(--on-ink-2); margin: 0 0 1.1rem; letter-spacing: .03em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--gold-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- design page ---------- */
.dstats { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.dstats li { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.dstats svg { width: 1.7rem; height: 1.7rem; color: var(--gold); }
.dstats b { font: 500 1.3rem/1 var(--head); }
.facades { display: grid; gap: 1rem; }
.facade-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone); }
.facade-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.facade-stage img.is-on { opacity: 1; }
.facade-stage noscript img, .facade-stage img:first-child { opacity: 1; }
.facade-stage.is-ready img:first-child:not(.is-on) { opacity: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 1px solid var(--line); padding: .5rem .9rem .5rem .55rem; min-height: 2.75rem; cursor: pointer; font-size: .92rem; }
.swatch i { width: 1.6rem; height: 1.6rem; display: block; clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sw-white-timber { background: linear-gradient(90deg, #f3f0ea 0 60%, #b88c5f 60%); }
.sw-black-timber { background: linear-gradient(90deg, #2c2829 0 60%, #8f6a45 60%); }
.sw-white { background: linear-gradient(90deg, #f6f4ef 0 60%, #dcd8d0 60%); }
.sw-dark { background: linear-gradient(90deg, #3d3839 0 60%, #a39d93 60%); }
.sw-light { background: linear-gradient(90deg, #f3f0ea 0 60%, #c9c2b5 60%); }
.sw-stone { background: linear-gradient(90deg, #f3f0ea 0 60%, #b8ab92 60%); }
.facade-note { font-size: .85rem; color: var(--muted); margin: 0; }
.plan { margin: 0; background: #fff; border: 1px solid var(--line); padding: .6rem; }
.plan a { display: block; }
.plan img { width: 100%; }
.plan figcaption { font-size: .85rem; color: var(--muted); padding: .6rem .2rem 0; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.features li { padding: .95rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.features b { font: 500 1.15rem/1.3 var(--head); }
.features span { color: var(--muted); }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
h2.statement { font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.22; }
.small-print { font-size: .85rem; color: var(--muted); max-width: 52rem; }
.on-ink .small-print { color: var(--on-ink-2); }

/* ---------- gallery page ---------- */
.ggrid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 760px) { .ggrid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .ggrid { grid-template-columns: repeat(4, 1fr); } }
.ggrid .ph[hidden] { display: none; }
.ggrid .ph a { display: block; text-decoration: none; }
.ggrid .ph figcaption { font-size: .82rem; }
.ggrid .ph-img { aspect-ratio: 1 / 1; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: var(--on-ink); }
.lightbox::backdrop { background: rgb(20 17 18 / .94); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lb-fig { margin: 0; display: grid; place-items: center; gap: .8rem; padding: 3.5rem 1rem 1rem; max-height: 100%; }
.lb-fig img { max-width: min(100%, 1200px); max-height: calc(100vh - 9rem); width: auto; height: auto; }
.lb-fig figcaption { color: var(--on-ink-2); font-size: .95rem; text-align: center; }
.lb-bar { display: flex; gap: .6rem; padding: 0 1rem 1.25rem; }
.lb-btn { background: rgb(255 255 255 / .06); border: 1px solid var(--line-ink); color: var(--on-ink); min-width: 3rem; min-height: 3rem; padding: .5rem 1rem; cursor: pointer; font-size: .95rem; }
.lb-close { position: absolute; top: .75rem; right: .75rem; }

/* ---------- the build, stage by stage ---------- */
.story { display: grid; gap: 1.5rem; }
.story-fig { position: sticky; top: calc(var(--hd) + .5rem); z-index: 1; background: var(--paper-2); margin: 0 calc(var(--gutter) * -1); padding: .5rem var(--gutter); }
.story-fig svg { width: 100%; height: auto; max-height: 40svh; }
.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.story-steps li { counter-increment: st; padding: 1.4rem 0 1.4rem 3.2rem; border-top: 1px solid var(--line); position: relative; min-height: 40svh; opacity: .45; transition: opacity .5s; }
.story-steps li.is-on { opacity: 1; }
.story-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 1.35rem; font: 400 1.5rem/1 var(--head); color: var(--gold-text); }
.story-steps h3 { margin-bottom: .35rem; }
.story-steps p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .story { grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
  .story-fig { order: 2; margin: 0; padding: 0; background: none; top: calc(var(--hd) + 2rem); }
  .story-fig svg { max-height: 70svh; }
  .story-steps li { min-height: 52svh; }
}
.st { transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-stage="1"] .st-2, [data-stage="1"] .st-3, [data-stage="1"] .st-4, [data-stage="1"] .st-5,
[data-stage="2"] .st-3, [data-stage="2"] .st-4, [data-stage="2"] .st-5,
[data-stage="3"] .st-4, [data-stage="3"] .st-5,
[data-stage="4"] .st-5 { opacity: 0; transform: translateY(-6px); }
[data-stage="3"] .st-until-2, [data-stage="4"] .st-until-2, [data-stage="5"] .st-until-2,
[data-stage="4"] .st-until-3, [data-stage="5"] .st-until-3 { opacity: 0; }

/* ---------- prose, lists, faq ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2rem; }
.prose li { margin-bottom: .4rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .75rem; height: .5rem; background: var(--gold-2); clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%); }
.why { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; padding: 0; margin: 0; }
.why li { background: var(--paper); padding: 1.4rem 1.25rem; }
.why h3 { margin-bottom: .4rem; }
.why p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(3, 1fr); } }
.faq details { border-top: 1px solid var(--line); padding: .25rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative; font: 450 1.15rem/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; font: 300 1.5rem/1 var(--body); color: var(--gold-text); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.cways { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cways li { background: var(--paper); padding: 1.1rem 1.15rem; display: grid; gap: .15rem; }
.cways span { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; }
.cways a, .cways b { font: 400 1.35rem/1.3 var(--head); text-decoration: none; overflow-wrap: anywhere; }
.cways a:hover { text-decoration: underline; }

/* ---------- forms and the quote drawer ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
.form input, .form textarea { width: 100%; border: 1px solid #b9b0a2; background: #fff; padding: .8rem .85rem; font-size: 1rem; border-radius: 0; min-height: 3rem; font-weight: 400; }
.form textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold-2); outline-offset: 0; border-color: var(--ink); }
.form .row2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.form .btn { justify-self: start; }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.carry { display: none; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper-2); border-left: 3px solid var(--gold-2); padding: .6rem .8rem; font-size: .88rem; }
.carry.is-on { display: flex; }
.carry button { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: .85rem; color: var(--muted); padding: .3rem; }

.drawer { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92svh; background: var(--paper); color: var(--text); box-shadow: 0 -20px 60px rgb(0 0 0 / .3); overflow: auto; overscroll-behavior: contain;
  clip-path: polygon(0 14px, 100% 0, 100% 100%, 0 100%);
  transition: translate .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; translate: 0 0; }
.drawer::backdrop { background: rgb(35 31 32 / .6); transition: background-color .45s, overlay .45s allow-discrete, display .45s allow-discrete; }
@starting-style { .drawer[open] { translate: 0 100%; } .drawer[open]::backdrop { background-color: rgb(35 31 32 / 0); } }
.drawer:not([open]) { translate: 0 100%; }
.drawer-in { padding: 2.1rem var(--gutter) 1.5rem; max-width: 40rem; margin: 0 auto; }
.drawer h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .3rem; }
.drawer .lede { font-size: 1rem; margin-bottom: 1.2rem; }
.drawer-x { position: absolute; top: 1.2rem; right: .8rem; background: none; border: 1px solid var(--line); width: 2.75rem; height: 2.75rem; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.drawer-alt { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.drawer-alt a { font-weight: 500; }
@media (min-width: 760px) { .drawer { margin: auto; max-width: 42rem; max-height: 88svh; clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%); } .drawer:not([open]) { translate: 0 40px; } @starting-style { .drawer[open] { translate: 0 40px; } } }

/* ---------- phone bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1px; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px rgb(0 0 0 / .18); transition: transform .35s var(--ease); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.5rem; font-weight: 500; text-decoration: none; font-size: 1rem; letter-spacing: .02em; }
.callbar a:first-child { background: var(--gold); color: var(--ink); }
.callbar a:last-child { color: var(--on-ink); }
.callbar svg { width: 1.1rem; height: 1.1rem; }
body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 980px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: var(--on-ink-2); padding: clamp(3rem, 7vw, 5rem) 0 2rem; font-size: .95rem; border-top: 1px solid var(--line-ink); }
.ft-grid { display: grid; gap: 2.2rem; }
.ft img { height: 64px; width: auto; margin-bottom: 1rem; }
.ft h2 { font: 500 .78rem/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9rem; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ft a { color: var(--on-ink); text-decoration: none; }
.ft a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.ft address { font-style: normal; }
.ft-legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-ink); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .84rem; }
.ft-legal p { margin: 0; }
.credit { color: #9d9487; }
.credit a { color: #b9b0a2; }
@media (min-width: 760px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- arrival on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="photo"] { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); opacity: 1; transform: none; transition: clip-path 1.2s var(--ease); }
.js [data-reveal="photo"].is-in { clip-path: polygon(0 var(--rise), 100% 0, 100% 100%, 0 100%); }

/* ---------- a job's picture carries into its own page ---------- */
@view-transition { navigation: auto; }
.vt-oceans-edge { view-transition-name: oceans-edge; }
.vt-sunset { view-transition-name: sunset; }
.vt-horizon { view-transition-name: horizon; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }

/* ---------- 404 ---------- */
.lost { min-height: 60svh; display: grid; align-items: center; }
.lost .big { font: 400 clamp(4rem, 16vw, 9rem)/1 var(--head); color: var(--gold); margin: 0 0 .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-media img, .hero-media video { animation: none; transform: none; }
  .hf-top, .hf-bot { transform: none; animation: none; }
  .hf-left { transform: none; animation: none; }
  .hf-rise { transform: rotate(-9deg); animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="photo"] { clip-path: polygon(0 var(--rise), 100% 0, 100% 100%, 0 100%); }
  @view-transition { navigation: none; }
}
@media print { .hd, .callbar, .drawer, .tape, .ft-legal .credit { display: none !important; } body { padding: 0; } }
