/* Mayflower Court */
:root {
  --ink: #271b38;
  --ink-2: #31234a;
  --ink-3: #3d2d59;
  --ivory: #f4efe6;
  --stone: #e9e2d6;
  --paper: #faf7f2;
  --brass: #b8975a;
  --brass-2: #d2b77f;
  --brick: #8a3b2a;
  --text: #2e2a35;
  --muted: #6e6878;
  --line: rgba(39, 27, 56, .14);
  --line-light: rgba(244, 239, 230, .16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--text); background: var(--paper); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; color: var(--ink); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 24px; }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--brass); }
p { margin: 0 0 1em; }

.eyebrow { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; color: var(--brass-2); margin-bottom: 18px; }
.eyebrow.dark { color: var(--brass); }

/* Buttons */
.btn { display: inline-block; background: var(--brass); color: var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; padding: 17px 30px; border: 1px solid var(--brass); border-radius: 0; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(244, 239, 230, .5); }
.btn-ghost:hover { background: rgba(244, 239, 230, .1); border-color: var(--ivory); }
.btn-small { padding: 11px 18px; font-size: .7rem; }
.btn-full { width: 100%; }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); color: var(--ivory); transition: background .35s, padding .35s, box-shadow .35s; }
.nav.scrolled { background: rgba(39, 27, 56, .96); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line-light); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
/* Hawthorn (May blossom) mark: white on purple, deep purple on light */
.haw { flex: none; width: 40px; height: 40px; color: #fff; stroke-width: 1.3; }
.haw .stamens { stroke-width: .7; }
.haw-thanks { display: block; width: 76px; height: 76px; margin: 0 auto 20px; color: var(--ink); stroke-width: 1.2; }
.lockup { align-self: flex-start; display: inline-flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 14px; }
.lockup .haw { width: 64px; height: 64px; margin-bottom: 14px; color: var(--ink); stroke-width: 1.2; }
.lockup-name { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; letter-spacing: .26em; padding-left: .26em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.lockup-sub { margin-top: 10px; font-size: .62rem; letter-spacing: .45em; padding-left: .45em; text-transform: uppercase; color: var(--brass); line-height: 1.9; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; }
.brand-sub { font-size: .58rem; letter-spacing: .42em; text-transform: uppercase; margin-top: 6px; color: var(--brass-2); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.04); animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(26, 16, 38, .82) 0%, rgba(26, 16, 38, .55) 38%, rgba(26, 16, 38, 0) 68%),
  linear-gradient(180deg, rgba(26, 16, 38, .6) 0%, rgba(26, 16, 38, 0) 25%, rgba(26, 16, 38, .15) 55%, rgba(26, 16, 38, .9) 100%); }
.hero h1, .hero-lede, .hero-price, .hero .eyebrow { text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }
.hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 10vh, 110px); }
.hero h1 { color: var(--ivory); font-size: clamp(2.8rem, 7vw, 5.6rem); margin-bottom: 22px; }
.hero-lede { max-width: 520px; font-size: 1.1rem; opacity: .9; }
.hero-price { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 30px; }
.hero-price span { font-family: var(--sans); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brass-2); margin-right: 10px; vertical-align: middle; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { position: absolute; right: var(--gutter); bottom: 16px; margin: 0; font-size: .68rem; opacity: .55; letter-spacing: .04em; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: var(--ivory); border-top: 1px solid var(--line-light); }
.facts div { padding: 34px 16px; text-align: center; border-right: 1px solid var(--line-light); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--brass-2); }
.facts span { display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }

/* Sections */
.section { padding: clamp(80px, 12vw, 150px) var(--gutter); }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }
.section-lede { max-width: 620px; color: var(--muted); }
.disclaimer { margin-top: 22px; font-size: .78rem; color: var(--muted); }
.disclaimer.light { color: rgba(244, 239, 230, .55); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 1fr; }
.split.reverse .split-text { order: 2; }
.split-text p { color: var(--text); max-width: 520px; }
.split-img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.features { list-style: none; padding: 0; margin-top: clamp(64px, 9vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.features li { padding: 36px 28px 12px; border-left: 1px solid var(--line); }
.features li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.features li:nth-child(n+4) { border-top: 1px solid var(--line); }
.features svg { width: 34px; height: 34px; fill: none; stroke: var(--brass); stroke-width: 1.2; margin-bottom: 20px; }
.features h3 { font-size: 1.45rem; margin-bottom: 8px; }
.features p { font-size: .95rem; color: var(--muted); }

/* Gallery */
.gallery-section { background: var(--stone); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 12px; }
.g-item { position: relative; padding: 0; border: 0; margin: 0; overflow: hidden; background: var(--ink); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-placeholder { cursor: default; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: var(--ivory); background: radial-gradient(120% 90% at 20% 0%, var(--ink-3), var(--ink) 70%); }
.g-placeholder::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(184, 151, 90, .35); }
.g-placeholder span { position: relative; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.g-placeholder small { position: relative; margin-top: 6px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2); }

/* Apartments */
.apartments { background: var(--ink); color: var(--ivory); }
.apartments h2 { color: var(--ivory); }
.apartments .section-lede { color: rgba(244, 239, 230, .7); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.legend button { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--ivory); border: 1px solid var(--line-light); padding: 9px 16px; font: 400 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s; }
.legend button[aria-pressed="true"] { border-color: var(--brass); background: rgba(184, 151, 90, .12); }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend b { font-weight: 500; color: var(--brass-2); }

.dot-available { background: #7fa98a; }
.dot-reserved { background: var(--brass); }
.dot-sold { background: #b4574a; }

.plan-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: stretch; }

.stack { position: relative; padding-top: 70px; }
.stack::before { /* twin gables, spanning only the apartment columns (label column is 92px + 8px gap) */
  content: ""; position: absolute; top: 0; left: 100px; right: 0; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M1 69 L100 4 L199 69 M201 69 L300 4 L399 69' fill='none' stroke='%23b8975a' stroke-width='1.4' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3Cpath d='M135 27 H265' fill='none' stroke='%23b8975a' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.floor { display: grid; grid-template-columns: 92px repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.floor-label { display: flex; align-items: center; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 239, 230, .6); }
.plot { position: relative; min-height: 96px; background: var(--ink-2); border: 1px solid var(--line-light); color: var(--ivory); text-align: left; padding: 14px; cursor: pointer; font-family: var(--sans); transition: background .25s, border-color .25s, opacity .25s, transform .25s; }
.plot:hover { background: var(--ink-3); border-color: rgba(184, 151, 90, .6); }
.plot.selected { border-color: var(--brass); background: #45335f; box-shadow: inset 0 0 0 1px var(--brass); }
.plot.dim { opacity: .25; }
.plot .num { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.plot .pos { display: block; margin-top: 6px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .55); }
.plot .status-dot { position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; }
.plot.sold { background: repeating-linear-gradient(135deg, var(--ink-2) 0 8px, #2b1f40 8px 16px); }
.plot.sold .num { color: rgba(244, 239, 230, .5); }
.ground { height: 10px; margin-left: 100px; border-top: 1px solid var(--brass); opacity: .6; }

.plot-panel { background: var(--ivory); color: var(--text); padding: 32px; min-height: 100%; display: flex; flex-direction: column; }
.panel-empty { margin: auto 0; text-align: center; color: var(--muted); }
.panel-empty p { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 6px; }
.plot-panel h3 { font-size: 2.2rem; }
.plot-panel .badge { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--line); margin: 12px 0 20px; }
.plot-panel .badge i { width: 8px; height: 8px; border-radius: 50%; }
.plot-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0 0 22px; font-size: .95rem; }
.plot-panel dt { color: var(--muted); }
.plot-panel dd { margin: 0; text-align: right; color: var(--ink); font-weight: 400; }
.fp { aspect-ratio: 4 / 3; margin-bottom: 22px; background: var(--paper); border: 1px dashed rgba(39, 27, 56, .25); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.fp img { width: 100%; height: 100%; object-fit: contain; }
.plot-panel .btn { margin-top: auto; text-align: center; }

/* Location */
.location .loc-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.loc-list li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: .95rem; }
.loc-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--brass); }
.map { aspect-ratio: 1 / 1; background: var(--stone); filter: grayscale(.85) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Register */
.register { background: linear-gradient(rgba(26, 16, 38, .86), rgba(26, 16, 38, .92)), url("images/exterior-garden.jpg") center / cover; color: var(--ivory); }
.register h2 { color: var(--ivory); }
.register-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.register-copy p { color: rgba(244, 239, 230, .8); }
.perks { list-style: none; padding: 0; margin: 26px 0 0; }
.perks li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line-light); position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 40 40'%3E%3Cpath d='M-7.98%20-10.99%20A8%208%200%200%201%207.98%20-10.99%20A8%208%200%200%201%2012.92%204.2%20A8%208%200%200%201%200%2013.58%20A8%208%200%200%201%20-12.92%204.2%20A8%208%200%200%201%20-7.98%20-10.99Z' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain; }

.form { background: var(--ivory); color: var(--text); padding: clamp(24px, 4vw, 44px); }
.field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input, .field select { font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; width: 100%; -webkit-appearance: none; appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7079' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; padding-right: 36px; }
.field input:focus, .field select:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(184, 151, 90, .2); }
.field.invalid input { border-color: var(--brick); }
.field .err { font-size: .78rem; color: var(--brick); margin-top: 6px; }
.consent { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: 6px 0 20px; }
.form-error { color: var(--brick); font-size: .88rem; margin: 14px 0 0; min-height: 1em; }
.form-error:empty { display: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-thanks { background: var(--ivory); color: var(--text); padding: clamp(32px, 5vw, 60px); text-align: center; }
.form-thanks h3 { font-size: 2.4rem; margin-bottom: 12px; }

/* Footer */
.footer { background: var(--paper); padding: 56px var(--gutter) 32px; border-top: 1px solid var(--line); }
.footer-inner, .footer-small { max-width: var(--wrap); margin: 0 auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .9rem; }
.footer-brand .brand-name { color: var(--ink); font-size: 1.2rem; }
.agent { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.agent img { width: 120px; height: auto; transition: opacity .2s; }
.agent:hover img { opacity: .8; }
.footer-small { padding-top: 22px; font-size: .78rem; color: var(--muted); }
.footer-small p { margin-bottom: 6px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 12, 30, .95); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { color: var(--ivory); text-align: center; margin-top: 14px; font-family: var(--serif); font-size: 1.2rem; }
.lb-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--ivory); font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 8px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .split, .split.reverse, .register-inner, .plan-wrap { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .features li, .features li:nth-child(3n+1) { padding-left: 28px; border-left: 1px solid var(--line); }
  .features li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .features li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { gap: 10px; }
  .nav .haw { width: 34px; height: 34px; }
  .brand-name { font-size: .82rem; letter-spacing: .16em; }
  .brand-sub { font-size: .5rem; letter-spacing: .32em; }
  .btn-small { padding: 10px 12px; font-size: .62rem; letter-spacing: .12em; white-space: nowrap; }
  .hero h1 { font-size: 2.5rem; }
  .hero-ctas .btn { flex: 1 1 100%; text-align: center; }
  .hero-note { left: var(--gutter); right: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .features { grid-template-columns: 1fr; }
  .features li, .features li + li, .features li:nth-child(3n+1), .features li:nth-child(odd) { padding: 28px 0 4px; border-left: 0; }
  .features li + li { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide { grid-column: auto; grid-row: auto; }
  .floor { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .floor-label { grid-column: 1 / -1; margin-top: 10px; }
  .ground { margin-left: 0; }
  .stack::before { left: 0; }
  .plot { min-height: 74px; padding: 10px; }
  .plot .num { font-size: 1.35rem; }
  .plot .pos { display: none; }
  .plot .status-dot { top: 10px; right: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .plot-panel { padding: 24px; }
}
