:root {
  --ink: #1a0f0a;
  --cream: #fff8e8;
  --hot: #ff3d7f;
  --lime: #c8ff3d;
  --sky: #2ec4ff;
  --sun: #ffd23f;
  --grape: #5b2cff;
  --mint: #3dffc8;
  --font-display: "Bangers", system-ui, sans-serif;
  --font-title: "Lilita One", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 1rem;
  --pad: 1.15rem;
  --dock-h: 4.25rem;
  --shadow: 0 10px 0 rgba(26, 15, 10, 0.16);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 61, 127, 0.28), transparent 34%),
    radial-gradient(circle at 90% 6%, rgba(46, 196, 255, 0.3), transparent 30%),
    linear-gradient(165deg, #ffe39a 0%, #ffd0e4 40%, #c9f0ff 75%, #e8ffb8 100%);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.4;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  font-weight: 500;
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.confetti-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 39;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 12px;
  border-radius: 2px;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110dvh) rotate(720deg);
    opacity: 0.1;
  }
}

.eyebrow {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  background: var(--lime);
  border: 3px solid var(--ink);
  padding: 0.3rem 0.55rem;
  transform: rotate(-2deg);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  margin-bottom: 1rem;
  text-align: center;
}

.one-liner {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  max-width: 22rem;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 3px solid var(--ink);
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn-main {
  background: var(--hot);
  color: #fff;
}

.btn-ghost {
  background: var(--cream);
}

.sticker {
  position: absolute;
  font-family: var(--font-title);
  background: var(--mint);
  border: 3px solid var(--ink);
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
  transform: rotate(-8deg);
  box-shadow: 0 3px 0 var(--ink);
}

/* —— HERO (mobile first) —— */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.25rem var(--pad) calc(var(--dock-h) + 2.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -12%;
  background:
    repeating-linear-gradient(-18deg, transparent 0 16px, rgba(255, 255, 255, 0.16) 16px 18px),
    radial-gradient(circle at 30% 35%, rgba(255, 210, 63, 0.5), transparent 42%),
    linear-gradient(145deg, #ff8f5a, #ff3d7f 45%, #2ec4ff 90%);
  z-index: 0;
  will-change: transform;
}

.hero-blob {
  position: absolute;
  border: 3px solid var(--ink);
  z-index: 1;
  opacity: 0.85;
  will-change: transform;
  animation: wobble 8s ease-in-out infinite;
}

.blob-a {
  width: 120px;
  height: 120px;
  background: var(--lime);
  top: 8%;
  left: -1rem;
  border-radius: 42% 58% 50% 50%;
}

.blob-b {
  width: 90px;
  height: 90px;
  background: var(--sky);
  top: 14%;
  right: -0.5rem;
  border-radius: 55% 45% 40% 60%;
  animation-direction: reverse;
}

@keyframes wobble {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-12px) rotate(7deg);
  }
}

.hero > *:not(.hero-bg):not(.hero-blob) {
  position: relative;
  z-index: 2;
}

.brand {
  line-height: 0.85;
}

