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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #f3f7fb;
  overscroll-behavior-y: none;
}

html.lightbox-open {
  overflow: hidden;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
  width: 100%;
  overscroll-behavior-y: none;
}

::selection {
  background: #c8c8c8;
  color: #141414;
}

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2.5rem 2rem 4.5rem;
  text-align: center;
  overflow: hidden;
  background: #f3f7fb;
  opacity: 0;
  animation: fade-in 1s ease forwards;
}

.intro::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  left: -25%;
  top: -25%;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 42% at 28% 38%, rgba(155, 188, 228, 0.62) 0%, transparent 72%),
    radial-gradient(ellipse 48% 40% at 72% 28%, rgba(130, 170, 220, 0.52) 0%, transparent 70%),
    radial-gradient(ellipse 52% 44% at 58% 72%, rgba(170, 200, 235, 0.58) 0%, transparent 74%),
    radial-gradient(ellipse 46% 42% at 18% 78%, rgba(140, 178, 225, 0.48) 0%, transparent 68%);
  filter: blur(52px);
  animation: intro-blobs 14s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 52%,
    rgba(255, 255, 255, 0.35) 72%,
    rgba(255, 255, 255, 0.82) 88%,
    #fff 100%
  );
  pointer-events: none;
}

@keyframes intro-blobs {
  0% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(8%, -6%) scale(1.06);
  }

  50% {
    transform: translate(-6%, 8%) scale(1.03);
  }

  75% {
    transform: translate(5%, 5%) scale(1.08);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

.intro__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  max-width: 36rem;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.panel-stack {
  display: grid;
  width: 100%;
}

.panel-stack > .panel {
  grid-area: 1 / 1;
}

.labels {
  margin: 0 auto 1.5rem;
  font-style: italic;
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #2d2d2d;
  letter-spacing: 0.01em;
}

.label {
  background: none;
  border: none;
  font: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: #8a8a8a;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.label:not(:last-child)::after {
  content: "\00a0·\00a0";
  color: #b8b8b8;
  pointer-events: none;
}

.label:hover {
  color: #6b6b6b;
}

.label.active {
  color: #141414;
  cursor: default;
}

.panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.panel.active {
  opacity: 1;
  visibility: visible;
}

.panel p {
  font-style: italic;
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #2d2d2d;
  letter-spacing: 0.01em;
}

.panel a {
  color: #2d2d2d;
  text-decoration: none;
  border-bottom: 1px solid #7a7a7a;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.panel a:hover,
.panel a:focus-visible {
  color: #000;
  border-bottom-color: #000;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.125rem;
}

.panel .social-icon {
  color: #8a8a8a;
  display: flex;
  line-height: 0;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.25s ease;
}

.panel .social-icon:hover {
  color: #2d2d2d;
  border-bottom: none;
}

.social-icon svg {
  width: 0.9375rem;
  height: 0.9375rem;
  fill: currentColor;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  font-style: italic;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #6b6b6b;
  text-decoration: none;
  transition: opacity 0.4s ease, visibility 0.4s ease, color 0.25s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-cue:hover {
  color: #525252;
}

.scroll-cue__arrow {
  width: 1rem;
  height: 1rem;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.25rem);
  }
}

.gallery {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  visibility: hidden;
  padding: 2.5rem 2rem 4rem;
  background: linear-gradient(to bottom, #fafcfe 0%, #fff 8rem);
}

.gallery-col {
  flex: 1;
  min-width: 0;
}

.gallery-col > img {
  margin-bottom: 1.125rem;
  opacity: 0;
}

.gallery-col > *:last-child {
  margin-bottom: 0;
}

.gallery.is-ready {
  visibility: visible;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery.is-ready:not(.interactive) .gallery-col > img {
  opacity: 1;
  transition: opacity 1s ease;
  transition-delay: var(--stagger, 0ms);
}

.gallery.interactive .gallery-col > img {
  opacity: 1;
  filter: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.lightbox.lightbox--series {
  align-items: flex-start;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lightbox.lightbox--series::-webkit-scrollbar {
  display: none;
}

.lightbox.is-open,
.lightbox.is-closing {
  pointer-events: auto;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox--series .lightbox__content {
  gap: 2.5rem;
  padding: 1rem 0 3rem;
}

.lightbox__piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: calc(100vw - 4rem);
}

.lightbox__piece img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox__caption {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-style: italic;
  font-weight: 300;
  font-size: 0.75rem;
  line-height: 1.65;
  color: #2d2d2d;
  letter-spacing: 0.01em;
  text-align: center;
}

.gallery.interactive:has(img:hover) img:not(:hover) {
  opacity: 0.3;
  filter: blur(1px);
}

@media (max-width: 900px) {
  .gallery {
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  html {
    scroll-behavior: auto;
  }

  .intro {
    padding: 1.75rem 1.25rem 3.5rem;
    min-height: 100svh;
    opacity: 1;
    animation: none;
  }

  .intro::before {
    animation: none;
    filter: none;
    will-change: auto;
    transform: translateZ(0);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background:
      radial-gradient(ellipse 90% 70% at 30% 35%, rgba(155, 188, 228, 0.5) 0%, transparent 68%),
      radial-gradient(ellipse 85% 65% at 70% 30%, rgba(130, 170, 220, 0.42) 0%, transparent 65%),
      radial-gradient(ellipse 90% 70% at 55% 75%, rgba(170, 200, 235, 0.48) 0%, transparent 70%),
      radial-gradient(ellipse 80% 65% at 20% 80%, rgba(140, 178, 225, 0.4) 0%, transparent 66%);
  }

  .intro::after {
    transform: translateZ(0);
  }

  .scroll-cue {
    position: fixed;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .gallery {
    flex-direction: column;
    padding: 1.75rem 1.25rem 3rem;
    background: linear-gradient(to bottom, #fafcfe 0%, #fff 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro::before {
    animation: none;
  }
}
