:root {
  --page-wrap: min(calc(100% - clamp(2rem, 8vw, 8rem)), 1280px);
  --page-section: clamp(5.5rem, 10vw, 10rem);
  --page-radius: 0px;
}

body.site-page { min-width: 320px; }
.site-page main { min-height: 60vh; }

.interior-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 3rem);
  width: var(--page-wrap);
  min-height: 88px;
  transform: translateX(-50%);
}

.interior-header .desktop-nav { gap: clamp(.9rem, 1.7vw, 2rem); }
.interior-header .desktop-nav a[aria-current="page"] { color: var(--gold-light); }

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(760px, 92svh);
  overflow: clip;
  background: var(--canvas-soft);
}

.page-hero-media,
.page-hero::after { position: absolute; inset: 0; }
.page-hero-media { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) brightness(.56); transform: scale(1.035); }
.page-hero::after { content: ""; background: linear-gradient(90deg, rgba(4, 8, 10, .96) 0%, rgba(4, 8, 10, .71) 42%, rgba(4, 8, 10, .18) 78%), linear-gradient(180deg, rgba(4, 8, 10, .55), transparent 40%, rgba(4, 8, 10, .82)); }
.page-hero-quiet { min-height: 620px; }
.page-hero-quiet .page-hero-media { opacity: .68; }

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: var(--page-wrap);
  margin: 0 auto;
  padding: 9rem 0 clamp(4rem, 8vw, 7rem);
}

.page-kicker { color: var(--gold-light); font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.page-title { max-width: 12ch; margin-top: .8rem; font-family: var(--display); font-size: clamp(3.35rem, 6.2vw, 6.4rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.page-title em { color: var(--gold-light); font-style: normal; }
.page-intro { max-width: 52ch; margin-top: 1.35rem; color: rgba(242, 238, 229, .82); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.7rem; }
.page-meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.7rem; color: var(--ink-soft); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; }

.content-section { padding: var(--page-section) 0; }
.content-section-tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.content-section-surface { background: var(--canvas-soft); }
.content-wrap { width: var(--page-wrap); margin: 0 auto; }
.section-heading { max-width: 11ch; font-family: var(--display); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: .94; }
.section-heading-wide { max-width: 17ch; }
.section-copy { max-width: 65ch; margin-top: 1.25rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.section-copy strong { color: var(--ink); font-weight: 500; }

.editorial-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 9vw, 9rem); align-items: start; }
.editorial-media { position: relative; min-height: 560px; overflow: clip; }
.editorial-media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; filter: saturate(.75) brightness(.76); transition: transform 800ms var(--ease); }
.editorial-media:hover img { transform: scale(1.025); }
.editorial-prose { display: grid; gap: 1.3rem; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.75; }
.editorial-prose h2, .editorial-prose h3 { color: var(--ink); font-family: var(--display); font-weight: 400; }
.editorial-prose h2 { font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .95; }
.editorial-prose h3 { margin-top: 1.7rem; font-size: 1.9rem; }
.editorial-prose ul { display: grid; gap: .75rem; margin: .25rem 0 0; padding-left: 1.15rem; }
.editorial-prose blockquote { margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--gold); color: var(--ink); font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; }

