/* ==========================================================================
   SABATINI | Design tokens
   Change colors here, everything else reads from these variables.
   ========================================================================== */
:root {
  --dark: #0E0F0F;          /* hero, accent sections, footer */
  --dark-2: #161817;        /* raised surfaces on dark */
  --light: #F5F2EC;         /* warm off-white content sections */
  --light-2: #ECE7DE;       /* subtle fill on light */
  --text: #1A1A1A;          /* text on light */
  --muted: #6B6B6B;         /* muted text on light */
  --accent: #2F4A3A;        /* heritage green: buttons, lines, hovers, era labels */
  --accent-hi: #3E5F4B;     /* accent hover */
  --on-dark: #F5F2EC;
  --on-dark-muted: #9A9893;
  --line-light: rgba(26, 26, 26, 0.14);
  --line-dark: rgba(245, 242, 236, 0.14);

  --font-head: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-body: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --gutter: 20px;
  --max: 1320px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 80px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 56px; }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .header :focus-visible, .menu :focus-visible { outline-color: var(--on-dark); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--light); color: var(--text); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.light { background: var(--light); color: var(--text); }
.dark  { background: var(--dark); color: var(--on-dark); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); }
.dark .muted { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: #8FA897; }

.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 8vw, 64px); max-width: 16ch; }
.section-head--split { display: grid; gap: 20px; }
.section-head--split > p { max-width: 46ch; }
@media (min-width: 900px) {
  .section-head { margin-bottom: 72px; }
  .section-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 64px; }
}

section { padding: 88px 0; }
@media (min-width: 900px) { section { padding: 144px 0; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--ghost { color: var(--on-dark); border-color: rgba(245, 242, 236, 0.5); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(245, 242, 236, 0.08); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: var(--dark); border-bottom-color: var(--line-dark); }
.header .logo { transition: opacity .4s var(--ease); }
.header.on-hero .logo { opacity: 0; pointer-events: none; }
.header__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-head); font-weight: 400; font-size: 19px; letter-spacing: 0.3em; margin-right: -0.3em;
  line-height: 1;
}
.nav { display: none; }
.header__mobile { display: flex; align-items: center; gap: 8px; }
.call-btn {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(245, 242, 236, 0.45); border-radius: var(--radius);
}
.call-btn:hover { border-color: var(--on-dark); }
.burger {
  width: 44px; height: 44px; position: relative;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1024px) {
  .logo { font-size: 22px; }
  .header__mobile { display: none; }
  .nav { display: flex; align-items: center; gap: 36px; }
  .nav a {
    font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    position: relative; padding: 6px 0;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav .nav__cta { padding: 10px 20px; border: 1px solid rgba(245, 242, 236, 0.45); border-radius: var(--radius); }
  .nav .nav__cta::after { display: none; }
  .nav .nav__cta:hover, .nav .nav__cta[aria-current="page"] { background: var(--accent); border-color: var(--accent); }
}

/* Full-screen mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--dark); color: var(--on-dark);
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.menu__nav a {
  font-family: var(--font-head); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(28px, 8vw, 40px); line-height: 1;
  padding: 16px 0; border-bottom: 1px solid var(--line-dark);
  transform: translateY(12px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .3s;
}
.menu.is-open .menu__nav a { transform: none; opacity: 1; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .03s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .06s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .09s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: .18s; }
.menu__nav a:hover, .menu__nav a[aria-current="page"] { color: #8FA897; }
.menu__foot { display: grid; gap: 6px; color: var(--on-dark-muted); font-size: 14px; }
.menu__foot .serif { font-size: 19px; color: var(--on-dark); }
.menu__foot a { color: var(--on-dark); }
@media (min-width: 1024px) { .menu { display: none; } }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative; padding: 0;
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--dark); color: var(--on-dark);
  overflow: hidden;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide { opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.02);
}
.hero__slide.is-active img { animation: heroZoom 7s linear forwards; }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero__slide figcaption { display: none; } /* shown via .hero__caption */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,15,.55) 0%, rgba(14,15,15,.15) 28%, rgba(14,15,15,.25) 55%, rgba(14,15,15,.88) 100%),
    linear-gradient(90deg, rgba(14,15,15,.45) 0%, rgba(14,15,15,0) 60%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) calc(48px + env(safe-area-inset-bottom));
}
.hero__since {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 242, 236, 0.85);
  margin-bottom: 18px;
}
.hero__since .rule { width: 28px; height: 1px; background: currentColor; }
.hero__since .dot { opacity: .6; }
.hero__since .full { display: none; }
@media (min-width: 600px) { .hero__since .full { display: inline; } .hero__since .short { display: none; } }
.hero__since span:not(.rule) { white-space: nowrap; }
.hero__title {
  font-size: clamp(68px, 19vw, 232px);
  font-weight: 400; letter-spacing: -0.015em; line-height: 0.9;
  margin-left: -0.03em;
}
.hero__tagline { font-size: clamp(21px, 5.4vw, 34px); margin-top: 14px; color: rgba(245,242,236,.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions .btn { flex: 1 1 150px; }
@media (min-width: 600px) { .hero__actions .btn { flex: 0 0 auto; } }

/* small photo caption: desktop only, keeps the phone hero clean */
.hero__caption {
  display: none;
  position: absolute; right: var(--gutter); bottom: calc(36px + env(safe-area-inset-bottom));
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,242,236,.7);
  transition: opacity .6s;
}
.hero__caption.is-fading { opacity: 0; }

@media (min-width: 900px) {
  .hero__content { padding-bottom: 112px; }
  .hero__caption { display: block; }
}

/* ==========================================================================
   2. Intro
   ========================================================================== */
.intro__grid { display: grid; gap: 40px; }
.since-xl {
  font-size: clamp(76px, 24vw, 240px); font-weight: 400; letter-spacing: -0.02em; line-height: 0.85;
  color: var(--text);
}
.since-xl .serif {
  display: block; font-size: 0.34em; font-weight: 400; color: var(--accent);
  letter-spacing: 0; margin-bottom: 0.1em; line-height: 1;
}
.intro__copy { border-top: 1px solid var(--line-light); padding-top: 28px; display: grid; gap: 18px; max-width: 560px; }
.intro__copy p { color: var(--muted); }
.intro__copy .lead {
  font-family: var(--font-head); font-weight: 400; letter-spacing: 0;
  font-size: clamp(24px, 6vw, 34px); line-height: 1.22; color: var(--text);
}
.intro__copy .sig { font-size: 17px; color: var(--accent); }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 80px; }
}

