/* ============================================================
   CAPE D'OR — All-Inclusive Living, Haifa
   Design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* palette — drawn from the photography: warm cream, ink, oak, sea */
  --ink:        #16130d;
  --ink-2:      #2a251c;
  --ink-3:      #4a4338;
  --paper:      #f6f1e8;
  --paper-2:    #ece3d4;
  --paper-3:    #e0d4bf;
  --sand:       #b08851;   /* oak / brass accent */
  --sand-deep:  #8a672f;
  --sea:        #3a6a6e;   /* muted mediterranean */
  --white:      #fffdf8;

  --line-dark:  rgba(22,19,13,.14);
  --line-light: rgba(255,253,248,.18);

  /* type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans:    'Hanken Grotesk', system-ui, sans-serif;

  --eyebrow-size: clamp(11px, .78vw, 13px);
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 84px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .8em;
  color: var(--sand-deep);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--sand); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
}

.display-xl { font-size: clamp(3.4rem, 9.5vw, 9.5rem); }
.display-l  { font-size: clamp(2.6rem, 6vw, 5.6rem); }
.display-m  { font-size: clamp(2rem, 4vw, 3.4rem); }
.display-s  { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

.serif-italic { font-style: italic; }
.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-2);
}
.muted { color: var(--ink-3); }
.amp { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 170px) 0; position: relative; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: rgba(246,241,232,.62); }
.dark .lede { color: rgba(246,241,232,.82); }
.sand-bg { background: var(--paper-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05em 1.9em;
  border-radius: 100px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.on-dark:hover { background: transparent; color: var(--paper); }
.btn.ghost.on-dark { background: transparent; color: var(--paper); border-color: var(--line-light); }
.btn.ghost.on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link-underline {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap .35s var(--ease), opacity .35s;
}
.link-underline:hover { gap: 1.1em; }

/* ============================================================
   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: 26px var(--gutter);
  transition: padding .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 170px;
  pointer-events: none; z-index: -1;
  background: linear-gradient(to bottom, rgba(22,19,13,.36), rgba(22,19,13,0));
  transition: opacity .5s var(--ease);
}
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  padding: 14px var(--gutter);
  background: rgba(246,241,232,.86);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-dark);
}
.brand {
  display: flex; align-items: center; line-height: 1; z-index: 2;
  color: var(--paper);
  transition: color .5s var(--ease);
}
.brand-logo {
  height: clamp(42px, 4vw, 56px); width: auto; display: block;
  /* gold artwork → render cream/white over the dark hero */
  filter: brightness(0) invert(1);
  opacity: .96;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.site-header.scrolled .brand-logo,
.site-header.light .brand-logo { filter: none; opacity: 1; }
.site-header.scrolled .brand,
.site-header.light .brand { color: var(--ink); }
.brand .mark {
  font-family: var(--display);
  font-size: 27px; font-weight: 500; letter-spacing: .04em;
  white-space: nowrap;
}
.brand .sub {
  font-family: var(--sans);
  font-size: 9.5px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
  opacity: .8; margin-top: 5px; padding-left: 2px;
}

