/* 2070 Cooper Road — Gabriola Island oceanfront landing page */

:root {
  --ink: #0a1820;
  --ink-soft: #1e3340;
  --muted: #5f7380;
  --line: #dde4e8;
  --cream: #f5f2eb;
  --cream-2: #ebe6dc;
  --white: #ffffff;
  --ocean: #1a5568;
  --ocean-dark: #0f3a48;
  --gold: #b8956a;
  --gold-soft: #d0b088;
  --shadow: 0 24px 60px rgba(10, 24, 32, 0.16);
  --shadow-sm: 0 10px 30px rgba(10, 24, 32, 0.12);
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.light { color: var(--gold-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}
.section-title.light { color: #fff; }

.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; margin: 0; text-wrap: balance; }
.section-lead.light { color: rgba(255,255,255,0.84); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head .section-lead { margin: 0 auto; }

/* Gallery slideshow launch button (right edge, aligned with the title) */
.gallery-head-wrap { position: relative; }

/* Matterport 3D tour */
.section-matterport {
  background: linear-gradient(180deg, #e2ddd2 0%, #d9d3c6 100%);
}
.matterport-wrap {
  position: relative; border-radius: var(--radius); padding: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 30%, #fff6e2 50%, var(--gold-soft) 70%, var(--gold) 100%);
  background-size: 260% 260%;
  box-shadow: var(--shadow);
  animation: mapGoldFade 5s ease-in-out infinite;
  margin-bottom: 2rem;
}
.matterport-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.matterport-wrap iframe {
  display: block; width: 100%; height: min(520px, 72vw);
  border: 0; border-radius: calc(var(--radius) - 6px);
  background: #111;
}
.matterport-actions { text-align: center; }
.matterport-actions .btn { margin-bottom: 0.75rem; }
.matterport-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 720px) {
  .matterport-wrap iframe { height: min(420px, 62vw); }
}
.slideshow-btn {
  position: absolute; top: 50%; right: 1.5rem; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  background: none; border: 0; cursor: pointer; color: var(--gold);
}
.slideshow-btn__circle {
  position: relative;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft, #e7c878)); color: #1a1206;
  box-shadow: 0 10px 28px rgba(201,161,74,0.4);
  animation: slideshowPulse 2.4s ease-in-out infinite;
}
.slideshow-btn__circle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: slideshowRing 2.4s ease-out infinite;
}
.slideshow-btn__circle svg { width: 26px; height: 26px; margin-left: 3px; }
.slideshow-btn:hover .slideshow-btn__circle { box-shadow: 0 14px 38px rgba(201,161,74,0.6); }
.slideshow-btn__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
@keyframes slideshowPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes slideshowRing {
  0% { box-shadow: 0 0 0 0 rgba(201,161,74,0.45); }
  70% { box-shadow: 0 0 0 20px rgba(201,161,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,161,74,0); }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow-btn__circle { animation: none; }
  .slideshow-btn__circle::after { animation: none; }
}
@media (max-width: 760px) {
  .slideshow-btn { position: static; transform: none; flex-direction: row; margin: 1.5rem auto 0; }
}

/* Full-screen slideshow player */
.slideshow {
  position: fixed; inset: 0; background: #000; z-index: 300;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.slideshow.open { opacity: 1; visibility: visible; }
.slideshow__stage { position: absolute; inset: 0; overflow: hidden; }
.slideshow__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.3s ease; will-change: opacity, transform;
}
.slideshow__slide.is-active { opacity: 1; }
.slideshow__story {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%); z-index: 2;
  width: min(86vw, 780px); text-align: center; color: #fff; font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.3; font-weight: 500;
  text-shadow: 0 2px 16px rgba(0,0,0,0.65); pointer-events: none;
  opacity: 0; transition: opacity 0.9s ease, transform 0.9s ease;
}
.slideshow__story.show { opacity: 1; }
/* Rotating positions so the storyline appears in different areas */
.slideshow__story.pos-0 { top: 9%; left: 50%; transform: translateX(-50%); text-align: center; }
.slideshow__story.pos-1 { top: 32%; left: 6%; right: auto; transform: none; text-align: left; width: min(48vw, 440px); }
.slideshow__story.pos-2 { top: 26%; left: auto; right: 6%; transform: none; text-align: right; width: min(48vw, 440px); }
.slideshow__story.pos-3 { top: 30%; left: 50%; transform: translateX(-50%); text-align: center; }
.slideshow__story.pos-4 { top: 46%; left: 7%; right: auto; transform: none; text-align: left; width: min(46vw, 420px); }
@media (max-width: 700px) {
  .slideshow__story,
  .slideshow__story.pos-0, .slideshow__story.pos-1, .slideshow__story.pos-2,
  .slideshow__story.pos-3, .slideshow__story.pos-4 {
    top: 6%; left: 50%; right: auto; transform: translateX(-50%);
    width: 86vw; text-align: center; font-size: 1.15rem;
  }
}
.slideshow__counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; letter-spacing: 0.1em;
  background: rgba(0,0,0,0.35); padding: 0.4rem 0.9rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.slideshow__stop {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 3; cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem; color: #fff; font: inherit; font-weight: 600; font-size: 0.9rem;
  background: linear-gradient(135deg, #e0463f, #ff6a5e); border: 0; border-radius: 999px; padding: 0.6rem 1.2rem;
  box-shadow: 0 10px 28px rgba(224,70,63,0.45);
}
.slideshow__stop:hover { filter: brightness(1.08); }
.slideshow__stop-dot { width: 11px; height: 11px; background: #fff; border-radius: 2px; }
.slideshow__logo {
  position: absolute; bottom: 1.5rem; right: 1.5rem; z-index: 2; height: 120px; width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.5)); opacity: 0.95; pointer-events: none;
}
.slideshow__logo--remax {
  right: auto; bottom: auto; top: 1.5rem; left: 1.5rem; height: 88px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.slideshow__caption {
  position: absolute; bottom: 1.5rem; left: 1.5rem; z-index: 2;
  background: rgba(10,15,20,0.42); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  padding: 1rem 1.4rem; color: #fff; max-width: min(80vw, 440px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.slideshow__addr { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin: 0; }
.slideshow__loc { margin: 0.3rem 0 0; font-size: 0.85rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.82); }
.slideshow__price { font-family: var(--serif); font-size: 1.35rem; margin: 0.55rem 0 0; color: var(--gold-soft, #e7c878); }
@media (max-width: 700px) {
  .slideshow__logo { height: 56px; bottom: 1rem; right: 1rem; }
  .slideshow__logo--remax { top: 1rem; left: 1rem; bottom: auto; right: auto; }
  .slideshow__caption { bottom: 1rem; left: 1rem; padding: 0.7rem 1rem; }
  .slideshow__addr { font-size: 1.3rem; }
  .slideshow__price { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .slideshow__slide { transition: opacity 0.6s ease; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em; padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  position: relative;
  color: #1a1206; border-color: var(--gold);
  background: linear-gradient(110deg, var(--gold) 0%, var(--gold-soft) 28%, #f3e2c0 48%, var(--gold-soft) 68%, var(--gold) 100%);
  background-size: 220% 100%;
  background-position: 130% 0;
  overflow: hidden;
  animation: goldShimmer 3.4s linear infinite;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.65) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: goldSheen 3.4s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184,149,106,0.45); }
@keyframes goldShimmer {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
@keyframes goldSheen {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; background-position: 50% 0; }
  .btn-primary::after { animation: none; display: none; }
}
.btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-ghost:hover { border-color: var(--gold); color: var(--ocean-dark); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 0.4rem 0;
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(10,24,32,0.52) 0%, rgba(15,58,72,0.40) 100%);
  box-shadow: 0 10px 34px rgba(8,20,28,0.22);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-bottom: 1px solid rgba(184,149,106,0.40);
}
.header-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--ink); margin-right: auto; }
.brand-balloon { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ocean); }
.brand-text { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-header:not(.scrolled) .brand { color: #fff; }
.site-header:not(.scrolled) .brand-mark { color: var(--gold-soft); }
.site-header.scrolled .brand { color: #fff; }
.site-header.scrolled .brand-mark { color: var(--gold-soft); }

.primary-nav { display: flex; gap: 0.15rem; flex-wrap: wrap; }
.nav-link {
  color: var(--ink-soft); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.5rem 0.65rem; border-radius: 6px;
}
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.85); }
.site-header.scrolled .nav-link { color: rgba(255,255,255,0.82); }
.nav-link:hover, .nav-link.active { color: var(--gold-soft); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.site-header:not(.scrolled) .nav-toggle { color: #fff; }
.site-header.scrolled .nav-toggle { color: #fff; }

.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  padding: clamp(6rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 5rem);
}
.hero-slideshow { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.8s var(--ease), transform 8s ease-out;
  will-change: opacity, transform;
}
/* Slides that zoom IN: start enlarged, settle to normal while active */
.hero-slide--in { transform: scale(1.14); }
.hero-slide--in.is-active { opacity: 1; transform: scale(1); }
/* Slides that zoom OUT: start at normal, grow while active */
.hero-slide--out { transform: scale(1); }
.hero-slide--out.is-active { opacity: 1; transform: scale(1.14); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.5s linear; transform: none !important; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,20,0.92) 0%, rgba(6,14,20,0.45) 45%, rgba(6,14,20,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.hero-eyebrow { color: var(--gold-soft); letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.75rem; margin: 0 0 1rem; }
.hero-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.98; color: #fff; margin: 0 0 1rem; max-width: 12ch;
}
.hero-title--fade {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  animation: heroTitleFade 1.6s var(--ease) 0.35s forwards;
}
@keyframes heroTitleFade {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title--fade { animation: none; opacity: 1; transform: none; filter: none; }
}
.hero-sub { color: rgba(255,255,255,0.86); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 52ch; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-price { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.hero-price strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; font-weight: 600; margin-top: 0.2rem; }
.hero-meta { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin: 0.75rem 0 0; letter-spacing: 0.04em; }
/* Hero phone video — body-level layer so it stacks above the fixed header */
.hero-phone-layer {
  position: fixed; inset: 0; z-index: 250;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.hero-phone-layer.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-phone-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: default;
}
.hero-phone-layer.is-active .hero-phone-backdrop {
  background: rgba(4,10,14,0.88); cursor: pointer;
}
.hero-phone {
  position: absolute;
  right: max(1.5rem, calc(50vw - var(--maxw) / 2 + 1.5rem));
  bottom: clamp(2rem, 8vh, 5rem);
  width: clamp(280px, 27vw, 360px);
  aspect-ratio: 9 / 17.5;
  z-index: 2;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}
.hero-phone-layer.is-active .hero-phone {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.hero-phone__frame {
  position: absolute; inset: 0;
  background: #0b0b0d;
  border: 2px solid #232329;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 36px 80px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.hero-phone__frame::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 18px; background: #0b0b0d; border-radius: 0 0 14px 14px; z-index: 2;
}
.hero-phone__video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #000;
  display: block;
}
.hero-phone__close {
  position: absolute; top: -14px; right: -14px; z-index: 5;
  min-width: 44px; height: 44px; padding: 0 0.9rem; border-radius: 999px;
  border: 0; cursor: pointer;
  background: var(--gold); color: #1a1206;
  font-size: 1.2rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  display: grid; place-items: center;
}
.hero-phone__close-label { display: none; }
.hero-phone__close-x { font-size: 1.2rem; line-height: 1; }
.hero-phone__close:hover { background: var(--gold-soft); }
@media (min-width: 901px) {
  .hero-phone-layer.is-active .hero-phone-backdrop { background: transparent; pointer-events: none; }
}
@media (max-width: 900px) {
  .hero-phone {
    right: auto; bottom: auto;
    top: 50%; left: 50%;
    width: min(82vw, 340px);
    transform: translate(-50%, -46%) scale(0.94);
  }
  .hero-phone-layer.is-active .hero-phone { transform: translate(-50%, -50%) scale(1); }
  .hero-phone__close {
    top: auto; bottom: -3.5rem; right: auto; left: 50%;
    transform: translateX(-50%);
    min-width: 8.5rem; height: 48px;
  }
  .hero-phone__close-x { display: none; }
  .hero-phone__close-label {
    display: inline; font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
  }
}
body.phone-open { overflow: hidden; }
body.phone-open .site-header { z-index: 90; }
body.phone-open .primary-nav.open { visibility: hidden; pointer-events: none; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 28px; height: 44px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 10px; width: 4px; height: 8px; margin-left: -2px;
  background: rgba(255,255,255,0.7); border-radius: 999px; animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } }

.section-story { position: relative; overflow: hidden; }
.section-story__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.20;
  pointer-events: none;
}
.section-story__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, transparent 25%, transparent 75%, var(--cream) 100%);
}
.section-story .container { position: relative; z-index: 1; }

/* Story side column: stat cards above, photo stack below */
.story-side { display: flex; flex-direction: column; gap: 1.5rem; }

/* Story photo stack — large alternating overlap, opens to a 2-per-row grid on hover.
   --card: fixed card height so positions are deterministic at any column width.
   Grid columns/gap match the stat cards above (2 columns, 1rem gap). */
.story-stack {
  --card: 160px;
  --gap: 1rem;
  position: relative;
  width: 100%;
  margin: 0.5rem 0 0;
  height: calc(var(--card) * 3 + var(--gap) * 2 + 40px);
  transition: height 0.6s var(--ease);
}
.story-stack__item {
  position: absolute;
  width: 64%;
  height: var(--card);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 4px solid #fff;
  box-shadow: 0 16px 36px rgba(8,20,28,0.3);
  cursor: pointer;
  transition: transform 0.6s var(--ease), top 0.6s var(--ease), left 0.6s var(--ease), width 0.6s var(--ease), opacity 0.5s var(--ease), box-shadow 0.4s var(--ease);
  transform-origin: center;
}
.story-stack__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Stacked (default) — first four zig-zag left/right with ~25% overlap */
.story-stack__item--1 { left: 2%;  top: 0;                          z-index: 1; transform: rotate(-5deg); }
.story-stack__item--2 { left: 34%; top: calc(var(--card) * 0.75);   z-index: 2; transform: rotate(4deg); }
.story-stack__item--3 { left: 2%;  top: calc(var(--card) * 1.5);    z-index: 3; transform: rotate(-4deg); }
.story-stack__item--4 { left: 34%; top: calc(var(--card) * 2.25);   z-index: 4; transform: rotate(5deg); }
/* Extra photos (18, 24) are hidden until the grid view */
.story-stack__item--extra { opacity: 0; pointer-events: none; left: 17%; top: calc(var(--card) * 1.5); transform: scale(0.85); }
/* Hover — full-width 2-column grid (matches the stat cards' width) */
.story-stack:hover,
.story-stack:focus-within { height: calc(var(--card) * 3 + var(--gap) * 2); }
.story-stack:hover .story-stack__item,
.story-stack:focus-within .story-stack__item {
  width: calc(50% - var(--gap) / 2);
  transform: rotate(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.story-stack:hover .story-stack__item--1,
.story-stack:focus-within .story-stack__item--1 { left: 0; top: 0; }
.story-stack:hover .story-stack__item--2,
.story-stack:focus-within .story-stack__item--2 { left: calc(50% + var(--gap) / 2); top: 0; }
.story-stack:hover .story-stack__item--3,
.story-stack:focus-within .story-stack__item--3 { left: 0; top: calc(var(--card) + var(--gap)); }
.story-stack:hover .story-stack__item--4,
.story-stack:focus-within .story-stack__item--4 { left: calc(50% + var(--gap) / 2); top: calc(var(--card) + var(--gap)); }
.story-stack:hover .story-stack__item--5,
.story-stack:focus-within .story-stack__item--5 { left: 0; top: calc(var(--card) * 2 + var(--gap) * 2); }
.story-stack:hover .story-stack__item--6,
.story-stack:focus-within .story-stack__item--6 { left: calc(50% + var(--gap) / 2); top: calc(var(--card) * 2 + var(--gap) * 2); }
.story-stack__item:hover { box-shadow: 0 20px 44px rgba(8,20,28,0.42); }
@media (hover: none), (max-width: 720px) {
  .story-stack {
    height: auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap);
  }
  .story-stack__item {
    position: static; width: auto !important; height: var(--card);
    opacity: 1 !important; pointer-events: auto !important;
    transform: none !important; top: auto !important; left: auto !important;
  }
}

.story-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.highlight-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.highlight-list li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.75rem; color: var(--ink-soft);
}
.highlight-list li::before {
  content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}

.story-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-value {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600;
  color: var(--ocean); line-height: 1.1;
}
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.35rem; }

