/* ============================================
   HARBOR — Luxury Coastal Real Estate
   Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400&family=Cormorant+Garamond:ital,wght@0,400;1,300&family=Funnel+Display:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* Geist via cdn */
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@1.3.0/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@1.3.0/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@1.3.0/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --ink: #0B1220;
  --ink-2: #141B26;
  --ink-3: #1C2533;
  --line: rgba(245, 241, 232, 0.12);
  --line-strong: rgba(245, 241, 232, 0.22);
  --cream: #F5F1E8;
  --cream-2: #ECE6D7;
  --cream-warm: #E8E0CC;
  --muted: #8B8E96;
  --muted-light: #B4B6BC;
  --gold: #C5A572;
  --gold-deep: #A88753;
  --gold-light: #DCC392;

  /* Type */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 10vw, 160px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 170px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

/* ===== Typography ===== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.display em {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  letter-spacing: -0.005em;
}
.bg-cream .display em { color: var(--gold-deep); }

/* Sans section titles — used for ALL section headings except hero */
.section-title {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--cream);
  text-wrap: balance;
}
.bg-cream .section-title { color: var(--ink); }
.section-title em {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.005em;
}
.bg-cream .section-title em { color: var(--gold-deep); }
.section-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
  opacity: 0.72;
  margin-top: 14px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.bg-cream .section-num { color: var(--gold-deep); }
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.bg-cream .section-rule { background: rgba(11, 18, 32, 0.1); }
.display-xl { font-size: clamp(40px, 6.4vw, 96px); letter-spacing: -0.018em; }
.display-lg { font-size: clamp(36px, 5.4vw, 80px); letter-spacing: -0.016em; }
.display-md { font-size: clamp(30px, 4vw, 56px); letter-spacing: -0.012em; }
.display-sm { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.008em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-muted {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono { font-family: var(--font-mono); }

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.85;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.section-pad { padding: var(--section-y) 0; }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter);
}
.site-header.light {
  background: rgba(245, 241, 232, 0.85);
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
}
.brand-name { line-height: 1; }
.brand-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav a {
  position: relative;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
}
.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-ghost {
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
  padding: 6px 0;
  letter-spacing: 0.14em;
}

.btn-icon {
  width: 14px;
  height: 14px;
}

/* ===== Light surfaces ===== */
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-cream .eyebrow-muted { color: rgba(11, 18, 32, 0.5); }
.bg-cream .muted { color: rgba(11, 18, 32, 0.6); }
.bg-ink-2 { background: var(--ink-2); }

/* ===== Image placeholders/aspects ===== */
.aspect-hero { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1; }
.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-3-2 { aspect-ratio: 3/2; }
.aspect-2-3 { aspect-ratio: 2/3; }
.aspect-21-9 { aspect-ratio: 21/9; }

.img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.img-wrap:hover img { transform: scale(1.04); }