.nav-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px;
  border-radius: 100px;
  background: rgba(255,253,248,.12);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(12px);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.site-header.scrolled .nav-pill {
  background: rgba(22,19,13,.04);
  border-color: var(--line-dark);
}
.nav-pill a {
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  padding: 9px 18px; border-radius: 100px;
  color: rgba(255,253,248,.92);
  transition: background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.site-header.scrolled .nav-pill a { color: var(--ink-2); }
.nav-pill a:hover { background: rgba(255,253,248,.16); }
.site-header.scrolled .nav-pill a:hover { background: rgba(22,19,13,.06); }
.nav-pill a.current { background: rgba(255,253,248,.22); }
.site-header.scrolled .nav-pill a.current { background: rgba(22,19,13,.08); color: var(--ink); }

.header-cta { z-index: 2; display: flex; align-items: center; gap: 12px; }
.header-cta .btn {
  background: transparent; color: var(--paper); border-color: var(--line-light);
  padding: .85em 1.5em;
}
.header-cta .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-header.scrolled .header-cta .btn { color: var(--ink); border-color: var(--ink); }
.site-header.scrolled .header-cta .btn:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 940px) {
  .nav-pill, .header-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: 0; padding: 8px; z-index: 110;
  }
  .nav-toggle span { width: 26px; height: 1.5px; background: var(--paper); transition: .4s var(--ease); }
  .site-header.scrolled .nav-toggle span, .site-header.light .nav-toggle span { background: var(--ink); }
  body.menu-open .nav-toggle span { background: var(--paper); }
  body.menu-open .nav-toggle span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2){ opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 105;
    background: var(--ink); color: var(--paper);
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--gutter);
    transform: translateY(-100%);
    transition: transform .6s var(--ease);
  }
  body.menu-open .mobile-menu { transform: translateY(0); }
  .mobile-menu a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3.2rem); padding: .18em 0; opacity:.92; }
  .mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
}
.mobile-menu { display: none; visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
body.menu-open .mobile-menu { visibility: visible; transition: transform .6s var(--ease), visibility 0s 0s; }
@media (max-width: 940px) { .mobile-menu { display: flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 116%; object-fit: cover;
  will-change: transform;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12,10,7,.72) 0%, rgba(12,10,7,.12) 42%, rgba(12,10,7,.30) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 8vh, 96px);
}
.hero h1 { color: var(--white); margin: .18em 0 .35em; }
.hero h1 .line { display: block; }
.hero h1 .line > span { display: block; }

/* hero entrance — autoplaying keyframe (no scroll/IO dependency, completes by wall-clock) */
@keyframes heroRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-rise { opacity: 0; animation: heroRise 1.05s var(--ease-out) forwards; }
.hero-rise.hr1 { animation-delay: .12s; }
.hero-rise.hr2 { animation-delay: .26s; }
.hero-rise.hr3 { animation-delay: .42s; }
@media (prefers-reduced-motion: reduce) { .hero-rise { opacity: 1 !important; animation: none !important; } }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  border-top: 1px solid var(--line-light);
  padding-top: 26px; margin-top: 8px;
}
.hero-foot p { max-width: 38ch; font-weight: 300; color: rgba(255,253,248,.88); }
/* benefits strip: light band riding the top of the rising layer after the hero */
.hero:has(.hero-inner-top) { align-items: flex-start; }
.hero-inner-top { padding-top: clamp(110px, 15vh, 170px); padding-bottom: 0; }
.hero-inner-top .hero-foot { border-top: 0; padding-top: 18px; margin-top: 4px; }
.hero:has(+ .section .hero-strip) { min-height: calc(100svh - clamp(96px, 13vh, 132px)); }
.hero-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-bottom: 1px solid var(--line-dark); }
.hero-strip .hs { padding: clamp(24px,3.2vh,38px) clamp(20px,2vw,40px); border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 7px; }
.hero-strip .hs:first-child { border-left: 0; }
.hero-strip .t { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(1.15rem, 1.5vw, 1.5rem); line-height: 1.12; }
.hero-strip .d { font-size: 13.5px; line-height: 1.5; color: rgba(26,22,17,.62); }
@media (max-width: 1080px){ .hero-strip { grid-template-columns: repeat(3, 1fr); } .hero-strip .hs:nth-child(4) { border-left: 0; } .hero-strip .hs { border-top: 1px solid var(--line-dark); } .hero-strip .hs:nth-child(-n+3){ border-top: 0; } }
@media (max-width: 640px){ .hero-strip { grid-template-columns: 1fr 1fr; } .hero-strip .hs { border-left: 0; padding: 16px var(--gutter); } .hero-strip .hs:nth-child(even){ border-left: 1px solid var(--line-dark); } .hero-strip .hs:nth-child(-n+3){ border-top: 1px solid var(--line-dark); } .hero-strip .hs:nth-child(-n+2){ border-top: 0; } .hero-strip .d { display: none; } .hero-inner-top { padding-top: 96px; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,253,248,.7);
}
.scroll-cue .bar { width: 1px; height: 46px; background: rgba(255,253,248,.5); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content:""; position:absolute; inset:0; background: var(--white); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%{ transform: translateY(-100%);} 50%{ transform: translateY(0);} 100%{ transform: translateY(100%);} }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); }
.clip-reveal.in { clip-path: inset(0 0 0 0); }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 1.4s var(--ease-out); }
.img-zoom.in img { transform: scale(1); }
.img-zoom img { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .clip-reveal, .img-zoom img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ============================================================
   WELCOME / STATEMENT
   ============================================================ */
.statement { text-align: center; max-width: 1000px; margin: 0 auto; }
.statement .display-l { margin: .35em 0 .7em; }
.press {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px,6vw,90px);
  margin-top: clamp(44px,6vw,72px);
  border-top: 1px solid var(--line-dark); padding-top: 44px;
}
.press figure { max-width: 280px; }
.press blockquote { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem,2vw,1.7rem); line-height: 1.25; }
.press figcaption { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--sand-deep); }

