:root {
  --ink: #fff6f8;
  --ink-soft: rgba(255, 246, 248, 0.78);
  --pink: #ff8fac;
  --pink-strong: #ff5c86;
  --pink-soft: #ffc7d6;
  --scrim-top: rgba(20, 6, 12, 0.6);
  --scrim-bottom: rgba(15, 4, 9, 0.88);
  --frame-inset: clamp(10px, 2.6vw, 26px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  height: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  font-family: 'Manrope', system-ui, sans-serif;
  background: #12060a;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  animation: video-in 1.4s var(--ease) both;
}

@keyframes video-in {
  from { opacity: 0; transform: scale(1.06); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      var(--scrim-top) 0%,
      rgba(30, 8, 16, 0.3) 32%,
      rgba(24, 6, 13, 0.44) 60%,
      var(--scrim-bottom) 100%),
    radial-gradient(120% 90% at 50% 100%, rgba(10, 2, 5, 0.6) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(70% 50% at 50% 0%, rgba(255, 92, 134, 0.14) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Pretty responsive pink frame */
.hero__frame {
  position: absolute;
  inset: var(--frame-inset);
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 143, 172, 0.55);
  border-radius: clamp(10px, 1.6vw, 20px);
  box-shadow:
    0 0 0 5px rgba(255, 143, 172, 0.08),
    inset 0 0 60px rgba(255, 92, 134, 0.08);
  animation: frame-in 1.4s var(--ease) both;
  animation-delay: 0.15s;
}

@keyframes frame-in {
  from { opacity: 0; inset: calc(var(--frame-inset) + 14px); }
  to   { opacity: 1; inset: var(--frame-inset); }
}

.corner {
  position: absolute;
  width: clamp(20px, 3.2vw, 34px);
  height: clamp(20px, 3.2vw, 34px);
  border: 1.5px solid var(--pink);
}

.corner--tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: clamp(10px, 1.6vw, 20px); }
.corner--tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: clamp(10px, 1.6vw, 20px); }
.corner--bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: clamp(10px, 1.6vw, 20px); }
.corner--br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: clamp(10px, 1.6vw, 20px); }

.hero__content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 6vh 8vw clamp(3rem, 8vh, 4.5rem);
  gap: clamp(1.8rem, 4vh, 2.8rem);
}

.title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.title__line {
  display: block;
  font-size: clamp(2.4rem, 8.5vw, 5.6rem);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

.title__line--accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--ink) 15%, var(--pink-soft) 45%, var(--pink-strong) 60%, var(--ink) 85%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.social {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  border: 1.5px solid rgba(255, 199, 214, 0.55);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.3s var(--ease);
}

.social::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--pink-strong), var(--pink));
  transform: translateX(-102%);
  transition: transform 0.5s var(--ease);
}

.social:hover,
.social:focus-visible {
  color: #2a0812;
  border-color: var(--pink);
  transform: translateY(-2px);
}

.social:hover::before,
.social:focus-visible::before {
  transform: translateX(0);
}

.social:active {
  transform: translateY(0) scale(0.97);
}

.social__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* Reveal-on-load choreography */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal-up 1s var(--ease) both;
}

.title[data-reveal] { animation-delay: 0.35s; }
.socials[data-reveal] { animation-delay: 0.6s; }

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 6vh 9vw clamp(2.5rem, 9vh, 3.5rem);
    gap: 1.8rem;
  }
  .socials {
    flex-direction: column;
    width: 100%;
    max-width: 18rem;
  }
  .social {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 1600px) {
  .title__line { font-size: clamp(4.5rem, 6.5vw, 6.4rem); }
}

@media (orientation: landscape) and (max-height: 480px) {
  .hero__content { padding: 3vh 8vw 2.2rem; gap: 1.1rem; }
  .title__line { font-size: clamp(1.8rem, 5.5vw, 3rem); }
  .hero__frame { --frame-inset: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { animation: none; }
  .hero__frame { animation: none; }
  .title__line--accent { animation: none; }
  [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
