/* Samuel Osborne Custom Homes — design system
   Ink + bone + brass. Bodoni display, Manrope text. */

:root {
  --ink: #090c11;
  --navy: #0d1826;
  --navy-2: #13233a;
  --bone: #efe9de;
  --paper: #f7f3ec;
  --brass: #c7ac71;
  --brass-deep: #9c8350;
  --line-dark: rgba(239, 233, 222, .14);
  --line-light: rgba(9, 12, 17, .14);
  --mute-dark: rgba(239, 233, 222, .62);
  --mute-light: rgba(9, 12, 17, .62);
  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --text: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: .96;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--brass); font-weight: 400; }
.d-xl { font-size: clamp(3.4rem, 11.5vw, 12.5rem); }
.d-lg { font-size: clamp(2.8rem, 8vw, 8.5rem); }
.d-md { font-size: clamp(2.2rem, 5vw, 4.75rem); line-height: 1.02; }
.d-sm { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.eyebrow.plain::before { display: none; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.75; color: var(--mute-dark); max-width: 56ch; margin: 0; }
.on-light .lede { color: var(--mute-light); }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(88px, 13vw, 200px); }
.on-light { background: var(--paper); color: var(--ink); }
.on-navy { background: linear-gradient(160deg, var(--navy-2), var(--navy) 55%, var(--ink)); }
.rule { height: 1px; background: var(--line-dark); border: 0; margin: 0; }
.on-light .rule { background: var(--line-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 20px 30px;
  border: 1px solid var(--brass);
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
  color: var(--bone);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--brass); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; }
.btn .arr { width: 26px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--ease); }
.btn .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arr { width: 40px; }
.btn.solid { background: var(--brass); color: var(--ink); }
.btn.solid::before { background: var(--bone); }
.on-light .btn { color: var(--ink); border-color: var(--ink); }
.on-light .btn::before { background: var(--ink); }
.on-light .btn:hover { color: var(--bone); }

