:root {
  --ink: #171512;
  --paper: #f2eee5;
  --ivory: #f6f1e7;
  --gold: #b9a27d;
  --line: rgba(246,241,231,.36);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Montserrat', sans-serif; }
a { color: inherit; text-decoration: none; }
.hero { min-height: 100svh; position: relative; overflow: hidden; display: grid; place-items: center; color: var(--ivory); background: #11100e; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,5,.42) 0%, rgba(8,7,6,.18) 45%, rgba(7,6,5,.55) 100%); }
.nav { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; padding: 28px 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); }
.nav-brand { font-family: 'Cormorant Garamond', serif; font-size: 20px; letter-spacing: .22em; }
.nav-links { display: flex; gap: 28px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.nav-links a { opacity: .88; transition: opacity .2s ease; }
.nav-links a:hover { opacity: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; width: min(920px, 88vw); padding-top: 42px; }
.eyebrow { font-size: 10px; letter-spacing: .52em; margin-bottom: 24px; opacity: .9; }
h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: .82; text-shadow: 0 3px 24px rgba(0,0,0,.25); }
h1 span { display: block; font-size: clamp(68px, 11vw, 164px); letter-spacing: -.045em; }
h1 em { display: block; font-size: clamp(34px, 5.8vw, 76px); font-weight: 300; letter-spacing: .12em; margin-top: 28px; }
.hero-sub { width: min(560px, 80vw); margin: 34px auto 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(20px, 2vw, 27px); line-height: 1.35; font-weight: 300; }
.hero-cta { display: inline-block; margin-top: 38px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.scroll-cue { position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: .35em; opacity: .7; }
.intro { padding: 140px 9vw; max-width: 1180px; margin: auto; }
.kicker { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: #796b56; }
.intro h2, .stay h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(52px, 7vw, 94px); font-weight: 300; line-height: .95; margin: 22px 0 36px; letter-spacing: -.03em; }
.lede { max-width: 700px; margin-left: auto; font-family: 'Cormorant Garamond', serif; font-size: 26px; line-height: 1.55; }
.statement { background: #181613; color: var(--ivory); padding: 130px 8vw; text-align: center; }
.statement-inner { max-width: 900px; margin: auto; }
.ornament { color: var(--gold); font-size: 18px; }
blockquote { margin: 26px 0 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(42px, 6vw, 78px); line-height: 1.05; font-weight: 300; }
.stay { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 720px; }
.stay-copy { padding: 120px 9vw; align-self: center; }
.stay-copy p:not(.kicker) { font-family: 'Cormorant Garamond', serif; font-size: 24px; line-height: 1.5; max-width: 620px; }
.text-link { display: inline-block; margin-top: 22px; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; border-bottom: 1px solid #8f7c5d; padding-bottom: 5px; }
.stay-panel { background: linear-gradient(135deg, #84735d, #201d18); display: grid; place-items: center; min-height: 620px; }
.stay-monogram { width: 210px; aspect-ratio: 1; border: 1px solid rgba(246,241,231,.55); border-radius: 50%; display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-size: 74px; color: var(--ivory); letter-spacing: -.08em; }
footer { background: #11100e; color: var(--ivory); padding: 54px 7vw; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 34px; }
footer p, footer a { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
@media (max-width: 760px) {
  .nav { padding: 22px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:first-child { display:none; }
  h1 span { font-size: clamp(58px, 18vw, 88px); }
  h1 em { font-size: clamp(28px, 8vw, 44px); letter-spacing: .08em; }
  .intro { padding: 100px 24px; }
  .lede { margin-left: 0; }
  .stay { grid-template-columns: 1fr; }
  .stay-copy { padding: 90px 24px; }
  .stay-panel { min-height: 420px; }
  footer { align-items: flex-start; flex-direction: column; }
}

.hero-video { width:100%; height:100%; object-fit:cover; }

/* Editorial property gallery — tightly composed, no dead grid space */
.gallery { padding: 132px 3.2vw 92px; background: #e8e0d3; }
.gallery-heading { max-width: 1500px; margin: 0 auto 52px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.gallery-heading h2 { margin: 16px 0 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(58px, 8vw, 112px); font-weight: 300; line-height: .86; letter-spacing: -.04em; }
.gallery-heading > p { max-width: 540px; margin: 0 0 8px auto; font-family: 'Cormorant Garamond', serif; font-size: 24px; line-height: 1.45; }
.gallery-grid { max-width: 1500px; margin: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(4, clamp(230px, 24vw, 390px)); gap: 6px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; background: #cfc4b2; min-width: 0; min-height: 0; }
.gallery-item:nth-child(1) { grid-column: 1 / 9; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 2 / 3; }
.gallery-item:nth-child(4) { grid-column: 1 / 5; grid-row: 3 / 4; }
.gallery-item:nth-child(5) { grid-column: 5 / 9; grid-row: 3 / 4; }
.gallery-item:nth-child(6) { grid-column: 9 / 13; grid-row: 3 / 4; }
.gallery-item:nth-child(7) { grid-column: 1 / 7; grid-row: 4 / 5; }
.gallery-item:nth-child(8) { grid-column: 7 / 13; grid-row: 4 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.gallery-item:nth-child(1) img { object-position: center 44%; }
.gallery-item:nth-child(2) img { object-position: center 56%; }
.gallery-item:nth-child(3) img { object-position: center 58%; }
.gallery-item:nth-child(7) img { object-position: center 42%; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(12,10,8,.48)); pointer-events: none; }
.gallery-item figcaption { position: absolute; z-index: 2; left: 22px; bottom: 18px; color: #f6f1e7; font-family: 'Cormorant Garamond', serif; font-size: 21px; font-style: italic; letter-spacing: .03em; text-shadow: 0 1px 12px rgba(0,0,0,.3); }

/* Immersive Matterport tour */
.tour { background: #11100e; color: var(--ivory); padding: 112px 3.2vw 122px; }
.tour-heading { max-width: 1500px; margin: 0 auto 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.tour-heading .kicker { color: var(--gold); }
.tour-heading h2 { margin: 14px 0 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(58px, 7vw, 100px); font-weight: 300; line-height: .9; letter-spacing: -.035em; }
.tour-heading > p { max-width: 560px; margin: 0 0 8px auto; font-family: 'Cormorant Garamond', serif; font-size: 23px; line-height: 1.45; color: rgba(246,241,231,.82); }
.matterport-frame { max-width: 1500px; margin: 0 auto; aspect-ratio: 16 / 9; background: #080807; overflow: hidden; }
.matterport-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.tour-link { display: block; width: max-content; max-width: 1500px; margin: 24px auto 0 3.2vw; padding-bottom: 6px; border-bottom: 1px solid rgba(246,241,231,.36); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(246,241,231,.86); }

@media (max-width: 900px) {
  .gallery { padding: 96px 12px 80px; }
  .gallery-heading, .tour-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; padding: 0 12px; }
  .gallery-heading > p, .tour-heading > p { margin-left: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(5, minmax(280px, 52vw)); gap: 4px; }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
  .gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: 3 / 4; }
  .gallery-item:nth-child(6) { grid-column: 1 / 2; grid-row: 4 / 5; }
  .gallery-item:nth-child(7) { grid-column: 2 / 3; grid-row: 4 / 5; }
  .gallery-item:nth-child(8) { grid-column: 1 / 3; grid-row: 5 / 6; }
  .tour { padding: 92px 12px 96px; }
  .matterport-frame { aspect-ratio: 4 / 3; }
  .tour-link { margin-left: 12px; }
}
@media (max-width: 560px) {
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 4px; }
  .gallery-item:nth-child(n) { grid-column: 1; grid-row: auto; height: 68vh; min-height: 430px; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(5), .gallery-item:nth-child(8) { height: 56vh; min-height: 350px; }
  .matterport-frame { aspect-ratio: 3 / 4; }
}


/* Secondary cinematic hero — closing moment */
.closing-hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0d0c0a;
  color: var(--ivory);
  isolation: isolate;
}
.closing-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -3;
}
.closing-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9,8,7,.36) 0%, rgba(9,8,7,.14) 42%, rgba(9,8,7,.55) 100%),
    linear-gradient(90deg, rgba(7,6,5,.18), transparent 32%, transparent 68%, rgba(7,6,5,.18));
}
.closing-hero-content {
  width: min(980px, 88vw);
  text-align: center;
  padding: 80px 24px;
  text-shadow: 0 3px 28px rgba(0,0,0,.28);
}
.closing-eyebrow {
  margin: 0 0 24px;
  font-size: 9px;
  letter-spacing: .48em;
  text-transform: uppercase;
  opacity: .88;
}
.closing-hero h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: .84;
}
.closing-hero h2 span {
  display: block;
  font-size: clamp(70px, 10.5vw, 154px);
  letter-spacing: -.045em;
}
.closing-hero h2 em {
  display: block;
  margin-top: 24px;
  font-size: clamp(32px, 5.2vw, 72px);
  font-weight: 300;
  letter-spacing: .13em;
}
.closing-cta {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(246,241,231,.55);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.closing-mark {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 16px;
  opacity: .9;
}
@media (max-width: 760px) {
  .closing-hero { min-height: 88svh; }
  .closing-hero-video { object-position: center center; }
  .closing-hero h2 span { font-size: clamp(60px, 18vw, 94px); }
  .closing-hero h2 em { font-size: clamp(28px, 8.5vw, 45px); letter-spacing: .09em; }
  .closing-eyebrow { letter-spacing: .32em; }
}


/* 2026 refinement: one continuous editorial experience */
.site-main { overflow: clip; }
.intro, .gallery, .tour, .statement, .stay, .closing-hero { position: relative; }
.intro::after, .gallery::after, .tour::after, .statement::after, .stay::after { content: ''; position:absolute; left:0; right:0; bottom:-1px; height:72px; pointer-events:none; z-index:4; }
.intro::after { background:linear-gradient(to bottom,transparent,rgba(232,224,211,.65)); }
.gallery::after { background:linear-gradient(to bottom,transparent,rgba(17,16,14,.28)); }
.tour::after { background:linear-gradient(to bottom,transparent,rgba(24,22,19,.95)); }
.statement::after { background:linear-gradient(to bottom,transparent,rgba(242,238,229,.92)); }
.stay::after { background:linear-gradient(to bottom,transparent,rgba(13,12,10,.52)); }
.gallery { padding-top:120px; padding-bottom:84px; }
.tour { padding-top:104px; padding-bottom:112px; }
.statement { padding-top:112px; padding-bottom:112px; }
.stay { min-height:680px; }
.closing-hero { min-height:100svh; height:100svh; background:#090806; }
.closing-hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%; }
.closing-hero::before { content:''; position:absolute; z-index:-1; inset:0; box-shadow:inset 0 70px 90px -72px rgba(0,0,0,.7), inset 0 -86px 100px -72px rgba(0,0,0,.85); pointer-events:none; }
.closing-hero-content { transform:translateY(-1vh); }
.closing-hero-content,.closing-mark { transition:opacity .8s ease,transform .8s ease; }
footer { position:relative; margin-top:-1px; border-top:1px solid rgba(246,241,231,.12); background:linear-gradient(180deg,#0c0b09 0%,#11100e 100%); }
.hero-video,.closing-hero-video,.gallery-item img { backface-visibility:hidden; transform:translateZ(0); }
.hero-cta,.closing-cta,.text-link,.tour-link { transition:opacity .25s ease,border-color .25s ease; }
.hero-cta:hover,.closing-cta:hover,.text-link:hover,.tour-link:hover { opacity:.72; }
@media (max-width:760px){ .closing-hero{min-height:100svh;height:100svh}.closing-hero-content{padding-inline:18px}.intro::after,.gallery::after,.tour::after,.statement::after,.stay::after{height:42px} }
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto}.gallery-item img,.hero-cta,.closing-cta,.text-link,.tour-link{transition:none} }

/* Residence painting chapter — replaces flat quote/stay blocks with one continuous editorial image */
.residence-canvas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(10,9,7,.42) 0%, rgba(10,9,7,.20) 24%, rgba(10,9,7,.38) 62%, rgba(10,9,7,.72) 100%),
    url('assets/residence-painting.webp') center 46% / cover no-repeat;
}
.residence-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 48%, rgba(185,162,125,.13), transparent 30%),
    linear-gradient(90deg, rgba(8,7,6,.50) 0%, rgba(8,7,6,.12) 48%, rgba(8,7,6,.36) 100%);
}
.residence-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 80px 110px -95px rgba(0,0,0,.9), inset 0 -110px 130px -100px rgba(0,0,0,.95);
}
.residence-canvas .statement,
.residence-canvas .stay {
  background: transparent;
  color: var(--ivory);
}
.residence-canvas .statement {
  min-height: 52svh;
  padding: clamp(96px, 12vw, 180px) 8vw clamp(70px, 9vw, 130px);
  display: grid;
  place-items: center;
  text-align: center;
}
.residence-canvas .statement::after,
.residence-canvas .stay::after { display: none; }
.residence-canvas .statement-inner {
  width: min(1050px, 90vw);
  margin: 0 auto;
  padding: clamp(34px, 4vw, 58px) clamp(28px, 5vw, 70px);
  background: linear-gradient(180deg, rgba(16,14,12,.40), rgba(16,14,12,.22));
  border: 1px solid rgba(246,241,231,.16);
  box-shadow: 0 28px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.residence-canvas .ornament { color: var(--gold); }
.residence-canvas blockquote {
  margin: 18px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-shadow: 0 3px 28px rgba(0,0,0,.30);
}
.residence-canvas .stay {
  min-height: 720px;
  grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr);
  align-items: stretch;
  border-top: 1px solid rgba(246,241,231,.15);
}
.residence-canvas .stay-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(82px, 9vw, 140px) 9vw;
  background: linear-gradient(90deg, rgba(12,10,8,.70) 0%, rgba(12,10,8,.50) 58%, rgba(12,10,8,.18) 100%);
}
.residence-canvas .stay-copy .kicker { color: #cfb787; }
.residence-canvas .stay h2 {
  color: var(--ivory);
  text-shadow: 0 3px 28px rgba(0,0,0,.28);
  max-width: 720px;
}
.residence-canvas .stay-copy p:not(.kicker) {
  color: rgba(246,241,231,.88);
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.residence-canvas .text-link {
  width: max-content;
  color: var(--ivory);
  border-bottom-color: rgba(207,183,135,.75);
}
.residence-canvas .stay-panel {
  min-height: 620px;
  background: linear-gradient(180deg, rgba(13,11,9,.18), rgba(13,11,9,.48));
  border-left: 1px solid rgba(246,241,231,.16);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.residence-canvas .stay-monogram {
  width: clamp(180px, 17vw, 245px);
  border-color: rgba(207,183,135,.70);
  color: #e1ca9d;
  box-shadow: 0 20px 60px rgba(0,0,0,.18), inset 0 0 0 8px rgba(16,14,12,.08);
  background: rgba(12,10,8,.16);
}

@media (max-width: 760px) {
  .residence-canvas {
    background-position: 58% center;
  }
  .residence-canvas .statement {
    min-height: 48svh;
    padding: 82px 18px 58px;
  }
  .residence-canvas .statement-inner {
    width: 100%;
    padding: 34px 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .residence-canvas blockquote { font-size: clamp(40px, 12vw, 62px); }
  .residence-canvas .stay { grid-template-columns: 1fr; min-height: 0; }
  .residence-canvas .stay-copy {
    padding: 78px 24px 64px;
    background: linear-gradient(180deg, rgba(12,10,8,.66), rgba(12,10,8,.42));
  }
  .residence-canvas .stay-panel {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid rgba(246,241,231,.14);
  }
}

/* 2026-08-30 — cinematic continuity pass
   Softens every handoff so the page reads as one art-directed composition. */
:root {
  --blend-lg: clamp(96px, 10vw, 168px);
  --blend-sm: clamp(56px, 8vw, 96px);
}

/* Retire the earlier narrow transition strips in favor of deeper crossfades. */
.intro::after,
.gallery::after,
.tour::after,
.statement::after,
.stay::after { display: none !important; }

/* Hero → editorial intro: let the film dissolve into warm paper rather than stop. */
.hero::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--blend-lg);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(17,16,14,0) 0%,
    rgba(36,32,27,.18) 28%,
    rgba(108,97,81,.24) 52%,
    rgba(242,238,229,.74) 80%,
    var(--paper) 100%);
}

/* Intro becomes a full-width paper field while the copy remains composed. */
.intro {
  max-width: none;
  margin: 0;
  padding: clamp(122px, 13vw, 190px) max(9vw, calc((100vw - 1180px)/2));
  background:
    radial-gradient(circle at 82% 14%, rgba(185,162,125,.10), transparent 28%),
    linear-gradient(180deg, var(--paper) 0%, #efe9de 70%, #e8e0d3 100%);
}
.intro > * { max-width: 1180px; }
.intro .lede { margin-left: min(30vw, 360px); }

/* Intro → gallery: nearly imperceptible tonal shift. */
.gallery {
  background:
    linear-gradient(180deg, #e8e0d3 0%, #e4dacb 52%, #ddd2c2 100%);
  isolation: isolate;
}
.gallery::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(var(--blend-sm) * -1);
  height: var(--blend-sm);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(232,224,211,0), #e8e0d3 100%);
}
.gallery > * { position: relative; z-index: 1; }
.gallery-grid {
  box-shadow: 0 34px 90px rgba(46,37,28,.11);
}
.gallery-item::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
  pointer-events: none;
}

/* Gallery → Matterport: a long dusk fade rather than beige snapping to black. */
.tour {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 0%, rgba(112,93,69,.22), transparent 34%),
    linear-gradient(180deg, #1b1814 0%, #11100e 22%, #11100e 100%);
  padding-top: clamp(124px, 11vw, 176px);
}
.tour::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(var(--blend-lg) * -1);
  height: var(--blend-lg);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(221,210,194,0) 0%,
    rgba(120,105,86,.28) 38%,
    rgba(54,47,39,.72) 70%,
    #1b1814 100%);
}
.tour > * { position: relative; z-index: 1; }
.matterport-frame {
  border: 1px solid rgba(246,241,231,.10);
  box-shadow: 0 36px 100px rgba(0,0,0,.30);
}

/* Matterport → painted residence chapter: black dissolves into the painting. */
.residence-canvas .statement::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(var(--blend-lg) * -1);
  height: var(--blend-lg);
  pointer-events: none;
  background: linear-gradient(180deg,
    #11100e 0%,
    rgba(17,16,14,.94) 18%,
    rgba(17,16,14,.66) 48%,
    rgba(17,16,14,.18) 80%,
    rgba(17,16,14,0) 100%);
}
.residence-canvas .statement-inner,
.residence-canvas .stay-copy,
.residence-canvas .stay-panel {
  transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.residence-canvas .statement-inner {
  border-color: rgba(246,241,231,.12);
  background: linear-gradient(180deg, rgba(16,14,12,.34), rgba(16,14,12,.18));
  box-shadow: 0 40px 110px rgba(0,0,0,.17);
}
.residence-canvas .stay {
  border-top-color: rgba(246,241,231,.10);
}

/* Painted chapter → closing film: retain the same darkness/color temperature. */
.closing-hero {
  margin-top: -1px;
}
.closing-hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(10,9,7,.92) 0%,
      rgba(10,9,7,.58) 10%,
      rgba(9,8,7,.26) 25%,
      rgba(9,8,7,.13) 48%,
      rgba(9,8,7,.56) 82%,
      rgba(13,12,10,.92) 100%),
    linear-gradient(90deg, rgba(7,6,5,.20), transparent 32%, transparent 68%, rgba(7,6,5,.20));
}

/* Closing film → footer. */
footer {
  isolation: isolate;
  padding-top: 78px;
}
footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: calc(var(--blend-sm) * -1);
  height: var(--blend-sm);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13,12,10,0), #0c0b09 86%);
}