.journey-shell { position: relative; background: #080d0f; }
.journey-progress { position: sticky; z-index: 9; top: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.journey-progress span { display: block; width: calc(var(--journey-progress, 0) * 100%); height: 100%; background: var(--gold-light); transform-origin: left center; }
.journey-scene { min-height: 104svh; display: grid; align-items: center; padding: 6rem 0; }
.journey-scene + .journey-scene { border-top: 1px solid rgba(255, 255, 255, .07); }
.journey-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; width: var(--page-wrap); margin: 0 auto; }
.journey-scene .journey-copy { position: relative; z-index: 2; top: auto; left: auto; max-width: none; }
.journey-copy h2 { max-width: 9ch; font-family: var(--display); font-size: clamp(3rem, 6vw, 6.2rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.journey-copy p { max-width: 48ch; margin-top: 1.2rem; color: var(--ink-soft); line-height: 1.7; }
.journey-visual { position: relative; min-height: 620px; overflow: clip; isolation: isolate; }
.journey-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) brightness(.64); transition: transform 900ms var(--ease), filter 700ms var(--ease); }
.journey-scene.is-active .journey-visual img { transform: scale(1.035); filter: saturate(.88) brightness(.75); }
.journey-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(transparent, rgba(4, 8, 10, .9)); }
.journey-note { position: absolute; z-index: 2; right: clamp(1.2rem, 3vw, 2.5rem); bottom: clamp(1.2rem, 3vw, 2.5rem); max-width: 28ch; color: rgba(242, 238, 229, .82); font-size: .82rem; line-height: 1.55; }
.journey-route { display: grid; gap: 1.2rem; margin-top: 2rem; }
.journey-route span { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.journey-route i { color: var(--gold-light); font-size: 1.25rem; }

.step-ledger { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 4rem; border-top: 1px solid var(--line); }
.step-ledger article { padding: 1.6rem 1.2rem 1.6rem 0; }
.step-ledger article + article { padding-left: 1.2rem; border-left: 1px solid var(--line-soft); }
.step-ledger i { color: var(--gold-light); font-size: 1.65rem; }
.step-ledger h3 { margin-top: .8rem; font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.step-ledger p { margin-top: .55rem; color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }

.listing-app { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); min-height: 840px; background: var(--canvas-soft); }
.listing-panel { padding: 7.5rem clamp(1.5rem, 4vw, 4rem) 4rem; }
.listing-map { position: sticky; top: 0; min-height: 100svh; overflow: hidden; background: #0a1114 url('./public/assets/waterfront-generated.png') center/cover; }
.listing-map::before { content: ""; position: absolute; inset: 0; background: rgba(4, 10, 13, .72); }
.map-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(212,176,106,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(212,176,106,.16) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(700px) rotateX(55deg) scale(1.45); transform-origin: center bottom; }
.listing-pin { position: absolute; z-index: 2; left: var(--x); top: var(--y); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(212,176,106,.55); border-radius: 50%; background: rgba(7,11,13,.88); color: var(--gold-light); transform: translate(-50%, -50%); transition: transform 180ms var(--ease), background-color 180ms var(--ease); }
.listing-pin:hover, .listing-pin.is-active { background: var(--gold-light); color: #111; transform: translate(-50%, -50%) scale(1.15); }
.listing-map-card { position: absolute; z-index: 3; right: 2rem; bottom: 2rem; left: 2rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line); background: rgba(7,11,13,.94); }
.listing-map-card strong { display: block; font-family: var(--display); font-size: 1.65rem; font-weight: 400; }
.listing-map-card span { color: var(--ink-soft); font-size: .82rem; }

.filter-bar { display: grid; grid-template-columns: 1.3fr repeat(3, .75fr) auto; gap: .7rem; margin-top: 1.6rem; }
.filter-bar label { display: grid; gap: .35rem; color: var(--ink-soft); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; }
.filter-bar input, .filter-bar select, .contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 46px; padding: .75rem .8rem; border: 1px solid rgba(255,255,255,.18); border-radius: 0; outline: 0; background: rgba(255,255,255,.04); color: var(--ink); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.filter-bar input:focus, .filter-bar select:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold-light); background: rgba(255,255,255,.07); }
.filter-bar option { background: #0b1013; }
.filter-submit { align-self: end; min-height: 46px; border: 0; background: var(--gold-light); color: #111; font-size: .69rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.listing-toolbar { display: flex; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 1rem; color: var(--ink-soft); font-size: .8rem; }
.listing-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.listing-card { display: block; background: #0d1316; text-decoration: none; transition: transform 220ms var(--ease), background-color 220ms var(--ease); }
.listing-card:hover { transform: translateY(-5px); background: #11191d; }
.listing-card img { width: 100%; height: 220px; object-fit: cover; filter: saturate(.72); }
.listing-card-body { padding: 1.2rem; }
.listing-card-price { color: var(--gold-light); font-family: var(--display); font-size: 1.65rem; }
.listing-card h2 { margin-top: .25rem; font-size: 1rem; font-weight: 500; }
.listing-card p { margin-top: .35rem; color: var(--ink-soft); font-size: .78rem; }
.listing-card-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .85rem; color: rgba(242,238,229,.8); font-size: .72rem; }
.prototype-note { margin-top: 1rem; padding: .85rem 1rem; border-left: 1px solid var(--gold); color: var(--ink-soft); font-size: .76rem; line-height: 1.5; }

.property-hero { padding-top: 92px; background: var(--canvas-soft); }
.property-gallery { display: grid; grid-template-columns: 1.55fr .7fr; gap: .55rem; width: var(--page-wrap); margin: 0 auto; }
.property-gallery-main, .property-gallery-side img { width: 100%; object-fit: cover; }
.property-gallery-main { height: 620px; }
.property-gallery-side { display: grid; gap: .55rem; }
.property-gallery-side img { height: calc((620px - .55rem) / 2); }
.property-title-row { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; width: var(--page-wrap); margin: 0 auto; padding: 2.4rem 0 3.5rem; }
.property-title-row h1 { font-family: var(--display); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.property-title-row p { margin-top: .6rem; color: var(--ink-soft); }
.property-price { color: var(--gold-light); font-family: var(--display); font-size: clamp(2.4rem, 4vw, 4.3rem); white-space: nowrap; }
.property-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(3rem, 7vw, 7rem); }
.property-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.property-facts div { padding: 1.5rem 1rem 1.5rem 0; }
.property-facts div + div { padding-left: 1rem; border-left: 1px solid var(--line-soft); }
.property-facts strong { display: block; color: var(--gold-light); font-family: var(--display); font-size: 1.65rem; font-weight: 400; }
.property-facts span { color: var(--ink-soft); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.agent-panel { position: sticky; top: 1rem; padding: 2rem; border: 1px solid var(--line); background: #0d1316; }
.agent-panel img { width: 100%; height: 230px; object-fit: cover; object-position: center top; filter: saturate(.78); }
.agent-panel h2 { margin-top: 1.2rem; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.agent-panel p { margin-top: .55rem; color: var(--ink-soft); font-size: .86rem; }
.agent-panel .button { width: 100%; margin-top: 1.2rem; }

.atlas-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 360px 300px; gap: 1rem; margin-top: 3rem; }
.atlas-card { position: relative; display: flex; align-items: end; overflow: clip; color: var(--ink); text-decoration: none; }
.atlas-card:first-child { grid-row: 1 / 3; }
.atlas-card:last-child { grid-column: 2 / 4; }
.atlas-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.6); transition: transform 700ms var(--ease), filter 500ms var(--ease); }
.atlas-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(4,8,10,.95)); }
.atlas-card:hover img { transform: scale(1.045); filter: saturate(.9) brightness(.72); }
.atlas-card-copy { position: relative; z-index: 2; padding: 1.5rem; }
.atlas-card h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; }
.atlas-card p { max-width: 38ch; margin-top: .4rem; color: rgba(242,238,229,.72); font-size: .82rem; }

