/* ------------------------------------------------------------------
   Akmal Karimboyev — portfolio
   Reference-driven design system: black hero, marquee gallery,
   outlined display type, light service band, sticky project cards.
------------------------------------------------------------------ */

:root {
  --ink: #050505;
  --ink-2: #0a0a0a;
  --paper: #efeee9;
  --white: #f4f3ee;
  --grey: #c9c8c4;
  --muted: #8a8983;
  --lime: #c6f24e;
  --violet: #7c3aed;
  --orange: #f59e0b;
  --pink: #ec2f8a;
  --grad: linear-gradient(90deg, #6d28d9 0%, #d61f8a 55%, #ff7a18 100%);
  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  color: #0b0b0b;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 2 * var(--pad)), 1320px);
  margin-inline: auto;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------------- canvas & cursor ---------------- */

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.webgl-ok #webgl {
  opacity: 1;
}

.cursor {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cursor.is-ready {
  opacity: 1;
}

.cursor__dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
}

.cursor__ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244, 243, 238, 0.55);
  display: grid;
  place-items: center;
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.cursor__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b0b0b;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor.is-hover .cursor__ring {
  width: 58px;
  height: 58px;
}

.cursor.is-view .cursor__ring {
  width: 76px;
  height: 76px;
  background: var(--white);
  border-color: transparent;
}

.cursor.is-view .cursor__label {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------------- nav ---------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3.4vw, 32px) var(--pad);
  color: var(--white);
  mix-blend-mode: difference;
}

.nav__logo {
  display: none;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.nav__logo span {
  color: var(--lime);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(26px, 6.4vw, 120px);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.72;
  transition: opacity 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  opacity: 1;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 243, 238, 0.3);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-content: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav.is-open {
  mix-blend-mode: normal;
  background: rgba(5, 5, 5, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav.is-open .nav__toggle span:first-child {
  transform: translateY(3.2px) rotate(45deg);
}

.nav.is-open .nav__toggle span:last-child {
  transform: translateY(-3.2px) rotate(-45deg);
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hero__title {
  position: absolute;
  top: clamp(96px, 17vh, 190px);
  left: 0;
  right: 0;
  z-index: 1;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 12.2vw, 10.6rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-align: center;
  text-transform: uppercase;
  color: #c9c8c4;
  white-space: nowrap;
  animation: heroTitle 1.1s 0.15s var(--ease) both;
}

.hero__avatar {
  position: absolute;
  left: 50%;
  top: clamp(300px, 53vh, 560px);
  z-index: 2;
  width: clamp(230px, 31vw, 460px);
  height: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 50% 48%, #000 54%, transparent 79%), linear-gradient(to bottom, #000 74%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 74% 74% at 50% 48%, #000 54%, transparent 79%), linear-gradient(to bottom, #000 74%, transparent 98%);
  mask-composite: intersect;
  animation: avatarIn 1.2s 0.35s var(--ease) both, avatarFloat 7.5s 1.7s ease-in-out infinite;
}

.hero__intro {
  position: absolute;
  left: 0;
  top: clamp(280px, 47vh, 500px);
  z-index: 3;
  width: clamp(200px, 21vw, 280px);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.75;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.78);
  animation: fadeUp 0.9s 0.6s var(--ease) both;
}

.hero__cta {
  position: absolute;
  right: 0;
  top: clamp(280px, 47vh, 500px);
  z-index: 3;
  animation: fadeUp 0.9s 0.7s var(--ease) both;
}

.clients {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: clamp(18px, 3vh, 28px) 0 clamp(20px, 3.4vh, 32px);
}

.clients__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.clients__group {
  display: flex;
  align-items: center;
  gap: clamp(38px, 6.6vw, 106px);
  padding-right: clamp(38px, 6.6vw, 106px);
}

.client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(244, 243, 238, 0.48);
}

.client svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
  flex: none;
}

/* ---------------- gallery marquee ---------------- */

.gallery {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(8px, 0.9vw, 12px);
  padding: clamp(14px, 2vw, 26px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.gallery__row {
  overflow: hidden;
}

.gallery__track {
  display: flex;
  width: max-content;
  animation: marquee 58s linear infinite;
}

.gallery__row--reverse .gallery__track {
  animation-direction: reverse;
  animation-duration: 66s;
}

.gallery__group {
  display: flex;
  gap: clamp(8px, 0.9vw, 12px);
  padding-right: clamp(8px, 0.9vw, 12px);
}

.tile {
  width: clamp(150px, 20vw, 300px);
  aspect-ratio: 1.14;
  border-radius: clamp(12px, 1.2vw, 18px);
  overflow: hidden;
  background: #0b0b0b;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- about ---------------- */

.about {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: clamp(80px, 14vh, 160px) 0 clamp(90px, 15vh, 170px);
  overflow: hidden;
}

.about__toys {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3vw, 32px);
  text-align: center;
}

.about__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.8vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--white);
}

.about__text {
  max-width: 760px;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  font-weight: 600;
  line-height: 1.7;
  color: #e4e2dc;
  text-align: center;
  text-shadow: 0 2px 20px rgba(5, 5, 5, 0.95), 0 0 40px rgba(5, 5, 5, 0.75);
}

/* ---------------- services ---------------- */

.services {
  position: relative;
  z-index: 1;
  background: var(--paper);
  color: #0b0b0b;
  padding: clamp(64px, 10vw, 132px) 0 clamp(64px, 9vw, 120px);
}

.services__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 9.2vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-align: center;
  color: #0b0b0b;
  margin-bottom: clamp(36px, 6vw, 76px);
}

