/* ═══════════════════════════════════════════════════════════════
   FLOOR PLANS — CINEMATIC 3D EXPERIENCE
   Aesthetic: blueprint dossier × architectural cinema
   ═══════════════════════════════════════════════════════════════ */

.page-floor-plans {
  --fp-bg: #0a0a0c;
  --fp-paper: #f4efe6;
  --fp-ink: #16161a;
  --fp-red: #c8331f;
  --fp-amber: #d4a017;
  --fp-line: rgba(255,255,255,0.08);
  --fp-line-strong: rgba(255,255,255,0.18);
  --fp-text: #e9e6df;
  --fp-text-dim: rgba(233,230,223,0.55);
  --fp-text-faint: rgba(233,230,223,0.35);
  --fp-hotel: #c8a25b;
  --fp-office: #6e8aa3;
  --fp-retail: #c8331f;
  --fp-parking: #5a5a64;

  background: var(--fp-bg);
  color: var(--fp-text);
}

/* ────────────── HERO ────────────── */
.fp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 6vw 80px;
  overflow: hidden;
}

.fp-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}

.fp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.fp-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.fp-hero-meta {
  position: relative; z-index: 2;
  margin-bottom: 40px;
}

.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--fp-line-strong);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}

.fp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fp-red);
  box-shadow: 0 0 10px var(--fp-red);
  animation: fpPulse 2s ease-in-out infinite;
}

@keyframes fpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.fp-hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}

.fp-title {
  font-family: 'Ubuntu', sans-serif;
  line-height: 0.9;
  margin-bottom: 32px;
}

.fp-line-1 {
  display: block;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--fp-text);
  margin-bottom: 12px;
  font-style: italic;
  opacity: 0;
  animation: fpFadeUp 1.2s ease 0.2s forwards;
}

.fp-line-2 {
  display: block;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fp-text);
  opacity: 0;
  animation: fpFadeUp 1.2s ease 0.5s forwards;
}

@keyframes fpFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fp-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--fp-text-dim);
  max-width: 560px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fpFadeUp 1s ease 0.9s forwards;
}

.fp-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--fp-line);
  opacity: 0;
  animation: fpFadeUp 1s ease 1.1s forwards;
}

.fp-stat {
  display: flex;
  flex-direction: column;
}

.fp-stat b {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--fp-text);
  letter-spacing: -0.02em;
}

.fp-stat span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fp-text-faint);
  margin-top: 4px;
}

.fp-cue {
  position: absolute;
  bottom: 40px;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  opacity: 0;
  animation: fpFadeUp 1s ease 1.4s forwards;
}

.fp-cue svg {
  animation: fpScrollHint 2s ease-in-out infinite;
}

@keyframes fpScrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.5; }
}

/* ────────────── CINEMA — pinned 3D viewport ────────────── */
.fp-cinema {
  position: relative;
  /* spacer height drives scroll length — taller = slower animation */
}

.fp-cinema-canvas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, #08080a 0%, #0e0e12 60%, #16161e 100%);
  overflow: hidden;
  z-index: 1;
}

.fp-cinema-canvas::before {
  /* subtle vignette */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,51,31,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

#fpCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fp-scroll-spacer {
  /* drives the scroll; total scroll distance = this height - viewport height */
  height: 600vh;
  pointer-events: none;
}

.fp-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--fp-bg);
  z-index: 10;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  transition: opacity 0.6s ease;
}

.fp-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.fp-spinner {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-top-color: var(--fp-red);
  border-radius: 50%;
  animation: fpSpin 0.9s linear infinite;
}

@keyframes fpSpin {
  to { transform: rotate(360deg); }
}

/* info panel */
.fp-info {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  max-width: 380px;
  z-index: 5;
  pointer-events: none;
}

.fp-info-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fp-red);
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(200,51,31,0.4);
  background: rgba(200,51,31,0.08);
  border-radius: 4px;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.fp-info-title {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fp-text);
  line-height: 1.05;
  margin-bottom: 16px;
  transition: opacity 0.4s ease;
}

