/* ─────────────────────────────────────────────────────────────
   Saphir des Mamelles — Saiga SARL
   Design tokens & global styles
   ───────────────────────────────────────────────────────────── */

:root {
  /* Bleu nuit — slightly violet, deep */
  --ink-900: oklch(0.16 0.045 265);
  --ink-800: oklch(0.21 0.045 265);
  --ink-700: oklch(0.28 0.04 265);
  --ink-600: oklch(0.38 0.035 265);
  --ink-300: oklch(0.62 0.025 265);
  --ink-100: oklch(0.92 0.012 265);

  /* Or — warm classical gold */
  --gold-700: oklch(0.62 0.10 78);
  --gold-500: oklch(0.78 0.11 82);
  --gold-400: oklch(0.84 0.09 84);
  --gold-200: oklch(0.93 0.04 85);

  /* Crème / off-whites */
  --paper: oklch(0.972 0.012 80);
  --paper-2: oklch(0.945 0.014 80);
  --bone: oklch(0.88 0.018 80);

  --type-900: oklch(0.18 0.04 265);
  --type-500: oklch(0.42 0.02 265);
  --type-300: oklch(0.62 0.015 265);

  --serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;

  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 64px);

  --ease-out: cubic-bezier(.16,.84,.32,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

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

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

::selection { background: var(--gold-500); color: var(--ink-900); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.mono  { font-family: var(--mono); }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.gold { color: var(--gold-500); }
.muted { color: var(--type-500); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.container-wide {
  max-width: 1560px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.rule { height: 1px; background: currentColor; opacity: 0.18; border: 0; }
.rule-gold { height: 1px; background: var(--gold-500); border: 0; opacity: 1; }
.hairline { border: 1px solid rgba(255,255,255,0.16); }
.hairline-dark { border: 1px solid oklch(0.78 0.02 265 / 0.18); }

/* ─── Layout sections ───────────────────────────────────────── */
section { position: relative; }
.section-light { background: var(--paper); color: var(--type-900); }
.section-dark  { background: var(--ink-900); color: var(--paper); }
.section-cream { background: var(--paper-2); color: var(--type-900); }

.section-pad { padding-block: clamp(72px, 11vw, 160px); }
.section-pad-sm { padding-block: clamp(56px, 8vw, 110px); }

/* Type scale */
.h-display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.96; letter-spacing: -0.02em;
}
.h-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02; letter-spacing: -0.012em;
}
.h-sub {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.18; letter-spacing: -0.005em;
}
.body-lg {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6; font-weight: 350;
}
.body-md { font-size: 15px; line-height: 1.6; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: all 0.5s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn::after {
  content: '→'; font-size: 14px; letter-spacing: 0;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::after { transform: translateX(6px); }
.btn-gold { background: var(--gold-500); color: var(--ink-900); border-color: var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn-ghost-light { color: var(--paper); border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-ghost-dark { color: var(--ink-900); border-color: var(--ink-900); }
.btn-ghost-dark:hover { background: var(--ink-900); color: var(--paper); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 720px; max-height: 1080px;
  background: var(--ink-900);
  overflow: hidden; color: var(--paper);
  display: grid;
  grid-template-columns: 1.08fr 1fr;
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 38% 60% at 78% 40%, oklch(0.30 0.05 78 / 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 20% 70%, oklch(0.22 0.05 265) 0%, transparent 60%),
    linear-gradient(180deg, oklch(0.18 0.05 265) 0%, oklch(0.13 0.04 265) 100%);
}
.hero-stars {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(1px 1px at 10% 14%, rgba(229,201,127,0.5), transparent 60%),
    radial-gradient(1px 1px at 22% 26%, rgba(229,201,127,0.4), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 8%, rgba(229,201,127,0.55), transparent 60%),
    radial-gradient(1px 1px at 48% 22%, rgba(229,201,127,0.45), transparent 60%),
    radial-gradient(1px 1px at 14% 42%, rgba(229,201,127,0.35), transparent 60%),
    radial-gradient(1px 1px at 30% 58%, rgba(229,201,127,0.4), transparent 60%);
  opacity: 0.7; pointer-events: none;
}
.hero-right { position: relative; overflow: hidden; z-index: 2; }
.hero-image {
  position: absolute; left: 50%; top: clamp(40px, 6vh, 80px);
  transform: translateX(-50%) translateY(0);
  height: auto; width: min(100%, 760px); max-width: 100%;
  filter: saturate(0.85) brightness(0.97) contrast(1.03);
  will-change: transform; pointer-events: none;
}
.hero-right::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg,
    transparent 0%, transparent 75%,
    oklch(0.13 0.04 265 / 0.5) 95%, oklch(0.13 0.04 265 / 0.85) 100%);
}
.hero-content {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 4vw, 80px);
}
.hero-title-wrap { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold-500);
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 6.2vw, 120px);
  line-height: 0.94; letter-spacing: -0.022em; margin: 0;
}
.hero-title em { font-style: italic; color: var(--gold-500); font-weight: 300; display: block; }
.hero-rule { width: 64px; height: 1px; background: var(--gold-500); margin: 8px 0 0; opacity: 0.85; }
.hero-sub {
  max-width: 480px; font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6; color: oklch(0.95 0.012 265 / 0.78); margin: 0; font-weight: 350;
}
.hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--pad-x) 22px;
  color: oklch(0.92 0.012 265 / 0.5);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500;
  pointer-events: none;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { position: absolute; inset: 0; z-index: 1; opacity: 0.55; }
  .hero-image { width: min(120%, 600px); left: auto; right: -10%; transform: translateY(0); }
  .hero-content {
    grid-column: 1; grid-row: 1; z-index: 5;
    justify-content: flex-end;
    padding-bottom: clamp(60px, 10vw, 120px);
  }
  .hero-content::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, oklch(0.13 0.04 265 / 0.4) 0%, oklch(0.13 0.04 265 / 0.85) 60%);
    pointer-events: none; z-index: -1;
  }
}