.service-list {
  border-top: 1px solid rgba(11, 11, 11, 0.28);
}

.service {
  display: grid;
  grid-template-columns: clamp(76px, 10vw, 140px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 36px) 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.16);
}

.service:last-child {
  border-bottom: 0;
}

.service__no {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 0.9;
  color: #0b0b0b;
  text-shadow: 2px 2px 0 #cfcec8, 3px 3px 0 #c6c5bf, 5px 6px 0 rgba(11, 11, 11, 0.1);
  transition: transform 0.4s var(--ease), text-shadow 0.4s var(--ease);
}

.service:hover .service__no {
  transform: translate(-2px, -2px);
  text-shadow: 3px 3px 0 #cfcec8, 5px 5px 0 #c6c5bf, 8px 10px 0 rgba(11, 11, 11, 0.12);
}

.service__body h3 {
  font-size: clamp(0.68rem, 0.86vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.service__body p {
  max-width: 620px;
  font-size: clamp(0.84rem, 1.02vw, 0.96rem);
  line-height: 1.6;
  color: #63625d;
}

/* ---------------- projects ---------------- */

.work {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: clamp(64px, 9vw, 118px) 0 clamp(80px, 12vw, 160px);
}

.work__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 10vw, 9.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 243, 238, 0.85);
  margin-bottom: clamp(28px, 5vw, 64px);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
}

.project {
  position: sticky;
  top: calc(84px + var(--i) * 9px);
  padding: clamp(11px, 1.3vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: clamp(20px, 2.4vw, 30px);
  background: #0a0a0a;
  box-shadow: 0 -22px 60px -34px rgba(0, 0, 0, 0.95);
  transition: border-color 0.45s var(--ease);
}

.project:hover {
  border-color: rgba(255, 255, 255, 0.75);
}

.project__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 0 2px clamp(11px, 1.5vw, 17px);
}

.project__no {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.9rem);
  line-height: 0.9;
  color: var(--white);
  text-shadow: 2px 2px 0 #6f6e6a, 3px 3px 0 #4c4b48;
}

.project__client {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.project__client > span {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.5);
}

.project__client strong {
  font-size: clamp(0.9rem, 1.25vw, 1.06rem);
  font-weight: 600;
}

.project__live {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.92);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.project__live i {
  font-style: normal;
  transition: transform 0.3s var(--ease);
}

.project__live:hover {
  background: var(--white);
  border-color: var(--white);
  color: #0b0b0b;
}

.project__live:hover i {
  transform: translate(2px, -2px);
}

