/* ============================================================
   Be the Dream Made Visible — landing page
   Palette: deep cosmic indigo · teal-cyan neon · sacred gold · sky blue
   ============================================================ */

:root {
  --space-0:   #04050e;   /* deepest void */
  --space-1:   #080a1c;
  --space-2:   #0d1030;
  --ink:       #f3efe6;   /* warm off-white */
  --ink-soft:  rgba(243,239,230,.66);
  --ink-faint: rgba(243,239,230,.4);

  --teal:      #38e3d6;
  --teal-deep: #15b6ae;
  --gold:      #e3c074;
  --gold-deep: #c79b3e;
  --sky:       #6cc5f0;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: radial-gradient(140% 100% at 50% -10%, var(--space-2) 0%, var(--space-1) 40%, var(--space-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Atmosphere layers ─────────────────────────────────── */
#starfield {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

#geometry {
  position: fixed;
  top: -8vh; left: 50%;
  width: min(86vh, 760px); aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: 0; pointer-events: none;
  opacity: .5;
  animation: spin 140s linear infinite;
}
#geometry svg { width: 100%; height: 100%; display: block; }

.aurora {
  position: fixed; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(90px); opacity: .28;
  mix-blend-mode: screen;
}
.aurora--teal { top: -10vw; right: -14vw; background: radial-gradient(circle, var(--teal), transparent 65%); }
.aurora--gold { bottom: -18vw; left: -12vw; background: radial-gradient(circle, var(--gold), transparent 65%); opacity:.2; }

.grain {
  position: fixed; inset: 0; z-index: 1; 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='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 2; }

/* ── Shared bits ───────────────────────────────────────── */
.eyebrow {
  font-size: .74rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--teal); font-weight: 400;
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  max-width: 860px; margin: 0 auto;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero .eyebrow { margin-bottom: 1.6rem; }

.hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.7rem, 7.4vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.hero__title span { display: block; }
.hero__title-accent {
  font-style: italic;
  color: transparent;
  background: linear-gradient(105deg, var(--teal) 10%, var(--sky) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 38px rgba(56,227,214,.25);
}

.hero__lead {
  margin-top: 1.9rem; max-width: 560px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
}
.hero__lead em { font-style: italic; color: var(--ink); }

.hero__cue {
  margin-top: 2.8rem;
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink-soft); text-decoration: none;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  transition: color .4s var(--ease);
}
.hero__cue svg { animation: float 2.4s ease-in-out infinite; }
.hero__cue:hover { color: var(--teal); }

/* ── PATHS ─────────────────────────────────────────────── */
.paths {
  max-width: var(--maxw); margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.paths__head { text-align: center; max-width: 620px; margin: 0 auto 3.4rem; }
.paths__head .eyebrow { color: var(--gold); }
.paths__head h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.1; margin-top: 1rem; letter-spacing: -.01em;
}
.paths__sub { margin-top: .9rem; color: var(--ink-soft); }

.cards {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.9rem 1.7rem 2rem;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(160deg, var(--c), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .55s var(--ease);
}
.card[data-accent="teal"] { --c: var(--teal); }
.card[data-accent="gold"] { --c: var(--gold); }
.card[data-accent="sky"]  { --c: var(--sky);  }
.card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 26px 60px -28px color-mix(in srgb, var(--c) 60%, transparent);
}
.card:hover::before { opacity: 1; }

/* card media */
.card__media {
  height: 230px; margin: -.4rem -.3rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.card__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}
.card__img.is-missing { display: none; }
.card__img.is-missing + .card__placeholder { display: flex; }

/* graceful placeholders when real images aren't dropped in yet */
.card__placeholder {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center; text-align: center;
  border-radius: 16px;
  font-family: "Cormorant Garamond", serif;
}
.card__placeholder-label { font-size: 1.4rem; line-height: 1.2; color: var(--ink-soft); padding: 1rem; }
.card__placeholder-label em { font-family: "Tangerine", cursive; font-size: 2.6rem; display: inline-block; }
.card__placeholder--phone {
  width: 132px; left: 50%; transform: translateX(-50%);
  border: 1px solid rgba(56,227,214,.4); border-radius: 26px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(56,227,214,.16), transparent 70%), var(--space-0);
  box-shadow: 0 0 50px -10px rgba(56,227,214,.4);
}
.card__placeholder--book {
  width: 168px; left: 50%; transform: translateX(-50%);
  border: 1px solid rgba(227,192,116,.4); border-radius: 6px 10px 10px 6px;
  background: radial-gradient(120% 90% at 50% 30%, rgba(227,192,116,.14), transparent 70%), var(--space-0);
  box-shadow: 0 0 50px -10px rgba(227,192,116,.4);
}

