/* ================================================
   ZELGLI SEEWEN — Premium Real Estate
   Cinematic Design System
   ================================================ */

:root {
  --bg: #F8F6F3;
  --bg-alt: #EFECE7;
  --bg-soft: #F3F0EB;
  --bg-dark: #141210;
  --bg-dark-alt: #1C1A17;
  --text: #1E1C1A;
  --text-mid: #6B6560;
  --text-light: #9B9490;
  --accent: #A78B73;
  --accent-deep: #8C6E56;
  --accent-light: #C4AD98;
  --accent-soft: rgba(167,139,115,0.12);
  --white: #FFFFFF;
  --border: #E3DCD3;
  --border-strong: #D4CBC0;
  --success: #5a8a6a;
  --error: #b85450;

  --ff-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 80px;
  --container: 1400px;
  --gap: clamp(20px, 5vw, 80px);
  --section-py: clamp(100px, 12vw, 200px);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(30,28,26,0.04);
  --shadow-md: 0 8px 24px rgba(30,28,26,0.06);
  --shadow-lg: 0 24px 60px rgba(30,28,26,0.08);
  --shadow-xl: 0 32px 80px rgba(30,28,26,0.12);
  --shadow-accent: 0 16px 40px rgba(167,139,115,0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========== SKIP LINK (a11y) =========== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--bg-dark);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========== GLOBAL FOCUS =========== */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-padding-top: var(--header-h);
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section { padding: var(--section-py) 0; }

/* ================================================
   PRELOADER
   ================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader.done { pointer-events: none; }

.preloader-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.preloader-count {
  font-family: var(--ff-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.preloader-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-top: 1.5rem;
}

.preloader-bar {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 1.5rem auto 0;
  overflow: hidden;
  border-radius: 1px;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.1s linear;
}

.preloader-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ================================================
   CUSTOM CURSOR (desktop only)
   ================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

body.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .cursor { display: none; }
}
@media (pointer: coarse) {
  .cursor { display: none; }
}

/* ================================================
   HEADER / NAV — contextual theming
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

/* Glass/frosted bar when scrolled */
.header.scrolled {
  background: rgba(248,246,243,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(30,28,26,0.04), 0 8px 24px rgba(30,28,26,0.04);
  border-bottom-color: rgba(30,28,26,0.04);
}

/* Soft gradient for legibility of WHITE text on hero */
.header.over-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s;
}

.header.scrolled.over-hero::before,
.header:not(.over-hero)::before { opacity: 0; }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}
.logo:hover { transform: translateX(-2px); }

.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: color 0.4s;
}
.logo-mark svg { width: 100%; height: 100%; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.logo-main {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text);
  transition: color 0.4s;
}

.logo-sub {
  font-family: var(--ff-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.4s;
}

/* OVER HERO (not scrolled) → light */
.header.over-hero:not(.scrolled) .logo-main { color: var(--white); }
.header.over-hero:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.65); }
.header.over-hero:not(.scrolled) .logo-mark { color: var(--accent-light); }
.header.over-hero:not(.scrolled) .nav-desktop a { color: rgba(255,255,255,0.92); }
.header.over-hero:not(.scrolled) .menu-btn-lines span { background: var(--white); }

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.2rem);
}

.nav-desktop a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
  padding: 6px 0;
}

.nav-desktop a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}

.nav-desktop a:not(.nav-cta):hover::after { width: 100%; }

/* Nav CTA button */
.nav-cta {
  padding: 0.55rem 1.1rem !important;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white) !important;
  transform: translateY(-2px);
}
.header.over-hero:not(.scrolled) .nav-cta {
  border-color: rgba(255,255,255,0.6);
}
.header.over-hero:not(.scrolled) .nav-cta:hover {
  background: var(--white);
  color: var(--text) !important;
  border-color: var(--white);
}

/* Menu button */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  z-index: 101;
  border-radius: 50%;
  transition: background 0.3s;
}
.menu-btn:hover { background: rgba(30,28,26,0.05); }
.header.over-hero:not(.scrolled) .menu-btn:hover { background: rgba(255,255,255,0.1); }

.menu-btn-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 22px;
}

.menu-btn-lines span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.3s, width 0.3s;
  transform-origin: center;
}
.menu-btn-lines span:last-child { width: 70%; margin-left: auto; }
.menu-btn:hover .menu-btn-lines span:last-child { width: 100%; }

.menu-btn.active .menu-btn-lines span:first-child {
  transform: translateY(4.25px) rotate(45deg);
  background: var(--white) !important;
}
.menu-btn.active .menu-btn-lines span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
  background: var(--white) !important;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background:
    radial-gradient(ellipse at top right, rgba(167,139,115,0.15) 0%, transparent 50%),
    var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s var(--ease-out);
}

.mobile-nav.open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
}

.mobile-nav-inner {
  text-align: center;
  padding: 0 1.5rem;
}

.mobile-nav-link {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  padding: 0.35em 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out), color 0.3s;
  position: relative;
  letter-spacing: 0.01em;
}

.mobile-nav-link:hover {
  color: var(--accent-light);
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2em;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease-out);
}