.fact-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem; border-top: 1px solid var(--line); }
.fact-ribbon article { padding: 1.6rem 1.3rem 1.6rem 0; }
.fact-ribbon article + article { padding-left: 1.3rem; border-left: 1px solid var(--line-soft); }
.fact-ribbon h3 { font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.fact-ribbon p { margin-top: .6rem; color: var(--ink-soft); font-size: .84rem; }

.blog-feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin-top: 3rem; }
.post-card { display: block; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.post-card img { width: 100%; height: 310px; object-fit: cover; filter: saturate(.72) brightness(.78); transition: filter 250ms var(--ease), transform 600ms var(--ease); }
.post-card:hover img { filter: saturate(.92) brightness(.9); }
.post-card small { display: block; margin-top: 1rem; color: var(--gold-light); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.post-card h2 { max-width: 18ch; margin-top: .5rem; font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; line-height: 1; }
.post-card p { max-width: 54ch; margin-top: .7rem; color: var(--ink-soft); font-size: .87rem; }
.post-stack { display: grid; gap: 1.5rem; }
.post-stack .post-card img { height: 180px; }
.post-stack .post-card h2 { font-size: 1.8rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; margin-top: 4rem; }
.blog-grid .post-card img { height: 220px; }
.blog-grid .post-card h2 { font-size: 1.8rem; }

.resource-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
.resource-link { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; min-height: 128px; padding: 1.5rem; border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: border-color 180ms var(--ease), transform 180ms var(--ease); }
.resource-link:hover { border-color: var(--gold); transform: translateY(-3px); }
.resource-link > i { color: var(--gold-light); font-size: 2rem; }
.resource-link h2 { font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.resource-link p { margin-top: .35rem; color: var(--ink-soft); font-size: .83rem; }
.resource-link .ph-arrow-right { font-size: 1.15rem; }

.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); }
.contact-details { display: grid; gap: 2rem; align-content: start; }
.contact-person { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.contact-person h3 { font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.contact-person a, .contact-person p { display: block; margin-top: .35rem; color: var(--ink-soft); text-decoration: none; }
.contact-person a:hover { color: var(--gold-light); }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-form label { display: grid; gap: .45rem; color: var(--ink-soft); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button { justify-self: start; border: 0; }
.form-status { min-height: 1.4em; color: var(--gold-light); font-size: .8rem; }

.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); background: #060a0c; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; width: var(--page-wrap); margin: 0 auto; }
.footer-brand img { width: 96px; height: auto; }
.footer-brand p { max-width: 34ch; margin-top: 1rem; color: var(--ink-soft); font-size: .84rem; }
.footer-links { display: grid; align-content: start; gap: .55rem; }
.footer-links strong { margin-bottom: .4rem; color: var(--gold-light); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: var(--ink-soft); font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; width: var(--page-wrap); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); color: rgba(182,181,175,.68); font-size: .7rem; }

[data-enter] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-enter].is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .interior-header { grid-template-columns: 94px 1fr auto; }
  .interior-header .desktop-nav { display: none; }
  .interior-header .menu-button { display: block; justify-self: end; }
  .interior-header .header-cta { display: none; }
  .listing-app { grid-template-columns: 1fr; }
  .listing-map { position: relative; min-height: 620px; order: -1; }
  .property-layout { grid-template-columns: 1fr; }
  .agent-panel { position: static; max-width: 520px; }
}

