:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-soft: #111111;
  --text: #f3f3f3;
  --muted: #9e9e9e;
  --line: rgba(255, 255, 255, 0.1);
  --accent-1: #ff8200;
  --accent-2: #ff2600;
  --glow: rgba(193, 244, 246, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, #030303 0%, #050505 45%, #020202 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -ms-overflow-style: none;
}

body.is-locked {
  overflow: hidden;
}

body:not(.intro-dismissed) .page {
  opacity: 0;
}

body.intro-dismissed .page {
  opacity: 1;
}

.scramble-char {
  display: inline-block;
  min-width: 0.5ch;
}

button,
input,
textarea,
select {
  font: inherit;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #050505;
  transition: opacity 1.8s ease, visibility 1.8s ease;
  overscroll-behavior: contain;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__inner {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}

.intro__credit {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.intro__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.intro__cake {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  animation: float-cake 4.5s ease-in-out infinite;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.page {
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease;
}

.panel {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 7rem 1.5rem;
}

.panel__content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem 0;
}

.panel--photo {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.panel__content--photo {
  width: min(100%, 720px);
}

.photo__caption {
  margin: 0 0 1.75rem;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  text-align: center;
}

.text-block {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.photo-grid .photo,
.panel--photo .photo {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity 1.8s ease,
    transform 2.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(30deg, var(--accent-1) 20%, var(--accent-2) 80%);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.8s cubic-bezier(0.8, 0, 0, 1) infinite;
  transition: transform 0.8s ease, filter 0.8s ease;
  cursor: pointer;
}

.button:is(:hover, :focus-visible) {
  transform: scale(1.08);
  filter: brightness(1.05);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--glow);
  }

  100% {
    box-shadow: 0 0 0 45px rgba(193, 244, 246, 0);
  }
}

@keyframes float-cake {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 640px) {
  .intro {
    padding: 1.5rem;
  }

  .intro__inner {
    gap: 1.2rem;
  }

  .intro__title-row {
    gap: 0.75rem;
  }

  .panel {
    padding: 5rem 1.25rem;
  }
}
