/* ═══════════════ THE MERIDIAN ═══════════════ */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 200; font-style: normal; font-display: swap; src: url('fonts/jost-latin-200-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/jost-latin-400-normal.woff2') format('woff2'); }

:root {
  --ink: #0a0c0f;
  --ink-2: #0e1116;
  --ink-3: #141922;
  --paper: #ece6da;
  --paper-dim: #b7ae9e;
  --gold: #cfae7b;
  --gold-soft: rgba(207, 174, 123, .45);
  --hairline: rgba(207, 174, 123, .22);
  --serif: 'Cormorant Garamond', 'Didot', 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

/* ——— type utilities ——— */
.eyebrow {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(.6rem, .8vw, .72rem);
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold);
}
.sect-head { text-align: center; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.sect-head h2 {
  font-weight: 300; font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: .01em; margin-top: 1.1rem; line-height: 1.08;
}

/* ——— reveal animation ——— */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ═══════════════ HEADER ═══════════════ */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.4rem, 4vw, 3.2rem);
  transition: background .6s, backdrop-filter .6s, padding .6s;
}
.site-head.is-scrolled { background: rgba(10, 12, 15, .72); backdrop-filter: blur(14px); padding-block: .95rem; border-bottom: 1px solid rgba(207,174,123,.12); }
.wordmark { font-family: var(--sans); font-weight: 300; letter-spacing: .5em; font-size: .82rem; color: var(--paper); }
.head-nav { display: flex; align-items: center; gap: 2.2rem; font-family: var(--sans); font-weight: 300; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; }
.head-loc { color: var(--paper-dim); }
.head-cta { color: var(--gold); border: 1px solid var(--gold-soft); padding: .62em 1.5em; border-radius: 2em; transition: background .4s, color .4s; }
.head-cta:hover { background: var(--gold); color: var(--ink); }

/* ═══════════════ PROGRESS RAIL ═══════════════ */
.rail {
  position: fixed; left: clamp(1.2rem, 3vw, 2.6rem); top: 50%; transform: translateY(-50%) translateX(-18px);
  z-index: 30; display: flex; gap: 1.1rem; align-items: stretch;
  opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
body.tour-active .rail { opacity: 1; transform: translateY(-50%); }
.rail__line { width: 1px; background: rgba(236, 230, 218, .16); position: relative; border-radius: 1px; }
.rail__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(var(--gold), #e9d3a6); box-shadow: 0 0 12px rgba(207,174,123,.55); }
.rail__stops { list-style: none; display: flex; flex-direction: column; justify-content: space-between; padding: .1rem 0; }
.rail__stops li { display: flex; align-items: center; gap: .8rem; font-family: var(--sans); font-weight: 300; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(236,230,218,.38); transition: color .5s; padding: .55rem 0; }
.rail__stops li i { width: 5px; height: 5px; border-radius: 50%; background: rgba(236,230,218,.28); transition: background .5s, box-shadow .5s, transform .5s; flex: none; }
.rail__stops li.is-active { color: var(--gold); }
.rail__stops li.is-active i { background: var(--gold); box-shadow: 0 0 10px rgba(207,174,123,.8); transform: scale(1.5); }
.rail__stops li.is-passed { color: rgba(236,230,218,.6); }
.rail__stops li.is-passed i { background: var(--gold-soft); }

/* ═══════════════ HERO ═══════════════ */
.hero { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: kenburns 22s var(--ease) both; transform-origin: 50% 30%; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.0); } }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,12,15,.55) 0%, rgba(10,12,15,.05) 34%, rgba(10,12,15,.12) 62%, var(--ink) 99%); }
.hero__copy { position: relative; text-align: center; padding: 0 1.5rem; }
.hero__title {
  font-weight: 300; font-size: clamp(3rem, 9.5vw, 8.2rem);
  line-height: 1.02; letter-spacing: .015em; margin: 1.4rem 0 1.6rem;
  text-shadow: 0 6px 60px rgba(0,0,0,.55);
}
.hero__title em { font-style: italic; font-weight: 400; color: #e7cf9f; }
.hero__sub { font-family: var(--sans); font-weight: 200; font-size: clamp(.72rem, 1.1vw, .88rem); letter-spacing: .34em; text-transform: uppercase; color: rgba(236,230,218,.82); }
.hero__cue { position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .9rem; font-family: var(--sans); font-weight: 300; font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: var(--paper-dim); }
.hero__cue-line { width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: cue 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0 } 35% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1) translateY(26px); opacity: 0 } }
.hero .reveal:nth-child(1) { transition-delay: .15s } .hero .reveal:nth-child(2) { transition-delay: .35s } .hero .reveal:nth-child(3) { transition-delay: .6s }

