:root {
  --night: #1b1630;
  --night-soft: #292044;
  --periwinkle: #8e8ad8;
  --lavender: #c6b7e7;
  --pink: #e9b6ca;
  --ivory: #f7f0e8;
  --blush-sand: #efe6ec;
  --serif: "Cormorant Garamond", serif;
  --ui: "Inter", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(8rem, 18vh, 13rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--night);
  background: var(--ivory);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
body { cursor: default; }
a { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .35em; }
img { display: block; width: 100%; }
::selection { color: var(--night); background: var(--pink); }
:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--night);
}

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .75rem 1rem; color: var(--night); background: var(--ivory);
  font: 500 .75rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 5.25rem; padding: 0 var(--gutter); color: var(--ivory);
  transition: background-color .45s ease, min-height .45s ease, backdrop-filter .45s ease, border-color .45s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { min-height: 3.75rem; background: rgb(26 20 48 / 72%); border-color: rgb(246 239 230 / 18%); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.wordmark { text-decoration: none; font: 400 1.2rem/1 var(--serif); letter-spacing: -.02em; }
.site-header nav, footer nav { display: flex; gap: clamp(1rem, 2.3vw, 2.5rem); align-items: center; }
.site-header nav a, footer nav a, footer > p {
  text-decoration: none; text-transform: uppercase;
  font: 500 clamp(.68rem, .75vw, .78rem)/1 var(--ui); letter-spacing: .18em;
}
.site-header nav a { padding: .75rem 0; }
.site-header a { transition: color .25s ease, opacity .25s ease; }
.site-header a:hover { color: var(--pink); }

.hero { position: relative; min-height: 100svh; color: var(--ivory); overflow: clip; background: var(--night); }
.hero::before { content: ""; position: absolute; inset: 0 0 52%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgb(27 22 48 / 48%) 0%, rgb(27 22 48 / 13%) 65%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 14%; pointer-events: none; background: linear-gradient(0deg, rgb(27 22 48 / 24%), transparent); }
.hero-media { position: absolute; inset: -3%; transform: translate3d(0, 0, 0) scale(1.045); will-change: transform; }
.hero-media picture { position: absolute; inset: 0; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-canvas { opacity: 0; transition: opacity .5s ease; }
.hero-canvas.ready { opacity: 1; }
.hero-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero-copy {
  position: relative; z-index: 2; min-height: 100svh; padding: clamp(7rem, 13vh, 8.5rem) var(--gutter) 5vh;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  text-shadow: 0 2px 18px rgb(27 22 48 / 55%);
}
.hero-actions { text-shadow: none; }
.hero h1, .stay h2, .notes h2, .closing h2 {
  margin: 0; font-family: var(--serif); font-weight: 300; line-height: .76; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 { max-width: 12ch; font-size: clamp(4.7rem, 7.4vw, 6.8rem); line-height: .8; }
.hero h1 em { color: var(--ivory); font-family: var(--serif); font-weight: 300; font-style: italic; }
.hero-copy > .hero-eyebrow { margin: 0 0 1.15rem; text-transform: uppercase; font: 500 .68rem/1 var(--ui); letter-spacing: .28em; }
.hero-copy > .hero-deck { margin: 1.35rem 0 0; font: 400 clamp(.9rem, 1.1vw, 1.05rem)/1.45 var(--ui); letter-spacing: .01em; }
.hero-actions { display: flex; gap: 2rem; align-items: center; margin-top: 1.8rem; }
.button {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 3.3rem; padding: 0 1.4rem;
  text-decoration: none; text-transform: uppercase; border: 1px solid currentColor;
  font: 500 .7rem/1 var(--ui); letter-spacing: .18em; transition: color .3s ease, background-color .3s ease;
}
.button-light { color: var(--night); background: var(--ivory); border-color: var(--ivory); }
.button-light:hover { color: var(--ivory); background: transparent; }
.text-link, .arrow-link {
  text-transform: uppercase; text-decoration: none; font: 500 .7rem/1 var(--ui); letter-spacing: .18em;
  border-bottom: 1px solid currentColor; padding-bottom: .45rem;
  transition: color .25s ease, border-color .25s ease;
}
.rendering-note { position: absolute; left: var(--gutter); bottom: 2rem; margin: 0 !important; color: rgb(246 239 230 / 72%); text-transform: uppercase; font: 500 .62rem/1.4 var(--ui) !important; letter-spacing: .18em; }

.stay { position: relative; padding: clamp(9rem, 21vh, 15rem) var(--gutter) var(--section-space); background: var(--blush-sand); }
.stay::before {
  content: ""; position: absolute; inset: 0 0 auto; height: clamp(3rem, 8vw, 7rem); pointer-events: none;
  background: linear-gradient(180deg, rgb(26 20 48 / 22%), rgb(232 184 200 / 12%) 42%, transparent);
}
.stay-intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(3rem, 9vw, 10rem); align-items: end; max-width: 92rem; margin: 0 auto clamp(6rem, 17vh, 12rem); }
.stay h2 { font-size: clamp(5rem, 10vw, 10rem); }
.stay h2 em, .notes h2 em, .closing h2 em { color: var(--pink); font-weight: 300; }
.stay h2 em { color: var(--night); }
.stay-copy { max-width: 40rem; font: 400 clamp(1rem, 1.2vw, 1.15rem)/1.7 var(--ui); }
.stay-copy p { margin: 0 0 1.4rem; }
.stay-copy .capacity { margin-bottom: 2rem; text-transform: uppercase; font: 500 .72rem/1.8 var(--ui); letter-spacing: .18em; }
.arrow-link { display: inline-block; margin-top: 1rem; }

.gallery-intro { display: grid; grid-template-columns: 4fr 8fr; gap: 2rem; align-items: start; max-width: 100rem; margin: 0 auto clamp(4rem, 9vh, 7rem); padding-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid rgb(27 22 48 / 12%); }
.gallery-intro p, .tile figcaption { text-transform: uppercase; font: 500 .7rem/1.45 var(--ui); letter-spacing: .18em; }
.gallery-intro p { margin: .5rem 0 0; color: rgb(27 22 48 / 66%); }
.gallery-intro h3 { margin: 0; max-width: 18ch; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 300; line-height: .92; letter-spacing: -.03em; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; row-gap: clamp(4rem, 9vh, 7rem); max-width: 100rem; margin: auto; }
.tile { position: relative; margin: 0; min-height: 0; background: transparent; }
.tile::after { content: ""; position: absolute; inset: 0 0 auto; height: var(--image-height, 28rem); border-radius: 4px; background: transparent; pointer-events: none; }
.tile { overflow: hidden; }
.tile figcaption { position: relative; }
.tile img { width: 100%; height: var(--image-height, 28rem); border-radius: 4px; object-fit: cover;  transition: transform 1.2s var(--ease-out), filter .7s ease; }
.tile figcaption {
  margin-top: .9rem; color: rgb(27 22 48 / 64%);
}
.tile-pool { grid-column: 1 / 9; --image-height: 44rem; }
.tile-living { grid-column: 9 / 13; --image-height: 31rem; margin-top: 8rem; }
.tile-fire { grid-column: 1 / 6; --image-height: 31rem; }
.tile-patio { grid-column: 6 / 13; --image-height: 40rem; }
.tile-kitchen { grid-column: 3 / 11; --image-height: 38rem; }

.notes { padding: var(--section-space) var(--gutter); color: var(--ivory); background: var(--night); }
.notes-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: clamp(5rem, 12vh, 9rem); }
.notes h2 { font-size: clamp(5rem, 10vw, 10rem); }
.notes-heading p {
  margin: 0 0 .75rem;
  text-transform: uppercase; font: 500 .7rem/1.4 var(--ui); letter-spacing: .18em;
}

.closing { min-height: 90svh; display: grid; grid-template-columns: 1fr 1fr; color: var(--ivory); background: var(--night); }
.closing-photo { min-height: 90svh; background: url("/home-v4/img/closing-dusk.webp") center / cover no-repeat; }
.closing-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(7rem, 11vw, 12rem) var(--gutter); }
.closing h2 { font-size: clamp(4.5rem, 7.2vw, 8rem); }
.closing .button { margin-top: 4rem; }
.button-dark { color: var(--night); background: var(--ivory); border-color: var(--ivory); }
.button-dark:hover { color: var(--ivory); background: transparent; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; min-height: 11rem; padding: 2rem var(--gutter); color: var(--ivory); background: var(--night); border-top: 1px solid rgb(244 234 217 / 25%); }
.footer-brand { font-size: 1.5rem; text-decoration: none; }
footer > p { justify-self: end; margin: 0; }
footer a { text-decoration: none; }