.section-estate { background: var(--cream-2); }
.estate-title { line-height: 1.04; }
.estate-title__accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.feature-num { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; }
.feature-card h3 { font-family: var(--serif); font-size: 1.45rem; margin: 0.5rem 0 0.65rem; color: var(--ink); }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: row dense;
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--cream-2);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(8,20,28,0.45) 0%, rgba(8,20,28,0.05) 45%, transparent 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay { opacity: 1; }
.gallery-item__icon {
  width: 46px; height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9); color: var(--ocean-dark);
  transform: scale(0.8); transition: transform 0.4s var(--ease);
  box-shadow: 0 6px 18px rgba(8,20,28,0.25);
}
.gallery-item__icon svg { width: 20px; height: 20px; }
.gallery-item:hover .gallery-item__icon { transform: scale(1); }
.gallery-more { text-align: center; margin-top: 2.5rem; }

.section-film {
  position: relative; background-size: cover; background-position: center;
  min-height: 420px; display: flex; align-items: center; overflow: hidden;
}
.film-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.film-overlay {
  position: absolute; inset: 0; background: rgba(8, 20, 28, 0.72); z-index: 1;
}
.film-content { position: relative; z-index: 2; text-align: center; }
.film-lead { margin-left: auto; margin-right: auto; }
.film-play { margin-top: 1.75rem; }
.film-download { display: block; margin-top: 1rem; color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.film-download:hover { color: #fff; }

.section-location { position: relative; overflow: hidden; }
.section-location__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.20;
  pointer-events: none;
}
.section-location__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, transparent 25%, transparent 75%, var(--cream) 100%);
}
.section-location .container { position: relative; z-index: 1; }
.location-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3rem); align-items: center;
}
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.check-list li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--ink-soft);
}
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ocean); font-weight: 700; }
.location-map {
  position: relative;
  border-radius: var(--radius);
  padding: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 30%, #fff6e2 50%, var(--gold-soft) 70%, var(--gold) 100%);
  background-size: 260% 260%;
  box-shadow: var(--shadow);
  animation: mapGoldFade 5s ease-in-out infinite;
}
.location-map::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.location-map iframe {
  display: block; width: 100%; height: min(420px, 55vw);
  border: 0; border-radius: calc(var(--radius) - 6px);
}
@keyframes mapGoldFade {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .location-map { animation: none; }
}

