:root {
  color-scheme: dark;
  --bg-primary: radial-gradient(circle at 50% 42%, rgba(5, 5, 5, 0.98) 0%, rgba(10, 10, 10, 0.965) 22%, rgba(18, 18, 18, 0.9) 52%, rgba(40, 40, 40, 0.66) 100%),
    linear-gradient(140deg, rgba(20, 20, 20, 0.95) 0%, rgba(14, 14, 14, 0.97) 55%, rgba(28, 28, 28, 0.9) 100%);
  --bg-vignette: radial-gradient(circle at 50% 46%, rgba(255, 217, 90, 0.018), rgba(0, 0, 0, 0) 74%);
  --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: "Outfit", Arial, sans-serif;
  -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.58) 0%, rgba(0, 0, 0, 0.18) 34%, transparent 66%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42) 8%, transparent 20%);
  pointer-events: none;
  z-index: -2;
}

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

body.menu-open {
  overflow: hidden;
}

.floating-contact-btn {
  position: fixed;
  right: 1rem;
  bottom: 2.9rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, rgba(255, 157, 230, 0.98), rgba(255, 95, 181, 0.98));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #050505;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 18px 40px rgba(255, 123, 201, 0.36), 0 10px 26px rgba(0, 0, 0, 0.42);
  transition: width 0.22s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact-btn:hover,
.floating-contact-btn:focus-visible {
  width: 140px;
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(255, 123, 201, 0.42), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.floating-contact-btn__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-contact-btn__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.floating-contact-btn__text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.floating-contact-btn:hover .floating-contact-btn__text,
.floating-contact-btn:focus-visible .floating-contact-btn__text {
  opacity: 1;
  transform: translateX(0);
}

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 {
  font-family: "JetBrains Mono", SFMono-Regular, ui-monospace, monospace;
  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;
  padding-top: 0;
}

.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;
}

.headline-intro {
  margin: 0 0 0.55rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 300;
  color: var(--pink);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.headline-title {
  margin: 0 0 0.8rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text);
}

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

.headline-caption {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.headline-title + .headline-caption {
  margin-top: 0.25rem;
}

.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.98), rgba(255, 95, 181, 0.98));
  color: #050505;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 18px 40px rgba(255, 123, 201, 0.36), 0 10px 26px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(255, 123, 201, 0.42), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.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.96rem;
  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;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-intro,
.closing-section {
  grid-column: 1 / -1;
  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(600px, 100%);
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1;
}

.project-block {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.25rem);
  align-items: start;
  margin-bottom: 0;
}

.project-link {
  color: inherit;
  text-decoration: none;
  padding: 0.9rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 157, 0.22);
  background: rgba(0, 0, 0, 0.34);
}

.project-meta {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 0.35rem;
}

.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(1.7rem, 2.6vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

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

.project-media-wrap {
  position: relative;
  border-radius: 1.6rem;
  border: 1px solid var(--glass-border);
  background: #000;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-media-wrap--contain {
  background: #000;
}

.project-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.project-media--contain {
  object-fit: contain;
  background: #000;
}

.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;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-1px);
  opacity: 0.72;
}

.social-link svg rect {
  fill: currentColor;
}

.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;
    grid-template-columns: 1fr;
  }

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

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

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

@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;
  }
}