.link {
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
  display: inline-flex; gap: 14px; align-items: center; padding-bottom: 8px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link:hover { background-size: 0 1px; background-position: right bottom; color: var(--brass); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .5s, padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { background: rgba(9, 12, 17, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: 12px; border-color: var(--line-dark); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--bone); }
.brand .mark {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: url("media/logo.png") no-repeat;
  background-size: 104px 104px; background-position: -29px -18px;
}
.brand .word { display: grid; line-height: 1.1; }
.brand .word b { font-weight: 600; letter-spacing: .26em; font-size: .78rem; text-transform: uppercase; }
.brand .word span { font-size: .56rem; letter-spacing: .5em; text-transform: uppercase; color: var(--brass); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.nav a.n {
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--bone);
  position: relative; padding-block: 6px;
}
.nav a.n::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a.n:hover::after, .nav a.n[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav .tel { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--brass); letter-spacing: 0; }
.burger { display: none; width: 46px; height: 46px; position: relative; z-index: 70; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--bone); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-child { top: 19px; } .burger i:last-child { top: 27px; }
.menu-open .burger i:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu a.m { font-family: var(--display); font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.12; letter-spacing: -.02em; }
.menu a.m:hover, .menu a.m[aria-current] { font-style: italic; color: var(--brass); }
.menu .foot { margin-top: 44px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute-dark); display: grid; gap: 8px; }
.menu .foot a { color: var(--brass); font-size: 1.4rem; font-family: var(--display); font-style: italic; letter-spacing: 0; text-transform: none; }

@media (max-width: 900px) {
  .nav a.n, .nav .tel { display: none; }
  .burger { display: block; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero .media { position: absolute; inset: 0; }
.hero .media video, .hero .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero .media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,12,17,.55) 0%, rgba(9,12,17,.05) 28%, rgba(9,12,17,.35) 60%, var(--ink) 100%),
    linear-gradient(90deg, rgba(9,12,17,.55), transparent 60%);
}
.hero .inner { position: relative; padding: 0 var(--gutter) clamp(28px, 4vw, 56px); }
.hero h1 { margin-bottom: clamp(28px, 4vw, 60px); }
.hero .meta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  border-top: 1px solid var(--line-dark); padding-top: 24px;
}
.hero .meta p { margin: 0; max-width: 46ch; color: var(--mute-dark); font-size: 1rem; }
.hero .now { display: flex; align-items: center; gap: 20px; text-align: right; }
.hero .now small { display: block; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.hero .now b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.hero .now .go { width: 62px; height: 62px; border: 1px solid var(--brass); border-radius: 50%; display: grid; place-items: center; flex: none; transition: background .4s, color .4s; }
.hero .now:hover .go { background: var(--brass); color: var(--ink); }
.side-note { position: absolute; right: var(--gutter); top: 50%; writing-mode: vertical-rl; font-size: .64rem; letter-spacing: .4em; text-transform: uppercase; color: var(--mute-dark); transform: translateY(-50%); }
@media (max-width: 760px) {
  .hero .meta { grid-template-columns: 1fr; }
  .hero .now { text-align: left; justify-content: space-between; }
  .side-note { display: none; }
}

/* page hero (interior pages) */
.page-hero { padding: clamp(150px, 20vw, 260px) var(--gutter) clamp(48px, 7vw, 100px); }
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero .row { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 40px; align-items: end; margin-top: clamp(32px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
@media (max-width: 820px) { .page-hero .row { grid-template-columns: 1fr; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); padding-block: 22px; background: var(--ink); }
.marquee .track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 2.1rem); padding-inline: clamp(20px, 3vw, 46px); white-space: nowrap; display: flex; align-items: center; gap: clamp(40px, 6vw, 92px); }
.marquee span::after { content: ""; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.marquee span:nth-child(even) { font-style: italic; color: var(--brass); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { display: grid; grid-template-columns: minmax(160px, 1fr) 4fr; gap: clamp(24px, 5vw, 80px); }
.manifesto .display { font-size: clamp(1.9rem, 4.2vw, 4.1rem); line-height: 1.12; letter-spacing: -.015em; }
.manifesto .after { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 88px); padding-top: 32px; border-top: 1px solid var(--line-light); }
@media (max-width: 820px) { .manifesto, .manifesto .after { grid-template-columns: 1fr; } }

/* ---------- pillars ---------- */
.pillar { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line-dark); }
.pillar .num { font-family: var(--display); font-style: italic; color: var(--brass); font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
.pillar .copy { grid-column: 1 / span 5; display: grid; gap: 26px; align-content: center; }
.pillar .fig { grid-column: 7 / span 6; }
.pillar.flip .copy { grid-column: 8 / span 5; order: 2; }
.pillar.flip .fig { grid-column: 1 / span 6; order: 1; }
.fig { position: relative; overflow: hidden; background: var(--navy); }
.fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.fig:hover img { transform: scale(1.04); }
.fig.r-32 { aspect-ratio: 3 / 2; } .fig.r-45 { aspect-ratio: 4 / 5; } .fig.r-169 { aspect-ratio: 16 / 9; }
.fig figcaption, .cap { position: absolute; left: 0; bottom: 0; padding: 14px 18px; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; background: var(--ink); color: var(--bone); }
figure { margin: 0; }
@media (max-width: 900px) {
  .pillar .copy, .pillar .fig, .pillar.flip .copy, .pillar.flip .fig { grid-column: 1 / -1; order: initial; }
}

/* ---------- residences list ---------- */
.res-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 88px); }
.res-list { border-top: 1px solid var(--line-dark); }
.res-row {
  display: grid; grid-template-columns: 56px minmax(0, 3.2fr) 1.4fr 1fr 1fr auto; gap: 24px; align-items: center;
  padding-block: clamp(22px, 3vw, 40px); border-bottom: 1px solid var(--line-dark);
  position: relative; transition: padding .5s var(--ease), color .4s;
}
.res-row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--brass); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0; }
.res-row > * { position: relative; z-index: 1; }
.res-row:hover { color: var(--ink); padding-inline: 12px; }
.res-row:hover::before { transform: scaleY(1); }
.res-row .i { font-family: var(--display); font-style: italic; color: var(--brass); transition: color .4s; }
.res-row:hover .i, .res-row:hover .k { color: var(--ink); }
.res-row .name { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 3.5rem); line-height: 1; letter-spacing: -.02em; }
.res-row .k { display: block; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; transition: color .4s; }
.res-row .v { font-size: .98rem; }
.res-row .price { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2.1rem); }
@media (max-width: 980px) {
  .res-row { grid-template-columns: 36px 1fr auto; row-gap: 12px; }
  .res-row .name { grid-column: 2 / 3; }
  .res-row .price { grid-column: 3; grid-row: 1; }
  .res-row .c { grid-column: 2 / -1; display: inline-block; }
  .res-row .c .k { display: inline; margin-right: 8px; }
}
.peek { position: fixed; left: 0; top: 0; width: 340px; aspect-ratio: 4 / 3; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s, scale .35s; background: var(--navy); border: 1px solid var(--brass); overflow: hidden; }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 980px) { .peek { display: none; } }