/* ═══════════════ TOUR ═══════════════ */
.tour { position: relative; }
.tour__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink); }
.tour__video { width: 100%; height: 100%; object-fit: cover; }
.tour__stills { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s; }
.tour__stills.is-on { opacity: 1; }
.tour__stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tour__vignette { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(6,8,10,.5) 100%),
  linear-gradient(180deg, rgba(10,12,15,.35), transparent 18% 82%, rgba(10,12,15,.45)); }
.tour__grain { position: absolute; inset: -50%; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(2) infinite; }
@keyframes grain { 0% { transform: translate(0,0) } 50% { transform: translate(-2%,1%) } 100% { transform: translate(1%,-2%) } }
.tour__chapter { position: absolute; left: clamp(1.6rem, 7vw, 6rem); bottom: clamp(2rem, 7vh, 4.6rem); max-width: 34rem;
  opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tour__chapter.is-in { opacity: 1; transform: none; }
.tour__chapter-num { font-family: var(--sans); font-weight: 200; font-size: .7rem; letter-spacing: .5em; color: var(--gold); margin-bottom: .5rem; }
.tour__chapter-name { font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.tour__chapter-line { font-style: italic; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(236,230,218,.75); margin-top: .6rem; }
.tour__loading { position: absolute; inset: auto 0 0 0; display: grid; place-items: center; padding: 1rem;
  font-family: var(--sans); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--paper-dim);
  opacity: 0; transition: opacity .5s; pointer-events: none; }
.tour__loading.is-on { opacity: 1; }
.tour__loading span { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35 } }

/* ═══════════════ FACTS ═══════════════ */
.facts { border-block: 1px solid var(--hairline); background: var(--ink-2); }
.facts__row { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 72rem; margin: 0 auto; }
.facts__row li { text-align: center; padding: clamp(2.4rem, 5vw, 4rem) 1rem; position: relative; }
.facts__row li + li::before { content: ''; position: absolute; left: 0; top: 26%; height: 48%; width: 1px; background: var(--hairline); }
.facts__row strong { display: block; font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.4rem); color: #e7cf9f; letter-spacing: .02em; }
.facts__row span { font-family: var(--sans); font-weight: 300; font-size: .64rem; letter-spacing: .36em; text-transform: uppercase; color: var(--paper-dim); }
.facts__row li:nth-child(2) { transition-delay: .12s } .facts__row li:nth-child(3) { transition-delay: .24s } .facts__row li:nth-child(4) { transition-delay: .36s }

/* ═══════════════ MANIFESTO ═══════════════ */
.manifesto { padding: clamp(6rem, 14vw, 11rem) 1.5rem; display: grid; place-items: center; }
.manifesto__text { max-width: 46rem; text-align: center; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.45; color: rgba(236,230,218,.9); }
.manifesto__text em { color: #e7cf9f; }

/* ═══════════════ GALLERY ═══════════════ */
.gallery { padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(6rem, 12vw, 10rem); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 2rem); max-width: 90rem; margin: 0 auto; }
.g-item { position: relative; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform 1.6s var(--ease); }
.g-wide { grid-column: span 2; } .g-wide img { aspect-ratio: 21/9; }
.g-item:hover img { transform: scale(1.045); }
.g-item figcaption { position: absolute; left: 1.4rem; bottom: 1.1rem; font-family: var(--sans); font-weight: 300; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(236,230,218,.85); text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(8,10,13,.55)); pointer-events: none; }

/* ═══════════════ AMENITIES ═══════════════ */
.amenities { padding: 0 clamp(1.4rem, 5vw, 4rem) clamp(6rem, 12vw, 10rem); }
.amenities__list { list-style: none; max-width: 62rem; margin: 0 auto; }
.a-row { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: baseline; gap: 1.2rem;
  padding: 1.35rem .2rem; border-bottom: 1px solid var(--hairline); position: relative; }