.project__media {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: clamp(6px, 0.7vw, 10px);
}

.project__shot {
  position: relative;
  overflow: hidden;
  border-radius: clamp(11px, 1.3vw, 17px);
  background: #111;
}

.project__shot--a {
  aspect-ratio: 16 / 8.6;
}

.project__shot--a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.project__stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: inherit;
  gap: clamp(6px, 0.7vw, 10px);
}

.project__stack .project__shot {
  position: relative;
  min-height: 0;
}

.project__stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.project__stack img.crop-top {
  object-position: top right;
}

.project__stack img.crop-bottom {
  object-position: bottom left;
}

.project__hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.project__hit:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -4px;
}

/* ---------------- testimonials ---------------- */

.voices {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: clamp(64px, 9vw, 118px) 0 clamp(80px, 11vw, 150px);
  overflow: hidden;
}

.voices__head {
  position: relative;
  margin-bottom: clamp(34px, 5vw, 62px);
  text-align: center;
}

.voices__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 7.4vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--white);
}

.voices__emoji {
  position: absolute;
  right: 2%;
  top: -12%;
  width: clamp(58px, 7.6vw, 112px);
  height: auto;
  mix-blend-mode: screen;
  transform: rotate(-8deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
}

.voices__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.1vw, 14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.voices__row {
  overflow: hidden;
}

.voices__track {
  display: flex;
  gap: clamp(9px, 1.1vw, 14px);
  width: max-content;
  padding-right: clamp(9px, 1.1vw, 14px);
  animation: marquee 74s linear infinite;
}

.voices__row--reverse .voices__track {
  animation-direction: reverse;
  animation-duration: 86s;
}

.quote {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: none;
  width: clamp(290px, 30vw, 400px);
  min-height: 146px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
}

.quote::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  pointer-events: none;
}

.quote__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: hsl(var(--q, 220) 58% 32%);
}

.quote figcaption {
  display: grid;
  gap: 6px;
  align-content: start;
}

.quote blockquote {
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(244, 243, 238, 0.8);
}

.quote strong {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.quote figcaption > span {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.45);
}

/* ---------------- contact ---------------- */

.contact {
  position: relative;
  z-index: 1;
  background: #fcfcfc;
  color: #0b0b0b;
  padding: clamp(72px, 11vw, 140px) 0;
  overflow: hidden;
}

.contact__toys {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(38px, 7vw, 110px);
  align-items: start;
}

.contact__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.1vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0b0b0b;
}

.contact__mail {
  display: inline-block;
  margin-top: clamp(18px, 2.6vw, 28px);
  padding-bottom: 3px;
  border-bottom: 1.5px solid currentColor;
  font-size: clamp(0.92rem, 1.45vw, 1.16rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px);
  padding-top: clamp(4px, 1vw, 12px);
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8983;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c9c8c2;
  border-radius: 0;
  background: transparent;
  padding: 6px 0 9px;
  font-family: var(--body);
  font-size: 0.92rem;
  color: #0b0b0b;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
}

.field input:focus,
.field textarea:focus {
  border-color: #0b0b0b;
}

.field--full {
  grid-column: 1 / -1;
}

.form__send {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  padding: 15px 24px;
  border: 1px solid #0b0b0b;
  border-radius: 999px;
  background: transparent;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.form__send:hover {
  background: #0b0b0b;
  color: #fff;
}

.form__note {
  grid-column: 1 / -1;
  min-height: 1.2em;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: #63625d;
}

/* ---------------- footer ---------------- */

.footer {
  background: var(--ink);
  padding: clamp(64px, 9vw, 110px) 0 clamp(14px, 2vw, 22px);
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.footer__word {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 243, 238, 0.85);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(26px, 5vw, 64px);
}

.footer__cols > div {
  display: grid;
  gap: 7px;
  align-content: start;
}

.footer__cols span {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.42);
  margin-bottom: 3px;
}

.footer__cols a,
.footer__cols p {
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(244, 243, 238, 0.85);
}

.footer__cols a:hover {
  color: var(--lime);
}

