:root {
  --paper: #f2eee3;
  --ink: #181713;
  --gold: #f2d17d;
  --indigo: #101b36;
  --madder: #7c251f;
  --line: rgba(24, 23, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.landing {
  background: #0b0b09;
  color: var(--paper);
  font-family: "DM Sans", sans-serif;
  overflow: hidden;
}

/* Fullscreen Landing Stage */
.landing-stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Full coverage image horizontally and vertically with smooth zoom-out entrance */
.landing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02);
  transform-origin: 50% 45%;
  animation: landingZoomOut 7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
}

@keyframes landingZoomOut {
  0% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1.0);
  }
}

/* Centered Title Content */
.landing-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: titleFadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-persian {
  margin: 0 0 0.4rem;
  font: 400 clamp(2.1rem, 5.1vw, 4.25rem)/0.8 Gulzar, serif;
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

.landing-title {
  margin: 0;
  font: 400 clamp(5.1rem, 15.3vw, 13.6rem)/0.75 "Instrument Serif", serif;
  letter-spacing: -0.04em;
  color: var(--paper);
  -webkit-text-stroke: 1px var(--gold);
  paint-order: stroke fill;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.95);
}

/* Map Link */
.map-link {
  position: absolute;
  z-index: 20;
  top: 28px;
  right: 4vw;
  color: #f5edda;
  font: 500 clamp(0.78rem, 1.15vw, 0.92rem)/1 "DM Sans", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.72rem 1rem 0.68rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  transition: color 0.2s;
}

.map-link:hover {
  color: var(--gold);
}

.landing-description {
  margin: clamp(0.8rem, 1.8vh, 1.25rem) 0 0;
  color: var(--paper);
  font-size: clamp(0.72rem, 1.15vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.13em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95);
}

/* Persian Floral Motif Cursor */
.motif-cursor {
  display: none;
  position: fixed;
  z-index: 120;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  pointer-events: none;
  background: url("assets/persian-motif-cursor.svg") center/contain no-repeat;
  filter: drop-shadow(0 0 5px var(--gold)) drop-shadow(0 0 14px rgba(242, 209, 125, 0.8));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.motif-cursor.visible {
  opacity: 1;
}

@media (pointer: fine) {
  .landing,
  .landing a {
    cursor: none;
  }
  .motif-cursor {
    display: block;
  }
}

@media (max-width: 700px) {
  .landing-title {
    font-size: 26vw;
  }
  .map-link {
    top: 20px;
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-bg {
    animation: none !important;
    transform: scale(1) !important;
  }
  .landing-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
