:root {
  --bg: #070605;
  --bg-2: #0f0c0a;
  --ink: #e9d6c0;
  --muted: #a8917b;
  --gold: #e2ad7a;
  --gold-2: #f6d3a8;
  --gold-3: #b9804f;
  --line: rgba(226, 173, 122, .35);
  --glow: rgba(255, 196, 120, .55);
  --script: "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", "Cormorant Garamond", serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gold-text: linear-gradient(100deg, #b87d4b 0%, #f7d6ad 28%, #e2ad7a 52%, #fbe3c4 70%, #c48a56 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.js.locked, html.js.locked body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; }

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
main { position: relative; z-index: 2; }

.gold-text, .names .name, .intro-title, .ceremony-title, .end-names, .sec-head h3 em, .worlds-line em, .countdown b {
  background: var(--gold-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Intro */
.intro { display: none; }
html.js .intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.intro-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    radial-gradient(120% 70% at 50% 45%, rgba(226, 173, 122, .08), transparent 60%),
    linear-gradient(180deg, #0c0a08, #050403);
  transition: transform 1.4s cubic-bezier(.77, 0, .18, 1);
}
.intro-left { left: 0; }
.intro-right { right: 0; }
.intro.opened .intro-left { transform: translateX(-101%); }
.intro.opened .intro-right { transform: translateX(101%); }
.intro-content {
  position: relative;
  text-align: center;
  padding: 24px;
  width: 100%;
  max-width: 920px;
  transition: opacity .6s ease, transform .9s ease;
}
.intro.opened .intro-content { opacity: 0; transform: scale(.94); }
.intro-heart { width: 54px; height: 50px; margin: 0 auto 18px; display: block; }
.intro-heart path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 2.4s .3s ease forwards;
}
.intro-kicker {
  font-family: var(--caps);
  letter-spacing: .32em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
  padding-left: .32em;
  opacity: 0;
  animation: rise 1s .6s ease forwards;
}
.intro-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(46px, 11vw, 92px);
  line-height: 1.15;
  margin: 0;
  padding: .22em .2em .05em;
  opacity: 0;
  animation: rise 1.2s .9s ease forwards, shimmer 6s 2s linear infinite;
}
.intro-title em { padding: 0 .1em; }
.intro-title span { white-space: nowrap; }
.intro-sub {
  font-style: italic;
  color: var(--muted);
  font-size: clamp(17px, 4.2vw, 21px);
  margin: 6px 0 34px;
  opacity: 0;
  animation: rise 1s 1.3s ease forwards;
}
.seal {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #f1c48f, #b97843 55%, #7a4a26 100%);
  box-shadow: 0 0 0 6px rgba(185, 120, 67, .18), 0 12px 40px rgba(0, 0, 0, .7), inset 0 -6px 14px rgba(0, 0, 0, .35), inset 0 4px 10px rgba(255, 230, 190, .35);
  display: grid;
  place-items: center;
  margin: 0 auto;
  opacity: 0;
  animation: pop .9s 1.6s cubic-bezier(.34, 1.56, .64, 1) forwards;
  transition: transform .35s ease;
}
.seal:hover { transform: scale(1.06) rotate(-4deg); }
.seal:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 8px; }
.seal svg { width: 44px; height: 44px; }
.seal svg path { fill: none; stroke: #4a2a12; stroke-width: 3; stroke-linejoin: round; }
.seal-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: ring 2.6s 2.4s ease-out infinite;
}
.intro.opened .seal { transform: scale(1.25) rotate(18deg); opacity: 0; transition: transform .6s ease, opacity .5s ease; animation: none; }
.intro-hint {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--muted);
  margin-top: 26px;
  padding-left: .26em;
  opacity: 0;
  animation: rise 1s 2.2s ease forwards;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 90px 20px 120px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(255, 180, 100, .10), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(226, 173, 122, .07), transparent 70%);
}
.window-lines {
  position: absolute;
  top: 0;
  bottom: 0;
  right: clamp(14px, 4vw, 60px);
  width: clamp(40px, 8vw, 110px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.window-lines i {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  transform-origin: top;
}
.window-lines i:nth-child(2) { opacity: .5; }

.lamps {
  position: absolute;
  top: 0;
  left: clamp(-10px, 2vw, 40px);
  width: 240px;
  height: 520px;
  pointer-events: none;
}
.lamp {
  position: absolute;
  top: 0;
  transform-origin: 50% 0;
  animation: swing 6s ease-in-out infinite;
}
.lamp svg { width: 140px; height: 420px; display: block; overflow: visible; }
.lamp-1 { left: 0; }
.lamp-2 { left: 92px; top: -70px; animation-duration: 7.2s; animation-delay: -2.4s; }
.lamp-glow {
  position: absolute;
  left: 50%;
  top: 380px;
  width: 260px;
  height: 260px;
  margin-left: -130px;
  margin-top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 210, 150, .55), rgba(255, 170, 90, .14) 35%, transparent 68%);
  mix-blend-mode: screen;
  animation: flicker 5s ease-in-out infinite;
}
.lamp-glow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 230px;
  height: 520px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 200, 130, .16), transparent 75%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(6px);
}

