:root {
  --bg: #07060f;
  --card: #12111a;
  --card-2: #181722;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --muted: #a3a3b8;
  --purple: #8b5cf6;
  --purple-2: #c4b5fd;
  --grad: linear-gradient(90deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --header: 76px;
  --radius: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: #7c3aed; color: white; }

:focus-visible {
  outline: 2px solid var(--purple-2);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 22px; height: 22px; display: block; flex: none; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: white;
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus { top: 12px; }

h1, h2, h3, .logo, .btn, .chip, .brand, .price__value, .stats strong {
  font-family: Outfit, Inter, sans-serif;
}

h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }

h2 { font-size: clamp(2rem, 4.2vw, 3.35rem); }

.grad {
  background: linear-gradient(95deg, #a78bfa 0%, #8b5cf6 45%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

em.grad { font-style: italic; padding-right: 0.08em; }

.hand {
  font-family: Caveat, "Segoe Script", cursive;
  font-weight: 500;
  line-height: 1.05;
  color: #ede9fe;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple-2);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.eyebrow--center { display: flex; justify-content: center; }

.lead { color: var(--muted); max-width: 52ch; margin-top: 12px; }

.section { padding: 84px 0; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-in { opacity: 1; transform: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header.is-stuck {
  background: rgba(7, 6, 15, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 15px;
}

.logo__mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.4)); }

.logo__text { display: flex; flex-direction: column; line-height: 1; font-size: 17px; }

.logo__text small {
  margin-top: 4px;
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav__list a {
  color: #c6c6d4;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav__list a:hover,
.nav__list a.is-active { color: white; }

.nav__list a { white-space: nowrap; }

.nav__list a.nav__cta { color: white; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  place-items: center;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 15px;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  color: white;
  background: var(--grad);
  box-shadow: 0 10px 26px rgba(147, 51, 234, 0.35);
}

.btn--primary:hover { filter: brightness(1.06); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn--outline {
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
  padding: 10px 18px;
  font-size: 14px;
}

.btn--outline .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn--outline:hover { border-color: rgba(167, 139, 250, 0.6); background: rgba(139, 92, 246, 0.08); }
.btn--outline:hover .icon { transform: translateX(3px); }

.btn--block { width: 100%; }

.header__bar > .nav__cta,
.nav__list .nav__cta { display: none; }

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - var(--header)));
  display: flex;
  align-items: center;
  padding: 40px 0 64px;
  margin-top: calc(var(--header) * -1);
  padding-top: calc(var(--header) + 40px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64%, 980px);
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%);
  mask-composite: intersect;
  opacity: 0.9;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 70% 40%, rgba(124, 58, 237, 0.28), transparent 70%);
  mix-blend-mode: screen;
}

.hero__grid { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); }

.hero__copy { max-width: 560px; }

.hero__note {
  position: absolute;
  z-index: 1;
  right: max(4vw, 24px);
  bottom: 88px;
  font-size: 1.7rem;
  text-align: right;
  transform: rotate(-4deg);
}

.hand__arrow {
  position: absolute;
  width: 54px;
  height: 36px;
  left: -58px;
  top: -18px;
  color: #c4b5fd;
  transform: scaleX(-1) rotate(10deg);
}

.hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.9rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
}

.hero .lead { font-size: 1.05rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.stats {
  display: flex;
  gap: 22px;
  margin-top: 32px;
}

.stats li { padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.stats li:last-child { border: 0; padding: 0; }

.stats strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.stats span { color: var(--muted); font-size: 13px; }

.brands-section { padding: 8px 0 28px; }

.brands-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand { filter: grayscale(1); transition: color 0.2s ease; }
.brand:hover { color: white; }

.marquee {
  overflow: hidden;
  margin-top: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.brands {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 18px 64px 18px 0;
}

.brand {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
  font-size: 26px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand--nike { font-style: italic; letter-spacing: 0.22em; }
.brand--samsung { letter-spacing: 0.32em; font-weight: 600; font-size: 20px; }
.brand--coke { font-family: Pacifico, cursive; letter-spacing: 0; font-weight: 400; font-size: 32px; }
.brand--redbull { letter-spacing: 0.02em; font-size: 24px; font-style: italic; }
.brand--sony { letter-spacing: 0.42em; font-weight: 500; }
.brand--adidas { font-style: italic; letter-spacing: -0.04em; text-transform: lowercase; }
.brand--canon { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: 0.04em; }

@keyframes marquee { to { transform: translateX(-50%); } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #d7d7e4;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 550;
}

.chip:hover { border-color: rgba(167, 139, 250, 0.45); }

.chip.is-active {
  background: var(--grad);
  color: white;
  border-color: transparent;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
}

.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0b14;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.project:hover img { transform: scale(1.06); }

.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 48%);
  pointer-events: none;
}

.poster-copy {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  font-family: Outfit, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  max-width: 12ch;
}

.poster-copy--top { top: 14px; bottom: auto; }

.play {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  color: white;
}

.play__btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play:hover .play__btn,
.play:focus-visible .play__btn {
  transform: scale(1.08);
  background: rgba(124, 58, 237, 0.88);
}

.time {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.project__body { padding: 14px 16px 16px; }
.project__body h3 { font-size: 1.02rem; }
.project__body p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.empty {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service, .features li, .price, .t-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.service { padding: 18px 16px 20px; transition: border-color 0.2s ease, transform 0.2s ease; }
.service:hover { border-color: rgba(167, 139, 250, 0.4); transform: translateY(-3px); }

.service__icon, .feat__icon, .step__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--purple-2);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.22);
  margin-bottom: 14px;
}

.service h3, .features h3, .steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service p, .features p, .steps p { color: var(--muted); font-size: 14px; }

.process-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.steps li { position: relative; text-align: center; }
.steps p { max-width: 24ch; margin-inline: auto; }

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  left: calc(50% + 48px);
  right: calc(-50% + 48px);
  height: 0;
  border-top: 1.5px dashed rgba(167, 139, 250, 0.45);
}

.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 25px;
  right: calc(-50% + 46px);
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #a78bfa;
  border-right: 1.5px solid #a78bfa;
  transform: rotate(45deg);
}