/* photo-style media (community card): fill the frame with rounded corners */
.card__img--cover {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(108,197,240,.18);
}
.card__placeholder--symbol {
  color: var(--sky);
  border: 1px solid rgba(108,197,240,.28); border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(108,197,240,.12), transparent 70%), var(--space-0);
}
.card__sigil { width: 150px; height: 150px; filter: drop-shadow(0 0 22px rgba(108,197,240,.4)); }

.card__kicker {
  font-size: .7rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--c, var(--ink-faint)); opacity: .85;
}
.card[data-accent="teal"] .card__kicker { color: var(--teal); }
.card[data-accent="gold"] .card__kicker { color: var(--gold); }
.card[data-accent="sky"]  .card__kicker { color: var(--sky); }

.card__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600; font-size: 1.7rem; line-height: 1.15;
  margin: .35rem 0 .7rem;
}
.card__copy { color: var(--ink-soft); font-size: .96rem; flex: 1 1 auto; }

/* buttons */
.btn {
  margin-top: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 100px;
  font-family: "Jost", sans-serif; font-weight: 500; font-size: .92rem;
  letter-spacing: .04em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--teal { background: linear-gradient(120deg, var(--teal), var(--teal-deep)); color: #042b29; box-shadow: 0 10px 30px -12px var(--teal); }
.btn--gold { background: linear-gradient(120deg, var(--gold), var(--gold-deep)); color: #2c2208; box-shadow: 0 10px 30px -12px var(--gold); }
.btn--sky  { background: linear-gradient(120deg, var(--sky), #3f9fd4); color: #04222f; box-shadow: 0 10px 30px -12px var(--sky); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

.card__note {
  margin-top: .85rem; font-size: .76rem; letter-spacing: .04em;
  color: var(--ink-faint); text-align: center;
}

/* email card */
.subscribe { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.subscribe input {
  width: 100%; padding: .85rem 1.1rem; border-radius: 12px;
  background: rgba(0,0,0,.35); color: var(--ink);
  border: 1px solid rgba(255,255,255,.16);
  font-family: "Jost", sans-serif; font-size: .95rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.subscribe input::placeholder { color: var(--ink-faint); }
.subscribe input:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(108,197,240,.18);
}
.subscribe .btn { margin-top: 0; width: 100%; }
.subscribe__msg { margin-top: .7rem; font-size: .85rem; min-height: 1.2em; text-align: center; color: var(--sky); }

/* ── CLOSING ───────────────────────────────────────────── */
.closing { text-align: center; padding: 3rem 1.5rem 5rem; }
.closing__script {
  font-family: "Tangerine", cursive; font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1;
  background: linear-gradient(100deg, var(--teal), var(--sky) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 50px rgba(56,227,214,.2);
}
.closing__line {
  margin-top: .8rem; font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ink-soft);
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2;
  text-align: center; padding: 2.4rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--ink-faint); font-size: .82rem; letter-spacing: .06em;
}

/* ── Reveal animations ─────────────────────────────────── */
.reveal, .reveal-up {
  opacity: 0;
  animation: rise 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.reveal-up { animation-play-state: paused; transform: translateY(28px); }
.reveal-up.in-view { animation: rise 1s var(--ease) forwards; animation-delay: var(--stagger, 0s); animation-play-state: running; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .card__media { height: 210px; }
  #geometry { opacity: .32; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #geometry { animation: none; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}
