/* =========================================================
   Haasendal brochure — shared stylesheet (3.4b, Greystone-derived)
   ========================================================= */

:root {
  /* Palette tokens — primary values come from the shell's inline <style>.
     Each Greystone-era var name now aliases a palette token with a
     Greystone-colored fallback, so devs that don't override them stay
     visually close to Greystone while not disturbing its exact look. */
  --charcoal: var(--bg, #1C1C1E);
  --charcoal-2: var(--bg-2, #242426);
  /* Note: --ink comes directly from the shell's inline :root. DO NOT redeclare
     it here with a self-referencing var(--ink, …) — that creates a CSS
     custom-property cycle which resolves to "invalid at computed-value time"
     and nukes every rule that consumes it (contact title, agent card bg…). */

  --teal: var(--accent, #2AAFAF);
  --teal-dark: var(--accent-dark, #1E8A8A);
  --teal-glow: var(--accent-glow, rgba(42, 175, 175, 0.18));

  --cream: var(--fg, #F5F3EF);
  --cream-mute: var(--fg-mute, #E8E3D8);
  --stone-light: var(--fg-dim, #A8B2BD);

  /* Rarely-used shades — still Greystone-hardcoded; override with a per-dev
     styles.<slug>.css if a brochure needs a different value here. */
  --dark: #2C2C2E;
  --dark-warm: #33302E;
  --stone: #6B7B8D;
  --stone-dim: #4a5561;
  --cream-deep: #D4CDBC;

  --page-pad-x: clamp(1.5rem, 5vw, 6rem);
  --page-pad-y: clamp(3rem, 8vh, 7rem);
  --section-num-color: color-mix(in srgb, var(--accent) 75%, transparent);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--charcoal);
  color: var(--cream);
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  overscroll-behavior-y: none;
}
body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.005em;
  background: var(--charcoal);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }

::selection { background: var(--teal); color: var(--ink); }
html::-webkit-scrollbar { width: 0; }
html { scrollbar-width: none; }

.display { font-family: var(--font-display); font-weight: 400; font-style: italic; letter-spacing: -0.015em; line-height: 0.95; }
.eyebrow { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--section-num-color); }
.eyebrow .num { color: var(--teal); margin-right: 0.75em; font-variant-numeric: tabular-nums; }
.lede { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.35; color: var(--cream-mute); max-width: 48ch; }
.body-copy { font-size: clamp(0.98rem, 1.05vw, 1.05rem); line-height: 1.75; color: var(--stone-light); max-width: 58ch; font-weight: 300; }
.body-copy + .body-copy { margin-top: 1.1rem; }
.body-copy strong { color: var(--cream); font-weight: 500; }

.page {
  scroll-snap-align: start; scroll-snap-stop: always;
  min-height: 100vh; height: 100vh; width: 100%;
  position: relative; display: flex; flex-direction: column;
  padding: var(--page-pad-y) var(--page-pad-x);
  overflow: hidden;
}
@media (max-width: 720px) { .page { height: auto; min-height: 100svh; padding: 4.5rem 1.25rem; } }

.rail {
  position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 0.9rem; padding: 0.5rem;
}
.rail a { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.22); transition: all 0.4s var(--ease-out); position: relative; display: block; }
.rail a[data-label]::before {
  content: attr(data-label); position: absolute; right: calc(100% + 0.9rem); top: 50%;
  transform: translateY(-50%) translateX(0.5rem); opacity: 0; white-space: nowrap;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); transition: all 0.3s var(--ease-out); pointer-events: none;
  background: rgba(28, 28, 30, 0.85); padding: 0.35rem 0.7rem; border-radius: 3px; backdrop-filter: blur(10px);
}
.rail a:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }
.rail a:hover { background: var(--cream); }
.rail a.current { background: var(--teal); width: 10px; height: 10px; box-shadow: 0 0 20px var(--teal-glow); }
@media (max-width: 720px) { .rail { display: none; } }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(28,28,30,0.85) 0%, rgba(28,28,30,0) 100%);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-brand { display: flex; align-items: center; gap: 0.85rem; color: var(--cream); }
.topbar-brand .wordmark { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--cream); line-height: 1; }
.topbar-brand .sep { opacity: 0.35; }
.topbar-brand .doc-type { font-family: var(--font-body); font-style: normal; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone-light); }
.topbar-actions { display: inline-flex; align-items: center; gap: 0.55rem; }
.topbar-cta, .topbar-pdf {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream); border: 1px solid rgba(245,243,239,0.3); border-radius: 3px;
  transition: all 0.3s var(--ease-out); backdrop-filter: blur(10px);
  background: rgba(28, 28, 30, 0.35); cursor: pointer; font-family: inherit;
}
.topbar-cta:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.topbar-pdf svg { width: 15px; height: 15px; flex-shrink: 0; }
.topbar-pdf:hover { background: rgba(245,243,239,0.08); border-color: var(--cream); color: var(--cream); }
@media (max-width: 720px) { .topbar-pdf span { display: none; } .topbar-pdf { padding: 0.55rem 0.75rem; } }
@media (max-width: 600px) { .topbar-brand .doc-type, .topbar-brand .sep { display: none; } .topbar-cta { padding: 0.5rem 0.9rem; font-size: 0.68rem; } }

