/* =================================================================
   DŌMI — 29-16 40th Avenue, Dutch Kills, Long Island City
   Design system: Ivory / Terracota / Olive / Moss / Slate
   Headline font (placeholder for licensed "Queens Condensed"): Cormorant
   Body font (placeholder for licensed "Favorit Pro Light"): Jost
   ================================================================= */

:root {
  /* Brand colors */
  --ivory: #F7EDE4;
  --ivory-soft: #FBF6F0;
  --terracota: #8A4D2E;
  --olive: #6E704A;
  --moss: #403D24;
  --slate: #141A08;
  --white: #FFFFFF;

  /* Functional aliases */
  --bg: var(--ivory);
  --bg-alt: var(--ivory-soft);
  --text: var(--slate);
  --text-soft: #4A4636;
  --accent: var(--terracota);
  --line: rgba(20, 26, 8, 0.12);
  --line-soft: rgba(20, 26, 8, 0.08);

  /* Type */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --gutter: clamp(24px, 5vw, 80px);
  --section-pad: clamp(64px, 10vw, 140px);

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

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { font-size: 17px; }
@media (max-width: 640px) { html { font-size: 16.5px; } }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 920px) { body { cursor: auto; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.08;
  color: var(--slate);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracota);
  font-weight: 400;
  display: inline-block;
  margin-bottom: 1.1rem;
}

p { font-weight: 300; color: var(--text-soft); }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 16px 34px;
  border: 1px solid currentColor;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
  white-space: nowrap;
}
.btn-dark { color: var(--ivory); background: var(--slate); border-color: var(--slate); }
.btn-dark:hover { background: transparent; color: var(--slate); }
.btn-outline { color: var(--slate); background: transparent; border-color: var(--slate); }
.btn-outline:hover { background: var(--slate); color: var(--ivory); }
.btn-light { color: var(--slate); background: var(--ivory); border-color: var(--ivory); }
.btn-light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-ghost-light { color: var(--ivory); background: transparent; border-color: rgba(247,237,228,0.6); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--slate); border-color: var(--ivory); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  transition: background .5s var(--ease), padding .4s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-light .logo-mark { color: var(--ivory); }
.site-header.is-dark .logo-mark { color: var(--slate); }
.site-header.scrolled,
.site-header.is-solid {
  background: rgba(247, 237, 228, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled .logo-mark,
.site-header.scrolled .nav-link,
.site-header.scrolled .menu-toggle span,
.site-header.is-solid .logo-mark,
.site-header.is-solid .nav-link,
.site-header.is-solid .menu-toggle span { color: var(--slate) !important; }

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: var(--ivory);
  transition: color .4s var(--ease);
  z-index: 110;
}
.logo-mark svg { height: 52px; width: auto; display: block; }
.logo-mark img { height: 52px; width: auto; display: block; transition: height .4s var(--ease); }
.site-header.scrolled .logo-mark img,
.site-header.is-solid .logo-mark img { height: 42px; }
.logo-mark .logo-slate { display: none; }
.site-header.scrolled .logo-mark .logo-ivory,
.site-header.is-solid .logo-mark .logo-ivory { display: none; }
.site-header.scrolled .logo-mark .logo-slate,
.site-header.is-solid .logo-mark .logo-slate { display: block; }

.main-nav { display: flex; align-items: center; gap: 44px; }
.nav-link {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-bottom: 6px;
  transition: color .4s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .4s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { opacity: 1; }

/* ---------- Dropdown nav ---------- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-trigger::after {
  /* inherit the underline from .nav-link::after */
}
.nav-dropdown-trigger .nav-chevron {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform .3s var(--ease);
  transform: rotate(90deg);
}
.nav-dropdown:hover .nav-chevron { transform: rotate(-90deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ivory);
  min-width: 170px;
  padding: 18px 0 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  box-shadow: 0 16px 48px rgba(20,26,8,0.13);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--ivory);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 11px 24px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
  white-space: nowrap;
}
.nav-dropdown-item:hover { color: var(--terracota); padding-left: 30px; }
.nav-dropdown-item.active { color: var(--terracota); }

/* Scrolled state — dropdown bg stays ivory, links stay slate */
.site-header.scrolled .nav-dropdown-menu,
.site-header.is-solid .nav-dropdown-menu { background: var(--ivory); }