/* ==========================================================================
   3. Story timeline
   ========================================================================== */
.story { padding-bottom: 72px; }
.timeline__track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter);
  scrollbar-width: none;
  outline: none;
}
.timeline__track::-webkit-scrollbar { display: none; }
.era {
  flex: 0 0 86%;
  scroll-snap-align: start;
  display: grid; gap: 24px; align-content: start;
  border-top: 1px solid var(--line-dark); padding-top: 20px;
}
.era__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.era__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease); }
.era:hover .era__media img { transform: scale(1.04); }
.era__label {
  font-size: clamp(46px, 13vw, 84px); line-height: .9; color: #8FA897; margin-bottom: 14px;
}
.era h3 { font-size: clamp(26px, 6.5vw, 38px); margin-bottom: 14px; }
.era__text p:last-child { color: var(--on-dark-muted); max-width: 46ch; }
/* last slide spacer so it can snap to start */
.timeline__track::after { content: ""; flex: 0 0 1px; }

.timeline__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; }
.dots { display: flex; gap: 10px; }
.dots button {
  width: 28px; height: 28px; position: relative;
}
.dots button::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px;
  background: rgba(245,242,236,.3); transition: background .3s, height .3s;
}
.dots button[aria-selected="true"]::before { background: var(--on-dark); height: 2px; margin-top: -0.5px; }
.arrows { display: none; gap: 10px; }
.arrow {
  width: 56px; height: 56px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  display: grid; place-items: center; transition: border-color .3s, background .3s, opacity .3s;
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.arrow:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); }
.arrow:disabled { opacity: .3; cursor: default; }