/* ============================================================
   SPLIT / FEATURE ROWS
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.split.wide-img { grid-template-columns: 1.15fr .85fr; }
.split .copy h2 { margin: .3em 0 .5em; }
.split .copy p + p { margin-top: 1.1em; }
.split .copy .btn, .split .copy .link-underline { margin-top: 1.8em; }
.feature-img { border-radius: 3px; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px){ .split, .split.wide-img { grid-template-columns: 1fr; gap: 40px; } .split .feature-img { order: -1; } }

/* ============================================================
   LOCATION + MAP
   ============================================================ */
.location-grid {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px,5vw,72px); align-items: center;
}
@media (max-width: 920px){ .location-grid { grid-template-columns: 1fr; } }

.distances { list-style: none; margin-top: 10px; }
.distances li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px;
  padding: 17px 0; border-bottom: 1px solid var(--line-dark);
  cursor: default; transition: padding-left .4s var(--ease), color .4s;
}
.distances li .time { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--ink); min-width: 92px; }
.distances li .time small { font-size: .8rem; font-family: var(--sans); font-weight: 600; letter-spacing: .08em; color: var(--sand-deep); margin-left: 4px; }
.distances li .place { font-size: 14.5px; color: var(--ink-2); }
.distances li .mode { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.distances li.active, .distances li:hover { padding-left: 14px; }
.distances li.active .time, .distances li:hover .time { color: var(--sand-deep); }

.mapwrap { position: relative; }
.map-canvas {
  position: relative; border-radius: 3px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 70px -40px rgba(22,19,13,.5);
}
.map-canvas img { width: 100%; height: auto; mix-blend-mode: multiply; }
.pin {
  position: absolute; width: 18px; height: 18px; transform: translate(-50%,-50%);
  border-radius: 50%; background: var(--sand); border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; z-index: 3;
  transition: transform .35s var(--ease), background .35s;
}
.pin::after { content:""; position:absolute; inset:-9px; border-radius:50%; border:1px solid var(--sand); opacity:0; transform: scale(.6); transition:.5s var(--ease); }
.pin.active, .pin:hover { background: var(--sea); transform: translate(-50%,-50%) scale(1.25); }
.pin.active::after { opacity:.9; transform: scale(1); }
.pin .tip {
  position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--ink); color: var(--paper); padding: 7px 12px; border-radius: 4px;
  font-size: 11px; white-space: nowrap; letter-spacing: .02em; pointer-events: none;
  opacity: 0; transition: .3s var(--ease); font-weight: 500;
}
.pin.active .tip, .pin:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.pin.here { background: var(--ink); width: 22px; height: 22px; }
.pin.here::before { content:""; position:absolute; inset:4px; border-radius:50%; background:var(--paper); }
.map-here-label {
  position:absolute; transform: translate(-50%,-50%); z-index:4;
  font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ink);
  background: var(--paper); padding: 2px 12px; border-radius: 100px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  white-space: nowrap; pointer-events: none;
}

/* ---------- full-page map layout ---------- */
.locmap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background: var(--paper-2);
  overflow: hidden;
  padding: 0;
  min-height: 100svh;
}
.locmap__map {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: end;
  height: 100svh;
  aspect-ratio: 3230/2250;
  width: auto;
  max-width: none;
  margin-right: clamp(-72px, -3vw, -24px);
  position: relative;
}
.locmap__map > img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }

