/* Peabody Whitehead Mansion (styles shared with longsroad.com)
   Plain CSS, no build step. Colors and type live in the variables below. */

:root {
  --cream: #f8f8f8;
  --paper: #ffffff;
  --ink: #242524;
  --ink-soft: #5d5e5c;
  --brick: #8d795d;        /* bronze accent */
  --brick-dark: #75644c;
  --brass: #8d795d;
  --slate: #4a4b4a;
  --line: #e3e0da;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);

  /* Headings: thin, all caps, widely spaced. Body: Libre Franklin. */
  --serif: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --sans: "Libre Franklin", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 16px/1.75 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: .1em; }
strong, b { font-weight: 500; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 500 .78rem/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 44em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand {
  flex: none; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  line-height: 1.05;
}
.brand-name { font: 300 1.35rem/1 var(--serif); letter-spacing: .3em; word-spacing: -.3em; text-transform: uppercase; margin-left: -.058em; }
.brand-sub {
  font: 500 .58rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase;
  color: var(--brick); margin-top: .4rem;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; align-items: center; }
@media (max-width: 1360px) { .nav ul { gap: 1rem; } }
.site-header .wrap { max-width: 1320px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brick); color: var(--ink); }
.nav .btn { padding: .8rem 1.1rem; color: #fff; border-bottom: 1px solid var(--brick); }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .8rem; font: 500 .75rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.2rem; }
  .nav li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { margin-top: 1rem; text-align: center; }
}

/* Buttons */

.btn {
  display: inline-block; background: var(--brick); color: #fff; text-decoration: none;
  font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 1rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--brick); cursor: pointer; transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--brick); }
.btn-ghost:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Photo placeholders: swap each .photo div for an <img> once photos arrive */

.photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-color: #4a4b4a;
  background-image:
    linear-gradient(160deg, rgba(27,36,48,.05), rgba(27,36,48,.55)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,0,0,.18) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.14) 46px 48px);
  min-height: 240px;
}
.photo.alt { background-color: #5b5a57; }
.photo.light { background-color: #9a968e; }
.photo > span {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  color: rgba(255,255,255,.92); font: 500 .8rem/1.3 var(--sans); letter-spacing: .04em;
}
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Content the owner still needs to supply */
.tbd {
  background: #fbecc4; border-bottom: 1px dashed var(--brass);
  padding: 0 .2em; border-radius: 2px; color: var(--ink);
}

/* Hero */

.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; clip-path: inset(0); }
/* Pinned to the screen so the page scrolls over it */
.hero .photo { position: fixed; inset: 0; border-radius: 0; min-height: 0; z-index: -1; }
/* Streamed background video: a 16:9 frame scaled to cover the screen, not clickable */
.hero-stream { background-size: cover; background-position: center; filter: brightness(1.12); }
.hero-stream iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .9s ease;
}
.hero-stream.is-playing iframe { opacity: 1; }
.hero .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,32,0) 45%, rgba(12,20,32,.6));
}
/* Keep the headline readable over the brighter video */
.hero .wrap { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero .wrap { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: clamp(3rem, 8vw, 6rem); width: 100%; }
.hero h1 { max-width: 13em; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 32em; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero .eyebrow { color: rgba(255,255,255,.88); }

.page-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* Sections */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.tight { padding-top: clamp(2rem, 5vw, 3rem); }
.section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .photo { min-height: 420px; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split .photo { min-height: 280px; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pillars article { border-top: 2px solid var(--brick); padding-top: 1.3rem; }
.pillars p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Cards */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card .photo { border-radius: 0; min-height: 220px; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body .meta { color: var(--ink-soft); font-size: .95rem; }
.card-body .price { font: 400 1.2rem var(--serif); letter-spacing: .04em; color: var(--brick); margin-top: .3rem; }
.card-body .btn-row { margin-top: auto; padding-top: 1rem; }
.card-body .btn { padding: .75rem 1.1rem; font-size: .9rem; }

.facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.facts li {
  font-size: .8rem; font-weight: 500; color: var(--ink-soft);
  background: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: .25rem .7rem;
}

.badge {
  display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: #3f6b4a; padding: .4rem .6rem; border-radius: 3px; align-self: flex-start;
}

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem;
  color: var(--ink-soft); background: var(--paper);
}

/* Gallery */

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: .8rem; }
.gallery .photo { min-height: 0; }
.gallery .photo:first-child { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; }
  .gallery .photo:first-child { grid-column: span 2; grid-row: auto; }
}

/* Detail list */

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem 2rem; margin: 0; }
.details div { border-top: 1px solid var(--line); padding-top: .8rem; }
.details dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.details dd { margin: .2rem 0 0; font: 300 1.15rem/1.4 var(--serif); }

/* Tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Forms */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend { font: 300 1.3rem var(--serif); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .row, .row.three { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 500; font-size: .9rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
.req { color: var(--brick); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"],
select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #c8d0db; border-radius: var(--radius);
  padding: .75rem .85rem; min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(141, 121, 93, .5); outline-offset: 2px; border-color: var(--brick);
}
input[type="file"] { font: inherit; font-size: .95rem; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.choices label { display: flex; align-items: center; gap: .45rem; font-weight: 400; font-size: 1rem; }
.choices input { width: 18px; height: 18px; accent-color: var(--brick); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--brick); flex-shrink: 0; }

.notice { background: var(--cream); border-left: 3px solid var(--brass); padding: 1rem 1.2rem; font-size: .92rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.5rem; }
.notice strong { color: var(--ink); }
.notice.alert { border-left-color: var(--brick); background: #f3efe8; color: var(--ink); }

.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.2rem; }
.aside .box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.aside h3 { font-size: 1.15rem; }
.aside p, .aside li { font-size: .95rem; color: var(--ink-soft); }
.aside ul { padding-left: 1.1rem; margin: 0; }
.aside .phone { font: 400 1.4rem var(--serif); letter-spacing: .04em; color: var(--brick); text-decoration: none; }

.hidden-field { position: absolute; left: -9999px; }

/* Contact strip */

.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-top: 3.2rem; padding-bottom: 3.2rem; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.75); }

/* Footer */

.site-footer { background: #111; color: rgba(255,255,255,.72); font-size: .9rem; padding: 3.5rem 0 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font: 500 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #c2ad8c; margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid .brand { color: #fff; margin-bottom: 1rem; }
.footer-grid .brand-sub { color: #c2ad8c; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.eho { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: #3f6b4a; }
.form-status.err { color: var(--brick); }
.hero .photo > span { display: none; }

/* Property pages: extra photos and floor plans */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.photo-grid .photo { min-height: 0; aspect-ratio: 3 / 2; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.plans figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.plans img { width: 100%; height: auto; display: block; }
.plans figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.video-tour { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; border-radius: var(--radius); }

.badge.leased { background: #8a96a6; }

/* Unit pages: photo grid that opens a full-screen viewer */
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 10px; }
.photo-gallery a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111821; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo-gallery a::after {
  content: ""; position: absolute; inset: 0; background: rgba(12,20,32,.45);
  opacity: 0; transition: opacity .35s;
}
.photo-gallery a:hover::after, .photo-gallery a:focus-visible::after { opacity: 1; }
.photo-gallery a:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 6px; } }

.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.92); color: #fff;
  user-select: none; touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: calc(100% - 140px); max-height: calc(100% - 120px); object-fit: contain; transition: opacity .25s; }
