/* ══════════════════════════════════════════════════════════════
   AFFORDABLE LIVING — Design System v2
   Palette: Off-white · Graphite · Mauve · Warm Wood
   Fonts: Playfair Display (serif) + Outfit (sans)
   ══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          #F7F6F4;   /* warm off-white – apartment walls */
  --bg-alt:      #F0EEE9;   /* slightly deeper cream */
  --surface:     #FFFFFF;
  --surface-dim: #F4F2EF;

  --ink:         #141414;   /* near-black graphite */
  --ink-mid:     #3A3A3A;
  --ink-soft:    #6B6B6B;
  --ink-ghost:   #ABABAB;

  --mauve:       #5C4F6A;   /* signature accent – plum curtains of W25 */
  --mauve-light: #7A6B88;
  --mauve-pale:  #EDE8F2;   /* very light tint */

  --wood:        #C4A27C;   /* warm honey/wood from floors */
  --wood-dark:   #9E7D54;

  --white:       #FFFFFF;
  --black:       #0A0A0A;

  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;

  /* Type scale */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.25rem;
  --t-xl:   1.5rem;
  --t-2xl:  2rem;
  --t-3xl:  2.75rem;
  --t-hero: clamp(2.8rem, 7vw, 5.5rem);

  /* Spacing (4-pt grid) */
  --sp-1: 0.25rem;   /* 4px  */
  --sp-2: 0.5rem;    /* 8px  */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-6: 1.5rem;    /* 24px */
  --sp-8: 2rem;      /* 32px */
  --sp-12: 3rem;     /* 48px */
  --sp-16: 4rem;     /* 64px */
  --sp-24: 6rem;     /* 96px */
  --sp-32: 8rem;     /* 128px */

  /* Layout */
  --max-w: 1240px;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
  --nav-h: 68px;

  /* Shadows */
  --sh-sm:  0 1px 4px rgba(20,20,20,.06), 0 1px 2px rgba(20,20,20,.04);
  --sh-md:  0 4px 16px rgba(20,20,20,.08), 0 2px 6px rgba(20,20,20,.05);
  --sh-lg:  0 12px 40px rgba(20,20,20,.12), 0 4px 12px rgba(20,20,20,.07);
  --sh-xl:  0 24px 60px rgba(20,20,20,.16), 0 8px 24px rgba(20,20,20,.09);
  --sh-mauve: 0 8px 28px rgba(92,79,106,.3);

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-pill:9999px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-base:   280ms;
  --dur-slow:   500ms;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--sans); }

:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Utilities ────────────────────────────────────────────────── */
.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.dsk { display: none; }

/* ── Section labels ───────────────────────────────────────────── */
.sec-eye {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: var(--sp-3);
}

.sec-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sec-title em {
  font-style: italic;
  color: var(--mauve);
}

.sec-sub {
  margin-top: var(--sp-4);
  font-size: var(--t-md);
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .875rem 2rem;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: var(--r-pill);
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--mauve);
  color: var(--white);
  box-shadow: var(--sh-mauve);
}
.btn-primary:hover {
  background: var(--mauve-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(92,79,106,.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--mauve);
  border: 1.5px solid var(--mauve);
}
.btn-outline:hover {
  background: var(--mauve);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--sh-mauve);
}

.btn-sm { padding: .625rem 1.375rem; font-size: var(--t-xs); }
.btn-full { width: 100%; }