/* blueprint treatment: black-on-white drawings become light linework on navy */
.blueprint { background: radial-gradient(120% 120% at 20% 0%, var(--navy-2), var(--navy) 60%, #0a1320); position: relative; overflow: hidden; }
.blueprint::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 44px 44px; opacity: .45; }
.blueprint img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: invert(1) grayscale(1) contrast(1.25) brightness(1.15); mix-blend-mode: screen; opacity: .9; padding: clamp(14px, 3vw, 44px); }
.blueprint.cover img { object-fit: cover; padding: 0; }
.peek.blueprint { position: fixed; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); margin-top: clamp(48px, 7vw, 96px); }
.process > div { padding: clamp(28px, 3.4vw, 52px) clamp(20px, 2.6vw, 44px) 0 0; border-right: 1px solid var(--line-light); display: grid; gap: 18px; align-content: start; }
.process > div + div { padding-left: clamp(20px, 2.6vw, 44px); }
.process > div:last-child { border-right: 0; }
.process .n { font-family: var(--display); font-style: italic; color: var(--brass-deep); font-size: 1.2rem; }
.process p { margin: 0; color: var(--mute-light); }
@media (max-width: 820px) { .process { grid-template-columns: 1fr; } .process > div, .process > div + div { border-right: 0; border-bottom: 1px solid var(--line-light); padding: 32px 0; } }

/* ---------- quote band ---------- */
.band { display: grid; grid-template-columns: 5fr 7fr; min-height: 92svh; }
.band .fig { min-height: 60svh; }
.band .txt { padding: clamp(48px, 8vw, 140px) var(--gutter); display: grid; align-content: center; gap: 36px; }
.band blockquote { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 5.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; }
.band blockquote em { color: var(--brass); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 40px; }
.cta .tel-xl { font-family: var(--display); font-style: italic; font-size: clamp(2rem, 5vw, 4.4rem); color: var(--brass); line-height: 1; }
.cta .acts { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); border-top: 1px solid var(--line-dark); padding: clamp(56px, 7vw, 100px) var(--gutter) 28px; }
.site-foot .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.site-foot .logo { width: 170px; margin: -24px 0 0 -22px; }
.site-foot h4 { font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brass); margin: 0 0 20px; font-weight: 500; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot li a:hover { color: var(--brass); }
.site-foot .big { font-family: var(--display); font-style: italic; font-size: 1.7rem; color: var(--brass); }
.site-foot .base { margin-top: clamp(48px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .76rem; color: var(--mute-dark); letter-spacing: .04em; }
.site-foot .base a:hover { color: var(--brass); }
.wordmark { font-family: var(--display); font-size: clamp(3rem, 13.2vw, 15rem); line-height: .8; letter-spacing: -.035em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(199, 172, 113, .38); margin: clamp(40px, 6vw, 80px) 0 0; text-align: center; user-select: none; }
@media (max-width: 900px) { .site-foot .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .top { grid-template-columns: 1fr; } }

/* ---------- listing detail blocks (residences page) ---------- */
.listing { display: grid; grid-template-columns: 7fr 5fr; border-top: 1px solid var(--line-dark); }
.listing:nth-of-type(even) { grid-template-columns: 5fr 7fr; }
.listing:nth-of-type(even) .draw { order: 2; }
.listing .draw { min-height: clamp(340px, 46vw, 720px); border-right: 1px solid var(--line-dark); }
.listing:nth-of-type(even) .draw { border-right: 0; border-left: 1px solid var(--line-dark); }
.listing .draw img { position: absolute; inset: 0; }
.listing .info { padding: clamp(36px, 5vw, 88px) var(--gutter); display: grid; align-content: center; gap: 30px; }
.listing .status { display: inline-flex; align-items: center; gap: 10px; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.listing .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 5px rgba(199,172,113,.18); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); margin: 0; }
.specs div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.specs dt { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mute-dark); }
.specs dd { margin: 4px 0 0; font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.9rem); }
@media (max-width: 900px) {
  .listing, .listing:nth-of-type(even) { grid-template-columns: 1fr; }
  .listing .draw, .listing:nth-of-type(even) .draw { order: 0; border: 0; border-bottom: 1px solid var(--line-dark); }
}

