/* ===========================================================
   Johannes Immobilien — Design Tokens & Base Styles
   =========================================================== */

:root {
  /* Surface — deep, warm-cool dark */
  --bg: #0d0e10;
  --bg-2: #131418;
  --bg-3: #1a1c21;
  --line: rgba(200, 169, 106, 0.18);
  --line-strong: rgba(200, 169, 106, 0.4);

  /* Text */
  --text: #ece9e2;
  --text-dim: #9d9991;
  --text-mute: #6b6862;

  /* Gold — default classic */
  --gold: #b8924f;
  --gold-soft: #cba668;
  --gold-deep: #8e6c37;

  /* Type */
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1400px;
  --gutter: 64px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Radii — rounded, Kampmeyer-inspired */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ============= Type ============= */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.italic { font-style: italic; color: var(--gold); }

/* ============= Container ============= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
}

/* ============= Header ============= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 32px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 14, 16, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 16px 0;
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand-logo {
  height: 70px;
  width: auto;
  display: block;
  transition: height 0.35s var(--ease);
}
.site-header.scrolled .brand-logo { height: 46px; }
.brand .mark {
  font-style: italic;
  color: var(--gold);
  font-size: 26px;
}
.brand .sep {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}
.brand small {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  background: transparent;
  /* fast return to resting state */
  transition: all 0.16s var(--ease);
}
.cta-pill:hover {
  background: var(--gold);
  color: var(--bg);
  /* slightly slower, smoother on the way in */
  transition: all 0.26s var(--ease);
}
.cta-pill .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  transition: background 0.3s var(--ease);
}
.cta-pill:hover .dot { background: var(--bg); }
.cta-pill .pill-icon {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  margin-right: -2px;
  color: currentColor;
  stroke: currentColor;
  background: transparent;
}

/* Header CTA stays gold by default */
.site-header .cta-pill {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.site-header .cta-pill:hover {
  background: var(--gold-soft);
  color: var(--bg);
  border-color: var(--gold-soft);
}
.site-header .cta-pill .dot {
  background: var(--bg);
}
.site-header .cta-pill .pill-icon {
  color: var(--bg);
  background: transparent;
}

/* Gold CTA glow — subtle, echoes the WhatsApp button at lower intensity.
   Applies to the gold-filled pills (header, inline-gold, submit). */
.site-header .cta-pill,
.cta-pill[style*="var(--gold)"],
.submit-btn {
  box-shadow: 0 5px 16px color-mix(in srgb, var(--gold) 18%, transparent);
}
/* Hover for the gold-filled CTAs — lighten to gold-soft like "Nachricht senden". */
.site-header .cta-pill:hover,
.cta-pill[style*="var(--gold)"]:hover,
.submit-btn:hover {
  background: var(--gold-soft) !important;
  border-color: var(--gold-soft) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 24%, transparent);
  transition: all 0.26s var(--ease);
}
/* Icon slide only where the width change doesn't disturb layout —
   the header CTA stays fixed so the nav menu never shifts. */
.cta-pill[style*="var(--gold)"]:hover { gap: 18px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ============= Hero ============= */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: url("../assets/Home%20Hintergrund.webp");
  background-size: cover;
  background-position: center;
  filter: blur(32px) saturate(0.95);
  transform: scale(1.08);
  opacity: 0.15;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--bg) 69%, transparent) 0%,
    color-mix(in oklab, var(--bg) 56%, transparent) 45%,
    color-mix(in oklab, var(--bg) 73%, transparent) 100%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 28px 0 32px;
}
.hero-copy h1 .l2 {
  display: block;
  font-style: italic;
  color: var(--gold);
}
.hero-copy p.lead {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 44px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.hero-stats .num {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold);
  font-style: italic;
}
.hero-stats .lbl {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}
.hero-visual .frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--r-xl);
}
.hero-visual .frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s var(--ease);
}
.hero-visual:hover .frame img { transform: scale(1.05); }
.hero-visual::before {
  content: '';
  position: absolute;
  top: 32px; left: -32px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  border-radius: var(--r-xl);
  pointer-events: none;
  z-index: -1;
}
.hero-badge {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid color-mix(in oklab, var(--line-strong) 80%, transparent);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.18);
  padding: 22px 28px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 260px;
}
.hero-badge .mono {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
}
.hero-badge .txt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* Hero variant: full bleed */
.hero.variant-fullbleed {
  padding: 0;
  min-height: 100vh;
}
.hero.variant-fullbleed .hero-grid {
  display: block;
  width: 100%;
  position: relative;
}
.hero.variant-fullbleed .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero.variant-fullbleed .hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero.variant-fullbleed .hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,14,16,0.92) 0%, rgba(13,14,16,0.55) 60%, rgba(13,14,16,0.2) 100%);
}
.hero.variant-fullbleed .hero-copy {
  padding-top: 25vh;
  padding-bottom: 80px;
  max-width: 720px;
}

