:root {
  --sky: #7fe7ff;
  --pink: #ff9fd3;
  --lemon: #ffe873;
  --blue: #54a9ff;
  --ink: #243047;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(127, 231, 255, .72), transparent 32rem),
    radial-gradient(circle at 92% 6%, rgba(255, 232, 115, .62), transparent 28rem),
    radial-gradient(circle at 72% 58%, rgba(255, 159, 211, .54), transparent 34rem),
    linear-gradient(135deg, #fffaff 0%, #eaffff 42%, #fff8cc 100%);
  color: var(--ink);
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(84, 169, 255, .16) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255, 159, 211, .18) 1px, transparent 1.5px);
  background-position: 0 0, 18px 22px;
  background-size: 44px 44px, 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .24));
}

.brand-heart,
.pop-button {
  background: linear-gradient(135deg, var(--sky), var(--pink) 52%, var(--lemon));
}

.brand-heart {
  transition: transform .25s ease, filter .25s ease;
}

.brand-mark:hover .brand-heart {
  transform: rotate(-8deg) scale(1.08);
  filter: saturate(1.16);
}

.gradient-title {
  color: transparent;
  background: linear-gradient(92deg, #38cfff 4%, #ff7bc4 47%, #ffd943 90%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-stage {
  isolation: isolate;
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: min(8vw, 6rem);
  bottom: 3rem;
  z-index: 0;
  width: min(38vw, 360px);
  aspect-ratio: 1;
  border-radius: 45% 55% 54% 46%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .92), rgba(127, 231, 255, .46) 42%, rgba(255, 159, 211, .34) 70%, transparent 72%);
  filter: blur(1px);
}

.sparkle-field::before,
.sparkle-field::after {
  content: "♡  ✦  💗  ♡  ✧";
  position: absolute;
  z-index: 1;
  color: rgba(255, 124, 190, .55);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 1.6rem;
  animation: floatAcross 13s ease-in-out infinite;
}

.sparkle-field::before {
  left: 2rem;
  top: 12%;
}

.sparkle-field::after {
  right: 0;
  bottom: 18%;
  color: rgba(84, 169, 255, .48);
  animation-delay: -5s;
}

.hero-card {
  aspect-ratio: 4 / 5.55;
  border-radius: 2.25rem;
  padding: .55rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .55));
  box-shadow: 0 32px 90px rgba(84, 169, 255, .25), 0 18px 48px rgba(255, 159, 211, .22);
  transform: rotate(2deg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 2.7rem;
  background: linear-gradient(135deg, var(--sky), var(--pink), var(--lemon), var(--sky));
  opacity: .72;
  filter: blur(14px);
}

.hero-image {
  border-radius: 1.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.hero-orbit span {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 32px rgba(255, 159, 211, .28);
  color: #ff63b5;
  font-weight: 900;
  animation: bob 3.4s ease-in-out infinite;
}

.hero-orbit span:nth-child(1) { left: -1rem; top: 12%; }
.hero-orbit span:nth-child(2) { right: -1.2rem; top: 34%; color: #31bfff; animation-delay: -.8s; }
.hero-orbit span:nth-child(3) { left: 8%; bottom: -1rem; animation-delay: -1.6s; }

.section-kicker {
  color: #ff63b5;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.bento-panel {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58)),
    radial-gradient(circle at 100% 0, rgba(255, 232, 115, .44), transparent 18rem);
  box-shadow: 0 18px 54px rgba(84, 169, 255, .16);
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.bento-mini {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #fff, #ffe2f1);
  color: #ff63b5;
  font-size: 2rem;
  box-shadow: 0 14px 34px rgba(255, 159, 211, .24);
}

.bento-icon.blue {
  background: linear-gradient(135deg, #fff, #dff9ff);
  color: #32bfff;
}

.category-bar {
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #4f6078;
  padding: .72rem 1.05rem;
  font-size: .92rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(84, 169, 255, .12);
  transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--sky), var(--pink) 58%, var(--lemon));
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 127, 196, .26);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.9rem, 2vw, 1.25rem);
}

.work-card {
  --span: 4;
  position: relative;
  grid-column: span var(--span);
  min-height: 320px;
  border: 0;
  border-radius: 1.8rem;
  background: white;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(84, 169, 255, .16);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, filter .28s ease;
}

.work-card.wide { --span: 8; }
.work-card.square { --span: 4; }
.work-card.tall { --span: 4; grid-row: span 2; min-height: 520px; }

.work-card::before,
.work-card::after {
  content: "♡ ✦ 💗";
  position: absolute;
  z-index: 2;
  left: 1.1rem;
  top: 1rem;
  color: rgba(255, 255, 255, .88);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .45rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  text-shadow: 0 4px 14px rgba(255, 98, 181, .55);
}

.work-card::after {
  left: auto;
  right: 1rem;
  top: auto;
  bottom: 4.4rem;
  color: rgba(255, 238, 132, .95);
}

.work-card:hover {
  transform: translateY(-12px) rotate(-.8deg);
  box-shadow: 0 30px 72px rgba(255, 127, 196, .28), 0 20px 48px rgba(84, 169, 255, .22);
  filter: saturate(1.06);
}

.work-card:hover::before,
.work-card:hover::after {
  opacity: 1;
  transform: translateY(0);
  animation: particlePop 1.4s ease-in-out infinite;
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .42s ease;
}

.work-card:hover img {
  transform: scale(1.045);
}

.work-meta {
  position: absolute;
  inset: auto .75rem .75rem .75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .88);
  padding: .85rem 1rem;
  text-align: left;
  box-shadow: 0 10px 34px rgba(36, 48, 71, .14);
  backdrop-filter: blur(10px);
}

.work-title {
  display: block;
  color: #26324a;
  font-weight: 900;
  line-height: 1.35;
}

.work-category {
  display: inline-block;
  margin-top: .35rem;
  color: #ff63b5;
  font-size: .78rem;
  font-weight: 900;
}

.footer-band {
  border: 1px solid rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 18px 48px rgba(84, 169, 255, .15);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(74, 91, 121, .45);
  backdrop-filter: blur(12px);
}

.modal.is-open {
  display: flex;
}

.modal-close {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #ff63b5;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 34px rgba(36, 48, 71, .22);
}

.modal-frame {
  max-width: min(94vw, 1100px);
  max-height: 92vh;
  margin: 0;
}

.modal-frame img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: auto;
  border-radius: 1.5rem;
  box-shadow: 0 30px 90px rgba(36, 48, 71, .3);
}

.modal-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .88);
  padding: .8rem 1rem;
  color: #26324a;
  font-weight: 900;
}

.modal-frame small {
  color: #ff63b5;
  font-weight: 900;
}

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

@keyframes floatAcross {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); opacity: .72; }
  50% { transform: translate3d(24px, -18px, 0) rotate(4deg); opacity: 1; }
}

@keyframes particlePop {
  0%, 100% { letter-spacing: .45rem; }
  50% { letter-spacing: .72rem; }
}

@media (max-width: 920px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .work-card,
  .work-card.square,
  .work-card.tall,
  .work-card.wide {
    --span: 3;
    min-height: 360px;
  }

  .work-card.wide {
    --span: 6;
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card.square,
  .work-card.tall,
  .work-card.wide {
    grid-column: 1;
    min-height: 420px;
  }

  .hero-card {
    max-width: 330px;
  }

  .sparkle-field::before,
  .sparkle-field::after {
    letter-spacing: .9rem;
  }

  .modal-frame figcaption {
    flex-direction: column;
    gap: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
