/* =================================================================
   50 Commercial Street — design system v2
   Editorial luxury rental · Greenpoint, Brooklyn
   Burgundy · light green · cream — high-design, heavier type, sharp
   ================================================================= */

/* ---- Tokens ---- */
:root {
  --cream:    #efe9dc;   /* primary canvas — bone */
  --cream-2:  #e2dacb;   /* secondary panels — putty */
  --wine:     #6a2535;   /* PRIMARY — burgundy */
  --wine-dk:  #4f1a27;   /* deep burgundy (footer / hover) */
  --wine-2:   #7c2f40;
  --ink:      #2a2320;   /* warm espresso body text */
  --ink-soft: #5d534c;
  --accent:    #7d8a76;   /* accent (default: Greenpoint sage) */
  --accent-dk: #5f6e58;   /* accent, deep (labels on light) */
  --accent-lt: #aab69f;   /* accent, light (on burgundy) */
  --white:    #ffffff;

  --line:     rgba(42,35,32,0.16);
  --line-soft:rgba(42,35,32,0.10);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);

  --gutter: 5vw;
  --maxw: 1320px;
  --wide: 1680px;
  --nav-h: 84px;
  --r: 2px;            /* near-sharp corners */
}

@media (min-width: 1024px){
  :root { --gutter: clamp(56px, 6vw, 130px); --nav-h: 96px; }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }

::selection { background: var(--accent); color: var(--wine-dk); }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* ---- Layout helpers ---- */
.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--wide { max-width: var(--wide); }
.section { padding-block: clamp(72px, 11vw, 168px); }
.section--tight { padding-block: clamp(52px, 7vw, 104px); }
.panel { background: var(--cream-2); }
.bleed { padding-inline: var(--gutter); }

/* ---- Typography ---- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 520; line-height: 1.04; letter-spacing: -0.015em; color: var(--wine); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent-dk);
  display: inline-flex; align-items: center; gap: 0.8em;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.eyebrow.is-light { color: var(--accent-lt); }
.eyebrow.is-light::before { background: var(--accent); }
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.45; font-weight: 450;
  color: var(--ink-soft); max-width: 32ch; text-wrap: pretty;
}
.measure { max-width: 54ch; text-wrap: pretty; }

/* ---- Buttons / links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--sans); font-size: 0.84rem; font-weight: 650;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1.05em 1.9em; border-radius: var(--r);
  border: 1.5px solid transparent;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--wine); color: var(--cream); }
.btn--primary:hover { background: var(--wine-dk); }
.btn--ghost { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: var(--cream); }
.btn--on-dark { background: var(--cream); color: var(--wine); }
.btn--on-dark:hover { background: var(--white); }
.btn--green { background: var(--accent); color: var(--wine-dk); }
.btn--green:hover { background: var(--accent-lt); }

.tlink {
  font-family: var(--sans); font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--wine); position: relative; padding-bottom: 3px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: currentColor; transition: right .45s var(--ease);
}
.tlink:hover::after { right: 0; }

/* ============================================================
   NAV  (logo · larger wordmark · Availability + Menu)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(245,239,225,0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(245,239,225,0.94); }
.nav__inner {
  width: 100%; max-width: var(--wide); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.brand__mark { width: 46px; height: 46px; }
.brand__wm { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand__wm b {
  font-family: var(--serif); font-weight: 560;
  font-size: 1.18rem; letter-spacing: 0.01em; color: var(--wine);
}
.brand__wm span {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.34em; color: var(--accent-dk); text-transform: uppercase;
}

.nav__cta { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); }
.nav__cta .btn { padding: 0.78em 1.45em; }

/* menu toggle button */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-weight: 650; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine);
  background: none; border: none; padding: 0.4rem 0;
}
.menu-toggle__lines { display: flex; flex-direction: column; gap: 4px; width: 26px; }
.menu-toggle__lines span { display: block; height: 2px; background: var(--wine); transition: transform .4s var(--ease), opacity .3s var(--ease), width .4s var(--ease); }
.menu-toggle__lines span:nth-child(1){ width: 26px; }
.menu-toggle__lines span:nth-child(2){ width: 18px; align-self: flex-end; }
.menu-toggle .lbl-close { display: none; }
@media (max-width: 560px){ .menu-toggle .lbl { display: none; } }

