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

:root {
  --bg: #ffffff;
  --text: #111118;
  --text-muted: #5c5c6e;
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  --border: rgba(0, 0, 0, 0.07);
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slide-duration: 0.9s;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: transform 1.2s var(--ease);
}

body[data-slide="0"] .bg { transform: translate(0, 0) scale(1); }
body[data-slide="1"] .bg { transform: scale(1); }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.orb-1 {
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  background: #ddd6fe;
  top: -15%;
  right: -12%;
  opacity: 0.7;
}

.orb-2 {
  width: 45vw;
  height: 45vw;
  max-width: 400px;
  max-height: 400px;
  background: #e9d5ff;
  bottom: 5%;
  left: -18%;
  opacity: 0.55;
}

.orb-3 {
  width: 30vw;
  height: 30vw;
  max-width: 240px;
  max-height: 240px;
  background: #c4b5fd;
  top: 45%;
  left: 35%;
  opacity: 0.35;
}

.bg-photo {
  position: absolute;
  inset: 0;
  background: url("background.jpg") center / cover no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 10, 8, 0.88) 0%,
    rgba(12, 10, 8, 0.55) 42%,
    rgba(12, 10, 8, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

body[data-slide="1"] .bg-photo {
  opacity: 1;
  transform: scale(1);
}

body[data-slide="1"] .bg-scrim {
  opacity: 1;
}

body[data-slide="1"] .orb,
body[data-slide="1"] .grid {
  opacity: 0;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 15%, transparent 72%);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
}

/* Stage */
.stage {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem clamp(1.5rem, 6vw, 4rem) 6rem;
}

.slides {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 56rem;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  z-index: 0;
}

.slide.is-active {
  pointer-events: auto;
  visibility: visible;
  z-index: 2;
}

.slide.is-exiting {
  visibility: visible;
  z-index: 1;
}

.slide .eyebrow,
.slide .headline,
.slide .sub,
.slide .tag,
.slide .btn-coming-soon,
.slide .slide-visual {
  transition:
    opacity var(--slide-duration) var(--ease),
    transform var(--slide-duration) var(--ease);
}

.slide .eyebrow {
  transform: translateY(28px);
  opacity: 0;
}

.slide .headline {
  transform: translateY(40px);
  opacity: 0;
  transition-delay: 0.06s;
}

.slide .sub {
  transform: translateY(32px);
  opacity: 0;
  transition-delay: 0.12s;
}

.slide .tag,
.slide .btn-coming-soon {
  transform: translateY(24px);
  opacity: 0;
  transition-delay: 0.18s;
}

.slide.is-active .eyebrow,
.slide.is-active .headline,
.slide.is-active .sub,
.slide.is-active .tag,
.slide.is-active .btn-coming-soon,
.slide.is-active .slide-visual {
  transform: translateY(0);
  opacity: 1;
}

.slide.is-exiting .eyebrow,
.slide.is-exiting .headline,
.slide.is-exiting .sub,
.slide.is-exiting .tag,
.slide.is-exiting .btn-coming-soon,
.slide.is-exiting .slide-visual {
  transform: translateY(-28px);
  opacity: 0;
  transition-delay: 0s;
}

.slide.is-exiting .headline { transition-delay: 0.04s; }
.slide.is-exiting .sub { transition-delay: 0.08s; }
.slide.is-exiting .tag,
.slide.is-exiting .btn-coming-soon,
.slide.is-exiting .slide-visual { transition-delay: 0.12s; }

.slide .slide-visual {
  transform: translateY(32px) scale(0.96);
  transition-delay: 0.1s;
}

/* About slide layout */
.slide--about .slide-layout {
  width: 100%;
  max-width: 36rem;
}

.slide--about .slide-visual {
  position: fixed;
  top: 50%;
  right: clamp(0.5rem, 3vw, 2.5rem);
  left: auto;
  width: min(50vw, 540px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 0;
  pointer-events: none;
  transform: translate(20px, calc(-50% + 32px)) scale(0.94);
}

.slide--about.is-active .slide-visual {
  transform: translate(0, -50%) scale(1);
}

.slide--about.is-exiting .slide-visual {
  transform: translate(-20px, calc(-50% - 28px)) scale(0.94);
}

.slide-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-planet {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: float 5s var(--ease) infinite alternate;
}

@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .slide--about .slide-layout {
    max-width: 58%;
  }

  .slide--about .slide-visual {
    width: min(62vw, 320px);
    right: -4%;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.headline {
  font-size: clamp(2.25rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 30rem;
}

.tag {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  width: fit-content;
}

.btn-coming-soon {
  margin-top: 1.75rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1510;
  background: #f5e6c8;
  border: none;
  border-radius: 100px;
  cursor: default;
  width: fit-content;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.btn-coming-soon:disabled {
  opacity: 0.95;
}

/* Hotel slide — light text on photo background */
body[data-slide="1"] {
  --text: #faf8f5;
  --text-muted: rgba(250, 248, 245, 0.78);
  --accent: #e8c547;
  --accent-soft: rgba(232, 197, 71, 0.18);
  --border: rgba(255, 255, 255, 0.22);
}

body[data-slide="1"] .logo-img {
  filter: brightness(0) invert(1);
}

body[data-slide="1"] .headline em {
  background: linear-gradient(135deg, #f5e6c8 0%, #e8c547 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-slide="1"] .dot-fill {
  background: #e8c547;
}

body[data-slide="1"] .footer-sep {
  color: rgba(255, 255, 255, 0.35);
}

/* Progress */
.progress {
  display: flex;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 2rem;
}

.dot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  min-width: 4.5rem;
  text-align: left;
}

.dot-track {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.dot-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
}

.dot.is-done .dot-fill {
  width: 100%;
}

.dot-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.dot.is-active .dot-label,
.dot.is-done .dot-label {
  color: var(--text);
}

.dot:hover .dot-label {
  color: var(--accent);
}

@keyframes progress-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.footer-sep {
  color: rgba(0, 0, 0, 0.2);
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg {
    transform: none !important;
  }

  .dot.is-active .dot-fill {
    width: 100%;
    animation: none !important;
  }

  .slide-planet {
    animation: none !important;
  }
}