/* ---------- collection grid ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 32px); }
.gallery .g1 { grid-column: 1 / span 8; } .gallery .g2 { grid-column: 9 / span 4; align-self: end; }
.gallery .g3 { grid-column: 2 / span 4; } .gallery .g4 { grid-column: 6 / span 7; margin-top: clamp(40px, 8vw, 140px); }
.gallery .g5 { grid-column: 3 / span 8; }
.gallery .note { grid-column: 4 / span 6; text-align: center; padding-block: clamp(40px, 7vw, 120px); display: grid; gap: 24px; justify-items: center; }
@media (max-width: 820px) { .gallery > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact .aside { display: grid; gap: 30px; position: sticky; top: 120px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; padding-top: 30px; margin-bottom: 22px; }
.field.full { grid-column: 1 / -1; }
.field label { position: absolute; left: 0; top: 0; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mute-light); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-light); background: transparent; padding: 10px 0 14px;
  font: inherit; font-family: var(--display); font-size: 1.5rem; color: var(--ink); border-radius: 0; outline: 0; transition: border-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; font-size: 1.25rem; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--brass-deep); box-shadow: 0 1px 0 var(--brass-deep); }
.form .send { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.form .send small { color: var(--mute-light); font-size: .8rem; }
.form-done { display: none; padding: 48px 0; }
.form.sent { display: none; } .form.sent + .form-done { display: grid; gap: 20px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact .aside { position: static; } .form { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.in .line > span, .line.in > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .09s; } .line:nth-child(3) > span { transition-delay: .18s; } .line:nth-child(4) > span { transition-delay: .27s; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.fig[data-reveal] { transform: none; opacity: 1; background: transparent; }
.fig[data-reveal] > img, .fig[data-reveal] > video { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease), transform 1.4s var(--ease); }
.fig[data-reveal].in > img, .fig[data-reveal].in > video { clip-path: inset(0); }
.fig[data-reveal] > figcaption { opacity: 0; transition: opacity .6s .9s; }
.fig[data-reveal].in > figcaption { opacity: 1; }

.curtain { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; animation: lift 1s var(--ease) 1.1s forwards; }
.curtain img { width: 190px; animation: fadein .9s ease both; }
@keyframes lift { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes fadein { from { opacity: 0; transform: scale(.94); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span, [data-reveal], .fig[data-reveal] > * { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; }
  .marquee .track { animation: none; }
  .curtain { display: none; }
}


/* ===== v2: direction from Ben's reference — floating pill nav, centered wordmark hero, softer serif ===== */
:root {
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --ink: #101113;
  --navy: #101a27;
}
.display { font-weight: 500; letter-spacing: -.015em; line-height: 1; }
.display em { font-weight: 400; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[id] { scroll-margin-top: 90px; }

.site-head, .site-head.scrolled {
  top: 18px; inset-inline: 0; bottom: auto; padding: 0 14px; justify-content: center;
  background: none; border: 0; pointer-events: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.pill {
  pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 6px; max-width: 100%;
  border-radius: 999px; background: rgba(22, 23, 25, .74); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
  overflow-x: auto; scrollbar-width: none; transition: background .4s;
}
.pill::-webkit-scrollbar { display: none; }
.scrolled .pill { background: rgba(16, 17, 19, .9); }
.pill a {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; flex: none;
  font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: rgba(239, 233, 222, .68); transition: color .3s, background .3s;
}
.pill a:hover { color: var(--bone); background: rgba(255, 255, 255, .05); }
.pill a[aria-current] { color: var(--bone); background: rgba(255, 255, 255, .13); }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pill .sep { width: 1px; align-self: stretch; margin: 4px 6px; background: rgba(255, 255, 255, .14); flex: none; }
.pill .mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: url("media/logo.png") no-repeat;
  background-size: 50px 50px; background-position: -14px -9px;
}
@media (max-width: 560px) { .site-head, .site-head.scrolled { top: 12px; padding: 0 10px; } .pill a { padding: 11px 13px; gap: 8px; font-size: .64rem; } }

.hero-c { display: grid; grid-template-rows: 1fr auto auto; justify-content: stretch; text-align: center; }
.hero-c .media video { filter: saturate(.72) contrast(1.02); }
.hero-c .media::after {
  background:
    linear-gradient(180deg, rgba(16,17,19,.5) 0%, rgba(16,17,19,.12) 30%, rgba(16,17,19,.5) 62%, rgba(16,17,19,.94) 100%),
    radial-gradient(70% 45% at 50% 62%, rgba(16,17,19,.45), transparent 70%);
}
.hero-tag {
  position: absolute; top: clamp(96px, 13vh, 130px); left: var(--gutter); margin: 0; z-index: 1;
  display: flex; align-items: center; gap: 12px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(239,233,222,.82);
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.hero-c .mid { position: relative; grid-row: 2; padding: 0 var(--gutter) clamp(40px, 11vh, 130px); }
.hero-c .trio { margin: 0 0 clamp(18px, 3vh, 34px); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }
.hero-c h1 { margin: 0; font-weight: 400; }
.hero-c .pre { display: block; font-family: var(--text); font-weight: 400; font-size: clamp(.95rem, 1.7vw, 1.45rem); letter-spacing: .72em; margin-right: -.72em; text-transform: uppercase; }
.hero-c .big { font-family: var(--display); font-weight: 400; font-size: clamp(3.9rem, 16.5vw, 15.5rem); line-height: .98; letter-spacing: -.012em; text-transform: uppercase; }
.hero-c .line { padding-bottom: .06em; }
.hero-c .sub { margin: clamp(10px, 2vh, 22px) 0 0; font-size: clamp(1rem, 1.3vw, 1.2rem); color: rgba(239,233,222,.88); }
.hero-foot { position: relative; grid-row: 3; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--gutter) clamp(26px, 4vw, 48px); text-align: left; }
.hero-foot .explore { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.hero-foot .explore span { color: var(--brass); font-size: 1.1rem; transition: transform .4s var(--ease); }
.hero-foot .explore:hover span { transform: translateY(5px); }
.hero-foot .feat { display: grid; gap: 6px; text-align: right; }
.hero-foot .feat small { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(239,233,222,.6); }
.hero-foot .feat b { font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.35rem); display: inline-flex; gap: 12px; justify-content: flex-end; align-items: center; }
.hero-foot .feat b span { transition: transform .4s var(--ease); }
.hero-foot .feat:hover b span { transform: translate(3px, -3px); color: var(--brass); }

.page-hero { padding-top: clamp(140px, 18vw, 240px); }
.res-row .name, .res-row .price, .specs dd, .site-foot .big, .cta .tel-xl { font-weight: 500; }
.manifesto .display { font-weight: 400; }
.field input, .field textarea, .field select { font-weight: 500; }
.wordmark { text-transform: uppercase; font-weight: 400; font-size: clamp(2.4rem, 10.6vw, 12rem); letter-spacing: 0; line-height: .9; }
.hero-foot .explore, .hero-foot .feat small, .hero-c .trio { white-space: nowrap; }
@media (max-width: 560px) {
  .hero-c .trio { font-size: .6rem; letter-spacing: .2em; }
  .hero-foot { gap: 12px; }
  .hero-foot .explore { font-size: .6rem; letter-spacing: .18em; gap: 10px; }
  .hero-foot .feat small { font-size: .56rem; letter-spacing: .16em; }
}

/* hero tag sits in the layout flow so the wordmark block can never ride up into it */
.hero-tag {
  position: relative; top: auto; left: auto; grid-row: 1; align-self: start; justify-self: start;
  margin: clamp(92px, 13vh, 128px) var(--gutter) clamp(36px, 7vh, 72px);
}

/* ===== depth: scroll-linked camera moves (values set by main.js; nothing here applies without the .depth class) ===== */
body { overflow-x: clip; }
/* photographs pull back from a close crop to the full frame as they rise into view */
.depth .fig > img.zoom, .depth .fig:hover > img.zoom {
  transform: scale(calc(1.32 - .32 * var(--z, 0))); transform-origin: 50% 58%; will-change: transform;
  transition: clip-path 1.3s var(--ease), transform .18s linear;
}
/* hero: the film pushes in and the wordmark lifts away as you leave it */
.depth .hero-c .media video { transform: scale(calc(1.06 + .26 * var(--fly, 0))); will-change: transform; }
.depth .hero-c .mid { transform: translate3d(0, calc(-110px * var(--fly, 0)), 0); opacity: calc(1 - 1.6 * var(--fly, 0)); }
/* pinned band: a window opens onto the photograph while the camera pulls back */
.depth .pin .fig { clip-path: inset(calc(16% * (1 - var(--pin, 0))) calc(20% * (1 - var(--pin, 0)))); background: transparent; will-change: clip-path; }
.depth .pin .fig > img { transform: scale(calc(1.45 - .45 * var(--pin, 0))); transform-origin: 50% 62%; transition: none; will-change: transform; }
@media (min-width: 901px) {
  .depth .pin { height: 185svh; }
  .depth .pin .band { position: sticky; top: 0; height: 100svh; min-height: 0; }
  .depth .pin .band .fig { min-height: 0; height: 100svh; }
}


/* ===== residence, community, approach and private-list pages ===== */
.page-hero .eyebrow a { color: inherit; border-bottom: 1px solid currentColor; }
.plate { height: clamp(340px, 60vw, 860px); border-block: 1px solid var(--line-dark); }
.plate img { position: absolute; inset: 0; }
.depth .plate img { transform: scale(calc(1.22 - .22 * var(--plate, 0))); transform-origin: 50% 55%; will-change: transform; }
.specs.three { grid-template-columns: repeat(3, 1fr); }
.specs dd a { border-bottom: 1px solid currentColor; }
.on-light .specs, .on-light .specs div { border-color: var(--line-light); }
.on-light .specs dt { color: var(--mute-light); }
.manifesto .after { align-items: center; }
.manifesto .after.dark { border-top-color: var(--line-dark); }
.comm { padding-block: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line-dark); }
.comm .res-head { margin-bottom: clamp(28px, 4vw, 56px); }
@media (max-width: 700px) { .specs.three { grid-template-columns: repeat(2, 1fr); } }

