:root {
  color-scheme: dark;
  --bg-primary: radial-gradient(circle at 50% 42%, rgba(5, 5, 5, 0.98) 0%, rgba(10, 10, 10, 0.97) 22%, rgba(22, 22, 22, 0.92) 52%, rgba(52, 52, 52, 0.72) 100%),
    linear-gradient(140deg, rgba(28, 28, 28, 0.96) 0%, rgba(18, 18, 18, 0.98) 55%, rgba(36, 36, 36, 0.94) 100%);
  --bg-vignette: radial-gradient(circle at 50% 46%, rgba(255, 217, 90, 0.03), rgba(0, 0, 0, 0) 72%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  --pink: #ff6b9d;
  --pink-soft: rgba(255, 107, 157, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.08);
  --surface: rgba(0, 0, 0, 0.36);
  --shadow: 0 20px 45px rgba(3, 3, 3, 0.85), 0 6px 18px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background-color: #040404;
  background-image: var(--bg-primary), var(--bg-vignette);
  color: var(--text);
  font-family: "JetBrains Mono", SFMono-Regular, ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.28) 34%, transparent 62%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.78) 8%, transparent 16%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.page-shell {
  position: relative;
}

.hero-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  position: relative;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.nav-logo,
.nav-link,
.section-kicker,
.project-category,
.project-index,
.contact-link {
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-logo,
.nav-link {
  font-size: 0.68rem;
  color: var(--pink);
}

.nav-link {
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.72;
}

.landing-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-stack {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  text-align: center;
  transform: translateY(-5vh);
}

.headline-stack,
.headline-wrapper {
  width: 100%;
}

.headline-wrapper {
  position: relative;
  isolation: isolate;
}

.headline-wrapper::after {
  content: "";
  position: absolute;
  inset: -5% -7%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 42%, rgba(16, 16, 16, 0.18) 68%, rgba(52, 52, 52, 0.42) 100%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}

html.js video.headline-video {
  opacity: 0;
}

html.js video.headline-video.hero-fallback-visible {
  opacity: 1;
}

.headline-video {
  width: 100%;
  max-width: 640px;
  display: block;
  margin: 0 auto 1rem;
  mix-blend-mode: screen;
  filter: contrast(1.78) brightness(1.28);
  background: transparent;
}

.hero-key-canvas {
  opacity: 1;
}

.headline-caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pink);
}

.enter-wrapper {
  width: 100%;
  max-width: 260px;
}

.enter-button {
  position: relative;
  width: 100%;
  border-radius: 999px;
  padding: 1rem 3.5rem;
  background: linear-gradient(90deg, rgba(255, 157, 230, 0.95), rgba(255, 95, 181, 0.95));
  color: #050505;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 14px 54px rgba(255, 150, 210, 0.46), 0 0 38px rgba(255, 190, 235, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 2px 10px rgba(255, 255, 255, 0.22),
    inset 0 -14px 24px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(255, 150, 210, 0.58), 0 0 50px rgba(255, 185, 240, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 2px 10px rgba(255, 255, 255, 0.22),
    inset 0 -14px 24px rgba(0, 0, 0, 0.32);
}

.enter-label,
.enter-border,
.enter-glow,
.enter-wash {
  position: relative;
  z-index: 1;
}

.enter-border,
.enter-glow,
.enter-wash {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
}

.enter-border {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.enter-glow {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.9;
}

.enter-wash {
  background: rgba(255, 122, 199, 0.38);
  filter: blur(22px);
}

.client-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  overflow: hidden;
}

.client-banner-inner {
  overflow: hidden;
}

.client-marquee {
  display: inline-block;
  white-space: nowrap;
  color: var(--pink);
  opacity: 0.62;
  font-size: 0.95rem;
  animation: marqueeScroll 34s linear infinite;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.portfolio-scroll {
  width: min(1320px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 8rem 0 6rem;
}

.section-intro,
.closing-section {
  width: min(820px, 100%);
  margin: 0 auto 8rem;
  text-align: center;
}

.section-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  color: var(--pink);
}

.section-intro h1,
.closing-section h2 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-copy {
  width: min(620px, 100%);
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.project-block {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 4rem);
  align-items: start;
  margin-bottom: 7rem;
}

.project-meta {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 0.75rem;
}

.project-index {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.project-category {
  margin: 0;
  font-size: 0.72rem;
  color: var(--pink);
  line-height: 1.6;
}

.project-title {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.project-description {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.project-media-wrap {
  position: relative;
  border-radius: 1.8rem;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: clamp(360px, 62vw, 760px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-media-wrap--contain {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25));
}

.project-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media--contain {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.45);
}

.closing-section {
  padding: 4rem 0 2rem;
}

.contact-link {
  display: inline-flex;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--pink);
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.72;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .portfolio-scroll {
    width: min(100vw - 2rem, 1320px);
    padding-top: 6rem;
  }

  .project-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 5rem;
  }

  .project-meta {
    position: static;
    padding-top: 0;
  }

  .project-media-wrap {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1rem;
  }

  .landing-stack {
    transform: translateY(0);
  }

  .portfolio-scroll {
    width: calc(100vw - 1.5rem);
  }

  .section-intro,
  .closing-section {
    margin-bottom: 5rem;
  }

  .project-title {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .client-banner {
    padding: 0.85rem 1rem;
  }

  .client-marquee {
    font-size: 0.78rem;
  }
}
