:root {
  --paper: #f3efe7;
  --paper-2: #e9e4da;
  --ink: #171814;
  --muted: #6f6d65;
  --gold: #a29233;
  --gold-soft: #d8d0a0;
  --sage: #cbd3c4;
  --stone: #d8d3ca;
  --white: #fffdf8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --pad: clamp(1rem, 3vw, 3rem);
  --radius: 0.85rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
p, h1, h2, h3 { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { transform: translateY(0); }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: var(--paper);
  text-align: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.no-js .page-loader { display: none; }
.page-loader .loader-wordmark {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  letter-spacing: -.04em;
}
.page-loader p {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.loader-rule { width: min(18rem, 65vw); height: 1px; background: rgba(23,24,20,.18); overflow: hidden; }
.loader-rule span { display: block; width: 100%; height: 100%; background: var(--gold); transform: translateX(-100%); animation: load-rule 1s var(--ease) forwards; }
.is-ready .page-loader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes load-rule { to { transform: translateX(0); } }

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.announcement {
  min-height: 2rem;
  padding: .45rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  background: var(--ink);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.announcement a { color: var(--gold-soft); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 24, 20, .18);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  transition: transform .45s var(--ease), background .3s;
}
.site-header.is-hidden { transform: translateY(-105%); }
.nav-shell {
  position: relative;
  min-height: 5.1rem;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-group { display: flex; align-items: center; gap: clamp(1.15rem, 2.4vw, 2.75rem); font-size: .78rem; }
.nav-group a { position: relative; }
.nav-group a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-group a:hover::after, .nav-group a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-right { justify-content: flex-end; }
.nav-book { color: var(--gold); font-weight: 600; }
.brand { width: clamp(10.5rem, 17vw, 15rem); }
.brand img, .footer-brand img { mix-blend-mode: multiply; }
.menu-toggle, .mobile-menu { display: none; }

.hero { padding: var(--pad); padding-top: clamp(1rem, 2.4vw, 2rem); }
.hero-media {
  position: relative;
  isolation: isolate;
  height: min(68vw, 46rem);
  min-height: 31rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: #8f927b;
}
.hero-media > img { width: 100%; height: 114%; object-fit: cover; object-position: center 48%; transform: translate3d(0, -5%, 0) scale(1.025); will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.06) 58%, rgba(0,0,0,.56)); }
.hero-coordinate, .hero-address { position: absolute; color: var(--white); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-coordinate { top: 1.4rem; left: 1.5rem; display: flex; gap: 1.2rem; }
.hero-address { left: 1.5rem; right: 1.5rem; bottom: 1.35rem; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-address strong { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.025em; text-transform: none; }

.hero-copy { padding: clamp(3.5rem, 7vw, 7.5rem) clamp(0rem, 5vw, 6rem) clamp(4rem, 7vw, 7rem); }
.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .introduction h2, .collection h2, .manifesto h2, .details h2, .location h2, .booking h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .88;
}
.hero h1 { max-width: 88rem; margin-top: 1.25rem; font-size: clamp(4.3rem, 11.2vw, 11.7rem); }
em { color: var(--gold); font-weight: 400; }
.title-line { display: block; overflow: hidden; padding-bottom: .08em; }
.title-line > span { display: block; transform: translateY(115%); transition: transform 1.05s var(--ease); }
.is-ready .title-line > span { transform: translateY(0); }
.is-ready .title-line:nth-child(2) > span { transition-delay: .12s; }
.hero-intro { margin-top: clamp(2.6rem, 5vw, 5.4rem); margin-left: auto; max-width: 42rem; display: grid; gap: 2rem; }
.hero-intro > p { max-width: 39rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.45vw, 2.65rem); line-height: 1.08; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; }

.button {
  --button-bg: transparent;
  --button-color: var(--ink);
  min-height: 3.25rem;
  padding: .2rem .25rem .2rem 1.2rem;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-color);
  font-size: .77rem;
  font-weight: 600;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.button i { width: 2.65rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: currentColor; color: var(--button-bg); font-style: normal; }
.button-solid { --button-bg: var(--gold); --button-color: var(--ink); border-color: var(--gold); }
.button-solid i { background: var(--ink); color: var(--paper); }
.button-outline { --button-color: var(--ink); }
.button-outline i { color: var(--paper); }
.button-gold { --button-bg: var(--gold); --button-color: var(--ink); border-color: var(--gold); }
.button-gold i { background: var(--ink); color: var(--paper); }
.button:hover { transform: translateY(-2px); }
.text-link { padding-bottom: .28rem; border-bottom: 1px solid; font-size: .8rem; font-weight: 600; }
.text-link span { margin-left: .4rem; }

.marquee { overflow: hidden; border-top: 1px solid rgba(23,24,20,.2); border-bottom: 1px solid rgba(23,24,20,.2); padding: 1rem 0; }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 1.5rem; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.7rem); }
.marquee i { color: var(--gold); font-size: .75rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-pad { padding: clamp(5rem, 10vw, 10rem) var(--pad); }
.section-index { display: flex; align-items: center; gap: 1rem; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.section-index span { width: 2.2rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.section-index.light { color: var(--gold-soft); }

.introduction { position: relative; display: grid; grid-template-columns: minmax(9rem, .55fr) 2.4fr .45fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.intro-copy { max-width: 72rem; }
.introduction h2 { margin-top: 1.6rem; font-size: clamp(4rem, 8.2vw, 9rem); }
.intro-notes { margin: clamp(2.5rem, 5vw, 5rem) 0 0 auto; max-width: 42rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; color: var(--muted); }
.residence-seal { width: clamp(7rem, 12vw, 12rem); opacity: .75; }

.collection { padding-top: 2rem; }
.collection-heading { margin-bottom: 3.2rem; display: grid; grid-template-columns: 2fr 1fr; align-items: end; gap: 2rem; }
.collection h2 { margin-top: 1rem; font-size: clamp(4rem, 8vw, 8rem); }
.collection-heading > p { max-width: 30rem; color: var(--muted); }
.apartment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(23,24,20,.18); border: 1px solid rgba(23,24,20,.18); }
.apartment-card { overflow: hidden; }
.tone-gold { background: var(--gold-soft); }
.tone-stone { background: var(--stone); }
.tone-sage { background: var(--sage); }
.card-media { position: relative; isolation: isolate; height: clamp(21rem, 35vw, 35rem); display: block; overflow: hidden; }
.card-media::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--paper); transition: border-width .55s var(--ease); }
.card-media img { height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.apartment-card:hover .card-media img { transform: scale(1.045); }
.apartment-card:hover .card-media::after { border-width: .55rem; }
.card-count { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .45rem .65rem; border-radius: 99px; background: rgba(243,239,231,.84); backdrop-filter: blur(8px); font-size: .65rem; letter-spacing: .12em; }
.card-body { min-height: 17.5rem; padding: clamp(1.4rem, 2.2vw, 2.3rem); display: flex; flex-direction: column; align-items: flex-start; }
.card-body > p { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.card-body h3 { margin-top: 1.5rem; font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 4.6rem); font-weight: 400; letter-spacing: -.04em; line-height: .9; }
.card-body h3 em { color: var(--ink); }
.card-body > a { margin-top: auto; padding-bottom: .2rem; border-bottom: 1px solid; font-size: .76rem; font-weight: 600; }
.card-body > a span { display: inline-block; margin-left: .4rem; transition: transform .35s var(--ease); }
.card-body > a:hover span { transform: translate(3px, -3px); }

.manifesto { position: relative; isolation: isolate; min-height: 41rem; margin: 0 var(--pad); display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); text-align: center; }
.manifesto-texture { position: absolute; inset: -8%; background: linear-gradient(rgba(243,239,231,.12), rgba(243,239,231,.12)), url("./brand-texture.webp") center/cover; transform: scale(1.05); }
.manifesto-texture::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(162,146,51,.05), rgba(162,146,51,.25)); mix-blend-mode: multiply; }
.manifesto-content { position: relative; z-index: 1; max-width: 66rem; padding: 5rem 1.5rem; }
.manifesto h2 { margin: 1.5rem 0 2.5rem; font-size: clamp(3.9rem, 7.5vw, 8rem); }