.locmap__panel {
  grid-area: 1 / 1;
  align-self: start;
  margin-top: clamp(28px, 6vh, 90px);
  justify-self: start;
  position: relative;
  z-index: 5;
  width: min(470px, 42vw);
  margin-left: var(--gutter);
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.locmap__panel .eyebrow { color: var(--sand-deep); }
.locmap__panel .eyebrow::before { background: var(--sand-deep); }
.locmap__lede { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 6px; }
.locmap__panel .distances { margin-top: 4px; }
.locmap__panel .distances li:last-child { border-bottom: 0; }

/* here marker — soft pulse over the busy map */
.locmap .pin.here { background: var(--sand-deep); width: 22px; height: 22px; box-shadow: 0 4px 14px rgba(22,19,13,.35); }
.locmap .pin.here::before { background: var(--white); }
.locmap .pin.here::after {
  content:""; position:absolute; inset:-10px; border-radius:50%;
  border: 1.5px solid var(--sand-deep); opacity:.7;
  animation: herePulse 2.8s var(--ease) infinite;
}
@keyframes herePulse {
  0%   { transform: scale(.55); opacity:.8; }
  70%  { transform: scale(1.3); opacity:0; }
  100% { transform: scale(1.3); opacity:0; }
}
@media (prefers-reduced-motion: reduce){ .locmap .pin.here::after { animation: none; opacity:.5; } }
/* red blinking markers over the illustrated map */
.locmap .pin.dot { width:14px; height:14px; background:#d8442e; border:2px solid #fff; box-shadow:0 3px 10px rgba(22,19,13,.35); opacity:0; pointer-events:none; transition:opacity .25s var(--ease); }
.locmap .pin.dot::after { content:""; position:absolute; inset:-9px; border-radius:50%; border:1.5px solid #d8442e; opacity:0; }
.locmap .pin.dot.on { opacity:1; animation: blink-dot 1s steps(1,end) infinite; }
.locmap .pin.dot.on::after { opacity:.75; animation: pulse-ring 1.8s var(--ease) infinite; }
.locmap .pin.here { background:#d8442e; border-color:#fff; animation: blink-dot 1.2s steps(1,end) infinite; }
.locmap .pin.here::after { border-color:#d8442e; }
@keyframes blink-dot { 0%,60%{opacity:1} 61%,100%{opacity:.25} }
@media (prefers-reduced-motion: reduce){ .locmap .pin.dot.on, .locmap .pin.here { animation: none; } }
.locmap .distances li { cursor: pointer; }
.locmap .distances li.active .place, .locmap .distances li.picked .place { color: #d8442e; }

@media (max-width: 920px){
  .locmap { display: block; padding: 0 0 clamp(32px,6vw,56px); min-height: 0; }
  .locmap__map { width: 100%; height: auto; aspect-ratio: auto; margin: 0; }
  .locmap__map > img { height: auto; }
  .locmap__panel {
    width: auto; margin: -14% var(--gutter) 0; z-index: 5;
  }
}
@media (max-width: 520px){
  .locmap__panel { margin-top: -8%; }
}

/* ============================================================
   AMENITIES (building) — index list
   ============================================================ */
.amen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.amen-grid .cell { background: var(--ink); padding: clamp(26px,3vw,40px); }
.amen-grid .cell h3 { font-size: clamp(1.5rem,2.4vw,2rem); margin-bottom: .5em; color: var(--white); }
.amen-grid .cell p { font-size: 15px; color: rgba(246,241,232,.7); line-height: 1.6; }
.amen-grid .cell .no { font-family: var(--display); font-size: .95rem; color: var(--sand); display:block; margin-bottom: 14px; }
.amen-grid .cell ul { list-style: none; margin-top: 12px; }
.amen-grid .cell ul li { font-size: 14px; color: rgba(246,241,232,.78); padding: 7px 0 7px 20px; position: relative; border-top: 1px solid var(--line-light); }
.amen-grid .cell ul li:first-child { border-top: 0; }
.amen-grid .cell ul li::before { content:""; position:absolute; left:0; top:15px; width:6px; height:6px; border-radius:50%; background: var(--sand); }
@media (max-width: 760px){ .amen-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COLLECTION CARDS
   ============================================================ */
.collection { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,28px); }
@media (max-width: 880px){ .collection { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.col-card { position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; }
.col-card .ph { aspect-ratio: 3/4; overflow: hidden; }
.col-card .ph img { width:100%; height:100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.col-card:hover .ph img { transform: scale(1.05); }
.col-card::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(12,10,7,.78), rgba(12,10,7,0) 55%); }
.col-card .meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; z-index: 2; color: var(--paper); }
.col-card .meta .n { font-size: 11px; font-weight:600; letter-spacing:.24em; text-transform: uppercase; color: var(--sand); }
.col-card .meta h3 { font-size: clamp(1.6rem,2.2vw,2.1rem); margin: 8px 0 4px; color: var(--white); }
.col-card .meta p { font-size: 13.5px; color: rgba(246,241,232,.8); }

/* ============================================================
   ALL-INCLUSIVE amenities matrix (typographic)
   ============================================================ */
.matrix { columns: 4; column-gap: clamp(24px,4vw,64px); }
@media (max-width: 1000px){ .matrix { columns: 3; } }
@media (max-width: 720px){ .matrix { columns: 2; } }
.matrix .item {
  break-inside: avoid; display: flex; align-items: baseline; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line-light);
  font-size: 15px; color: rgba(246,241,232,.9);
}
.matrix .item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sand); flex: none; transform: translateY(-3px); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px,1.1vw,16px); }
.gallery .g { overflow: hidden; border-radius: 2px; cursor: zoom-in; position: relative; }
.gallery .g img { width:100%; height:100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery .g:hover img { transform: scale(1.06); }
.g.a { grid-column: span 7; aspect-ratio: 16/10; }
.g.b { grid-column: span 5; aspect-ratio: 4/5; }
.g.c { grid-column: span 4; aspect-ratio: 4/5; }
.g.d { grid-column: span 4; aspect-ratio: 4/5; }
.g.e { grid-column: span 4; aspect-ratio: 4/5; }
.g.f { grid-column: span 5; aspect-ratio: 4/5; }
.g.g7 { grid-column: span 7; aspect-ratio: 16/10; }
@media (max-width: 760px){
  .gallery { grid-template-columns: repeat(2,1fr); }
  .g.a,.g.b,.g.c,.g.d,.g.e,.g.f,.g.g7 { grid-column: span 1; aspect-ratio: 1/1; }
  .g.a { grid-column: span 2; aspect-ratio: 16/10; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,10,7,.94); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 26px; right: 30px; color: var(--paper); font-size: 30px; cursor: pointer; line-height:1; opacity:.8; }
.lightbox .close:hover { opacity: 1; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); color: var(--paper); font-size: 34px; cursor: pointer; opacity:.6; padding: 20px; user-select: none; }
.lightbox .nav-btn:hover { opacity: 1; }
.lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }

/* ============================================================
   ABOUT / OWNERS
   ============================================================ */
.owners { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); }
@media (max-width: 820px){ .owners { grid-template-columns: 1fr; } }
.owner-card { border-top: 2px solid var(--sand); padding-top: 28px; }
.owner-card blockquote { font-family: var(--display); font-size: clamp(1.3rem,2vw,1.75rem); font-style: italic; line-height: 1.34; color: var(--paper); }
.owner-card .who { margin-top: 22px; }
.owner-card .who .nm { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.owner-card .who .role { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-top: 4px; }

.legacy { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,72px); align-items: start; }
@media (max-width: 820px){ .legacy { grid-template-columns: 1fr; } }
.legacy .stat-row { display:flex; gap: clamp(24px,4vw,56px); margin-top: 34px; flex-wrap: wrap; }
.legacy .stat .num { font-family: var(--display); font-size: clamp(2.6rem,4vw,3.6rem); line-height: 1; color: var(--ink); }
.legacy .stat .lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; max-width: 16ch; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta {
  position: relative; min-height: 92svh; display: flex; align-items: center;
  color: var(--paper); overflow: hidden;
}
.cta-media { position:absolute; inset:0; z-index:0; }
.cta-media img { width:100%; height:100%; object-fit: cover; filter: brightness(.6) saturate(.92); }
.cta-media::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(8,7,4,.92) 0%, rgba(8,7,4,.74) 46%, rgba(8,7,4,.66) 100%); }
.cta-inner { position: relative; z-index: 2; width:100%; }
.cta-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,90px); align-items: center; }
@media (max-width: 880px){ .cta-grid { grid-template-columns: 1fr; gap: 44px; } }
.cta h2 { color: var(--white); margin: .25em 0 .5em; }
.cta-card { background: rgba(13,10,7,.62); backdrop-filter: blur(10px); border: 1px solid var(--line-light); border-radius: 5px; padding: clamp(26px,3vw,40px); }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px){ .form .row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,253,248,.06); border: 1px solid var(--line-light);
  color: var(--paper); font-family: var(--sans); font-size: 15px;
  padding: 15px 16px; border-radius: 3px; transition: border-color .3s, background .3s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246,241,232,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); background: rgba(255,253,248,.1); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b08851' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { color: var(--ink); }