.nav-cta {
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ivory);
  color: var(--ivory);
  padding: 11px 24px;
  transition: all .4s var(--ease);
}
.nav-cta:hover { background: var(--ivory); color: var(--slate); }
.site-header.scrolled .nav-cta,
.site-header.is-solid .nav-cta { border-color: var(--slate); color: var(--slate); }
.site-header.scrolled .nav-cta:hover,
.site-header.is-solid .nav-cta:hover { background: var(--slate); color: var(--ivory); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  z-index: 110;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 1px;
  background: var(--ivory);
  transition: all .4s var(--ease);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--slate);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
}

@media (max-width: 920px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  animation: heroPan 26s ease-in-out infinite;
}
@keyframes heroPan {
  0%   { transform: scale(1.05) translate(0%, 0%); }
  25%  { transform: scale(1.14) translate(-2.8%, -1.6%); }
  50%  { transform: scale(1.22) translate(0.5%, -2.8%); }
  75%  { transform: scale(1.14) translate(2.6%, -0.8%); }
  100% { transform: scale(1.05) translate(0%, 0%); }
}

/* Large hero logo lockup */
.hero-logo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  z-index: 4;
  height: clamp(64px, 11vw, 160px);
  width: auto;
  opacity: 0;
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  filter: drop-shadow(0 4px 30px rgba(0,0,0,0.25));
}
.hero-logo.in-view { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.hero-icon {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 4;
  height: clamp(160px, 24vw, 380px);
  width: auto;
  opacity: 0;
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
  filter: drop-shadow(0 8px 50px rgba(0,0,0,0.3));
}
.hero-icon.in-view { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,26,8,0.18) 0%, rgba(20,26,8,0.05) 35%, rgba(20,26,8,0.65) 100%);
  z-index: 3;
}

/* Hero icon watermark: a huge, faint version of the icon bleeding off
   the edge of the frame — background texture, not a focal object. */
.hero-icon-watermark {
  position: absolute;
  right: -10%;
  bottom: -14%;
  height: 105%;
  width: auto;
  opacity: 0.40;
  z-index: 4;
  pointer-events: none;
}
@keyframes crestIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none !important; opacity: 1 !important; }
}
/* Mobile crest: hidden by default, shown only on mobile inside hero-content flow */
.hero-mobile-crest {
  display: none;
}
@media (max-width: 760px) {
  /* Hide the absolute-positioned desktop watermark on mobile */
  .hero-icon-watermark { display: none; }
  /* Show the in-flow crest above the headline — large and centered */
  .hero-mobile-crest {
    display: block;
    height: clamp(240px, 70vw, 340px);
    width: auto;
    opacity: 0.40;
    margin: 0 auto 28px;
  }
}
@media (max-width: 640px) {
  /* Prevent long hero-sm headings from overflowing on narrow screens */
  .hero.hero-sm h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }
}
.hero-content {
  position: relative;
  z-index: 4;
  padding: 0 var(--gutter) 90px;
  max-width: 980px;
}
.hero .eyebrow { color: var(--ivory); opacity: 0.85; }
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  color: var(--ivory);
  font-weight: 400;
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  max-width: 580px;
  color: rgba(247,237,228,0.88);
  font-weight: 300;
}
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 36px; right: var(--gutter);
  z-index: 4;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory);
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 38px;
  background: rgba(247,237,228,0.6);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleY(1); opacity: .8; } 50% { transform: scaleY(0.4); opacity: .3; } }