.mobile-nav-link:hover::after {
  width: 40%;
}

.mobile-nav.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 0.35s; }
.mobile-nav.open .mobile-nav-link:nth-child(5) { transition-delay: 0.4s; }
.mobile-nav.open .mobile-nav-link:nth-child(6) { transition-delay: 0.45s; }
.mobile-nav.open .mobile-nav-link:nth-child(7) { transition-delay: 0.5s; }
.mobile-nav.open .mobile-nav-link:nth-child(8) { transition-delay: 0.55s; }

.mobile-nav-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.5s 0.5s;
}
.mobile-nav.open .mobile-nav-footer { opacity: 1; }

.mobile-nav-footer p {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-btn { display: flex; }
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(167,139,115,0.15);
}

.heading-lg {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.body-text {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.85;
  color: var(--text-mid);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 6rem);
}

.section-head .label {
  margin-bottom: 1.25rem;
}

.section-head .heading-lg {
  max-width: 900px;
  margin: 0 auto;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img-wrap {
  width: 100%;
  height: 100%;
  clip-path: inset(0);
}

.hero-img-wrap img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20,18,16,0.55) 0%,
      rgba(20,18,16,0.15) 30%,
      rgba(20,18,16,0.35) 65%,
      rgba(20,18,16,0.85) 100%
    );
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0,0,0,0.25) 100%);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gap);
  padding-bottom: clamp(50px, 7vh, 100px);
  max-width: var(--container);
  margin: 0 auto;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(196,173,152,0.22), 0 0 0 8px rgba(196,173,152,0.1);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196,173,152,0.22), 0 0 0 8px rgba(196,173,152,0.1); }
  50% { box-shadow: 0 0 0 6px rgba(196,173,152,0.28), 0 0 0 14px rgba(196,173,152,0.0); }
}

.hero-tag .line-reveal span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
}

.line-wrap {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
  transform: translateY(110%);
}

.line-reveal {
  overflow: hidden;
  display: inline-block;
}

.line-reveal > span {
  display: inline-block;
  transform: translateY(110%);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-bottom-left {
  max-width: 680px;
  flex: 1 1 420px;
}

.hero-desc {
  margin-bottom: 1.75rem;
}
.hero-desc span {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
}

/* =============== BUTTON SYSTEM =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.8rem;
  min-height: 52px;
  font-family: var(--ff-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.btn:focus-visible { outline-offset: 4px; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.4s var(--ease-out); }

.btn-label { position: relative; z-index: 1; line-height: 1; }
.btn-arrow { transition: transform 0.4s var(--ease-out); }

/* Shine sweep */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before { left: 150%; }

/* Primary — filled accent */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(140,110,86,0.45);
}
.btn-primary:hover .btn-arrow { transform: translateX(5px); }

/* Ghost / Secondary — outlined transparent */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost:hover svg { transform: translateY(2px); }

/* Dark-bg ghost variant (on light section) */
.btn-ghost-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost-dark:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* Hero specific spacing */
.hero-btn-primary,
.hero-btn-secondary { flex: 0 1 auto; }

.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  align-self: flex-end;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  top: -8px;
  left: -1px;
  width: 3px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 2.5s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: -8px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 50px; opacity: 0; }
}

/* ================================================
   INTRO
   ================================================ */
.intro { padding-top: var(--section-py); padding-bottom: calc(var(--section-py) * 0.6); }

.intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}

.intro-right { padding-top: 0.5rem; }

.intro-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 2rem;
  transform-origin: left;
}

.intro-right .body-text { margin-bottom: 1.5rem; }

/* ================================================
   NUMBERS
   ================================================ */
.numbers { padding-top: 0; padding-bottom: var(--section-py); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  position: relative;
}

.numbers-grid::before,
.numbers-grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.2;
}
.numbers-grid::before { top: -1px; }
.numbers-grid::after { bottom: -1px; }

.number-item {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.number-item + .number-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.number-value {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.number-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .number-item:nth-child(3)::before { display: none; }
}
@media (max-width: 600px) {
  .number-item::before { display: none !important; }
}

/* ================================================
   PROJECT OVERVIEW
   ================================================ */
.project-overview {
  background: var(--white);
}

.project-overview-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.project-overview-copy .body-text + .body-text {
  margin-top: 1.5rem;
}

.project-overview-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.overview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(167,139,115,0.35);
}

.overview-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.overview-card strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.overview-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.overview-revised {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-style: italic;
}

/* ================================================
   HIGHLIGHTS
   ================================================ */
.highlights { background: var(--bg-alt); }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.highlight-item {
  background: var(--bg-alt);
  padding: clamp(2rem, 3vw, 3.5rem);
  transition: background 0.4s, transform 0.4s var(--ease-out);
  position: relative;
}

.highlight-item:hover {
  background: var(--white);
  z-index: 2;
}

.highlight-icon {
  width: 54px;
  height: 54px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform 0.5s var(--ease-out), background 0.4s;
}

.highlight-item:hover .highlight-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(167,139,115,0.2);
}

.highlight-icon svg {
  width: 100%;
  height: 100%;
}