.hero-inner { position: relative; text-align: center; max-width: 900px; width: 100%; }
.names {
  position: relative;
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.02;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.names .name {
  display: block;
  padding: .3em .28em .08em;
  margin-top: -.3em;
  filter: drop-shadow(0 0 18px rgba(226, 173, 122, .28));
}
.name-1 { font-size: clamp(84px, 21vw, 170px); transform: translateX(-6%); }
.amp { font-size: clamp(56px, 13vw, 104px); margin: -.22em 0 -.2em; }
.name-2 { font-size: clamp(74px, 18.5vw, 160px); transform: translateX(3%); }
.flourish {
  position: absolute;
  right: -2%;
  top: 6%;
  width: min(62%, 460px);
  height: auto;
  overflow: visible;
}
.flourish path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; opacity: .9; }

.poem {
  margin: 30px auto 0;
  font-size: clamp(19px, 4.4vw, 25px);
  line-height: 1.5;
  color: var(--ink);
}
.poem p { margin: 0; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--muted);
}
.scroll-hint i {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* Worlds */
.worlds { padding: 110px 20px 90px; max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 54px; }
.eyebrow {
  font-family: var(--caps);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--muted);
}
.sec-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 52px);
  margin: 10px 0 0;
  line-height: 1.15;
}
.sec-head h3 em, .worlds-line em { font-family: var(--script); font-size: 1.3em; font-weight: 400; padding: 0 .1em; }

.worlds-grid {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  gap: 0;
}
.panel {
  background: linear-gradient(180deg, rgba(26, 21, 17, .9), rgba(12, 10, 8, .92));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4) inset;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(226, 173, 122, .16);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); }