/* Sub-page hero (shorter) */
.hero-sm { height: 64vh; min-height: 480px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-tight { padding: clamp(48px, 6vw, 90px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--slate); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark p { color: rgba(247,237,228,0.75); }
.section-dark .eyebrow { color: var(--ivory); opacity: 0.85; }
.section-olive { background: var(--olive); color: var(--ivory); }
.section-olive h2, .section-olive h3 { color: var(--ivory); }
.section-olive p { color: rgba(247,237,228,0.82); }
.section-olive .eyebrow { color: var(--ivory); opacity: 0.9; }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.section-head p { font-size: 1.25rem; margin-top: 18px; max-width: 640px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; transition: opacity 1.2s var(--ease); }
.reveal-fade.in-view { opacity: 1; }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Feature split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
.split-media { overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.05); }
.split-media.tall { aspect-ratio: 4/5; }
.split-media.wide { aspect-ratio: 5/4; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-text { order: unset; }
}

/* ---------- Card components ---------- */
.card {
  background: var(--ivory-soft);
  border: 1px solid var(--line-soft);
  padding: clamp(28px, 4vw, 44px);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.card:hover { border-color: var(--terracota); transform: translateY(-4px); }
.card .num { font-family: var(--font-display); font-size: 0.95rem; color: var(--terracota); letter-spacing: 0.2em; }
.card h3 { font-size: 1.7rem; margin: 14px 0 12px; }
.card p { font-size: 1.05rem; }

/* ---------- Feature card (color-fill hover) ---------- */
/* Neighborhood combined intro + cards row */
.nbhd-combined-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.nbhd-combined-text {
  flex: 0 0 34%;
  max-width: 34%;
}
.nbhd-combined-text .section-head,
.nbhd-combined-text { text-align: left; }
.nbhd-combined-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .nbhd-combined-inner { flex-direction: column; align-items: stretch; }
  .nbhd-combined-text { flex: none; max-width: 100%; }
  .nbhd-combined-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nbhd-combined-cards { grid-template-columns: 1fr; }
}

.feature-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ivory-soft);
  border: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 32px);
  transition: border-color .5s var(--ease), transform .45s var(--ease);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-color, var(--terracota));
  transform: translateY(102%);
  transition: transform .55s var(--ease);
  z-index: 0;
}
.feature-card:hover { border-color: transparent; transform: translateY(-6px); }
.feature-card:hover::before { transform: translateY(0); }
.feature-card.c-olive { --accent-color: var(--olive); }
.feature-card.c-terracota { --accent-color: var(--terracota); }
.feature-card.c-moss { --accent-color: var(--moss); }
.feature-num {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  color: rgba(0,0,0,0.22);
  margin-bottom: 14px;
  transition: color .5s var(--ease);
}
.feature-card:hover .feature-num { color: #fff; }
.feature-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color, var(--terracota));
  margin-bottom: 14px;
  transition: color .5s var(--ease);
}
.feature-card:hover .feature-tag { color: rgba(247,237,228,0.85); }
.feature-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  margin-bottom: 12px;
  transition: color .5s var(--ease);
}
.feature-card:hover h3 { color: var(--ivory); }
.feature-card p {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  transition: color .5s var(--ease);
}
.feature-card:hover p { color: rgba(247,237,228,0.85); }

.amenity-card { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.amenity-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.amenity-card:hover img { transform: scale(1.08); }
.amenity-card .amenity-label {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 26px 26px 22px;
  background: linear-gradient(180deg, transparent, rgba(20,26,8,0.78));
  color: var(--ivory);
}
.amenity-card .amenity-label .eyebrow { color: rgba(247,237,228,0.75); margin-bottom: 4px; }
.amenity-card .amenity-label h3 { color: var(--ivory); font-size: 1.7rem; margin: 0; }

/* ---------- Residence type strip (full-bleed color panels) ---------- */
.type-strip {
  display: flex;
  width: 100%;
  height: clamp(440px, 62vh, 640px);
  gap: 3px;
}
.type-panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3.5vw, 44px);
  transition: flex 0.65s var(--ease);
  cursor: pointer;
  color: var(--ivory);
}
.type-panel.is-expanded { flex: 1.7; }
.type-panel.is-compressed { flex: 0.74; }
.type-panel.c-olive { background: var(--olive); }
.type-panel.c-terracota { background: var(--terracota); }
.type-panel.c-moss { background: var(--moss); }
.type-panel.c-slate { background: var(--slate); }
.type-num {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  left: clamp(22px, 3.5vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 1;
  color: rgba(247,237,228,0.22);
  transition: color .5s var(--ease);
  z-index: 2;
}
.type-panel:hover .type-num, .type-panel.is-expanded .type-num { color: rgba(247,237,228,0.42); }
.type-icon-bg {
  position: absolute;
  right: -12%;
  bottom: -14%;
  width: 78%;
  height: auto;
  opacity: 0.08;
  transform: rotate(-6deg);
  transition: transform .8s var(--ease), opacity .5s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.type-panel:hover .type-icon-bg { opacity: 0.16; transform: rotate(0deg) scale(1.06); }
.type-panel h3 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  color: var(--ivory);
  margin-bottom: 10px;
  white-space: nowrap;
}
.type-panel p {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  color: rgba(247,237,228,0.82);
  max-width: 280px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity .45s var(--ease), max-height .45s var(--ease), margin-top .45s var(--ease);
}
.type-panel:hover p, .type-panel.is-expanded p { opacity: 1; max-height: 140px; margin-top: 8px; }
.type-cta {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  border-bottom: 1px solid rgba(247,237,228,0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.type-panel:hover .type-cta, .type-panel.is-expanded .type-cta { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .type-strip { flex-direction: column; height: auto; gap: 2px; }
  .type-panel { flex: none; min-height: 190px; }
  .type-panel.is-expanded, .type-panel.is-compressed { flex: none; }
  .type-panel p { opacity: 1; max-height: none; margin-top: 8px; }
  .type-cta { opacity: 1; transform: none; }
}

/* ---------- Amenity hover list (cursor-follow image preview) ---------- */
.amenity-hoverlist { border-top: 1px solid var(--line); }
.ahl-item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 3vw, 32px) 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left .4s var(--ease);
}
.ahl-index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--terracota);
  width: 40px;
  flex-shrink: 0;
}
.ahl-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--slate);
  flex: 1;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.ahl-arrow {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracota);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.ahl-item:hover { padding-left: 16px; }