.step__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0 auto 16px;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.28), rgba(20, 19, 28, 0.9));
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.22);
  position: relative;
  z-index: 1;
  color: white;
}

.step__icon b {
  position: absolute;
  top: -9px;
  left: -9px;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-family: Outfit, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.features li {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.features li:hover { border-color: rgba(167, 139, 250, 0.4); }
.features .feat__icon { margin: 0; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.features h3 { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 0; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }

.price { padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }

.price--featured {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.28), rgba(18, 17, 26, 0.95) 42%);
  border-color: rgba(167, 139, 250, 0.5);
  transform: translateY(-10px);
}

.price__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 4px 8px;
}

.price__value { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 8px 0; }
.price__value span { font-size: 1.1rem; margin-right: 4px; color: var(--purple-2); }
.price .lead { font-size: 14px; }
.price ul { margin: 8px 0 18px; display: grid; gap: 8px; }
.price li { color: #d5d5e2; font-size: 14px; padding-left: 18px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.price .btn { margin-top: auto; }

.note { margin-top: 18px; color: var(--muted); text-align: center; }

.slider-nav { display: flex; gap: 10px; }

.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.round-btn:hover { background: var(--grad); border-color: transparent; }
.round-btn:disabled { opacity: 0.35; pointer-events: none; }

.quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.quotes::-webkit-scrollbar { display: none; }

.t-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; scroll-snap-align: start; }

.quote { font-size: 15px; line-height: 1.65; }
.quote::before {
  content: "“";
  display: block;
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 0.8;
  color: #a78bfa;
  margin-bottom: 8px;
}

