* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: #111112;
  color: white;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

/* Remove tap highlight from all navbar interactions */

.navbar a,
.navbar button {
  -webkit-tap-highlight-color: transparent;
}

.navbar {
  width: 578px;
  height: 57.92px;
  background: rgba(130, 130, 130, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(184, 184, 184, 0.12);
  overflow: hidden;

  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;

  border-radius: 32px;

  padding: 12px;
  display: flex;
  align-items: center;

  transition: width 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Navbar Small State */

.navbar.is-small {
  width: 300px;
}

.navbar.is-small .nav-links {
  opacity: 0;
  transform: translateX(calc(100% - 24px));
  pointer-events: none;
}

/* Profile */

.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.profile-img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 112%;
  color: #f7f7f7;
  white-space: nowrap;

  display: flex;
  align-items: center;
}

.last-name {
  display: block;
  max-width: 80px;
  opacity: 1;
  overflow: hidden;
  margin-left: 4px;

  transition:
    opacity 0.3s ease,
    max-width 0s 0s,
    margin-left 0s 0s;
}

.navbar.is-small .last-name {
  opacity: 0;
  max-width: 0;
  margin-left: 0;

  transition:
    opacity 0.3s ease,
    max-width 0s 0.3s,
    margin-left 0s 0.3s;
}

/* Nav Links */

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;

  opacity: 1;
  transform: translateX(0);

  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-links a {
  color: #dedede;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;

  transition: color 0.2s cubic-bezier(0.44, 0, 0.56, 1);
}

.nav-links a:hover {
  color: #ffffff;
}

/* Contact Button */

.nav-links .contact-btn {
  color: #ffffff;
  background: #ea0044;

  height: 34px;
  padding: 8px 18px;
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    rgba(234, 0, 68, 0.68) 0px 0.48175px 0.86715px -1.16667px,
    rgba(234, 0, 68, 0.61) 0px 1.83083px 3.29549px -2.33333px,
    rgba(234, 0, 68, 0.3) 0px 8px 14.4px -3.5px,
    rgba(255, 255, 255, 0.1) 0.318477px 0.437996px 0.324881px -1.1875px inset,
    rgba(255, 255, 255, 0.84) 0.965802px 1.32798px 0.985225px -2.375px inset,
    rgba(255, 255, 255, 0.66) 2.55306px 3.51046px 2.6044px -3.5625px inset,
    rgba(255, 255, 255, 0.05) 8px 11px 8.16088px -4.75px inset;

  transition: box-shadow 0.3s ease;
}

.nav-links .contact-btn:hover {
  color: #ffffff;
  background: #ea0044;

  box-shadow:
    rgba(0, 0, 0, 0) 0px 0.597144px 0.597144px -0.9375px,
    rgba(0, 0, 0, 0) 0px 1.81088px 1.81088px -1.875px,
    rgba(0, 0, 0, 0) 0px 4.78699px 4.78699px -2.8125px,
    rgba(0, 0, 0, 0) 0px 15px 15px -3.75px;
}

/* Hamburger */

.nav-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
}

.hamburger {
  width: 24px;
  height: 24px;

  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  border: 0;
  padding: 0;
  background: transparent;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    left 0.45s cubic-bezier(0.76, 0, 0.24, 1);

  cursor: pointer;
}

.hamburger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #dedede;

  transition:
    transform 200ms ease-in-out,
    opacity 200ms ease-in-out;
}

/* Slower only when navbar becomes short */

.navbar.is-small .hamburger span {
  transition:
    transform 500ms ease-in-out,
    opacity 500ms ease-in-out;
}

/* Hover expand stays at original speed */

.navbar.is-small.is-hover-expanded .hamburger span {
  transition:
    transform 200ms ease-in-out,
    opacity 200ms ease-in-out;
}

/* Normal hidden hamburger state */

.hamburger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hamburger span:nth-child(2) {
  background: #b8b8b8;
  opacity: 0;
}

.hamburger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hamburger visible when navbar becomes small */