.highlight-item h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.highlight-item p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ================================================
   PARALLAX BANNER
   ================================================ */
.parallax-banner {
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}

.parallax-img-wrap {
  position: absolute;
  inset: -20% 0;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ================================================
   LOCATION
   ================================================ */
.lage-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.lage-img-col { overflow: hidden; }

.img-reveal {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.5s var(--ease-out);
}
.img-reveal:hover { box-shadow: var(--shadow-xl); }

.img-reveal img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 6s ease;
}

.img-reveal:hover img { transform: scale(1.04); }

.lage-text-col .heading-lg { margin-bottom: 2rem; }
.lage-text-col .body-text { margin-bottom: 2.5rem; }

.facts-list { margin-top: 0; }

.fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s, padding-left 0.3s var(--ease-out);
}

.fact:hover {
  border-bottom-color: var(--accent);
  padding-left: 0.5rem;
}

.fact:first-child { border-top: 1px solid var(--border); }

.fact-key {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.fact-val {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
  text-align: right;
}

/* ================================================
   HOUSES (Horizontal Scroll with Pin)
   ================================================ */
.houses-section {
  background: var(--bg-dark);
  padding-top: var(--section-py);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.houses-section::before,
.terminplan-section::before,
.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(167,139,115,0.12), transparent 60%);
  pointer-events: none;
}

.houses-section .label { color: var(--accent-light); }
.houses-section .heading-lg { color: var(--white); }

.houses-scroller {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 4rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.houses-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.house-slide {
  width: 100vw;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  position: relative;
}

.house-slide-img {
  flex: 0 0 55%;
  overflow: hidden;
  position: relative;
}

.house-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 5rem);
  color: var(--white);
}

.house-slide-letter {
  font-family: var(--ff-serif);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(167,139,115,0.2);
  position: absolute;
  top: clamp(1rem, 3vw, 3rem);
  right: clamp(2rem, 4vw, 5rem);
}

.house-slide-name {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  color: var(--white);
}

.house-slide-details { margin-bottom: 2rem; }

.hsd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  transition: border-color 0.3s, padding-left 0.3s;
}

.hsd-row:hover {
  border-bottom-color: rgba(167,139,115,0.35);
}

.hsd-row span:first-child {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.hsd-row span:last-child {
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

.house-slide-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.house-slide-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border: 1px solid rgba(122,186,142,0.4);
  background: rgba(122,186,142,0.08);
  color: #7aba8e;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color .3s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out);
}

.house-slide-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7aba8e;
  box-shadow: 0 0 0 3px rgba(122,186,142,0.28);
  animation: pulseDot 2.4s ease-in-out infinite;
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

/* Status variants — dark context (house slides) */
.house-slide-status.status-available {
  color: #7aba8e;
  border-color: rgba(122,186,142,0.4);
  background: rgba(122,186,142,0.08);
}
.house-slide-status.status-available::before {
  background: #7aba8e;
  box-shadow: 0 0 0 3px rgba(122,186,142,0.28);
}
.house-slide-status.status-reserved {
  color: #e0b56a;
  border-color: rgba(224,181,106,0.45);
  background: rgba(224,181,106,0.10);
}
.house-slide-status.status-reserved::before {
  background: #e0b56a;
  box-shadow: 0 0 0 3px rgba(224,181,106,0.28);
}
.house-slide-status.status-sold {
  color: #d48b88;
  border-color: rgba(212,139,136,0.40);
  background: rgba(212,139,136,0.10);
}
.house-slide-status.status-sold::before {
  background: #d48b88;
  box-shadow: 0 0 0 3px rgba(212,139,136,0.28);
  animation: none;
}

/* Price badge in house slides */
.house-slide-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.house-slide-price.price-on-request {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  border-color: rgba(196,173,152,0.35);
  background: rgba(196,173,152,0.05);
  padding: 0.45rem 0.85rem;
}

.house-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

/* Table status & price (light context) */
.table-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.table-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.table-status.status-available {
  color: #3d7a55;
  border-color: rgba(61,122,85,0.28);
  background: rgba(61,122,85,0.08);
}
.table-status.status-reserved {
  color: #a87726;
  border-color: rgba(168,119,38,0.30);
  background: rgba(168,119,38,0.08);
}
.table-status.status-sold {
  color: #a14945;
  border-color: rgba(161,73,69,0.28);
  background: rgba(161,73,69,0.06);
}

.table-price {
  font-family: var(--ff-serif);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.table-price.price-on-request {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.button-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* House image labels */
.house-img-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(23,21,19,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.12);
}

.house-img-label-left { left: 1.5rem; }
.house-img-label-right { right: 1.5rem; }

/* Progress dots */
.houses-progress {
  position: absolute;
  bottom: clamp(1rem, 2.5vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.hp-dot {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.5);
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.hp-dot:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.hp-dot.active {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(167,139,115,0.4);
  transform: scale(1.05);
}

/* ================================================
   FLOOR PLANS
   ================================================ */
.floors-section { background: var(--bg-alt); }

.floors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.floor-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.4s;
}

.floor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167,139,115,0.35);
}

.floor-card:hover .floor-tag {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 30px rgba(167,139,115,0.4);
}

.floor-card-top { margin-bottom: 1.5rem; }

.floor-tag {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--white);
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(167,139,115,0.3);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.floor-card h4 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.floor-card li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 0.3rem 0;
}