.fp-info-title b {
  font-weight: 700;
  font-style: italic;
  display: block;
}

.fp-info-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fp-text-dim);
  margin-bottom: 24px;
  transition: opacity 0.4s ease;
}

.fp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.fp-info-grid > div {
  border-top: 1px solid var(--fp-line);
  padding-top: 10px;
}

.fp-info-grid b {
  display: block;
  font-size: 18px;
  color: var(--fp-text);
  font-weight: 500;
  font-family: 'Ubuntu', sans-serif;
}

.fp-info-grid span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fp-text-faint);
  margin-top: 2px;
}

/* floor rail */
.fp-rail {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 5;
  pointer-events: auto;
}

.fp-rail-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fp-text-faint);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 600;
}

.fp-rail-item::after {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--fp-text-faint);
  transition: all 0.3s ease;
}

.fp-rail-item.active {
  color: var(--fp-text);
}

.fp-rail-item.active::after {
  width: 32px;
  background: var(--fp-red);
}

.fp-rail-item:hover {
  color: var(--fp-text);
}

.fp-rail-item:hover::after {
  background: var(--fp-text);
}

/* progress bar */
.fp-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fp-line);
  z-index: 5;
}

.fp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--fp-red), var(--fp-amber));
  transition: width 0.1s linear;
}

/* mode chip */
.fp-mode {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fp-line-strong);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fp-text);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.fp-mode-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fp-amber);
  box-shadow: 0 0 8px var(--fp-amber);
}

/* controls (lower-right) */
.fp-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.fp-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fp-line-strong);
  border-radius: 8px;
  color: var(--fp-text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.fp-ctrl:hover {
  color: var(--fp-text);
  border-color: var(--fp-text-dim);
}

.fp-ctrl svg {
  flex-shrink: 0;
}

/* ────────────── SHOWCASE — real architectural renders ────────────── */
.fp-showcase {
  background: var(--fp-bg);
  padding: 140px 6vw 80px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--fp-line);
}

.fp-showcase-head {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}

.fp-showcase-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fp-amber);
  margin-bottom: 20px;
  font-weight: 600;
}

.fp-showcase-head h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--fp-text);
}

.fp-showcase-head h2 em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, #d8a55a 0%, #c87a3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fp-showcase-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fp-text-dim);
  max-width: 560px;
  margin: 0 auto;
}

.fp-showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.fp-render {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1e;
  border: 1px solid var(--fp-line);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  cursor: pointer;
}

.fp-render:hover {
  transform: translateY(-4px);
  border-color: var(--fp-line-strong);
}

.fp-render img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.92) saturate(1.05);
}

.fp-render:hover img {
  transform: scale(1.03);
  filter: brightness(1) saturate(1.1);
}

.fp-render-1 {
  aspect-ratio: 16 / 9;
}

.fp-render-2 {
  aspect-ratio: 16 / 11;
}

.fp-render figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 28px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 12, 0.85) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  pointer-events: none;
}

.fp-render-tag {
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--fp-text);
  letter-spacing: 0;
}

.fp-render-meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fp-text-faint);
  font-weight: 500;
}

@media (max-width: 900px) {
  .fp-showcase {
    padding: 80px 5vw 50px;
  }
  .fp-showcase-head { margin-bottom: 48px; }
  .fp-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fp-render-1, .fp-render-2 { aspect-ratio: 16 / 10; }
  .fp-render figcaption { padding: 16px 18px 14px; }
  .fp-render-tag { font-size: 12px; }
  .fp-render-meta { font-size: 9px; }
}

/* ────────────── DOSSIERS ────────────── */
.fp-dossiers {
  background: var(--fp-bg);
  padding: 60px 6vw 140px;
  position: relative;
  z-index: 2;
}

.fp-dossier-head {
  max-width: 720px;
  margin-bottom: 80px;
}

