:root {
  --gold: #e7c98a;
  --gold-deep: #c6a15a;
  --ink: #0b0c10;
  --paper: #f6f1e7;
  --header: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

#sequence {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  display: block;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background: #07080c;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
}

.loader-mark img {
  height: 42px;
  width: auto;
}

.loader-bar {
  width: min(240px, 60vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
}

.loader p {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.62);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 36px;
  background: linear-gradient(180deg, rgba(6, 7, 12, 0.55), rgba(6, 7, 12, 0.18) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  justify-self: start;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a,
.footer a {
  color: rgba(246, 241, 231, 0.88);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links a:hover,
.footer a:hover { color: var(--gold); }

.chamber-btn {
  justify-self: end;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(231, 201, 138, 0.85);
  border-radius: 999px;
  padding: 10px 18px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.chamber-btn:hover {
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 0 24px rgba(231, 201, 138, 0.45);
}

#track {
  position: relative;
  height: 720vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  pointer-events: none;
}

.scene {
  position: absolute;
  left: 50%;
  width: min(920px, calc(100% - 48px));
  text-align: center;
  opacity: 0;
  visibility: hidden;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.35);
}

.scene-center {
  top: 50%;
  translate: -50% -50%;
}

.scene-bottom {
  bottom: 9vh;
  translate: -50% 0;
}

.scene h1,
.scene h2,
.scene p {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f7f4ee;
}

.scene h1,
.scene h2 {
  font-size: clamp(2rem, 5.4vw, 4.5rem);
  line-height: 1.05;
  font-weight: 600;
}

.kicker {
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
  margin-bottom: 36px;
}

.wish-list {
  list-style: none;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: auto;
}

.wish {
  appearance: none;
  background: transparent;
  border: 0;
  color: #f7f4ee;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 12px 8px 14px;
  cursor: pointer;
  position: relative;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

.wish::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b8862f 10%, #ffe7a8 50%, #b8862f 90%, transparent);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.wish:hover,
.wish:focus-visible {
  color: #fff8e8;
  text-shadow: 0 0 18px rgba(243, 214, 150, 0.95), 0 0 42px rgba(231, 201, 138, 0.55);
  outline: none;
}

.wish:hover::after,
.wish:focus-visible::after,
.wish.is-chosen::after {
  transform: scaleX(1);
  opacity: 1;
  box-shadow: 0 0 16px rgba(243, 214, 150, 0.9);
}

.wish.is-chosen {
  color: #fff8e8;
  text-shadow: 0 0 18px rgba(243, 214, 150, 0.95), 0 0 42px rgba(231, 201, 138, 0.55);
}

.text-btn {
  pointer-events: auto;
  display: inline-block;
  margin-top: 22px;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(246, 241, 231, 0.7);
  padding-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.text-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.scene-bottom p {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.55;
  max-width: 38rem;
  margin: 0 auto;
}

.footer {
  position: relative;
  z-index: 5;
  background: #08090d;
  color: rgba(246, 241, 231, 0.78);
  padding: 120px 48px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px 40px;
  border-top: 1px solid rgba(231, 201, 138, 0.18);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  height: 52px;
  width: auto;
}

.footer-brand p {
  font-size: 0.92rem;
  font-weight: 300;
  max-width: 16rem;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 231, 0.45);
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .nav-links { display: none; }

  .footer {
    grid-template-columns: 1fr;
    padding: 56px 22px 28px;
  }
}