/* COVER */
.page-cover { padding: 0; color: var(--cream); }
.cover-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cover-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenBurns 24s ease-in-out infinite alternate; will-change: transform; }
.cover-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,16,0.55) 0%, rgba(14,14,16,0.15) 35%, rgba(14,14,16,0.85) 100%), linear-gradient(100deg, rgba(14,14,16,0.55) 0%, rgba(14,14,16,0) 55%);
}
@keyframes kenBurns { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.14) translate(-2%, -1%); } }
.cover-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(2rem, 6vh, 4rem) var(--page-pad-x);
}
.cover-top { display: flex; align-items: center; gap: 1rem; }
.cover-top .wordmark { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.4rem); letter-spacing: 0.01em; color: var(--cream); line-height: 1; }
.cover-top .tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-mute); padding-left: 1rem; border-left: 1px solid rgba(245,243,239,0.3); }
.cover-title { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(4.5rem, 13vw, 11rem); line-height: 0.92; letter-spacing: -0.02em; color: var(--cream); }
.cover-title .grey,
.cover-title .silver,
.cover-title .bossen { font-style: normal; font-weight: 400; }
.cover-title .stone,
.cover-title .zicht,
.cover-title .views { color: var(--teal); font-style: italic; }
.cover-block { max-width: 680px; }
.cover-rule { display: block; width: 52px; height: 1px; background: var(--teal); margin: 1.5rem 0 1.25rem; }
.cover-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--cream-mute); line-height: 1.4; max-width: 34ch; }
.cover-meta { display: flex; gap: clamp(2rem, 5vw, 4.5rem); align-items: flex-end; flex-wrap: wrap; }
.cover-stat { display: flex; flex-direction: column; gap: 0.35rem; }
.cover-stat .label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone-light); }
.cover-stat .value { font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1; color: var(--cream); }
.cover-stat .value.accent { color: var(--teal); }
.cover-scroll { position: absolute; right: clamp(1.5rem, 4vw, 3rem); bottom: clamp(1.5rem, 4vh, 2.5rem); display: flex; flex-direction: column; align-items: center; gap: 0.65rem; opacity: 0.85; }
.cover-scroll .line { width: 1px; height: 46px; background: linear-gradient(180deg, rgba(245,243,239,0.7) 0%, rgba(245,243,239,0.05) 100%); animation: scrollPulse 2.2s ease-in-out infinite; transform-origin: top; }
.cover-scroll .txt { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream-mute); writing-mode: vertical-rl; transform: rotate(180deg); }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(1); opacity: 0.8; } 50% { transform: scaleY(1.3); opacity: 1; } }
@media (max-width: 720px) { .cover-title { font-size: clamp(3.5rem, 16vw, 5.5rem); } .cover-scroll { display: none; } }

/* SECTION HEADERS */
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); max-width: 820px; }
.section-title { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(2.75rem, 6.5vw, 5.25rem); line-height: 0.98; letter-spacing: -0.015em; color: var(--cream); }
.section-title .roman { font-style: normal; font-weight: 300; }
.section-title em, .section-title .teal { font-style: italic; color: var(--teal); }