.fp-dossier-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fp-red);
  margin-bottom: 20px;
  font-weight: 600;
}

.fp-dossier-head h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--fp-text);
}

.fp-dossier-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fp-text-dim);
}

.fp-dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--fp-line);
  border: 1px solid var(--fp-line);
}

.fp-dossier {
  background: var(--fp-bg);
  padding: 36px 32px 32px;
  position: relative;
  transition: background 0.3s ease;
  cursor: default;
}

.fp-dossier:hover {
  background: rgba(255,255,255,0.015);
}

.fp-dossier::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: var(--cat-color, var(--fp-red));
  transition: height 0.4s ease;
}

.fp-dossier:hover::before {
  height: 100%;
}

.fp-dossier[data-cat="hotel"] { --cat-color: var(--fp-hotel); }
.fp-dossier[data-cat="office"] { --cat-color: var(--fp-office); }
.fp-dossier[data-cat="retail"] { --cat-color: var(--fp-retail); }
.fp-dossier[data-cat="parking"] { --cat-color: var(--fp-parking); }

.fp-dossier-num {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fp-line);
}

.fp-dossier-num b {
  font-family: 'Ubuntu', sans-serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--cat-color, var(--fp-text));
  line-height: 1;
}

.fp-dossier-num span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fp-text-faint);
  font-weight: 500;
}

.fp-dossier h3 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fp-text);
  margin-bottom: 12px;
}

.fp-dossier p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fp-text-dim);
  margin-bottom: 20px;
  min-height: 4.8em;
}

.fp-dossier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-dossier-tags span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--fp-line-strong);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-text-dim);
  font-weight: 500;
}

/* ────────────── CTA ────────────── */
.fp-cta {
  background: var(--fp-paper);
  color: var(--fp-ink);
  padding: 140px 6vw;
  position: relative;
  z-index: 2;
}

.fp-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.fp-cta h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 28px;
  color: var(--fp-ink);
}

.fp-cta h2 br + * { font-style: italic; }

.fp-cta p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(22,22,26,0.7);
  margin-bottom: 40px;
}

.fp-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.fp-cta .btn-primary {
  background: var(--fp-ink);
  color: var(--fp-paper);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--fp-ink);
  transition: all 0.3s ease;
}

.fp-cta .btn-primary:hover {
  background: var(--fp-red);
  border-color: var(--fp-red);
}

.fp-cta .btn-ghost {
  background: transparent;
  color: var(--fp-ink);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--fp-ink);
  transition: all 0.3s ease;
}

.fp-cta .btn-ghost:hover {
  background: var(--fp-ink);
  color: var(--fp-paper);
}

/* ────────────── MOBILE ────────────── */
@media (max-width: 900px) {
  .fp-hero {
    padding: 110px 5vw 60px;
  }

  .fp-stats { gap: 28px; }
  .fp-cue { left: 5vw; bottom: 24px; }

  .fp-info {
    left: 5vw; right: 5vw;
    top: auto;
    bottom: 80px;
    transform: none;
    max-width: none;
  }

  .fp-info-title { font-size: 22px; }
  .fp-info-desc { font-size: 13px; margin-bottom: 16px; }
  .fp-info-grid { gap: 10px 16px; }
  .fp-info-grid b { font-size: 14px; }

  .fp-rail {
    right: 12px;
    gap: 0;
  }
  .fp-rail-item {
    font-size: 9px;
    padding: 4px 6px;
    gap: 8px;
  }
  .fp-rail-item::after { width: 12px; }
  .fp-rail-item.active::after { width: 20px; }

  .fp-mode { top: 16px; font-size: 9px; padding: 6px 12px; }
  .fp-controls { display: none; }

  .fp-dossiers { padding: 40px 5vw 80px; }
  .fp-dossier-head { margin-bottom: 48px; }
  .fp-dossier-grid { grid-template-columns: 1fr; }

  .fp-cta { padding: 80px 5vw; }
  .fp-scroll-spacer { height: 500vh; }
}
