/* ===== Kaila Dy — one-pager =====
   Palette pulled from the intro animation's end card:
   pink, lime green, warm golden light. */

:root {
  --lime: #92ca27;
  --pink: #d02048;
  --pink-light: #f48fb1;
  --gold: #f5b73a;
  --ink: #1b1a16;
  --ink-soft: rgba(27, 26, 22, .62);
  --paper: #ffffff;
  --radius: 20px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: #fff;
  /* warm fallback that matches the poster, so nothing flashes before the video arrives */
  background: linear-gradient(160deg, #6d4a1a 0%, #3b2a12 55%, #1f1a10 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Full-screen video background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;                     /* taps never reach the video, so in-app browsers can't open a player */
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  filter: brightness(.72) saturate(1.1);   /* lightly tinted so the white text stays legible */
}
.bg img {                    /* TikTok's in-app browser won't play <video> inline (it hands every tap to a
                                fullscreen player), so there the intro is an animated image loop instead. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(.72) saturate(1.1);
}
.bg::after {                /* cool-tinted vignette: keeps the warmth but lets the content pop */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 75% at 50% 50%, rgba(0,0,0,0) 0%, rgba(10, 8, 20, .45) 100%),
    linear-gradient(180deg, rgba(10, 8, 20, .2), rgba(10, 8, 20, .35));
}

/* ---------- Layout ---------- */
/* One centered stack over the video: name -> socials -> buttons -> copyright */
.wrap {
  width: min(100% - 40px, 1120px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px 0;
  display: flex;
  align-items: center;
}
.layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.content { display: contents; }

/* ---------- Name ---------- */
.hero { text-align: center; }
.name {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* ---------- Sound toggle ---------- */
.pill {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, transform .15s var(--ease);
}
.pill:hover { background: rgba(0,0,0,.7); }
.pill:active { transform: scale(.96); }
.pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill svg .spk { fill: currentColor; stroke: none; }
.pill[aria-pressed="true"]  .mute { display: none; }
.pill[aria-pressed="false"] .wave { display: none; }

/* ---------- Social icons ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.social {
  --brand: var(--pink);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  --glow: 208, 32, 72;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .18s;
}
.social svg { width: 20px; height: 20px; fill: currentColor; transition: transform .3s var(--ease); }
.socials .social:hover, .socials .social:focus-visible {   /* out-specifies .social.tt's ring */
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 22px rgba(var(--glow), .55);
}
.social:hover svg { transform: scale(1.12) rotate(-6deg); }
.social:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.social:active { transform: translateY(-1px) scale(1.02); opacity: .9; }

.social.yt { --brand: #ff0033; --glow: 255, 0, 51; }
.social.ig { --brand: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); --glow: 238, 42, 123; }
.social.tt { --brand: #111; --glow: 105, 201, 208; box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.22); }
.social.fb { --brand: #1877f2; --glow: 24, 119, 242; }

/* ---------- Connect button + footer ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.connect {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font: 700 14px/1 var(--font);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .5s, color .5s, transform .2s var(--ease);
}
.connect::before {                 /* white fill sweeps in from the left on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: translateX(-101%);
  transition: transform .55s var(--ease);
}
.connect:hover { color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.connect:hover::before { transform: none; }
.connect:active { transform: none; }
.connect:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.connect.copied { color: var(--ink); border-color: #fff; background: #fff; }
.connect.copied::before { transform: none; }
.connect-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.foot { margin: 4px 0 0; text-align: center; }
.copy { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.5); font-weight: 600; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap { padding: 32px 0 40px; }
  .layout { gap: 18px; }
}
@media (max-width: 480px) {
  .wrap { width: min(100% - 32px, 1080px); }
  .socials { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .social, .pill, .connect, .social svg, .connect::before { transition: none; }
}
