:root {
  --cream: #F7F1E4;
  --ink: #212121;
  --orange: #FF664D;
  --teal: #A2C1C4;
  --overlay-dark: rgba(10, 10, 10, .55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--cream);
}

/* ---------- INTRO ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
}

.intro.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro__skip {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: 24px;
  background: transparent;
  border: 1px solid rgba(247, 241, 228, .4);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .05em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  opacity: .7;
  transition: opacity .25s ease, border-color .25s ease;
}

.intro__skip:hover {
  opacity: 1;
  border-color: var(--orange);
}

/* ---------- MAIN ---------- */

.main {
  position: fixed;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.main.is-visible {
  opacity: 1;
}

/* ---------- GALLERY ---------- */

.gallery {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2s ease;
  animation: kenburns 18s ease-in-out infinite alternate;
}

.gallery__slide.is-active {
  opacity: 1;
  z-index: 2;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55) 55%, rgba(0,0,0,.7)),
    radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.55) 80%);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 48px);
  padding: 0 24px;
}

.hero__title {
  position: relative;
}

.hero__asterisk {
  position: absolute;
  top: 0;
  right: -0.75em;
  transform: translateY(-78%) rotate(0deg);
  width: 0.75em;
  height: auto;
  opacity: 0;
  animation: spin 16s linear infinite, fadein 1s ease .3s forwards;
}

@keyframes spin {
  from { transform: translateY(-78%) rotate(0deg); }
  to   { transform: translateY(-78%) rotate(360deg); }
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__title {
  font-family: "Bebas Neue", -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 8.5rem);
  letter-spacing: clamp(.06em, 1vw, .12em);
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  text-align: center;
  color: var(--cream);
  opacity: 0;
  transform: translateY(24px);
  animation: title-in 1.1s cubic-bezier(.16,.8,.28,1) .4s forwards;
}

@keyframes title-in {
  to { opacity: 1; transform: translateY(0); }
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 28px);
  opacity: 0;
  animation: title-in 1s cubic-bezier(.16,.8,.28,1) .9s forwards;
}

.socials__link {
  display: block;
  width: clamp(34px, 4.5vw, 48px);
  height: clamp(34px, 4.5vw, 48px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .3s ease;
}

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

.socials__link:hover,
.socials__link:focus-visible {
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0 6px 14px rgba(255, 102, 77, .45));
}

/* ---------- FOOTER ---------- */

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 3;
  text-align: center;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, .5);
  opacity: 0;
  animation: fadein 1s ease 1.3s forwards;
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  .gallery__slide,
  .hero__asterisk,
  .hero__title,
  .socials,
  .site-footer {
    animation: none !important;
  }
  .hero__title,
  .socials {
    opacity: 1;
    transform: none;
  }
  .hero__asterisk { opacity: .95; }
  .site-footer { opacity: 1; }
}

