/* ============================================================
   OVERLOOK RESIDENCES — Design System
   Palette: Overlook nature (charcoal-green / slate / tan / sand)
   Type: Fraunces (display serif) + Mulish (sans)
   ============================================================ */

:root {
  /* Brand palette (from Overlook brand overview) */
  --ink:   #2C3639;   /* charcoal-green — primary dark */
  --slate: #3F4E4F;   /* slate green */
  --tan:   #A27B5B;   /* warm tan — accent */
  --tan-d: #8A6749;   /* darker tan for hover */
  --sand:  #DCD7C9;   /* light sand */
  --cream: #F5F2EB;   /* derived lighter cream */
  --paper: #FBFAF6;   /* near-white background */
  --white: #FFFFFF;

  /* Text */
  --text-dark:  #2C3639;
  --text-muted: #5B6668;
  --text-light: #EDE9E0;
  --text-onink: #E8E3D8;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --topbar-h: 38px;
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 2px 10px rgba(44,54,57,0.06);
  --shadow-md: 0 10px 40px rgba(44,54,57,0.10);
  --shadow-lg: 0 24px 70px rgba(44,54,57,0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.display {
  font-size: clamp(2.9rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
h2.section-title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 340; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { max-width: 62ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.eyebrow--light { color: var(--sand); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-muted); line-height: 1.7; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1440px; }
section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-ink { background: var(--ink); color: var(--text-onink); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-cream { background: var(--cream); }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05em 2.1em; border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--tan); color: #fff; }
.btn--primary:hover { background: var(--tan-d); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border: 1.5px solid currentColor; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.nav .btn--ghost-light:hover { background: transparent; color: var(--tan); border-color: var(--tan); }
.btn--link {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tan); display: inline-flex; align-items: center; gap: 0.5em;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: gap 0.3s var(--ease), border-color 0.3s;
}
.btn--link:hover { gap: 0.9em; border-color: var(--tan); }

/* ---------- Top announcement bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  height: var(--topbar-h); display: flex; align-items: center; justify-content: center;
  background: var(--tan); color: #fff;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; text-align: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.topbar:hover { background: var(--tan-d); color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 0.55em; }
.topbar span::after { content: "\2192"; font-size: 0.9em; transition: transform 0.3s var(--ease); }
.topbar:hover span::after { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), top 0.4s var(--ease);
}
.site-header.scrolled { background: rgba(44,54,57,0.96); backdrop-filter: blur(10px); padding-block: 0.85rem; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.site-header .logo img { height: 44px; width: auto; transition: height 0.4s var(--ease); }
.site-header.scrolled .logo img { height: 36px; }
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; position: relative; padding-block: 4px; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--tan);
  transition: width 0.35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--sand); }
.nav .btn { color: #fff; padding: 0.75em 1.6em; }
.nav-toggle { display: none; z-index: 120; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: #fff; transition: all 0.35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__poster { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,54,57,0.45) 0%, rgba(44,54,57,0.15) 35%, rgba(44,54,57,0.75) 100%);
}
.hero__inner { padding-bottom: clamp(3.5rem, 8vw, 7rem); padding-top: 8rem; width: 100%; }
.hero__inner .eyebrow { color: #fff; opacity: 0.9; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 500; margin-top: 1.6rem; max-width: 46ch; color: rgba(255,255,255,0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  font-size: 0.65rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.75);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll span { width: 1px; height: 46px; background: rgba(255,255,255,0.55); animation: scrollpulse 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollpulse { 0%,100%{transform: scaleY(0.35); opacity:0.4;} 50%{transform: scaleY(1); opacity:1;} }

/* Announcement bar */
.announce { background: var(--tan); color: #fff; text-align: center; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 0.55rem 1rem; position: relative; z-index: 101; }

/* ---------- Grids & split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide-img { grid-template-columns: 1.15fr 1fr; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
.stack > * + * { margin-top: 1.3rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.12); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--ink); padding: clamp(1.6rem,3vw,2.6rem) 1.4rem; text-align: center; }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--sand); line-height: 1; }
.stat__label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(232,227,216,0.7); margin-top: 0.7rem; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(44,54,57,0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__ico { width: 46px; height: 46px; color: var(--tan); margin-bottom: 1.2rem; }
.feature h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.feature p { font-size: 0.98rem; color: var(--text-muted); }

/* ---------- Plan cards ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.plan-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(44,54,57,0.07);
  display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.plan-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.plan-card:hover .plan-card__media img { transform: scale(1.05); }
.plan-card__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(44,54,57,0.9); color: var(--sand); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 0.5em 1em; border-radius: 30px; }
.plan-card__body { padding: 1.8rem 1.9rem 2rem; display: flex; flex-direction: column; flex: 1; }
.plan-card__name { font-size: 1.7rem; }
.plan-card__name small { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); font-weight: 700; display: block; margin-top: 0.3rem; }
.plan-specs { display: flex; gap: 1.6rem; margin: 1.1rem 0 1.3rem; flex-wrap: wrap; }
.plan-specs div { font-size: 0.9rem; }
.plan-specs strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--ink); display: block; }
.plan-specs span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.plan-card__price { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid rgba(44,54,57,0.1); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan-card__price .from { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.plan-card__price .amt { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }

/* ---------- Spec list ---------- */
.spec-list { display: grid; gap: 0.5rem; }
.spec-list li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; color: var(--text-muted); }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--tan); }

/* ---------- Plan figure ---------- */
.plan-figure { margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); border: 1px solid rgba(44,54,57,0.06); }
.plan-figure img { margin-inline: auto; }
.plan-figure figcaption { text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* ---------- Availability table ---------- */
.avail { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.avail th, .avail td { text-align: left; padding: 1.15rem 1.3rem; font-size: 0.95rem; }
.avail thead th { background: var(--ink); color: var(--sand); font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.avail tbody tr { border-bottom: 1px solid rgba(44,54,57,0.08); transition: background 0.25s; }
.avail tbody tr:hover { background: var(--cream); }
.avail tbody tr:last-child { border-bottom: none; }
.avail .u-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.avail .u-name small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tan); font-weight: 700; }
.avail .price { font-family: var(--serif); font-size: 1.2rem; }
.badge { display: inline-block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 0.4em 0.9em; border-radius: 30px; }
.badge--available { background: #E3ECE4; color: #3B6B4A; }
.badge--soon { background: var(--sand); color: var(--slate); }

/* ---------- Gallery ---------- */
.gal-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.6rem; }
.gal-filter button {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 0.65em 1.35em; border-radius: 30px; color: var(--text-muted);
  border: 1px solid rgba(44,54,57,0.16); transition: all 0.3s var(--ease);
}
.gal-filter button:hover { color: var(--ink); border-color: var(--ink); }
.gal-filter button.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery {
  columns: 2; column-gap: 10px;
  width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  padding-inline: 10px;
}
.gallery figure { break-inside: avoid; margin-bottom: 10px; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); }
.gallery figure img { width: 100%; transition: transform 0.7s var(--ease); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(44,54,57,0.55)); opacity: 0; transition: opacity 0.4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption { position: absolute; left: 1rem; bottom: 0.85rem; color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; z-index: 2; opacity: 0; transform: translateY(6px); transition: all 0.4s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(28,34,35,0.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity 0.35s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; font-size: 2rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; transition: background 0.25s; }
.lightbox__close { top: 3vh; right: 3vw; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.4rem; background: rgba(255,255,255,0.08); }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__prev { left: 2vw; } .lightbox__next { right: 2vw; }
.lightbox__cap { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.8); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid rgba(44,54,57,0.14); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); }
.faq-q .ico { flex: none; width: 26px; height: 26px; position: relative; transition: transform 0.4s var(--ease); }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--tan); border-radius: 2px; }
.faq-q .ico::before { top: 12px; left: 3px; right: 3px; height: 2px; }
.faq-q .ico::after { left: 12px; top: 3px; bottom: 3px; width: 2px; transition: opacity 0.3s; }
.faq-item.open .faq-q .ico::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { padding-bottom: 1.7rem; color: var(--text-muted); }