.form .btn { margin-top: 6px; justify-content: center; }
.form-success { display:none; padding: 18px 0; }
.form-success.show { display:block; }
.form-success .display-s { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding: clamp(56px,7vw,90px) 0 40px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px){ .footer-top { grid-template-columns: 1fr; } }
.footer .f-brand .mark { font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: .04em; }
.footer .f-brand .f-logo { height: 92px; width: auto; display: block; }
.footer .f-brand .sub { font-size: 10px; letter-spacing: .4em; text-transform: uppercase; opacity:.7; margin-top: 6px; }
.footer .f-brand p { margin-top: 20px; max-width: 30ch; color: rgba(246,241,232,.62); font-size: 14px; }
.footer h4 { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a, .footer .f-info p { color: rgba(246,241,232,.78); font-size: 14px; transition: color .3s; }
.footer ul a:hover { color: var(--paper); }
.footer .link-underline { white-space: nowrap; }
.footer-bottom { display:flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 30px; font-size: 12px; color: rgba(246,241,232,.5); }
.footer-bottom .credits { font-style: italic; font-family: var(--display); font-size: 14px; }

/* section heading block */
.shead { max-width: 760px; }
.shead .display-l { margin-top: .3em; }
.shead.center { margin: 0 auto; text-align: center; }

/* utility */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: 60px; }
.divider-num { font-family: var(--display); font-size: 14px; color: var(--sand-deep); letter-spacing: .1em; }

