/* ============================================================
   Heart Landing — minimalist · dark · neon-pink
   Palette (5 tokens):
     --ink           #F5F0F5  (text)
     --ink-dim       rgba(245,240,245,0.55)
     --bg            #0A0612  (deep dark with subtle violet tint)
     --bg-elev       #100819  (cards / surfaces, one notch above)
     --neon          #FF2D7A  (hot neon pink — single accent)
   ============================================================ */

:root {
  --ink:       #F5F0F5;
  --ink-dim:   rgba(245, 240, 245, 0.55);
  --bg:        #0A0612;
  --bg-elev:   #100819;
  --neon:      #FF2D7A;
  --neon-soft: rgba(255, 45, 122, 0.45);
  --neon-faint: rgba(255, 45, 122, 0.10);

  --serif: "Fraunces", ui-serif, "Iowan Old Style", Garamond, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

::selection { background: var(--neon); color: #fff; }

/* ── film grain (very subtle texture, gives depth) ─────────── */
.grain {
  position: fixed;
  inset: -10px;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ── stage hosts canvas + everything ───────────────────────── */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255, 45, 122, 0.10) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}

/* canvas appears only after intro is dismissed */
#heart,
#floaters {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1100ms var(--ease);
}
#floaters { mix-blend-mode: screen; }

body:not(.is-intro) #heart,
body:not(.is-intro) #floaters {
  visibility: visible;
  opacity: 1;
}

/* tiny brand mark in top-left — only visible after reveal */
.brand {
  position: absolute;
  top: 22px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 8;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 900ms var(--ease) 300ms;
  user-select: none;
}
body:not(.is-intro) .brand { opacity: 1; }
.brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

/* caption "Love you." — sits at the heart's centre */
.caption {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow:
    0 0 40px rgba(255, 45, 122, 0.65),
    0 0 90px rgba(255, 45, 122, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1400ms var(--ease);
}
.caption.is-visible {
  opacity: 1;
  animation: caption-beat 2400ms ease-in-out 1400ms infinite;
}
@keyframes caption-beat {
  0%, 100% { text-shadow: 0 0 40px rgba(255, 45, 122, 0.65), 0 0 90px rgba(255, 45, 122, 0.35); }
  50%      { text-shadow: 0 0 54px rgba(255, 45, 122, 0.95), 0 0 130px rgba(255, 45, 122, 0.55); }
}

/* corner vignette — focuses attention */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.50) 100%);
  z-index: 5;
}

/* ──────────────────────────────────────────────────────────────
   Intro — minimalist, dark, single neon accent
   ────────────────────────────────────────────────────────────── */
.intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 48px 24px;
  background:
    radial-gradient(ellipse 65% 55% at 50% 48%, rgba(255, 45, 122, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 100%, rgba(255, 45, 122, 0.06) 0%, transparent 60%),
    var(--bg);
  transition:
    opacity 1100ms var(--ease),
    transform 1100ms var(--ease),
    filter 1100ms var(--ease);
}
/* a single faint horizontal hairline through the centre — adds structure */
.intro::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, 80vw);
  height: 1px;
  transform: translate(-50%, 142px);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 45, 122, 0.30) 50%, transparent 100%);
  pointer-events: none;
}
.intro.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  filter: blur(12px);
  pointer-events: none;
}
.intro.is-gone { display: none; }

.intro__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}
body.is-loaded .intro__inner {
  animation: intro-rise 1000ms var(--ease) both;
}
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to   { opacity: 1; transform: none;            filter: none;     }
}

/* eyebrow — tiny tracked caps with neon dot */
.intro__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.intro__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 14px var(--neon-soft);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1.00; transform: scale(1.08); }
}
.intro__eyebrow-sep {
  color: rgba(245, 240, 245, 0.18);
}

/* title — Fraunces serif, two lines, italic accent */
.intro__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(255, 45, 122, 0.18);
}
.intro__title-line {
  display: block;
}
.intro__title em {
  font-style: italic;
  color: var(--neon);
  text-shadow: 0 0 30px rgba(255, 45, 122, 0.55);
}

.intro__sub {
  margin: 4px 0 0;
  max-width: 38ch;
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(245, 240, 245, 0.62);
}

/* the button — the only ‘interactive’ element on the page */
.intro__cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 20px 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 280ms var(--ease), transform 220ms var(--ease);
}
/* outer breathing neon ring */
.intro__cta-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid var(--neon);
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 45, 122, 0.18),
    0 0 36px rgba(255, 45, 122, 0.55),
    inset 0 0 24px rgba(255, 45, 122, 0.25);
  animation: ring-breath 2.6s ease-in-out infinite;
}
@keyframes ring-breath {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 45, 122, 0.18),
      0 0 28px rgba(255, 45, 122, 0.45),
      inset 0 0 20px rgba(255, 45, 122, 0.20);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 45, 122, 0.28),
      0 0 60px rgba(255, 45, 122, 0.85),
      inset 0 0 28px rgba(255, 45, 122, 0.40);
  }
}
/* dark fill so the text sits on a solid surface (not see-through) */
.intro__cta-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 45, 122, 0.10) 0%, rgba(20, 6, 18, 0.95) 60%);
  pointer-events: none;
  z-index: -1;
}
.intro__cta-label {
  position: relative;
  z-index: 1;
}
.intro__cta:hover {
  transform: translateY(-1px);
  color: #fff;
}
.intro__cta:hover .intro__cta-ring {
  box-shadow:
    0 0 0 1px rgba(255, 45, 122, 0.55),
    0 0 80px rgba(255, 45, 122, 1.00),
    inset 0 0 32px rgba(255, 45, 122, 0.55);
}
.intro__cta:focus-visible { outline: 2px solid var(--neon); outline-offset: 6px; }
.intro__cta:active { transform: scale(0.985); }

.intro__cta.is-busy {
  pointer-events: none;
  cursor: progress;
}
.intro__cta.is-busy .intro__cta-label::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 14px;
  border: 1.5px solid rgba(255, 45, 122, 0.35);
  border-top-color: var(--neon);
  border-radius: 50%;
  vertical-align: -3px;
  animation: cta-spin 800ms linear infinite;
}
@keyframes cta-spin { to { transform: rotate(360deg); } }

.intro__foot {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(245, 240, 245, 0.30);
}
.intro__foot-line {
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(245, 240, 245, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .intro__inner,
  .intro__eyebrow-dot,
  .intro__cta-ring { animation: none !important; }
}

@media (max-width: 480px) {
  .intro { padding: 28px 18px; }
  .intro__inner { gap: 22px; }
  .intro__cta { padding: 18px 34px; font-size: 14px; letter-spacing: 0.08em; }
  .intro__title { font-size: clamp(38px, 11vw, 52px); }
  .brand { top: 16px; left: 16px; font-size: 11px; }
  .intro::before { transform: translate(-50%, 122px); width: min(360px, 88vw); }
}