.ahl-item:hover .ahl-name { color: var(--terracota); transform: translateX(10px); }
.ahl-item:hover .ahl-arrow { opacity: 1; transform: translateX(0); }

.ahl-preview {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  height: 210px;
  pointer-events: none;
  z-index: 140;
  opacity: 0;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.9) rotate(-2deg);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow: 0 24px 60px rgba(20,26,8,0.35);
}
.ahl-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.ahl-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 920px) {
  .ahl-preview { display: none; }
  .ahl-name { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  .ahl-item:hover { padding-left: 4px; }
}

/* ---------- Stat row ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); }
.stat { min-width: 140px; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--terracota); line-height: 1; }
.stat .label { font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 8px; color: var(--text-soft); }
.section-dark .stat .label, .section-olive .stat .label { color: rgba(247,237,228,0.7); }

/* ---------- List with icons / dividers ---------- */
.spec-list { border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  color: var(--text-soft);
}
.spec-list li span:first-child { color: var(--slate); font-weight: 400; }

.amenity-list { columns: 2; column-gap: var(--gutter); }
.amenity-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.08rem;
  break-inside: avoid;
}
@media (max-width: 640px) { .amenity-list { columns: 1; } }

/* ---------- Marquee / tagline strip ---------- */
.tagline-strip {
  padding: clamp(40px,6vw,70px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 2.2rem;
  white-space: nowrap;
}
.marquee span em { font-style: normal; color: var(--terracota); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: rgba(247,237,228,0.85);
  padding: clamp(60px,8vw,100px) 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding-bottom: clamp(40px,6vw,70px);
  border-bottom: 1px solid rgba(247,237,228,0.14);
}
.footer-brand .logo-mark { color: var(--ivory); margin-bottom: 18px; }
.footer-brand p { max-width: 280px; font-size: 1.02rem; color: rgba(247,237,228,0.65); }
.footer-icon { height: 48px; width: auto; margin-right: 4px; }
.footer-leasing-logo { display: block; margin-top: 20px; opacity: 0.55; transition: opacity .3s; width: clamp(140px, 18vw, 200px); height: auto; }
.footer-leasing-logo:hover { opacity: 0.8; }
.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  color: var(--ivory);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 1rem;
  color: rgba(247,237,228,0.68);
  margin-bottom: 12px;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(247,237,228,0.5);
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Contact form card ---------- */
.contact-card {
  background: var(--ivory-soft);
  border: 1px solid var(--line-soft);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 80px rgba(20,26,8,0.06);
}

/* ---------- Floating-label fields ---------- */
.form-field.floating {
  position: relative;
  display: block;
  padding-top: 2px;
}
.form-field.floating input {
  width: 100%;
  padding-top: 14px;
}
.form-field.floating label {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
  transition: top .25s var(--ease), font-size .25s var(--ease), letter-spacing .25s var(--ease), color .25s var(--ease);
  pointer-events: none;
}
.form-field.floating input:focus ~ label,
.form-field.floating input:not(:placeholder-shown) ~ label {
  top: -2px;
  transform: translateY(0);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracota);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  color: var(--slate);
  font-size: 1.12rem;
  font-weight: 300;
  transition: border-color .3s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--terracota); }
.form-field textarea { resize: vertical; min-height: 110px; }
/* Interior photo grid */
.int-photo { overflow: hidden; border-radius: 2px; aspect-ratio: 4/3; }
.int-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.int-photo:hover img { transform: scale(1.04); }

/* Contact info block */
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.contact-info-item:hover .contact-info-value { color: var(--terracota); }
.contact-info-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.contact-info-value { font-size: 1rem; color: var(--slate); font-weight: 400; }