/* ================================================
   HOUSE DATA TABLE
   ================================================ */
.house-data-section {
  background: var(--white);
}

.house-data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.house-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.house-data-table thead {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-soft) 100%);
}

.house-data-table th,
.house-data-table td {
  padding: 1.3rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.house-data-table tbody tr:last-child td { border-bottom: none; }

.house-data-table th {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.house-data-table td {
  font-size: 0.92rem;
  color: var(--text);
  transition: background 0.2s;
}

.house-data-table tbody tr {
  transition: background 0.3s;
}

.house-data-table tbody tr:hover {
  background: rgba(167,139,115,0.06);
}

.house-data-table tbody tr:hover td:first-child {
  color: var(--accent);
}

.house-data-table td a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(167,139,115,0.3);
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.house-data-table td a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.house-data-table td a::after {
  content: '↓';
  font-size: 0.95rem;
  transition: transform 0.3s;
}
.house-data-table td a:hover::after {
  transform: translateY(2px);
}

/* ================================================
   ARCHITECTURE
   ================================================ */
.arch-layout { }

.arch-head {
  max-width: 600px;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.arch-head .heading-lg { margin-bottom: 2rem; }

.arch-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.arch-img {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease-out);
}

.arch-img:hover {
  box-shadow: var(--shadow-lg);
}

.arch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.arch-img:hover img { transform: scale(1.05); }

.arch-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.arch-img:hover::after { opacity: 1; }

.arch-img-1 { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 500px; }
.arch-img-2 { grid-column: 8 / 13; }
.arch-img-3 { grid-column: 8 / 10; grid-row: 2; }
.arch-img-4 { grid-column: 10 / 13; grid-row: 2; }

/* ================================================
   QUALITY
   ================================================ */
.quality-section {
  background: var(--bg-alt);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quality-section .section-head {
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.quality-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
  position: relative;
  overflow: hidden;
}

.quality-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, rgba(167,139,115,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.quality-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167,139,115,0.4);
}

.quality-card:hover::after { opacity: 1; }

.quality-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.quality-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.85rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.quality-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ================================================
   TERMINPLAN (TIMELINE)
   ================================================ */
.terminplan-section {
  background: var(--bg-dark);
  overflow: hidden;
}

.terminplan-section .label { color: var(--accent-light); }
.terminplan-section .heading-lg { color: var(--white); }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(167,139,115,0.2);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 3.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(167,139,115,0.45), 0 0 0 6px rgba(167,139,115,0.1), inset 0 -2px 6px rgba(0,0,0,0.15);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(167,139,115,0.6), 0 0 0 10px rgba(167,139,115,0.1), inset 0 -2px 6px rgba(0,0,0,0.15);
}

.timeline-number {
  font-family: var(--ff-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.timeline-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.timeline-content:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(167,139,115,0.3);
  transform: translateX(4px);
}

.timeline-period {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.timeline-content h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}

.timeline-content ul {
  margin-bottom: 1.25rem;
}

.timeline-content li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-note {
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.timeline-highlight {
  color: var(--accent) !important;
  font-weight: 500;
  font-style: normal !important;
  font-size: 0.95rem !important;
}

@media (max-width: 600px) {
  .timeline-line { left: 22px; }
  .timeline-marker { width: 50px; height: 50px; }
  .timeline-number { font-size: 1.4rem; }
  .timeline-item { padding-left: 66px; }
  .timeline-content { padding: 1.5rem; }
}

/* ================================================
   QUOTE
   ================================================ */
.quote-section {
  background: var(--bg-dark);
  padding: clamp(80px, 15vw, 220px) 0;
  overflow: hidden;
}

.quote-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-line {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  color: var(--white);
  overflow: hidden;
}

.quote-word {
  display: inline-block;
  opacity: 0.15;
  transform: translateY(10px);
  transition: opacity 0.8s, transform 0.8s var(--ease-out);
}

.quote-word.revealed {
  opacity: 1;
  transform: translateY(0);
}

.quote-cite {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  font-family: var(--ff-sans);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.quote-cite::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent-light);
  opacity: 0.5;
}

/* ================================================
   GALLERY (Horizontal Scroll)
   ================================================ */
.gallery-section {
  padding-bottom: 2rem;
  overflow: hidden;
}

.gallery-wrap {
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 var(--gap);
  will-change: transform;
}

.gallery-card {
  flex: 0 0 auto;
  width: clamp(280px, 40vw, 520px);
  cursor: pointer;
}

.gallery-card-img {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease-out);
}

.gallery-card:hover .gallery-card-img {
  box-shadow: var(--shadow-lg);
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.08);
}

.gallery-card-cap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 1.1rem 0 0;
  transition: color 0.3s;
}

.gallery-card-cap::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.gallery-card:hover .gallery-card-cap { color: var(--text); }
.gallery-card:hover .gallery-card-cap::before { width: 32px; }