/* ============================================================
   OVERLAY MENU  (elegant, full-screen, burgundy)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--wine);
  display: grid; grid-template-rows: var(--nav-h) 1fr auto;
  opacity: 0; pointer-events: none; visibility: hidden;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.overlay.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.overlay__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter); max-width: var(--wide); margin-inline: auto; width: 100%;
}
.overlay__bar .brand__wm b { color: var(--cream); }
.overlay__bar .brand__wm span { color: var(--accent); }
.overlay__close {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-weight: 650; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream);
  background: none; border: none;
}
.overlay__close .x { position: relative; width: 22px; height: 22px; }
.overlay__close .x::before, .overlay__close .x::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 22px; height: 2px; background: var(--cream);
}
.overlay__close .x::before { transform: rotate(45deg); }
.overlay__close .x::after { transform: rotate(-45deg); }

.overlay__nav {
  align-self: center; max-width: var(--wide); margin-inline: auto; width: 100%;
  padding-inline: var(--gutter);
  display: flex; flex-direction: column; gap: clamp(0.2rem, 1vw, 0.6rem);
}
.overlay__nav a {
  font-family: var(--serif); font-weight: 500; color: var(--cream);
  font-size: clamp(2.8rem, 11vw, 7rem); line-height: 1.05; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 0.18em 0; border-bottom: 1px solid rgba(245,239,225,0.16);
  transition: color .4s var(--ease), padding-left .5s var(--ease);
  position: relative;
}
.overlay__nav a .idx {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--accent); align-self: center; min-width: 2.4em;
}
.overlay__nav a:hover, .overlay__nav a[aria-current="page"] { color: var(--accent-lt); padding-left: clamp(0.5rem, 2vw, 1.6rem); }
.overlay__nav a:last-child { border-bottom: none; }

.overlay__foot {
  max-width: var(--wide); margin-inline: auto; width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid rgba(245,239,225,0.16);
}
.overlay__foot .agent { color: var(--accent-lt); line-height: 1.7; font-size: 0.96rem; }
.overlay__foot .agent b { color: var(--cream); display: block; font-weight: 600; font-family: var(--sans); }
.overlay__foot a { color: var(--cream); }
.overlay__foot .btn--on-dark { color: var(--wine); }
.overlay__foot .btn--green { color: var(--wine-dk); }
.overlay__foot .ovcta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* staggered link entrance */
.overlay__nav a { opacity: 0; transform: translateY(18px); }
.overlay.is-open .overlay__nav a { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease), color .4s var(--ease), padding-left .5s var(--ease); }
.overlay.is-open .overlay__nav a:nth-child(1){ transition-delay: .12s; }
.overlay.is-open .overlay__nav a:nth-child(2){ transition-delay: .2s; }
.overlay.is-open .overlay__nav a:nth-child(3){ transition-delay: .28s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media image-slot { width: 100%; height: 100%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(79,26,39,0.55) 0%, rgba(79,26,39,0.38) 40%, rgba(79,26,39,0.78) 100%);
}
.hero--tall { min-height: min(96vh, 920px); }
.hero--mid  { min-height: min(78vh, 720px); }
.hero__inner {
  position: relative; z-index: 1; min-height: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(48px, 9vh, 110px);
}
.hero .eyebrow {
  font-size: 0.95rem; font-weight: 800;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(31,12,17,0.7);
}
.hero .eyebrow::before { background: var(--cream); }
.hero h1 {
  color: var(--cream); font-weight: 500;
  font-size: clamp(2.9rem, 8vw, 7rem); max-width: 15ch;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 40px rgba(31,12,17,0.4);
}
.hero p.hero__sub {
  color: rgba(245,239,225,0.94); font-weight: 450;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem); max-width: 42ch; margin-top: 1.3rem; line-height: 1.5;
  text-shadow: 0 1px 20px rgba(31,12,17,0.45);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2.4rem; align-items: center; }