.brand-word {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 28vw, 8rem);
  letter-spacing: 0.03em;
  color: var(--cream);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--grape), 12px 12px 0 var(--lime);
  display: inline-block;
  animation: brandPop 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes brandPop {
  from {
    transform: scale(0.55) rotate(-7deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(-2deg);
    opacity: 1;
  }
}

.hero-line {
  font-weight: 800;
  font-size: 1.05rem;
  background: rgba(255, 248, 232, 0.92);
  border: 3px solid var(--ink);
  padding: 0.55rem 0.85rem;
  transform: rotate(1deg);
}

.hero-photo {
  position: relative;
  width: min(58vw, 240px);
  margin: 0.35rem 0 0.5rem;
  will-change: transform;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.hero-photo .sticker {
  bottom: 0.6rem;
  left: -0.6rem;
}

.scroll-hint {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-weight: 800;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

/* strip */
.parallax-strip {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  padding: 0.75rem 0;
  will-change: transform;
  overflow: hidden;
}

.parallax-strip span:nth-child(odd) {
  color: var(--hot);
  -webkit-text-stroke: 0;
}

/* gallery */
.section {
  position: relative;
  padding: 2.75rem var(--pad);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.shot {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.shot:nth-child(1),
.shot:nth-child(4) {
  aspect-ratio: 3 / 3.5;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  right: 0.45rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  background: var(--sun);
  border: 2px solid var(--ink);
  padding: 0.3rem 0.45rem;
  line-height: 1.1;
}

.shot:nth-child(2) .tag {
  background: var(--lime);
}
.shot:nth-child(3) .tag {
  background: var(--sky);
}
.shot:nth-child(4) .tag {
  background: var(--hot);
  color: #fff;
}
.shot:nth-child(5) .tag {
  background: var(--mint);
}
.shot:nth-child(6) .tag {
  background: var(--cream);
}

/* hospital */
.hospital {
  overflow: hidden;
  text-align: center;
}

.hospital-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(61, 255, 200, 0.45), transparent 42%),
    linear-gradient(120deg, #b8fff0, #ffe0ef 55%, #fff3a8);
  z-index: 0;
  will-change: transform;
}

.hospital > *:not(.hospital-bg) {
  position: relative;
  z-index: 1;
}

.hospital-photo {
  position: relative;
  width: min(78vw, 320px);
  margin: 0 auto 1.25rem;
  will-change: transform;
}

.hospital-photo img {
  width: 100%;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.hospital-photo .sticker {
  top: 0.75rem;
  right: -0.35rem;
  background: var(--hot);
  color: #fff;
}

.hospital .section-title {
  margin-bottom: 0.5rem;
}

/* videos */
.video-grid {
  display: grid;
  gap: 0.85rem;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 70dvh;
  object-fit: cover;
  background: #111;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-inline: auto;
}

/* finale */
.finale-card {
  text-align: center;
  background: rgba(255, 248, 232, 0.94);
  border: 4px solid var(--ink);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: 1.75rem 1.2rem;
  box-shadow: var(--shadow);
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  color: var(--hot);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* share */
.share-box {
  margin-top: 1.25rem;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.qr-wrap {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 0.75rem;
  padding: 0.65rem;
}

.share-actions {
  display: grid;
  gap: 0.65rem;
  width: 100%;
}

.share-actions .btn {
  width: 100%;
}

.share-url {
  font-size: 0.82rem;
  font-weight: 700;
  word-break: break-all;
  opacity: 0.75;
  padding: 0 0.25rem;
}

.share-tip {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.footer {
  text-align: center;
  padding: 1.25rem var(--pad) 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* dock */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem;
  padding: 0.65rem var(--pad) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 248, 232, 0.92);
  border-top: 3px solid var(--ink);
  backdrop-filter: blur(10px);
}

.dock a,
.dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
}

.dock a {
  background: var(--cream);
}

.dock button {
  background: var(--hot);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 0.75rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* —— tablet+ —— */
@media (min-width: 640px) {
  .hero-photo {
    width: min(42vw, 300px);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 720px;
    margin-inline: auto;
  }

  .video-grid video {
    max-height: 520px;
  }

  .share-box {
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
    max-width: 560px;
    margin-inline: auto;
  }

  .parallax-strip {
    font-size: 3.4rem;
  }
}

@media (min-width: 900px) {
  body {
    background-attachment: fixed;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "eye photo"
      "brand photo"
      "line photo"
      "cta photo";
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 0.75rem 2rem;
    padding: 2rem 3.5rem 3rem;
  }

  .hero .eyebrow {
    grid-area: eye;
  }
  .brand {
    grid-area: brand;
  }
  .hero-line {
    grid-area: line;
  }
  .hero .btn {
    grid-area: cta;
  }
  .hero-photo {
    grid-area: photo;
    justify-self: end;
    width: min(380px, 34vw);
  }

  .brand-word {
    font-size: clamp(7rem, 14vw, 11rem);
    text-shadow: 10px 10px 0 var(--grape), 18px 18px 0 var(--lime);
  }

  .section {
    padding: 4rem max(2rem, calc((100% - 1000px) / 2));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hospital {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1.5rem 2rem;
    text-align: left;
  }

  .hospital-bg {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  .hospital-photo {
    margin: 0;
    width: 100%;
    max-width: 420px;
  }

  .hospital .section-title,
  .hospital .one-liner {
    text-align: left;
    margin-left: 0;
  }

  .dock {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 2rem));
    border: 3px solid var(--ink);
    border-bottom: none;
    border-radius: 1.25rem 1.25rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