/* ── Reveal Animations ────────────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }

[data-delay="1"] { transition-delay: 110ms; }
[data-delay="2"] { transition-delay: 220ms; }
[data-delay="3"] { transition-delay: 330ms; }
[data-delay="4"] { transition-delay: 440ms; }
[data-delay="5"] { transition-delay: 550ms; }

.is-vis.reveal-up,
.is-vis.reveal-left,
.is-vis.reveal-right { opacity: 1; transform: translate(0); }

/* Hero-specific reveal */
.reveal-hero {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-hero[data-d="0"] { transition-delay: 200ms; }
.reveal-hero[data-d="1"] { transition-delay: 400ms; }
.reveal-hero[data-d="2"] { transition-delay: 600ms; }
.reveal-hero[data-d="3"] { transition-delay: 800ms; }
.reveal-hero.is-vis { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.nav--solid {
  background: rgba(247,246,244,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(20,20,20,.08);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo-wordmark,
.footer__wordmark {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--white);
  transition: color var(--dur-base);
  line-height: 1;
}

.nav__logo-wordmark em,
.footer__wordmark em {
  font-style: italic;
  color: var(--wood);
}

.nav--solid .nav__logo-wordmark {
  color: var(--ink);
}
.nav--solid .nav__logo-wordmark em {
  color: var(--mauve);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__link {
  font-size: var(--t-sm);
  font-weight: 400;
  color: rgba(255,255,255,.8);
  letter-spacing: .02em;
  transition: color var(--dur-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--mauve);
  transition: width var(--dur-base) var(--ease-out);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.nav--solid .nav__link { color: var(--ink-soft); }
.nav--solid .nav__link:hover { color: var(--ink); }

.nav__btn {
  padding: .55rem 1.4rem;
  background: var(--mauve);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: all var(--dur-base) var(--ease-out);
}
.nav__btn:hover {
  background: var(--mauve-light);
  transform: translateY(-1px);
  box-shadow: var(--sh-mauve);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-2);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--dur-base) var(--ease-out);
  transform-origin: center;
}
.nav--solid .nav__burger span { background: var(--ink); }

.nav__burger[aria-expanded="true"] span:first-child {
  transform: translateY(7.5px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   HERO — Cinematic Dom-Overlook Zoom (300vh pinned)
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 300vh;
  background: #191420;
  z-index: 1;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Scene layers */
.hero__scene {
  position: absolute;
  inset: 0;
}
.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__layer svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__layer--sky  { transform-origin: 50% 60%; }
.hero__layer--far  { transform-origin: 50% 70%; }
.hero__layer--city { transform-origin: 50% 72%; }
.hero__layer--dom  { transform-origin: 50% 80%; }

/* Stars twinkle */
.hero__stars circle {
  animation: starTwinkle 3.4s ease-in-out infinite;
}
.hero__stars circle:nth-of-type(2n)  { animation-delay: .7s; animation-duration: 4.1s; }
.hero__stars circle:nth-of-type(3n)  { animation-delay: 1.5s; animation-duration: 2.9s; }
.hero__stars circle:nth-of-type(5n)  { animation-delay: 2.2s; }
@keyframes starTwinkle {
  0%,100% { opacity: .9; }
  50%     { opacity: .25; }
}

/* Lit windows flicker softly */
.hero__wins rect {
  animation: winGlow 5.5s ease-in-out infinite;
}
.hero__wins rect:nth-of-type(2n) { animation-delay: 1.3s; }
.hero__wins rect:nth-of-type(3n) { animation-delay: 2.6s; animation-duration: 7s; }
@keyframes winGlow {
  0%,100% { opacity: 1; }
  50%     { opacity: .55; }
}

/* River reflections */
.hero__refl rect { opacity: .28; }

/* Vignette */
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 42%, transparent 55%, rgba(10,7,16,.55) 100%);
}

/* Fade-out into stats section */
.hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,20,20,0) 30%, #141414 100%);
  opacity: 0;
}

/* Hero content phases */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: var(--pad-x);
  padding-top: var(--nav-h);
}
.hero__content > * { max-width: 840px; }

.hero__content--mid {
  opacity: 0;
  pointer-events: none;
}

.hero__kicker {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: var(--sp-4);
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--t-hero);
  font-weight: 400;
  line-height: 1.06;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  text-shadow: 0 2px 30px rgba(10,7,16,.5);
}
.hero__title em {
  font-style: italic;
  color: var(--wood);
}

