:root {
  --bg: #050607;
  --bg-soft: #0c0d0f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4efe7;
  --muted: #b4aca0;
  --warm: #9fb8c8;
  --cool: #9fb8c8;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(159, 184, 200, 0.08), transparent 30%),
    linear-gradient(180deg, #060708 0%, #050607 45%, #050607 100%);
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  overflow-x: hidden;
}

img,
video {
  display: block;
  width: 100%;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 4px;
}

.tile:focus-visible img,
.studio-still:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.06) saturate(1.04);
}

em {
  font-style: normal;
  color: var(--warm);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 2000;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #040506 0%, #060708 100%);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

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

.loader__inner {
  width: min(520px, 82vw);
  text-align: center;
}

.loader__kicker,
.eyebrow,
.panel__eyebrow,
.placeholder__eyebrow,
.intro-card__label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.64);
}

.loader__bar {
  position: relative;
  height: 1px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.loader__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 3.4vw;
  pointer-events: none;
  mix-blend-mode: normal;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand__logo {
  width: clamp(128px, 13vw, 180px);
  height: auto;
}

.brand__tag {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.56);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 7, 0.75);
  color: var(--text);
  padding: 12px 15px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 10px;
}

.nav-toggle__icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__icon i {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.3s ease, transform 0.3s ease;
}

.site-nav a:hover {
  color: var(--warm);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 14vh 4vw 7vh;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.05) brightness(0.55);
  transform: scale(1.03);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.48) 36%, rgba(5, 6, 7, 0.84) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.16) 0%, rgba(5, 6, 7, 0.76) 100%),
    radial-gradient(circle at 35% 30%, rgba(159, 184, 200, 0.1), transparent 24%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-top: 10vh;
}

.hero h1,
.section__heading h2,
.wardrobe__content h2,
.ending__card h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 92px);
}