/* ============================================================
   V2 — BIG & BOLD FULL-BLEED SYSTEM
   ============================================================ */

/* even bigger display option */
.display-xxl { font-size: clamp(3.6rem, 12vw, 12rem); line-height: .96; letter-spacing: -.02em; }

/* chapter cover: full-viewport image with overlaid index + title */
.chapter {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; align-items: flex-end;
  color: var(--paper); overflow: hidden;
}
.chapter-media { position: absolute; inset: 0; z-index: 0; background: #0a0805; }
.chapter-media img, .chapter-media video { width: 100%; height: 118%; object-fit: cover; will-change: transform; display:block; }
.chapter-media::after { content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(10,8,5,.84) 0%, rgba(10,8,5,.3) 52%, rgba(10,8,5,.44) 100%); }
.chapter-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(48px,7vh,92px); }
.chapter .idx { font-family: var(--display); font-size: clamp(1rem,1.4vw,1.3rem); color: var(--sand); letter-spacing: .2em; display:block; margin-bottom: 10px; }
.chapter h2 { color: var(--white); }
.chapter .sub { margin-top: 20px; max-width: 46ch; font-weight: 300; color: rgba(255,253,248,.86); font-size: clamp(1.05rem,1.5vw,1.35rem); }
/* pinned chapter: next section rises over it as one light layer */
.chapter-pin { position: sticky; top: 0; z-index: 0; }
.rise-over { background: var(--paper); z-index: 2; box-shadow: 0 -30px 60px rgba(10,8,5,.18); }
/* fx-rise: site-wide layer-rise scrolling (v5) — full-bleed image sections pin, content layers slide over them */
body.fx-rise .hero, body.fx-rise .chapter, body.fx-rise .apt-hero { position: sticky; top: 0; z-index: 0; }
body.fx-rise .section, body.fx-rise .footer, body.fx-rise .bleed { position: relative; z-index: 2; background: var(--paper); }
body.fx-rise .section.dark { background: var(--ink); }
body.fx-rise .section.sand-bg { background: var(--paper-2); }
body.fx-rise .locmap { background: var(--paper-2); }
body.fx-rise .footer { background: var(--ink); }
body.fx-rise .hero + .section, body.fx-rise .chapter + .section, body.fx-rise .apt-hero + .section { box-shadow: 0 -30px 60px rgba(10,8,5,.18); }
.chapter-top { align-items: center; text-align: center; }
.chapter-top .chapter-inner { padding-bottom: 0; }
.chapter-top .sub { margin-left: auto; margin-right: auto; }
/* chapter cover variant: text at the top, smaller scale */
.chapter-up { align-items: flex-start; }
.chapter-up .chapter-inner { padding: clamp(96px,15vh,170px) var(--gutter) 0; }
.chapter-up .display-xl { font-size: clamp(2rem,3.6vw,3.2rem); }
.chapter-up .sub { font-size: 15px; max-width: 420px; }
.chapter-up .chapter-media::after { background: linear-gradient(to bottom, rgba(10,8,5,.78) 0%, rgba(10,8,5,.3) 52%, rgba(10,8,5,.4) 100%); }