/* DEVELOPMENT (intro) */
.page-intro, .page-development {
  background: radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 55%), var(--charcoal);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.page-intro .about-copy, .page-development .about-copy { display: flex; flex-direction: column; }
.page-intro .feature-grid, .page-development .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; max-width: 520px; }
.feature-card { border: 1px solid rgba(168,178,189,0.18); border-radius: 4px; padding: 1.1rem 1.25rem; background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 0.35rem; transition: all 0.4s var(--ease-out); }
.feature-card:hover { border-color: var(--teal); background: color-mix(in srgb, var(--accent) 4%, transparent); transform: translateY(-2px); }
.feature-card .ic { width: 22px; height: 22px; color: var(--teal); margin-bottom: 0.55rem; }
.feature-card h4 { font-size: 0.92rem; font-weight: 500; color: var(--cream); letter-spacing: 0.01em; }
.feature-card p { font-size: 0.82rem; color: var(--stone-light); font-weight: 300; }
.page-intro .about-imagery, .page-development .about-imagery { display: grid; grid-template-columns: 1fr 0.8fr; grid-template-rows: auto auto; gap: 0.85rem; height: 78vh; max-height: 640px; }
.page-intro .about-imagery figure, .page-development .about-imagery figure { overflow: hidden; border-radius: 2px; position: relative; }
.page-intro .about-imagery figure img, .page-development .about-imagery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.page-intro .about-imagery figure:hover img, .page-development .about-imagery figure:hover img { transform: scale(1.05); }
.page-intro .about-imagery .f-main, .page-development .about-imagery .f-main { grid-row: span 2; }
@media (max-width: 960px) {
  .page-intro, .page-development { grid-template-columns: 1fr; height: auto; min-height: 100svh; }
  .page-intro .about-imagery, .page-development .about-imagery { height: 50vh; max-height: 400px; }
}

/* INTRO — big-number stats row (Bossenzicht arch) */
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; padding: 1.75rem 0; border-top: 1px solid rgba(168,178,189,0.18); border-bottom: 1px solid rgba(168,178,189,0.18); max-width: 520px; }
.intro-stat { display: flex; flex-direction: column; gap: 0.4rem; }
.intro-stat .v { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--teal); }
.intro-stat .l { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone-light); font-weight: 500; }

/* ESTATE (feature_grid) */
.page-feature_grid, .page-estate { background: var(--ink); display: grid; grid-template-rows: auto 1fr; gap: 2.5rem; }
.estate-hero { position: relative; border-radius: 2px; overflow: hidden; min-height: 40vh; }
.estate-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.estate-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,16,0.75) 0%, rgba(14,14,16,0.2) 60%, rgba(14,14,16,0.6) 100%); }
.estate-hero-content { position: relative; z-index: 2; padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 40vh; }
.estate-hero-content .lede { max-width: 36ch; color: var(--cream); }
.estate-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.estate-feature { padding: 1.5rem 1.25rem; border-top: 1px solid rgba(168,178,189,0.18); display: flex; flex-direction: column; gap: 0.5rem; }
.estate-feature .ic { width: 26px; height: 26px; color: var(--teal); margin-bottom: 0.75rem; }
.estate-feature h4 { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; font-weight: 400; color: var(--cream); line-height: 1.1; }
.estate-feature p { font-size: 0.88rem; color: var(--stone-light); font-weight: 300; line-height: 1.55; }
@media (max-width: 960px) { .estate-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .estate-features { grid-template-columns: 1fr; } .estate-feature { border-top-width: 1px; padding: 1.1rem 0; } }