.navbar.is-small .hamburger {
  opacity: 1;
  pointer-events: auto;
  left: calc(100% - 24px);
}

.navbar.is-small .hamburger span:nth-child(1),
.navbar.is-small .hamburger span:nth-child(3) {
  transform: translateY(0) rotate(0deg);
}

.navbar.is-small .hamburger span:nth-child(2) {
  opacity: 1;
}

/* Hover Expanded State */

.navbar.is-small.is-hover-expanded {
  width: 578px;
}

.navbar.is-small.is-hover-expanded .nav-links {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.navbar.is-small.is-hover-expanded .last-name {
  opacity: 1;
  max-width: 80px;
  margin-left: 4px;

  transition:
    opacity 0.3s ease,
    max-width 0s 0s,
    margin-left 0s 0s;
}

/* Same hamburger animation as scroll-up */

.navbar.is-small.is-hover-expanded .hamburger {
  opacity: 0;
  pointer-events: none;
  left: 0;
}

.navbar.is-small.is-hover-expanded .hamburger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.navbar.is-small.is-hover-expanded .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar.is-small.is-hover-expanded .hamburger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Heading Font */

.heading-font {
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
}

/* =========================
   Page Container
========================= */

.page-container {
  width: 100%;
  max-width: 1080px;

  margin: 0 auto;

  padding-left: 36px;
  padding-right: 36px;
}

/* =========================
   Hero
========================= */

.hero {
  width: 100%;
  padding-top: 120px;
}

.hero-stage {
  width: 100%;
  height: 500px;

  position: relative;
}

/* =========================
   Hero Heading
========================= */

.hero-title {
  width: 100%;

  position: absolute;
  top: 0;
  left: 50%;

  transform: translateX(-50%);

  text-align: center;

  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;

  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;

  opacity: 0;
  animation: heroTitleFade 1s ease-in 1s forwards;
}

@keyframes heroTitleFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-think,
.hero-creatively {
  display: block;
  white-space: nowrap;
}

.hero-think {
  color: #f7f7f7;

  font-size: clamp(170px, 21.5vw, 232px);
  font-weight: 600;

  line-height: 0.78;
  letter-spacing: -0.04em;
}

.hero-creatively {
  color: #ea0044;

  font-size: min(194px, calc((100vw - 72px) / 5.19));
  font-weight: 700;

  line-height: 0.79;
  letter-spacing: -0.02em;
}

@media (min-width: 769px) {
  .hero-creatively {
    transform: translateX(-9px);
  }
}

/* =========================
   Hero Avatar
========================= */

.hero-avatar-shell {
  width: 480px;
  aspect-ratio: 1;

  position: absolute;

  left: 50%;
  top: 20px;

  transform: translateX(-50%);

  z-index: 3;

  pointer-events: none;

  user-select: none;
  -webkit-user-select: none;

  opacity: 0;
  animation: heroAvatarFade 1.2s ease forwards;
}

@keyframes heroAvatarFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-avatar-motion {
  width: 100%;
  height: 100%;

  will-change: transform;
}

.hero-avatar {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

/* =========================
   Hero Bottom Content
========================= */

.hero-bottom {
  width: 100%;

  position: absolute;

  top: 335px;
  left: 0;

  padding: 0;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  z-index: 5;

  .hero-bottom {
    opacity: 1;
  }
}

.hero-intro-desktop .hero-bottom {
  opacity: 0;
  animation: heroBottomEnter 0.9s ease 0.5s forwards;
}

@keyframes heroBottomEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 769px) {
  .hero-bottom {
    padding-top: 40px;
  }
}

/* Hero Copy */

.hero-copy {
  width: 305px;

  color: #b8b8b8;

  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.hero-copy span {
  display: block;
}

/* =========================
   Hero CTA
========================= */

.hero-cta {
  color: #ffffff;
  background: #ea0044;

  height: 44px;
  padding: 8px 18px;
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;

  text-decoration: none;
  white-space: nowrap;

  box-shadow:
    rgba(234, 0, 68, 0.68) 0px 0.48175px 0.86715px -1.16667px,
    rgba(234, 0, 68, 0.61) 0px 1.83083px 3.29549px -2.33333px,
    rgba(234, 0, 68, 0.3) 0px 8px 14.4px -3.5px,
    rgba(255, 255, 255, 0.1) 0.318477px 0.437996px 0.324881px -1.1875px inset,
    rgba(255, 255, 255, 0.84) 0.965802px 1.32798px 0.985225px -2.375px inset,
    rgba(255, 255, 255, 0.66) 2.55306px 3.51046px 2.6044px -3.5625px inset,
    rgba(255, 255, 255, 0.05) 8px 11px 8.16088px -4.75px inset;

  transition:
    color 0.2s cubic-bezier(0.44, 0, 0.56, 1),
    box-shadow 0.3s ease;

  -webkit-tap-highlight-color: transparent;
}

.hero-cta:hover {
  color: #ffffff;
  background: #ea0044;

  box-shadow:
    rgba(0, 0, 0, 0) 0px 0.597144px 0.597144px -0.9375px,
    rgba(0, 0, 0, 0) 0px 1.81088px 1.81088px -1.875px,
    rgba(0, 0, 0, 0) 0px 4.78699px 4.78699px -2.8125px,
    rgba(0, 0, 0, 0) 0px 15px 15px -3.75px;
}

/* =========================
   Lenis
========================= */

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* =========================
   Client Trust
========================= */

.client-trust {
  --client-accent: #ea0044;
  --client-surface: #111112;
  --client-border: #2b2b2b;
  --client-logo-gap: 57px;

  width: 100%;
  margin-top: 24px;
  position: relative;
  isolation: isolate;
}

/* Divider lines — solid full width up to 1920px */

.client-trust::before,
.client-trust::after {
  content: "";
  position: absolute;
  left: 0;
  transform: none;
  width: 100%;
  height: 0;

  background: none;
  box-shadow: none;
  clip-path: none;

  border: 0;
  border-top: 1px solid var(--client-border);

  border-image-source: linear-gradient(
    to right,
    var(--client-border),
    var(--client-border)
  );
  border-image-slice: 1;
  border-image-width: 1 0 0;
  border-image-outset: 0 100vmax;
  border-image-repeat: stretch;

  pointer-events: none;
}

.client-trust::before {
  top: 0;
}

.client-trust::after {
  bottom: 0;
}

/* Fade only when viewport width exceeds 1920px */

@media (width > 1920px) {
  .client-trust::before,
  .client-trust::after {
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;

    border-image-source: linear-gradient(
      to right,
      transparent 0%,
      var(--client-border) 15%,
      var(--client-border) 85%,
      transparent 100%
    );
    border-image-outset: 0;
  }
}

.client-trust__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
}

.client-trust__proof {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.client-trust__avatars {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
}

.client-trust__avatar-slot {
  flex: 0 0 1px;
  width: 1px;
  height: 44px;
  position: relative;
}

.client-trust__avatar-slot img {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--client-surface);
  object-fit: cover;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-select: none;
}

.client-trust__caption {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 6px;
}

.client-trust__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--client-accent);
}