.hero__lede,
.intro-card p,
.gallery__lead-copy p,
.wardrobe__content p,
.ending__card p,
.tile--placeholder p {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.hero__lede {
  max-width: 620px;
  margin-top: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--solid {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.button--solid:hover {
  background: var(--warm);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button--ghost:hover {
  border-color: rgba(159, 184, 200, 0.5);
}

.hero__panel {
  position: absolute;
  right: 4vw;
  bottom: 6.5vh;
  z-index: 2;
  width: min(500px, 88vw);
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 7, 0.56);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.panel__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 14vh 4vw;
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

.section__heading {
  max-width: 1200px;
  margin: 0 auto 6vh;
}

.section__heading h2 {
  font-size: clamp(40px, 5.8vw, 78px);
}

.intro {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(159, 184, 200, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94) 0%, rgba(5, 6, 7, 0.78) 46%, rgba(5, 6, 7, 0.38) 100%),
    linear-gradient(180deg, #050607 0%, rgba(5, 6, 7, 0.24) 34%, #050607 100%),
    url("assets/web/lunavai-black-character.webp") right center / auto 112% no-repeat;
  opacity: 0.92;
  pointer-events: none;
}

.intro > * {
  position: relative;
  z-index: 1;
}

.intro__grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-card {
  padding: 28px 26px 30px;
  min-height: 230px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
  box-shadow: var(--shadow);
}

.intro-card h3,
.gallery__lead-copy h3,
.wardrobe__content h2,
.ending__card h2 {
  margin: 16px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.intro-card h3 {
  font-size: clamp(24px, 2.6vw, 36px);
}

.gallery {
  padding-top: 10vh;
}

.gallery__layout {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
}

.gallery__lead {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.gallery__lead img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.gallery__lead-copy h3 {
  font-size: clamp(30px, 3.4vw, 52px);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
}

.tile {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 280px;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.75s ease;
}

.tile:hover img {
  transform: scale(1.04);
  filter: brightness(1.04) saturate(1.05);
}

.tile--wide {
  grid-column: span 2;
  min-height: 340px;
}

.tile--square {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.tile--tall {
  min-height: 520px;
}

.tile--placeholder {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  cursor: default;
  background:
    radial-gradient(circle at 20% 20%, rgba(134, 169, 197, 0.16), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(159, 184, 200, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.tile--placeholder strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 0.95;
}

.tile--placeholder p {
  max-width: 360px;
}

.tile--placeholder:hover {
  transform: translateY(-2px);
}

.studio-stills {
  width: min(1500px, 100%);
  margin: clamp(72px, 9vw, 132px) auto 0;
}

.studio-stills__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.studio-stills__heading h3 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 400;
  line-height: 0.95;
}

.studio-stills__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 24px;
}

.studio-stills__grid:empty {
  display: none;
}

.studio-still {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  cursor: pointer;
}

.studio-still img {
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
}

.studio-still:hover img {
  transform: scale(1.035);
  filter: brightness(1.04) saturate(1.04);
}

.wardrobe {
  --wardrobe-pointer-x: 0px;
  --wardrobe-pointer-y: 0px;
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(159, 184, 200, 0.08), transparent 25%),
    linear-gradient(180deg, #050607 0%, #050607 100%);
}

.wardrobe__figures {
  position: absolute;
  inset: 0 -4%;
  transform: translate3d(var(--wardrobe-pointer-x), var(--wardrobe-pointer-y), 0);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.wardrobe__figures img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.45));
  transform-origin: center top;
  animation: wardrobeDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes wardrobeDrift {
  0% {
    transform: translate3d(3.5%, 0, 0) scale(1.08);
  }

  50% {
    transform: translate3d(0, 0, 0) scale(1.105);
  }

  100% {
    transform: translate3d(-3.5%, 0, 0) scale(1.08);
  }
}

.wardrobe__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.72) 0%, rgba(5, 6, 7, 0.15) 50%, rgba(5, 6, 7, 0.76) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.18) 0%, rgba(5, 6, 7, 0.66) 100%);
}

.wardrobe__content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 14vh 4vw 8vh;
}

.wardrobe__content h2 {
  font-size: clamp(44px, 6vw, 86px);
}

.wardrobe__content p {
  max-width: 650px;
}

.ending {
  padding-top: 12vh;
  padding-bottom: 16vh;
}

.ending__card {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 25% 10%, rgba(159, 184, 200, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.ending__card h2 {
  font-size: clamp(38px, 5.4vw, 72px);
}

.ending__card p {
  max-width: 700px;
  margin-top: 18px;
}

.ending__card .button {
  margin-top: 28px;
}

.site-footer {
  padding: 22px 4vw 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lightbox {
  width: min(1200px, calc(100vw - 28px));
  height: min(90svh, 900px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 7, 0.98);
  color: var(--text);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(5, 6, 7, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.lightbox__close {
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  font-size: 24px;
}

.lightbox__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 28px;
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

.lightbox__figure {
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.9));
}

.lightbox__figure figcaption {
  padding: 18px 20px 22px;
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

  .gallery__lead {
    position: static;
  }

  .intro__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 18px 5vw;
  }

  .brand__logo {
    width: clamp(120px, 28vw, 160px);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 800;
    padding: 110px 6vw 36px;
    background: rgba(5, 6, 7, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    transform: translateY(-110%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 900;
  }

  .hero {
    padding: 14vh 5vw 7vh;
  }

  .hero__panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .intro::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 7, 0.76) 0%, rgba(5, 6, 7, 0.84) 54%, #050607 100%),
      url("assets/web/lunavai-black-character.webp") center top / auto 82% no-repeat;
    opacity: 0.7;
  }

  .masonry {
    grid-template-columns: 1fr;
  }

  .studio-stills__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile--wide,
  .tile--tall {
    grid-column: auto;
    min-height: 280px;
  }

  .lightbox {
    width: calc(100vw - 16px);
    height: min(88svh, 840px);
  }
}

@media (max-width: 560px) {
  .hero h1,
  .section__heading h2,
  .wardrobe__content h2,
  .ending__card h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero__lede,
  .intro-card p,
  .gallery__lead-copy p,
  .wardrobe__content p,
  .ending__card p,
  .tile--placeholder p {
    font-size: 12px;
    line-height: 1.75;
  }

  .hero__content {
    padding-top: 12vh;
  }

  .hero__panel {
    width: 100%;
  }

  .studio-stills__heading {
    align-items: start;
    flex-direction: column;
  }

  .section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .ending__card {
    padding: 22px;
  }

  .site-footer {
    padding-left: 5vw;
    padding-right: 5vw;
    flex-direction: column;
  }

  .lightbox__nav {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loader__bar span {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__video {
    transform: none;
  }

  .wardrobe__figures {
    transform: none;
    transition: none;
  }

  .wardrobe__figures img {
    animation: none;
    transform: scale(1.02);
  }

  .tile img {
    transition: none;
  }
}
