:root{
  /* Soulee Coral */
  --coral:#ff4f7b;
  --coral2:#ff7aa7;
  --coral3:#ffb3c7;

  /* White system */
  --bg:#ffffff;
  --ink:#0b1020;
  --muted:rgba(11,16,32,.66);
  --line:rgba(11,16,32,.10);

  /* Soft surfaces */
  --glass:rgba(255,255,255,.76);
  --glass2:rgba(255,255,255,.62);

  /* Shadows / radius */
  --shadow: 0 24px 70px rgba(10,16,32,.10);
  --shadow2: 0 16px 40px rgba(10,16,32,.08);
  --radius: 22px;

  /* ✅ edge-to-edge layout (we control the gap via side padding) */
  --max: 100%;
  --side: clamp(14px, 2.2vw, 26px);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background: var(--bg);
  overflow-x:hidden;
}

/* ---------- dreamy background (WHITE) ---------- */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(1200px 820px at 15% 10%, rgba(255,79,123,.14), transparent 55%),
    radial-gradient(1000px 800px at 85% 25%, rgba(255,122,167,.12), transparent 55%),
    radial-gradient(1000px 900px at 50% 95%, rgba(255,179,199,.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #fff7fa 55%, #ffffff);
}

.bg__glow{
  position:absolute;
  filter: blur(70px);
  opacity:.75;
  transform: translateZ(0);
  animation: drift 18s ease-in-out infinite;
}
.bg__glow--a{
  width:520px;height:520px;
  left:-140px; top:-140px;
  background: rgba(255,79,123,.22);
  animation-duration: 21s;
}
.bg__glow--b{
  width:620px;height:620px;
  right:-180px; top:140px;
  background: rgba(255,122,167,.20);
  animation-duration: 25s;
}
.bg__glow--c{
  width:520px;height:520px;
  left:35%; bottom:-220px;
  background: rgba(255,179,199,.22);
  animation-duration: 29s;
}

.bg__grain{
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.06;
  mix-blend-mode:multiply;
  pointer-events:none;
}

@keyframes drift{
  0%,100%{ transform:translate(0,0); }
  50%{ transform:translate(22px,-18px); }
}

/* ---------- layout ---------- */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--side) 34px;
}

.section{ margin-top: 12px; }

.section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 10px 0 12px;
}
.section__title{
  margin:0;
  font-size: 22px;
  letter-spacing: -.2px;
}
.section__sub{
  margin:0;
  color:var(--muted);
  font-size: 13px;
}