/* ─── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--paper);
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.14 0.04 265 / 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 14px;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: -0.005em; line-height: 1;
}
.nav-logo .mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--gold-500); color: var(--gold-500);
  font-family: var(--serif); font-style: italic; font-size: 18px;
}
.nav-logo .name { line-height: 1; }
.nav-logo .name small {
  display: block; font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.6; margin-top: 5px; font-weight: 500;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.nav-links a { position: relative; padding: 6px 0; opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--gold-500); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: flex; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  border: 1px solid currentColor;
}
.lang-switch button { padding: 7px 12px; opacity: 0.6; transition: all 0.3s; font-weight: 500; letter-spacing: 0.16em; }
.lang-switch button.on { background: var(--gold-500); color: var(--ink-900); border-color: var(--gold-500); opacity: 1; }
.lang-switch button:not(.on):hover { opacity: 1; }

.nav-burger { display: none; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 60;
  background: oklch(0.14 0.04 265 / 0.98);
  backdrop-filter: blur(16px); color: var(--paper);
  padding: 24px var(--pad-x);
  display: none; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}
.nav-mobile.open { transform: translateY(0); }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 1px solid currentColor;
  }
  .nav-burger span { width: 18px; height: 1px; background: currentColor; display: block; margin: 4px 0; transition: transform 0.3s; }
  .nav-mobile { display: flex; }
  .nav-mobile .links {
    display: flex; flex-direction: column; gap: 24px;
    margin-top: 80px;
    font-family: var(--serif); font-size: 36px; font-weight: 300;
    letter-spacing: -0.01em; line-height: 1;
  }
  .nav-mobile .links a { color: var(--paper); }
  .nav-mobile .meta {
    margin-top: auto; display: flex; flex-direction: column; gap: 18px;
    padding-block: 40px; border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* ─── Stats strip — solid navy, sits flush below hero ───────── */
.section-stats-glass {
  position: relative;
  z-index: 10;
  margin-top: 0;
  background: var(--ink-900);
  color: var(--paper);
  border-top: 1px solid oklch(1 0 0 / 0.1);
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 3.5vw, 48px);
  border-top: none;
}
.section-light .stats { border-top-color: oklch(0.78 0.02 265 / 0.15); }
.stat .v {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 4.8vw, 80px);
  line-height: 0.95; letter-spacing: -0.018em; color: var(--gold-500);
}
.stat .l {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 18px; color: inherit; opacity: 0.62; line-height: 1.5;
  max-width: 22ch; font-weight: 500;
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }

/* ─── Editorial two-column ──────────────────────────────────── */
.editorial {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.editorial .meta { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; }
@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; gap: 28px; } }

/* Vision left column building image */
.vision-img {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-top: 28px;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 8px 24px oklch(0.10 0.04 265 / 0.22));
}
@media (max-width: 900px) { .vision-img { max-width: 140px; } }

/* ─── Quartier — Leaflet map ────────────────────────────────── */
.quartier-frame {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0;
  border: 1px solid oklch(1 0 0 / 0.1);
  overflow: hidden;
}
.quartier-map-wrap {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.quartier-aside {
  border-left: 1px solid oklch(1 0 0 / 0.1);
  padding: 36px clamp(24px, 2.4vw, 40px);
  display: flex; flex-direction: column;
  background: oklch(0.13 0.04 265);
}
@media (max-width: 980px) {
  .quartier-frame { grid-template-columns: 1fr; }
  .quartier-map-wrap { min-height: 420px; }
  .quartier-aside { border-left: 0; border-top: 1px solid oklch(1 0 0 / 0.1); }
}
.quartier-aside-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 22px;
}
.pin-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid oklch(1 0 0 / 0.07);
  cursor: pointer;
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.pin-row:last-child { border-bottom: 0; }
.pin-row:hover { padding-left: 6px; }
.pin-row.active { padding-left: 12px; background: oklch(1 0 0 / 0.025); }
.pin-row.active .pin-code { background: var(--gold-500); color: var(--ink-900); border-color: var(--gold-500); }
.pin-code {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  border: 1px solid oklch(1 0 0 / 0.28); color: var(--gold-500);
  transition: all 0.3s;
}
.pin-info { min-width: 0; }
.pin-info .name { font-family: var(--serif); font-size: 16px; font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; }
.pin-info .d { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin-top: 4px; font-family: var(--mono); }
.pin-row .pin-arrow {
  font-size: 11px; letter-spacing: 0.16em; color: var(--gold-500);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-6px);
}
.pin-row.active .pin-arrow, .pin-row:hover .pin-arrow { opacity: 1; transform: translateX(0); }
.pin-row.off .pin-code { border-style: dashed; }

/* Leaflet container */
.leaflet-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Override Leaflet default marker icon (we use divIcon exclusively) */
.leaflet-marker-icon { background: none !important; border: none !important; box-shadow: none !important; }

/* Leaflet zoom control — match design */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}
.leaflet-control-zoom a {
  background: oklch(0.14 0.04 265 / 0.92) !important;
  color: var(--gold-500) !important;
  border: 1px solid oklch(1 0 0 / 0.15) !important;
  font-family: var(--mono) !important;
  font-size: 16px !important;
  line-height: 26px !important;
  width: 28px !important;
  height: 28px !important;
  transition: background 0.2s !important;
}
.leaflet-control-zoom a:hover { background: oklch(0.20 0.04 265) !important; }

/* Attribution */
.leaflet-control-attribution {
  background: oklch(0.14 0.04 265 / 0.75) !important;
  color: oklch(0.92 0.012 265 / 0.5) !important;
  font-family: var(--mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.08em !important;
  padding: 2px 6px !important;
}
.leaflet-control-attribution a { color: var(--gold-500) !important; }

/* ── Saphir custom map markers ── */

/* Residence */
.saphir-residence-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.saphir-residence-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #C9A96E;
  transform: translate(-50%, -50%);
  animation: saphir-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.saphir-residence-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #C9A96E;
  border: 2.5px solid #0d1128;
  position: relative; z-index: 1;
}
.saphir-residence-label {
  margin-top: 5px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
  color: #0d1128;
  white-space: nowrap;
  background: rgba(255, 248, 230, 0.9);
  padding: 2px 7px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

@keyframes saphir-pulse {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(2.8); opacity: 0; }
}