/* ---------- Location / list ---------- */
.dist-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 3rem; }
.dist-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 0.98rem; }
.dist-list li span:last-child { color: var(--tan); font-weight: 700; white-space: nowrap; }

/* ---------- Showcase band (full-bleed photo) ---------- */
.showcase-band {
  position: relative; overflow: hidden; color: #fff;
  background-size: cover; background-position: center; background-attachment: fixed;
  padding-block: clamp(5rem, 14vw, 10rem);
}
.showcase-band__overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(44,54,57,0.30) 0%, rgba(44,54,57,0.55) 100%); }
.showcase-band .wrap { position: relative; z-index: 1; }
.showcase-band h2 { color: #fff; }
@media (max-width: 900px) { .showcase-band { background-attachment: scroll; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__pattern { position: absolute; inset: 0; opacity: 0.09; background-repeat: repeat; background-size: 1040px; z-index: 0; }
.cta-band .wrap { position: relative; z-index: 1; }

/* ---------- Form ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(2rem, 4vw, 3.2rem); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--slate); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.9rem 1rem; border: 1px solid rgba(44,54,57,0.2); border-radius: var(--radius); background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tan); box-shadow: 0 0 0 3px rgba(162,123,91,0.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ---------- Contact ---------- */
.contact-lines { display: grid; gap: 1.3rem; margin-top: 0.8rem; }
.contact-line { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: start; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(44,54,57,0.1); }
.contact-line__label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--tan); padding-top: 3px; }
.contact-line a { font-size: 1.02rem; color: var(--ink); line-height: 1.4; transition: color 0.2s; }
.contact-line a:hover { color: var(--tan); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0.4rem 0 1.2rem; cursor: pointer; }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--tan); }
.form-success { background: #E3ECE4; color: #3B6B4A; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.92rem; font-weight: 600; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-onink); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand a { display: inline-block; }
.footer-brand img { height: 40px; margin-bottom: 1.3rem; }
.footer-brand p { color: rgba(232,227,216,0.72); font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tan); margin-bottom: 1.2rem; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: rgba(232,227,216,0.82); font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.8rem 0 2.4rem; font-size: 0.8rem; color: rgba(232,227,216,0.55); }
.footer-legal a { color: rgba(232,227,216,0.7); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal .links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-disclaimer { font-size: 0.76rem; color: rgba(232,227,216,0.45); line-height: 1.7; max-width: 90ch; padding-bottom: 2.4rem; }
.dev-logos { display: flex; align-items: center; gap: 2rem; margin-top: 1.6rem; }
.dev-logos img { height: 34px; opacity: 0.85; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; min-height: 73vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44,54,57,0.55), rgba(44,54,57,0.35) 50%, rgba(44,54,57,0.8)); }
.page-hero__inner { padding-bottom: clamp(2.5rem, 5vw, 4rem); padding-top: 9rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 300; }
.page-hero .eyebrow { color: #fff; opacity: 0.9; }
.breadcrumb { font-size: 0.78rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); margin-top: 1rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { text-align: center; }
.team-card__photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); margin-bottom: 1.2rem; position: relative; }
.team-card__photo img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.team-card__ph { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--slate); }
.team-card__ph svg { width: 40%; opacity: 0.35; }
.team-card h3 { font-size: 1.35rem; }
.team-card .role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tan); font-weight: 700; margin: 0.4rem 0 0.7rem; }
.team-card p { font-size: 0.92rem; color: var(--text-muted); margin-inline: auto; }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.8rem, 5vw, 3.2rem); margin-bottom: 1.6rem; flex-wrap: wrap; }
.partner-logos img { height: 40px; opacity: 0.9; transition: opacity 0.25s; }
.partner-logos a:hover img { opacity: 1; }
.plan-card__dl { margin-top: 1rem; width: 100%; justify-content: center; }

