:root {
  --bg-top: #311978;
  --bg-mid: #87547e;
  --bg-bottom: #ffbf6b;
  --surface: rgba(16, 11, 44, 0.5);
  --surface-strong: rgba(12, 8, 33, 0.76);
  --text: #fff9ff;
  --muted: #e8dcf8;
  --line: rgba(255, 255, 255, 0.16);
  --peach: #ffb96b;
  --yellow: #ffd966;
  --shadow: 0 24px 60px rgba(16, 9, 42, 0.28);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(146, 104, 255, 0.34), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(255, 186, 110, 0.28), transparent 24%),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #190d3d 0%, #351b77 36%, #65408d 68%, #9d6d85 100%);
}

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

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

img,
video {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  isolation: isolate;
}

.galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.94;
}

.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 84;
  pointer-events: none;
  opacity: 0.96;
}

.cursor-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 85;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 160ms ease;
}

.cursor-star {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 248, 221, 0.98) 0%, rgba(255, 218, 126, 0.92) 52%, rgba(255, 218, 126, 0) 100%);
  box-shadow: 0 0 12px rgba(255, 218, 126, 0.86);
}

.cursor-star-main {
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
}

.cursor-star-one {
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  opacity: 0.8;
}

.cursor-star-two {
  top: 1px;
  right: 1px;
  width: 2px;
  height: 2px;
  opacity: 0.66;
}

.cursor-star-three {
  bottom: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  opacity: 0.62;
}

.cursor-star-four {
  right: 0;
  bottom: 0;
  width: 3px;
  height: 3px;
  opacity: 0.76;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.glow-violet {
  top: 2rem;
  right: -7rem;
  width: 24rem;
  height: 24rem;
  background: rgba(184, 120, 255, 0.18);
}

.glow-peach {
  bottom: 5rem;
  left: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(255, 177, 108, 0.18);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 58%, rgba(255, 255, 255, 0.68) 0 1.5px, transparent 3px),
    radial-gradient(circle at 16% 76%, rgba(255, 232, 196, 0.64) 0 1.5px, transparent 3px),
    radial-gradient(circle at 31% 26%, rgba(228, 214, 255, 0.7) 0 1.5px, transparent 3px),
    radial-gradient(circle at 43% 72%, rgba(255, 255, 255, 0.66) 0 1.5px, transparent 3px),
    radial-gradient(circle at 57% 18%, rgba(255, 232, 196, 0.64) 0 1.5px, transparent 3px),
    radial-gradient(circle at 63% 64%, rgba(233, 224, 255, 0.62) 0 1.5px, transparent 3px),
    radial-gradient(circle at 74% 12%, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 34%, rgba(255, 232, 196, 0.64) 0 1.5px, transparent 3px),
    radial-gradient(circle at 86% 48%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 71%, rgba(224, 205, 255, 0.64) 0 1.5px, transparent 3px),
    radial-gradient(circle at 54% 32%, rgba(255, 217, 102, 0.7) 0 2px, transparent 3px);
  opacity: 0.42;
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-header,
.section {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 11, 47, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--peach));
  box-shadow: 0 0 16px rgba(255, 217, 102, 0.72);
}

.site-nav {
  display: inline-flex;
  gap: 1.35rem;
  color: var(--muted);
}

.nav-cta,
.button,
.skill-pills span,
.social-links a,
.project-count,
.item-tag,
.lightbox-tags span {
  border-radius: 999px;
}

.nav-cta,
.button,
.gallery-item,
.lightbox-close,
.lightbox-nav {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
}

.nav-cta,
.button-primary {
  color: #281446;
  background: linear-gradient(135deg, var(--yellow), var(--peach));
  box-shadow: 0 12px 24px rgba(255, 190, 98, 0.28);
}

.button-secondary,
.social-links a,
.skill-pills span,
.project-count,
.item-tag,
.lightbox-close,
.lightbox-nav {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta:hover,
.button:hover,
.gallery-item:hover,
.lightbox-close:hover,
.lightbox-nav:hover,
.social-links a:hover {
  transform: translateY(-2px);
}

.lightbox[open],
.lightbox[open] * {
  cursor: auto !important;
}

.section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #fff0b8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.spotlight-copy h2,
.about-copy h2,
.contact-card h2,
.project-header h3,
.item-meta h4,
.lightbox-meta h3 {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-text,
.about-copy p,
.project-blurb,
.item-meta p,
.spotlight-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 48ch;
  margin-top: 1.2rem;
}

.hero-actions,
.skill-pills,
.social-links,
.project-tags,
.lightbox-tags,
.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 1.8rem;
}