/* ---------- sticky nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line);
}

.nav__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--side);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color:var(--ink);
}
.brand__dot{
  width: 10px; height: 10px;
  border-radius:999px;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(255,79,123,.16);
}
.brand__text{
  font-weight: 800;
  letter-spacing:.2px;
}
.brand__tag{
  font-size: 12px;
  color: var(--muted);
}

.nav__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* ---------- glass card ---------- */
.glass{
  background: linear-gradient(180deg, var(--glass), var(--glass2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.link{
  color: var(--muted);
  text-decoration:none;
  padding: 10px 10px;
  border-radius: 12px;
}
.link:hover{
  color: var(--ink);
  background: rgba(255,79,123,.08);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn--lg{ padding: 12px 16px; }
.btn--primary{
  background: linear-gradient(135deg, var(--coral), var(--coral2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255,79,123,.22);
}
.btn--primary:hover{ transform: translateY(-1px); box-shadow: 0 18px 40px rgba(255,79,123,.26); }
.btn--ghost{
  background: rgba(11,16,32,.04);
  color: var(--ink);
  border-color: rgba(11,16,32,.10);
}
.btn--ghost:hover{ transform: translateY(-1px); background: rgba(255,79,123,.06); border-color: rgba(255,79,123,.18); }

/* ---------- hero ---------- */
.hero{ margin-top: 12px; }

.hero__card{
  padding: 26px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items:center;
  width: 100%;
  max-width: none;
}

.hero--viewport{
  min-height: auto;
  display:block;
  padding-top: 0;
  padding-bottom: 0;
}
.hero--viewport .hero__card{
  min-height: auto;
  align-items: center;
}

.kicker{
  margin:0 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.h1{
  margin:0 0 14px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.8px;
}

.lead{
  margin:0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 58ch;
}

.cta{ display:flex; gap:12px; flex-wrap:wrap; }

.meta{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.pill{
  font-size: 12px;
  color: rgba(11,16,32,.72);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,16,32,.10);
  background: rgba(255,255,255,.65);
}

/* hero right */
.hero__right{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
}

/* orb hint */
.orb__hint{
  margin:0;
  color: rgba(11,16,32,.55);
  font-size: 12px;
}

/* Inaya figure */
@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

.hero__right{
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  min-height: 340px;
}
.hero-figure{
  position: relative;
  width: min(280px, 78%);
  height: auto;
  z-index: 1;
  animation: floaty 6s ease-in-out infinite;
  pointer-events:none;
  user-select:none;
}

/* ---------- grids ---------- */
.grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.grid2{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
.grid3{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

/* feature cards */
.feature{ padding: 18px; }
.feature h3{ margin: 12px 0 6px; font-size: 16px; }
.feature p{ margin:0; color: var(--muted); line-height: 1.6; font-size: 14px; }

.icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,79,123,.10);
  border: 1px solid rgba(255,79,123,.18);
  color: rgba(11,16,32,.82);
}
.icon svg{ width: 22px; height: 22px; }

/* ---------- Cards ---------- */
.card{
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.card--hover{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(10,16,32,.12);
  border-color: rgba(255,79,123,.22);
}

.card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.card__title{
  margin:0;
  font-size: 16px;
  letter-spacing: -.2px;
}
.card__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,79,123,.18);
  background: rgba(255,79,123,.08);
  color: rgba(11,16,32,.80);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.spark{
  position:absolute;
  right:-40px;
  top:-40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,79,123,.20), transparent 60%);
  filter: blur(2px);
  pointer-events:none;
}

/* list bullets for About */
.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(11,16,32,.78);
}
.list li{ margin: 6px 0; }
.list b{ color: rgba(11,16,32,.92); }

/* promise strip */
.promise{ margin-top: 14px; }
.promise__inner{
  padding: 16px 18px;
  text-align:center;
  color: rgba(11,16,32,.75);
}
.quote{
  margin:0;
  font-style: italic;
}

/* footer */
.footer{ margin-top: 18px; padding-bottom: 24px; }
.footer__inner{
  display:flex;
  gap: 10px;
  justify-content:center;
  color: rgba(11,16,32,.55);
  font-size: 12px;
}
.dot{ opacity: .45; }

/* ---------- reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ✅ NEW: INTRO PINNED (SCROLL-CONTROLLED REVEAL)
   - Keeps rest of layout unchanged
   - Locks rest of site until intro completes
   ========================================================= */

.intro{ margin-top: 12px; }

/* make space to scroll while intro stays pinned */
.intro__spacer{
  height: 220vh;
}

/* the pinned card */
.intro__sticky{
  position: sticky;
  top: 84px; /* below sticky nav */
  padding: 16px;
  overflow: hidden;
}

/* stage area (the image box) */
.intro__stage{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: rgba(11,16,32,.06);
  border: 1px solid rgba(11,16,32,.10);
}

/* overlay text inside the pinned card */
.intro__copy{
  position: absolute;
  left: 26px;
  top: 22px;
  max-width: min(560px, 64%);
  z-index: 5;
}

.intro__h1{
  margin: 0 0 10px;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.9px;
  color: rgba(11,16,32,.84);
  text-shadow: 0 14px 35px rgba(255,255,255,.25);
}

/* subtle “scroll to reveal” */
.intro__hint{
  margin: 0;
  font-size: 12px;
  color: rgba(11,16,32,.55);
  letter-spacing: .2px;
}

/* layers */
.intro__layer{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* fit rules */
.intro__sky{ object-fit: cover; }
.intro__stars{ object-fit: cover; }
.intro__buildings{ object-fit: contain; object-position: bottom; }
.intro__couple{ object-fit: contain; object-position: bottom center; }

/* scroll-driven variables (set by JS):
   --p = overall progress 0..1
   --s1 = stars progress
   --s2 = buildings progress
   --s3 = couple progress
*/
#intro{
  --p: 0;
  --s1: 0;
  --s2: 0;
  --s3: 0;
}

/* sky is there early, gentle fade in */
.intro__sky{
  opacity: calc(0.35 + var(--p) * 0.65);
  transform: scale(calc(1.05 - var(--p) * 0.05));
  transition: opacity .08s linear;
}

/* stars come in */
.intro__stars{
  opacity: var(--s1);
  transform: translateY(calc((1 - var(--s1)) * 18px));
}

/* buildings slide up slightly */
.intro__buildings{
  opacity: var(--s2);
  transform: translateY(calc((1 - var(--s2)) * 26px));
}

/* couple scales + slides (final hero moment) */
.intro__couple{
  opacity: var(--s3);
  transform: translateY(calc((1 - var(--s3)) * 22px)) scale(calc(0.98 + var(--s3) * 0.02));
}

/* lock rest of site until intro done */
.main--locked{
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}
.main--unlocked{
  opacity: 1;
  transform: translateY(0);
  filter: none;
  pointer-events: auto;
  user-select: auto;
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
}

/* hide intro once finished (JS adds .intro--done) */
.intro--done .intro__spacer{ height: 0; }
.intro--done .intro__sticky{ display:none; }

/* ✅ responsive */
@media (max-width: 980px){
  .hero__card{ grid-template-columns: 1fr; }
  .hero__right{ order: -1; min-height: 260px; }
  .h1{ font-size: 44px; }
  .grid{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }

  :root{ --side: 14px; }
  .container{ padding: 18px var(--side) 26px; }
  .nav__inner{ padding: 12px var(--side); }

  .intro__sticky{ top: 72px; }
  .intro__copy{ left: 18px; top: 16px; max-width: 90%; }
}

@media (max-width: 420px){
  .h1{ font-size: 38px; }
  .hero__right{ min-height: 230px; }
  :root{ --side: 12px; }
  .container{ padding: 16px var(--side) 24px; }
  .nav__inner{ padding: 10px var(--side); }
}