@media (max-width: 860px) {
  :root { --page-wrap: min(calc(100% - 2rem), 720px); --page-section: 5rem; }
  .page-hero { min-height: 720px; }
  .page-hero::after { background: linear-gradient(180deg, rgba(4,8,10,.7), rgba(4,8,10,.26) 28%, rgba(4,8,10,.94) 78%); }
  .page-title { max-width: 10ch; font-size: clamp(3rem, 13vw, 5rem); }
  .editorial-split, .journey-grid, .contact-layout, .blog-feature { grid-template-columns: 1fr; }
  .editorial-media { min-height: 430px; }
  .editorial-media img { min-height: 430px; }
  .journey-scene { min-height: auto; padding: 5rem 0; }
  .journey-visual { min-height: 470px; order: -1; }
  .journey-copy h2 { font-size: clamp(3rem, 12vw, 5rem); }
  .step-ledger { grid-template-columns: 1fr 1fr; }
  .step-ledger article + article { border-left: 0; padding-left: 0; }
  .step-ledger article { border-bottom: 1px solid var(--line-soft); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar label:first-child { grid-column: 1 / -1; }
  .listing-results { grid-template-columns: 1fr; }
  .property-gallery { grid-template-columns: 1fr; }
  .property-gallery-main { height: 480px; }
  .property-gallery-side { grid-template-columns: 1fr 1fr; }
  .property-gallery-side img { height: 220px; }
  .property-title-row { grid-template-columns: 1fr; }
  .property-price { justify-self: start; }
  .atlas-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 420px 280px 300px; }
  .atlas-card:first-child { grid-column: 1 / 3; grid-row: auto; }
  .atlas-card:last-child { grid-column: 1 / 3; }
  .fact-ribbon { grid-template-columns: 1fr 1fr; }
  .fact-ribbon article + article { border-left: 0; padding-left: 0; }
  .fact-ribbon article { border-bottom: 1px solid var(--line-soft); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .resource-index { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .page-hero { min-height: 680px; }
  .page-hero-inner { padding-bottom: 3rem; }
  .page-actions { align-items: stretch; flex-direction: column; }
  .page-actions .button { width: 100%; }
  .journey-visual { min-height: 380px; }
  .step-ledger, .filter-bar, .listing-results, .property-facts, .atlas-grid, .fact-ribbon, .blog-grid, .contact-form, .footer-grid { grid-template-columns: 1fr; }
  .filter-bar label:first-child, .contact-form .full, .footer-brand { grid-column: auto; }
  .listing-panel { padding: 6.5rem 1rem 3rem; }
  .listing-map { min-height: 520px; }
  .listing-map-card { right: 1rem; bottom: 1rem; left: 1rem; }
  .property-gallery-main { height: 340px; }
  .property-gallery-side { grid-template-columns: 1fr; }
  .property-gallery-side img { height: 240px; }
  .property-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .atlas-grid { grid-template-rows: none; }
  .atlas-card, .atlas-card:first-child, .atlas-card:last-child { grid-column: auto; min-height: 300px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  [data-enter] { opacity: 1; transform: none; transition: none; }
  .page-hero-media, .journey-visual img, .editorial-media img, .atlas-card img { transform: none !important; transition: none !important; }
  .journey-progress { display: none; }
}
