/* ==========================================================================
   THE CROWN · PENTHOUSE DUBAI
   Ultra-Luxury Editorial Architectural Scroll Experience
   ========================================================================== */

:root {
  --bg-dark: #0B0A09;
  --bg-dark-veil: rgba(11, 10, 9, 0.42);
  --color-ivory: #EDE6D8;
  --color-ivory-dim: rgba(237, 230, 216, 0.65);
  --color-ivory-faint: rgba(237, 230, 216, 0.28);
  --color-gold: #B8975A;
  --color-gold-faint: rgba(184, 151, 90, 0.35);
  --border-hairline: rgba(237, 230, 216, 0.14);
  --border-gold: rgba(184, 151, 90, 0.4);

  --font-serif: 'Bodoni Moda', Cormorant, Garamond, serif;
  --font-mono: 'Space Mono', Consolas, monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: var(--bg-dark);
  color: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  overflow-x: hidden;
  scrollbar-width: none; /* Hide default scrollbar */
}

html::-webkit-scrollbar {
  display: none;
}

body {
  position: relative;
  background-color: var(--bg-dark);
  color: var(--color-ivory);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

body.is-loading {
  overflow: hidden !important;
  height: 100vh;
}

/* ==========================================================================
   Typography & Helpers
   ========================================================================== */
.italic {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-ivory);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Visual Atmosphere Overlays (Grain, Veil, Vignette)
   ========================================================================== */

/* Fixed Canvas Viewport */
.canvas-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: padding 1s var(--ease-editorial), transform 1s var(--ease-editorial);
}

.canvas-frame-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 1.2s var(--ease-editorial), border-color 1.2s var(--ease-editorial);
}

/* When in Cierre (final section), video shrinks into a framed window */
.canvas-viewport.is-shrunk .canvas-frame-wrap {
  width: min(88vw, 1100px);
  height: min(52vh, 520px);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
  will-change: transform, filter;
  filter: blur(0px) brightness(1);
  transition: filter 0.3s var(--ease-editorial);
}

/* Subtle Dark Veil for Legibility */
.veil-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 10, 9, 0.65) 0%,
    rgba(11, 10, 9, 0.22) 32%,
    rgba(11, 10, 9, 0.35) 68%,
    rgba(11, 10, 9, 0.72) 100%
  );
}

/* Soft Radial Vignette */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(11, 10, 9, 0) 35%,
    rgba(11, 10, 9, 0.45) 80%,
    rgba(11, 10, 9, 0.85) 100%
  );
}

/* Film Grain (Procedural High-Precision Animated SVG Noise) */
.film-grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grain-jitter 0.8s steps(4) infinite;
  mix-blend-mode: overlay;
}

@keyframes grain-jitter {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, -2%); }
  50% { transform: translate(2%, 3%); }
  75% { transform: translate(-1%, 2%); }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.4s var(--ease-editorial);
  will-change: clip-path;
}

.preloader.is-loaded {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 90%;
}

.preloader-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  margin-bottom: 2.2rem;
  opacity: 0.9;
}

.preloader-counter-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-serif);
  line-height: 0.9;
  margin-bottom: 2.5rem;
}

.preloader-counter {
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  font-weight: 300;
  color: var(--color-ivory);
  min-width: 1.8ch;
  text-align: right;
  letter-spacing: -0.03em;
}

.preloader-percent {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--color-gold);
  margin-left: 0.35rem;
  font-style: italic;
}

.preloader-line-track {
  width: 100%;
  max-width: 320px;
  height: 1px;
  background-color: var(--border-hairline);
  position: relative;
  margin-bottom: 1.8rem;
  overflow: hidden;
}

.preloader-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-gold);
  transition: width 0.15s ease-out;
}

.preloader-caption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--color-ivory-dim);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 50;
  padding: 2.5rem 3.5rem;
  background: transparent;
  pointer-events: none;
  transition: transform 0.7s var(--ease-editorial), opacity 0.7s var(--ease-editorial);
  will-change: transform, opacity;
}

.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: auto;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--color-ivory);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--color-gold);
}

.header-coords {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-ivory-dim);
}

.coords-elevation {
  font-size: 0.55rem;
  color: var(--color-gold);
  letter-spacing: 0.25em;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Magnetic Buttons & Links (No abrupt color jumps, drawn line on hover)
   ========================================================================== */
.magnetic-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.2rem;
  cursor: pointer;
  will-change: transform;
}

.btn-link .btn-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ivory);
  transition: color 0.4s var(--ease-editorial);
}