/* Hero variant: editorial collage */
.hero.variant-collage .hero-visual {
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.hero.variant-collage .hero-visual::before { display: none; }
.hero.variant-collage .v-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--r-lg);
}
.hero.variant-collage .v-cell:nth-child(1) { grid-row: 1 / 3; }
.hero.variant-collage .v-cell img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero.variant-collage .frame,
.hero.variant-collage .hero-badge { display: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 3/4; }
}

/* ============= Section wrapper ============= */

.section {
  padding: 140px 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
#objekte .section-head {
  display: block;
}
.section-head h2 {
  font-size: clamp(40px, 4.5vw, 72px);
  letter-spacing: -0.02em;
}
.section-head h2 .it { font-style: italic; color: var(--gold); }
.section-head .desc {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.65;
}
.section-head .top { margin-bottom: 20px; }

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============= About / Über uns ============= */

.about {
  position: relative;
  background: #faf8f3;
  border-top: 1px solid rgba(31, 27, 22, 0.10);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-intro h2 {
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -0.02em;
  margin: 22px 0 32px;
  color: #1f1b16;
}
.about-intro h2 .it { font-style: italic; color: var(--gold); }
.about-intro .lead {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.45;
  color: #1f1b16;
  margin: 0 0 24px;
}
.about-intro .about-body {
  color: #6a6359;
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 40px;
}
.about-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.about-cta-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #8a8278;
}
.about-pillars {
  display: flex;
  flex-direction: column;
}
.about-pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(31, 27, 22, 0.10);
  transition: padding 0.3s var(--ease);
}
.about-pillar:last-child { border-bottom: 1px solid rgba(31, 27, 22, 0.10); }
.about-pillar:hover { padding-left: 12px; }
.about-pillar .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.1em;
  padding-top: 6px;
}
.about-pillar h4 {
  font-size: 24px;
  margin: 0 0 10px;
  color: #1f1b16;
}
.about-pillar p {
  color: #6a6359;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============= Services ============= */

.services {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  padding: 56px 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  position: relative;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.service:hover { background: rgba(200, 169, 106, 0.04); transform: translateY(-4px); }
.service .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.service h3 {
  font-size: 32px;
  margin: 28px 0 8px;
}
.service h3 .it { font-style: italic; color: var(--gold); }
.service .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin: 0 0 24px;
}
.service p {
  color: var(--text-dim);
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.7;
}
/* Featured (middle) card */
.service.featured {
  background: var(--gold);
  border-color: var(--gold);
}
.service.featured:hover { background: var(--gold-soft); }
.service.featured .num { color: var(--bg); opacity: 0.65; }
.service.featured h3 { color: var(--bg); }
.service.featured .tagline { color: var(--bg); }
.service.featured p { color: rgba(13, 14, 16, 0.78); }

/* ===== Light theme — Leistungen section ===== */
#leistungen.services {
  background: #faf8f3;
  border-top-color: rgba(31, 27, 22, 0.10);
  border-bottom-color: rgba(31, 27, 22, 0.10);
}
#leistungen .section-head h2 { color: #1f1b16; }
#leistungen .section-head .desc { color: #6a6359; }
#leistungen .service {
  background: #ffffff;
  border-color: rgba(31, 27, 22, 0.10);
  box-shadow: 0 1px 2px rgba(31, 27, 22, 0.04);
}
#leistungen .service:hover {
  background: #fffdf8;
  box-shadow: 0 14px 40px rgba(31, 27, 22, 0.08);
}
#leistungen .service h3 { color: #1f1b16; }
#leistungen .service p { color: #6a6359; }