@media (min-width: 768px) {
  .era { flex-basis: 62%; }
  .arrows { display: flex; }
}
@media (min-width: 1100px) {
  .timeline__track {
    gap: 32px;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .era { flex-basis: min(980px, 74vw); grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; padding-top: 32px; }
  .era__media { aspect-ratio: 5 / 4; }
}

/* ==========================================================================
   Placeholder blocks (swap for <img> when real photos arrive)
   ========================================================================== */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(47,74,58,.16) 0%, rgba(47,74,58,0) 55%),
    linear-gradient(160deg, #1c1e1d 0%, var(--dark) 100%);
  color: var(--on-dark);
  overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(143,168,151,.22); border-radius: var(--radius);
  pointer-events: none;
}
.ph::after {
  content: "S"; position: absolute; right: 20px; top: 8px;
  font-family: var(--font-head); font-weight: 400; font-size: 140px; line-height: 1;
  color: rgba(245,242,236,.045); letter-spacing: 0;
}
.ph__title { position: relative; font-family: var(--font-head); font-weight: 400; font-size: 21px; letter-spacing: 0; }
.ph__note { position: relative; font-size: 15px; color: #8FA897; }

/* ==========================================================================
   4. The Sabatini Difference
   ========================================================================== */
.difference { padding: 72px 0; }
.difference .section-head { margin-bottom: 32px; }
/* phones: compact 2-column grid */
.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); }
.pillar { padding: 20px 14px 22px 0; border-bottom: 1px solid var(--line-light); }
.pillar:nth-child(even) { padding: 20px 0 22px 14px; border-left: 1px solid var(--line-light); }
.pillar__num { display: block; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.pillar h3 { font-size: 19px; line-height: 1.15; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (min-width: 900px) {
  .difference { padding: 112px 0; }
  .difference .section-head { margin-bottom: 48px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar, .pillar:nth-child(even) { padding: 28px 32px 32px 0; border-left: 0; }
  .pillar:nth-child(3n+2), .pillar:nth-child(3n+3) { padding-left: 32px; border-left: 1px solid var(--line-light); }
  .pillar:nth-child(n+4) { border-bottom: 0; }
  .pillar__num { margin-bottom: 20px; font-size: 16px; }
  .pillar h3 { font-size: 26px; margin-bottom: 8px; }
  .pillar p { font-size: 16px; max-width: 30ch; }
}

/* ==========================================================================
   5. Development services
   ========================================================================== */
.services { display: grid; gap: 64px; }
.service { display: grid; gap: 24px; }
.service__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--dark); }
.service__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease); }
.service:hover .service__media img { transform: scale(1.04); }
.service__num { display: block; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--accent); margin-bottom: 12px; }
.service h3 { font-size: clamp(28px, 7vw, 44px); margin-bottom: 14px; }
.service p { color: var(--muted); max-width: 40ch; font-size: 17px; }
@media (min-width: 900px) {
  .services { gap: 120px; }
  .service { grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: center; }
  .service:nth-child(even) .service__media { order: 2; }
  .service__media { aspect-ratio: 3 / 2; }
  .service__text { border-top: 1px solid var(--line-light); padding-top: 28px; }
}

/* ==========================================================================
   6. How we build
   ========================================================================== */
.steps { display: grid; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 0 36px 52px; }
.step::before { /* vertical line */
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 1px; background: var(--line-dark);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; display: grid; place-items: center;
  font-size: 11px; font-weight: 500; letter-spacing: .04em;
  border: 1px solid #8FA897; color: #8FA897; border-radius: 50%;
}
.step h3 { font-size: 25px; margin-bottom: 8px; padding-top: 0; }
.step p { color: var(--on-dark-muted); max-width: 36ch; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 32px; }
  .step { padding: 56px 0 0; }
  .step::before { left: 40px; right: -32px; top: 13px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: none; }
  .step h3 { font-size: 26px; }
}

/* ==========================================================================
   7. Rentals
   ========================================================================== */
.properties { display: grid; gap: 40px; }
.property__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; background: var(--dark); }
.property__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.property:hover .property__media img { transform: scale(1.04); }
.property h3 { font-size: 25px; margin-bottom: 6px; }
.property__type { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.property__type span { color: var(--accent); }
@media (min-width: 640px) { .properties { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; } }
@media (min-width: 1100px) { .properties { grid-template-columns: repeat(4, 1fr); } }

.rental-contact {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-light);
  display: grid; gap: 28px;
}
.rental-contact .eyebrow { margin-bottom: 12px; }
.rental-contact__name { font-family: var(--font-head); font-weight: 400; font-size: 32px; }
.rental-contact__links { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; color: var(--muted); }
.rental-contact__links a { width: fit-content; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.rental-contact__links a:hover { color: var(--accent); border-color: var(--accent); }
.rental-contact .btn { width: 100%; }
@media (min-width: 768px) {
  .rental-contact { grid-template-columns: 1fr auto; align-items: end; }
  .rental-contact__links { flex-direction: row; gap: 28px; }
  .rental-contact .btn { width: auto; }
}

/* ==========================================================================
   8. Our work gallery
   ========================================================================== */
.gallery { display: grid; gap: 28px; }
.gallery__item button { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--dark); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease), filter .6s; }
.gallery__item button:hover img { transform: scale(1.04); filter: saturate(1); }
.gallery__item p { margin-top: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
/* 3 columns: wide tiles are placed so every row fills ([W n] [n W] [W n]) */
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item { display: flex; flex-direction: column; }
  .gallery__item button { flex: 1; }
  .gallery__item--wide { grid-column: span 2; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center;
  padding: 64px 0 calc(24px + env(safe-area-inset-bottom));
  opacity: 0; transition: opacity .35s var(--ease);
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; width: 100%; max-width: 1200px; padding: 0 var(--gutter); }
.lightbox__figure img { width: 100%; max-height: 74vh; object-fit: contain; margin: 0 auto; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lightbox__figure figcaption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 16px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted);
}
.lightbox__count { color: var(--on-dark); white-space: nowrap; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; display: grid; place-items: center; }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.lightbox__nav { display: none; }
@media (min-width: 900px) {
  .lightbox__nav {
    display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px; border: 1px solid var(--line-dark); border-radius: var(--radius);
    transition: background .3s, border-color .3s;
  }
  .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
  .lightbox__figure { padding: 0 104px; }
}