/* ================================================
   DOWNLOADS
   ================================================ */
.downloads-section {
  background: var(--white);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2rem;
  min-height: 240px;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(167,139,115,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A78B73' stroke-width='1.5'%3E%3Cpath d='M12 4v12m0 0l-5-5m5 5l5-5M4 20h16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s var(--ease-out), background-color 0.4s;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167,139,115,0.5);
  background: var(--white);
}

.download-card:hover::after {
  transform: translateY(3px);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.5'%3E%3Cpath d='M12 4v12m0 0l-5-5m5 5l5-5M4 20h16'/%3E%3C/svg%3E");
}

.download-type {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.download-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.download-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.download-link::after {
  content: '→';
  font-size: 1rem;
  line-height: 1;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,8,6,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lb-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transition: opacity 0.3s, transform 0.3s;
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.85;
  transition: opacity 0.3s, background 0.3s, transform 0.3s;
  z-index: 2;
}

.lb-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.18);
  transform: rotate(90deg);
}
.lb-close svg { width: 20px; height: 20px; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  opacity: 0.75;
  transition: opacity 0.3s, background 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lb-arrow:hover { opacity: 1; background: rgba(255,255,255,0.18); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }
.lb-arrow svg { width: 22px; height: 22px; }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ================================================
   CONTACT
   ================================================ */
.kontakt { background: var(--bg-alt); }

.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
}

.kontakt-left .heading-lg { margin-bottom: 0; }
.kontakt-left .body-text { margin-top: 2rem; }

.kontakt-right {
  display: grid;
  gap: 1.25rem;
}

.kontakt-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.kontakt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(167,139,115,0.4);
}

.kontakt-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.kontakt-card h4 {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.kontakt-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ================================================
   CONTACT FORM
   ================================================ */
.kontakt-cards {
  margin-top: 2.5rem;
}

.kontakt-email {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(167,139,115,0.28);
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.kontakt-email svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.kontakt-email:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateX(2px);
}

.kontakt-email:hover svg { transform: scale(1.05); }

.kontakt-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(2rem, 3vw, 3rem);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.kontakt-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.kontakt-form-title {
  font-family: var(--ff-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.kontakt-form-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.kontakt-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.55rem;
}

.form-group label .req { color: var(--accent); font-weight: 600; }
.form-group label .opt {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-light);
  font-size: 0.82em;
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.5;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none;
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  font-weight: 300;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-strong);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(167,139,115,0.12);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(184,84,80,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A78B73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.8rem;
}

/* Privacy checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
  cursor: pointer;
  user-select: none;
}

.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.form-check-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}

.form-check-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease-bounce);
}

.form-check input:checked ~ .form-check-mark {
  background: var(--accent);
  border-color: var(--accent);
}
.form-check input:checked ~ .form-check-mark::after { transform: rotate(45deg) scale(1); }

.form-check input:focus-visible ~ .form-check-mark {
  box-shadow: 0 0 0 3px rgba(167,139,115,0.25);
}

.form-check-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-mid);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 220px;
  min-height: 56px;
  padding: 0.95rem 2rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s;
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease-out);
  z-index: 0;
}
.form-submit:hover::before { left: 150%; }
.form-submit > * { position: relative; z-index: 1; }

.form-submit-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}
.form-submit:hover .form-submit-arrow { transform: translateX(5px); }

.form-submit:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(140,110,86,0.5);
}

.form-submit:active { transform: translateY(0); }

.form-submit.loading {
  opacity: 0.8;
  pointer-events: none;
}

.form-submit.done {
  background: var(--success);
  box-shadow: 0 16px 40px rgba(90,138,106,0.35);
}
.form-submit.done .form-submit-arrow { display: none; }

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.form-status.success::before { content: '✓'; font-weight: 700; }
.form-status.error::before { content: '!'; display:inline-grid; place-items:center; width:18px; height:18px; background:var(--error); color:#fff; border-radius:50%; font-size:0.75rem; font-weight:700; }

@media (max-width: 600px) {
  .kontakt-form .form-row { grid-template-columns: 1fr; }
}

/* ================================================
   ACTIVE NAV INDICATOR
   ================================================ */
.nav-desktop a.active {
  color: var(--accent) !important;
}

.nav-desktop a.active::after {
  width: 100%;
  background: var(--accent);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.45);
  padding: clamp(3.5rem, 5vw, 5rem) 0 clamp(2rem, 3vw, 3rem);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(167,139,115,0.35) 50%, transparent 100%);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-brand { max-width: 380px; }
.logo-footer .logo-main { color: var(--white); }
.logo-footer .logo-sub { color: rgba(255,255,255,0.4); }
.logo-footer .logo-mark { color: var(--accent-light); }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-top: 1.2rem;
  color: rgba(255,255,255,0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-self: center;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.footer-nav a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width 0.3s;
}