/* ===== Light theme — Objekte section ===== */
#objekte.section { background: #faf8f3; }
#objekte .section-head h2 { color: #1f1b16; }
#objekte .filter-label { color: #1f1b16; }
#objekte .filter-count { color: #6a6359; }
#objekte .card h3 { color: #1f1b16; }
#objekte .card .specs { color: #6a6359; border-top-color: rgba(31,27,22,0.12); }
#objekte .card .specs span strong { color: #1f1b16; }
#objekte .card {
  background: #ffffff;
  border: 1px solid rgba(31,27,22,0.08);
  border-radius: 26px;
  padding: 16px;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(31,27,22,0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
#objekte .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(31,27,22,0.12);
}
#objekte .card .img-wrap { border-radius: 16px; }
#objekte .card .meta-top,
#objekte .card h3 { padding: 0 6px; }
#objekte .card .specs { margin: 0 6px; padding-bottom: 6px; }
#objekte .card .specs > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
#objekte .card .specs > span > strong { margin-right: 0; white-space: nowrap; }
#objekte .card .specs { gap: 16px; }
#objekte .card .specs .u {
  display: inline;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  color: #6a6359;
  margin-left: 3px;
}
#objekte .card-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--gold-deep);
  padding: 0 6px;
  margin-top: -8px;
  line-height: 1;
}
.service ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--text);
}
.service li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.service li:last-child { border-bottom: 0; }
.service li span:last-child { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============= Portfolio ============= */

.filter-wrap {
  margin-bottom: 56px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(31, 27, 22, 0.1);
  border-radius: 28px;
  box-shadow: 0 12px 34px rgba(31, 27, 22, 0.08);
}
.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.filter-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.filter-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.filter-count {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.filter-count .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 22px;
  margin-right: 6px;
  letter-spacing: 0;
}
.filter-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 28px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 900px) {
  .filter-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .filter-groups { grid-template-columns: 1fr; }
}

.select-wrap {
  position: relative;
  background: #ffffff;
  border-radius: 999px;
  padding: 2px;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.16);
  z-index: 5;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #1f1b16;
  border-bottom: 1.5px solid #1f1b16;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.25s var(--ease);
}
.select-wrap:hover::after { border-color: var(--gold); }
.select-wrap.open {
  z-index: 30;
}
.select-trigger {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 42px 14px 20px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: #ffffff;
  color: #1f1b16;
  border: none;
  box-shadow: none;
  text-align: left;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.select-trigger:hover {
  background: var(--gold);
  color: #0d0e10;
  box-shadow: inset 0 0 0 1px rgba(13, 14, 16, 0.08);
}
.select-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--gold) 70%, white);
}
.select-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #0d0e10;
  border: 1px solid rgba(200, 169, 106, 0.32);
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  padding: 8px;
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.select-wrap.open .select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.select-option {
  color: #f4efe5;
  font-size: 17px;
  line-height: 1.35;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.select-option:hover {
  background: var(--gold);
  color: #0d0e10;
}
.select-option.active {
  background: rgba(200, 169, 106, 0.24);
  color: #fff6df;
}

.chip {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 169, 106, 0.08);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
@media (max-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .portfolio-grid { grid-template-columns: 1fr; } }

.card {
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card .img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  isolation: isolate;
}
.card .img-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.card .img-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.4s var(--ease);
  filter: brightness(0.92);
}
.card:hover .img-wrap img { transform: scale(1.06); filter: brightness(1); }
.card .img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,14,16,0.55) 100%);
  pointer-events: none;
}
.card .img-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}
.card .img-nav {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(13, 14, 16, 0.56);
  color: #f6efe3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  pointer-events: auto;
  cursor: pointer;
}
.card .img-nav:hover {
  background: rgba(13, 14, 16, 0.78);
  border-color: rgba(255, 255, 255, 0.38);
}
.card .img-nav svg {
  width: 16px;
  height: 16px;
}
.card .img-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.card .img-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), width 0.22s var(--ease);
  cursor: pointer;
}
.card .img-dot.active {
  width: 24px;
  background: var(--gold);
}
.card .img-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 14, 16, 0.55);
  color: #f4ecdf;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card .img-wrap.has-gallery:hover .img-nav,