.a-row:first-child { border-top: 1px solid var(--hairline); }
.a-row::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width 1.4s var(--ease); }
.a-row.is-in::after { width: 100%; }
.a-num { font-family: var(--sans); font-weight: 200; font-size: .68rem; letter-spacing: .2em; color: var(--gold); }
.a-name { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 300; }
.a-note { font-family: var(--sans); font-weight: 300; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--paper-dim); text-align: right; }

/* ═══════════════ PRICE ═══════════════ */
.price { text-align: center; padding: clamp(7rem, 15vw, 12rem) 1.5rem; background:
  radial-gradient(60% 50% at 50% 60%, rgba(207,174,123,.07), transparent 70%), var(--ink); border-block: 1px solid var(--hairline); }
.price__figure { font-weight: 300; font-size: clamp(3.4rem, 11vw, 9rem); letter-spacing: .02em; color: #ecd6a8; margin: 1.6rem 0 1.4rem; line-height: 1;
  text-shadow: 0 0 80px rgba(207,174,123,.25); }
.price__note { font-family: var(--sans); font-weight: 300; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--paper-dim); }

/* ═══════════════ SHOWING ═══════════════ */
.showing { padding: clamp(6rem, 12vw, 10rem) clamp(1.4rem, 5vw, 4rem); }
.showing__inner { max-width: 74rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6.5rem); align-items: start; }
.showing .sect-head { text-align: left; margin-bottom: 3rem; }
.agent { display: flex; gap: 1.6rem; align-items: center; border: 1px solid var(--hairline); padding: 1.6rem; background: var(--ink-2); }
.agent__photo { width: 92px; height: 116px; object-fit: cover; filter: saturate(.85); }
.agent__name { font-size: 1.5rem; font-weight: 400; }
.agent__title { font-family: var(--sans); font-weight: 300; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: .35rem 0 .8rem; }
.agent__contact { font-family: var(--sans); font-weight: 300; font-size: .8rem; line-height: 1.7; color: var(--paper-dim); }

.showing__form .field { margin-bottom: 1.7rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field label { display: block; font-family: var(--sans); font-weight: 300; font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(236,230,218,.25);
  color: var(--paper); font-family: var(--serif); font-size: 1.15rem; font-weight: 300; padding: .45em 0;
  transition: border-color .4s; border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input.is-bad, .field textarea.is-bad { border-bottom-color: #b0563f; }
input[type="date"] { color-scheme: dark; }
.form-submit { margin-top: .6rem; background: transparent; border: 1px solid var(--gold-soft); color: var(--gold);
  font-family: var(--sans); font-weight: 300; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  padding: 1.05em 2.8em; border-radius: 3em; cursor: pointer; transition: background .45s, color .45s, box-shadow .45s; }
.form-submit:hover { background: var(--gold); color: var(--ink); box-shadow: 0 0 34px rgba(207,174,123,.35); }
.form-done { display: none; margin-top: 1.4rem; font-style: italic; color: #e7cf9f; font-size: 1.1rem; }
.showing__form.is-sent .form-done { display: block; }
.showing__form.is-sent .form-submit { opacity: .35; pointer-events: none; }

/* ═══════════════ FOOTER ═══════════════ */
.site-foot { text-align: center; padding: 4.5rem 1.5rem 3.5rem; border-top: 1px solid var(--hairline); background: var(--ink-2); }
.foot-line { font-family: var(--sans); font-weight: 300; font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--paper-dim); margin-top: 1.1rem; }
.foot-fine { font-family: var(--sans); font-weight: 300; font-size: .58rem; letter-spacing: .14em; color: rgba(183,174,158,.5); margin-top: 1.6rem; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .showing__inner { grid-template-columns: 1fr; }
  .rail { left: .8rem; }
  .rail__stops li span { display: none; }
}
@media (max-width: 640px) {
  .facts__row { grid-template-columns: repeat(2, 1fr); }
  .facts__row li:nth-child(3)::before { display: none; }
  .gallery__grid { grid-template-columns: 1fr; }
  .g-wide { grid-column: span 1; }
  .a-row { grid-template-columns: 2.4rem 1fr; }
  .a-note { display: none; }
  .head-loc { display: none; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
