/* =====================================================================
   NASH BROWIN — portfolio
   Colors / type live in :root — change them here and the whole site follows.
   ===================================================================== */

:root {
  --bg: #050505;
  --surface: #0d0d0e;
  --text: #f3f3f1;
  --muted: #6a6a6e;
  --soft: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.13);
  --purple: #9b7bf2;
  --lavender: #cdbdfb;
  --lime: #cbf36f;

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 3.2vw, 48px);
  --gap: clamp(12px, 1.4vw, 20px);
  --radius: clamp(12px, 1.1vw, 16px);
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
video { display: block; background: #111; }
img, svg { display: block; }

::selection { background: var(--lime); color: #000; }

.container {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- shared bits ---------- */

.label {
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--soft);
}

.small { font-size: 12px; color: var(--soft); }

.h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pill--sm { height: 30px; padding: 0 13px; font-size: 11.5px; gap: 7px; }
.pill--outline { border: 1px solid rgba(255, 255, 255, 0.7); }
.pill--outline:hover { background: #fff; color: #000; border-color: #fff; }
.pill--lime { background: var(--lime); color: #0a0a0a; }
.pill--lime:hover { background: #fff; }
.pill .arrow { transition: transform 0.35s var(--ease); }
.pill:hover .arrow { transform: translate(2px, -2px); }

.arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 9.5 9.5 2.5M3.5 2.5h6v6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 9.5 9.5 2.5M3.5 2.5h6v6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arrow--right { transform: rotate(45deg); }
.arrow--left { transform: rotate(-135deg); }

.circle-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.circle-btn:hover { background: #fff; color: #000; }
.circle-btn--light { background: #fff; color: #000; border-color: #fff; }
.circle-btn--light:hover { background: var(--lime); border-color: var(--lime); }
.circle-btn--lime { background: var(--lime); color: #000; border: 0; }
.circle-btn:disabled { opacity: 0.35; pointer-events: none; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 5px 10px 4px;
  border-radius: 999px;
  background: var(--lavender);
  color: #17112a;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.avatars { display: flex; }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.avatar + .avatar { margin-left: -9px; }
.avatar video { width: 100%; height: 100%; object-fit: cover; }
.avatar--purple { background: var(--purple); }
.avatar--purple svg { width: 52%; fill: #fff; stroke: #fff; }

.asterisk { fill: var(--purple); }

/* ---------- reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   NAV
   ===================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: transform 0.6s var(--ease), background 0.4s var(--ease);
}
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav__inner::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  transition: opacity 0.4s;
}
.nav.is-scrolled { background: rgba(5, 5, 5, 0.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav.is-scrolled .nav__inner::after { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.nav__links a { position: relative; transition: color 0.3s; }
.nav__links a:hover { color: #fff; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__count { opacity: 0.8; }

.nav__menu-btn {
  display: none;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 13px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--pad);
  background: var(--bg);
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.mobile-menu[hidden] { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #1c2134;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
  transform: scale(1.04);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.42) 0%, rgba(5, 5, 5, 0) 24%, rgba(5, 5, 5, 0) 46%, rgba(5, 5, 5, 0.6) 76%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0) 55%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: calc(var(--nav-h) + clamp(24px, 3vw, 40px));
  padding-bottom: clamp(40px, 7vh, 88px);
}

.hero__mark { width: clamp(84px, 9.5vw, 148px); opacity: 0.6; }
.hero__mark circle { fill: none; stroke: #dfe3f7; stroke-width: 7; }
.hero__mark text { fill: #dfe3f7; font-family: var(--font); font-size: 58px; font-weight: 500; }

.hero__aside {
  position: absolute;
  top: calc(var(--nav-h) + clamp(20px, 2.4vw, 32px));
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
}
.hero__title {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(54px, 9.4vw, 150px);
  line-height: 0.93;
  letter-spacing: -0.048em;
  font-weight: 500;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hero__title .line > span { display: block; }
.js .hero__title .line > span { transform: translateY(108%); transition: transform 1.3s var(--ease); }
.js .is-loaded .hero__title .line > span { transform: none; }
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.hero__bottom .pill { margin-bottom: 0.6em; }

/* =====================================================================
   ABOUT
   ===================================================================== */

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-top: clamp(72px, 10vw, 160px);
  padding-bottom: clamp(64px, 8vw, 128px);
}
.about__side {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.about__side .asterisk { width: clamp(44px, 4.6vw, 72px); }
.about__text {
  grid-column: 5 / 12;
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 500;
}
.about__text .w { color: var(--muted); transition: color 0.4s ease; }
.about__text .w.is-lit { color: var(--text); }

/* =====================================================================
   BENTO
   ===================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 10;
  min-height: 320px;
  padding: clamp(18px, 1.8vw, 26px);
  border-radius: var(--radius);
  overflow: hidden;
}

.card--purple {
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: var(--purple);
}
.card--purple .label { color: #fff; }
.molecule { width: 40%; fill: #fff; transition: transform 1.2s var(--ease); }
.card--purple:hover .molecule { transform: rotate(45deg); }
.card__small { font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }

.card--video { justify-content: flex-end; cursor: pointer; }
.card--video video,
.card--video::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card--video video { object-fit: cover; transition: transform 1.2s var(--ease); }
.card--video::after { content: ""; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55)); }
.card--video:hover video { transform: scale(1.04); }
.card--video .circle-btn { position: absolute; top: 16px; right: 16px; z-index: 2; }
.card__caption { position: relative; z-index: 2; color: #fff; }

.card--stat {
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat {
  font-size: clamp(64px, 7.4vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 400;
}
.stat em { font-style: normal; color: var(--lime); }
.stat__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; margin-bottom: 18px; }
.stat__row .label { text-align: right; color: #fff; }
.avatars--sm .avatar { width: 40px; height: 40px; }

/* =====================================================================
   MARQUEES
   ===================================================================== */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  padding-right: 0.32em;
  will-change: transform;
  animation: marquee var(--marquee-speed, 32s) linear infinite;
}
.marquee .asterisk { width: 0.62em; height: 0.62em; flex: none; }
.marquee--xl {
  padding-block: clamp(28px, 4vw, 64px);
  font-size: clamp(64px, 11vw, 180px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.marquee--md {
  padding-block: clamp(20px, 3vw, 44px);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
  --marquee-speed: 28s;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   SERVICES
   ===================================================================== */

.services { padding-top: clamp(24px, 3vw, 48px); padding-bottom: clamp(80px, 10vw, 150px); }
.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.dots { width: clamp(40px, 3.6vw, 58px); fill: var(--purple); }

.service-list { list-style: none; }
.service { position: relative; border-bottom: 1px solid var(--line); }
.service__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  padding-block: clamp(26px, 2.8vw, 42px);
  text-align: left;
}
.service__title {
  font-size: clamp(22px, 2.3vw, 36px);
  letter-spacing: -0.028em;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.service__head:hover .service__title,
.service.is-open .service__title { color: var(--text); }
.service__desc {
  justify-self: end;
  max-width: 290px;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: right;
  color: var(--soft);
}

.service__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--ease);
}
.service.is-open .service__body { max-height: 420px; }
.service__body-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(160px, calc(20vw - 70px), 250px);
  padding-bottom: clamp(24px, 2.6vw, 38px);
}
.service__body-inner .tags { align-self: flex-start; max-width: 40%; margin-top: -6px; }

.service__media {
  position: absolute;
  top: clamp(18px, 2vw, 28px);
  left: 50%;
  width: clamp(170px, 16vw, 250px);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(0.94);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.service.is-open .service__media {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0.12s;
}
.service__media video { width: 100%; height: 100%; object-fit: cover; }
.service__media .pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.service__stat { display: flex; align-items: center; gap: 12px; }
.service__stat strong { font-size: clamp(30px, 2.8vw, 44px); line-height: 1; font-weight: 400; letter-spacing: -0.04em; }
.service__stat span { font-size: 10.5px; line-height: 1.3; color: var(--soft); }

/* =====================================================================
   WORKS
   ===================================================================== */

.works { padding-bottom: clamp(80px, 10vw, 150px); }
.works__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.works__viewport { padding-inline: 0; }
.works__track {
  display: flex;
  gap: var(--gap);
  padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.works__track::-webkit-scrollbar { display: none; }
.works__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.works__track.is-dragging * { pointer-events: none; }

.slide {
  flex: 0 0 calc(100% - var(--gap) * 3);
  display: grid;
  grid-template-columns: 1.95fr 1fr;
  gap: var(--gap);
  height: clamp(400px, 36vw, 600px);
  scroll-snap-align: start;
}
.slide:last-child { flex-basis: 100%; }

.slide__media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 1.8vw, 26px);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.slide__media video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.86);
}
.slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
}
.slide__media:hover video { transform: scale(1.035); filter: brightness(1); }
.slide__top { display: flex; align-items: flex-start; justify-content: space-between; }
.slide__play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
}
.slide__play::before {
  content: "";
  margin-left: 2px;
  border-left: 8px solid #000;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.slide__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.slide__title {
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.slide__desc { max-width: 300px; margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }

.slide__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 1.8vw, 26px);
  border-radius: var(--radius);
  background: var(--purple);
}
.slide__person strong { display: block; font-size: 13px; font-weight: 500; }
.slide__person span { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.slide__quote {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.slide__stat { display: flex; align-items: center; gap: 14px; }
.slide__stat strong { font-size: clamp(30px, 2.6vw, 42px); line-height: 1; font-weight: 400; letter-spacing: -0.04em; }
.slide__stat span { font-size: 10.5px; line-height: 1.3; text-transform: uppercase; white-space: pre-line; }

.works__controls {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(20px, 2.4vw, 32px);
}
.works__counter { flex: none; color: #fff; }
.works__progress { position: relative; flex: 1; height: 1px; background: var(--line); max-width: 680px; }
.works__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #fff;
  transition: width 0.4s var(--ease);
}
.works__arrows { display: flex; gap: 8px; margin-left: auto; }
.works__arrows .circle-btn { width: 40px; height: 40px; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */

.testimonials {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(60px, 8vw, 120px);
}
.testimonials__side {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 64px);
}
.quote-mark { width: clamp(44px, 4.4vw, 66px); fill: #fff; }
.testimonials__avatars { margin-top: auto; }
.testimonials__avatars .avatar--purple svg { width: 58%; }

.testimonials__main { grid-column: 5 / 13; display: grid; }
.testimonial { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.testimonial.is-active { opacity: 1; visibility: visible; }
.testimonial__quote {
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.032em;
  font-weight: 500;
  color: var(--muted);
}
.testimonial__quote em { font-style: normal; color: var(--text); }
.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}
.testimonial footer strong { font-size: 13px; font-weight: 500; }
.testimonial footer span { font-size: 12px; color: var(--soft); }
.testimonials__nav {
  grid-area: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

/* =====================================================================
   CONTACT / FOOTER
   ===================================================================== */

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  overflow: hidden;
}
.contact__video {
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  filter: saturate(0.85);
}
.contact__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 32%, rgba(5, 5, 5, 0.35) 62%, rgba(5, 5, 5, 0.1) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(5, 5, 5, 0) 30%);
}
.contact__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(120px, 14vw, 220px);
}
.contact__title {
  margin: 14px 0 clamp(24px, 2.6vw, 36px);
  font-size: clamp(38px, 4.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.contact__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: clamp(40px, 5vw, 72px);
}
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font-size: 12px; color: var(--soft); }
.socials a { transition: color 0.3s; }
.socials a:hover { color: var(--lime); }

.wordmark {
  position: relative;
  z-index: 2;
  margin-top: clamp(24px, 3vw, 48px);
  padding-inline: var(--pad);
  padding-bottom: 0.06em;
  font-size: 18vw;
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-weight: 500;
  color: #ebeaf3;
  white-space: nowrap;
  pointer-events: none;
}
.wordmark span { display: inline-block; }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(56px, 6vw, 88px) var(--pad) var(--pad);
  background: rgba(5, 5, 5, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  overflow-y: auto;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__close {
  position: fixed;
  top: 22px;
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  z-index: 2;
}
.lightbox__close span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}
.lightbox__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
  max-width: 1500px;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease);
}
.lightbox.is-open .lightbox__inner { transform: none; }
.lightbox__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.lightbox__media video,
.lightbox__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lightbox__info { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.lightbox__title { margin: 10px 0 12px; font-size: clamp(32px, 3vw, 48px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.lightbox__desc { font-size: 13px; color: var(--soft); }
.credits { display: grid; gap: 0; font-size: 12.5px; }
.credits div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.credits dt { color: var(--soft); }
.credits dd { text-align: right; }

/* =====================================================================
   CURSOR
   ===================================================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0);
}
.cursor span {
  position: absolute;
  left: -40px;
  top: -40px;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--lime);
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 500;
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}
.cursor.is-active span { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { [data-cursor] { cursor: none; } [data-cursor] .pill { cursor: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--stat { grid-column: 1 / -1; aspect-ratio: auto; min-height: 260px; }
  .slide { grid-template-columns: 1.5fr 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn { display: inline-flex; align-items: center; }

  .hero__aside p { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__bottom .pill { margin-bottom: 0; }

  .about, .testimonials { grid-template-columns: 1fr; }
  .about__side, .about__text, .testimonials__side, .testimonials__main { grid-column: 1 / -1; }
  .about__side { flex-direction: row; align-items: center; }
  .testimonials__side { flex-direction: row; align-items: center; justify-content: space-between; }
  .testimonials__avatars { margin-top: 0; }

  .service__head { grid-template-columns: 1fr; gap: 8px; }
  .service__desc { justify-self: start; text-align: left; }
  .service.is-open .service__body { max-height: 900px; }
  .service__body-inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .service__body-inner .tags { max-width: none; }
  .service__media { position: relative; top: 0; left: 0; width: 100%; aspect-ratio: 16 / 10; transform: translateY(10px); }
  .service.is-open .service__media { transform: none; }
  .service__stat { justify-content: flex-end; }

  .slide { flex-basis: calc(100% - 40px); grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .slide:last-child { flex-basis: calc(100% - 40px); }
  .slide__media { aspect-ratio: 4 / 5; }
  .slide__bottom { flex-direction: column; align-items: flex-start; }
  .slide__info { gap: 24px; }
  .works__progress { display: none; }

  .lightbox__inner { grid-template-columns: 1fr; }
  .contact__video { width: 100%; opacity: 0.6; }
  .contact__shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 5, 5, 0.4) 40%, rgba(5, 5, 5, 0.75) 100%); }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 4.2; }
  .card--stat { aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hero__title .line > span { transform: none; transition: none; }
}
