:root {
  --bg: #140a0f;
  --bg-2: #1d0f15;
  --ink: #f6eae8;
  --muted: #b79aa0;
  --line: #3a2630;
  --rose: #e6a4ad;        /* soft rose */
  --gold: #e7c9a0;        /* champagne */
  --accent: #ff5d7e;      /* hot pink-rose for CTAs/active */
  --accent-deep: #c43a5b;
  --card: #22131a;
  --card-hi: #2e1a22;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.8);
  --maxw: 460px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  background:
    radial-gradient(120% 80% at 50% -10%, #3a1622 0%, rgba(58,22,34,0) 55%),
    radial-gradient(90% 60% at 80% 110%, #2a1018 0%, rgba(42,16,24,0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- top bar / progress ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 18px 22px 8px;
}
.back {
  background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer;
  width: 30px; height: 30px; line-height: 1; flex: 0 0 auto; transition: color .2s;
}
.back:hover { color: var(--ink); }
.progress { flex: 1; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--accent));
  border-radius: 99px; transition: width .5s cubic-bezier(.4,.1,.2,1);
}
.progress-count { font-size: 14px; color: var(--muted); flex: 0 0 auto; letter-spacing: .04em; }

/* ---------- layout ---------- */
#app { position: relative; z-index: 1; }
.screen {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  min-height: 100dvh; padding: 24px 22px 40px;
  display: flex; flex-direction: column;
  animation: stepIn .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.kicker {
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.q {
  font-family: "Fraunces", serif; font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(27px, 7.4vw, 36px); line-height: 1.08; letter-spacing: -.01em;
  margin-bottom: 6px;
}
.q em { font-style: italic; color: var(--rose); }
.sub { color: var(--muted); margin-top: 12px; font-size: 18px; }

/* ---------- options ---------- */
.opts { display: grid; gap: 14px; margin-top: 28px; }
.opt {
  position: relative; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 19px; line-height: 1.3;
  padding: 23px 54px 23px 22px; cursor: pointer; width: 100%;
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
}
.opt::after {
  content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 20px; transition: transform .2s, color .2s;
}
.opt:hover { background: var(--card-hi); border-color: #5a3a48; }
.opt:hover::after { transform: translateY(-50%) translateX(3px); color: var(--rose); }
.opt:active { transform: scale(.985); }
.opt.sel {
  border-color: var(--accent); background: linear-gradient(180deg, #341823, var(--card));
  box-shadow: 0 0 0 1px var(--accent), 0 14px 36px -18px var(--accent-deep);
}
.opt.sel::after { content: "♥"; color: var(--accent); }

/* image options (looks) */
.opts.grid2 { grid-template-columns: 1fr 1fr; }
.opt-img {
  padding: 0; overflow: hidden; aspect-ratio: 3/4; display: block;
}
.opt-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.02); transition: transform .5s; }
.opt-img:hover img { transform: scale(1.05); }
.opt-img::after { display: none; }
.opt-img .lbl {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 16px;
  font-weight: 700; font-size: 18px;
  background: linear-gradient(180deg, transparent, rgba(13,5,8,.9));
}
.opt-img.sel { box-shadow: 0 0 0 2px var(--accent), 0 16px 40px -18px var(--accent-deep); border-color: var(--accent); }
.opt-img .check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center; font-size: 14px; }
.opt-img.sel .check { display: flex; }

/* ---------- hero / intro ---------- */
.hero { justify-content: flex-end; position: relative; padding-bottom: clamp(60px, 15vh, 150px); }
/* Photo lives in the TOP portion only; it fades into the page bg so the copy + CTA
   sit on clean dark below — face never overlaps the text or the button. */
.hero-photo {
  position: absolute; top: 0; left: 0; right: 0; height: 62%; z-index: -1; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,15,.05) 0%, rgba(20,10,15,.12) 52%, rgba(20,10,15,.8) 86%, var(--bg) 100%);
}
/* Group copy + CTA at the BOTTOM (over the dark gradient) so the face up top is
   never covered by text. Cancels the global .cta margin-top:auto split. */
.hero .cta { margin-top: 24px; }
.hero .kicker { color: var(--gold); }
.hero-h1 { font-family: "Fraunces", serif; font-size: clamp(40px, 12vw, 60px); line-height: .98; letter-spacing: -.02em; font-weight: 400; }
.hero-h1 em { font-style: italic; color: var(--rose); }
.hero-sub { color: var(--ink); opacity: .82; font-size: 18px; margin-top: 16px; max-width: 22em; }
.dots { display: flex; gap: 6px; margin-top: 18px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); opacity: .5; animation: pulseDot 1.4s infinite; }
.dots i:nth-child(2){ animation-delay:.2s } .dots i:nth-child(3){ animation-delay:.4s }
@keyframes pulseDot { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1.2)} }

/* ---------- CTA / buttons ---------- */
.cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #ff7a93, var(--accent)); color: #2a0710;
  font: inherit; font-weight: 700; font-size: 21px; letter-spacing: .01em;
  border: none; border-radius: 99px; padding: 23px 26px; cursor: pointer; width: 100%;
  box-shadow: 0 14px 40px -12px var(--accent-deep), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s, box-shadow .2s;
  animation: glow 2.6s ease-in-out infinite;
}
@keyframes glow {
  0%,100% { box-shadow: 0 14px 40px -14px var(--accent-deep), inset 0 1px 0 rgba(255,255,255,.4); }
  50%     { box-shadow: 0 18px 54px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.5); }
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0) scale(.99); }
.cta-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 16px; letter-spacing: .02em; }

/* ---------- building loader ---------- */
.building { align-items: center; justify-content: center; text-align: center; gap: 26px; }
.ring { width: 116px; height: 116px; position: relative; }
.ring img { position: absolute; inset: 8px; border-radius: 50%; object-fit: cover; width: calc(100% - 16px); height: calc(100% - 16px); filter: saturate(1.05); }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: url(#g); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.building .q { margin-top: 22px; }
.building .step-label { color: var(--gold); font-size: 14px; letter-spacing: .05em; min-height: 1.4em; transition: opacity .3s; }

/* ---------- reveal ---------- */
.reveal { position: relative; justify-content: flex-end; padding-bottom: clamp(60px, 15vh, 150px); }
.reveal-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.reveal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; animation: slowZoom 9s ease-out both; }
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.reveal-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,15,.15) 0%, rgba(20,10,15,.55) 50%, rgba(20,10,15,.97) 92%); }
.reveal-h1 { font-family: "Fraunces", serif; font-style: italic; font-size: clamp(36px, 10vw, 52px); line-height: 1; font-weight: 400; }
.reveal .name { font-style: normal; color: var(--rose); }
.reveal-teaser {
  margin-top: 16px; font-size: 18px; line-height: 1.4; opacity: .92;
  border-left: 2px solid var(--accent); padding-left: 14px;
}
.reveal .cta { margin-top: 26px; }

/* her floating reply bubble */
.her-bubble {
  position: fixed; left: 12px; right: 12px; bottom: 18px; margin: 0 auto;
  transform: translateY(20px);
  z-index: 30; display: flex; align-items: center; gap: 14px;
  background: rgba(46,26,34,.97); backdrop-filter: blur(8px);
  border: 1px solid #5a3a48; border-radius: 18px; padding: 16px 20px;
  max-width: calc(var(--maxw) - 24px); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1);
}
.her-bubble.show { opacity: 1; transform: translateY(0); }
.her-bubble__pic { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.her-bubble__txt { font-size: 17px; font-weight: 600; line-height: 1.35; }

@media (min-width: 520px) {
  .screen { border-radius: 0; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