.hero__actions .tlink { color: var(--cream); }

.hero h1 .ttl-anim {
  display: inline-block; letter-spacing: 0.1em; opacity: 0;
  transition: letter-spacing 1.4s var(--ease), opacity 1.1s var(--ease);
}
.hero.is-ready h1 .ttl-anim { letter-spacing: -0.025em; opacity: 1; }

/* ============================================================
   IMAGE SLOTS
   ============================================================ */
image-slot { --is-placeholder-bg: var(--cream-2); background: var(--cream-2); }
.figure { position: relative; overflow: hidden; }
.figure image-slot, .figure img { transition: transform 1.8s var(--ease); }
.figure:hover image-slot, .figure:hover img { transform: scale(1.045); }
.figure__cap {
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-dk); margin-top: 1rem; font-weight: 600;
}

/* ---- img support for production pages (alongside image-slot in prototype) ---- */
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctaband__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide img { width: 100%; height: clamp(420px, 64vh, 860px); object-fit: cover; display: block; }
.amcard .figure img { width: 100%; height: clamp(360px, 44vw, 560px); object-fit: cover; display: block; }
.amfeature__media img { width: 100%; height: clamp(420px, 60vh, 760px); object-fit: cover; display: block; }
.catrow__media img { width: 100%; height: clamp(360px, 52vh, 640px); object-fit: cover; display: block; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  .figure:hover image-slot, .figure:hover img { transform: none; }
  .hero h1 .ttl-anim { opacity: 1; letter-spacing: -0.025em; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SECTION INTRO
   ============================================================ */
.intro { display: grid; gap: 1.5rem; max-width: 60rem; }
.intro h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap; margin-bottom: clamp(2.2rem, 4.5vw, 4rem);
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* ============================================================
   RESIDENCES — single section + big slider
   ============================================================ */
.res-intro { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px){ .res-intro { grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,5rem); } }
.res-intro h2 { font-size: clamp(2.2rem, 5vw, 4rem); }

/* slider */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .7s var(--ease); will-change: transform; }
.slide { flex: 0 0 100%; min-width: 0; }
.slide image-slot { width: 100%; height: clamp(420px, 64vh, 860px); display: block; }
.slide__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  margin-top: 1.2rem; flex-wrap: wrap;
}
.slide__cap .t { font-family: var(--serif); font-size: clamp(1.3rem,2.4vw,1.9rem); font-weight: 500; color: var(--wine); }
.slide__cap .m { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }

.slider__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 1.8rem;
}
.slider__dots { display: flex; gap: 0.6rem; align-items: center; }
.slider__dots button {
  width: 36px; height: 3px; border: none; background: var(--line); padding: 0; border-radius: 2px;
  transition: background .4s var(--ease);
}
.slider__dots button.is-active { background: var(--wine); }
.slider__arrows { display: flex; gap: 0.7rem; }
.slider__arrows button {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--wine);
  background: transparent; color: var(--wine); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: background .4s var(--ease), color .4s var(--ease), transform .3s var(--ease);
}
.slider__arrows button:hover { background: var(--wine); color: var(--cream); }
.slider__arrows button:active { transform: scale(0.94); }
.slider__count { font-family: var(--sans); font-weight: 600; letter-spacing: 0.16em; font-size: 0.9rem; color: var(--ink-soft); }
.slider__count b { color: var(--wine); }

/* feature list (residence highlights) */
.feature-list { list-style: none; padding: 0; display: grid; gap: 0; }
.feature-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 1.05rem; border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem; font-weight: 500;
}
.feature-list li:first-child { border-top: 1px solid var(--line-soft); }
.feature-list li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--accent-dk); transform: translateY(-2px); }

/* ============================================================
   AMENITIES
   ============================================================ */