/* Gentle viewport reveals: movement is intentionally restrained. */
.reveal-soft {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 1.05s cubic-bezier(.22,.61,.36,1),
    transform 1.15s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal-soft.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.gallery-item.reveal-soft { transform: translate3d(0, 14px, 0); }
.gallery-item.reveal-soft.is-visible { transform: translate3d(0, 0, 0); }
.gallery-item:nth-child(2n).reveal-soft { transition-delay: .06s; }
.gallery-item:nth-child(3n).reveal-soft { transition-delay: .11s; }

/* Keep anchor jumps from landing hard against section edges. */
section[id] { scroll-margin-top: 72px; }

@media (max-width: 760px) {
  :root { --blend-lg: 104px; --blend-sm: 64px; }
  .intro {
    padding: 112px 24px 104px;
  }
  .intro .lede { margin-left: 0; }
  .tour { padding-top: 116px; }
  .gallery-grid { box-shadow: 0 22px 54px rgba(46,37,28,.10); }
  footer { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-soft,
  .gallery-item.reveal-soft {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Expanded gallery — complete final row, no dead cells */
@media (min-width: 761px) {
  .gallery-grid { grid-template-rows: repeat(5, clamp(230px, 24vw, 390px)); }
  .gallery-item:nth-child(9)  { grid-column: 1 / 6; grid-row: 5 / 6; }
  .gallery-item:nth-child(10) { grid-column: 6 / 10; grid-row: 5 / 6; }
  .gallery-item:nth-child(11) { grid-column: 10 / 13; grid-row: 5 / 6; }
  .gallery-item:nth-child(9) img { object-position: center 52%; }
  .gallery-item:nth-child(10) img { object-position: center 50%; }
  .gallery-item:nth-child(11) img { object-position: center 50%; }
}
@media (min-width: 521px) and (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(7,minmax(280px,52vw)); }
  .gallery-item:nth-child(9) { grid-column: 1 / 3; grid-row: 6 / 7; }
  .gallery-item:nth-child(10) { grid-column: 1 / 2; grid-row: 7 / 8; }
  .gallery-item:nth-child(11) { grid-column: 2 / 3; grid-row: 7 / 8; }
}
@media (max-width: 520px) {
  .gallery-item:nth-child(n) { grid-column: 1; grid-row: auto; }
  .gallery-item:nth-child(9), .gallery-item:nth-child(10), .gallery-item:nth-child(11) { height: 58vh; min-height: 360px; }
}
.gallery-item--new figcaption { font-size: 19px; letter-spacing: .045em; }

.direct-booking-contact{margin:1rem 0 1.75rem;font:inherit;letter-spacing:.02em}
.direct-booking-contact a{color:inherit;text-decoration:none;border-bottom:1px solid currentColor}