/* POI markers */
.saphir-poi-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.saphir-poi-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #C9A96E;
  border: 2px solid #0d1128;
  transition: transform 0.25s ease, background 0.25s ease;
}
.saphir-poi-wrap.active .saphir-poi-dot,
.saphir-poi-wrap:hover .saphir-poi-dot {
  transform: scale(1.5);
  background: #dcc080;
}
.saphir-poi-tooltip {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  background: rgba(13, 17, 40, 0.88);
  color: #f0ece0;
  padding: 5px 10px 6px;
  border-radius: 2px;
  border: 1px solid rgba(201, 169, 110, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.saphir-poi-wrap.active .saphir-poi-tooltip,
.saphir-poi-wrap:hover .saphir-poi-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.saphir-poi-tooltip .poi-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #f0ece0;
}
.saphir-poi-tooltip .poi-dist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-top: 2px;
}

/* ─── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 6px;
}
.gal-item { position: relative; overflow: hidden; background: var(--ink-800); color: var(--paper); }
.gal-item.placeholder {
  background-image:
    repeating-linear-gradient(135deg,
      oklch(0.22 0.045 265) 0px, oklch(0.22 0.045 265) 8px,
      oklch(0.18 0.045 265) 8px, oklch(0.18 0.045 265) 16px);
}
.gal-real img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gal-item:hover .gal-real img { transform: scale(1.04); }
.gal-label {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(0deg, oklch(0.10 0.03 265 / 0.85), transparent);
  color: oklch(0.92 0.012 265 / 0.85);
}
.gal-label .idx { color: var(--gold-500); }
.gs-6-3 { grid-column: span 6; grid-row: span 3; }
.gs-3-2 { grid-column: span 3; grid-row: span 2; }
.gs-3-3 { grid-column: span 3; grid-row: span 3; }
.gs-4-2 { grid-column: span 4; grid-row: span 2; }
.gs-4-3 { grid-column: span 4; grid-row: span 3; }
.gs-5-2 { grid-column: span 5; grid-row: span 2; }
.gs-7-2 { grid-column: span 7; grid-row: span 2; }
.gs-8-3 { grid-column: span 8; grid-row: span 3; }
.gs-12-2 { grid-column: span 12; grid-row: span 2; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 140px; }
  .gs-6-3, .gs-3-2, .gs-3-3, .gs-4-2, .gs-4-3, .gs-5-2, .gs-7-2, .gs-8-3 {
    grid-column: span 6; grid-row: span 2;
  }
}

/* ─── Plans ─────────────────────────────────────────────────── */
.typo-tabs {
  display: flex; gap: 0;
  border-top: 1px solid oklch(0.78 0.02 265 / 0.2);
  border-bottom: 1px solid oklch(0.78 0.02 265 / 0.2);
  margin-block: 48px 0;
}
.typo-tab {
  flex: 1; padding: 28px 24px; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid oklch(0.78 0.02 265 / 0.15);
  background: transparent; color: var(--type-900);
  transition: all 0.5s var(--ease-out); position: relative;
}
.typo-tab:last-child { border-right: 0; }
.typo-tab .id { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; opacity: 0.5; }
.typo-tab .name { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.005em; line-height: 1.1; }
.typo-tab .surf { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-700); opacity: 0.85; margin-top: 4px; }
.typo-tab::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0;
  height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.typo-tab.active { background: var(--ink-900); color: var(--paper); }
