@font-face { font-family: Cinzel; src: url(../fonts/Cinzel-var.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Cormorant; src: url(../fonts/CormorantGaramond-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Cormorant; src: url(../fonts/CormorantGaramond-400i.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: Jost; src: url(../fonts/Jost-400.woff2) format('woff2'); font-display: swap; }

:root {
  --ink: #fbefe6; --dim: #c9b3bd; --faint: #8b7584;
  --ember: #ff7a45; --gold: #ffc27a; --rose: #ff5f8a;
  --glass: rgba(18, 9, 24, .58); --line: rgba(255, 190, 160, .18);
  --fire: linear-gradient(95deg, #ff4f3a, #ff8a3d 45%, #ffc77a);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #07040c; color: var(--ink); }
body { font-family: Jost, system-ui, sans-serif; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
#void { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(4, 2, 8, .75) 100%); }
main { position: relative; z-index: 2; min-height: 100svh; }
a { color: var(--gold); }
[hidden] { display: none !important; }

/* top bar */
.top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 22px 0; pointer-events: none; }
.brand { pointer-events: auto; font-family: Cinzel; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; font-size: 13px;
  color: var(--ink); text-decoration: none; }
.brand span { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.pulse i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: beat 2.4s infinite; }
.pulse b { color: var(--ink); font-weight: 400; }
@keyframes beat { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* screens */
.screen { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 90px 22px 60px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.screen.out { animation: sink .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sink { to { opacity: 0; transform: translateY(-10px); filter: blur(6px); } }

.eyebrow { font-family: Cinzel; letter-spacing: .38em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin: 0 0 18px; opacity: .9; }
.title { font-family: Cinzel; font-weight: 500; font-size: clamp(32px, 5.6vw, 66px); line-height: 1.08; margin: 0 0 22px; letter-spacing: .02em;
  text-shadow: 0 0 40px rgba(255, 120, 70, .25); }
.title em { font-family: Cormorant; font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: 0;
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-family: Cormorant; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--dim); max-width: 34em; margin: 0 0 34px; }

#landing { justify-content: flex-end; padding-bottom: max(46px, 7vh); }
#landing .title { margin-top: 0; }

.btn { appearance: none; border: 0; cursor: pointer; font: 600 13px/1 Jost; letter-spacing: .26em; text-transform: uppercase;
  color: #200b05; background: var(--fire); padding: 19px 34px; border-radius: 99px; text-decoration: none; display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 200, 150, .4), 0 10px 50px -8px rgba(255, 110, 60, .65); transition: transform .25s, box-shadow .25s, opacity .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 220, 180, .7), 0 16px 60px -6px rgba(255, 120, 60, .85); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.small { padding: 14px 24px; font-size: 12px; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1px rgba(255, 190, 160, .55); }
.ghostlink { margin-top: 18px; color: var(--dim); font-size: 14px; letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid var(--line); }

.steps { list-style: none; display: flex; gap: 34px; padding: 0; margin: 48px 0 0; color: var(--faint); font-size: 13px; }
.steps li { display: flex; flex-direction: column; gap: 6px; max-width: 150px; }
.steps b { font-family: Cinzel; color: var(--gold); font-weight: 500; letter-spacing: .2em; }

/* quiz */
#quiz { justify-content: flex-end; padding-bottom: max(40px, 6vh); }
.dots { display: flex; gap: 9px; margin-bottom: 26px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: all .4s; }
.dots i.on { background: var(--gold); box-shadow: 0 0 10px var(--ember); }
.dots i.now { background: #fff; transform: scale(1.5); box-shadow: 0 0 14px #fff; }
.q { font-family: Cormorant; font-style: italic; font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; max-width: 20em; margin: 0 0 30px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(720px, 100%); }
.opt { appearance: none; cursor: pointer; text-align: left; font: 17px/1.35 Jost; color: var(--ink); padding: 18px 20px 18px 50px; position: relative;
  border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s, transform .25s; }
.opt::before { content: attr(data-k); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: Cinzel; font-size: 12px; color: var(--gold); opacity: .8; }
.opt:hover, .opt:focus-visible { border-color: rgba(255, 170, 120, .7); background: rgba(60, 20, 30, .55); transform: translateY(-2px); outline: none; }
.opt.picked { border-color: var(--gold); background: rgba(255, 120, 60, .22); box-shadow: 0 0 30px -6px rgba(255, 120, 60, .7); }
.back { margin-top: 22px; background: none; border: 0; color: var(--faint); font: 14px Jost; letter-spacing: .1em; cursor: pointer; }
.back:hover { color: var(--ink); }

/* form */
#details { justify-content: flex-start; padding-top: 110px; }
.form { width: min(640px, 100%); text-align: left; display: grid; gap: 16px; padding: 28px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.f { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.f > span, .f legend { font-size: 13px; letter-spacing: .06em; color: var(--dim); padding: 0; }
.f em { color: var(--faint); font-style: normal; }
.f i { float: right; font-style: normal; color: var(--faint); }
input, select, textarea { width: 100%; font: 16px Jost; color: var(--ink); background: rgba(5, 2, 10, .55); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s; }
textarea { resize: vertical; font-family: Cormorant; font-size: 19px; font-style: italic; }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 170, 120, .75); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
option { background: #160b1a; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.row3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { appearance: none; cursor: pointer; font: 14px Jost; color: var(--dim); background: rgba(5, 2, 10, .5); border: 1px solid var(--line);
  border-radius: 99px; padding: 10px 14px; transition: all .2s; }
.chips button.on { color: #200b05; background: var(--fire); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--dim); cursor: pointer; }
.check.tight { padding-bottom: 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--ember); flex: none; padding: 0; }
.fine { font-size: 13px; color: var(--faint); margin: -4px 0 0; line-height: 1.5; }
.err { color: #ffb3a3; min-height: 1em; margin: 0; font-size: 15px; }
.form .btn { justify-self: center; margin-top: 6px; }

/* cards */
.card { width: min(560px, 100%); padding: 34px 30px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#soul { justify-content: flex-end; padding-bottom: max(40px, 6vh); }
.card h2 { font-family: Cinzel; font-weight: 500; letter-spacing: .06em; font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.card p { font-family: Cormorant; font-size: 20px; line-height: 1.5; color: var(--dim); margin: 0 0 14px; }
.card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.sigil { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 18px; }
.sigil .name { font-family: Cinzel; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.sigil .kind { font-family: Cormorant; font-style: italic; font-size: 30px; color: var(--ink); }
.tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 16px; }
.tags span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 6px 11px; }
.status { display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: beat 2.4s infinite; }
.minor { display: flex; gap: 18px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.minor button, .minor a { background: none; border: 0; color: var(--faint); font: 13px Jost; letter-spacing: .08em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.minor button:hover { color: var(--ink); }
.keep { font-size: 13px !important; font-family: Jost !important; color: var(--faint) !important; }

/* reunion */
#flame { justify-content: center; align-items: flex-end; padding-right: max(22px, 6vw); }
.murmur { position: fixed; left: 0; right: 0; bottom: 14vh; text-align: center; font-family: Cormorant; font-style: italic; font-size: clamp(24px, 3vw, 36px);
  color: var(--ink); text-shadow: 0 0 30px rgba(255, 120, 60, .5); opacity: 0; transition: opacity 1.2s; margin: 0; pointer-events: none; }
.murmur.on { opacity: 1; }
.reveal { text-align: center; animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.pair { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 6px; }
.pair .sigil { margin: 0; }
.pair .amp { font-family: Cormorant; font-style: italic; font-size: 34px; color: var(--ember); }
.resonance { font-family: Cinzel; font-size: 12px; letter-spacing: .3em; color: var(--gold); margin: 6px 0 20px; text-transform: uppercase; }
.letter { font-family: Cormorant; font-style: italic; font-size: 23px; line-height: 1.45; color: var(--ink); margin: 0 0 18px; padding: 18px 20px;
  border-left: 2px solid var(--ember); text-align: left; background: rgba(255, 120, 60, .06); border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact { font-size: 15px; color: var(--dim); margin: 0 0 6px; overflow-wrap: anywhere; }
.contact b { color: var(--ink); font-weight: 400; font-size: 18px; }

.prose { text-align: left; }
.prose ul { padding-left: 18px; color: var(--dim); line-height: 1.6; font-size: 15px; }
.prose li { margin-bottom: 8px; }
.prose b { color: var(--ink); font-weight: 400; }
#privacy .btn { margin-top: 8px; }

.toast { position: fixed; z-index: 9; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; transition: all .35s;
  background: rgba(20, 8, 20, .9); border: 1px solid var(--line); padding: 13px 20px; border-radius: 14px; font-size: 15px; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.nojs { position: relative; z-index: 3; text-align: center; padding: 40vh 20px; }

@media (max-width: 720px) {
  .top { padding-left: 16px; padding-right: 16px; }
  .pulse { font-size: 10px; }
  .screen { padding-left: 16px; padding-right: 16px; }
  .steps { gap: 16px; font-size: 12px; margin-top: 34px; }
  .opts { grid-template-columns: 1fr; gap: 9px; }
  .opt { padding: 15px 16px 15px 44px; font-size: 16px; }
  .q { margin-bottom: 22px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
  .form { padding: 20px 16px; }
  .card { padding: 26px 18px; }
  #flame { align-items: center; justify-content: flex-start; padding-right: 16px; padding-top: 44svh; }
  #soul { padding-top: 40svh; }
  .pair { gap: 10px; }
  .pair .sigil .kind { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .screen, .reveal { animation: none; } }