.card:focus-within .img-nav,
.card .img-wrap.has-gallery:focus-within .img-nav {
  opacity: 1;
  transform: translateY(0);
}
.card .img-wrap.has-gallery .status {
  padding-right: 18px;
}
.card .status {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--bg);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.card .status.sold { color: var(--text-dim); border-color: var(--text-mute); }
.card .price {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  background: rgba(13, 14, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  padding: 8px 18px;
  border-radius: 999px;
  line-height: 1;
}
.card .meta-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.card .meta-top span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 169, 106, 0.08);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.card h3 {
  font-size: 26px;
  margin: 0;
}
.card .specs {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.card .specs span strong {
  color: var(--text);
  font-weight: 400;
  font-family: var(--serif);
  font-size: 18px;
  margin-right: 4px;
  font-style: italic;
}

@media (max-width: 900px) {
  .card .img-nav {
    opacity: 1;
    transform: translateY(0);
    width: 34px;
    height: 34px;
  }
  .card .img-controls {
    padding: 0 10px;
  }
  .card .img-dots {
    bottom: 12px;
  }
  .card .img-count {
    right: 12px;
    bottom: 42px;
  }
}

/* ============= Modal ============= */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg);
  border: 1px solid var(--line);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transform: scale(0.97) translateY(20px);
  transition: transform 0.5s var(--ease);
}
.modal-backdrop.open .modal { transform: none; }
.modal-img {
  background: var(--bg-2);
  position: relative;
  min-height: 500px;
}
.slider-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}
.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.slider-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}
.slider-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13,14,16,0.05) 0%, rgba(13,14,16,0.12) 46%, rgba(13,14,16,0.48) 100%);
}
.slider-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}
.slider-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(13,14,16,0.56);
  color: #f7f0e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  pointer-events: auto;
  cursor: pointer;
}
.slider-nav:hover {
  background: rgba(13,14,16,0.8);
  border-color: rgba(255,255,255,0.34);
}
.slider-nav svg {
  width: 18px;
  height: 18px;
}
.slider-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(13,14,16,0.52);
  color: #f6efe4;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
  transition: width 0.22s var(--ease), background 0.22s var(--ease);
  cursor: pointer;
}
.slider-dot.active {
  width: 24px;
  background: var(--gold);
}
.slider-shell.has-multi:hover .slider-nav,
.slider-shell.has-multi:focus-within .slider-nav {
  opacity: 1;
  transform: translateY(0);
}
.modal-img .slider-shell {
  min-height: 500px;
}
.modal-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.modal-body h3 {
  font-size: 40px;
  line-height: 1.05;
}
.modal-body .loc {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.modal-body .price-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  color: var(--gold);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modal-body .grid-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  font-size: 14px;
}
.modal-body .grid-specs .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.modal-body .grid-specs .row span:first-child { color: var(--text-mute); text-transform: uppercase; font-size: 11px; letter-spacing: 0.16em; }
.modal-body p.descr { color: var(--text-dim); line-height: 1.7; }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s var(--ease);
  z-index: 5;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }

@media (max-width: 900px) {
  .modal { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-body { padding: 32px 24px; }
  .slider-nav {
    opacity: 1;
    transform: translateY(0);
    width: 38px;
    height: 38px;
  }
  .slider-controls {
    padding: 0 12px;
  }
  .slider-dots {
    bottom: 14px;
  }
  .slider-count {
    right: 14px;
    bottom: 44px;
  }
}

/* ============= Locations ============= */

.locations {
  position: relative;
}
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: stretch;
}
.loc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loc-row {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: baseline;
  cursor: pointer;
  transition: padding 0.3s var(--ease);
}
.loc-row:last-child { border-bottom: 1px solid var(--line); }
.loc-row:hover { padding-left: 12px; }
.loc-row .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.loc-row h4 {
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 400;
}
.loc-row.active h4 .it { font-style: italic; color: var(--gold); }
.loc-row .dist {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.map-wrap {
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--r-xl);
}