/* form: send failure message and disabled button */
.form-error { grid-column: 1 / -1; margin: 18px 0 0; color: #a3341f; font-size: .95rem; }
.form [hidden] { display: none; }
.form .btn[disabled] { opacity: .5; pointer-events: none; }


/* ===== Ben's content: photo plates, plans, features, founders, five-step process, portfolio ===== */
.plate.photo { position: relative; overflow: hidden; background: var(--ink); }
.plate.photo img { width: 100%; height: 100%; object-fit: cover; }
.listing .draw.photo { position: relative; overflow: hidden; }
.listing .draw.photo img { width: 100%; height: 100%; object-fit: cover; }
.peek.cover img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.res-row .price.st { font-size: clamp(1rem, 1.3vw, 1.25rem); font-style: italic; color: var(--brass); white-space: nowrap; }
.res-row:hover .price.st { color: var(--ink); }
.manifesto .after.top { align-items: start; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.feat-list li { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--display); font-size: clamp(1.2rem, 1.7vw, 1.6rem); font-weight: 500; display: flex; gap: 16px; align-items: baseline; }
.feat-list li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--brass); transform: rotate(45deg) translateY(-3px); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(14px, 2vw, 32px); margin-top: clamp(48px, 7vw, 100px); }
.plate.plan { height: auto; aspect-ratio: 2000 / 1340; margin: 0; border: 1px solid var(--line-dark); }
.gallery.one { display: block; margin-top: clamp(14px, 2vw, 32px); }
.gallery.one .fig { margin: 0; }
.process.five { grid-template-columns: repeat(5, 1fr); }
.process.dark { border-top-color: var(--line-dark); }
.process.dark > div { border-right-color: var(--line-dark); }
.process.dark p { color: var(--mute-dark); }
.process.dark .n { color: var(--brass); }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 56px); align-items: end; margin-top: clamp(40px, 6vw, 80px); }
.founder { margin: 0; display: grid; gap: 16px; }
.founder img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.founder figcaption { display: grid; gap: 2px; }
.founder b { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; }
.founder span { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-deep); }
.founders .say { display: grid; gap: 26px; padding-left: clamp(0px, 3vw, 48px); }
.pad:not(.on-light) .founder span { color: var(--brass); }
.folio { columns: 3 300px; column-gap: clamp(14px, 2vw, 32px); margin-top: clamp(14px, 2vw, 32px); }
.folio .fig { margin: 0 0 clamp(14px, 2vw, 32px); break-inside: avoid; }
.folio .fig img { height: auto; }
@media (max-width: 1100px) { .process.five { grid-template-columns: repeat(2, 1fr); } .process.five > div { padding-bottom: 28px; border-bottom: 1px solid var(--line-light); } .process.five > div:nth-child(odd) { padding-left: 0; } .process.five > div:nth-child(even) { border-right: 0; } }
@media (max-width: 900px) { .feat-list { grid-template-columns: repeat(2, 1fr); } .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } .founders .say { grid-column: 1 / -1; padding-left: 0; } }
@media (max-width: 560px) { .feat-list, .process.five { grid-template-columns: 1fr; } .process.five > div { padding-left: 0; border-right: 0; } }

