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

:root {
  --bg: #0d0f14;
  --bg2: #13161e;
  --gold: #c9a96e;
  --gold2: #e8c989;
  --cream: #f5f0e8;
  --muted: rgba(245,240,232,0.38);
  --radius: 4px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow: hidden;
}

/* ── PARTICLES ── */
#particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.particle {
  position: absolute;
  width: 1px; height: 1px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── GLOW ORBS ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}
.orb1 { width: 500px; height: 500px; background: #c9a96e; top: -150px; left: -100px; animation: drift1 12s ease-in-out infinite alternate; }
.orb2 { width: 400px; height: 400px; background: #2a4a6e; bottom: -100px; right: -80px; animation: drift2 15s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-40px, 60px); opacity: 0.18; } }
@keyframes drift2 { to { transform: translate(60px, -40px); opacity: 0.15; } }

/* ── GRAIN ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.35;
}

/* ── CONTAINER ── */
.stage {
  position: relative; z-index: 2;
  width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}

.card {
  max-width: 580px; width: 100%;
  text-align: center;
  position: relative;
}

/* ── LOGO LINE ── */
.brand {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: rise 1s ease forwards 0.3s;
}

/* ── SCREENS ── */
.screen {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -40%);
  width: 100%;
}
.screen.active {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: all;
}
.screen.exit {
  opacity: 0;
  transform: translate(-50%, -60%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── TYPOGRAPHY ── */
.headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.headline em {
  font-style: italic;
  color: var(--gold2);
}
.question {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* ── DIVIDER ── */
.divider {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto;
}

/* ── INPUT ── */
.input-wrap {
  position: relative; margin-bottom: 1.8rem;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,169,110,0.35);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  padding: 0.9rem 0;
  outline: none;
  letter-spacing: 0.05em;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  cursor: text;
}
.input-wrap input::placeholder { color: var(--muted); }
.input-wrap input:focus,
.input-wrap select:focus { border-bottom-color: var(--gold); }
.input-wrap select option { background: #1a1e28; color: var(--cream); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2.4rem;
  border: 1px solid rgba(201,169,110,0.5);
  background: transparent;
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: scaleX(1); }

/* ── CHOICE BUTTONS ── */
.choices {
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-top: 0.5rem; margin-bottom: 1.5rem;
}
.choice-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(201,169,110,0.2);
  background: rgba(201,169,110,0.04);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.choice-btn:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.1);
  color: var(--gold2);
}

/* ── PROGRESS ── */
.progress-bar {
  position: fixed; bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width 0.6s ease;
  z-index: 10;
  box-shadow: 0 0 8px rgba(201,169,110,0.5);
}

/* ── RIO ILLUSTRATION ── */
.rio-bg {
  position: fixed;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 60%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  mask-image: linear-gradient(to left, black 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 95%);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.rio-bg img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: right bottom;
  filter: sepia(1) saturate(1.5) hue-rotate(10deg) brightness(0.9);
}

@media (max-width: 768px) {
  .rio-bg {
    width: 100%;
    height: 100%;
    opacity: 0.21;
  }
  .rio-bg img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 85% center;
    filter: brightness(0) saturate(100%) invert(78%) sepia(21%) saturate(945%) hue-rotate(354deg) brightness(88%) contrast(85%);
  }
}

/* ── DATE INPUT ── */
input[type="date"] {
  color-scheme: dark;
  text-align: center;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(2) hue-rotate(2deg);
  opacity: 0.6;
  cursor: pointer;
}

/* ── ANIMATIONS ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CURSOR ── */
body { cursor: none; }
.cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 28px; height: 28px;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
