:root {
  --agency-black: #111111;
  --agency-panel: #191919;
  --agency-purple: #7626e8;
  --agency-lilac: #d19aee;
  --agency-muted: #b9b9c3;
}

.agency-shell {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.agency-nav {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  padding: 16px 0;
  color: #fff;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease, padding 240ms ease;
}

.agency-nav--solid {
  padding: 10px 0;
  background: rgba(17, 17, 17, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.agency-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.agency-nav__brand {
  display: inline-flex;
  flex: none;
  text-decoration: none;
}

.agency-nav__desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-left: auto;
}

.agency-nav__link {
  position: relative;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  font: 500 13px/1 "Sora", sans-serif;
  text-decoration: none;
  transition: color 180ms ease;
}

.agency-nav__link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 1px;
  background: var(--agency-lilac);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.agency-nav__link:hover,
.agency-nav__link:focus-visible {
  color: #fff;
}

.agency-nav__link:hover::after,
.agency-nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.agency-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agency-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
}

.agency-nav__mobile {
  position: absolute;
  top: calc(100% + 1px);
  right: 18px;
  left: 18px;
  display: grid;
  gap: 2px;
  padding: 10px;
  background: rgba(25, 25, 25, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.agency-nav__mobile--open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.agency-nav__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  color: #fff;
  border-radius: 10px;
  font: 500 15px/1.2 "Sora", sans-serif;
  text-decoration: none;
}

.agency-nav__mobile-link:hover,
.agency-nav__mobile-link:focus-visible {
  background: rgba(118, 38, 232, 0.18);
}

.agency-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 14px/1 "Sora", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.agency-button:focus-visible,
.agency-nav__toggle:focus-visible {
  outline: 2px solid var(--agency-lilac);
  outline-offset: 3px;
}

.agency-button--nav {
  min-height: 42px;
  padding-inline: 18px;
  color: #fff;
  background: var(--agency-purple);
}

.agency-button--primary {
  color: #fff;
  background: var(--agency-purple);
  box-shadow: 0 14px 38px rgba(118, 38, 232, 0.28);
}

.agency-button--primary:hover,
.agency-button--nav:hover {
  background: #8a3cf0;
}

.agency-button--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.24);
}

.agency-button--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.42);
}

.agency-hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  padding: clamp(134px, 14vw, 178px) 0 clamp(78px, 8vw, 116px);
  overflow: hidden;
  color: #fff;
  background: var(--agency-black);
}

.agency-hero__ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 66% 28%, rgba(118, 38, 232, 0.18), transparent 31%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.agency-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(390px, 45fr);
  align-items: center;
  gap: clamp(50px, 6vw, 92px);
}

.agency-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 710px;
}

.agency-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--agency-lilac);
  font: 600 11px/1.4 "Sora", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agency-hero__eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.agency-hero__title {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font: 700 clamp(46px, 5.5vw, 76px)/0.98 "Sora", sans-serif;
  letter-spacing: -0.055em;
}

.agency-hero__title em {
  color: var(--agency-lilac);
  font-family: "Newsreader", serif;
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.agency-hero__lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--agency-muted);
  font: 400 clamp(16px, 1.5vw, 19px)/1.7 "Sora", sans-serif;
}

.agency-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.agency-hero__values {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.agency-hero__values li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--agency-muted);
  font: 500 12px/1.4 "Sora", sans-serif;
}

.agency-hero__values li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: var(--agency-lilac);
  background: rgba(118, 38, 232, 0.16);
  border: 1px solid rgba(209, 154, 238, 0.26);
  border-radius: 50%;
}

.agency-hero__visual {
  position: relative;
  min-width: 0;
  padding: 0 12px 32px 0;
}

.agency-hero__photo-wrap {
  position: relative;
  height: clamp(480px, 53vw, 620px);
  overflow: hidden;
  background: var(--agency-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 180px 180px 28px 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.agency-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.8) contrast(1.06);
  transform: scale(1.02);
}

.agency-hero__purple-overlay,
.agency-hero__photo-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.agency-hero__purple-overlay {
  background: linear-gradient(145deg, rgba(118, 38, 232, 0.48), rgba(118, 38, 232, 0.06) 50%, rgba(17, 17, 17, 0.12));
  mix-blend-mode: color;
}

.agency-hero__photo-mask {
  background: linear-gradient(to bottom, transparent 53%, rgba(17, 17, 17, 0.18) 70%, var(--agency-black) 100%);
}

.agency-hero__visual-label {
  position: absolute;
  top: 48%;
  right: -72px;
  color: rgba(255, 255, 255, 0.48);
  font: 600 9px/1 "Sora", sans-serif;
  letter-spacing: 0.24em;
  transform: rotate(90deg);
}