.details { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.details-image { position: relative; isolation: isolate; height: min(66vw, 48rem); min-height: 36rem; overflow: hidden; border-radius: var(--radius); }
.details-image img { width: 100%; height: 112%; object-fit: cover; transform: translateY(-5%); }
.details-image > p { position: absolute; left: 1.3rem; bottom: 1.3rem; padding: .75rem 1rem; border-radius: .35rem; background: var(--paper); font-family: var(--serif); font-size: 1.2rem; line-height: 1.05; }
.details-copy { max-width: 41rem; }
.details h2 { margin-top: 1.4rem; font-size: clamp(4rem, 7vw, 7.2rem); }
.details-lead { margin-top: 2.3rem; max-width: 35rem; color: var(--muted); font-size: 1.05rem; }
.accordion { margin-top: 3rem; border-top: 1px solid rgba(23,24,20,.3); }
.accordion details { border-bottom: 1px solid rgba(23,24,20,.3); }
.accordion summary { min-height: 4.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.5rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { position: relative; width: 1.1rem; height: 1.1rem; }
.accordion summary i::before, .accordion summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .35s; }
.accordion summary i::after { transform: rotate(90deg); }
.accordion details[open] summary i::after { transform: rotate(0); }
.accordion details p { max-width: 34rem; padding: 0 2.5rem 1.5rem 0; color: var(--muted); }

.location { color: var(--white); background: var(--ink); }
.location-top { display: grid; grid-template-columns: .65fr 2fr; gap: 3rem; }
.location .eyebrow { color: var(--gold-soft); }
.location h2 { margin-top: 1.35rem; max-width: 72rem; font-size: clamp(4rem, 8.5vw, 9rem); }
.location h2 em { color: var(--gold-soft); }
.location-facts { margin-top: clamp(4rem, 8vw, 8rem); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.28); border-left: 1px solid rgba(255,255,255,.28); }
.location-facts article { min-height: 18rem; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.location-facts strong { font-family: var(--serif); font-size: clamp(3.6rem, 6vw, 6.5rem); font-weight: 400; }
.location-facts small { font-family: var(--sans); font-size: .85rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; }
.location-facts p { max-width: 13rem; color: rgba(255,255,255,.68); }
.location-actions { margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.location-actions > p { max-width: 36rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.35rem); line-height: 1.12; }

.booking { min-height: 46rem; padding: clamp(5rem, 10vw, 9rem) var(--pad); display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 3rem; overflow: hidden; background: var(--gold-soft); }
.booking-copy { max-width: 74rem; }
.booking h2 { margin-top: 1.4rem; font-size: clamp(4rem, 8.5vw, 9rem); }
.booking h2 em { color: var(--ink); }
.booking-copy > p:not(.eyebrow) { margin: 2.4rem 0; max-width: 35rem; }
.booking-mark img { width: min(28rem, 34vw); opacity: .7; }

.site-footer { padding: clamp(3.5rem, 6vw, 6rem) var(--pad) 1.2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; border-top: 1px solid rgba(23,24,20,.25); }
.footer-brand img { max-width: 24rem; }
.footer-brand p { margin-top: 1.4rem; font-family: var(--serif); font-size: 1.6rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; font-size: .85rem; }
.footer-column h2 { margin-bottom: .8rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a { color: var(--muted); }
.footer-column a:hover { color: var(--ink); }
.footer-meta { grid-column: 1 / -1; margin-top: 3rem; padding-top: 1rem; display: flex; justify-content: space-between; border-top: 1px solid rgba(23,24,20,.25); color: var(--muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.mobile-book { display: none; }

.js .reveal { opacity: 0; transform: translateY(2.5rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .image-reveal { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.15s var(--ease); }
.js .image-reveal.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
.apartment-card:nth-child(2) { transition-delay: .1s; }
.apartment-card:nth-child(3) { transition-delay: .2s; }

@media (max-width: 980px) {
  .nav-group { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; }
  .menu-toggle { justify-self: end; width: 3rem; height: 3rem; border: 1px solid rgba(23,24,20,.32); border-radius: 50%; background: transparent; display: grid; place-content: center; gap: .38rem; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 1.1rem; height: 1px; background: currentColor; transition: transform .35s; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(.22rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-.22rem) rotate(-45deg); }
  .mobile-menu { position: absolute; z-index: 90; top: 100%; left: 0; right: 0; height: calc(100svh - 5.1rem); padding: 3rem var(--pad); background: var(--paper); flex-direction: column; gap: .75rem; visibility: hidden; opacity: 0; transform: translateY(-1rem); transition: opacity .35s, transform .35s, visibility .35s; }
  .mobile-menu[aria-hidden="false"] { display: flex; visibility: visible; opacity: 1; transform: translateY(0); }
  .mobile-menu a { padding: .2rem 0; font-family: var(--serif); font-size: clamp(2.7rem, 8vw, 5rem); line-height: 1; border-bottom: 1px solid rgba(23,24,20,.2); }
  .introduction { grid-template-columns: 1fr 3fr; }
  .residence-seal { position: absolute; right: var(--pad); bottom: 3rem; }
  .apartment-grid { grid-template-columns: 1fr 1fr; }
  .apartment-card:last-child { grid-column: 1 / -1; }
  .apartment-card:last-child .card-media { height: 48rem; }
  .details { grid-template-columns: 1fr; }
  .details-image { height: 62rem; }
  .details-copy { max-width: 54rem; }
  .location-facts { grid-template-columns: 1fr 1fr; }
  .booking { grid-template-columns: 1fr; }
  .booking-mark { display: none; }
}

@media (max-width: 700px) {
  :root { --pad: 1rem; --radius: .55rem; }
  html { scroll-padding-top: 5.5rem; }
  .announcement { min-height: 1.75rem; justify-content: center; font-size: .56rem; text-align: center; }
  .announcement a { display: none; }
  .nav-shell { min-height: 4.6rem; }
  .brand { width: 10.25rem; }
  .mobile-menu { height: calc(100svh - 4.6rem); }
  .hero { padding-top: .75rem; }
  .hero-media { min-height: 29rem; height: 70vh; max-height: 39rem; }
  .hero-media > img { object-position: 56% 50%; }
  .hero-coordinate { display: none; }
  .hero-address { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .hero-address strong { font-size: 2rem; }
  .hero-copy { padding: 3.5rem 0 4.5rem; }
  .hero h1 { font-size: clamp(4.25rem, 20vw, 6.8rem); line-height: .84; }
  .hero-intro { margin-top: 2.5rem; }
  .hero-intro > p { font-size: 1.75rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .marquee { padding: .8rem 0; }
  .introduction { display: block; }
  .intro-copy { margin-top: 3rem; }
  .introduction h2, .collection h2, .manifesto h2, .details h2, .location h2, .booking h2 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .intro-notes { grid-template-columns: 1fr; margin-left: 0; }
  .residence-seal { position: static; margin: 3rem 0 0 auto; width: 7rem; }
  .collection-heading { grid-template-columns: 1fr; }
  .collection-heading > p { max-width: 24rem; }
  .apartment-grid { grid-template-columns: 1fr; gap: 1px; }
  .apartment-card:last-child { grid-column: auto; }
  .card-media, .apartment-card:last-child .card-media { height: min(118vw, 34rem); }
  .card-body { min-height: 15.5rem; }
  .card-body h3 { font-size: 3rem; }
  .manifesto { min-height: 38rem; }
  .details-image { height: 33rem; min-height: 0; }
  .details-image > p { font-size: 1rem; }
  .location-top { grid-template-columns: 1fr; }
  .location-facts { grid-template-columns: 1fr 1fr; }
  .location-facts article { min-height: 13rem; padding: 1rem; }
  .location-facts strong { font-size: 3.6rem; }
  .location-facts p { font-size: .82rem; }
  .location-actions { align-items: flex-start; flex-direction: column; }
  .booking { min-height: 42rem; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-bottom: 6rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .mobile-book { position: fixed; z-index: 95; left: .7rem; right: .7rem; bottom: .7rem; min-height: 3.4rem; padding: 0 1.2rem; display: flex; justify-content: space-between; align-items: center; border-radius: 999px; background: var(--gold); box-shadow: 0 .75rem 2rem rgba(0,0,0,.22); font-size: .78rem; font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .image-reveal { clip-path: none; }
  .title-line > span { transform: none; }
}