.hero__sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: var(--sp-8);
  letter-spacing: .01em;
  text-shadow: 0 1px 18px rgba(10,7,16,.6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* Wood accent on hero primary CTA — pops against mauve sky */
.hero .btn-primary {
  background: var(--wood);
  border-color: var(--wood);
  color: #1B1410;
}
.hero .btn-primary:hover {
  background: #D4B68F;
  border-color: #D4B68F;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem,4%,3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.55);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity .4s var(--ease-out);
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55));
  animation: scrollBob 2.2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: .4; transform: scaleY(.6); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero__stage { position: relative; height: 100%; }
  .hero__content--mid { display: none; }
  .hero__stars circle,
  .hero__wins rect,
  .hero__scroll-line { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════════ */
.stats {
  background: var(--ink);
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #1F1A26 0%, var(--ink) 60%);
}

.stats__track {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
}

.stats__item {
  text-align: center;
  padding: var(--sp-4);
}

.stats__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--wood);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}

.stats__desc {
  display: block;
  font-size: var(--t-xs);
  color: rgba(247,246,244,.5);
  line-height: 1.5;
  letter-spacing: .02em;
}
.stats__desc em {
  display: block;
  font-style: normal;
  font-size: 10px;
  opacity: .7;
  margin-top: 2px;
}

.stats__sep {
  width: 1px;
  height: 52px;
  background: rgba(247,246,244,.1);
}

/* ══════════════════════════════════════════════════════════════
   APARTMENTS
   ══════════════════════════════════════════════════════════════ */
.apts {
  padding: var(--sp-32) 0;
  background: var(--bg);
}
.apts::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(92,79,106,.2), transparent);
}

/* Date bar */
.date-bar {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-16);
  border: 1px solid rgba(20,20,20,.06);
}
.date-bar__inner {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.date-bar__field {
  flex: 1;
  min-width: 130px;
}
.date-bar__field label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}
.date-bar__field--sm { flex: 0 0 90px; }
.date-bar__arrow {
  color: var(--ink-ghost);
  font-size: var(--t-lg);
  padding-bottom: .75rem;
  flex-shrink: 0;
}

input[type=date],
input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid rgba(20,20,20,.1);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--mauve);
  box-shadow: 0 0 0 3px rgba(92,79,106,.14);
}
input::placeholder,
textarea::placeholder { color: var(--ink-ghost); }

select {
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.5 6L10 1' stroke='%236B6B6B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; }

/* Loading */
.apts__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-24);
  color: var(--ink-soft);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(92,79,106,.2);
  border-top-color: var(--mauve);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Apartment grid */
.apts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

/* ── Apartment Card ─────────────────────────────────────────── */
.apt {
  background: var(--surface);
  border-radius: var(--r-lg);
  /* clip-path instead of overflow:hidden — stays clipped during 3D tilt */
  clip-path: inset(0 round var(--r-lg));
  box-shadow: var(--sh-md);
  border: 1px solid rgba(20,20,20,.05);
  transition: box-shadow var(--dur-base) var(--ease-out),
              clip-path 0s;
  transform-style: preserve-3d;
}
.apt:hover { box-shadow: var(--sh-xl); }

/* Gallery */
.apt__gallery {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-dim);
}
.apt__gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.apt__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.apt__slide--active { opacity: 1; }
.apt__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.apt:hover .apt__slide--active .apt__img {
  transform: scale(1.04);
}

/* Gallery dots */
.apt__gallery-dots {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 5;
}
.apt__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: background var(--dur-base), transform var(--dur-base);
  cursor: pointer;
}
.apt__dot--active {
  background: var(--white);
  transform: scale(1.3);
}

/* Gallery arrows */
.apt__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.35);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-base);
  user-select: none;
}
.apt__arrow:hover { background: rgba(0,0,0,.6); }
.apt__arrow--prev { left: var(--sp-3); }
.apt__arrow--next { right: var(--sp-3); }

/* Tag badge */
.apt__tag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* Card body */
.apt__body { padding: var(--sp-6); }

.apt__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}
.apt__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.apt__rating {
  font-size: var(--t-sm);
  color: var(--wood-dark);
  font-weight: 500;
}

.apt__name {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}