.lightbox-img.loading { opacity: 0; }
.lightbox-count { position: absolute; top: 18px; left: 22px; font: 500 .9rem/1 var(--sans); color: rgba(255,255,255,.85); }
.lightbox-tools { position: absolute; top: 8px; right: 8px; display: flex; }
.lightbox button { background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; display: grid; place-items: center; padding: 0; }
.lightbox button:hover { color: #fff; }
.lightbox-tools button { width: 44px; height: 44px; }
.lightbox-tools svg { width: 20px; height: 20px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 90px; }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }
.lightbox-prev svg, .lightbox-next svg { width: 30px; height: 30px; }
.lightbox svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .lightbox-img { max-width: 100%; max-height: calc(100% - 140px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 10px; transform: none; height: 60px; }
}
#photos { scroll-margin-top: 72px; }

/* Photo story pieces shared by unit, building and home pages: pinned full-screen
   photos with slate cards scrolling over them, a features list over whitewashed
   brick, and fade-ins. */
.u-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 70px); }
.u-eyebrow { font: 500 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brick); margin-bottom: 1.2rem; }

/* Status bar */
.u-status { background: #111; color: #fff; text-align: center; font-size: .9rem; padding: .55rem 1rem; }
.u-status a { color: #fff; }
.u-status a:hover { color: #fff; }

/* Buttons */
.u-btn {
  display: inline-block; border: 1px solid var(--brick); color: var(--ink); text-decoration: none;
  font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 1rem 1.3rem;
  transition: background .25s, color .25s;
}
.u-btn:hover { background: var(--brick); color: #fff; }
.u-btn.solid { background: var(--brick); color: #fff; }
.u-btn.solid:hover { background: #75644c; border-color: #75644c; }
.u-btn.light { border-color: rgba(255,255,255,.85); color: #fff; }
.u-btn.light:hover { background: #fff; color: var(--ink); }
.u-btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.u-tour {
  position: fixed; left: 0; bottom: 24px; z-index: 30; background: #222; color: #fff; text-decoration: none;
  font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 1.1rem 1.4rem;
}
.u-tour:hover { background: #000; color: #fff; }
/* Keep the floating button from covering the footer's last line */
body:has(.u-tour) .site-footer { padding-bottom: 5.5rem; }

/* Pinned photos: the image is fixed to the screen and each section is a window
   onto it, so the page scrolls over a still picture. */
.u-hero, .u-cover { position: relative; clip-path: inset(0); display: flex; align-items: flex-end; }
.u-pin { position: fixed; inset: 0; z-index: -1; }
.u-pin img { width: 100%; height: 100%; object-fit: cover; }
/* Show only the upper part of a photo (enlarged and anchored to its top edge) */
.u-pin.upper img { height: 160%; object-position: center top; }

.u-hero { min-height: calc(100vh - 72px - 2.4rem); color: #fff; }
.u-hero .u-pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,32,0) 45%, rgba(12,20,32,.7)); }
.u-hero .u-wrap { width: 100%; padding-bottom: clamp(3rem, 8vh, 5rem); text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.u-hero .u-eyebrow { color: rgba(255,255,255,.88); }
.u-hero .u-eyebrow a { color: inherit; text-decoration: none; }
.u-hero .u-eyebrow a:hover { text-decoration: underline; }
.u-hero h1 { color: #fff; margin-bottom: 1.6rem; }
.u-hero p { max-width: 40em; font-size: 1.1rem; color: rgba(255,255,255,.92); margin: -.4rem 0 0; }
.u-hero .badge { margin-bottom: 1rem; text-shadow: none; }

.u-cover {
  margin: clamp(2rem, 6vw, 5rem) 0; min-height: clamp(520px, 92vh, 900px);
  padding: clamp(4rem, 10vh, 7rem) 0;
}
.u-card {
  position: relative; width: min(500px, 88%);
  /* line the card's right edge up with the page's text column */
  margin-left: auto; margin-right: calc(max(0px, (100% - 1200px) / 2) + clamp(20px, 6vw, 70px)); padding: clamp(2rem, 5vw, 3.5rem);
  color: #f8f8f8; font-size: .95rem;
  background-color: var(--slate);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 70%);
}
.u-card h2 { color: #f8f8f8; }
.u-card p { margin: 0; }
.u-card p + p { margin-top: 1rem; }
.u-card .btn-row { margin-top: 1.8rem; }
.u-card .u-eyebrow { color: #c2ad8c; }
/* A longer window onto the pinned photo, so it stays on screen through more scrolling */
.u-cover.tall { min-height: clamp(780px, 150vh, 1500px); }

/* Intro */
.u-intro { padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(2rem, 5vw, 3rem); }
.u-intro p { max-width: 62em; margin: 0 0 2rem; }

/* Features and at-a-glance facts over whitewashed brick */
.u-features { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.u-features ul { columns: 2; column-gap: 4rem; padding-left: 1.1rem; margin: 0 0 clamp(2.5rem, 6vw, 4rem); max-width: 900px; }
.u-features li { margin-bottom: .55rem; break-inside: avoid; }
.u-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 2rem; margin: 0 0 clamp(3rem, 7vw, 5rem); }
.u-facts div { border-top: 1px solid #d9d6d0; padding-top: .8rem; }
.u-facts dt { font: 500 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brick); }
.u-facts dd { margin: .3rem 0 0; font: 300 1.15rem/1.4 var(--serif); }
.u-brick {
  height: 150px;
  background:
    linear-gradient(180deg, var(--cream), rgba(248,248,248,0) 35%, rgba(248,248,248,0) 65%, var(--cream)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='52'%3E%3Cg stroke='%23d6d6d6' stroke-width='2'%3E%3Cpath d='M0 1h84M0 27h84M1 1v26M43 27v26'/%3E%3C/g%3E%3C/svg%3E"),
    #f1f1f1;
}

/* Floor plans */
.u-plans { padding: clamp(3rem, 7vw, 5rem) 0; }
.u-plans .plans { grid-template-columns: repeat(auto-fit, minmax(280px, 560px)); }
.u-plans .plans figure { border-radius: 0; border-color: #e3e0da; }

/* Gallery: full width grid that opens the shared full-screen viewer */
.u-gallery { padding: clamp(3rem, 7vw, 5rem) 0; }
.u-gallery h2 { margin-bottom: 2rem; }

/* Contact */
.u-contact { background: #fff; padding: clamp(4rem, 9vw, 6rem) 0; text-align: center; }
.u-contact h2 { font-size: 1.6rem; }
.u-contact p { margin: 0 auto 1.6rem; max-width: 36em; }
.u-contact .u-btns { justify-content: center; }

/* Fade sections in as they scroll into view */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
/* The grey cards over pinned photos start their fade a beat later */
.u-card.reveal { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 860px) {
  .u-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .u-card, .u-cover.flip .u-card { width: auto; margin: 0 16px; }
  .u-features ul { columns: 1; }
  .u-tour { bottom: 14px; }
}
.u-table-title { margin: 3rem 0 1rem; }

/* The Ranch: photo placeholders until real photos arrive */
.ranch-ph {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)),
    linear-gradient(170deg, #8fa3ad 0%, #c9b99a 55%, #8d795d 56%, #6f6048 100%);
  display: grid; place-items: start end; padding: calc(72px + 4rem) clamp(1rem, 4vw, 2.5rem) 0;
}
.ranch-ph span {
  font: 500 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.6); padding: .7rem 1rem;
}

/* The Ranch: reservation calendar and request form */
.ranch-reserve { background: #fff; padding: clamp(4rem, 9vw, 6rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ranch-booking { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2.5rem; }
@media (max-width: 960px) { .ranch-booking { grid-template-columns: 1fr; } }

.cal { position: relative; border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.8rem); background: var(--cream); }
.cal-nav { position: absolute; top: clamp(.6rem, 2.4vw, 1.3rem); left: clamp(.6rem, 2.4vw, 1.3rem); right: clamp(.6rem, 2.4vw, 1.3rem); display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav button {
  pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.cal-nav button:hover:not(:disabled) { border-color: var(--brick); color: var(--brick); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.unit-main .cal-title { text-align: center; font-size: 1rem; letter-spacing: .18em; margin: .55rem 0 1.2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font: 500 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .5rem; }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; background: #fff; color: var(--ink);
  font: 400 .92rem/1 var(--sans); cursor: pointer; padding: 0; transition: background .15s, border-color .15s;
}
.cal-day:hover:not(:disabled) { border-color: var(--brick); }
.cal-day.today { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cal-day.past { background: transparent; color: #c4c2bd; cursor: default; }
.cal-day.booked { background: #ecebe8; color: #a5a29b; text-decoration: line-through; }
.cal-day.booked:disabled { cursor: not-allowed; }
.cal-day.in-range { background: #ebe3d6; }
.cal-day.start, .cal-day.end { background: var(--brick); color: #fff; text-decoration: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; font-size: .82rem; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.cal-legend i { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line); }
.cal-legend .lg-open { background: #fff; }
.cal-legend .lg-booked { background: #ecebe8; }
.cal-legend .lg-picked { background: var(--brick); border-color: var(--brick); }
.cal-note { min-height: 1.4em; margin: .8rem 0 0; font-size: .9rem; color: #9a3b2e; }
.cal-note:empty { display: none; }

.ranch-form { box-shadow: none; }
.ranch-summary { background: var(--cream); border-left: 3px solid var(--brick); padding: 1rem 1.2rem; margin-bottom: .6rem; line-height: 1.8; }
.ranch-summary strong { font-weight: 500; }
.ranch-hint { color: var(--ink-soft); }
.cal-clear { background: none; border: 0; padding: 0; margin: 0 0 1.4rem; font: 500 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ranch-form .check { margin: .4rem 0 1.4rem; }

/* Unit pages: embedded 3D walkthrough (Zillow 3D Home) */
.u-tour-hint { color: var(--ink-soft); margin: -.6rem 0 1.4rem; }
.tour-3d { position: relative; width: 100%; height: min(75vh, 720px); min-height: 420px; background: #111821; border: 1px solid var(--line); }
.tour-3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* YouTube video embeds (16:9) */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.video-pair figure { margin: 0; }
.video-pair figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 760px) { .video-pair { grid-template-columns: 1fr; } }

/* Floor plans open in the full-screen viewer */
.plans a { display: block; cursor: zoom-in; }
.plans a:hover img { opacity: .85; }

/* Floor plans with a map of the property beside them */
.plans-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.plans-map .plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-content: start; }
.map-embed { margin: 0; display: flex; flex-direction: column; min-height: 360px; }
.map-embed iframe { flex: 1; width: 100%; min-height: 320px; border: 1px solid var(--line); }
.u-plans > .u-wrap > .map-embed iframe { min-height: 420px; }
.map-embed figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .plans-map { grid-template-columns: 1fr; } }

/* Walk Score neighborhood widget beside the floor plans */
.walkscore .gmap { display: block; width: 100%; height: 300px; border: 1px solid var(--line); margin-bottom: .8rem; }
#ws-walkscore-tile { position: relative; text-align: left; width: 100%; min-height: 340px; border: 1px solid var(--line); background: #fff; }
#ws-walkscore-tile * { float: none; }

/* Long galleries: show the first 16 photos until "Show all photos" is clicked */
.photo-gallery.is-collapsed a:nth-child(n+17) { display: none; }
.gallery-more { text-align: center; margin-top: 2rem; }


/* ------------------------------------------------------------------
   Peabody Whitehead Mansion additions
   Everything above is shared with longsroad.com. The rules below add the
   story pages (history, ghosts, press) and the darker "night" look.
   ------------------------------------------------------------------ */

:root {
  --display: "Cormorant Garamond", Georgia, serif;   /* story headings and quotes */
  --night: #141312;
  --night-soft: #1f1d1b;
}

.hero h1, .story-hero h1, .prose h2 {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: .01em;
  font-weight: 400;
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.05; }

/* Story page header: a dim photo behind the title */
.story-hero {
  position: relative;
  color: #fff;
  background-color: var(--night);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  border-bottom: 0;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(3rem, 8vw, 5rem);
}
.story-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,18,.55), rgba(20,19,18,.85));
}
.story-hero .wrap { position: relative; }
.story-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.story-hero .lede { color: rgba(255,255,255,.85); }
.story-hero .eyebrow { color: #c2ad8c; }

/* Long-form reading text */
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.85; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose .note { color: var(--ink-soft); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.5rem; }
.prose blockquote {
  font: italic 400 1.5rem/1.5 var(--display);
  border-left: 2px solid var(--brass);
  margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem;
}
.portrait { margin: 0 0 2rem; }
.portrait img { max-width: 320px; }

/* Home timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.timeline b { font: 400 1.6rem/1.2 var(--display); color: var(--brick); }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

ul.ticks { padding-left: 1.1rem; }
ul.ticks li { margin-bottom: .3rem; }

/* Press list */
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list a {
  display: grid; gap: .3rem; padding: 1.5rem 0; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.press-list li:last-child a { border-bottom: 1px solid var(--line); }
.press-list a:hover .press-title { color: var(--brick); }
.press-outlet { font: 500 .78rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.press-title { font: 400 clamp(1.3rem, 2.6vw, 1.75rem)/1.35 var(--display); }

/* Dark band on the home page */
.night-band { background: var(--night); color: rgba(255,255,255,.85); }
.night-band h2 { color: #fff; font-family: var(--display); text-transform: none; letter-spacing: .01em; font-weight: 400; }
.night-band .lede { color: rgba(255,255,255,.75); }

/* Ghosts page: the whole page goes dark */
body.night { background: var(--night); color: rgba(255,255,255,.82); }
body.night main a { color: #d4bf9c; }
body.night .prose h2 { color: #fff; }
body.night .prose .note { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.12); }
body.night .tbd { color: var(--ink); }
.prose blockquote cite { display: block; font: 400 .85rem/1.5 var(--sans); font-style: normal; color: var(--ink-soft); margin-top: .8rem; }
.refs { padding-left: 1.1rem; }
.refs li { font-size: .95rem !important; line-height: 1.6 !important; margin-bottom: .5rem; word-break: break-word; }
.prose figure { margin: 2rem 0; }


/* ------------------------------------------------------------------
   Hanover look (October 2026)
   Black header and footer, Raleway headlines over Jost body text, a
   deep green accent, a full-screen photo slideshow and a "Book a Tour"
   tab on the right edge. Delete this block to go back.
   ------------------------------------------------------------------ */

:root {
  --ink: #222222;
  --ink-soft: #364153;
  --brick: #1a3c34;        /* deep green accent */
  --brick-dark: #122b25;
  --brass: #1a3c34;
  --cream: #ffffff;
  --paper: #f6f6f4;
  --line: #e4e4e0;
  --serif: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --display: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

body { background: #fff; font: 300 16px/1.75 var(--sans); }

h1, h2, h3, .hero h1, .story-hero h1, .prose h2, .night-band h2 {
  font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.2;
}
h1, .story-hero h1, .page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2, .prose h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 500; }
.eyebrow, .u-eyebrow { font: 400 .8rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brick); }
.lede { color: var(--ink-soft); }

/* Buttons: square, Jost, capitalised words */
.btn, .u-btn {
  font: 400 14px/1 var(--sans); letter-spacing: .04em; text-transform: none;
  padding: 1.05rem 2rem; border-radius: 0;
}
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.7); }

/* Header: a black bar with white links */
.site-header { background: #000; box-shadow: none; }
.site-header .wrap { min-height: 82px; }
.site-header .brand, .footer-grid .brand { color: #fff; }
.brand-name { font: 500 1.35rem/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .06em; word-spacing: 0; text-transform: uppercase; margin: 0; }
.brand-sub { font: 400 .62rem/1 var(--sans); letter-spacing: .3em; color: rgba(255,255,255,.75); margin-top: .45rem; }
.nav a { color: #fff; font: 300 15px/1 var(--sans); letter-spacing: .05em; text-transform: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.nav .btn { background: var(--brick); border: 1px solid rgba(162,162,162,.3); color: #fff; padding: .9rem 1.4rem; }
.nav .btn:hover { background: var(--brick-dark); }
.nav-toggle { color: #fff; border-color: rgba(255,255,255,.35); font-family: var(--sans); font-weight: 400; }
@media (max-width: 1240px) {
  .nav { background: #000; border-bottom: 0; }
  .nav li a { border-bottom-color: rgba(255,255,255,.12); }
}

/* Home page: the header floats over the slideshow until you scroll */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; transition: background .4s ease; }
.home .site-header.scrolled, .home .site-header:has(.nav.open) { background: #000; }

/* "Book a Tour" tab fixed to the right edge */
.tour-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  background: #000; color: #fff; text-decoration: none; padding: 1.1rem .75rem;
  font: 400 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.tour-tab span { writing-mode: vertical-rl; }
.tour-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tour-tab:hover { background: var(--brick); color: #fff; }
@media (max-width: 760px) { .tour-tab { padding: .9rem .6rem; font-size: 11px; } }

/* Full-screen slideshow hero */
.hv-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: #000; }
.hv-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7s ease-out;
}
.hv-slides img.on { opacity: 1; transform: scale(1); }
.hv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 40%, rgba(0,0,0,.6)); }
.hv-logo {
  position: absolute; z-index: 2; top: clamp(96px, 14vh, 140px); left: 0; right: 0; text-align: center;
  font: 500 clamp(2.4rem, 5vw, 3.6rem)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .04em; text-transform: uppercase;
}
.hv-logo small { display: block; font: 400 clamp(.75rem, 1.4vw, .95rem)/1 var(--sans); letter-spacing: .32em; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.6); width: max-content; margin-left: auto; margin-right: auto; }
.hv-copy { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: clamp(70px, 13vh, 130px); text-align: center; }
.hv-copy h1 { font: 700 clamp(2.2rem, 5.4vw, 3.6rem)/1.1 var(--serif); letter-spacing: .08em; color: #fff; margin: 0 0 .9rem; }
.hv-copy p { font: 300 clamp(1rem, 1.6vw, 1.25rem)/1.5 var(--sans); letter-spacing: .04em; margin: 0 auto 1.8rem; max-width: 40em; }
.hv-copy .btn { background: rgba(26,60,52,.85); border-color: rgba(162,162,162,.3); }
.hv-down { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff; opacity: .85; }
.hv-down svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Three photo tiles with the title over the image */
.hv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1360px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 40px); }
.hv-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none; background: #000; }
.hv-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .8s ease, opacity .5s ease; }
.hv-tile:hover img { transform: scale(1.05); opacity: .55; }
.hv-tile div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .5rem; padding: 1rem; }
.hv-tile b { font: 400 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--serif); }
.hv-tile span { font: 400 15px/1 var(--sans); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 5px; }
.hv-tile:hover { color: #fff; }
@media (max-width: 760px) { .hv-tiles { grid-template-columns: 1fr; gap: 14px; padding-top: 40px; padding-bottom: 40px; } }

/* Full-width photo band and centred intro */
.hv-band { height: clamp(280px, 52vw, 640px); }
.hv-band img { width: 100%; height: 100%; object-fit: cover; }
.hv-intro { padding: clamp(4rem, 9vw, 8rem) 0; text-align: center; }
.hv-intro h2 { max-width: 14em; margin: 0 auto 2rem; }
.hv-intro p { max-width: 46em; margin: 0 auto 1.2rem; color: var(--ink-soft); text-align: justify; text-align-last: center; }
.hv-intro .btn-row { justify-content: center; margin-top: 2.2rem; }

/* Sections, cards and lists in the new type */
.section.paper { background: var(--paper); border: 0; }
.section-head { flex-direction: column; align-items: center; text-align: center; }
.card { border: 0; box-shadow: none; background: var(--paper); }
.card-body .price, .details dd, .u-facts dd { font-family: var(--serif); }
.timeline b { font: 300 1.7rem/1.2 var(--serif); color: var(--brick); }
.prose blockquote { font: 300 1.5rem/1.5 var(--serif); font-style: normal; border-left-color: var(--brick); }
.press-title { font-family: var(--serif); font-weight: 400; }
.night-band { background: #000; }
.u-card { background-color: #1a3c34; background-image: none; }
.u-card .u-eyebrow { color: rgba(255,255,255,.7); }
.badge { background: var(--brick); border-radius: 0; font-family: var(--sans); font-weight: 400; }

/* Footer: black and centred, with its own Book a Tour button */
.site-footer { background: #000; color: rgba(255,255,255,.55); padding: 96px 0 40px; font-size: 15px; }
.footer-top { text-align: center; margin-bottom: 64px; }
.footer-top .brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; margin-bottom: 1.2rem; }
.footer-top .brand-name { font-size: 2rem; }
.footer-top p { margin: 0 0 1.8rem; color: rgba(255,255,255,.75); font: 300 1.15rem/1.4 var(--serif); }
.footer-top .btn { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.footer-top .btn:hover { background: #fff; color: #000; }
.footer-grid { border-top: 1px solid rgba(255,255,255,.15); padding-top: 48px; }
.footer-grid h4 { font: 500 14px/1.3 var(--serif); letter-spacing: .14em; color: #fff; }
.footer-grid .brand-sub { color: rgba(255,255,255,.6); }
.site-footer a { color: rgba(255,255,255,.85); }
.home .site-header .brand { transition: opacity .4s ease; }
.home .site-header:not(.scrolled):not(:has(.nav.open)) .brand { opacity: 0; pointer-events: none; }
.hv-intro h2 { max-width: 20em; }
.night-band .wrap { text-align: center; }
.night-band .lede { margin-left: auto; margin-right: auto; }
.night-band .btn-row { justify-content: center; }
/* The right-edge tab replaces the old floating "Schedule tour" button */
.u-tour { display: none; }
body:has(.u-tour) .site-footer { padding-bottom: 40px; }
/* Parallax: the photo is taller than its frame and drifts as you scroll */
.hv-band { position: relative; overflow: hidden; }
.hv-band img { position: absolute; left: 0; top: -20%; height: 140%; will-change: transform; }
.hv-slides { position: absolute; inset: 0; will-change: transform; }
.hv-logo, .brand-name { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
/* Photo tiles fill the width with thin gaps */
.hv-tiles { max-width: none; gap: 8px; padding: 8px; }
.hv-tile { aspect-ratio: 4 / 3.6; }
@media (max-width: 760px) { .hv-tiles { gap: 8px; padding: 8px; } .hv-tile { aspect-ratio: 4 / 3.4; } }

/* ---- Hanover inner pages ---------------------------------------- */

/* The header floats over every page's photo banner, then turns black */
.site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; transition: background .4s ease; }
.site-header.scrolled, .site-header:has(.nav.open) { background: #000; }

/* Photo banner with a centred, widely spaced title */
.u-hero, .page-hero.story-hero {
  position: relative; min-height: 438px; height: auto; padding: 130px 16px 56px;
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.page-hero.story-hero { background-color: #000; background-size: cover; background-position: center; }
.page-hero.story-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.45) 50%, rgba(0,0,0,.6)); }
.u-hero .u-pin::after { background: rgba(0,0,0,.5); }
.u-hero .u-wrap, .page-hero.story-hero .wrap { padding: 0; max-width: 1100px; width: 100%; }
.u-hero h1, .page-hero.story-hero h1 {
  font: 400 clamp(1.9rem, 4.6vw, 3.9rem)/1.18 var(--serif); letter-spacing: .2em; text-transform: uppercase;
  color: #fff; margin: 0 auto .9rem; max-width: none;
}
.u-hero .u-eyebrow, .page-hero.story-hero .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 1rem; letter-spacing: .3em; }
.u-hero p, .page-hero.story-hero .lede { color: rgba(255,255,255,.88); margin: 0 auto; max-width: 40em; font-size: 1.1rem; }
.u-hero .u-btns { justify-content: center; margin-top: 1.6rem; }
.u-hero .badge { margin: 0 auto 1rem; }
.u-hero .u-eyebrow a { color: inherit; }

/* Promo-style status bar sits above the floating header */
.u-status { position: relative; z-index: 51; background: var(--brick); font: 400 14px/1.4 var(--sans); letter-spacing: .06em; padding: .7rem 1rem; }

/* Page content: wide, left-aligned, grey body text */
.u-wrap, .section > .wrap { max-width: 1360px; padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
.u-intro { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.u-intro h2, .u-features h2, .section h2 { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.25 var(--serif); color: #000; }
.u-intro p, .u-features li, .prose p, .prose li { color: #585858; }
.prose { max-width: 1004px; }
.section > .wrap.prose { margin-left: max(0px, (100% - 1360px) / 2); }

/* Amenity-style two-column list with small green markers */
.u-features ul, ul.ticks { columns: 2; column-gap: 3rem; list-style: none; padding-left: 0; max-width: 1004px; }
.u-features li, ul.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: .7rem; break-inside: avoid; }
.u-features li::before, ul.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--brick); }
@media (max-width: 640px) { .u-features ul, ul.ticks { columns: 1; } }
.u-facts div { border-top-color: var(--line); }
.u-facts dt { font: 300 13px/1.3 var(--sans); letter-spacing: .2em; color: #8a8a8a; }
.u-brick { display: none; }

/* Floor-plan style apartment grid */
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); padding: 0; }
.section.paper .card { border-color: #e2e2de; }
.card .photo { min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
.card-body { padding: 16px 18px 20px; gap: .25rem; }
.card-body h3 { font: 500 1.15rem/1.3 var(--serif); }
.card-body .badge { order: 3; align-self: flex-start; margin-top: .4rem; }
.facts { gap: 0; margin: 0; }
.facts li { background: none; border: 0; padding: 0; font: 300 15px/1.5 var(--sans); color: #585858; }
.facts li + li::before { content: ","; margin-right: .3em; }
.card-body .btn-row { order: 4; padding-top: .8rem; }
.card-body .btn, .card-body .btn-ghost {
  background: none; border: 0; padding: 0; color: var(--brick); font: 400 15px/1.4 var(--sans);
  text-decoration: underline; text-underline-offset: 4px;
}
.card-body .btn:hover { background: none; color: #000; }

/* Sidebar blocks on contact and apply, like Hanover's info column */
.aside .box { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.2rem 0 0; }
.aside h3 { font: 700 18px/1.3 var(--sans); }
.aside .phone { font: 300 1.3rem var(--sans); color: var(--brick); }
.form { background: var(--paper); border: 0; box-shadow: none; }
legend { font: 400 1.6rem var(--serif); text-transform: none; letter-spacing: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea { border-color: #cfcfca; border-radius: 0; }

/* Photo grids: tight, full-width, like the home tiles */
.photo-gallery { gap: 8px; padding: 0 8px; }
.u-gallery { padding-top: 8px; }
.u-gallery h2 { padding: 0 clamp(16px, 3vw, 40px); }

/* Story pages: green pull quotes and dark Ghosts page */
body.night { background: #0d0f0e; }
.prose h2 { color: #000; }
body.night .prose h2 { color: #fff; }
body.night .prose p, body.night .prose li { color: rgba(255,255,255,.75); }
.portrait img { max-width: 360px; }
.hv-more { margin-top: clamp(2rem, 5vw, 4rem); }
body.night .hv-more { background: #0d0f0e; }
@media (max-width: 560px) {
  .u-hero h1, .page-hero.story-hero h1 { letter-spacing: .1em; overflow-wrap: anywhere; }
}
.portrait img { max-width: min(360px, 100%); }

/* Unit pages: full-screen, brighter hero photo */
body:has(.u-tour) .u-hero { min-height: calc(100vh - 2.6rem); min-height: calc(100svh - 2.6rem); }
body:has(.u-tour) .u-hero .u-pin img { filter: brightness(1.12); }
body:has(.u-tour) .u-hero .u-pin::after { background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.08) 30%, rgba(0,0,0,.08) 60%, rgba(0,0,0,.35)); }
body:has(.u-tour) .u-hero .u-wrap { text-shadow: 0 2px 18px rgba(0,0,0,.55); }

/* Unit and apartment pages: moving parallax instead of pinned photos */
.u-hero, .u-cover { overflow: hidden; clip-path: none; }
.u-hero .u-pin { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.u-cover .u-pin { position: absolute; left: 0; right: 0; top: -20%; bottom: -20%; z-index: 0; will-change: transform; }
.u-hero .u-wrap, .u-cover .u-card { position: relative; z-index: 1; }

/* Home hero: brighter photos, lighter tint, shadowed text for contrast */
.hv-slides img { filter: brightness(1.15); }
.hv-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.04) 35%, rgba(0,0,0,.08) 60%, rgba(0,0,0,.4)); }
.hv-logo, .hv-copy { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
/* Menu title: "1128 Grant St" spaced out to the same width as the line under it */
.site-header .brand { align-items: flex-start; }
.site-header .brand-name { letter-spacing: .287em; margin-right: -.287em; }
.site-header .brand-sub { margin-right: -.3em; }

/* Home "The apartments": edge to edge with thin gaps, like the photo tiles */
.home #apartments { padding: 2.2rem 0 8px; }
.home #apartments > .wrap { max-width: none; padding: 0 8px; }
.home #apartments .section-head { margin-bottom: 1.1rem; }
.home #apartments .section-head .eyebrow { margin-bottom: .3rem; }
.home #apartments .cards { gap: 8px; }
.home #apartments .card { border: 0; background: var(--paper); }
.home #apartments .card-body { padding: 10px 14px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.home #apartments .card-body h3 { grid-column: 1; grid-row: 1; font-size: 1.05rem; margin: 0; }
.home #apartments .card-body .badge { grid-column: 2; grid-row: 1; margin: 0; font-size: 11px; padding: .3rem .5rem; }
.home #apartments .facts { grid-column: 1; grid-row: 2; }
.home #apartments .facts li { font-size: 14px; }
.home #apartments .card-body .btn-row { grid-column: 2; grid-row: 2; padding: 0; margin: 0; }
.home #apartments .card-body .btn { font-size: 14px; }
.home #apartments > .wrap > .btn-row { justify-content: center; margin: 8px 0 0; }
.home #apartments > .wrap > .btn-row .btn { width: 100%; text-align: center; }

/* Photo galleries everywhere: edge to edge, 8px gaps, little space around */
.section:has(> .wrap > .photo-gallery) { padding: 8px 0; }
.section > .wrap:has(> .photo-gallery) { max-width: none; padding: 0; margin: 0; }
.photo-gallery { gap: 8px; padding: 0 8px; max-width: none; }
.u-gallery { padding: 1.4rem 0 8px; }
.u-gallery h2 { margin-bottom: .8rem; }
.gallery-more { margin: 8px 8px 0; }
.gallery-more .btn { width: 100%; }
@media (max-width: 760px) { .photo-gallery { gap: 6px; padding: 0 6px; } }
.section.tight:has(+ .u-gallery) { padding: 1.2rem 0 0; }
.section.tight:has(+ .u-gallery) p { margin: 0; }
.section.tight + .u-gallery { padding-top: 1rem; }
/* Home photo band: fills the screen below the 82px header */
.hv-band { height: calc(100vh - 82px); height: calc(100svh - 82px); min-height: 420px; }

/* Press page: article cards with the article's own photo */
.press-section { padding: 8px 0 0; }
.press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
@media (max-width: 1000px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .press-grid { grid-template-columns: 1fr; } }
.press-card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); text-decoration: none; }
.press-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .4s ease; }
.press-card:hover img { opacity: .85; }
.press-card .press-outlet { display: block; padding: 16px 18px 0; font: 400 .78rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brick); }
.press-card .press-title { display: block; padding: 6px 18px 20px; font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.35 var(--serif); }
.press-card:hover .press-title { color: var(--brick); }
.press-section .note { padding: 1.2rem clamp(16px, 3vw, 40px) 0; margin: 0; color: #585858; }

/* Press page: back to a vertical list, with a small thumbnail beside each headline */
.press-section { max-width: 1360px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(16px, 3vw, 40px) 0; }
.press-grid { display: block; padding: 0; }
.press-card {
  display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; column-gap: 24px; align-content: center;
  background: none; padding: 18px 0; border-top: 1px solid var(--line);
}
.press-card:last-child { border-bottom: 1px solid var(--line); }
.press-card img { grid-row: 1 / span 2; width: 150px; height: 94px; aspect-ratio: auto; }
.press-card .press-outlet { padding: 0; align-self: end; }
.press-card .press-title { padding: 4px 0 0; align-self: start; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.press-section .note { padding: 1.2rem 0 0; }
@media (max-width: 600px) {
  .press-card { grid-template-columns: 96px 1fr; column-gap: 14px; padding: 14px 0; }
  .press-card img { width: 96px; height: 64px; }
  .press-card .press-title { font-size: 1rem; }
}

/* Art page: full-screen, bright hero of the mosaic portrait */
.page-hero.art-hero { min-height: 100vh; min-height: 100svh; background-position: center 38%; }
.page-hero.art-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 30%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.45)); }
.page-hero.art-hero .wrap { align-self: flex-end; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
/* Zoomed out: the whole portrait shows at full height, with a soft blurred copy filling the sides */
.art-hero .art-hero-fill, .art-hero .art-hero-photo { position: absolute; inset: 0; z-index: 0; background: url('../img/art/02.jpg') center 38% no-repeat; }
.art-hero .art-hero-fill { background-size: cover; filter: blur(28px) brightness(.8); transform: scale(1.12); }
.art-hero .art-hero-photo { background-size: auto 100%; background-position: center; }
.page-hero.art-hero { overflow: hidden; }
.page-hero.art-hero::before { z-index: 1; }
.page-hero.art-hero .wrap { z-index: 2; }
/* Fill the whole hero yet keep the framed portrait uncropped: the hero's height
   follows the photo's shape (taller than the screen on wide screens, shorter on phones) */
.page-hero.art-hero { min-height: 0; height: clamp(70vw, 100vh, 128vw); height: clamp(70vw, 100svh, 128vw); background-size: cover; background-position: center; }
/* Art hero parallax: the photo sits in its own layer that drifts as you scroll */
.art-hero .art-hero-photo { display: block; position: absolute; inset: 0; z-index: 0; background: url('../img/art/02.jpg') center / cover no-repeat; filter: none; transform: none; will-change: transform; }

/* Art page: the mosaic starts on its side filling the screen, and turns upright as you scroll */
.spin-hero { position: relative; height: 260vh; background: #14100c; }
.spin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.spin-stage::before {
  content: ""; position: absolute; inset: 0;
  background: url('../img/art/02.jpg') center / cover no-repeat; filter: blur(6px) brightness(.35); transform: scale(1.05);
}
.spin-art {
  position: absolute; left: 50%; top: 50%; width: 600px; height: auto; max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg) scale(2); transform-origin: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); will-change: transform;
}
.spin-copy { position: absolute; left: 16px; right: 16px; bottom: clamp(48px, 9vh, 96px); text-align: center; color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.75); will-change: opacity; }
.spin-copy h1 { font: 400 clamp(1.9rem, 4.6vw, 3.9rem)/1.18 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 0 0 .8rem; }
.spin-copy .lede { color: rgba(255,255,255,.92); margin: 0 auto; max-width: 40em; font-size: 1.1rem; }
.spin-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255,255,255,.75); font: 400 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
@media (max-width: 560px) { .spin-copy h1 { letter-spacing: .1em; } }
/* Without motion: just the upright painting */
@media (prefers-reduced-motion: reduce) {
  .spin-hero { height: auto; }
  .spin-stage { position: relative; height: 100vh; }
  .spin-art { transform: translate(-50%, -50%) scale(1); width: min(60vw, 52vh); }
  .spin-hint { display: none; }
}
/* A touch darker: dimmer backdrop and a slightly dimmed painting */
.spin-stage::before { filter: blur(6px) brightness(.25); }
.spin-art { filter: brightness(.85); }
.spin-stage::before { filter: blur(6px) brightness(.2); }
.spin-art { filter: brightness(.78); }

/* Ghosts page: photos beside the stories */
.prose .ghost-photo { float: right; clear: right; margin: .4rem 0 1.4rem 2rem; }
.prose .ghost-photo.wide { width: min(46%, 460px); }
.prose .ghost-photo.tall { width: min(32%, 300px); }
.prose .ghost-photo img { width: 100%; height: auto; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.prose h2 { clear: both; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 700px) {
  .prose .ghost-photo, .prose .ghost-photo.wide, .prose .ghost-photo.tall { float: none; width: 100%; margin: .2rem 0 1.4rem; }
  .prose .ghost-photo.tall { width: min(100%, 360px); }
}

/* ---- Ghosts page as a magazine feature ---------------------------- */
.mag { --mag-gold: #c9a96a; color: rgba(255,255,255,.8); padding-bottom: 2rem; }
.mag p { font: 300 1.06rem/1.85 var(--sans); margin: 0 0 1.1em; }
.mag a { color: var(--mag-gold); }
.mag h2 { font: 300 clamp(2rem, 4.4vw, 3.6rem)/1.08 var(--serif); color: #fff; margin: 0 0 1.4rem; letter-spacing: -.01em; }
.mag-chapter { font: 400 12px/1.3 var(--sans) !important; letter-spacing: .32em; text-transform: uppercase; color: var(--mag-gold); margin: 0 0 1rem !important; }
.mag figure { margin: 0; }
.mag img { display: block; width: 100%; height: auto; }
.mag figcaption { font: 300 italic 13px/1.5 var(--sans); color: rgba(255,255,255,.5); margin-top: .7rem; letter-spacing: .02em; }
.mag-spread { max-width: 1240px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(16px, 4vw, 48px); }

/* Pull quotes and drop caps */
.mag-pull { font: 300 italic clamp(1.5rem, 2.6vw, 2.2rem)/1.3 var(--serif); color: #fff; border: 0; margin: 2rem 0; padding: 1.2rem 0 0; border-top: 1px solid var(--mag-gold); max-width: 22em; }
.mag-pull-big { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.mag-pull-center { text-align: center; margin: 3rem auto 0; border-top: 0; padding: 0; }
.mag-pull-center::before { content: ""; display: block; width: 60px; height: 1px; background: var(--mag-gold); margin: 0 auto 1.4rem; }
.mag-dropcap::first-letter { float: left; font: 400 4.6em/.8 var(--serif); color: var(--mag-gold); margin: .08em .12em 0 0; }
.mag-cols { columns: 2; column-gap: 3.2rem; }
.mag-cols p { break-inside: avoid-column; }

/* Intro: big opening paragraph */
.mag-intro { max-width: 980px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(16px, 4vw, 48px) clamp(1rem, 3vw, 2rem); text-align: center; }
.mag-kicker { font: 400 12px/1.3 var(--sans) !important; letter-spacing: .32em; text-transform: uppercase; color: var(--mag-gold); }
.mag-lead { font: 300 clamp(1.35rem, 2.4vw, 1.9rem)/1.55 var(--serif) !important; color: #fff; }
.mag-lead::first-letter { font-size: 3.2em; line-height: .8; float: left; margin: .05em .12em 0 0; color: var(--mag-gold); }
.mag-intro .mag-lead { text-align: left; }

/* I. Full-bleed battle scene, text in two columns below */
.mag-whitehead { max-width: none; padding-left: 0; padding-right: 0; }
.mag-bleed { position: relative; height: clamp(320px, 62vh, 680px); overflow: hidden; }
.mag-bleed img { height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.mag-bleed figcaption { position: absolute; left: clamp(16px, 4vw, 48px); bottom: 18px; color: rgba(255,255,255,.85); text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.mag-whitehead .mag-body { max-width: 1240px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; padding: 0 clamp(16px, 4vw, 48px); }

/* II. Small offset photo beside the text */
.mag-governor { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mag-governor .mag-photo { margin-top: clamp(3rem, 8vw, 7rem); padding: 14px; background: #f2ece0; transform: rotate(-1.5deg); box-shadow: 0 25px 60px rgba(0,0,0,.6); }
.mag-governor .mag-photo img { filter: grayscale(1) contrast(1.05); }
.mag-governor .mag-photo figcaption { color: #6b6253; font-style: italic; }

/* III. The jazz ad pinned up like a clipping */
.mag-jazz { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mag-clipping { justify-self: center; width: min(100%, 340px); transform: rotate(3deg); box-shadow: 0 30px 70px rgba(0,0,0,.7); position: relative; }
.mag-clipping::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: rgba(240,230,205,.55); z-index: 1; }

/* IV. Tall portrait beside the story, dark band */
.mag-ella { max-width: none; background: #070707; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; padding: 0; }
.mag-ella .mag-portrait { position: relative; min-height: 100%; }
.mag-ella .mag-portrait img { position: sticky; top: 0; height: 100vh; object-fit: cover; object-position: center 20%; }
.mag-ella .mag-body { padding: clamp(3.5rem, 8vw, 7rem) clamp(16px, 5vw, 80px); max-width: 760px; }

/* V. Chandelier stays put while the story scrolls */
.mag-children { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mag-sticky { position: sticky; top: 110px; }
.mag-sticky img { box-shadow: 0 0 120px rgba(255,240,200,.08); }

/* Epilogue */
.mag-closing { max-width: 1040px; text-align: left; border-top: 1px solid rgba(255,255,255,.1); }
.mag-closing h2 { text-align: center; }
.mag-closing .mag-chapter { text-align: center; }

@media (max-width: 860px) {
  .mag-governor, .mag-jazz, .mag-ella, .mag-children { grid-template-columns: 1fr; }
  .mag-cols { columns: 1; }
  .mag-governor .mag-photo { margin-top: 0; max-width: 520px; }
  .mag-jazz .mag-clipping { order: -1; width: min(80%, 320px); margin-top: 1rem; }
  .mag-ella .mag-portrait img { position: static; height: 70vh; }
  .mag-children .mag-sticky { position: static; order: -1; max-width: 420px; }
}

/* Apartments page: unit grid edge to edge, big photos, details over the photo */
.unit-main #apartments { padding: 1.6rem 0 8px; background: #fff; }
.unit-main #apartments > .u-wrap { max-width: none; padding: 0 8px; }
.unit-main #apartments h2 { padding: 0 clamp(8px, 2vw, 32px); margin-bottom: 1rem; }
.unit-main #apartments .cards { gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .unit-main #apartments .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .unit-main #apartments .cards { grid-template-columns: 1fr; } }
.unit-main #apartments .card { position: relative; border: 0; background: #000; overflow: hidden; }
.unit-main #apartments .card .photo { aspect-ratio: 3 / 4; }
@media (max-width: 1100px) { .unit-main #apartments .card .photo { aspect-ratio: 4 / 3; } }
.unit-main #apartments .card .photo img { transition: transform 1s ease; }
.unit-main #apartments .card:hover .photo img { transform: scale(1.05); }
.unit-main #apartments .card-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; color: #fff;
}
.unit-main #apartments .card-body h3 { grid-column: 1; grid-row: 1; color: #fff; font-size: 1.35rem; margin: 0; }
.unit-main #apartments .card-body .badge { grid-column: 2; grid-row: 1; margin: 0; align-self: center; font-size: 11px; padding: .3rem .55rem; }
.unit-main #apartments .card-body .badge.leased { background: rgba(255,255,255,.85); color: #222; }
.unit-main #apartments .facts { grid-column: 1; grid-row: 2; }
.unit-main #apartments .facts li { color: rgba(255,255,255,.88); font-size: 14px; }
.unit-main #apartments .card-body .btn-row { grid-column: 2; grid-row: 2; padding: 0; pointer-events: auto; }
.unit-main #apartments .card-body .btn { color: #fff; font-size: 14px; }
.unit-main #apartments h2 { text-align: center; }
/* Renovation page: full-screen hero */
.page-hero.reno-hero { min-height: 100vh; min-height: 100svh; }
/* Banner photo in its own drifting layer (parallax), a touch brighter */
.page-hero.story-hero:has(.hero-drift) { overflow: hidden; }
.hero-drift { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: brightness(1.12); will-change: transform; }
.page-hero.story-hero:has(.hero-drift)::before { z-index: 1; }
.page-hero.story-hero:has(.hero-drift) .wrap { position: relative; z-index: 2; }
.page-hero.reno-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.12) 35%, rgba(0,0,0,.15) 65%, rgba(0,0,0,.45)); }
.page-hero.reno-hero .wrap { text-shadow: 0 2px 18px rgba(0,0,0,.6); }

/* ---- Light magazine (History, Whitehead, Peabody) ---------------- */
.mag-light { --mag-gold: #9a7340; background: #f7f3ec; color: #3b3b3b; padding-bottom: 0; }
.mag-light p { color: #444; }
.mag-light h2 { color: #141414; }
.mag-light a { color: var(--brick); }
.mag-light .mag-lead { color: #141414; }
.mag-light .mag-pull { color: #141414; }
.mag-light figcaption { color: #7a7266; }
.mag-light .mag-bleed figcaption { color: rgba(255,255,255,.9); }
.mag-light .mag-closing { border-top-color: rgba(0,0,0,.1); }
.mag-center { text-align: center; }
.mag-narrow { max-width: 860px !important; }
.mag-narrow-p { max-width: 820px; margin-left: auto !important; margin-right: auto !important; }
.mag-big { font-size: 1.2rem !important; line-height: 1.85 !important; }
.mag-more { font: 400 13px/1.4 var(--sans) !important; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.2rem !important; }
.mag-more a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.mag-sources { text-align: center; padding: 2rem 16px 3.5rem; font-size: .95rem !important; color: #7a7266 !important; margin: 0 !important; }

/* Two residents, side by side */
.mag-duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 2rem; }
.mag-person figure { margin: 0 0 1.6rem; background: #fff; padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.15); max-width: 380px; }
.mag-person:nth-child(1) figure { transform: rotate(-1.5deg); }
.mag-person:nth-child(2) figure { transform: rotate(1.5deg); margin-top: clamp(0px, 6vw, 5rem); }
.mag-person img { filter: grayscale(.2) sepia(.15); }
.mag-years { font: 400 12px/1 var(--sans) !important; letter-spacing: .32em; text-transform: uppercase; color: var(--mag-gold) !important; margin-bottom: .8rem !important; }
.mag-person h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* Dark band with big type */
.mag-band { background: #141110; padding: clamp(4rem, 10vw, 8rem) clamp(16px, 4vw, 48px); text-align: center; }
.mag-band-inner { max-width: 900px; margin: 0 auto; }
.mag-band-text { font: 300 clamp(1.4rem, 2.6vw, 2.1rem)/1.5 var(--serif) !important; color: #fff !important; }
.mag-band-huge { font-size: clamp(2.6rem, 7vw, 5.6rem) !important; line-height: 1.05 !important; font-style: italic; margin-bottom: 2rem !important; }
.mag-band-sub { color: rgba(255,255,255,.75) !important; max-width: 680px; margin: 0 auto !important; }
.mag-band a { color: #d8bd8a; }
.mag-band .mag-chapter { color: #d8bd8a; }

/* Clippings collage, full width */
.mag-collage { margin: clamp(2.5rem, 5vw, 4rem) calc(-1 * clamp(16px, 4vw, 48px)) 0; }
.mag-collage img { width: 100%; }
.mag-collage figcaption { text-align: center; }

/* A photo pinned at an angle */
.mag-photo-tilt { justify-self: center; background: #fff; padding: 14px 14px 10px; transform: rotate(2.5deg); box-shadow: 0 25px 60px rgba(0,0,0,.2); max-width: 520px; }

/* Portrait opener */
.mag-opener { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.mag-opener-portrait { background: #fff; padding: 16px; box-shadow: 0 25px 70px rgba(0,0,0,.18); transform: rotate(-2deg); max-width: 420px; justify-self: end; }
.mag-opener .mag-lead { font-size: clamp(1.35rem, 2.2vw, 1.8rem) !important; }
.mag-opener .mag-lead::first-letter { font-size: 3.4em; }

/* Inline sourced quote */
.mag-quote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--mag-gold); font: 300 italic 1.15rem/1.7 var(--serif); color: #2b2b2b; }
.mag-quote cite { display: block; margin-top: .8rem; font: 400 13px/1.5 var(--sans); font-style: normal; color: #7a7266; }
.mag-pull-xl { font-size: clamp(1.9rem, 4vw, 3.2rem) !important; max-width: 18em; }

@media (max-width: 860px) {
  .mag-duo-grid, .mag-opener { grid-template-columns: 1fr; }
  .mag-opener-portrait { justify-self: center; max-width: 320px; }
  .mag-person figure { max-width: 300px; }
  .mag-person:nth-child(2) figure { margin-top: 0; }
  .mag-photo-tilt { max-width: 92%; order: -1; }
}

/* History: three historic photos laid out like prints on a table */
.mag-then { max-width: 1100px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1.15fr 1.3fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.mag-then figure { background: #fff; padding: 12px 12px 8px; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.mag-then figure:nth-child(1) { transform: rotate(-3deg); }
.mag-then figure:nth-child(2) { transform: rotate(1.5deg) translateY(-14px); }
.mag-then figure:nth-child(3) { transform: rotate(-1deg) translateY(10px); }
.mag-then figcaption { font-size: 12px; text-align: center; }
@media (max-width: 700px) { .mag-then { grid-template-columns: 1fr; max-width: 360px; } .mag-then figure { transform: none !important; } }
/* History page: full-screen, bright hero */
.page-hero.hist-hero { min-height: 100vh; min-height: 100svh; }
.page-hero.hist-hero .hero-drift { filter: brightness(1.08) saturate(1.05); background-position: center 40%; }
.page-hero.hist-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 30%, rgba(0,0,0,.08) 60%, rgba(0,0,0,.45)); }
.page-hero.hist-hero .wrap { align-self: flex-end; padding-bottom: clamp(2rem, 8vh, 5rem); text-shadow: 0 2px 20px rgba(0,0,0,.65); }
.mag-light .mag-bleed img { filter: none; }
/* Taller spread so the whole round landmark plaque shows */
.mag-bleed.mag-bleed-tall { height: min(66.6vw, 100vh); }
.mag-bleed.mag-bleed-tall img { object-position: center 50%; }

/* Whitehead and Peabody: full-screen bright heroes */
.page-hero.bio-hero { min-height: 100vh; min-height: 100svh; }
.page-hero.bio-hero .hero-drift { filter: brightness(1.1) saturate(1.05); }
.page-hero.bio-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 30%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.55)); }
.page-hero.bio-hero .wrap { align-self: flex-end; padding-bottom: clamp(2rem, 8vh, 5rem); text-shadow: 0 2px 20px rgba(0,0,0,.65); }

/* Two portraits stacked like prints */
.mag-stack { position: relative; justify-self: end; width: min(100%, 440px); padding-bottom: 90px; }
.mag-stack .mag-opener-portrait { max-width: 360px; }
.mag-stack-second { position: absolute; right: -30px; bottom: 0; width: 46%; background: #fff; padding: 10px 10px 6px; transform: rotate(4deg); box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.mag-stack-second figcaption { font-size: 11px; text-align: center; margin-top: .4rem; }

/* Small inset photo floated into the text */
.mag-inset { float: right; width: min(42%, 230px); margin: .3rem 0 1rem 1.6rem; background: #fff; padding: 10px 10px 6px; transform: rotate(-2deg); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.mag-inset figcaption { font-size: 11px; text-align: center; }
.mag-jazz .mag-body::after { content: ""; display: block; clear: both; }
@media (max-width: 860px) {
  .mag-stack { justify-self: center; padding-bottom: 70px; }
  .mag-stack-second { right: 0; }
}

/* Whitehead page: the Crimean War painting hung in a gilded frame beside the text */
.mag-painting { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mag-framed { margin: 0; }
.mag-framed img {
  border: 14px solid #b08a4a; outline: 3px solid #6f5425; outline-offset: -3px;
  box-shadow: inset 0 0 0 4px #d8bd86, 0 30px 70px rgba(0,0,0,.35);
  padding: 10px; background: #2a2118;
}
.mag-framed figcaption { text-align: center; margin-top: 1rem; }
@media (max-width: 860px) { .mag-painting { grid-template-columns: 1fr; } .mag-framed img { border-width: 9px; padding: 6px; } }
/* Gallery page: full-screen chandelier hero */
.page-hero.gallery-hero { min-height: 100vh; min-height: 100svh; }
.page-hero.gallery-hero .hero-drift { filter: brightness(1.2); background-position: center 45%; }
.page-hero.gallery-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.05) 30%, rgba(0,0,0,.08) 60%, rgba(0,0,0,.5)); }
.page-hero.gallery-hero .wrap { align-self: flex-end; padding-bottom: clamp(2rem, 8vh, 5rem); text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.page-hero.gallery-hero .hero-drift { filter: brightness(1.05); background-position: center; }
/* Gallery page: centered note above the photos */
.section.tight:has(+ .u-gallery) p { text-align: center; }
/* Contact page: front door hero, slightly brighter */
.page-hero.contact-hero { background-position: center 40%; }
.page-hero.contact-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.3) 50%, rgba(0,0,0,.5)); }
.page-hero.contact-hero { background-position: center 35%; }
.page-hero.contact-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.25) 50%, rgba(0,0,0,.45)); }
.page-hero.contact-hero .wrap { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.page-hero.contact-hero { background-position: 42% 58%; }

/* Gallery and Art pages: photos sit on black instead of white */
body:has(.gallery-hero) main, body:has(.spin-hero) main { background: #000; color: #fff; }
body:has(.gallery-hero) main p, body:has(.spin-hero) main p { color: rgba(255,255,255,.85); }
body:has(.gallery-hero) main a:not(.btn):not(.hv-tile), body:has(.spin-hero) main a:not(.btn):not(.hv-tile) { color: #fff; }
body:has(.gallery-hero) .gallery-more .btn, body:has(.spin-hero) .gallery-more .btn { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
body:has(.gallery-hero) .gallery-more .btn:hover, body:has(.spin-hero) .gallery-more .btn:hover { background: #fff; color: #000; }
body:has(.gallery-hero) .photo-gallery a, body:has(.spin-hero) .photo-gallery a { background: #111; }