.stars { color: #fbbf24; letter-spacing: 2px; font-size: 13px; margin-top: 2px; }

.person { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.person img, .person__initials { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.person__initials { display: grid; place-items: center; background: var(--grad); font-family: Outfit, sans-serif; font-weight: 700; font-size: 14px; }
.person span:not(.person__initials) { display: block; color: var(--muted); font-size: 13px; }

.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  min-height: 380px;
  background: radial-gradient(80% 120% at 100% 50%, rgba(124, 58, 237, 0.18), transparent 60%);
}

.cta-box__copy { padding: clamp(24px, 4vw, 48px) clamp(0px, 2vw, 24px); display: flex; flex-direction: column; justify-content: center; }
.cta-box__copy .hero__actions { margin-top: 22px; }

.cta__visual { position: relative; min-height: 280px; }
.cta__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.cta__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(88, 28, 135, 0.55), rgba(7, 6, 15, 0.1) 50%, rgba(7, 6, 15, 0.6));
  mix-blend-mode: multiply;
}
.cta__note {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 18%;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  transform: rotate(-6deg);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.footer { padding: 56px 0 22px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr; gap: 32px; }
.footer .logo { margin-bottom: 12px; }
.footer__brand p { color: var(--muted); max-width: 32ch; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #ddd;
}
.socials a:hover { border-color: rgba(167, 139, 250, 0.5); color: white; }
.footer h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.footer li + li { margin-top: 8px; }
.footer a { color: #b7b7c9; }
.footer a:hover { color: white; }
.contact-list li { display: flex; gap: 10px; align-items: center; color: #d0d0dc; }
.contact-list .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  color: var(--purple-2);
  background: rgba(139, 92, 246, 0.12);
}
.legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #8d8da0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.legal__links { display: flex; gap: 10px; }
.footer .legal a { color: #8d8da0; }
.footer .legal a:hover { color: white; }

dialog {
  --gap: 28px;
  padding: 0;
  border: 0;
  margin: auto;
  background: transparent;
  color: var(--text);
  width: min(560px, calc(100vw - var(--gap)));
  max-width: none;
  max-height: none;
  overflow: visible;
}

dialog#project-modal { width: min(920px, calc(100vw - var(--gap))); }

dialog[open] { animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }

dialog::backdrop {
  background: rgba(4, 3, 10, 0.74);
  backdrop-filter: blur(6px);
}

body:has(dialog[open]) { overflow: hidden; }

.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #12111b;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  max-height: min(calc(100vh - var(--gap)), 780px);
  max-height: min(calc(100dvh - var(--gap)), 780px);
  box-shadow: var(--shadow);
}

.sheet__pad,
.project-view__copy {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  display: grid;
  place-items: center;
}

.sheet__pad { padding: 26px 24px 24px; }
.sheet h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.sheet .lead { margin: 8px 0 18px; }

.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  background: #0c0b13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(167, 139, 250, 0.7); outline: none; }
.form-status { min-height: 1.2em; color: #f0abfc; font-size: 14px; }
.form-success { text-align: center; padding: 12px 8px 4px; }
.form-success .btn { margin-top: 16px; }

.sheet__pad { min-height: 0; }
.project-view { display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 0; flex: 1; overflow: hidden; }
.project-view__media { position: relative; min-height: min(380px, calc(100dvh - var(--gap))); background: #0c0b12; }
.project-view__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-view__copy { padding: 28px 24px; display: flex; flex-direction: column; min-height: 0; }
.project-view__copy .chip { align-self: flex-start; margin-bottom: 12px; pointer-events: none; }
.project-view__copy h3 { font-size: 1.7rem; }
.project-view__copy .client { color: var(--muted); margin: 6px 0 12px; }
.project-view__copy .btn { margin-top: auto; align-self: flex-start; }

.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.js .loader.is-done { opacity: 0; visibility: hidden; }

.loader__inner { display: grid; justify-items: center; gap: 14px; animation: fadeUp 0.5s ease both; }
.loader__logo { width: 56px; height: 56px; filter: drop-shadow(0 10px 28px rgba(124, 58, 237, 0.55)); animation: pulse 1.2s ease-in-out infinite; }
.loader__name { font-family: Outfit, sans-serif; font-weight: 800; letter-spacing: 0.4em; font-size: 14px; padding-left: 0.4em; }
.loader__bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--grad); animation: loadBar 1s ease-in-out infinite; }

.js .header,
.js .hero__bg,
.js .hero .eyebrow,
.js .hero .lead,
.js .hero__actions,
.js .stats { opacity: 0; }

.ready .header { animation: fadeDown 0.7s ease forwards; }
.ready .hero__bg { animation: bgIn 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.ready .hero .eyebrow { animation: fadeUp 0.6s ease 0.15s forwards; }
.typed .hero .lead { animation: fadeUp 0.6s ease forwards; }
.typed .hero__actions { animation: fadeUp 0.6s ease 0.15s forwards; }
.typed .stats { animation: fadeUp 0.6s ease 0.3s forwards; }

.js .hero__note { clip-path: inset(0 100% 0 0); }
.typed .hero__note { animation: write 1.6s ease 0.5s forwards; }

.ch { visibility: hidden; }
.ch.on { visibility: visible; }

.caret {
  display: inline-block;
  width: 0.07em;
  height: 0.82em;
  margin-left: 0.05em;
  vertical-align: -0.04em;
  background: #c4b5fd;
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.8);
  animation: blink 0.8s steps(1) infinite;
  transition: opacity 0.4s ease;
}

.caret.is-off { opacity: 0; }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: scale(0);
  transform-origin: bottom right;
}

.ready .wa-float { animation: popIn 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s forwards; }

.wa-float__btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(160deg, #3be27a, #1faa53);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
  transition: transform 0.2s ease;
}

.wa-float__btn .icon { width: 30px; height: 30px; }
.wa-float:hover .wa-float__btn { transform: scale(1.08) rotate(-6deg); }

.wa-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #3be27a;
  animation: ring 2s ease-out infinite;
}