.amgroup { margin-top: clamp(4rem, 7vw, 7rem); }
.amgroup:first-of-type { margin-top: 0; }
.amgrid { display: grid; gap: clamp(1.8rem, 3.2vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 720px){ .amgrid { grid-template-columns: repeat(2, 1fr); } }
.amcard { display: flex; flex-direction: column; }
.amcard .figure image-slot { width: 100%; height: clamp(360px, 44vw, 560px); display: block; }
.amcard h4 { font-family: var(--serif); font-size: 1.85rem; font-weight: 520; margin-top: 1.4rem; }
.amcard p { color: var(--ink-soft); margin-top: 0.6rem; font-size: 1.05rem; max-width: 38ch; }
.amgroup__head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 2.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.amgroup__head h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.amgroup__head .count { font-family: var(--sans); font-size: 0.82rem; color: var(--accent-dk); letter-spacing: 0.16em; font-weight: 600; margin-left: auto; }

/* branded logo tile (e.g. ButterflyMX) */
.brand-tile {
  width: 100%; height: clamp(360px, 44vw, 560px);
  background: var(--white); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem);
}
.brand-tile img { width: min(72%, 320px); height: auto; }
.brand-tile svg { width: clamp(96px, 18vw, 160px); height: auto; color: var(--accent-dk); }

.amfeature { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px){
  .amfeature { grid-template-columns: 1.25fr 1fr; }
  .amfeature--flip .amfeature__media { order: 2; }
}
.amfeature h3 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.amfeature__media image-slot { width: 100%; height: clamp(420px, 60vh, 760px); }

/* ============================================================
   NEIGHBORHOOD — bigger, sharper, editorial
   ============================================================ */
.nb-narrative { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px){ .nb-narrative { grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem,5vw,5rem); } }

.catgrid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: 1fr; }
.catrow {
  display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 860px){
  .catrow { grid-template-columns: 1.3fr 1fr; }
  .catrow--flip .catrow__media { order: 2; }
}
.catrow__media image-slot { width: 100%; height: clamp(360px, 52vh, 640px); display: block; }
.catrow__body h3 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.6rem; }
.catrow__body > p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.08rem; max-width: 42ch; }
.spotlist { list-style: none; padding: 0; margin-top: 1.8rem; display: grid; gap: 0; }
.spotlist li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; padding-block: 0.95rem; border-bottom: 1px solid var(--line-soft); }
.spotlist li:first-child { border-top: 1px solid var(--line-soft); }
.spotlist .s-name { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.spotlist .s-meta { font-size: 0.88rem; color: var(--accent-dk); text-align: right; }

.transit { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; align-items: center; }
.gline {
  width: 32px; height: 32px; border-radius: 50%; background: #6CBE45;
  color: #fff; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* map */
.mapwrap { position: relative; overflow: hidden; border: 1px solid var(--line); }
.mapwrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.mappin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; z-index: 2; }
.mappin .dot { width: 20px; height: 20px; border-radius: 50% 50% 50% 0; background: var(--wine); transform: rotate(-45deg); box-shadow: 0 6px 18px -4px rgba(31,12,17,0.6); }
.mappin .lbl { background: var(--wine); color: var(--cream); font-size: 0.74rem; letter-spacing: 0.1em; padding: 0.45em 0.9em; white-space: nowrap; font-weight: 600; }

/* ============================================================
   CTA band
   ============================================================ */
.ctaband { position: relative; isolation: isolate; overflow: hidden; }
.ctaband__media { position: absolute; inset: 0; z-index: -2; }
.ctaband__media image-slot { width: 100%; height: 100%; }
.ctaband__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(79,26,39,0.92), rgba(79,26,39,0.62)); }
.ctaband__inner { padding-block: clamp(88px, 13vw, 180px); display: grid; gap: 1.7rem; max-width: 42rem; }
.ctaband h2 { color: var(--cream); font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 500; }
.ctaband p { color: rgba(245,239,225,0.88); font-size: 1.15rem; max-width: 36ch; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.6rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--wine-dk); color: rgba(245,239,225,0.82); }
.footer a { color: rgba(245,239,225,0.82); transition: color .3s var(--ease); }
.footer a:hover { color: var(--cream); }
.footer__top { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; padding-block: clamp(64px, 9vw, 112px); }
@media (min-width: 780px){ .footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__brand p { margin-top: 1.6rem; font-size: 1rem; line-height: 1.7; max-width: 30ch; }
.footer__cta { margin-top: 1.8rem; }
.fcol h5 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; font-weight: 700; }
.fcol ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; font-size: 1rem; }
.fcol .agent { line-height: 1.75; font-size: 1rem; }
.fcol .agent b { color: var(--cream); font-weight: 600; }
.fcol .agent span { display: block; color: rgba(245,239,225,0.62); font-size: 0.86rem; }
.footer__bottom {
  border-top: 1px solid rgba(245,239,225,0.16); padding-block: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(245,239,225,0.6);
}
.footer__bottom .eh { display: flex; align-items: center; gap: 0.6rem; max-width: 52ch; }
.footer__bottom .eh svg { flex: 0 0 auto; }
.footer__brand .lock { display: flex; align-items: center; gap: 0.9rem; }
.footer__brand .lock img { width: 58px; height: 58px; }
.footer__brand .lock .wm { display: flex; flex-direction: column; gap: 5px; }
.footer__brand .lock .wm b { font-family: var(--serif); font-weight: 560; font-size: 1.16rem; color: var(--cream); }
.footer__brand .lock .wm span { font-family: var(--sans); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.34em; color: var(--accent); text-transform: uppercase; }