.btn-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-editorial);
}

.magnetic-btn:hover .btn-line {
  transform: scaleX(1);
}

.btn-primary {
  padding: 1.25rem 2.8rem;
  background-color: transparent;
  border: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s var(--ease-editorial), background-color 0.5s var(--ease-editorial);
}

.btn-primary .btn-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ivory);
  position: relative;
  z-index: 2;
  transition: color 0.4s var(--ease-editorial);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-gold);
  transform: translateY(102%);
  transition: transform 0.6s var(--ease-editorial);
  z-index: 1;
}

.btn-primary:hover::before {
  transform: translateY(0%);
}

.btn-primary:hover .btn-text {
  color: var(--bg-dark);
}

/* ==========================================================================
   Progress Rail (Fixed Right: Rooms + Monospace Tour Seconds)
   ========================================================================== */
.progress-rail {
  position: fixed;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.rail-track {
  position: relative;
  padding-right: 1.8rem;
}

.rail-track::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: var(--border-hairline);
}

.rail-indicator {
  position: absolute;
  right: -1px;
  top: 0;
  width: 3px;
  height: 24px;
  background-color: var(--color-gold);
  transform: translateY(0);
  transition: transform 0.3s var(--ease-editorial);
  will-change: transform;
}

.rail-rooms {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.rail-item {
  opacity: 0.32;
  transition: opacity 0.5s var(--ease-editorial), transform 0.5s var(--ease-editorial);
}

.rail-item.is-active {
  opacity: 1;
  transform: translateX(-4px);
}

.rail-btn {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-align: right;
}

.rail-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ivory);
}

.rail-time-box {
  margin-top: 2.2rem;
  padding-right: 1.8rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  opacity: 0.85;
}

.time-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-ivory);
}

/* ==========================================================================
   Scroll Track & Story Scenes (~900vh Total Track)
   ========================================================================== */
.scroll-track {
  position: relative;
  z-index: 10;
  width: 100%;
}

.story-scene {
  position: relative;
  min-height: 140vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  pointer-events: none;
}

/* Asymmetric Compositions */
.scene-container {
  max-width: 680px;
  width: 100%;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: opacity 0.8s var(--ease-editorial), transform 0.8s var(--ease-editorial);
}

.scene-container.asym-left {
  margin-left: clamp(2rem, 8vw, 9rem);
  margin-right: auto;
  text-align: left;
}

.scene-container.asym-right {
  margin-right: clamp(4rem, 12vw, 13rem);
  margin-left: auto;
  text-align: left;
}

/* Active State for Scene Container */
.story-scene.is-inview .scene-container {
  opacity: 1;
  transform: translateY(0);
}

/* Metadata & Badges */
.scene-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  margin-bottom: 1.6rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-gold);
}

.scene-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.scene-space-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--color-ivory-dim);
  margin-bottom: 1.4rem;
}

/* Masked Large Editorial Titles */
.scene-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--color-ivory);
  margin-bottom: 1.8rem;
}

.masked-title .title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
}

.masked-title .title-word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 1.1s var(--ease-editorial), opacity 0.9s var(--ease-editorial);
}

.story-scene.is-inview .masked-title .title-word {
  transform: translateY(0%);
  opacity: 1;
}

/* Stagger transition delay for words */
.masked-title .title-line:nth-child(1) .title-word:nth-child(1) { transition-delay: 0.05s; }
.masked-title .title-line:nth-child(1) .title-word:nth-child(2) { transition-delay: 0.12s; }
.masked-title .title-line:nth-child(1) .title-word:nth-child(3) { transition-delay: 0.19s; }
.masked-title .title-line:nth-child(1) .title-word:nth-child(4) { transition-delay: 0.26s; }
.masked-title .title-line:nth-child(2) .title-word:nth-child(1) { transition-delay: 0.22s; }
.masked-title .title-line:nth-child(2) .title-word:nth-child(2) { transition-delay: 0.29s; }
.masked-title .title-line:nth-child(2) .title-word:nth-child(3) { transition-delay: 0.36s; }

/* Description */
.scene-description {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-ivory-dim);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.4rem;
}

/* Monospace Technical Data Grid */
.scene-specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-hairline);
  max-width: 580px;
}

.spec-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--color-gold);
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-ivory);
}

/* Portada Scroll Hint */
.scene-scroll-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
}

.hint-line {
  width: 48px;
  height: 1px;
  background-color: var(--color-gold);
  animation: hint-pulse 2s infinite ease-in-out;
}