/* LIFESTYLE GALLERY */
.page-gallery, .page-lifestyle { background: var(--ink); padding: 0; }
.lifestyle-header, .gallery-header { position: absolute; top: clamp(4.5rem, 10vh, 7rem); left: var(--page-pad-x); z-index: 5; max-width: 540px; }
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 100%; width: 100%; gap: 2px; }
.gallery-grid figure { position: relative; overflow: hidden; }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease-out); }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,0.05) 0%, rgba(14,14,16,0.45) 100%); }
.gallery-grid figcaption { position: absolute; bottom: 1rem; left: 1.25rem; z-index: 2; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--cream); letter-spacing: 0.02em; }
.gallery-grid .g-main { grid-row: span 2; }
.gallery-grid .g-main::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,14,16,0.65) 0%, rgba(14,14,16,0.15) 40%, rgba(14,14,16,0) 100%); pointer-events: none; }
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
  .gallery-grid .g-main { grid-row: span 1; grid-column: span 2; }
  .lifestyle-header, .gallery-header { top: 4.5rem; left: 1.25rem; right: 1.25rem; }
}

/* HOUSE/UNIT TYPES */
.page-house_type, .page-unit_type, .page-home { background: var(--charcoal); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
.home-image { position: relative; border-radius: 2px; overflow: hidden; min-height: 55vh; }
.home-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-out); }
.home-image:hover img { transform: scale(1.04); }
.home-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,16,0) 60%, rgba(14,14,16,0.4) 100%); }
.home-image .tag { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); padding: 0.5rem 0.9rem; background: rgba(28,28,30,0.65); backdrop-filter: blur(8px); border: 1px solid rgba(245,243,239,0.2); border-radius: 3px; font-weight: 500; }
.home-copy { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.home-name { font-family: var(--font-display); font-style: italic; font-size: clamp(4rem, 10vw, 7.5rem); line-height: 0.9; letter-spacing: -0.02em; color: var(--cream); margin: 0.35rem 0 0.5rem; }
.home-name .num,
.home-name .accent { color: var(--teal); font-style: italic; }
.home-size { font-size: 0.92rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-light); font-weight: 500; }
.home-specs { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1.5rem; padding: 1.25rem 0; border-top: 1px solid rgba(168,178,189,0.18); border-bottom: 1px solid rgba(168,178,189,0.18); }
.home-spec { display: flex; flex-direction: column; gap: 0.3rem; }
.home-spec .val { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--cream); line-height: 1; }
.home-spec .lbl { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone-light); }
.home-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; margin-top: 0.5rem; }
.home-details li { font-size: 0.88rem; color: var(--stone-light); font-weight: 300; padding-left: 1rem; position: relative; line-height: 1.45; }
.home-details li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 1px; background: var(--teal); }
.home-price { margin-top: 1.75rem; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.home-price .from { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone-light); }
.home-price .amt { font-family: var(--font-display); font-style: italic; font-size: clamp(2.25rem, 5vw, 3.5rem); color: var(--cream); line-height: 1; }
.home-price .sub { font-size: 0.78rem; color: var(--stone-light); font-weight: 300; letter-spacing: 0.02em; width: 100%; margin-top: 0.4rem; }
.home-actions { margin-top: 1.75rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.35rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; border-radius: 2px; transition: all 0.3s var(--ease-out); }
.btn-primary { background: var(--teal); color: var(--ink); border: 1px solid var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); box-shadow: 0 12px 30px -10px var(--teal-glow); }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid rgba(245,243,239,0.3); }
.btn-outline:hover { border-color: var(--cream); background: rgba(245,243,239,0.05); }
.page-home.mirror, .page-house_type.mirror, .page-unit_type.mirror { grid-template-columns: 1.05fr 1fr; }
.page-home.mirror .home-image, .page-house_type.mirror .home-image, .page-unit_type.mirror .home-image { order: 2; }
.page-home.mirror .home-copy, .page-house_type.mirror .home-copy, .page-unit_type.mirror .home-copy { order: 1; }
@media (max-width: 960px) {
  .page-home, .page-home.mirror, .page-house_type, .page-house_type.mirror, .page-unit_type, .page-unit_type.mirror { grid-template-columns: 1fr; }
  .page-home.mirror .home-image, .page-home.mirror .home-copy { order: initial; }
  .home-image { min-height: 38vh; }
  .home-name { font-size: clamp(3rem, 14vw, 4.5rem); }
}