/* Pill checkbox groups */
.form-check-group { display: flex; flex-direction: column; gap: 12px; }
.form-check-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.form-check-options { display: flex; flex-wrap: wrap; gap: 8px; }
.form-check-item {
  display: inline-flex; align-items: center;
  cursor: pointer;
}
.form-check-item input[type="checkbox"] { display: none; }
.form-check-item span {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-soft);
  background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  user-select: none;
}
.form-check-item:hover span { border-color: var(--terracota); color: var(--slate); }
.form-check-item input[type="checkbox"]:checked + span {
  background: var(--terracota);
  border-color: var(--terracota);
  color: var(--ivory);
}

/* Date input */
.form-field input[type="date"] { color: var(--slate); cursor: pointer; }
.form-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.4; cursor: pointer;
  filter: invert(0);
}

.form-checkbox { display: flex; align-items: center; gap: 10px; }
.form-checkbox input { width: 17px; height: 17px; accent-color: var(--terracota); }
.form-checkbox label { font-size: 1rem; color: var(--text-soft); letter-spacing: 0; text-transform: none; }
.form-note { font-size: 0.92rem; color: var(--text-soft); margin-top: 6px; }
.form-success {
  display: none;
  padding: 28px;
  border: 1px solid var(--olive);
  background: var(--ivory-soft);
  margin-top: 20px;
}
.form-success.show { display: block; }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Availability: filters ---------- */
.avail-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.avail-filter-btn {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  transition: all .3s var(--ease);
}
.avail-filter-btn:hover { border-color: var(--terracota); color: var(--terracota); }
.avail-filter-btn.active { background: var(--slate); color: var(--ivory); border-color: var(--slate); }

/* ---------- Availability: list head (desktop only) ---------- */
.avail-list-head {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 0.9fr 0.8fr;
  gap: 20px;
  padding: 0 28px 14px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--slate);
}
@media (max-width: 860px) { .avail-list-head { display: none; } }

/* ---------- Availability: card list ---------- */
.avail-list { border-bottom: 1px solid var(--line); }
.avail-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 0.9fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 28px 28px 28px 32px;
  border-top: 1px solid var(--line);
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.avail-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent-color, var(--terracota));
  transform: scaleY(0);
  transition: transform .35s var(--ease);
}
.avail-card:hover { background: var(--ivory-soft); padding-left: 40px; }
.avail-card:hover::before { transform: scaleY(1); }
.avail-card.c-olive { --accent-color: var(--olive); }
.avail-card.c-terracota { --accent-color: var(--terracota); }
.avail-card.c-moss { --accent-color: var(--moss); }
.avail-card.c-slate { --accent-color: var(--slate); }

.avail-card .avail-unit { display: flex; flex-direction: column; gap: 4px; }
.avail-card .avail-unit .unit-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; }
.avail-card .avail-unit .unit-type { font-size: 0.82rem; color: var(--accent-color, var(--terracota)); letter-spacing: 0.06em; }

.avail-card .avail-specs { display: flex; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; font-size: 0.95rem; color: var(--text-soft); }
.avail-card .avail-specs strong { color: var(--slate); font-weight: 400; }

.avail-card .avail-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--slate); }
.avail-card .avail-price span { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--text-soft); letter-spacing: 0.06em; margin-top: 2px; }

.status-pill {
  display: inline-block; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid currentColor;
}
.status-pill.available { color: var(--olive); }
.status-pill.pending { color: var(--terracota); }

.avail-card .avail-cta a {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--terracota); color: var(--terracota);
  white-space: nowrap;
}

.avail-empty { text-align: center; padding: 80px 20px; color: var(--text-soft); }

@media (max-width: 860px) {
  .avail-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 22px 26px 26px;
  }
  .avail-card:hover { padding-left: 32px; }
  .avail-card .avail-specs { font-size: 0.92rem; }
  .avail-card .avail-price { font-size: 1.15rem; }
}