/* full-bleed alternating image + copy (big imagery) */
.bleed { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 86svh; }
.bleed .bleed-img { position: relative; overflow: hidden; }
.bleed .bleed-img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.bleed .bleed-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px,7vw,120px); }
.bleed.flip .bleed-img { order: 2; }
.bleed .bleed-copy h2 { margin: .28em 0 .55em; }
.bleed .bleed-copy p + p { margin-top: 1.1em; }
.bleed .bleed-copy .btn, .bleed .bleed-copy .link-underline { margin-top: 2em; align-self: flex-start; }
@media (max-width: 880px){
  .bleed { grid-template-columns: 1fr; min-height: 0; }
  .bleed .bleed-img { min-height: 60svh; order: -1 !important; }
  .bleed.flip .bleed-img { order: -1; }
  .bleed .bleed-copy { padding: clamp(40px,9vw,64px) var(--gutter); }
}

/* full-bleed single band */
.band { position: relative; height: 78svh; min-height: 480px; overflow: hidden; display:flex; align-items:center; justify-content:center; color: var(--paper); text-align:center; }
.band img { position:absolute; inset:0; width:100%; height:112%; object-fit:cover; z-index:0; will-change:transform; }
.band::after { content:""; position:absolute; inset:0; background: rgba(10,8,5,.42); z-index:1; }
.band .band-inner { position: relative; z-index:2; max-width: 900px; padding: 0 var(--gutter); }
.band .band-inner h2 { color: var(--white); }
.band .band-inner .sub { margin-top: 18px; color: rgba(255,253,248,.9); font-weight:300; font-size: clamp(1.05rem,1.5vw,1.35rem); }

/* collection — bolder, taller cards as links */
.collection.v2 { grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.4vw,22px); }
.collection.v2 .col-card .ph { aspect-ratio: 4/5.4; }
.collection.v2 .col-card::after { background: linear-gradient(to top, rgba(10,8,5,.9) 0%, rgba(10,8,5,.1) 64%); }
.collection.v2 .col-card .meta h3 { margin: 6px 0 0; }
.collection.v2 .col-card .meta .stat { display:block; margin-top:8px; font-size:12.5px; letter-spacing:.03em; text-transform:none; color:rgba(246,241,232,.82); }
.collection.v2 .col-card .view-link { margin-top:14px; font-size:11px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--sand); display:inline-flex; gap:.5em; }
@media (max-width: 880px){ .collection.v2 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* apartments index grid (richer) */
.apt-index { display:grid; grid-template-columns: repeat(2,1fr); gap: clamp(16px,2vw,28px); }
@media (max-width:760px){ .apt-index { grid-template-columns:1fr; } }

/* ============================================================
   APARTMENT DETAIL PAGE
   ============================================================ */
.apt-hero { position: relative; height: 92svh; min-height: 560px; display:flex; align-items:flex-end; color:var(--paper); overflow:hidden; }
.apt-hero img { position:absolute; inset:0; width:100%; height:108%; object-fit:cover; z-index:0; }
.apt-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(10,8,5,.86) 0%, rgba(10,8,5,.45) 34%, rgba(10,8,5,.08) 62%, rgba(10,8,5,.3)); z-index:1; }
.apt-hero .apt-hero-inner { position:relative; z-index:2; width:100%; max-width:var(--maxw); margin:0 auto; padding: 0 var(--gutter) clamp(40px,6vh,80px); }
.apt-hero .view-tag { color: #EFCB99; text-shadow: 0 1px 12px rgba(10,8,5,.55); }
.apt-hero h1 { color: var(--white); margin: .12em 0 .3em; }
.apt-hero .quickspecs { display:flex; flex-wrap:wrap; gap: clamp(20px,3vw,46px); border-top:1px solid var(--line-light); padding-top:22px; margin-top:8px; }
.apt-hero .quickspecs .qs { }
.apt-hero .quickspecs .qs .v { font-family:var(--display); font-size: clamp(1.5rem,2.2vw,2.1rem); color:var(--white); line-height:1.05; white-space:nowrap; }
.apt-hero .quickspecs .qs .k { font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,253,248,.7); margin-top:7px; }