.skill-pills {
  margin-top: 1rem;
}

.skill-pills span,
.project-count,
.item-tag,
.lightbox-tags span {
  padding: 0.7rem 1rem;
}

.hero-visual {
  position: relative;
  min-height: 39rem;
  display: grid;
  place-items: center;
}

.pfp-frame,
.spotlight-card,
.project-panel,
.trailer-card,
.about-card,
.contact-card,
.lightbox {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.pfp-frame {
  width: min(100%, 30rem);
  aspect-ratio: 3 / 4;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
}

.pfp-frame img,
.about-image img {
  width: 100%;
  height: 100%;
}

.pfp-frame img,
.about-image img {
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
}

.gallery-item img,
.spotlight-item img,
.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-badge {
  position: absolute;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(18, 11, 47, 0.78);
}

.hero-badge span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.badge-top {
  top: 2rem;
  left: 0;
}

.badge-bottom {
  right: 0;
  bottom: 2rem;
}

.spotlight-card,
.project-panel,
.about-card,
.contact-card,
.lightbox {
  border-radius: var(--radius-xl);
}

.spotlight-card,
.project-panel,
.about-card,
.contact-card {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 1.25rem;
  padding: 1.2rem;
}

.trailers-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1rem;
}

.trailer-card {
  overflow: hidden;
  padding: 0.9rem;
}

.trailer-featured {
  grid-row: span 2;
}

.trailer-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 4, 18, 0.9);
}

.trailer-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090612;
}

.trailer-copy {
  padding: 1rem 0.3rem 0.2rem;
}

.trailer-copy h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.trailer-copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.spotlight-copy h2,
.section-heading h2,
.about-copy h2,
.contact-card h2 {
  margin: 0;
  line-height: 0.97;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spotlight-item {
  position: relative;
  min-height: 14rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.spotlight-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(9, 6, 28, 0.8));
}

.spotlight-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.spotlight-label strong {
  display: block;
  font-size: 1.05rem;
}

.spotlight-note {
  margin-top: 0.8rem;
}

.section-heading {
  margin-bottom: 1.7rem;
}

.project-list {
  display: grid;
  gap: 1.2rem;
}

.project-panel {
  padding: 1.2rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-header h3,
.item-meta h4 {
  margin: 0;
}

.project-header h3 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.project-blurb {
  margin: 0.6rem 0 0;
  max-width: 62ch;
}

.project-count {
  white-space: nowrap;
}

.media-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.gallery-item.is-lead {
  grid-column: span 2;
}

.gallery-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(7, 4, 18, 0.9);
  padding: 0.75rem;
}

.gallery-item.is-lead .gallery-frame {
  aspect-ratio: 1.12 / 1;
}

.item-meta {
  padding: 1rem;
}

.item-meta h4 {
  font-size: 1.2rem;
}

.item-meta p {
  margin: 0.5rem 0 0.9rem;
  min-height: 3.4rem;
}

.about-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
}

.about-image {
  aspect-ratio: 1 / 1;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
}

.about-copy {
  padding: 1rem;
}

.contact-card {
  padding: 2rem;
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.lightbox {
  width: min(calc(100% - 2rem), 1120px);
  padding: 1rem;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(7, 4, 18, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.lightbox-content {
  display: grid;
  gap: 1rem;
}

.lightbox-content img {
  max-height: 72vh;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(9, 6, 28, 0.9);
}

.lightbox-meta h3 {
  margin: 0.1rem 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.lightbox-project {
  margin: 0;
  color: #fff0b8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.7rem 1rem;
  color: var(--text);
  cursor: pointer;
}

.lightbox-nav {
  padding: 0.9rem 1rem;
  color: var(--text);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .spotlight-card,
  .about-card {
    grid-template-columns: 1fr;
  }

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

  .trailer-featured {
    grid-row: auto;
  }

  .media-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: 28rem;
  }

  .badge-top,
  .badge-bottom {
    position: static;
  }

  .hero-visual {
    gap: 1rem;
  }

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

  .project-header {
    flex-direction: column;
  }

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

  .gallery-item.is-lead {
    grid-column: span 2;
  }

  .lightbox[open] {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section {
    width: min(calc(100% - 1.1rem), var(--container));
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero-actions,
  .skill-pills,
  .social-links {
    flex-direction: column;
  }

  .button,
  .nav-cta,
  .social-links a {
    width: 100%;
  }

  .contact-card,
  .project-panel,
  .spotlight-card {
    padding: 1rem;
  }

  .media-rail {
    grid-template-columns: 1fr;
  }

  .gallery-item.is-lead {
    grid-column: span 1;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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