.typo-tab.active::before { transform: scaleX(1); }
.typo-tab.active .surf { color: var(--gold-500); opacity: 1; }
.typo-tab:hover:not(.active) { background: var(--paper-2); }
@media (max-width: 800px) {
  .typo-tabs { flex-direction: column; }
  .typo-tab { border-right: 0; border-bottom: 1px solid oklch(0.78 0.02 265 / 0.15); }
  .typo-tab:last-child { border-bottom: 0; }
}
.typo-detail {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: 0; background: var(--ink-900); color: var(--paper);
}
.typo-plan {
  position: relative; min-height: 620px;
  padding: clamp(40px, 5vw, 80px);
  display: grid; place-items: center;
}
.typo-plan::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, oklch(0.22 0.045 265) 0%, oklch(0.16 0.045 265) 100%);
  z-index: 0;
}
.typo-info {
  padding: clamp(48px, 5vw, 80px) clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column; gap: 28px;
  border-left: 1px solid oklch(1 0 0 / 0.08);
}
@media (max-width: 900px) {
  .typo-detail { grid-template-columns: 1fr; }
  .typo-plan { min-height: 420px; padding: 40px 24px; }
  .typo-info { border-left: 0; border-top: 1px solid oklch(1 0 0 / 0.08); }
}
.typo-features {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid oklch(1 0 0 / 0.12); padding-top: 8px;
}
.typo-features li {
  list-style: none; font-size: 14px; line-height: 1.5;
  padding: 12px 0 12px 22px; position: relative;
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
  color: oklch(0.95 0.012 265 / 0.85);
}
.typo-features li:last-child { border-bottom: 0; }
.typo-features li::before {
  content: ''; position: absolute; left: 0; top: 22px;
  width: 10px; height: 1px; background: var(--gold-500);
}
.plan-svg { position: relative; z-index: 1; width: 100%; height: auto; max-width: 720px; }
.plan-svg .outer { stroke: var(--gold-500); stroke-width: 1.6; fill: none; }
.plan-svg .inner { stroke: oklch(0.92 0.012 265 / 0.62); stroke-width: 0.45; fill: none; stroke-linecap: square; }
.plan-svg .terrace { fill: none; stroke: var(--gold-500); stroke-width: 0.5; stroke-dasharray: 1.2 0.9; opacity: 0.85; }
.plan-svg .room-name { fill: oklch(0.95 0.012 265 / 0.88); font-family: var(--serif); font-size: 6px; letter-spacing: 0.02em; font-weight: 400; }
.plan-svg .room-area { fill: oklch(0.78 0.11 82 / 0.78); font-family: var(--mono); font-size: 3.4px; letter-spacing: 0.18em; text-transform: uppercase; }
.plan-svg .frame-label { fill: oklch(0.92 0.012 265 / 0.42); font-family: var(--mono); font-size: 3.2px; letter-spacing: 0.32em; text-transform: uppercase; }
.plan-svg .frame-rule { stroke: oklch(0.92 0.012 265 / 0.18); stroke-width: 0.2; }
.plan-svg .compass { fill: var(--gold-500); }

/* ─── Form ──────────────────────────────────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 0; border: 1px solid oklch(0.78 0.02 265 / 0.2); background: var(--paper);
}
.form-side {
  padding: 56px clamp(28px, 4vw, 56px);
  background: var(--ink-900); color: var(--paper);
  display: flex; flex-direction: column; gap: 24px;
}
.form-pane { padding: 56px clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--type-500); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--sans); font-size: 15px;
  padding: 10px 0; border: 0;
  border-bottom: 1px solid oklch(0.78 0.02 265 / 0.3);
  background: transparent; color: var(--type-900); border-radius: 0;
  outline: none; transition: border-color 0.3s;
}
.field textarea { min-height: 80px; resize: vertical; padding-top: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold-500); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--type-500); }
.consent input { accent-color: var(--gold-500); margin-top: 2px; }
.brochure-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px; margin-top: auto;
  border: 1px solid oklch(1 0 0 / 0.18);
  transition: all 0.4s var(--ease-out); cursor: pointer;
}
.brochure-card:hover { background: oklch(1 0 0 / 0.04); border-color: var(--gold-500); }
.brochure-card .ico {
  width: 48px; height: 48px; flex: none;
  border: 1px solid var(--gold-500);
  display: grid; place-items: center; color: var(--gold-500);
}
.brochure-card .meta { flex: 1; }
.brochure-card .meta .l { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.brochure-card .meta .s { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-top: 4px; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer { background: var(--ink-900); color: var(--paper); padding-top: 96px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--gold-500); margin: 0 0 18px;
}
.footer-col p, .footer-col a { display: block; font-size: 14px; line-height: 1.6; margin: 6px 0; opacity: 0.8; }
.footer-brand { font-family: var(--serif); font-size: 32px; font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 28px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; opacity: 0.6;
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ─── Reveal-on-scroll ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