.client-trust__stars svg {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.client-trust__label {
  margin: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.12;
  color: #dedede;
  white-space: nowrap;
}

.client-trust__logos {
  flex: 1 1 0;
  min-width: 0;
}

.client-trust__marquee {
  width: 100%;
  overflow: hidden;
  opacity: 0.7;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  mask-image: linear-gradient(
    270deg,
    transparent 0%,
    #000 20.6%,
    #000 50%,
    #000 80%,
    transparent 100%
  );

  -webkit-mask-image: linear-gradient(
    270deg,
    transparent 0%,
    #000 20.6%,
    #000 50%,
    #000 80%,
    transparent 100%
  );
}

.client-trust__marquee.is-dragging {
  cursor: grabbing;
}

.client-trust__track,
.client-trust__group {
  display: flex;
  align-items: center;
  width: max-content;
}

.client-trust__track {
  will-change: transform;
}

.client-trust__group {
  flex: 0 0 auto;
  gap: var(--client-logo-gap);
  padding-right: var(--client-logo-gap);
}

.client-trust__logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 30px;
  object-fit: contain;
  pointer-events: none;
}

/* Entrance animation */

.client-trust__reveal.is-prepared {
  opacity: var(--client-enter-opacity, 0);
  transform: translate3d(var(--client-enter-x, 0px), 0, 0);

  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) var(--client-enter-delay, 0s),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) var(--client-enter-delay, 0s);
}