.sticky-book {
  position: fixed; z-index: 25; right: 1.5rem; bottom: 1.5rem; display: flex; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 3rem; padding: 0 1.25rem; border: 1px solid rgb(246 239 230 / 34%); border-radius: 999px; color: var(--ivory); background: var(--night);
  text-transform: uppercase; text-decoration: none; font: 500 .68rem/1 var(--ui); letter-spacing: .18em;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.sticky-book.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sticky-book::before { content: ""; width: .36rem; height: .36rem; margin-right: .65rem; border-radius: 50%; background: var(--lavender); }
.sticky-book:hover { color: var(--night); background: var(--ivory); border-color: var(--ivory); }
.sticky-book:focus-visible { outline-color: var(--ivory); box-shadow: 0 0 0 6px var(--periwinkle); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); filter: blur(3px); clip-path: inset(0 0 8px 0); transition: opacity 850ms var(--ease-out), transform 850ms var(--ease-out), filter 700ms ease, clip-path 850ms var(--ease-out); }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.js .reveal.in-view { filter: blur(0); clip-path: inset(0); }

@media (hover: hover) and (pointer: fine) {
  .text-link:hover, .arrow-link:hover { color: rgb(27 22 48 / 64%); border-color: transparent; }
  .hero .text-link:hover { color: var(--pink); }
  .tile:hover img { transform: scale(1.025); }
  footer a { transition: color .25s ease; }
  footer a:hover { color: var(--pink); }
}