.apt__desc {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.apt__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.apt__features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.apt__features li svg { flex-shrink: 0; color: var(--mauve); }

.apt__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(20,20,20,.07);
}
.apt__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.apt__price-val {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 500;
  color: var(--ink);
}
.apt__price-unit {
  font-size: var(--t-xs);
  color: var(--ink-soft);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
.about {
  padding: var(--sp-32) 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.about__img-wrap {
  position: relative;
  padding-bottom: var(--sp-8);
  padding-right: var(--sp-8);
}
.about__img-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - var(--sp-6));
  height: calc(100% - var(--sp-6));
  border: 2px solid var(--mauve-pale);
  border-radius: var(--r-lg);
}
.about__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--sh-lg);
}

.about__img-card {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 2;
  background: rgba(247,246,244,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(247,246,244,.7);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--sh-md);
}
.about__img-card span {
  display: block;
  font-family: var(--serif);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink);
}
.about__img-card em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--mauve);
  margin-top: 2px;
  letter-spacing: .04em;
}

/* Text side */
.about__text-side .sec-title { text-align: left; }

.about__lead {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.about__body {
  font-size: var(--t-base);
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.about__text-side .btn { margin-top: var(--sp-4); }

/* ══════════════════════════════════════════════════════════════
   USPs
   ══════════════════════════════════════════════════════════════ */
.usp {
  padding: var(--sp-32) 0;
  background: var(--bg);
}

.usp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.usp__card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid rgba(20,20,20,.05);
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.usp__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}
.usp__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mauve), var(--wood));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.usp__card:hover::after { transform: scaleX(1); }

.usp__ico {
  width: 48px;
  height: 48px;
  background: var(--mauve-pale);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mauve);
  margin-bottom: var(--sp-4);
  transition: background var(--dur-base), color var(--dur-base),
              transform var(--dur-base) var(--ease-spring);
}
.usp__card:hover .usp__ico {
  background: var(--mauve);
  color: var(--white);
  transform: rotate(-6deg) scale(1.1);
}

.usp__title {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.usp__text {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}

.usp__num {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-family: var(--serif);
  font-size: 3.5rem;
  font-style: italic;
  color: rgba(92,79,106,.05);
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
  transition: color var(--dur-base);
}
.usp__card:hover .usp__num {
  color: rgba(92,79,106,.1);
}

/* CTA card */
.usp__card--cta {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-12) var(--sp-8);
}
.usp__card--cta::after {
  background: linear-gradient(90deg, var(--wood), var(--mauve));
}
.usp__cta-quote {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-style: italic;
  color: rgba(247,246,244,.9);
  line-height: 1.5;
  margin-bottom: var(--sp-6);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--sp-32) 0;
  background: var(--bg-alt);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  grid-template-rows: auto auto;
  gap: var(--sp-12) clamp(3rem, 7vw, 7rem);
}

.contact__info .sec-title { text-align: left; }

.contact__lead {
  font-size: var(--t-base);
  color: var(--ink-soft);
  line-height: 1.75;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.contact__list { display: flex; flex-direction: column; gap: var(--sp-5); }

.contact__row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.contact__ico {
  width: 38px;
  height: 38px;
  background: var(--mauve-pale);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mauve);
  flex-shrink: 0;
}
.contact__row strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.contact__row span,
.contact__row a {
  display: block;
  font-size: var(--t-sm);
  color: var(--ink-mid);
  line-height: 1.6;
}
.contact__row a:hover { color: var(--mauve); }

/* Form wrapper */
.contact__form-wrap {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--sh-md);
  border: 1px solid rgba(20,20,20,.05);
}

/* Form rows */
.f-row {
  margin-bottom: var(--sp-4);
}
.f-row label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}
.f-row small { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .7; }
.f-err {
  display: block;
  font-size: var(--t-xs);
  color: #C0392B;
  min-height: .9rem;
  margin-top: 3px;
}
.f-ok {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: rgba(46,139,87,.1);
  border: 1px solid rgba(46,139,87,.25);
  border-radius: var(--r-md);
  color: #1E7A4A;
  font-size: var(--t-sm);
  text-align: center;
}