.client-trust__reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .client-trust__reveal.is-prepared {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Prevent logo flash before JS loads */

@media (prefers-reduced-motion: no-preference) {
  .clients-animate .client-trust__logos:not(.is-visible) {
    opacity: 0;
  }
}

/* ========================================
   BOTTOM PROGRESSIVE BLUR
======================================== */

.bottom-progressive-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 25vh;

  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.bottom-progressive-blur__layer {
  position: absolute;
  inset: 0;

  opacity: 1;
  pointer-events: none;
  border-radius: 0;
}

/* Almost clear */

.bottom-progressive-blur__layer.layer-1 {
  z-index: 1;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12.5%,
    #000 25%,
    transparent 37.5%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 12.5%,
    #000 25%,
    transparent 37.5%
  );

  -webkit-backdrop-filter: blur(0.0390625px);
  backdrop-filter: blur(0.0390625px);
}

.bottom-progressive-blur__layer.layer-2 {
  z-index: 2;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 12.5%,
    #000 25%,
    #000 37.5%,
    transparent 50%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 12.5%,
    #000 25%,
    #000 37.5%,
    transparent 50%
  );

  -webkit-backdrop-filter: blur(0.078125px);
  backdrop-filter: blur(0.078125px);
}

.bottom-progressive-blur__layer.layer-3 {
  z-index: 3;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 25%,
    #000 37.5%,
    #000 50%,
    transparent 62.5%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 25%,
    #000 37.5%,
    #000 50%,
    transparent 62.5%
  );

  -webkit-backdrop-filter: blur(0.15625px);
  backdrop-filter: blur(0.15625px);
}

.bottom-progressive-blur__layer.layer-4 {
  z-index: 4;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 37.5%,
    #000 50%,
    #000 62.5%,
    transparent 75%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 37.5%,
    #000 50%,
    #000 62.5%,
    transparent 75%
  );

  -webkit-backdrop-filter: blur(0.3125px);
  backdrop-filter: blur(0.3125px);
}

.bottom-progressive-blur__layer.layer-5 {
  z-index: 5;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 50%,
    #000 62.5%,
    #000 75%,
    transparent 87.5%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 50%,
    #000 62.5%,
    #000 75%,
    transparent 87.5%
  );

  -webkit-backdrop-filter: blur(0.625px);
  backdrop-filter: blur(0.625px);
}

.bottom-progressive-blur__layer.layer-6 {
  z-index: 6;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 62.5%,
    #000 75%,
    #000 87.5%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 62.5%,
    #000 75%,
    #000 87.5%,
    transparent 100%
  );

  -webkit-backdrop-filter: blur(1.25px);
  backdrop-filter: blur(1.25px);
}

.bottom-progressive-blur__layer.layer-7 {
  z-index: 7;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 75%,
    #000 87.5%,
    #000 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 75%,
    #000 87.5%,
    #000 100%
  );

  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
}

/* Strongest blur at the bottom */

.bottom-progressive-blur__layer.layer-8 {
  z-index: 8;

  -webkit-mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100%);

  mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100%);

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* Fix: Shrunk navbar profile click area */
@media (min-width: 769px) {
  .navbar.is-small:not(.is-hover-expanded) .nav-actions {
    pointer-events: none;
  }

  .navbar.is-small:not(.is-hover-expanded) .hamburger {
    pointer-events: auto;
  }
}