/* ==========================================================================
   9. Contact
   ========================================================================== */
.contact__grid { display: grid; gap: 56px; }
.contact h2 { font-size: clamp(34px, 8vw, 64px); margin-bottom: 20px; max-width: 14ch; }
.contact__info > .muted { max-width: 44ch; }
.contact__list { margin: 40px 0 0; display: grid; border-top: 1px solid var(--line-dark); }
.contact__list > div { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 480px) { .contact__list > div { grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; } }
.contact__list dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.contact__list dd { margin: 0; font-size: 17px; overflow-wrap: break-word; }
.contact__list dd a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__list dd a:hover { border-color: #8FA897; }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 22px; }
.field label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--on-dark);
  background: transparent; border: 0; border-bottom: 1px solid rgba(245,242,236,.28);
  border-radius: 0; padding: 10px 0 12px;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: #8FA897; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #C98F7E; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg); pointer-events: none; opacity: .7;
}
.field select { cursor: pointer; padding-right: 28px; }
.field select option { color: var(--text); background: var(--light); }
.hp { position: absolute; left: -9999px; }
.form__error { color: #E3B4A6; font-size: 14px; }
.form .btn { margin-top: 10px; }
.form__note { font-size: 13px; color: var(--on-dark-muted); text-align: center; margin-top: -8px; }
.form-success__alt { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }
.form-success__alt a { color: var(--on-dark); border-bottom: 1px solid var(--line-dark); overflow-wrap: anywhere; }
.form-success .text-link--light { color: #8FA897; margin-top: 24px; background: none; cursor: pointer; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

.form-success { border-top: 1px solid #8FA897; padding-top: 32px; outline: none; }
.form-success__mark { font-size: 38px; color: #8FA897; line-height: 1; margin-bottom: 16px; }
.form-success p { color: var(--on-dark-muted); max-width: 40ch; }
.form-success .form-success__mark { color: #8FA897; }

@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 120px; align-items: start; }
  .contact__form-wrap { padding-top: 44px; }
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.footer { padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); }
.footer__since {
  font-family: var(--font-head); font-weight: 400; letter-spacing: -0.02em; line-height: .85;
  font-size: clamp(64px, 19vw, 240px); color: rgba(245,242,236,.07);
  margin-bottom: 56px; white-space: nowrap;
}
.footer__since .serif { font-size: .34em; color: rgba(143,168,151,.45); margin-right: .15em; vertical-align: .9em; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__grid p { color: var(--on-dark-muted); font-size: 15px; }
.footer__grid .logo { color: var(--on-dark); margin-bottom: 10px; }
.footer__tag { font-size: 17px; color: var(--on-dark) !important; }
.footer__label { font-size: 12px !important; letter-spacing: .16em; text-transform: uppercase; color: #8FA897 !important; margin-bottom: 10px; }
.footer__grid a { color: var(--on-dark); overflow-wrap: anywhere; }
.footer__grid a:hover { color: #8FA897; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 8px; padding-top: 24px;
  font-size: 12px; color: var(--on-dark-muted);
}
.footer__bottom a { border-bottom: 1px solid var(--line-dark); }
.footer__bottom a:hover { color: var(--on-dark); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Multi-page parts
   ========================================================================== */
/* Interior page header */
.page-head { padding: calc(var(--header-h) + 64px) 0 56px; }
.page-head + .dark { padding-top: 0; }
.page-head .eyebrow { margin-bottom: 24px; }
.page-head__title { font-size: clamp(48px, 13vw, 132px); line-height: .95; letter-spacing: -0.015em; max-width: 12ch; }
.page-head__sub { font-size: clamp(19px, 4.6vw, 26px); color: var(--on-dark-muted); margin-top: 22px; max-width: 32ch; }
@media (min-width: 900px) { .page-head { padding: calc(var(--header-h) + 120px) 0 96px; } }

/* Text link with arrow */
.text-link {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.text-link svg, .door__arrow svg, .next-band svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.25; transition: transform .4s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* Home: photo doorways */
.doors { padding-top: 0; }
.doors__grid { display: grid; gap: 16px; }
.door {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--dark); color: var(--on-dark);
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,15,0) 30%, rgba(14,15,15,.85) 100%); }
.door__text { position: absolute; z-index: 1; left: 22px; bottom: 20px; display: grid; gap: 4px; }
.door__kicker { font-size: 16px; color: rgba(245,242,236,.8); }
.door__title { font-family: var(--font-head); font-size: clamp(36px, 10vw, 52px); line-height: 1; }
.door__arrow {
  position: absolute; z-index: 1; right: 20px; bottom: 22px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(245,242,236,.4); border-radius: 50%;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.door:hover img { transform: scale(1.05); }
.door:hover .door__arrow { background: var(--accent); border-color: var(--accent); }
.door:hover .door__arrow svg { transform: translateX(2px); }
@media (min-width: 900px) {
  .doors__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .door { aspect-ratio: 3 / 4; }
}

/* Closing call to action */
.cta-band { padding-top: 0; }
.cta-band__inner { border-top: 1px solid var(--line-light); padding-top: 56px; display: grid; gap: 28px; }
.cta-band h2 { font-size: clamp(34px, 8vw, 60px); max-width: 14ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-band__phone { font-size: 17px; border-bottom: 1px solid var(--line-light); padding-bottom: 2px; }
.cta-band__phone:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 599px) { .cta-band .btn { width: 100%; } }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr auto; align-items: end; padding-top: 72px; }
}

/* Next page link */
.next-band { display: block; background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.next-band__inner { display: grid; gap: 4px; padding-top: 56px; padding-bottom: 56px; }
.next-band .eyebrow { margin-bottom: 6px; }
.next-band__title {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-head); font-size: clamp(40px, 11vw, 104px); line-height: 1;
}
.next-band__title svg { width: clamp(28px, 6vw, 56px); height: clamp(28px, 6vw, 56px); flex: none; }
.next-band:hover .next-band__title svg { transform: translateX(8px); }
.next-band:hover .next-band__title { color: #C9D6CC; }
@media (min-width: 900px) { .next-band__inner { padding-top: 96px; padding-bottom: 96px; } }

/* Contact page */
.contact--page { padding-top: calc(var(--header-h) + 64px); }
.contact--page .page-head__title { font-size: clamp(44px, 11vw, 96px); max-width: 11ch; }
@media (min-width: 900px) { .contact--page { padding-top: calc(var(--header-h) + 120px); } }

/* Scroll cues: thin line with a falling tick, plus a chevron */
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(245,242,236,.75); transition: opacity .5s var(--ease), color .3s;
}
.scroll-cue:hover { color: var(--on-dark); }
.scroll-cue__label { font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; margin-right: -.28em; }
.scroll-cue__line { position: relative; width: 1px; height: 36px; background: rgba(245,242,236,.22); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: currentColor; animation: cueDrop 2.4s cubic-bezier(.6,0,.3,1) infinite;
}
.scroll-cue__chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; margin-top: -6px; animation: cueBob 2.4s ease-in-out infinite; }
@keyframes cueDrop { 0% { top: -40%; } 70%, 100% { top: 100%; } }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.scroll-cue--hero {
  position: absolute; z-index: 2; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
}
.page-head .scroll-cue { margin-top: 40px; }
html.is-scrolled .scroll-cue--hero { opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .hero__content { padding-bottom: calc(118px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .page-head .scroll-cue { margin-top: 64px; } }

/* Timeline swipe hint (phones; desktop has arrow buttons) */
.swipe-hint {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted);
  transition: opacity .5s var(--ease);
}
.swipe-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.25; animation: cueNudge 2.4s ease-in-out infinite; }
@keyframes cueNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.swipe-hint.is-done { opacity: 0; }
@media (min-width: 768px) { .swipe-hint { display: none; } }

/* Page-to-page crossfade (supported browsers; ignored elsewhere) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ==========================================================================
   Motion
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  .door:hover img { transform: none; }
  .scroll-cue__line::after { top: 30%; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__slide img { transform: none; }
  .era:hover .era__media img, .service:hover .service__media img,
  .property:hover .property__media img, .gallery__item button:hover img { transform: none; }
}
