:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: #26262a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #c6ff3d;
  --accent-ink: #0a0a0b;
  --radius: 20px;
  --gutter: 16px;
  --max: 1160px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 52px 0; }
.section__head { display: grid; gap: 10px; margin-bottom: 24px; }
.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.h2 { font-size: clamp(1.75rem, 6.4vw, 3.25rem); }
.lead { color: var(--muted); font-size: 1.0625rem; max-width: 40ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #d4ff6b; }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 11, .78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.header__in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; text-decoration: none; letter-spacing: -0.02em; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 28px; height: 28px; border-radius: 7px; }
.logo__text span { color: var(--accent); }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.nav a:hover { color: var(--text); }
.lang { display: flex; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a {
  min-width: 44px; min-height: 36px; display: grid; place-items: center;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  color: var(--muted); border-radius: 999px;
}
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.header__cta { display: none; min-height: 42px; padding: 0 18px; font-size: .9375rem; }

/* Hero */
.hero { padding: 36px 0 24px; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 8.2vw, 4.25rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.nb { white-space: nowrap; }
.hero__sub { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 16px; color: var(--muted); font-size: .875rem; display: flex; align-items: center; gap: 8px; }
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__media { justify-self: center; width: min(78vw, 360px); }
@media (max-width: 639px) {
  .hero { padding-top: 24px; }
  .hero__grid { gap: 28px; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn--ghost, .hero__note { display: none; }
}

/* Video tiles */
.tile { margin: 0; min-width: 0; }
.tile__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.tile__media video { width: 100%; height: 100%; object-fit: cover; }
.sound {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 11, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .15s ease;
}
.sound svg { width: 18px; height: 18px; }
.sound .on { display: none; }
.tile__media[aria-pressed="true"] .sound { background: var(--accent); color: var(--accent-ink); }
.tile__media[aria-pressed="true"] .sound .on { display: block; }
.tile__media[aria-pressed="true"] .sound .off { display: none; }
.sound-hint {
  position: absolute; left: 10px; bottom: 14px; padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; background: rgba(10, 10, 11, .62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tile__media[aria-pressed="true"] .sound-hint { display: none; }
.tile figcaption { padding: 12px 4px 0; font-size: .9375rem; line-height: 1.35; }
.tag { display: block; color: var(--accent); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.tile--wide { grid-column: 1 / -1; }
.tile--wide .tile__media { aspect-ratio: 16 / 9; }
.tile[hidden] { display: none; }
.tile.is-pop { animation: pop .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--pd, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* Filters: one scrollable row on phones, wraps on wider screens */
.filters {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 20px; padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 600 .875rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter span { font-weight: 400; opacity: .6; }
.filter:hover { color: var(--text); border-color: #3a3a40; }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Phones: first 4 videos, the rest behind a button (only for "All", only with JS) */
.work-more { display: none; width: 100%; margin-top: 20px; }
.work-more span { opacity: .55; font-weight: 400; }
@media (max-width: 639px) {
  .js .work-grid[data-filter="all"]:not(.is-open) > .tile:nth-child(n+5) { display: none; }
  .js .work-grid[data-filter="all"]:not(.is-open) + .work-more { display: flex; }
}

/* Services */
.cards { display: grid; gap: 12px; }
.card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.card__num { font-family: var(--font-display); color: var(--accent); font-size: .875rem; }
.card h3 { margin-top: 28px; font-size: 1.375rem; }
.card p { margin-top: 10px; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 12px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600;
}
.step:last-child::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step h3 { font-size: 1.25rem; padding-top: 10px; }
.step p { margin-top: 6px; color: var(--muted); }
.turnaround {
  margin-top: 28px; display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.turnaround strong { font-family: var(--font-display); font-size: 1.75rem; color: var(--accent); font-weight: 600; }
.turnaround span { color: var(--muted); }

/* Cases */
.cases { display: grid; gap: 16px; }
.case { padding: 28px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.case h3 { font-size: 1.5rem; margin-top: 8px; }
.case__text { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.case__stat { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.case__stat strong { font-family: var(--font-display); font-size: clamp(2.25rem, 9vw, 3.25rem); font-weight: 600; color: var(--accent); line-height: 1; }
.case__stat span { color: var(--muted); }
.chips { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); font: 400 .875rem/1 var(--font-body); color: var(--muted);
}
.chip--play {
  color: var(--text); background: var(--surface-2); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip--play svg { width: 12px; height: 12px; color: var(--accent); transition: color .15s ease; }
.chip--play:hover { border-color: var(--accent); }
.chip--play:active { background: var(--accent); color: var(--accent-ink); }
.chip--play:active svg { color: var(--accent-ink); }

/* Gallery: horizontal snap track with arrows and a progress bar */
.gallery { margin-top: 24px; min-width: 0; }
.gallery__track {
  --fl: 0px; --fr: 0px;
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery__track.is-dragging * { pointer-events: none; }
.gallery__cell { flex: 0 0 clamp(128px, 37vw, 168px); scroll-snap-align: start; }
.g-item {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.g-item__img { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.g-item__img img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.g-item__badge {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 10, 11, .62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.g-item__badge svg { width: 15px; height: 15px; }
.g-item__cap { display: block; margin-top: 8px; font-size: .8125rem; line-height: 1.3; color: var(--muted); transition: color .15s ease; }
.g-item:hover .g-item__img img { transform: scale(1.05); }
.g-item:hover .g-item__badge { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.g-item:hover .g-item__cap { color: var(--text); }
.gallery__nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.gallery__bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gallery__bar span {
  display: block; height: 100%; width: var(--w, 100%); border-radius: 2px; background: var(--accent);
  transform: translateX(var(--x, 0%)); transition: transform .12s linear;
}
.gallery__btn {
  display: none; width: 40px; height: 40px; flex: none; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.gallery__btn svg { width: 18px; height: 18px; }
.gallery__btn:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gallery__btn:disabled { opacity: .35; cursor: default; }
.gallery.is-static .gallery__nav { display: none; }

/* Lightbox */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text);
}
.lightbox::backdrop { background: rgba(5, 5, 6, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .25s ease; }
.lightbox__stage { width: min(92vw, calc((100dvh - 120px) * 9 / 16)); }
.lightbox__stage.is-wide { width: min(94vw, calc((100dvh - 120px) * 16 / 9), 1280px); }
.lightbox__stage.is-wide video { aspect-ratio: 16 / 9; }
.lightbox__stage video, .lightbox__stage img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000;
}
.lightbox__close {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.lightbox__close svg { width: 20px; height: 20px; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

/* Pricing */
.price {
  display: grid; gap: 24px; padding: 36px 24px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(198, 255, 61, .14), transparent 55%), var(--surface);
  border: 1px solid var(--line);
}
.price h2 { font-size: clamp(2rem, 7.5vw, 3.5rem); }
.price p { color: var(--muted); max-width: 46ch; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.75rem/1 var(--font-body); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Contact */
.contact h2 { font-size: clamp(2rem, 8vw, 4rem); }
.contact__btns { margin-top: 32px; display: grid; gap: 12px; }
.contact__btns .btn { min-height: 64px; font-size: 1.0625rem; justify-content: flex-start; padding: 0 24px; }
.contact__btns .btn small { margin-left: auto; font-weight: 400; opacity: .7; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; z-index: 30; left: var(--gutter); right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (min-width: 640px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
  .filters { flex-wrap: wrap; margin: 0 0 28px; padding: 0; overflow: visible; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact__btns { grid-template-columns: 1fr 1fr; }
  .case { padding: 32px 28px; }
  .gallery__track { margin: 0 -28px; padding: 0 28px 4px; scroll-padding: 0 28px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 32px; }
  .nav, .header__cta { display: flex; }
  .lang { margin-left: 0; }
  .hero { padding: 56px 0 40px; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .hero__media { width: 100%; max-width: 380px; }
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile--wide .tile__media { aspect-ratio: 2.4 / 1; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr auto; align-items: end; padding: 56px; }
  .sticky-cta { display: none; }
  .case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; padding: 36px 40px; }
  .case .gallery { margin-top: 0; }
  .gallery__track { margin: 0; padding: 0 0 4px; scroll-padding: 0; }
  .gallery__cell { flex-basis: 150px; }
  .gallery__btn { display: grid; }
}

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .tile[data-reveal] { transform: translateY(32px) scale(.97); }
.js .tile[data-reveal].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .tile[data-reveal] { opacity: 1; transform: none; }
  .tile.is-pop { animation: none; }
  * { transition: none !important; }
}