/* ---------- Profiles (developer / designer) ---------- */
.profile-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.profile:nth-child(even) { grid-template-columns: 1fr 300px; }
.profile:nth-child(even) .profile__photo { order: 2; }
.profile__photo { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-sm); }
.profile__photo img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.profile__photo .team-card__ph { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--slate); }
.profile__photo .team-card__ph svg { width: 34%; opacity: 0.35; }
.profile__role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tan); font-weight: 800; margin: 0.5rem 0 1rem; }
.profile h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.profile p { color: var(--text-muted); }
.profile__links { display: flex; gap: 1.6rem; margin-top: 1.2rem; flex-wrap: wrap; }

/* ---------- Project partners strip ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 3rem; margin-top: 1.8rem; }
.partner .k { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: rgba(232,227,216,0.55); margin-bottom: 0.35rem; }
.partner .v { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); transition: color 0.2s; }
.partner a:hover .v { color: #fff; }
@media (max-width: 720px) {
  .profile, .profile:nth-child(even) { grid-template-columns: 1fr; }
  .profile__photo { order: -1 !important; max-width: 260px; }
}
.team-card__link { display: inline-block; margin-top: 0.9rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tan); transition: color 0.2s; }
.team-card__link:hover { color: var(--tan-d); }

/* ---------- Compare table ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 1.1rem 1.4rem; text-align: left; border-bottom: 1px solid rgba(44,54,57,0.08); }
.compare thead th { background: var(--ink); color: var(--sand); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.compare thead th:first-child { background: var(--slate); }
.compare td:first-child { font-weight: 700; color: var(--slate); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.compare .plan-h { font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Interactive Map ---------- */
.overlook-map { height: 520px; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); z-index: 1; }
.leaflet-container { font-family: var(--sans); background: var(--slate); }
.map-legend {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 2rem; margin-top: 2.4rem;
}
.legend-group h4 {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend-group li {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0; cursor: pointer;
  font-size: 0.86rem; color: rgba(232,227,216,0.85); transition: color 0.2s;
}
.legend-group li:hover { color: #fff; }
.legend-n {
  flex: none; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 0.68rem; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}
.legend-name { flex: 1; line-height: 1.25; }
.legend-name small { display: block; color: rgba(232,227,216,0.5); font-size: 0.72rem; }
.legend-dist { color: var(--tan); font-weight: 700; font-size: 0.76rem; white-space: nowrap; margin-top: 1px; }

/* Leaflet div-icon markers */
.ov-pin__num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-family: var(--sans); font-weight: 800; font-size: 0.8rem;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.ov-pin--subject { display: flex; align-items: center; }
.ov-pin__dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--tan); border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(162,123,91,0.5), 0 2px 8px rgba(0,0,0,0.4);
}
.ov-pin__label {
  font-family: var(--serif); font-size: 0.92rem; color: #fff; background: var(--ink);
  padding: 2px 9px; border-radius: 20px; margin-left: 6px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.leaflet-popup-content-wrapper { border-radius: 6px; }
.leaflet-popup-content { font-size: 0.85rem; line-height: 1.5; }

/* ---------- Misc ---------- */
.divider-birds { height: 60px; background-repeat: repeat-x; background-size: auto 60px; background-position: center; opacity: 0.5; }
.note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

@media (max-width: 940px) { .map-legend { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .map-legend { grid-template-columns: 1fr; } .overlook-map { height: 400px; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .split, .split--wide-img { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dist-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(44,54,57,0.98); backdrop-filter: blur(8px);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
  }
  body.nav-open .nav { transform: none; }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .nav { overflow-y: auto; z-index: 110; }
  .site-header { background: rgba(44,54,57,0.96); }
  /* The scrolled header's backdrop-filter was making it the containing block for the
     fixed nav drawer, clipping it to the header when scrolled. Turn it off on mobile. */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .avail-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .avail, .compare { min-width: 560px; }
  /* Bigger tap area for the menu button without moving the icon */
  .nav-toggle { padding: 11px; margin: -11px; box-sizing: content-box; }
  .site-header { padding-inline: var(--gutter); }
}

/* ---------- Phone refinements ---------- */
@media (max-width: 560px) {
  :root { --gutter: 1.25rem; }
  section { padding-block: clamp(3rem, 12vw, 4.5rem); }
  .hero__inner { padding-bottom: 3rem; }
  .hero h1 { max-width: 100%; }
  .hero__actions .btn, .hero__actions a { flex: 1 1 auto; justify-content: center; }
  .page-hero { min-height: 60vh; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.5rem 1rem; }
  .plan-specs { gap: 1.1rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-legal .links { gap: 0.4rem 1.1rem; }
  .contact-line { grid-template-columns: 60px 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { width: 100%; }
  .nav .btn, .btn--link, .team-card__link { width: auto; }
}

/* ---------- Mobile tables: cards instead of side-scroll ---------- */
@media (max-width: 640px) {
  .avail-scroll { overflow-x: visible; }
  .avail, .compare { min-width: 0; }

  /* Availability -> stacked cards */
  .avail { background: transparent; box-shadow: none; }
  .avail thead { display: none; }
  .avail tbody, .avail tr, .avail td { display: block; }
  .avail tr {
    background: var(--white); border: 1px solid rgba(44,54,57,0.08); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 1.1rem 1.25rem; margin-bottom: 1rem;
  }
  .avail tbody tr:hover { background: var(--white); }
  .avail td {
    border: none; padding: 0.45rem 0; display: flex; justify-content: space-between;
    align-items: baseline; gap: 1.2rem; text-align: right; font-size: 0.95rem;
  }
  .avail td::before {
    content: attr(data-label); text-align: left; white-space: nowrap;
    font-family: var(--sans); font-weight: 800; font-size: 0.64rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--tan);
  }
  .avail td.u-name {
    display: block; text-align: left; font-size: 1.35rem; padding: 0 0 0.7rem;
    margin-bottom: 0.4rem; border-bottom: 1px solid rgba(44,54,57,0.1);
  }
  .avail td.u-name::before { display: none; }
  .avail tr.avail-note td[colspan] { text-align: left; }
  .avail tr.avail-note td[colspan]::before { display: none; }

  /* Compare -> keep side-by-side, just fit the screen */
  .compare th, .compare td { padding: 0.7rem 0.6rem; font-size: 0.8rem; }
  .compare td:first-child { font-size: 0.64rem; letter-spacing: 0.04em; }
  .compare .plan-h { font-size: 1rem; }
}

/* Respect reduced-data / no-JS: poster always visible under video */
@media (max-width: 767px) { .hero__video { display: none; } }