.glyphs {
  margin-top: clamp(36px, 6vw, 68px);
}

.glyphs svg {
  width: 100%;
  height: auto;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: clamp(24px, 4vw, 42px);
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1px solid rgba(244, 243, 238, 0.16);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.48);
}

.footer__bottom a {
  color: rgba(244, 243, 238, 0.7);
  transition: color 0.3s;
}

.footer__bottom a:hover {
  color: var(--lime);
}

/* ---------------- pill / reveal / keyframes ---------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 44px -16px rgba(214, 31, 138, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px -18px rgba(214, 31, 138, 0.85);
}

.pill span {
  font-size: 0.8rem;
  line-height: 0.6;
}

.pill svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease) var(--delay, 0s), transform 0.85s var(--ease) var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- typing ---------------- */

[data-type] {
  animation: none !important;
}

[data-type].is-typing-host {
  position: relative;
  inset: auto;
}

.type-ghost {
  display: block;
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

.type-live {
  position: absolute;
  inset: 0;
}

.type-live.is-pinned {
  text-align: left;
  white-space: nowrap;
}

.type-caret {
  display: inline-block;
  width: max(2px, 0.06em);
  height: 0.86em;
  margin-left: 0.05em;
  vertical-align: -0.04em;
  background: var(--type-caret, var(--lime));
}

.type-caret.is-out {
  animation: caretOut 0.45s ease forwards;
}

.services,
.contact {
  --type-caret: #0b0b0b;
}

@keyframes caretOut {
  to {
    opacity: 0;
    transform: translateY(-0.1em);
  }
}

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

@keyframes heroTitle {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes avatarIn {
  from {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes avatarFloat {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 14px));
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- project modal ---------------- */

.project-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(88vh, 780px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: #0b0b0b;
  color: var(--white);
  overflow: hidden;
}

.project-modal::backdrop {
  background: rgba(3, 3, 3, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.project-modal[open] {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
}

.project-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.62);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.project-modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(90deg);
}

.project-modal__close svg {
  width: 16px;
  height: 16px;
}

.project-modal__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 40px);
  overflow: hidden;
  background: #09090b;
}

.project-modal__ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(44px) saturate(1.25);
  opacity: 0.45;
  transform: scale(1.2);
}

.project-modal__frame {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 44px 90px -46px #000;
}

.project-modal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.project-modal__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.project-modal__bar span {
  margin-left: 8px;
}

.project-modal__cover {
  width: 100%;
  height: auto;
}

.project-modal__index {
  position: absolute;
  left: 24px;
  bottom: 12px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
}

.project-modal__label {
  position: absolute;
  right: 24px;
  top: 18px;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.project-modal__body {
  --mb: clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--mb) var(--mb) 0;
  overflow-y: auto;
  max-height: min(88vh, 780px);
}

.project-modal__meta {
  display: flex;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.5);
}

.project-modal__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.project-modal__desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(244, 243, 238, 0.72);
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project__tags li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.7);
}

.project-modal__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.project-modal__shots img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.project-modal__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  padding-top: 4px;
}

.project-stat {
  display: grid;
  gap: 3px;
}

.project-stat strong {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1;
}

.project-stat span {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.5);
}

.project-modal__actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: auto calc(-1 * var(--mb)) 0;
  padding: 10px var(--mb) var(--mb);
  background: linear-gradient(180deg, rgba(11, 11, 11, 0), #0b0b0b 30%);
}

.project-modal__repo {
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.9);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.project-modal__repo:hover {
  background: var(--white);
  border-color: var(--white);
  color: #0b0b0b;
}

.project-modal__actions [hidden] {
  display: none !important;
}

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
  .hero__title {
    font-size: clamp(2rem, 12.4vw, 9rem);
  }

  .hero__avatar {
    width: clamp(230px, 34vw, 420px);
  }

  .footer__top {
    gap: clamp(24px, 4vw, 54px);
  }
}