.footer-nav a:hover { color: var(--white); }
.footer-nav a:hover::before { width: 100%; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-contact {
  margin-top: 1.25rem;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.footer-mail svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
  transition: transform 0.3s;
}

.footer-mail:hover {
  background: rgba(167,139,115,0.18);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-mail:hover svg { transform: scale(1.08); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--white); }

/* ================================================
   SCROLL PROGRESS BAR
   ================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  transform-origin: left;
  will-change: width;
}

/* ================================================
   GALLERY HOVER OVERLAY
   ================================================ */
.gallery-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(23,21,19,0.35) 0%, rgba(23,21,19,0.55) 100%)
    center/cover,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E") center/56px no-repeat;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.gallery-card:hover .gallery-card-img::after {
  opacity: 1;
}

/* ================================================
   EXTRA POLISH
   ================================================ */
.arch-img,
.lage-img-col .img-reveal {
  position: relative;
}

.arch-img,
.lage-img-col .img-reveal {
  will-change: clip-path;
}

/* Selection color */
::selection {
  background: var(--accent);
  color: var(--white);
}

/* Premium card accent line on hover */
.overview-card,
.quality-card,
.download-card,
.floor-card {
  position: relative;
}

.overview-card::before,
.quality-card::before,
.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.6s var(--ease-out);
}

.overview-card:hover::before,
.quality-card:hover::before,
.download-card:hover::before {
  width: 100%;
}

/* Smooth table row transitions */
.house-data-table tbody tr {
  transition: background 0.3s;
}

.house-data-table td strong {
  font-weight: 600;
  color: var(--text);
}

/* ================================================
   FLOATING CTA BUTTON
   ================================================ */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.5rem 0.9rem 1.2rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(167,139,115,0.4), 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out), background 0.3s, box-shadow 0.3s;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 48px rgba(140,110,86,0.55);
}

.floating-cta-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.floating-cta-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ================================================
   BACK TO TOP — stacked above floating CTA
   ================================================ */
.back-to-top {
  position: fixed;
  bottom: calc(2rem + 60px);
  right: 2rem;
  z-index: 89;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s, color 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  transform: translateY(-3px);
}

.back-to-top svg { width: 18px; height: 18px; }

.floating-cta {
  bottom: calc(2rem + env(safe-area-inset-bottom));
  right: calc(2rem + env(safe-area-inset-right));
}

.back-to-top {
  bottom: calc(2rem + 60px + env(safe-area-inset-bottom));
  right: calc(2rem + env(safe-area-inset-right));
}

@media (max-width: 600px) {
  .floating-cta {
    bottom: calc(0.9rem + env(safe-area-inset-bottom));
    right: calc(0.9rem + env(safe-area-inset-right));
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
  }
  .floating-cta-label { display: none; }
  .floating-cta-icon { width: 20px; height: 20px; }
  .floating-cta-icon svg { width: 20px; height: 20px; }

  .back-to-top {
    bottom: calc(0.9rem + 56px + env(safe-area-inset-bottom));
    right: calc(0.9rem + env(safe-area-inset-right));
    width: 44px;
    height: 44px;
  }
  .back-to-top svg { width: 16px; height: 16px; }
}

/* ================================================
   SECTION INDICATOR (scrollspy label)
   ================================================ */
.section-indicator {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.section-indicator.visible { opacity: 1; }

.si-line {
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: block;
}

.si-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .section-indicator { display: none; }
}

/* ================================================
   GSAP ANIMATION BASE STATES
   ================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(60px);
}

/* ================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ================================================ */
@media (max-width: 1024px) {
  .project-overview-layout,
  .quality-grid,
  .downloads-grid {
    grid-template-columns: 1fr 1fr;
  }

  .houses-scroller {
    min-height: auto !important;
    display: block;
    overflow: visible;
  }
  .houses-track {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
  }
  .house-slide {
    width: 100%;
    flex-direction: column;
    height: auto;
    min-height: auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .house-slide:last-child { border-bottom: none; }
  .house-slide-img {
    flex: 0 0 auto;
    height: 50vw;
    min-height: 220px;
    max-height: 400px;
  }
  .house-slide-content { padding: 2rem var(--gap); }
  .house-slide-letter { display: none; }
  .houses-section {
    padding-bottom: 0;
    overflow: visible; /* required for position: sticky on .houses-progress */
  }

  /* Sticky progress rail while scrolling through houses */
  .houses-progress {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(20,18,16,0) 0%, rgba(20,18,16,0.82) 35%, rgba(20,18,16,0.95) 100%);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 20;
  }

  .gallery-section { padding-bottom: 1rem; }
  .gallery-wrap {
    min-height: auto !important;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    position: relative;
  }
  .gallery-wrap::-webkit-scrollbar { display: none; }
  /* Soft edge fades hinting at scrollability */
  .gallery-wrap::before,
  .gallery-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
  }
  .gallery-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
  }
  .gallery-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg), transparent);
  }
  .gallery-track {
    transform: none !important;
    padding: 0 var(--gap);
  }
  .gallery-card {
    scroll-snap-align: center;
  }

  .arch-img-1 { min-height: 350px; }
  .arch-img-3 { grid-column: 8 / 13; grid-row: auto; }
  .arch-img-4 { display: none; }

  .parallax-banner { height: 50vh; min-height: 300px; }
  .parallax-img-wrap { inset: -10% 0; }
}