@media (max-width: 800px) {
  .site-header { min-height: 4.5rem; }
  .site-header.scrolled { min-height: 3.65rem; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero-copy { padding-top: clamp(5.75rem, 11vh, 6.5rem); padding-bottom: 4rem; }
  .hero { background: linear-gradient(180deg, #57558f 0%, #8580bd 29%, #c59bc6 58%, #e9b6ca 76%, #d59abd 100%); }
  .hero::before { inset: 0 0 57%; background: linear-gradient(180deg, rgb(27 22 48 / 22%), transparent 80%); }
  .hero::after { height: 18%; background: linear-gradient(0deg, rgb(27 22 48 / 36%), transparent); }
  .hero-media { inset: 0; transform: translate3d(0, 0, 0); overflow: hidden; }
  .hero-media picture {
    inset: auto auto 0 50%;
    width: calc(100vw * 2.3);
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translateX(-61.5%);
  }
  .hero-poster {
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 80px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 80px);
  }
  .hero h1 { max-width: 9ch; font-size: clamp(3.25rem, 13.6vw, 4.7rem); line-height: .81; }
  .hero-copy > .hero-eyebrow { margin-bottom: .85rem; }
  .hero-copy > .hero-deck { max-width: 19rem; margin-top: 1rem; font-size: .88rem; }
  .hero-actions { gap: 1.4rem; margin-top: 1.25rem; }
  .rendering-note { display: none; }
  .stay-intro { grid-template-columns: 1fr; align-items: start; }
  .stay h2, .notes h2, .closing h2 { font-size: clamp(4.5rem, 20vw, 7rem); }
  .gallery-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .bento { grid-template-columns: 1fr; row-gap: 4rem; }
  .tile { grid-column: 1 !important; margin-top: 0 !important; }
  .tile img { height: 30rem; }
  .tile-pool img, .tile-patio img { height: 36rem; }
  .notes-heading { align-items: start; flex-direction: column; }
  .closing { min-height: 0; grid-template-columns: 1fr; }
  .closing-copy { min-height: 72svh; }
  .closing-photo { min-height: 68svh; }
  footer { grid-template-columns: 1fr; padding-block: 4rem 7rem; }
  footer nav { flex-wrap: wrap; }
  footer > p { justify-self: start; }
}

@media (min-width: 801px) {
  .hero-copy { align-items: center; padding-top: 4.25rem; text-align: center; }
  .hero h1 { max-width: none; font-size: clamp(3.75rem, 4.45vw, 4rem); line-height: .74; }
  .hero-copy > .hero-eyebrow { margin-bottom: .65rem; }
  .hero-copy > .hero-deck { max-width: 34rem; margin-top: .65rem; }
  .hero-actions { margin-top: .8rem; }
  .hero-actions .button { min-height: 3rem; }
  .rendering-note { text-align: left; }
}

@media (max-width: 450px) {
  .hero-copy { padding-top: 10rem; }
  .hero-actions { align-items: center; flex-direction: row; gap: 1.25rem; }
  .hero-actions .button { min-height: 3rem; padding-inline: 1rem; letter-spacing: .18em; }
  .hero-actions .text-link { letter-spacing: .18em; }
  .rendering-note { font-size: .56rem !important; }
  .stay, .notes { padding-block: 7.5rem; }
  .stay-intro { margin-bottom: 5rem; }
  .tile img { height: 22rem; }
  .tile-pool img, .tile-patio img { height: 27rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-canvas, .hero-video { display: none; }
  .hero-media { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 800px) {
  .hero-media { transform: none !important; }
}
