:root {
  --ink: #09060d;
  --paper: #efe4d4;
  --muted: #c8b7a2;
  --wax: #e39a55;
  --flame: #ffd39a;
  --violet: #8b6cff;
  --violet-deep: #3c1f73;
  --line: rgba(255, 228, 196, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(139, 108, 255, 0.22), transparent 55%),
    radial-gradient(800px 500px at 90% 20%, rgba(227, 154, 85, 0.12), transparent 50%),
    var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, .name, .mark { font-family: "Cormorant Garamond", Georgia, serif; }

#embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.watermark {
  position: fixed;
  inset: -10vh -8vw;
  z-index: 0;
  pointer-events: none;
  color: rgba(167, 140, 255, 0.07);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 120px);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transform: rotate(-12deg);
  background: repeating-linear-gradient(
    -12deg,
    transparent 0 70px,
    currentColor 70px 140px
  );
  -webkit-background-clip: text;
  background-clip: text;
  animation: drift 28s linear infinite;
}

.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(227, 154, 85, 0.16), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav, main, footer { position: relative; z-index: 2; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 6vw;
}
.nav nav { display: flex; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--muted); }
.mark {
  letter-spacing: 0.28em;
  font-size: 0.95rem;
  color: var(--paper);
}
.pill {
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 8vh 8vw 12vh;
  position: relative;
}
.hero h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.85;
  font-weight: 600;
}
.line {
  display: block;
  font-size: 0.28em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.name {
  background: linear-gradient(180deg, #fff6e8 0%, #e39a55 55%, #8b6cff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--wax);
}
.lede {
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}
.lede a { color: var(--flame); }

.hero-actions, .watch-copy { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-actions { justify-content: center; }

.btn {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn.primary {
  background: linear-gradient(180deg, #f0b375, #c56a2b);
  color: #2a1406;
  border: 0;
  box-shadow: 0 10px 30px rgba(227, 154, 85, 0.25);
}
.btn.ghost { background: rgba(255, 255, 255, 0.03); }
.btn:hover { transform: translateY(-3px); }

.orb {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.6rem;
  position: relative;
}
.orb-core, .orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.orb-core {
  background: radial-gradient(circle at 35% 30%, #9fffe0, #3c7bff 45%, #12081c 78%);
  box-shadow: 0 0 40px rgba(80, 220, 200, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.2);
  animation: pulse 4.5s ease-in-out infinite;
}
.orb-ring {
  inset: -10px;
  border: 1px solid rgba(139, 108, 255, 0.35);
  animation: spin 16s linear infinite;
}

.wax-fall {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 18vh;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--wax));
  opacity: 0.55;
  filter: blur(0.4px);
  animation: drip 3.4s ease-in infinite;
}

.panel {
  margin: 0 auto 12vh;
  width: min(1100px, 88vw);
}
.letter, .moment, .screen {
  background: rgba(16, 10, 22, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.letter { padding: 3rem; border-radius: 28px; }
.letter h2, .watch h2, .panel h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 0.2rem 0 1rem;
}
.letter p, .watch p, .section-note { color: var(--muted); line-height: 1.7; }
.stamp {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  border: 1px dashed rgba(227, 154, 85, 0.45);
  color: var(--wax);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  transform: rotate(-2deg);
}

.watch {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}
.screen {
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
}
.screen iframe, .clip-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.moment {
  padding: 1.3rem;
  border-radius: 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.moment:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  border-color: rgba(227, 154, 85, 0.45);
}
.moment button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--paper);
  font: 600 1.4rem/1.1 "Cormorant Garamond", serif;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.moment p { margin: 0.5rem 0 0; font-size: 0.92rem; }

.clip-stage {
  margin-top: 1.4rem;
  aspect-ratio: 16/9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: #000;
}
.clip-stage .close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 6vw 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .nav nav, .pill { display: none; }
  .watch { grid-template-columns: 1fr; display: grid; }
  .hero { padding-top: 14vh; }
}

@keyframes pulse {
  50% { transform: scale(1.06); filter: brightness(1.15); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen {
  50% { filter: drop-shadow(0 0 18px rgba(227, 154, 85, 0.35)); }
}
@keyframes drip {
  0% { transform: translate(-50%, -30%); opacity: 0; }
  20% { opacity: 0.6; }
  100% { transform: translate(-50%, 40%); opacity: 0; }
}
@keyframes drift {
  from { transform: rotate(-12deg) translateX(0); }
  to { transform: rotate(-12deg) translateX(-8%); }
}