/* menu slides away on scroll down, returns on scroll up */
.site-head { transition: transform .5s var(--ease); will-change: transform; }
.site-head.nav-hide { transform: translateY(calc(-100% - 40px)); }
@media (prefers-reduced-motion: reduce) { .site-head { transition: none; } }
/* hero: with the corner tag gone, keep the wordmark block clear of the menu */
.hero-c .mid { margin-top: clamp(104px, 15vh, 150px); }

/* intro sentence sitting directly under a page heading */
.page-hero .hero-lede { margin: clamp(20px, 2.6vw, 36px) 0 0; max-width: 46ch; }
/* the intro sentence takes the small gold capitals of the eyebrow line */
.page-hero .hero-lede { font-family: var(--text); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; color: var(--brass); line-height: 2; max-width: 68ch; }

/* paired buttons on a home card */
.acts-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* renderings with a lot of sky: frame on the house, not the clouds */
img.low { object-position: 50% 88%; }
.depth .plate img.low { transform-origin: 50% 80%; }

/* upright (portrait) floor plans */
.plate.plan.tall { aspect-ratio: 3 / 5; }

/* a heading that must stay on a single line: it shrinks on narrow screens instead of wrapping */
.display.one-line { white-space: nowrap; }
.d-xl.one-line { font-size: clamp(2rem, 10.4vw, 12.5rem); }
.d-lg.one-line { font-size: clamp(2rem, 8vw, 8.5rem); }

/* hand-drawn landscape sheets: shown whole on paper white, never cropped */
.gallery.one .fig.sheet { background: #fff; border: 1px solid var(--line-dark); max-width: 980px; margin-inline: auto; }
.fig.sheet img { height: auto; object-fit: contain; display: block; }
.fig.sheet:hover img { transform: none; }
.gallery.one + .gallery.one, .plans + .gallery.one { margin-top: clamp(14px, 2vw, 32px); }

/* privacy policy and terms: a quiet reading column */
.legal { max-width: 860px; }
.legal .eyebrow { margin-bottom: clamp(28px, 4vw, 48px); line-height: 1.9; }
.legal p:not(.eyebrow) { font-size: 1.02rem; line-height: 1.85; color: var(--mute-light); margin: 0 0 1.35em; }
.legal a { color: inherit; border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
