:root {
  --bg-black: #0b0b0b;
  --bg-dark: #1f1f1f;
  --text-light: #eeeeee;
  --text-gray: #e4e4e4;
  --text-muted: #a6a6a6;
  --purple: #a259ff;
  --purple-light: #f2e5ff;
  --orange: #f24e1e;
  --blue: #1abcfe;
  --green: #0acf83;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-black);
  color: var(--text-light);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.section-heading h2 {
  font-weight: 800;
  font-size: 56px;
  margin: 0;
  letter-spacing: 0.5px;
}

.section-heading p {
  font-weight: 400;
  font-size: 18px;
  margin: 0;
  color: var(--text-light);
}

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

.hero {
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 96px 24px 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-image: url("../images/hero-mesh-gradient.jpg");
  background-size: cover;
  background-position: center;
  animation: meshDrift 40s ease-in-out infinite alternate;
}

.hero__inner,
.hero .collage {
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.hero__title {
  font-weight: 300;
  font-size: 65px;
  margin: 0;
  color: var(--text-light);
  line-height: 1.1;
}

.hero__lockup {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__lockup-config { height: 68px; width: auto; }
.hero__lockup-x { height: 50px; width: 50px; }
.hero__lockup-udig { height: 90px; width: auto; }

.hero__date {
  font-weight: 300;
  font-size: 24px;
  margin: 0;
  color: var(--text-light);
}

.collage {
  position: relative;
  width: 100%;
  max-width: 1160px;
  height: 560px;
  margin-top: 16px;
}

.collage__photo {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.collage__photo--1 {
  left: 2%;
  top: 50px;
  width: 32%;
  max-width: 380px;
  height: 480px;
  transform: rotate(6deg);
  z-index: 1;
}

.collage__photo--2 {
  left: 50%;
  top: -12px;
  width: 34%;
  max-width: 420px;
  height: 520px;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
}

.collage__photo--3 {
  right: 2%;
  top: 60px;
  width: 32%;
  max-width: 380px;
  height: 460px;
  transform: rotate(4deg);
  z-index: 1;
}

/* ---------- THE VIBE ---------- */

.vibe {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 84px 24px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1112px;
}

.gallery__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 260px;
  margin: 0;
}

.gallery__item img {
  width: 260px;
  height: 260px;
  border-radius: 12px;
  object-fit: cover;
}

.gallery__item figcaption {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-light);
  text-align: center;
}

/* ---------- WHAT'S NEW ---------- */

.whats-new {
  background-color: var(--bg-black);
  background-image: url("../images/whats-new-facets.png");
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 96px 24px 40px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1158px;
}

.card {
  background: var(--bg-dark);
  border-radius: 16px;
  padding: 28px 24px;
  width: 370px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon img { width: 24px; height: 24px; }

.card__icon--orange { background: var(--orange); }
.card__icon--purple { background: var(--purple); }
.card__icon--blue { background: var(--blue); }
.card__icon--green { background: var(--green); }

.card h3 {
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  color: var(--text-light);
}

.card p {
  font-weight: 400;
  font-size: 14px;
  margin: 0;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ---------- THE TAKES ---------- */

.takes {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 84px 24px;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
  max-width: 1112px;
}

.testimonial {
  display: flex;
  align-items: center;
  gap: 32px;
}

.testimonial__text {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
}

.testimonial__text p {
  font-weight: 500;
  font-size: 22px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.testimonial__quote { width: 50px; height: 50px; flex-shrink: 0; }
.testimonial__quote--flip { transform: rotate(180deg) scaleY(-1); }

.testimonial__photo {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial__byline p { margin: 0; color: var(--text-light); }
.testimonial__byline .testimonial__name { font-weight: 700; font-size: 24px; }
.testimonial__byline .testimonial__role { font-weight: 500; font-size: 18px; }

.testimonial__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.testimonial--right .testimonial__col { align-items: flex-end; }
.testimonial--right .testimonial__byline { align-items: flex-end; text-align: right; }

.testimonial--left .testimonial__col { align-items: flex-start; }
.testimonial--left .testimonial__text { justify-content: flex-end; }
.testimonial--left .testimonial__byline { align-items: flex-start; text-align: left; }

/* ---------- QUOTE BANNER ---------- */

.quote-banner {
  background-color: var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-image: url("../images/quote-nebula.jpg");
  background-size: cover;
  background-position: center;
  animation: nebulaDrift 36s ease-in-out infinite alternate;
}

.quote-banner__text,
.quote-banner__attr {
  position: relative;
  z-index: 1;
}

.quote-banner__text {
  font-weight: 800;
  font-size: 48px;
  color: var(--text-light);
  margin: 0;
  max-width: 1120px;
  line-height: 1.3;
}

.quote-banner__attr {
  font-weight: 500;
  font-size: 20px;
  color: var(--purple-light);
  margin: 0;
}

/* ---------- SIGN-OFF ---------- */

.sign-off {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
}

.sign-off__title {
  font-weight: 700;
  font-size: 28px;
  color: var(--text-light);
  margin: 0;
}

.sign-off__crew {
  font-weight: 400;
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  max-width: 900px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .hero__title { font-size: 44px; }
  .hero__lockup-config { height: 48px; }
  .hero__lockup-udig { height: 64px; }
  .hero__date { font-size: 18px; }
  .section-heading h2 { font-size: 40px; }

  .collage {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: static;
  }
  .collage__photo {
    position: static;
    transform: none !important;
    width: 85%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .quote-banner__text { font-size: 32px; }

  .testimonial, .testimonial--right, .testimonial--left {
    flex-direction: column !important;
    text-align: center;
  }
  .testimonial__col {
    align-items: center !important;
  }
  .testimonial__byline {
    align-items: center !important;
    text-align: center !important;
  }
  .testimonial__text { flex-direction: column; align-items: center; text-align: center; }
  .testimonial__quote--flip { transform: none; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 16px 56px; }
  .hero__title { font-size: 34px; }
  .section-heading h2 { font-size: 32px; }
  .vibe, .whats-new, .takes { padding: 56px 16px; }
  .gallery__item, .gallery__item img { width: 100%; max-width: 320px; }
  .card { width: 100%; max-width: 400px; }
  .quote-banner { padding: 72px 20px; }
  .quote-banner__text { font-size: 26px; }
}

/* ---------- SHADER BACKGROUND ANIMATIONS ---------- */

@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(2%, -2%, 0) scale(1); }
}

@keyframes nebulaDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) rotate(1.5deg) scale(1.05); }
  100% { transform: translate3d(-1%, 1%, 0) rotate(-1deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .quote-banner::before {
    animation: none;
  }
}