/* ---------- Gallery carousel ---------- */
.carousel { position: relative; padding: 8px 0 0; }
.carousel-track {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px var(--gutter) 28px;
  cursor: grab;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-slide {
  position: relative;
  flex: 0 0 auto;
  height: min(52vh, 480px);
  width: auto;
  aspect-ratio: 4 / 3;
  max-width: 88vw;
  scroll-snap-align: center;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  transform: scale(0.92);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.carousel-slide.active { opacity: 1; transform: scale(1); }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.carousel-slide:hover img { transform: scale(1.05); }
.carousel-cap {
  position: absolute;
  left: 20px; bottom: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(20,26,8,0.5);
  padding: 9px 15px;
}
.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(20,26,8,0.18);
  z-index: 5;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.carousel-arrow:hover { background: var(--terracota); color: var(--ivory); }
.carousel-prev { left: clamp(6px, 1.6vw, 24px); }
.carousel-next { right: clamp(6px, 1.6vw, 24px); }
.carousel-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 6px;
}
.carousel-counter {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.carousel-dots { display: flex; gap: 9px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.carousel-dot.active { background: var(--terracota); transform: scale(1.35); }
@media (max-width: 760px) {
  .carousel-slide { height: min(38vh, 340px); max-width: 90vw; aspect-ratio: 4/3; }
  .carousel-arrow { width: 44px; height: 44px; font-size: 1.15rem; top: 36%; }
}

/* ---------- Gallery / Lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 1/1; }
.gallery-item:nth-child(5n+1) { grid-row: span 2; aspect-ratio: 1/2.05; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gi-cap {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(20,26,8,0.7));
  color: var(--ivory); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-item:hover .gi-cap { opacity: 1; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item:nth-child(5n+1){grid-row:span 1;aspect-ratio:1/1;} }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,26,8,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 86vw; max-height: 80vh; object-fit: contain; }
.lightbox .lb-close {
  position: absolute; top: 30px; right: var(--gutter);
  color: var(--ivory); background: none; border: none; font-size: 0.92rem;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(247,237,228,0.95);
  color: var(--slate);
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--terracota); color: var(--ivory); }
.lightbox .lb-prev { left: clamp(12px, 3vw, var(--gutter)); }
.lightbox .lb-next { right: clamp(12px, 3vw, var(--gutter)); }
.lightbox .lb-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247,237,228,0.85);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

/* ---------- Day/night compare slider ---------- */
.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  background: var(--slate);
}
.compare-before, .compare-after {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  overflow: hidden;
}
.compare-before { width: 100%; }
.compare-before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-after { width: 50%; }
.compare-after img { position: absolute; top: 0; left: 0; height: 100%; object-fit: cover; display: block; }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--ivory);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.compare-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.compare-label {
  position: absolute;
  bottom: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  z-index: 2;
  background: rgba(20,26,8,0.45);
  padding: 9px 16px;
  pointer-events: none;
}
.compare-label-left { left: 22px; }
.compare-label-right { right: 22px; }
@media (max-width: 640px) {
  .compare-slider { aspect-ratio: 4 / 5; }
}

/* ---------- Orbit map (Minutes Away) ---------- */
.orbit-map {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.orbit-ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.orbit-line {
  stroke: var(--terracota);
  stroke-width: 1.4;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  opacity: 0.4;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.orbit-line-far { stroke: var(--olive); opacity: 0.3; }
.orbit-map.in-view .orbit-line { stroke-dashoffset: 0; }
.orbit-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(138,77,46,0.16) 14deg, transparent 46deg);
  animation: orbitSweep 10s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes orbitSweep { to { transform: rotate(360deg); } }
.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 10vw, 76px);
  height: clamp(56px, 10vw, 76px);
  border-radius: 50%;
  background: var(--terracota);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 34px rgba(20,26,8,0.3);
  z-index: 2;
}
.orbit-center::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: rgba(138,77,46,0.3);
  z-index: -1;
  animation: orbitGlow 3.6s ease-in-out infinite;
}
@keyframes orbitGlow {
  0%, 100% { transform: scale(0.82); opacity: 0.55; }
  50% { transform: scale(1.2); opacity: 0.12; }
}
.orbit-center img { width: 72%; height: auto; position: relative; z-index: 1; }
.orbit-point {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.orbit-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 5px rgba(110,112,74,0.16);
  flex-shrink: 0;
  animation: orbitPulse 2.8s ease-in-out infinite;
}
.orbit-point.far .orbit-dot { background: var(--terracota); box-shadow: 0 0 0 5px rgba(138,77,46,0.16); }
@keyframes orbitPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.orbit-label {
  font-size: 0.82rem;
  background: var(--ivory-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  line-height: 1.3;
  color: var(--text-soft);
  box-shadow: 0 6px 18px rgba(20,26,8,0.08);
}
.orbit-label strong { color: var(--terracota); margin-right: 4px; }
.orbit-label em { font-style: normal; color: var(--text-soft); opacity: 0.7; font-size: 0.76rem; margin-left: 4px; }
@media (max-width: 640px) {
  .orbit-map { max-width: 440px; }
  .orbit-label { font-size: 0.7rem; padding: 5px 9px; white-space: normal; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-dot, .orbit-sweep, .orbit-center::after { animation: none; }
}

/* ---------- Map intro header (above full-bleed map) ---------- */
.map-intro {
  padding-top: clamp(36px, 4vw, 56px) !important;
  padding-bottom: 0 !important;
  position: relative;
  overflow: hidden;
}
.map-intro .eyebrow { color: var(--ivory) !important; opacity: 0.5 !important; }
.map-intro-logo {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  top: 50%; transform: translateY(-50%);
  width: clamp(260px, 28vw, 400px);
  opacity: 0.05;
  pointer-events: none; user-select: none;
}
.map-intro-logo--left {
  right: auto;
  left: clamp(-30px, -1vw, 10px);
  width: clamp(180px, 20vw, 280px);
  transform: translateY(-50%);
}
.map-intro-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid rgba(247,237,228,0.1);
}
.map-intro-inner h2 { margin-top: 8px; }
.map-intro-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 24px;
}
.map-intro-stats span {
  display: flex; flex-direction: column; gap: 2px;
}
.map-intro-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1;
}
.map-intro-stats em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,237,228,0.38);
}
.map-intro-desc {
  max-width: 300px;
  font-size: 0.93rem;
  color: rgba(247,237,228,0.55);
  line-height: 1.75;
  flex-shrink: 0;
  padding-bottom: 6px;
  align-self: flex-end;
}
@media (max-width: 760px) {
  .map-intro-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .map-intro-desc { max-width: 100%; }
  .map-intro-logo { opacity: 0.03; right: -60px; }
}