/* HOUSE TYPE CARDS (Bossenzicht / Silverstone style — grid of designs) */
.page-house_type_cards { background: var(--ink); display: flex; flex-direction: column; gap: 1.5rem; overflow: hidden; }
.types-head { display: flex; flex-direction: column; gap: 0.75rem; max-width: 820px; }
.types-head .lede { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--stone-light); font-style: normal; font-family: var(--font-body); }
.types-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; flex: 1; min-height: 0; max-height: 60vh; }
.type-card { display: flex; flex-direction: column; background: rgba(255,255,255,0.02); border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 3px; overflow: hidden; transition: all 0.35s var(--ease-out); color: var(--cream); min-height: 0; }
.type-card:hover { border-color: var(--teal); background: color-mix(in srgb, var(--accent) 4%, transparent); transform: translateY(-3px); box-shadow: 0 20px 40px -20px var(--teal-glow); }
.type-card .type-img { flex: 1; min-height: 0; overflow: hidden; background: #efeee8; display: flex; align-items: center; justify-content: center; padding: 0.5rem; }
.type-card .type-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease-out); }
.type-card:hover .type-img img { transform: scale(1.03); }
.type-meta { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 1rem; background: rgba(0,0,0,0.3); border-top: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }
.type-name { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-light); font-weight: 500; }
.type-size { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--cream); line-height: 1; }
.type-from { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.types-note { font-size: 0.8rem; color: var(--stone-light); font-weight: 300; letter-spacing: 0.02em; }
.types-note strong { color: var(--teal); font-weight: 500; }
@media (max-width: 1200px) { .types-grid { grid-template-columns: repeat(4, 1fr); max-height: 72vh; } }
@media (max-width: 960px)  { .types-grid { grid-template-columns: repeat(3, 1fr); max-height: none; } }
@media (max-width: 640px)  { .types-grid { grid-template-columns: repeat(2, 1fr); } }

/* FLOOR PLATE GRID (Silverviews style — 4 floor-plan cards) */
.page-plate_grid { background: var(--ink); display: flex; flex-direction: column; gap: 1.5rem; }
.plate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; flex: 1; min-height: 0; max-height: 60vh; }
.plate-card { display: flex; flex-direction: column; background: #fff; border: 1px solid color-mix(in srgb, var(--fg-dim, #94a3b8) 18%, transparent); border-radius: 8px; overflow: hidden; transition: all 0.35s var(--ease-out); color: var(--ink); min-height: 0; }
.plate-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 20px 40px -20px var(--teal-glow); }
.plate-img { flex: 1; min-height: 0; overflow: hidden; background: #fafafa; display: flex; align-items: center; justify-content: center; padding: 0.5rem; }
.plate-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease-out); }
.plate-card:hover .plate-img img { transform: scale(1.03); }
.plate-meta { padding: 0.85rem 1.15rem; background: var(--ink); color: var(--cream); border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.plate-name { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--cream); line-height: 1; }
.plate-sub { display: block; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin-top: 0.3rem; }
.plate-extra { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 960px) { .plate-grid { grid-template-columns: repeat(2, 1fr); max-height: none; } }

/* SITE PLAN */
.page-site_plan, .page-siteplan { background: var(--ink); padding: 0; display: flex; flex-direction: column; }
.siteplan-head { position: absolute; top: clamp(4.5rem, 10vh, 7rem); left: var(--page-pad-x); right: var(--page-pad-x); z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; pointer-events: none; }
.siteplan-head > * { pointer-events: auto; }
.siteplan-viewer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 50%), var(--ink); cursor: grab; user-select: none; touch-action: none; }
.siteplan-viewer.dragging { cursor: grabbing; }
.siteplan-viewer img { max-width: min(88vw, 88vh * 1.6); max-height: 82vh; transform-origin: center; transition: transform 0.3s var(--ease-out); will-change: transform; pointer-events: none; }
.siteplan-viewer.is-zoomed img { transition: none; }
.siteplan-controls { position: absolute; bottom: clamp(1.5rem, 4vh, 2.5rem); left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; background: rgba(28,28,30,0.8); backdrop-filter: blur(12px); padding: 0.35rem; border-radius: 999px; border: 1px solid rgba(245,243,239,0.12); z-index: 4; }
.siteplan-controls button { width: 38px; height: 38px; border-radius: 999px; color: var(--cream); font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; transition: background 0.25s ease; }
.siteplan-controls button:hover { background: rgba(245,243,239,0.1); }
.siteplan-controls .dl { padding: 0 1.1rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; width: auto; }

