/* ==========================================================================
   DREKO — site styles
   Palette: forest, limestone, cream, brass.  Type: Cormorant Garamond + Archivo.
   ========================================================================== */

:root {
  --forest: #1a3a35;
  --deep: #112925;
  --stone: #e8e4da;
  --stone-2: #ddd7ca;
  --cream: #e8d5c4;
  --brass: #c9a882;
  --brass-ink: #7a5c34;
  --ink: #1c2724;
  --ink-soft: #4a5652;
  --rule: rgba(26, 58, 53, .2);
  --rule-dark: rgba(232, 213, 196, .18);
  --cream-soft: rgba(232, 213, 196, .74);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --band: clamp(80px, 11vw, 148px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--forest); color: var(--cream); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--cream); color: var(--forest); padding: 10px 16px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  max-width: 16ch;
  text-wrap: balance;
}
.title--wide { max-width: 22ch; }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.45;
  max-width: 34ch;
  text-wrap: pretty;
}
.prose p { margin: 0 0 1.1em; max-width: 62ch; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--forest); }
.meta {
  font-family: var(--sans);
  font-stretch: 112%;
  font-size: .8125rem;
  letter-spacing: .015em;
  color: var(--ink-soft);
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--cream { background: var(--cream); color: var(--forest); }
.btn--cream:hover { background: #f3e6da; }
.btn--ghost { border-color: rgba(232, 213, 196, .5); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(232, 213, 196, .08); }
.btn--forest { background: var(--forest); color: var(--cream); }
.btn--forest:hover { background: var(--deep); }
.btn--outline { border-color: var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .2s;
}
.link:hover { opacity: .7; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--cream);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-solid { background: rgba(17, 41, 37, .96); box-shadow: 0 1px 0 var(--rule-dark); }
@supports (backdrop-filter: blur(1px)) { .nav.is-solid { background: rgba(17, 41, 37, .88); backdrop-filter: blur(14px); } }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.nav.is-solid .nav__inner { height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand svg { width: 52px; height: auto; flex: none; }
.brand__word { font-family: "Archivo Black", var(--sans); font-size: 1.05rem; letter-spacing: .32em; line-height: 1; }
.brand__sub { display: block; font-family: var(--sans); font-size: .6875rem; font-stretch: 112%; letter-spacing: .06em; opacity: .7; margin-top: 6px; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: .9375rem; opacity: .82; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"] { border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.nav__cta { padding: 11px 20px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cream); transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 21.5px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--deep); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 48px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li + li { border-top: 1px solid var(--rule-dark); }
.menu a.menu__link { display: block; padding: 18px 0; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; text-decoration: none; }
.menu__foot { margin-top: 36px; display: grid; gap: 6px; font-size: .9375rem; color: var(--cream-soft); }
.menu__foot a { text-decoration: none; color: var(--cream); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  color: var(--cream); background: var(--deep); overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(17, 41, 37, .92) 0%, rgba(17, 41, 37, .55) 38%, rgba(17, 41, 37, .12) 70%, rgba(17, 41, 37, .45) 100%),
    linear-gradient(to right, rgba(17, 41, 37, .55) 0%, rgba(17, 41, 37, 0) 60%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 140px; }
.stair {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.3rem, 9.2vw, 8.4rem);
  line-height: .96; letter-spacing: -.015em;
  margin: 0;
}
.stair span { display: block; white-space: nowrap; }
.stair span:nth-child(2) { padding-left: 1.05em; }
.stair span:nth-child(3) { padding-left: 2.1em; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end;
  margin-top: clamp(32px, 5vh, 56px); padding-top: 28px; border-top: 1px solid var(--rule-dark);
}
.hero__sub { margin: 0 0 22px; max-width: 46ch; font-size: 1.0625rem; color: var(--cream-soft); }
.hero__caption { margin: 0; max-width: 26ch; text-align: right; font-size: .8125rem; font-stretch: 112%; color: var(--cream-soft); }

@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: settle 2.4s var(--ease) both; }
  .stair span, .hero__foot { animation: rise 1.1s var(--ease) both; }
  .stair span:nth-child(1) { animation-delay: .15s; }
  .stair span:nth-child(2) { animation-delay: .32s; }
  .stair span:nth-child(3) { animation-delay: .49s; }
  .hero__foot { animation-delay: .75s; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Bands ---------- */
.band { padding-block: var(--band); }
.band--stone { background: var(--stone); }
.band--stone-2 { background: var(--stone-2); }
.band--forest { background: var(--forest); color: var(--cream); }
.band--deep { background: var(--deep); color: var(--cream); }
.band--forest .meta, .band--deep .meta { color: var(--cream-soft); }
.band--forest .prose p, .band--deep .prose p { color: var(--cream-soft); }
.band--forest .prose strong, .band--deep .prose strong { color: var(--cream); }
.band--tight { padding-block: clamp(56px, 7vw, 96px); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.split__a { grid-column: 1 / span 7; }
.split__b { grid-column: 8 / span 5; }
.split__a--narrow { grid-column: 1 / span 5; }
.split__b--wide { grid-column: 6 / span 7; }

/* ---------- Positioning ---------- */
.positioning__body { padding-top: .6rem; }
.kicker { margin: 28px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--brass-ink); }
.sentence {
  margin: clamp(56px, 8vw, 104px) 0 0; padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 3.7vw, 3.15rem); line-height: 1.18; letter-spacing: -.01em;
  max-width: 28ch; color: var(--forest);
}
.sentence .num { font-weight: 500; }

.principles { margin: clamp(56px, 8vw, 104px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.principle { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px clamp(24px, 4vw, 64px); padding: 30px 0; border-bottom: 1px solid var(--rule); }
.principle h3 { grid-column: 1 / span 5; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; color: var(--forest); }
.principle p { grid-column: 6 / span 7; margin: 0; max-width: 58ch; color: var(--ink-soft); }

/* ---------- Title block (drawing-sheet spec table) ---------- */
.titleblock {
  --tb-bg: var(--stone);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 0; background: var(--rule); border: 1px solid var(--rule);
}
.titleblock div { padding: 14px 16px 15px; background: var(--tb-bg); min-width: 0; }
.titleblock .full { grid-column: 1 / -1; }
.titleblock dt { font-size: .75rem; font-stretch: 112%; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: 3px; }
.titleblock dd { font-variant-numeric: lining-nums; margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; color: var(--forest); }
.band--stone-2 .titleblock { --tb-bg: var(--stone-2); }
.band--forest .titleblock { --tb-bg: var(--forest); }
.band--deep .titleblock { --tb-bg: var(--deep); }
.band--forest .titleblock, .band--deep .titleblock { background: var(--rule-dark); border-color: var(--rule-dark); }
.band--forest .titleblock dt, .band--deep .titleblock dt { color: var(--cream-soft); }
.band--forest .titleblock dd, .band--deep .titleblock dd { color: var(--cream); }

/* ---------- Featured work ---------- */
.feature { align-items: start; }
.feature__text { grid-column: 1 / span 5; position: sticky; top: 110px; }
.feature__text .title { margin-bottom: 26px; }
.feature__text .prose { margin-bottom: 32px; }
.feature__text .titleblock { margin-bottom: 32px; }
.feature__media { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature__media figure { margin: 0; overflow: hidden; }
.feature__media figure:first-child { grid-column: 1 / -1; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature__media figure:first-child img { aspect-ratio: 3 / 2; }
.feature__media figcaption { margin-top: 8px; font-size: .8125rem; font-stretch: 112%; color: var(--cream-soft); }

/* ---------- Services ---------- */
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.services__head p { margin: 0; max-width: 44ch; color: var(--ink-soft); }
.services { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--forest); }
.services__col { padding-top: 18px; }
.services__col + .services__col { border-left: 1px solid var(--rule); padding-left: clamp(24px, 4vw, 56px); }
.services__col:first-child { padding-right: clamp(24px, 4vw, 56px); }
.services__brand { font-size: .8125rem; font-stretch: 112%; color: var(--brass-ink); margin: 0 0 6px; }
.service { padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.service:last-child { border-bottom: 0; }
.service h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.15; color: var(--forest); margin-bottom: 10px; }
.service p { margin: 0; max-width: 48ch; color: var(--ink-soft); }
.service--bridge {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px clamp(24px, 4vw, 64px);
  padding: 30px 0 0; border-top: 1px solid var(--forest); border-bottom: 0;
}
.service--bridge .services__brand { grid-column: 1 / -1; margin: 0; }
.service--bridge h3 { grid-column: 1 / span 5; margin: 0; }
.service--bridge p { grid-column: 6 / span 7; }

/* ---------- Image band ---------- */
.plate { position: relative; margin: 0; background: var(--deep); }
.plate img { width: 100%; height: clamp(380px, 72vh, 820px); object-fit: cover; }
.plate figcaption {
  position: absolute; left: var(--gutter); bottom: 22px; right: var(--gutter);
  font-size: .8125rem; font-stretch: 112%; color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

/* ---------- Care ---------- */
.care-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 48px); }
.care-list li { padding: 18px 0; border-top: 1px solid var(--rule); }
.care-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--forest); }
.care-list span { display: block; margin-top: 4px; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- Residence cards ---------- */
.res-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.res-head .title { grid-column: 1 / span 6; }
.res-head > div { grid-column: 8 / span 5; }
.res-head p { margin: 0 0 24px; color: var(--cream-soft); max-width: 42ch; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.res-card { display: block; text-decoration: none; color: inherit; }
.res-card__img { overflow: hidden; background: var(--deep); }
.res-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.res-card:hover .res-card__img img { transform: scale(1.025); }
.res-card__body { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-top: 18px; }
.res-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.res-card .meta { margin-top: 4px; }

.status {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 12px 6px 10px; border: 1px solid currentColor; border-radius: 100px;
  font-size: .75rem; font-stretch: 112%; letter-spacing: .02em; white-space: nowrap;
  color: var(--brass);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.band--stone .status, .band--stone-2 .status { color: var(--brass-ink); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.quote { margin: 0; }
.quote::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 5rem; line-height: .6; height: 34px; color: var(--brass-ink); }
.quote p { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.55rem); line-height: 1.45; color: var(--forest); text-wrap: pretty; }
.quote footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .9375rem; }
.quote footer span { display: block; color: var(--ink-soft); font-size: .8125rem; font-stretch: 112%; margin-top: 2px; }

/* ---------- Process (true sequence) ---------- */
.steps { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { counter-increment: step; padding: 26px clamp(16px, 2.4vw, 32px) 0 0; border-top: 1px solid var(--forest); }
.step::before { font-variant-numeric: lining-nums; content: counter(step); display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--brass-ink); margin-bottom: 18px; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--forest); margin-bottom: 8px; }
.step p { margin: 0; font-size: .9875rem; color: var(--ink-soft); }

/* ---------- Contact + forms ---------- */
.contact-details { margin: 36px 0 0; display: grid; gap: 18px; }
.contact-details div { border-top: 1px solid var(--rule-dark); padding-top: 14px; }
.contact-details dt { font-size: .75rem; font-stretch: 112%; color: var(--cream-soft); margin-bottom: 2px; }
.contact-details dd { font-variant-numeric: lining-nums; margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.contact-details a:hover { border-color: var(--brass); }
.areas { font-family: var(--sans); margin: 0; font-size: .9375rem; line-height: 1.7; color: var(--cream-soft); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8125rem; font-stretch: 112%; color: var(--cream-soft); }
.field label .opt { opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0 11px;
  background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid rgba(232, 213, 196, .35); border-radius: 0;
  font-family: var(--sans); font-size: 1rem;
  transition: border-color .2s;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e8d5c4' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; }
.field select option { background: var(--deep); color: var(--cream); }
.field input::placeholder, .field textarea::placeholder { color: rgba(232, 213, 196, .38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 var(--brass); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 6px; }
.form__note { margin: 0; font-size: .8125rem; color: var(--cream-soft); max-width: 40ch; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; margin: 0; font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status--error { padding: 16px 18px; border: 1px solid rgba(232, 160, 140, .55); color: var(--cream); }
.form__status--error a { color: var(--cream); font-weight: 600; }
.form-done { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--rule-dark); }
.form-done h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin-bottom: 8px; }
.form-done p { margin: 0; color: var(--cream-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--cream); padding: clamp(64px, 8vw, 96px) 0 40px; border-top: 1px solid var(--rule-dark); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); }
.footer__brand { grid-column: 1 / span 5; }
.footer__tag { margin: 28px 0 0; font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1.08; color: var(--cream); }
.footer__tag span { display: block; }
.footer__tag span:nth-child(2) { padding-left: 1.05em; }
.footer__tag span:nth-child(3) { padding-left: 2.1em; }
.footer__col--nav { grid-column: 7 / span 2; }
.footer__col--contact { grid-column: 9 / span 4; }
.footer__col h2 { font-size: .75rem; font-stretch: 112%; color: var(--cream-soft); margin: 0 0 14px; font-weight: 400; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; }
.footer__col a { text-decoration: none; opacity: .9; }
.footer__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer__base { margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: .8125rem; font-stretch: 112%; color: var(--cream-soft); }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }

/* ---------- Inner page header ---------- */
.page-head { background: var(--forest); color: var(--cream); padding: clamp(150px, 20vw, 220px) 0 clamp(56px, 8vw, 96px); }
.crumbs { margin: 0 0 28px; font-size: .8125rem; font-stretch: 112%; color: var(--cream-soft); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.crumbs a:hover { color: var(--cream); }
.page-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: 1; letter-spacing: -.015em; max-width: 14ch; }
.page-head__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); align-items: end; }
.page-head__row h1 { grid-column: 1 / span 7; }
.page-head__row .lede { grid-column: 8 / span 5; color: var(--cream-soft); margin: 0; }
.page-head .status { margin-bottom: 26px; }