/* Map */
.contact__map {
  grid-column: 1 / -1;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.contact__map iframe {
  display: block;
  filter: grayscale(30%) sepia(8%);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  padding: var(--sp-12) 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.footer__brand p {
  font-size: var(--t-xs);
  color: rgba(247,246,244,.35);
  margin-top: var(--sp-2);
  letter-spacing: .04em;
}
.footer__nav {
  display: flex;
  gap: var(--sp-8);
}
.footer__nav a {
  font-size: var(--t-sm);
  color: rgba(247,246,244,.5);
  transition: color var(--dur-fast);
}
.footer__nav a:hover { color: var(--bg); }

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: var(--t-xs);
  color: rgba(247,246,244,.35);
  transition: color var(--dur-fast);
}
.footer__legal a:hover { color: var(--mauve-light); }
.footer__legal span {
  font-size: var(--t-xs);
  color: rgba(247,246,244,.2);
}

/* ══════════════════════════════════════════════════════════════
   BOOKING MODAL
   ══════════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.modal[hidden] { display: none; }

.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90svh;
  overflow-y: auto;
  padding: var(--sp-8);
  box-shadow: var(--sh-xl);
  animation: modalIn .3s var(--ease-out) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.97) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all var(--dur-fast);
}
.modal__close:hover { background: rgba(20,20,20,.1); color: var(--ink); }

.modal__title {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-1);
  padding-right: var(--sp-8);
}
.modal__apt-name {
  font-size: var(--t-sm);
  color: var(--mauve);
  margin-bottom: var(--sp-6);
}

.modal__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.modal__price {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(20,20,20,.07);
}
.modal__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-1);
}
.modal__price-row strong {
  font-family: var(--serif);
  font-size: var(--t-xl);
  color: var(--mauve);
}
.modal__price p {
  font-size: var(--t-xs);
  color: var(--ink-soft);
}

.modal__note, .modal__mail {
  margin-top: var(--sp-3);
  font-size: var(--t-xs);
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
}
.modal__mail a { color: var(--mauve); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .usp__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: var(--sp-12); }
  .about__img-wrap { max-width: 480px; margin-inline: auto; }
  .about__text-side .sec-title { text-align: center; }
  .about__text-side .sec-eye,
  .about__text-side .btn { display: block; margin-inline: auto; width: fit-content; }

  .stats__track { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .stats__sep { display: none; }

  .contact__inner { grid-template-columns: 1fr; }
  .contact__info .sec-title { text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Nav */
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + var(--sp-6)) var(--sp-6) var(--sp-6);
    gap: var(--sp-2);
    background: var(--bg);
    box-shadow: var(--sh-xl);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    z-index: 9;
  }
  .nav__links--open { transform: translateX(0); }
  .nav__link {
    color: var(--ink-soft);
    font-size: var(--t-lg);
    width: 100%;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid rgba(20,20,20,.06);
  }
  .nav__link:hover { color: var(--ink); }
  .nav__btn {
    margin-top: var(--sp-4);
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Hero */
  .hero__pin--1 { display: none; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: min(280px, 90%); }

  /* Stats */
  .stats__track { grid-template-columns: 1fr 1fr; }

  /* Apts */
  .apts__grid { grid-template-columns: 1fr; }
  .date-bar__inner { flex-direction: column; }
  .date-bar__field { width: 100%; }
  .date-bar__arrow { display: none; }

  /* USPs */
  .usp__grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
  .footer__legal { flex-direction: column; gap: var(--sp-2); }

  /* Modal */
  .modal__dates { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   LARGE SCREENS
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .dsk { display: inline; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left, .reveal-right, .reveal-hero {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   BAMBERG JOURNEY — fixed scroll background
   ══════════════════════════════════════════════════════════════ */
.journey {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Content paints above the journey */
.nav, main > section, .footer, .modal { position: relative; z-index: 1; }
.nav   { position: fixed; z-index: 900; }   /* keep original behaviour */
.modal { position: fixed; z-index: 1000; }

/* Sections become translucent so the journey shows through.
   Effective backgrounds stay ≥ ~#F2F1EE → text contrast unverändert. */
.apts    { background: rgba(247,246,244,.78); }
.usp     { background: rgba(247,246,244,.78); }
.about   { background: rgba(240,238,233,.8); }
.contact { background: rgba(240,238,233,.8); }

/* ── Layers ── */
.journey__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.journey__layer svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 86%;
  min-width: 1800px;
}
.journey__layer--sky svg { height: auto; }

/* ── Clouds ── */
.cloud {
  position: absolute;
  background: rgba(92,79,106,.07);
  border-radius: 999px;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud--1 { width: 180px; height: 38px; top: 16%; left: 8%;  animation: cloudDrift 90s linear infinite; }
.cloud--1::before { width: 70px; height: 70px; top: -32px; left: 30px; }
.cloud--1::after  { width: 50px; height: 50px; top: -20px; left: 92px; }
.cloud--2 { width: 130px; height: 30px; top: 28%; left: 56%; animation: cloudDrift 120s linear infinite reverse; }
.cloud--2::before { width: 52px; height: 52px; top: -24px; left: 24px; }
.cloud--2::after  { width: 38px; height: 38px; top: -15px; left: 68px; }
.cloud--3 { width: 220px; height: 44px; top: 9%;  left: 74%; animation: cloudDrift 140s linear infinite; }
.cloud--3::before { width: 84px; height: 84px; top: -38px; left: 40px; }
.cloud--3::after  { width: 60px; height: 60px; top: -24px; left: 118px; }

@keyframes cloudDrift {
  from { transform: translateX(-6vw); }
  50%  { transform: translateX(6vw); }
  to   { transform: translateX(-6vw); }
}

/* ── Balloon & birds ── */
.balloon {
  position: absolute;
  top: 13%;
  left: 68%;
  width: 54px;
  animation: balloonBob 8s ease-in-out infinite alternate;
}
@keyframes balloonBob {
  from { transform: translateY(0)     rotate(-1.5deg); }
  to   { transform: translateY(-22px) rotate(1.5deg); }
}

.birds {
  position: absolute;
  top: 24%;
  left: 16%;
  width: 130px;
  animation: birdsDrift 26s ease-in-out infinite alternate;
}
@keyframes birdsDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(8vw, -3vh); }
}

/* ── Water shimmer ── */
.journey__waves { animation: waveSway 5.5s ease-in-out infinite alternate; }
@keyframes waveSway {
  from { transform: translateX(0); }
  to   { transform: translateX(26px); }
}

/* ── Landmark captions ── */
.journey__captions {
  position: absolute;
  left: var(--pad-x);
  bottom: 7%;
}
.journey__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: max-content;
  max-width: 70vw;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.journey__caption.is-on { opacity: 1; transform: translateY(0); }
.journey__caption strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  font-style: italic;
  color: var(--mauve);
}
.journey__caption span {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-mid);
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: linear-gradient(90deg, var(--mauve), var(--wood));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ── Floating CTA ── */
.float-cta {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vh, 26px);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-4);
  background: var(--mauve);
  color: var(--white);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-mauve);
  opacity: 0;
  transform: translateY(140%);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), background var(--dur-fast);
  pointer-events: none;
}
.float-cta.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-cta:hover { background: var(--mauve-light); }
.float-cta:active { transform: scale(.97); }
.float-cta__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 600;
  font-size: var(--t-sm);
}
.float-cta__price small { font-weight: 400; opacity: .75; font-size: var(--t-xs); }
.float-cta__label {
  padding-left: var(--sp-3);
  border-left: 1px solid rgba(255,255,255,.3);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: .02em;
}

@media (max-width: 540px) {
  .float-cta__price { display: none; }
  .float-cta__label { padding-left: 0; border-left: 0; }
  .journey__caption strong { font-size: 1.05rem; }
}

/* ── Journey reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .journey__layer { transform: none !important; }
  .cloud, .balloon, .birds, .journey__waves { animation: none !important; }
  .journey__caption { transition: none; }
  .float-cta { transition: opacity .01ms; }
}

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--mauve); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--mauve-light); }