/* ---------- Mapbox 3D Map — full bleed section ---------- */
.map-section {
  position: relative;
  height: 860px;
  overflow: hidden;
}
@media (max-width: 760px) { .map-section { display: flex; flex-direction: column; height: auto; } }

.domi-map-full {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
}
@media (max-width: 760px) { .domi-map-full { position: relative; height: 440px; } }

/* Left panel — dark slate, contrasts naturally with page */
.map-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: var(--slate);
  padding: 44px 32px 32px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: hidden;
}
.map-panel::-webkit-scrollbar { display: none; }

.map-panel-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(247,237,228,0.1);
  border-radius: 3px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.map-panel-hint-icon {
  font-size: 0.9rem;
  color: var(--terracota);
  flex-shrink: 0;
  margin-top: 1px;
}
.map-panel-hint span:last-child {
  font-size: 0.75rem;
  color: rgba(247,237,228,0.45);
  line-height: 1.55;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .map-panel {
    position: relative; width: 100%;
    padding: 36px var(--gutter);
    overflow: visible;
  }
  .map-panel-hint span:last-child { color: var(--text-soft); }
}

/* Filter pills */
.mpl-filters {
  display: flex; gap: 5px; flex-wrap: wrap;
  margin-bottom: 20px; flex-shrink: 0;
}
.mpl-filter {
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid rgba(247,237,228,0.18);
  background: none;
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(247,237,228,0.5);
  transition: all .22s var(--ease);
}
.mpl-filter:hover { border-color: rgba(247,237,228,0.55); color: var(--ivory); }
.mpl-filter.active { background: var(--ivory); border-color: var(--ivory); color: var(--slate); }

/* Place groups */
#map-places {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mpl-group { display: flex; flex-direction: column; min-height: 0; }

.mpl-group-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,237,228,0.3);
  padding: 0 8px;
  margin-bottom: 3px;
  flex-shrink: 0;
}

/* per-group item scroll */
.mpl-group-items {
  overflow-y: auto;
  max-height: 150px;
  scrollbar-width: thin;
  scrollbar-color: rgba(247,237,228,0.1) transparent;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mpl-group-items::-webkit-scrollbar { width: 3px; }
.mpl-group-items::-webkit-scrollbar-track { background: transparent; }
.mpl-group-items::-webkit-scrollbar-thumb { background: rgba(247,237,228,0.12); border-radius: 2px; }
/* when category is filtered, expand to full height */
.mpl-group.expanded .mpl-group-items { max-height: none; overflow-y: visible; }

.mpl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 4px;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.77rem;
  color: rgba(247,237,228,0.6);
  line-height: 1.3;
  width: 100%;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.mpl-item:hover { background: rgba(247,237,228,0.06); color: var(--ivory); }
.mpl-item.active {
  background: rgba(138,77,46,0.22);
  border-left-color: var(--terracota);
  color: var(--ivory);
}
.mpl-item-text { flex: 1; }
.mpl-item-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-top: 1px;
}
.mpl-arrow {
  font-size: 0.7rem;
  color: var(--terracota);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  flex-shrink: 0;
}
.mpl-item:hover .mpl-arrow,
.mpl-item.active .mpl-arrow { opacity: 1; transform: translateX(0); }