/* AVAILABILITY */
.page-availability { background: var(--charcoal); display: flex; flex-direction: column; gap: 1.5rem; overflow: hidden; }
.avail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid rgba(168,178,189,0.18); border-bottom: 1px solid rgba(168,178,189,0.18); }
.avail-stat { display: flex; flex-direction: column; gap: 0.35rem; }
.avail-stat .val { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--cream); }
.avail-stat .val.accent { color: var(--teal); }
.avail-stat .lbl { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone-light); }
.avail-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.avail-filter .lbl { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone-light); margin-right: 0.5rem; }
.chip { padding: 0.5rem 1rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; background: transparent; border: 1px solid rgba(168,178,189,0.28); color: var(--stone-light); border-radius: 999px; transition: all 0.25s ease; }
.chip:hover { color: var(--cream); border-color: var(--cream); }
.chip.active { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.avail-table-wrap { flex: 1; overflow: auto; border: 1px solid rgba(168,178,189,0.15); border-radius: 3px; background: rgba(255,255,255,0.015); }
.avail-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.avail-table thead { position: sticky; top: 0; background: var(--charcoal-2); z-index: 2; }
.avail-table th { text-align: left; padding: 0.95rem 1rem; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone-light); font-weight: 500; border-bottom: 1px solid rgba(168,178,189,0.18); white-space: nowrap; }
.avail-table td { padding: 0.95rem 1rem; font-size: 0.92rem; color: var(--cream); font-weight: 300; border-bottom: 1px solid rgba(168,178,189,0.08); }
.avail-table tbody tr { transition: background 0.2s ease; }
.avail-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.avail-table .plot { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--teal); font-weight: 500; }
.avail-table .addr { color: var(--cream-mute); font-weight: 400; }
.avail-table .size { color: var(--stone-light); }
.avail-table .price { color: var(--cream); font-weight: 400; }
.avail-table .price-best { color: var(--cream); font-weight: 500; }
.avail-empty { padding: 3rem 1.5rem; text-align: center; color: var(--stone-light); font-style: italic; font-family: var(--font-display); font-size: 1.3rem; }
.avail-loading { padding: 3rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--stone-light); font-size: 0.9rem; }
.spinner { width: 18px; height: 18px; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--teal); border-radius: 999px; animation: spin 0.85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avail-note { font-size: 0.75rem; color: var(--stone); font-weight: 300; letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.5rem; }
.avail-note .pulse { width: 7px; height: 7px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 12px var(--teal-glow); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
@media (max-width: 720px) {
  .avail-stats { grid-template-columns: 1fr 1fr; }
  .avail-table thead { display: none; }
  .avail-table, .avail-table tbody, .avail-table tr, .avail-table td { display: block; width: 100%; }
  .avail-table tr { padding: 0.75rem 0.9rem; border-bottom: 1px solid rgba(168,178,189,0.12); }
  .avail-table td { padding: 0.25rem 0; border: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; }
  .avail-table td::before { content: attr(data-label); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-light); font-weight: 500; margin-right: 1rem; }
  .avail-table .plot { font-size: 1.2rem; padding-bottom: 0.35rem; }
  .avail-table .plot::before { content: none; }
}