/* ===== Hero specifics ===== */
.hero-cinematic {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -2%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(11, 18, 32, 0.55) 0%,
      rgba(11, 18, 32, 0.2) 40%,
      rgba(11, 18, 32, 0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(60px, 8vh, 120px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }
.footer-display {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-display em { font-style: italic; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Common cards ===== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.spec-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
}
.spec-cell:nth-child(4n) { border-right: none; }
.spec-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 32px;
}
.marquee-track span::after {
  content: '✦';
  margin-left: 64px;
  color: var(--gold);
  font-style: normal;
  font-size: 0.6em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}
.bg-cream .field input,
.bg-cream .field select,
.bg-cream .field textarea {
  color: var(--ink);
  border-bottom-color: rgba(11, 18, 32, 0.2);
}
.bg-cream .field label { color: rgba(11, 18, 32, 0.55); }
.bg-cream .field input:focus,
.bg-cream .field select:focus,
.bg-cream .field textarea:focus {
  border-bottom-color: var(--gold-deep);
}

/* Mobile */
@media (max-width: 880px) {
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .spec-cell:nth-child(2n) { border-right: none; }
  .spec-value { font-size: 36px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.97);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px var(--gutter);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(245, 241, 232, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bg-cream .tag {
  border-color: rgba(11, 18, 32, 0.15);
}
.tag-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* Hover link underline */
.link-underline {
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link-underline:hover::after {
  transform: scaleX(0);
}

/* Page intro (sub-pages) */
.page-intro {
  padding-top: 180px;
  padding-bottom: 60px;
}

/* Drawer/menu (mobile) */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 880px) {
  .menu-btn { display: flex; }
  .header-cta .btn { display: none; }
}

/* ===== Logo / seal ===== */
.seal-logo, .seal-logo-sm, .seal-logo-lg, .seal-logo-xl {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
}
.seal-logo { width: 64px; height: 64px; }
.seal-logo-sm { width: 44px; height: 44px; }
.seal-logo-lg { width: 200px; height: 200px; }
.seal-logo-xl { width: 320px; height: 320px; }

/* ===== Subnav (sticky after hero) ===== */
.subnav {
  position: sticky;
  top: 100px;
  z-index: 95;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 28px;
  white-space: nowrap;
  padding: 18px 0;
  flex-shrink: 0;
}
.subnav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 20px;
  white-space: nowrap;
  opacity: 0.6;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}
.subnav a:hover { opacity: 1; }
.subnav a.active {
  opacity: 1;
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== Tweaks panel ===== */
#tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 24px;
  z-index: 150;
  font-family: var(--font-body);
  color: var(--cream);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
#tweaks-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.tw-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.tw-close {
  width: 28px; height: 28px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--cream); font-size: 18px;
  cursor: pointer; transition: all 0.2s;
}
.tw-close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.tw-section { margin-bottom: 20px; }
.tw-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.tw-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tw-font {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  text-align: left; color: var(--cream); transition: all 0.2s;
}
.tw-font:hover { border-color: var(--line-strong); }
.tw-font.active { border-color: var(--gold); background: rgba(197,165,114,0.08); }
.tw-font-sample {
  font-size: 28px; line-height: 1; color: var(--gold);
}
.tw-font-meta { font-size: 12px; }
.tw-accents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tw-accent {
  background: transparent; border: 1px solid var(--line); padding: 10px 6px;
  cursor: pointer; color: var(--cream); transition: all 0.2s;
}
.tw-accent span:first-child {
  display: block; width: 100%; height: 28px;
}
.tw-accent.active { border-color: var(--gold); background: rgba(197,165,114,0.08); }

/* ===== Date picker ===== */
.date-row {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.date-row::-webkit-scrollbar { display: none; }
.date-btn {
  flex-shrink: 0; min-width: 64px; padding: 12px 8px;
  border: 1px solid rgba(11,18,32,0.12); background: transparent; color: var(--ink);
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.date-btn:hover { border-color: rgba(11,18,32,0.3); }
.date-btn.active { border-color: var(--gold-deep); background: var(--ink); color: var(--cream); }
.date-btn.active .mono { opacity: 0.85; }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.time-slot {
  padding: 12px; border: 1px solid rgba(11,18,32,0.12); background: transparent;
  color: var(--ink); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; cursor: pointer; transition: all 0.2s;
}
.time-slot:hover { border-color: rgba(11,18,32,0.3); }
.time-slot.active { border-color: var(--gold-deep); background: var(--ink); color: var(--cream); }

/* ===== Range sliders ===== */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.range::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 880px) {
  .tw-accents { grid-template-columns: repeat(4, 1fr); }
  #tweaks-panel { right: 12px; left: 12px; width: auto; bottom: 12px; }
  .time-slots { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Mobile Drawer ===== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.78);
  z-index: 190;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.drawer-overlay.open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(82vw, 320px);
  height: 100dvh;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  z-index: 200;
  padding: 72px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: right 0.4s var(--ease);
  overflow-y: auto;
}
.nav-drawer.open { right: 0; }

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-size: 22px;
  font-family: var(--font-mono);
  cursor: pointer;
  background: none;
  transition: all 0.2s;
}
.drawer-close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.nav-drawer a:not(.btn) {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cream);
  opacity: 0.82;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  transition: opacity 0.2s, color 0.2s;
}
.nav-drawer a:not(.btn):hover { opacity: 1; color: var(--gold); }
.drawer-cta { margin-top: 32px; }

/* ===== Mobile section overrides ===== */
@media (max-width: 880px) {
  /* subnav */
  .subnav { justify-content: flex-start; }
  .subnav-label { display: none; }

  /* story: stack columns */
  #story .container-wide > div {
    grid-template-columns: 1fr !important;
  }
  #story .container-wide > div > .img-wrap {
    aspect-ratio: 3/2 !important;
  }

  /* tour: timeline 4→2 col */
  #tour .container-wide > div:nth-child(3) {
    grid-template-columns: 1fr 1fr !important;
  }
  /* tour: 3D/aerial 2→1 col */
  #tour .container-wide > div:nth-child(4) {
    grid-template-columns: 1fr !important;
  }

  /* plans: stack */
  #plans .container-wide > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }

  /* location: stack */
  #location .container-wide > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }
  #location .container-wide > div:nth-child(2) > div:first-child {
    aspect-ratio: 4/3 !important;
  }

  /* concierge: stack */
  #concierge .container > div {
    grid-template-columns: 1fr !important;
  }

  /* finance: stack */
  #finance .container > div {
    grid-template-columns: 1fr !important;
  }

  /* agent: stack + shorter photo */
  #agent .container > div {
    grid-template-columns: 1fr !important;
  }
  #agent .img-wrap {
    aspect-ratio: 4/3 !important;
  }

  /* CTA headline: allow wrap */
  .section-title[style*="nowrap"] {
    white-space: normal !important;
  }

  /* footer bottom */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* hero buttons */
  #top .btn { font-size: 11px; padding: 12px 18px; }
}

@media (max-width: 600px) {
  /* tour timeline: 2→1 col */
  #tour .container-wide > div:nth-child(3) {
    grid-template-columns: 1fr !important;
  }

  /* subnav font smaller */
  .subnav a { font-size: 11px; padding: 16px 12px; }

  /* story text padding */
  #story .container-wide > div > div:last-child {
    padding: 0 !important;
  }

  /* concierge chat: smaller */
  #chat-log { min-height: 180px !important; max-height: 260px !important; }

  /* agent contact grid: 1 col */
  #agent .container > div > div:last-child > div:nth-child(4) {
    grid-template-columns: 1fr !important;
  }
}