.apt-body { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px,6vw,96px); }
@media (max-width:880px){ .apt-body { grid-template-columns:1fr; gap:44px; } }
.apt-desc p + p { margin-top: 1.2em; }
.apt-features { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:0 28px; margin-top: 8px; }
@media (max-width:520px){ .apt-features { grid-template-columns:1fr; } }
.apt-features li { padding: 13px 0 13px 22px; border-bottom:1px solid var(--line-dark); position:relative; font-size:15px; }
.apt-features li::before { content:""; position:absolute; left:0; top:19px; width:6px; height:6px; border-radius:50%; background:var(--sand); }
.apt-aside { background: var(--paper-2); border-radius:5px; padding: clamp(26px,3vw,40px); align-self:start; position:sticky; top: 96px; }
.apt-aside .price { font-family:var(--display); font-size: clamp(1.8rem,2.6vw,2.4rem); }
.apt-aside .price small { display:block; font-family:var(--sans); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--sand-deep); margin-bottom:8px; }
.apt-aside .specrow { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line-dark); font-size:14px; }
.apt-aside .specrow .k { color:var(--ink-3); }
.apt-aside .btn { width:100%; justify-content:center; margin-top:22px; }
.apt-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(10px,1.2vw,16px); }
@media (max-width:760px){ .apt-gallery { grid-template-columns:1fr 1fr; } }
.apt-gallery .g { overflow:hidden; border-radius:3px; aspect-ratio:4/5; cursor:zoom-in; }
.apt-gallery .g img { width:100%; height:100%; object-fit:cover; transition: transform 1s var(--ease-out); }
.apt-gallery .g:hover img { transform: scale(1.06); }
.apt-back { display:inline-flex; align-items:center; gap:.6em; font-size:12px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; }

/* other apartments rail */
.apt-rail { display:grid; grid-template-columns:repeat(3,1fr); gap: clamp(14px,1.6vw,24px); }
@media (max-width:760px){ .apt-rail { grid-template-columns:1fr; } }

/* about / team — owner portraits big */
.team { display:grid; grid-template-columns:1fr 1fr; gap: clamp(20px,3vw,40px); }
@media (max-width:760px){ .team { grid-template-columns:1fr; } }
.team .member { }
.team .member .portrait { aspect-ratio: 1/1; overflow:hidden; border-radius:4px; background:#0c0a07; }
.team .member .portrait img { width:100%; height:100%; object-fit:cover; filter: grayscale(1) contrast(1.02); transition: filter .6s var(--ease), transform 1.2s var(--ease-out); }
.team .member:hover .portrait img { filter: grayscale(0); transform: scale(1.03); }
.team .member .nm { font-family:var(--display); font-size: clamp(1.5rem,2.2vw,2rem); margin-top:20px; color:var(--white); }
.team .member .role { font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--sand); margin-top:6px; }
.team .member blockquote { font-family:var(--display); font-style:italic; font-size: clamp(1.15rem,1.5vw,1.4rem); line-height:1.4; color:rgba(246,241,232,.9); margin-top:20px; }