.agency-float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(25, 25, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.agency-float-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex: none;
  color: #fff;
  background: var(--agency-purple);
  border-radius: 11px;
}

.agency-float-card small,
.agency-float-card strong {
  display: block;
  font-family: "Sora", sans-serif;
}

.agency-float-card small {
  margin-bottom: 4px;
  color: var(--agency-lilac);
  font-size: 11px;
  font-weight: 600;
}

.agency-float-card strong {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.agency-float-card--project {
  bottom: 0;
  left: -48px;
  animation: agency-float 6s ease-in-out infinite;
}

.agency-float-card--ai {
  top: 19%;
  right: -30px;
  min-width: 180px;
  animation: agency-float 7s ease-in-out 700ms infinite reverse;
}

.agency-float-card--ai .agency-float-card__icon {
  color: var(--agency-black);
  background: var(--agency-lilac);
}

.agency-reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(24px);
  animation: agency-enter 850ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--delay, 0ms) forwards;
}

.agency-marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  color: #fff;
  background: var(--agency-panel);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.agency-marquee__track {
  display: flex;
  width: max-content;
  animation: agency-scroll 30s linear infinite;
}

.agency-marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  padding: 18px 0;
}

.agency-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 25px;
  color: var(--agency-muted);
  font: 600 13px/1 "Sora", sans-serif;
  white-space: nowrap;
}

.agency-marquee__item svg {
  color: var(--agency-lilac);
}

.agency-marquee__dot {
  width: 4px;
  height: 4px;
  margin-left: 14px;
  background: var(--agency-purple);
  border-radius: 50%;
}

.agency-marquee:hover .agency-marquee__track {
  animation-play-state: paused;
}

@keyframes agency-enter {
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@keyframes agency-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-11px) rotate(0.4deg); }
}

@keyframes agency-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 1060px) {
  .agency-nav__desktop { display: none; }
  .agency-nav__actions { margin-left: auto; }
  .agency-nav__toggle { display: inline-flex; }
  .agency-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr); gap: 42px; }
  .agency-hero__title { font-size: clamp(45px, 6vw, 65px); }
  .agency-float-card--project { left: -24px; }
  .agency-float-card--ai { right: -14px; }
}

@media (max-width: 780px) {
  .agency-shell { width: min(100% - 36px, 620px); }
  .agency-nav { padding: 11px 0; }
  .agency-nav__actions > .agency-button { display: none; }
  .agency-hero { min-height: auto; padding: 124px 0 76px; }
  .agency-hero__grid { grid-template-columns: 1fr; gap: 58px; }
  .agency-hero__copy { max-width: 620px; }
  .agency-hero__title { font-size: clamp(44px, 12vw, 66px); }
  .agency-hero__lead { font-size: 16px; }
  .agency-hero__visual { width: min(100% - 18px, 510px); margin: 0 auto; }
  .agency-hero__photo-wrap { height: clamp(450px, 118vw, 600px); border-radius: 150px 150px 24px 24px; }
  .agency-float-card--project { left: -12px; }
  .agency-float-card--ai { right: -18px; }
}

@media (max-width: 520px) {
  .agency-shell { width: min(100% - 28px, 460px); }
  .agency-nav__brand { transform: scale(0.88); transform-origin: left center; }
  .agency-nav__inner { gap: 8px; }
  .agency-hero { padding-top: 114px; }
  .agency-hero__eyebrow { align-items: flex-start; font-size: 9px; }
  .agency-hero__eyebrow span { margin-top: 6px; }
  .agency-hero__title { font-size: clamp(42px, 13.2vw, 58px); line-height: 1; }
  .agency-hero__lead { margin-top: 22px; line-height: 1.62; }
  .agency-hero__ctas { display: grid; }
  .agency-hero__ctas .agency-button { width: 100%; }
  .agency-hero__values { display: grid; gap: 12px; }
  .agency-hero__visual { width: calc(100% - 8px); padding-right: 0; }
  .agency-hero__photo-wrap { height: 470px; border-radius: 120px 120px 20px 20px; }
  .agency-hero__visual-label { display: none; }
  .agency-float-card { min-width: 0; padding: 11px 12px; }
  .agency-float-card--project { right: 18px; bottom: -10px; left: -8px; }
  .agency-float-card--ai { top: 16%; right: -8px; }
  .agency-float-card--project strong { white-space: normal; }
  .agency-marquee { -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .agency-nav,
  .agency-nav__mobile,
  .agency-button,
  .agency-nav__link::after {
    transition-duration: 0.01ms;
  }

  .agency-reveal {
    opacity: 1;
    clip-path: none;
    transform: none;
    animation: none;
  }

  .agency-float-card,
  .agency-marquee__track {
    animation: none;
  }

  .agency-marquee__group[aria-hidden="true"] {
    display: none;
  }
}