/* ================================================
   RESPONSIVE — LARGE MOBILE (max-width: 900px)
   ================================================ */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .hero-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-scroll-indicator { display: none; }
  .hero-cta-wrap { width: 100%; gap: 0.65rem; }
  .btn { padding: 0.95rem 1.4rem; font-size: 0.72rem; min-height: 48px; }
  .hero-btn-primary, .hero-btn-secondary { flex: 1 1 calc(50% - 0.35rem); }

  /* Mobile nav — tighter spacing so 8 items always fit */
  .mobile-nav-inner { padding: 0 1.5rem; }
  .mobile-nav-link {
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
    padding: 0.22em 0;
  }
  .mobile-nav-footer { margin-top: 1.75rem; padding-top: 1.25rem; }
  .mobile-nav-footer p { font-size: 0.72rem; letter-spacing: 0.18em; }

  .intro-row { grid-template-columns: 1fr; gap: 2rem; }
  .project-overview-layout { grid-template-columns: 1fr; }
  .project-overview-facts { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .lage-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .arch-mosaic { grid-template-columns: 1fr 1fr; }
  .arch-img-1 { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
  .arch-img-2 { grid-column: 1; }
  .arch-img-3 { grid-column: 2; }
  .arch-img-4 { display: none; }
  .floors-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .downloads-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { flex-direction: column; }
  .footer-nav { gap: 1rem 1.5rem; }

  .gallery-card { width: 72vw; max-width: 360px; }
  .parallax-banner { height: 40vh; min-height: 260px; }
  .quote-line { font-size: clamp(1.8rem, 5.5vw, 3rem); }
  .quote-section { padding: clamp(60px, 12vw, 140px) 0; }

  .kontakt-form-wrap { padding: 2rem; }
}

/* ================================================
   RESPONSIVE — MOBILE (max-width: 600px)
   ================================================ */
@media (max-width: 600px) {
  :root {
    --section-py: clamp(56px, 9vw, 88px);
    --gap: clamp(16px, 5vw, 24px);
  }

  .heading-lg { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .label { margin-bottom: 1rem; font-size: 0.66rem; letter-spacing: 0.24em; }
  .section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
  .body-text { font-size: 0.95rem; line-height: 1.75; }

  .hero { min-height: 100svh; min-height: 100dvh; }
  .hero-content { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .hero-tag { margin-bottom: 1.25rem; }
  .hero-tag .line-reveal span { font-size: 0.7rem; letter-spacing: 0.2em; }
  .hero-title { margin-bottom: 1.25rem; }
  .hero-desc { margin-bottom: 1.25rem; }
  .hero-desc span { font-size: 0.92rem; line-height: 1.55; }
  .hero-cta-wrap { width: 100%; flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero-btn-primary, .hero-btn-secondary { flex: 1 1 auto; width: 100%; min-height: 52px; }

  .intro { padding-top: clamp(56px, 9vw, 88px); }
  .intro-line { width: 48px; margin-bottom: 1.5rem; }
  .numbers { padding-bottom: clamp(56px, 9vw, 88px); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; padding: 1.75rem 0; }
  .number-value { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 0.4rem; }
  .number-label { font-size: 0.64rem; letter-spacing: 0.16em; }

  .project-overview-facts,
  .highlights-grid { grid-template-columns: 1fr; }
  .overview-card { padding: 1.4rem 1.35rem; }
  .overview-card strong { font-size: 1.45rem; }
  .overview-card p { font-size: 0.85rem; }

  .highlight-item { padding: 1.75rem 1.5rem; }
  .highlight-item h3 { font-size: 1.15rem; }
  .highlight-icon { width: 48px; height: 48px; padding: 11px; margin-bottom: 1.1rem; }
  .highlight-item p { font-size: 0.88rem; }

  .house-slide-img { height: 58vw; min-height: 220px; max-height: 340px; }
  .hsd-row { font-size: 0.82rem; padding: 0.55rem 0; gap: 1rem; }
  .hsd-row span:first-child { flex-shrink: 0; }
  .hsd-row span:last-child { text-align: right; }
  .house-slide-name { font-size: 1.5rem; margin-bottom: 1.25rem; }
  .house-slide-content { padding: 1.5rem 1.25rem 1.75rem; }
  .house-slide-actions { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .house-slide-meta { width: 100%; align-items: stretch; }
  .house-slide-status { justify-content: center; text-align: center; }
  .house-slide-price { justify-content: center; text-align: center; }
  .button-outline { min-height: 48px; justify-content: center; }
  .house-img-label { font-size: 0.62rem; padding: 0.4rem 0.8rem; bottom: 0.85rem; }
  .house-img-label-left { left: 0.85rem; }
  .house-img-label-right { right: 0.85rem; }
  .hp-dot { width: 40px; height: 40px; font-size: 0.82rem; }

  .floors-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .floor-card { padding: 1.85rem 1.5rem; }
  .floor-tag { width: 48px; height: 48px; font-size: 1rem; }

  .house-data-table { min-width: 680px; }
  .house-data-table th,
  .house-data-table td { padding: 0.85rem 1rem; font-size: 0.82rem; }
  .house-data-table-wrap {
    position: relative;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .house-data-table-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 36px;
    background: linear-gradient(-90deg, var(--white), transparent);
    pointer-events: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }
  .house-data-section::after {
    content: '← Tabelle wischen →';
    display: block;
    text-align: center;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    padding-bottom: 1rem;
    margin-top: -0.25rem;
  }

  .arch-mosaic {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .arch-img-1,
  .arch-img-2,
  .arch-img-3 {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .arch-img-1 { aspect-ratio: 16 / 11; }
  .arch-img-4 { display: none; }

  .quality-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .quality-card { padding: 1.6rem 1.45rem; }
  .quality-card h3 { font-size: 1.15rem; }
  .quality-card p { font-size: 0.85rem; }

  .timeline { padding: 1rem 0; }
  .timeline-item { padding-left: 58px; padding-bottom: 2rem; }
  .timeline-marker { width: 44px; height: 44px; }
  .timeline-number { font-size: 1.15rem; }
  .timeline-line { left: 21px; }
  .timeline-content { padding: 1.25rem 1.25rem 1.1rem; }
  .timeline-content h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
  .timeline-content ul { margin-bottom: 0.9rem; }
  .timeline-content li { font-size: 0.84rem; padding: 0.2rem 0 0.2rem 1rem; }
  .timeline-content li::before { top: 0.62rem; }
  .timeline-period { font-size: 0.66rem; margin-bottom: 0.55rem; }
  .timeline-note { font-size: 0.82rem; }

  .gallery-card { width: 82vw; max-width: 340px; }
  .gallery-card-img { aspect-ratio: 4 / 3; }
  .gallery-card-cap { font-size: 0.74rem; padding: 0.9rem 0 0; }

  .downloads-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .download-card { min-height: auto; padding: 1.6rem 1.45rem; }
  .download-card h3 { font-size: 1.15rem; }
  .download-card p { font-size: 0.85rem; }

  .kontakt-form .form-row { grid-template-columns: 1fr; }
  /* 16px prevents iOS Safari auto-zoom on focus */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; padding: 0.85rem 1rem; min-height: 48px; }
  .form-group textarea { min-height: 120px; }
  .form-check { gap: 0.65rem; margin: 1rem 0 1.5rem; }
  .form-check-mark { width: 22px; height: 22px; }
  .form-check-text { font-size: 0.84rem; }
  .form-submit { width: 100%; min-height: 54px; font-size: 0.76rem; }
  .kontakt-form-wrap { padding: 1.5rem 1.25rem; }
  .kontakt-card { padding: 1.6rem 1.45rem; }
  .kontakt-card h4 { font-size: 1.05rem; }
  .kontakt-form-title { font-size: 1.5rem; }
  .kontakt-form-desc { font-size: 0.85rem; margin-bottom: 1.5rem; }

  .lb-img { max-width: 96vw; max-height: 78vh; }
  .lb-close { top: 0.75rem; right: 0.75rem; width: 44px; height: 44px; }
  .lb-arrow { width: 44px; height: 44px; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lb-counter { bottom: 1rem; font-size: 0.7rem; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .footer-nav a { padding: 0.35rem 0; font-size: 0.75rem; }
  .footer-brand p { font-size: 0.78rem; }
}

/* ================================================
   RESPONSIVE — VERY SMALL (max-width: 380px)
   ================================================ */
@media (max-width: 380px) {
  .hero-title { font-size: 2.2rem; }
  .heading-lg { font-size: 1.7rem; }
  .number-value { font-size: 1.8rem; }
  .numbers-grid { gap: 0.85rem 0.75rem; padding: 1.5rem 0; }
  .number-label { font-size: 0.6rem; }
  .house-slide-img { height: 50vw; min-height: 180px; }
  .gallery-card { width: 88vw; }
  .overview-card strong { font-size: 1.3rem; }
  .kontakt-form-wrap { padding: 1.25rem 1rem; }
  .kontakt-form-title { font-size: 1.35rem; }
  .highlight-item { padding: 1.5rem 1.25rem; }
  .floor-card { padding: 1.6rem 1.25rem; }
  .quality-card,
  .download-card,
  .kontakt-card,
  .overview-card { padding: 1.4rem 1.2rem; }
  .timeline-item { padding-left: 54px; }
  .timeline-marker { width: 40px; height: 40px; }
  .timeline-number { font-size: 1.05rem; }
  .timeline-line { left: 19px; }
  .timeline-content { padding: 1.1rem 1.1rem 1rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.4rem); }
  .btn { padding: 0.9rem 1.1rem; font-size: 0.68rem; letter-spacing: 0.16em; }
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .line-inner { transform: none !important; }
  .line-reveal > span { transform: none !important; }
  .scroll-dot { animation: none; }
  .hero-tag-dot, .house-slide-status::before { animation: none !important; }
  .img-reveal img { transition: none; }
  .arch-img img { transition: none; }
  .hero-cta-wrap { opacity: 1 !important; transform: none !important; }
  .hero-scroll-indicator { opacity: 1 !important; }
}