/* ---------- Residences listing ---------- */
.listing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); align-items: center; }
.listing + .listing { margin-top: clamp(72px, 10vw, 128px); padding-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--rule); }
.listing__img { grid-column: 1 / span 7; display: block; overflow: hidden; }
.listing__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.listing__img:hover img { transform: scale(1.02); }
.listing__text { grid-column: 8 / span 5; }
.listing--flip .listing__img { grid-column: 6 / span 7; grid-row: 1; }
.listing--flip .listing__text { grid-column: 1 / span 5; grid-row: 1; }
.listing__text .status { margin-bottom: 20px; }
.listing__text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; color: var(--forest); margin-bottom: 8px; }
.listing__text .meta { margin-bottom: 22px; }
.listing__text .prose { margin-bottom: 26px; }
.listing__text .titleblock { margin-bottom: 28px; }
.portfolio-note { margin: clamp(72px, 10vw, 128px) 0 0; padding-top: 32px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px clamp(24px, 4vw, 64px); }
.portfolio-note h2 { grid-column: 1 / span 5; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--forest); }
.portfolio-note p { grid-column: 6 / span 7; margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 250px); grid-auto-flow: dense; gap: 10px; }
.gallery button { display: block; padding: 0; margin: 0; border: 0; background: var(--stone-2); cursor: zoom-in; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .g-lead { grid-column: span 2; grid-row: span 2; }
.gallery .g-more { display: none; }
.gallery__count { pointer-events: none; }
.gallery--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; background: rgba(17, 41, 37, .82); color: var(--cream); font-size: .75rem; font-stretch: 112%; }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12, 28, 25, .97); color: var(--cream); }
.lightbox::backdrop { background: rgba(12, 28, 25, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); font-size: .8125rem; font-stretch: 112%; color: var(--cream-soft); }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__caption { margin: 0; padding: 14px var(--gutter) 22px; text-align: center; font-size: .9375rem; color: var(--cream-soft); }
.lb-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--rule-dark); border-radius: 50%; color: var(--cream); cursor: pointer; transition: border-color .2s, background-color .2s; }
.lb-btn:hover { border-color: var(--cream); background: rgba(232, 213, 196, .06); }
.lb-btn svg { width: 18px; height: 18px; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }

/* ---------- Residence detail ---------- */
.detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(24px, 4vw, 64px); align-items: start; }
.detail__main { grid-column: 1 / span 7; }
.detail__side { grid-column: 9 / span 4; position: sticky; top: 100px; display: grid; gap: 24px; }
.detail__main .lede { color: var(--forest); max-width: 36ch; margin: 0 0 32px; }
.features { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.features li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: .975rem; }
.features li strong { display: block; font-weight: 600; color: var(--forest); font-size: .9375rem; }
.features li span { color: var(--ink-soft); font-size: .9375rem; }
.leased-card { background: var(--forest); color: var(--cream); padding: 28px; }
.leased-card h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin-bottom: 10px; }
.leased-card p { margin: 0 0 22px; color: var(--cream-soft); font-size: .9875rem; }
.next-link { display: flex; justify-content: space-between; align-items: end; gap: 24px; text-decoration: none; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--rule); }
.next-link .meta { display: block; margin-bottom: 8px; }
.next-link strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; color: var(--forest); }
.next-link svg { width: 40px; flex: none; color: var(--forest); transition: transform .3s var(--ease); }
.next-link:hover svg { transform: translateX(6px); }

/* ---------- Work page ---------- */
.project-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.project-head h2 { text-wrap: balance; grid-column: 1 / span 8; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; color: var(--forest); }
.project-head .meta { display: block; margin-bottom: 14px; }
.project-head > div:last-child { grid-column: 10 / span 3; justify-self: end; }
.project-body { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .feature__text { grid-column: 1 / -1; position: static; }
  .feature__media { grid-column: 1 / -1; }
  .detail__main { grid-column: 1 / -1; }
  .detail__side { grid-column: 1 / -1; position: static; grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--nav, .footer__col--contact { grid-column: span 6; }
}

@media (max-width: 820px) {
  body { font-size: 1rem; }
  .split__a, .split__b, .split__a--narrow, .split__b--wide { grid-column: 1 / -1; }
  .principle h3, .principle p { grid-column: 1 / -1; }
  .principle { padding: 24px 0; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__caption { text-align: left; }
  .services { grid-template-columns: 1fr; }
  .services__col:first-child { padding-right: 0; }
  .services__col + .services__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--forest); margin-top: 8px; }
  .service--bridge h3, .service--bridge p { grid-column: 1 / -1; }
  .care-list { grid-template-columns: 1fr; }
  .res-head .title, .res-head > div { grid-column: 1 / -1; }
  .res-grid, .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .form { grid-template-columns: 1fr; }
  .page-head__row h1, .page-head__row .lede { grid-column: 1 / -1; }
  .listing__img, .listing__text, .listing--flip .listing__img, .listing--flip .listing__text { grid-column: 1 / -1; grid-row: auto; }
  .portfolio-note h2, .portfolio-note p { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 6px; }
  .detail__side { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .project-head h2, .project-head > div:last-child { grid-column: 1 / -1; justify-self: start; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .lightbox__caption { padding-bottom: 84px; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--rule-dark);
    transform: translateY(100%); transition: transform .35s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mbar.is-on { transform: none; }
  .mbar a { display: block; padding: 16px 12px; text-align: center; text-decoration: none; font-weight: 600; font-size: .9375rem; background: var(--deep); color: var(--cream); }
  .mbar a:last-child { background: var(--cream); color: var(--forest); }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 520px) {
  .brand__sub { display: none; }
  .brand svg { width: 44px; }
  .stair span:nth-child(2) { padding-left: .55em; }
  .stair span:nth-child(3) { padding-left: 1.1em; }
  .btn-row .btn { flex: 1 1 auto; }
  .steps { grid-template-columns: 1fr; }
  .footer__col--nav, .footer__col--contact { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---- Builder-only restructure ---- */
.quotes--single { grid-template-columns: minmax(0, 860px); }
.model-fig { margin: clamp(36px, 5vw, 56px) 0 0; }
.model-fig img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.model-fig figcaption { margin-top: 12px; font-size: .8125rem; font-stretch: 112%; color: var(--ink-soft); }
.model-fig figcaption .link { margin-left: 10px; }
.steps--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .steps--five { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 820px) { .steps--five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps--five { grid-template-columns: 1fr; } }
.plate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(to top, rgba(17, 41, 37, .78), rgba(17, 41, 37, 0)); pointer-events: none; }
.plate figcaption { z-index: 1; }
