:root {
  --bg: #f4f0e9;
  --ink: #191713;
  --ink-soft: #6f6a60;
  --line: rgba(25, 23, 19, 0.14);
  --accent: #8a6f4d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Archivo", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.6; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  color: #fff; transition: background 0.5s, color 0.5s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav-links a { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }

.hero {
  position: relative; height: 100svh; min-height: 520px;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}
@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,0.75), rgba(10,8,6,0.25)); }
.hero-content { position: relative; z-index: 2; padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem); max-width: 720px; }
.hero-kicker { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1rem; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 1.05; margin-bottom: 1.2rem; }
.hero-sub { font-size: clamp(0.95rem, 1.4vw, 1.1rem); opacity: 0.9; max-width: 28rem; }

.chapter {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 4vw, 3rem);
}
.chapter.is-flipped .chapter-text { order: 2; }
.chapter.is-flipped .chapter-media { order: 1; }
.chapter-num { display: block; font-family: var(--serif); font-style: italic; color: var(--accent); margin-bottom: 0.6rem; }
.chapter h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1.2rem; }
.chapter p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.9rem; max-width: 32rem; }
.chapter-media { height: clamp(320px, 58vh, 580px); overflow: hidden; }

.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
  padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(5rem, 12vh, 9rem);
}
.gallery figure { grid-column: span 4; aspect-ratio: 4/3; overflow: hidden; }
.gallery figure.wide { grid-column: span 12; aspect-ratio: 21/9; }
.gallery img { transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

.footer {
  background: var(--ink); color: var(--bg); text-align: center;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.2rem, 4vw, 3rem) 2rem;
}
.footer-kicker { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.7; }
.footer-mail, .footer-phone {
  display: block; margin: 1.4rem auto 0;
  font-family: var(--serif); font-weight: 300;
  border-bottom: 1px solid transparent; transition: border-color 0.4s;
}
.footer-mail { font-size: clamp(1.6rem, 4vw, 3rem); }
.footer-phone { font-size: clamp(1.2rem, 3vw, 2rem); opacity: 0.92; }
.footer-mail:hover, .footer-phone:hover { border-color: var(--bg); }
.footer-note { margin: 2rem 0; font-size: 0.85rem; opacity: 0.75; }
.footer-pv { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.footer-pv:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 860px) {
  .nav-links a:not([href="#house"]):not([href="#contact"]) { display: none; }
  .chapter { grid-template-columns: 1fr; }
  .chapter.is-flipped .chapter-text, .chapter.is-flipped .chapter-media { order: unset; }
  .chapter-media { height: 44vh; }
  .gallery figure, .gallery figure.wide { grid-column: span 12; aspect-ratio: 4/3; }
}