@media (max-width: 900px) {
  .loc-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 380px; }
}

/* ============= Contact ============= */

.contact {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.contact-side h2 {
  margin-bottom: 32px;
  font-size: clamp(40px, 4.5vw, 72px);
  letter-spacing: -0.02em;
}
.contact-side h2 .it { font-style: italic; color: var(--gold); }
.contact-side .lead {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 48px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.contact-info .row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-info .row:last-child { border: 0; }
.contact-info .icn {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 22px;
}
.contact-info .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-info .value { font-size: 18px; color: var(--text); font-family: var(--serif); }

.contact-form-wrap {
  display: flex;
  flex-direction: column;
}
form.contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
}
form.contact-form > .field {
  flex: 1;
  min-height: 0;
}
form.contact-form > .field textarea {
  flex: 1;
  resize: none;
}
form.contact-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
}
.field label .req { color: var(--gold); margin-left: 4px; }
.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  background-color: var(--bg);
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--gold); background: rgba(200,169,106,0.04); }
.field input.invalid,
.field textarea.invalid,
.field select.invalid { border-color: #e07a5f; }
.field .err {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #e07a5f;
  margin-top: 4px;
  min-height: 14px;
}
.field textarea { resize: vertical; min-height: 140px; border-radius: var(--r-sm); }

.submit-btn {
  align-self: start;
  background: var(--gold);
  color: var(--bg);
  border: 0;
  padding: 18px 36px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  /* fast return to resting state */
  transition: all 0.16s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.submit-btn:hover { background: var(--gold-soft); gap: 22px; transition: all 0.26s var(--ease); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success {
  padding: 22px 28px;
  border: 1px solid var(--gold);
  background: rgba(200, 169, 106, 0.06);
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  border-radius: var(--r-lg);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  form.contact-form .row2 { grid-template-columns: 1fr; }
}

/* ============= Footer ============= */

.site-footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 32px;
}
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 4px;
}
.footer-brand .it { font-style: italic; color: var(--gold); }
.footer-tag {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; }
}

/* ============= Reveal animations ============= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ============= Object detail page ============= */

.obj-hero {
  padding-top: 140px;
  padding-bottom: 48px;
}
.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); }
.obj-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.obj-title-row h1 {
  font-size: clamp(40px, 5vw, 72px);
}
.obj-title-row h1 .it { font-style: italic; color: var(--gold); }
.obj-title-row .loc {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 16px;
}
.obj-title-row .price-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 56px;
}
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: stretch;
  min-height: 600px;
  margin-bottom: 80px;
}
.gallery-stage {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  min-height: 600px;
}
.gallery-stage .slider-shell {
  min-height: 600px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}
.gallery-thumb {
  appearance: none;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(184,146,79,0.16);
  background: rgba(15,17,20,0.04);
  padding: 0;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), opacity 0.22s var(--ease);
  opacity: 0.72;
}
.gallery-thumb:hover {
  transform: translateY(-2px);
  opacity: 1;
}
.gallery-thumb.active {
  opacity: 1;
  border-color: rgba(184,146,79,0.65);
  box-shadow: 0 0 0 1px rgba(184,146,79,0.25), 0 18px 36px rgba(13,14,16,0.14);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}
.gallery-thumb .thumb-index {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13,14,16,0.6);
  color: #f7f0e5;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.obj-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  margin-bottom: 120px;
  padding: 120px 0;
  position: relative;
  z-index: 0;
}
.obj-body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #faf8f3;
  z-index: -1;
}
.obj-body .descr p {
  font-size: 17px;
  color: #564f45;
  line-height: 1.8;
}
.obj-body .descr p.first {
  font-family: var(--serif);
  font-size: 24px;
  color: #1f1b16;
  line-height: 1.5;
  margin-bottom: 32px;
}
.obj-body h3 {
  color: #1f1b16;
}
.obj-body .descr p.first .it { font-style: italic; color: var(--gold); }
.obj-body .eyebrow { color: var(--gold); }
.obj-body .eyebrow::before { background: var(--gold); }