.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 0 auto 2rem;
}
.team-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.team-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 999px; }
.team-body h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 0.25rem; }
.team-title, .team-brokerage { margin: 0; font-size: 0.88rem; color: var(--muted); }
.team-links { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.75rem; font-size: 0.9rem; }
.contact-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.72); padding: 2.5rem 0;
  font-size: 0.88rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.footer-mls { max-width: 52ch; margin-top: 0.75rem; font-size: 0.78rem; line-height: 1.5; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.72); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-llms { margin-left: 0.5rem; opacity: 0.7; font-size: 0.82rem; }
.footer-llms a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-llms a:hover { opacity: 1; color: var(--gold); }
.footer-logos { display: flex; align-items: center; gap: 1.5rem; }
.footer-logo { height: 128px; width: auto; object-fit: contain; }
.footer-logo--white { filter: brightness(0) invert(1); }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 70;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: var(--ocean); color: #fff; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); box-shadow: var(--shadow-sm);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

.lightbox, .video-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,10,14,0.94);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.lightbox.open, .video-modal.open { opacity: 1; pointer-events: auto; }
.lb-figure { margin: 0; max-width: min(1200px, 100%); width: 100%; text-align: center; }
.lb-figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.lb-figure figcaption { color: rgba(255,255,255,0.7); margin-top: 0.75rem; font-size: 0.9rem; }
.lb-count { color: rgba(255,255,255,0.45); font-size: 0.82rem; margin: 0.35rem 0 0; }
.lb-btn, .vm-close {
  position: absolute; border: 0; background: rgba(255,255,255,0.12); color: #fff;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 1.5rem;
}
.lb-close, .vm-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.video-modal video { width: min(1100px, 100%); max-height: 85vh; border-radius: 10px; background: #000; }
.vm-fallback { color: rgba(255,255,255,0.7); text-align: center; max-width: 40ch; margin-top: 1rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .story-grid, .location-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item--feature { grid-column: span 2; grid-row: span 2; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: fixed; inset: 64px 0 auto 0;
    background: linear-gradient(180deg, rgba(10,24,32,0.97) 0%, rgba(8,20,28,0.99) 100%);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid rgba(184,149,106,0.28);
    flex-direction: column; padding: 1rem 1.5rem 1.5rem; transform: translateY(-120%);
    transition: transform 0.35s var(--ease); box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav .nav-link { color: rgba(255,255,255,0.9); }
  .primary-nav .nav-link:hover,
  .primary-nav .nav-link.active { color: var(--gold-soft); background: rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery-item--feature { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-card img { margin: 0 auto; }
}