@media (max-width: 1000px) {
  .nav {
    justify-content: space-between;
    padding: 16px var(--pad);
  }

  .nav__logo {
    display: block;
  }

  .nav__toggle {
    display: grid;
  }

  .nav__links {
    position: fixed;
    top: 74px;
    left: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: #0b0b0b;
    box-shadow: 0 30px 60px -30px #000;
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    opacity: 0.85;
  }

  .nav__links a:last-child {
    border-bottom: 0;
  }

  .nav__links a::after {
    display: none;
  }

  .hero__title {
    top: clamp(88px, 15vh, 150px);
  }

  .hero__avatar {
    width: clamp(250px, 42vw, 420px);
    top: clamp(320px, 50vh, 520px);
  }

  .hero__intro {
    width: clamp(190px, 26vw, 250px);
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__toys {
    opacity: 0.75;
  }
}

@media (max-width: 820px) {
  .project-modal[open] {
    display: block;
    max-height: 90vh;
    overflow-y: auto;
  }

  .project-modal__art {
    height: 230px;
  }

  .project-modal__body {
    max-height: none;
    overflow: visible;
  }

  .project-modal__index {
    font-size: 2.4rem;
  }

  .project-modal__label {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 100svh;
  }

  .hero__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(100px, 16vh, 140px);
  }

  .hero__title {
    position: static;
    font-size: clamp(2rem, 12.6vw, 4.6rem);
    margin-bottom: 0;
  }

  .hero__avatar {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(70vw, 330px);
    margin-top: -4vw;
    animation: avatarFloatMobile 7.5s 1.6s ease-in-out infinite;
  }

  .hero__intro {
    position: static;
    width: auto;
    max-width: 420px;
    margin-top: 18px;
    text-align: center;
    font-size: 0.62rem;
  }

  .hero__cta {
    position: static;
    margin-top: 18px;
  }

  .clients {
    padding-top: 14px;
  }

  .tile {
    width: clamp(140px, 42vw, 220px);
  }

  .about__toys {
    width: 130%;
    left: -15%;
    opacity: 0.55;
  }

  .services__title {
    margin-bottom: 30px;
  }

  .service {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .service__no {
    font-size: 1.9rem;
  }

  .work__title {
    margin-bottom: 26px;
  }

  .project {
    top: calc(72px + var(--i) * 8px);
    border-radius: 22px;
  }

  .project__head {
    gap: 10px;
  }

  .project__live {
    padding: 7px 11px;
    font-size: 0.47rem;
    letter-spacing: 0.12em;
  }

  .project__media {
    grid-template-columns: minmax(0, 1fr);
  }

  .project__shot--a {
    aspect-ratio: 16 / 10;
  }

  .project__stack {
    grid-template-rows: auto auto;
  }

  .project__stack .project__shot {
    aspect-ratio: 16 / 9;
  }

  .voices__emoji {
    top: 26px;
    right: 4px;
    width: 44px;
  }

  .quote {
    width: min(82vw, 340px);
    min-height: 0;
  }

  .contact__toys {
    width: 150%;
    left: -25%;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__cols {
    justify-content: start;
    gap: 46px;
  }
}

@media (max-width: 560px) {
  .hero__title {
    font-size: 12.4vw;
  }

  .hero__avatar {
    width: min(74vw, 300px);
  }

  .services__title {
    font-size: clamp(2.4rem, 13vw, 3.4rem);
  }

  .work__title {
    font-size: clamp(2.4rem, 13.5vw, 3.6rem);
  }

  .project__no {
    font-size: 1.5rem;
  }

  .project__client strong {
    font-size: 0.84rem;
  }

  .contact__title {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .contact__mail {
    font-size: 0.84rem;
  }

  .footer__word {
    font-size: clamp(1.9rem, 9.5vw, 2.8rem);
  }

  .voices__title {
    font-size: clamp(2rem, 9.6vw, 2.9rem);
  }
}

@media (max-width: 420px) {
  .project__live {
    display: none;
  }

  .project__head {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .clients__track,
  .gallery__track,
  .voices__track {
    animation: none !important;
  }

  .hero__title,
  .hero__avatar,
  .hero__intro,
  .hero__cta {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes avatarFloatMobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