/* CONTACT */
.page-contact { background: var(--cream); color: var(--ink); display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-contact .eyebrow { color: var(--teal-dark); }
.page-contact .section-head { margin-bottom: 0; }
.contact-title { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.015em; color: var(--ink); margin-top: 0.75rem; }
.contact-title em, .contact-title .teal { font-style: italic; color: var(--teal-dark); }
.contact-lede { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); color: #4a4a4e; margin-top: 1.25rem; max-width: 34ch; line-height: 1.45; }
.contact-ways { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.1rem; max-width: 440px; }
.contact-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid rgba(28,28,30,0.08); border-radius: 3px; transition: all 0.3s var(--ease-out); color: var(--ink); }
.contact-row:hover { border-color: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(28,28,30,0.2); }
.contact-row .ic { width: 22px; height: 22px; color: var(--teal-dark); flex-shrink: 0; }
.contact-row .info { display: flex; flex-direction: column; gap: 0.1rem; }
.contact-row .info .lbl { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: #6b6b70; font-weight: 500; }
.contact-row .info .val { font-size: 1rem; color: var(--ink); font-weight: 400; }
.contact-actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.contact-actions .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.contact-actions .btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--cream); }
.contact-actions .btn-outline { color: var(--ink); border-color: rgba(28,28,30,0.25); }
.contact-actions .btn-outline:hover { background: rgba(28,28,30,0.04); border-color: var(--ink); }

.agent-card { background: var(--ink); color: var(--cream); padding: clamp(2rem, 3.5vw, 3rem); border-radius: 3px; display: flex; flex-direction: column; gap: 1.5rem; position: relative; overflow: hidden; }
.agent-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 55%); pointer-events: none; }
.agent-card > * { position: relative; z-index: 1; }
.agent-card .role { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone-light); font-weight: 500; }
.agent-card .name { font-family: var(--font-display); font-style: italic; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 0.95; margin-top: 0.5rem; color: var(--cream); }
.agent-card .team-line { font-size: 0.92rem; color: var(--stone-light); font-weight: 300; margin-top: 0.25rem; }
.agent-card .logos { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(245,243,239,0.12); }
.agent-card .logo-chip { background: #fff; padding: 0.85rem 1.25rem; border-radius: 3px; display: inline-flex; align-items: center; }
.agent-card .logo-chip img { height: 56px; width: auto; display: block; }
.agent-card .qr-share { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--cream); border-radius: 3px; margin-top: 0.25rem; color: var(--ink); }
.agent-card .qr-share img { width: 112px; height: 112px; flex-shrink: 0; display: block; border-radius: 2px; }
.agent-card .qr-text { display: flex; flex-direction: column; gap: 0.35rem; }
.agent-card .qr-label { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1; color: var(--ink); }
.agent-card .qr-sub { font-size: 0.8rem; color: #55555a; line-height: 1.5; font-weight: 300; }
@media (max-width: 480px) { .agent-card .qr-share { flex-direction: row; align-items: center; } .agent-card .qr-share img { width: 96px; height: 96px; } .agent-card .qr-sub { font-size: 0.75rem; } }
.agent-card .whatsapp-big { display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 1.35rem; background: var(--teal); color: var(--ink); border-radius: 2px; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; transition: all 0.3s var(--ease-out); align-self: flex-start; }
.agent-card .whatsapp-big:hover { background: var(--cream); transform: translateY(-2px); }
.agent-card .whatsapp-big svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .page-contact { grid-template-columns: 1fr; } }

/* Brochure disclaimer — shown at the end of the document on web + PDF. */
.brochure-disclaimer {
  background: var(--ink);
  color: color-mix(in srgb, var(--cream) 60%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--cream) 10%, transparent);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.72rem;
  line-height: 1.55;
  font-weight: 300;
}
.brochure-disclaimer .disclaimer-inner { max-width: 920px; margin: 0 auto; }
.brochure-disclaimer strong { color: var(--cream); font-weight: 500; }
.brochure-disclaimer p + p { margin-top: 0.5rem; }
@media print {
  .brochure-disclaimer { break-before: page; background: #fff; color: #111; border-top: 1px solid #ccc; padding: 2rem 1.5rem; }
  .brochure-disclaimer strong { color: #000; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .cover-bg img { transition: none; animation: none; transform: none; opacity: 1; }
  .cover-scroll .line { animation: none; }
}

/* PDF render path: headless Chrome prints the whole document at once, so the
   IntersectionObserver only fires for the initial viewport (cover). Force every
   .reveal element visible under print so interior pages aren't blank. */
@media print {
  .reveal, .cover-bg img { opacity: 1 !important; transform: none !important; }
}
