:root {
  --bg: #14101C;
  --bg-alt: #1C1626;
  --surface: #241C31;
  --line: #3A2F4A;
  --text: #F6F1FA;
  --muted: #B7ABC6;
  --orange: #FF5A1F;
  --yellow: #FFE14D;
  --pink: #FF3D8B;
  --violet: #7B5CFF;
  --radius: 20px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; max-width: 16ch; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 600;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--orange);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  box-shadow: 0 6px 0 #B8360B; cursor: pointer; font: 600 1rem var(--body);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #B8360B; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #B8360B; }
.btn--ghost { background: transparent; border-color: var(--line); box-shadow: none; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--small { padding: 9px 18px; box-shadow: 0 4px 0 #B8360B; }
.btn--block { width: 100%; }
.btn:focus-visible, .filter:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(20,16,28,.82); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem var(--display); }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .2s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 8vw, 120px); position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 44px; }
.rotator { color: var(--orange); display: inline-block; min-width: 4ch; }
.rotator__word { display: inline-block; animation: pop .45s ease; }
@keyframes pop { from { transform: translateY(.3em) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.stats { display: flex; gap: 36px; padding: 0; margin: 0; list-style: none; flex-wrap: wrap; }
.stats strong { display: block; font: 800 2rem var(--display); color: var(--text); }
.stats span { color: var(--muted); font-size: .9rem; }
.hero__art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.blob { position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: radial-gradient(circle at 30% 30%, var(--violet), var(--pink) 60%, var(--orange)); filter: blur(2px); animation: wobble 9s ease-in-out infinite; opacity: .85; }
@keyframes wobble { 50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(8deg); } }
.hero__cat { position: absolute; inset: 14%; width: 72%; height: 72%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.chip { position: absolute; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 24px rgba(0,0,0,.35); white-space: nowrap; }
.chip--a { top: 4%; left: 0; }
.chip--b { top: 18%; right: -2%; }
.chip--c { bottom: 16%; left: -4%; }
.chip--d { bottom: 2%; right: 8%; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--orange); }
.card p { color: var(--muted); margin: 0; }
.card__icon { font-size: 2rem; margin-bottom: 16px; }
.card--accent { background: linear-gradient(140deg, var(--orange), var(--pink)); border-color: transparent; }
.card--accent p { color: rgba(255,255,255,.9); }

/* Works */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filter { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; font: 500 .95rem var(--body); cursor: pointer; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.grid--works { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 28px; }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s; }
.work:hover { transform: translateY(-4px); }
.work[hidden] { display: none; }
.work__thumb { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; display: grid; place-items: center; font-size: 3.4rem; }
.work__body { padding: 22px 24px 26px; }
.work__body p { color: var(--muted); margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); margin-bottom: 8px; }
.badge { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.stack { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.works__note { margin-top: 28px; color: var(--muted); }
.works__note a { color: var(--yellow); }
.work__thumb { background: var(--bg); }
img.work__thumb { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.thumb--1 { background: linear-gradient(135deg, #7B5CFF, #3BC9DB); }
.thumb--2 { background: linear-gradient(135deg, #FF3D8B, #FFB13D); }
.thumb--3 { background: linear-gradient(135deg, #12B886, #7B5CFF); }
.thumb--4 { background: linear-gradient(135deg, #FF5A1F, #FFE14D); }
.thumb--5 { background: linear-gradient(135deg, #3BC9DB, #12B886); }
.thumb--6 { background: linear-gradient(135deg, #845EF7, #FF3D8B); }

/* Process */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { border-top: 2px solid var(--line); padding-top: 22px; }
.steps p { color: var(--muted); margin: 0; }
.steps__n { font: 800 1rem var(--display); color: var(--orange); display: block; margin-bottom: 10px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about__text p { color: var(--muted); font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

/* Contact */
.contact { background: radial-gradient(ellipse at top left, rgba(123,92,255,.25), transparent 60%), radial-gradient(ellipse at bottom right, rgba(255,90,31,.2), transparent 60%); }
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__alt { color: var(--muted); }
.contact__alt a { color: var(--yellow); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 500; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; font: 400 1rem var(--body);
}
.form textarea { resize: vertical; }
.form input:invalid.touched, .form textarea:invalid.touched { border-color: var(--pink); }
.hp { position: absolute !important; left: -9999px; }
.form__status { margin: 0; min-height: 1.4em; font-weight: 500; }
.form__status.ok { color: #63E6BE; }
.form__status.err { color: #FF8787; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.footer__inner p { margin: 0; }
.footer__small { font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .hero__inner, .about, .contact__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 340px; order: -1; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .25s ease; z-index: -1;
  }
  .nav__menu.is-open { transform: none; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .hero__art { max-width: 280px; }
  .stats { gap: 22px; }
  .stats strong { font-size: 1.6rem; }
  .chip { font-size: .8rem; padding: 6px 11px; }
  .chip--c { left: 0; }
  .chip--b { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