.fact-card {
  background: #fffdf8;
  border: 1px solid rgba(31, 27, 22, 0.12);
  padding: 40px;
  border-radius: var(--r-xl);
  align-self: start;
  position: sticky;
  top: 100px;
}
.fact-card h3 {
  font-size: 22px;
  margin-bottom: 24px;
}
.fact-card .row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(31, 27, 22, 0.16);
  font-size: 14px;
}
.fact-card .row:last-of-type { border-bottom: 0; }
.fact-card .row span:first-child { color: #7a7164; text-transform: uppercase; font-size: 11px; letter-spacing: 0.16em; }
.fact-card .row span:last-child { color: #1f1b16; font-family: var(--serif); font-style: italic; font-size: 16px; }
.fact-card .agent {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(31, 27, 22, 0.12);
  display: flex;
  gap: 16px;
  align-items: center;
}
.fact-card .agent .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #e9e2d4;
  overflow: hidden;
}
.fact-card .agent .avatar img { width:100%; height:100%; object-fit:cover; }
.fact-card .agent .name { font-family: var(--serif); font-size: 18px; }
.fact-card .agent .role { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #7a7164; }
.fact-card .cta-pill {
  border-color: #b8924f;
  color: #5d4a2b;
  background: transparent;
}
.fact-card .cta-pill .dot { background: #b8924f; }
.fact-card .cta-pill:hover {
  background: var(--gold);
  color: #0d0e10;
}
.fact-card .cta-pill:hover .dot { background: #0d0e10; }

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .gallery-stage,
  .gallery-stage .slider-shell {
    min-height: 420px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  }
  .obj-body { grid-template-columns: 1fr; }
}

/* ============= Floating WhatsApp Widget =============
   Chat-style teaser: a round pulsing button with an unread badge opens
   a popup that looks like an incoming WhatsApp conversation — greeting
   message, "Chat starten" CTA and a reassurance line. */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: var(--sans);
}
.wa-float__btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #2bd96a, #1da851);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(29, 168, 81, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-float__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(29, 168, 81, 0.55);
}
.wa-float__btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.wa-float__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  animation: waPulse 2.4s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-float__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 2.5px solid #fff;
}
.wa-float.seen .wa-float__badge { display: none; }

.wa-float__popup {
  width: min(340px, calc(100vw - 44px));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.wa-float.open .wa-float__popup {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}
.wa-float__head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #128c46, #0e7a3c);
  color: #fff;
  padding: 15px 16px;
}
.wa-float__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--bg-3), var(--bg));
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
}
.wa-float__avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #0e7a3c;
}
.wa-float__who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.wa-float__who b { font-size: 15.5px; font-weight: 700; }
.wa-float__who span { font-size: 12px; opacity: 0.85; }
.wa-float__close {
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 24px;
  line-height: 1;
  padding: 4px 6px;
}
.wa-float__close:hover { color: #fff; }
.wa-float__body {
  background: #e9efe6;
  padding: 16px 16px 14px;
}
.wa-float__msg {
  position: relative;
  background: #fff;
  border-radius: 4px 14px 14px 14px;
  padding: 13px 15px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 14.5px;
  line-height: 1.55;
  color: #3a4148;
  display: grid;
  gap: 8px;
}
.wa-float__msg p { margin: 0; }
.wa-float__time {
  position: absolute;
  right: 12px;
  bottom: 7px;
  font-size: 11px;
  color: #97a0a8;
}
.wa-float__cta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(180deg, #2bd96a, #1da851);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 8px 20px rgba(29, 168, 81, 0.3);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.wa-float__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(29, 168, 81, 0.42);
}
.wa-float__cta svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: currentColor;
}
.wa-float__note {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #97a0a8;
}
@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__btn { width: 56px; height: 56px; }
  .wa-float__btn svg { width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float__btn::before { animation: none; }
  .wa-float__popup { transition: none; }
}

/* ============= Selection / scrollbar ============= */
::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