.panel-bar span { margin-left: 8px; }
.code {
  margin: 0;
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.5vw, 14.5px);
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d9c3aa;
  flex: 1;
  min-height: 260px;
}
.code .k { color: #e7a56f; }
.code .s { color: #f3d5a6; }
.code .f { color: #ffd9b0; }
.code .c { color: #7d6a58; font-style: italic; }
.code .p { color: #a8917b; }
.code .h { color: #ff9f88; }
.caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--gold);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
  margin-left: 1px;
}
.canvas { position: relative; flex: 1; display: grid; place-items: center; padding: 16px 16px 16px 56px; min-height: 260px;
  background-image: radial-gradient(rgba(226, 173, 122, .12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.tools {
  position: absolute;
  left: 12px;
  top: 14px;
  display: grid;
  gap: 8px;
}
.tools b { width: 26px; height: 26px; border: 1px solid rgba(226, 173, 122, .22); border-radius: 6px; display: block; }
.tools b:first-child { border-color: var(--gold); background: rgba(226, 173, 122, .12); }
.leaf-art { width: min(100%, 250px); height: auto; overflow: visible; }
.leaf-art path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.leaf-art .node { fill: var(--bg); stroke: var(--gold-2); stroke-width: 1.2; }

.bond { display: grid; place-items: center; height: 100%; position: relative; }
.bond::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.bond svg { position: relative; width: 58px; height: 54px; overflow: visible; filter: drop-shadow(0 0 14px var(--glow)); }
.bond path { fill: rgba(7, 6, 5, .9); stroke: var(--gold); stroke-width: 3; }
.worlds-line {
  text-align: center;
  font-size: clamp(22px, 4.6vw, 32px);
  margin: 56px 0 0;
  color: var(--ink);
}

/* Scene */
.scene { position: relative; padding: 40px 0 0; }
.scene-frame {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  mask-composite: intersect;
}
.scene-media { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 60%; background: #070605; }
.scene-fade { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg)); }
.city-lights { position: absolute; inset: 0; pointer-events: none; }
.city-lights span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffd59a;
  box-shadow: 0 0 6px 2px rgba(255, 200, 120, .55);
  opacity: 0;
  animation: twinkle var(--d, 4s) var(--dl, 0s) ease-in-out infinite;
}
.steam {
  position: absolute;
  left: 88.6%;
  top: 22%;
  width: 3.6%;
  height: auto;
  overflow: visible;
}
.steam path {
  fill: none;
  stroke: rgba(240, 210, 170, .55);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 18 90;
  animation: steam 3.2s linear infinite;
}
.steam path:nth-child(2) { animation-delay: -1.5s; }

.ceremony { text-align: center; padding: 10px 20px 0; margin-top: -2%; position: relative; }
.divider { width: min(480px, 86%); height: 24px; overflow: visible; }
.divider path { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.divider .d-heart { stroke-width: 1.6; }
.ceremony-title {
  padding-top: .2em;
  font-family: var(--caps);
  font-weight: 500;
  font-size: clamp(26px, 6vw, 46px);
  letter-spacing: .12em;
  margin: 18px 0 4px;
  line-height: 1.2;
}
.ceremony-sub {
  font-family: var(--caps);
  font-size: clamp(12px, 2.6vw, 17px);
  letter-spacing: .14em;
  color: var(--ink);
  margin: 0;
}

/* Details */
.details { padding: 70px 20px 40px; max-width: 980px; margin: 0 auto; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.detail { text-align: center; padding: 6px 18px; position: relative; }
.detail + .detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.detail svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail svg circle[r="1.6"] { fill: var(--gold); stroke: none; }
.clock-hand { transform-origin: 24px 24px; animation: tick 8s linear infinite; }
.detail h4 {
  font-family: var(--caps);
  font-weight: 500;
  letter-spacing: .2em;
  font-size: 16px;
  margin: 14px 0 10px;
  color: var(--gold-2);
}
.value { margin: 0; font-size: clamp(19px, 2.6vw, 23px); font-weight: 500; min-height: 1.6em; }
.sub-value { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.value.soon {
  display: inline-block;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
  position: relative;
  padding-bottom: 8px;
}
.value.soon::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 0;
  height: 2px;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1.4px);
  background-size: 7px 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  animation: dots 3s linear infinite;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 40px);
  margin: 40px 0 0;
}
.countdown[hidden] { display: none; }
.countdown div { text-align: center; min-width: 64px; }
.countdown b { display: block; font-family: var(--caps); font-weight: 500; font-size: clamp(32px, 7vw, 52px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--caps); font-size: 11px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }

.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--caps);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--gold-2);
  background: rgba(226, 173, 122, .06);
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn[hidden] { display: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--gold); color: #1a120b; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(226, 173, 122, .25); }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }

/* End */
.end { text-align: center; padding: 70px 20px calc(70px + env(safe-area-inset-bottom)); }
.end-heart { width: 46px; height: 42px; overflow: visible; animation: beat 1.8s ease-in-out infinite; }
.end-heart path { fill: none; stroke: var(--gold); stroke-width: 3.2; }
.end-names { font-family: var(--script); font-size: clamp(44px, 10vw, 72px); margin: -.2em 0 0; line-height: 1.2; padding: .3em .2em .05em; }
.end-note { font-style: italic; color: var(--muted); font-size: 19px; margin: 6px 0 0; }
.end-code { font-family: var(--mono); font-size: 12px; color: #6f5d4c; margin-top: 30px; letter-spacing: .06em; }

/* Keyframes */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes swing { 0%, 100% { transform: rotate(2.2deg); } 50% { transform: rotate(-2.2deg); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 46% { opacity: .92; } 48% { opacity: .78; } 50% { opacity: .95; } 72% { opacity: .88; } }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: var(--o, .9); transform: scale(1); } }
@keyframes steam { from { stroke-dashoffset: 108; opacity: 0; } 20% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tick { to { transform: rotate(360deg); } }
@keyframes dots { to { background-position: 28px 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 70% { transform: scale(1); } }

html.gsap .names .name, html.gsap .flourish, html.gsap .poem p, html.gsap .lamps, html.gsap .window-lines i, html.gsap .scroll-hint { visibility: hidden; }
html.gsap .names .name { animation: shimmer 7s linear infinite; }

@media (max-width: 860px) {
  .worlds-grid { grid-template-columns: 1fr; gap: 0; }
  .bond { height: 96px; }
  .bond::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
  .panel { min-height: 0; }
  .lamps { transform: scale(.72); transform-origin: 0 0; left: -24px; }
  .hero { padding-top: 150px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .lamps { transform: scale(.52); left: -30px; opacity: .9; }
  .hero { padding: 120px 16px 120px; }
  .flourish { width: 70%; right: -6%; top: 10%; }
  .worlds { padding: 90px 16px 70px; }
  .sec-head { margin-bottom: 38px; }
  .scene-frame { aspect-ratio: 16 / 10; }
  .scene-media { object-position: 52% 50%; }
  .details { padding: 54px 16px 30px; }
  .details-grid { grid-template-columns: 1fr; padding: 10px 0; }
  .detail { padding: 24px 10px; }
  .detail + .detail::before { left: 15%; right: 15%; top: 0; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
  .countdown b { font-size: 34px; }
  .countdown div { min-width: 56px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .hero { padding: 70px 20px 80px; }
  .name-1 { font-size: 92px; }
  .amp { font-size: 58px; }
  .name-2 { font-size: 86px; }
  .poem { font-size: 18px; margin-top: 14px; }
  .lamps { transform: scale(.5); transform-origin: 0 0; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .city-lights span { opacity: .6; }
  html { scroll-behavior: auto; }
}