@keyframes hint-pulse {
  0%, 100% { transform: scaleX(0.5); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

.hint-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-ivory-dim);
}

/* ==========================================================================
   06 Cierre / Contacto Final
   ========================================================================== */
.scene-cierre {
  min-height: 150vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem 2rem;
}

.cierre-card {
  max-width: 900px;
  width: 100%;
  background-color: rgba(11, 10, 9, 0.88);
  border: 1px solid var(--border-hairline);
  padding: clamp(3rem, 6vw, 5.5rem);
  text-align: center;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-editorial), transform 1.2s var(--ease-editorial);
  will-change: opacity, transform;
}

.scene-cierre.is-inview .cierre-card {
  opacity: 1;
  transform: translateY(0);
}

.cierre-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  margin-bottom: 2rem;
}

.cierre-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-ivory);
  margin-bottom: 1.8rem;
}

.cierre-sub {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-ivory-dim);
  max-width: 620px;
  margin: 0 auto 3.5rem auto;
  font-weight: 300;
}

.cierre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.8rem 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 3.5rem;
}

.cierre-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.cierre-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--color-gold);
}

.cierre-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-ivory);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.cierre-val:hover {
  color: var(--color-gold);
}

.cierre-cta-row {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.cierre-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--color-ivory-faint);
}

.footer-edition {
  color: var(--color-gold);
  opacity: 0.7;
}

/* ==========================================================================
   Modal Dialog (Agendar Visita)
   ========================================================================== */
.modal-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  border: none;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.modal-dialog[open] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 10, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 2;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-gold);
  max-width: 640px;
  width: 100%;
  padding: clamp(2.5rem, 5vw, 4rem);
  transform: translateY(20px);
  animation: modal-enter 0.6s var(--ease-editorial) forwards;
}

@keyframes modal-enter {
  to { transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-ivory-dim);
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: var(--color-gold);
}

.modal-pre {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.6rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--color-ivory);
  margin-bottom: 1rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--color-ivory-dim);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--color-gold);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: 1px solid var(--border-hairline);
  padding: 0.9rem 1rem;
  color: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.4s var(--ease-editorial);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-ivory-faint);
  font-size: 0.85rem;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
}

.form-success-msg {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-gold);
  line-height: 1.5;
  padding: 1.2rem;
  border: 1px solid var(--border-gold);
  margin-top: 1rem;
}

.form-success-msg.is-visible {
  display: block;
}

/* ==========================================================================
   Custom Inertial Cursor (Desktop Only)
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(237, 230, 216, 0.45);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: width 0.35s var(--ease-editorial),
              height 0.35s var(--ease-editorial),
              top 0.35s var(--ease-editorial),
              left 0.35s var(--ease-editorial),
              border-color 0.35s var(--ease-editorial),
              background-color 0.35s var(--ease-editorial);
}

.cursor-dot {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  background-color: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
}

/* Cursor on hover */
body.is-hovering .cursor-ring {
  width: 54px;
  height: 54px;
  top: -27px;
  left: -27px;
  border-color: var(--color-gold);
  background-color: rgba(184, 151, 90, 0.08);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header {
    padding: 1.8rem 2rem;
  }
  .header-coords {
    display: none;
  }
  .progress-rail {
    right: 1.5rem;
  }
  .rail-rooms {
    gap: 1rem;
  }
  .rail-label {
    display: none;
  }
  .rail-track {
    padding-right: 1rem;
  }
  .rail-time-box {
    padding-right: 1rem;
  }
  .story-scene {
    padding: 0 2rem;
  }
  .scene-container.asym-left,
  .scene-container.asym-right {
    margin-left: 1.5rem;
    margin-right: 3rem;
  }
  .scene-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .cierre-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  /* Disable custom cursor on mobile */
  .custom-cursor {
    display: none !important;
  }
  body, button, a {
    cursor: auto !important;
  }

  .site-header {
    padding: 1.4rem 1.4rem;
  }
  .brand-title {
    font-size: 1rem;
  }
  .progress-rail {
    display: none; /* Keep clean on small phones */
  }
  .story-scene {
    min-height: 120vh;
    padding: 0 1.2rem;
  }
  .scene-container.asym-left,
  .scene-container.asym-right {
    margin: 0;
    width: 100%;
  }
  .scene-title {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }
  .scene-specs {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cierre-card {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   Prefers Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .custom-cursor {
    display: none !important;
  }
  .film-grain {
    animation: none !important;
  }
  .masked-title .title-word {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}