.wa-float__tip {
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: white;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip,
.wa-float.show-tip .wa-float__tip { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes bgIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { transform: scale(0.92); opacity: 0.75; } }
@keyframes loadBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes popIn { to { transform: scale(1); } }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }

@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .header__cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 9, 16, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; margin: 0; }
  .nav__list a { padding: 12px; }
  .nav__list .nav__cta { display: inline-flex; margin-top: 6px; }
  .process-head, .split, .cta-box { grid-template-columns: 1fr; }
  .project-view { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .project-view__media { min-height: 0; height: clamp(160px, 38dvh, 360px); }
  .project-view__copy { padding: 20px 20px 22px; }
  .project-view__copy .btn { margin-top: 18px; }
  .hero { min-height: 0; padding-bottom: 48px; }
  .hero__bg { width: 100%; opacity: 0.45; }
  .hero__note { display: none; }
  .projects { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .quotes { grid-auto-columns: calc((100% - 16px) / 2); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li::before, .steps li::after { display: none; }
  .cta__visual img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
  .price--featured { transform: none; }
  .cta__visual { min-height: 260px; }
  .cta__visual img { position: relative; height: 260px; }
  .section-head, .section-head__side { align-items: flex-start; }
  .section-head { flex-direction: column; }
  .filters { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  .section { padding: 64px 0; }
  .services, .projects, .prices, .features, .steps, .form-row { grid-template-columns: 1fr; }
  .quotes { grid-auto-columns: 88%; }
  dialog { --gap: 20px; }
  .sheet { border-radius: 18px; }
  .sheet__pad { padding: 22px 18px 18px; }
  .sheet h3 { font-size: 1.3rem; padding-right: 40px; }
  .sheet .lead { margin: 6px 0 14px; font-size: 14px; }
  .project-view__copy h3 { font-size: 1.4rem; }
  .project-view__copy .btn { align-self: stretch; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 11px 13px; }
  .field textarea { min-height: 90px; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__btn { width: 52px; height: 52px; }
  .stats strong { font-size: 1.4rem; }
  .stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; }
  .stats li { border: 0; padding: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

@media (max-height: 560px) {
  dialog { --gap: 16px; }
  .project-view__media { height: 42dvh; }
  .sheet__pad { padding-top: 18px; padding-bottom: 16px; }
  .sheet .lead { margin-bottom: 10px; }
  .form { gap: 8px; }
  .field textarea { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open] { animation: none; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .loader, .caret { display: none; }
  .js .header, .js .hero__bg, .js .hero .eyebrow, .js .hero .lead, .js .hero__actions, .js .stats { opacity: 1; animation: none; }
  .js .hero__note { clip-path: none; animation: none; }
  .wa-float { transform: none; animation: none; }
  .wa-float__ring { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .project, .project__media img, .btn, .play__btn { transition: none; }
}