/* utility */
.mt-rule { border: none; border-top: 1px solid var(--line); margin-block: clamp(3rem,6vw,5rem); }

/* ============================================================
   FILM — vertical unit walkthrough
   ============================================================ */
.film { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px){
  .film { grid-template-columns: 0.78fr 1fr; }
  .film__copy { order: 2; }
}
.film__media { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.film__media video {
  display: block; width: 100%; aspect-ratio: 9/16; height: auto;
  object-fit: cover; background: var(--wine-dk); border-radius: var(--r);
  box-shadow: 0 40px 90px -50px rgba(31,12,17,0.75);
}
.film__sound {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 650; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wine); background: rgba(245,239,225,0.92); border: none;
  padding: 0.7em 1.1em; border-radius: var(--r);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.film__sound:hover { background: var(--cream); transform: translateY(-1px); }
.film__sound svg { display: block; }
.film__copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.film__copy .eyebrow { margin-bottom: 1.2rem; }
.film__copy p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 1.2rem; max-width: 38ch; }
.film__toggle { display: inline-flex; gap: 0; margin-top: 1.8rem; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.film__tab {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55em 1.5em; border: none; background: transparent;
  border-radius: 999px; cursor: pointer; color: var(--wine-dk);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.film__tab.is-active { background: var(--wine); color: var(--cream); }
[data-film-panel] { width: 100%; }

/* ============================================================
   INQUIRE — leasing inquiry form
   ============================================================ */
.inquire__head { display: grid; gap: 1rem; max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.inquire__head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.form { display: grid; gap: 1.4rem; max-width: 720px; }
.form__row { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 680px){ .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; min-width: 0; }
.field label {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dk);
}
.field .opt { color: var(--ink-soft); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 0.85em 1em; width: 100%;
  /* native date/time controls (e.g. type="month") carry an intrinsic
     min-width on mobile WebKit; allow them to shrink to the column so
     they can't overflow and get clipped */
  min-width: 0; max-width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* WebKit renders date/time fields inside-out; keep their internal box
   from forcing the control wider than its container */
.field input::-webkit-date-and-time-value { width: 100%; text-align: left; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(106,37,53,0.12);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--wine-2); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 0.6rem; }
.form-status { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   MOBILE REFINEMENTS
   (prevent horizontal overflow + tighten layout on small screens)
   ============================================================ */

/* long words (emails, URLs) must wrap rather than push past the viewport */
body { overflow-wrap: break-word; }

/* map: editorial banner on desktop, usable height on phones
   (default lives here so it can be overridden responsively) */
.mapwrap { aspect-ratio: 24 / 9; }
@media (max-width: 760px){ .mapwrap { aspect-ratio: 3 / 4; } }

/* hero: respect the mobile browser chrome (svh) so the fold isn't cut */
@media (max-width: 700px){
  .hero--tall { min-height: min(88svh, 760px); }
  .hero--mid  { min-height: min(74svh, 620px); }
}

/* phones: keep brand + Availability + Book a Tour + Menu on a single header row */
@media (max-width: 540px){
  :root { --gutter: 22px; }
  .nav__inner { gap: 0.9rem; }
  .nav__cta { gap: 0.85rem; }
  .nav__cta .btn { padding: 0.7em 1.05em; font-size: 0.78rem; }
  .nav .brand { gap: 0.6rem; }
  .nav .brand__mark { width: 38px; height: 38px; }
  .nav .brand__wm { display: none; }
}
/* compact phones: tighten the Availability CTA + hamburger so the
   wordmark always has room (these stack after the 540/380 rules above) */
@media (max-width: 430px){
  .nav__inner { gap: 0.7rem; }
  .nav__cta { gap: 0.7rem; }
  .nav__cta .btn { padding: 0.64em 0.95em; font-size: 0.74rem; letter-spacing: 0.04em; }
}
/* smallest phones (≈320–360px): hold the single header row together */
@media (max-width: 360px){
  :root { --gutter: 16px; }
  .nav .brand { gap: 0.5rem; }
  .nav .brand__mark { width: 34px; height: 34px; }
  .nav .brand__wm b { font-size: 0.95rem; }
  .nav__cta .btn { padding: 0.58em 0.78em; font-size: 0.72rem; }
  .menu-toggle__lines { width: 22px; }
  .menu-toggle__lines span:nth-child(1){ width: 22px; }
}
/* keep the wordmark from ever colliding with the CTA: the CTA holds its
   size, and the wordmark ellipsizes gracefully rather than overlapping
   if the row is ever impossibly tight (focus ring stays intact) */
.nav__cta { flex: 0 0 auto; }
.brand__wm { min-width: 0; }
.brand__wm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* overlay menu links must not clip on narrow screens */
@media (max-width: 560px){
  .overlay__nav a { font-size: clamp(2.2rem, 12vw, 7rem); gap: 0.7rem; }
  .overlay__nav a .idx { min-width: auto; font-size: 0.72rem; }
}

/* slider controls: wrap instead of overflowing on small phones */
@media (max-width: 560px){
  .slider__nav { flex-wrap: wrap; gap: 1rem 1.4rem; }
  .slider__dots { order: 2; flex-basis: 100%; }
  .slider__dots button { width: 24px; }
}

/* neighborhood spot rows: stack name/meta when there isn't room side-by-side */
@media (max-width: 420px){
  .spotlist li { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .spotlist .s-meta { text-align: left; }
}

/* amenity group headers: let the count drop below the title instead of
   being pushed off the right edge on narrow phones */
@media (max-width: 560px){
  .amgroup__head { flex-wrap: wrap; gap: 0.35rem 1rem; }
  .amgroup__head .count { margin-left: 0; flex-basis: 100%; }
}

/* overlay menu on short / landscape viewports: don't let the oversized
   links and footer clip — shrink the type and allow the panel to scroll */
@media (max-height: 600px){
  .overlay { grid-template-rows: var(--nav-h) auto auto; align-content: start; }
  .overlay__nav { align-self: start; padding-block: 1.2rem; }
  .overlay__nav a { font-size: clamp(1.7rem, 8.5vh, 3.4rem); padding-block: 0.08em; }
  .overlay__nav a .idx { font-size: 0.66rem; }
  .overlay__foot { padding-block: 1.1rem 1.4rem; }
}