.mpl-dot {
  width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.mpl-item.active .mpl-dot { transform: scale(1.5); }
.mpl-dot-home    { background: var(--terracota); }
.mpl-dot-transit { background: rgba(247,237,228,0.7); }
.mpl-dot-culture { background: var(--olive); }
.mpl-dot-dining  { background: var(--moss); }

/* Walking route line */
.map-route-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 11;
  background: var(--slate);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(20,26,8,0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.map-route-badge.show { opacity: 1; transform: translateY(0); }

/* Mapbox UI overrides */
.mapboxgl-ctrl-logo { display: none !important; }
.mapboxgl-ctrl-attrib-inner { font-size: 10px !important; }
.mapboxgl-ctrl-group {
  border-radius: 2px !important;
  box-shadow: 0 4px 16px rgba(20,26,8,0.10) !important;
  border: 1px solid var(--line) !important;
}
.mapboxgl-ctrl button {
  background-color: var(--ivory) !important;
  width: 32px !important; height: 32px !important;
}
.mapboxgl-ctrl button span { filter: invert(15%); }

/* Map markers */
.map-pin { cursor: pointer; }

.map-pin-home .pin-inner {
  background: var(--terracota);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(138,77,46,0.45);
  position: relative;
  display: block;
}
.map-pin-home .pin-inner::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--terracota);
}

.map-pin-transit .pin-inner {
  background: var(--slate);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 6px 11px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(20,26,8,0.30);
  position: relative;
}
.map-pin-transit .pin-inner::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--slate);
}
.map-pin-transit strong { font-size: 0.74rem; font-weight: 500; }
.map-pin-transit em { font-style: normal; opacity: 0.6; font-size: 0.6rem; letter-spacing: 0.1em; }

.map-pin-culture .pin-inner {
  background: var(--olive);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.10em;
  padding: 6px 11px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(110,112,74,0.35);
  position: relative;
}
.map-pin-culture .pin-inner::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--olive);
}

.map-pin-dining .pin-inner {
  background: var(--moss);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.10em;
  padding: 6px 11px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(64,61,36,0.35);
  position: relative;
}
.map-pin-dining .pin-inner::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--moss);
}

.map-legend {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.map-legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-home { background: var(--terracota); }
.legend-transit { background: var(--slate); }
.legend-culture { background: var(--olive); }
.legend-dining { background: var(--moss); }
@media (max-width: 480px) { .map-legend { gap: 16px; flex-wrap: wrap; font-size: 0.7rem; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(40px,6vw,70px); }
.divider { height: 1px; background: var(--line); width: 100%; }
.no-scroll { overflow: hidden; }

/* =================================================================
   Motion & interaction layer
   ================================================================= */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--terracota);
  z-index: 120;
  transition: width .1s linear;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 220;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--terracota);
  transition: opacity .2s var(--ease), background .3s var(--ease);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(20,26,8,0.35);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.cursor-ring.is-light { border-color: rgba(247,237,228,0.6); }
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(138,77,46,0.08);
  border-color: var(--terracota);
}
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- Text reveal (lines mask) ---------- */
.reveal-lines { overflow: hidden; }
.reveal-lines .line {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.reveal-lines.in-view .line { transform: translateY(0); }
.reveal-lines .line:nth-child(2) { transition-delay: 0.08s; }
.reveal-lines .line:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Count-up readiness (numbers fade/scale in) ---------- */
.stat .num { transition: opacity .6s var(--ease); }

/* ---------- Hero parallax layers ---------- */
.hero-media { will-change: transform; }
.hero-media img { will-change: transform; }

/* ---------- Floating motes (hero atmosphere) ---------- */
.hero-motes {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none;
}
.mote {
  position: absolute;
  bottom: -10%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(247,237,228,0.55);
  filter: blur(0.5px);
  animation: moteRise linear infinite;
}
@keyframes moteRise {
  0%   { transform: translate(0,0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.8; }
  85%  { opacity: 0.5; }
  100% { transform: translate(var(--drift, 40px), -115vh) scale(1); opacity: 0; }
}

/* ---------- Light sweep (hero atmosphere) ---------- */
.hero-sweep {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(247,237,228,0.10) 50%, transparent 65%);
  background-size: 250% 250%;
  animation: sweepMove 14s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
@keyframes sweepMove {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mote, .hero-sweep, .marquee, .hero-media img { animation: none !important; }
}
