/* ============ Tokens ============ */
:root {
  --bg: #0f0f0f;
  --bg-2: #171717;
  --bg-3: #1a1a1a;
  --page-bg: #202020; /* starts light behind the hero; animated by JS (hero fade + "dawn" between Projects and Process) */
  --surface: #212121;
  --surface-2: #292929;
  --placeholder: #303030;
  --line: #303030;
  --line-2: #383838;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --muted-2: #808080;
  --white-55: rgba(255, 255, 255, .55);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --pill: 999px;

  --gutter: 64px;
  --max: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.divider { border: 0; height: 1px; background: var(--line); margin: 0; width: 100%; }
.muted { color: var(--muted); font-size: 16px; line-height: 1.55; }

.label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.label::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--text); }

.h2 { font-size: 44px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }

/* ============ Buttons ============ */
.btn-pill {
  display: inline-flex; align-items: center; gap: 14px;
  border-radius: var(--pill);
  padding: 6px 24px 6px 6px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill__icon {
  width: 40px; height: 40px; border-radius: var(--pill);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.btn-pill:hover .btn-pill__icon { transform: rotate(-45deg); }
.btn-pill--light { background: var(--text); color: var(--bg); padding: 6px 6px 6px 24px; gap: 16px; }
.btn-pill--dark { background: var(--surface); color: var(--text); }
.btn-pill--outline { color: var(--text); border: 1px solid rgba(242, 242, 242, .5); padding: 5px 5px 5px 22px; gap: 14px; }
.btn-pill--outline:hover { border-color: var(--text); background: rgba(255, 255, 255, .04); }
.btn-pill--outline.btn-pill--down { padding: 5px 22px 5px 5px; }
.btn-pill--down .btn-pill__icon img { transform: rotate(90deg); }
.btn-pill--down:hover .btn-pill__icon { transform: translateY(2px); }
.btn-pill--dark:hover { background: #2a2a2a; }
.btn-pill--white { background: #fff; color: #121212; }
.btn-pill__icon--dark { background: var(--bg); }
.btn-pill__icon--light { background: var(--text); }
.btn-pill__icon--black { background: #121212; }

.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text);
  padding: 16px 56px; border-radius: var(--pill);
  font-size: 15px; font-weight: 500;
  transition: background-color .3s var(--ease);
}
.btn-solid:not(.shiny-cta):hover { background: #000; }

/* ============ Shiny CTA (ported from shiny-button.tsx) ============ */
@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --gradient-shine { syntax: "<color>"; initial-value: white; inherits: false; }

.shiny-cta {
  /* Monochrome to match the site; swap these two for the original blue (blue / #8484ff) */
  --shiny-cta-highlight: #9a9a9a;
  --shiny-cta-highlight-subtle: #e6e6e6;
  --shiny-cta-bg: #000000;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #ffffff;
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);

  isolation: isolate;
  position: relative;
  overflow: hidden;
  outline-offset: 4px;
  border: 1px solid transparent;
  color: var(--shiny-cta-fg);
  background:
    linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}
.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
}
.shiny-cta:active { translate: 0 1px; }

/* Dots pattern */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  -webkit-mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
          mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: 0.4;
}

/* Inner shimmer */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, black);
          mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span { z-index: 1; }
.shiny-cta span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.shiny-cta,
.shiny-cta::before,
.shiny-cta::after {
  animation: var(--animation) var(--duration), var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}
.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
}
.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after { animation-play-state: running; }
.shiny-cta:is(:hover, :focus-visible) span::before { opacity: 1; }

@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes shimmer { to { rotate: 360deg; } }
@keyframes breathe { from, to { scale: 1; } 50% { scale: 1.2; } }

/* ============ 01 Hero ============ */
.hero { padding: 20px; }
.hero__card {
  position: relative;
  margin: 0 auto;
  height: calc(100vh - 40px);
  height: calc(100svh - 40px);
  min-height: 540px;
  max-height: 1100px;
  gap: 32px;
  background: var(--placeholder);
  border-radius: var(--radius-xl);
  padding: 16px 44px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}

.nav { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; z-index: 5; }
.nav__left, .nav__actions { flex: 1 1 0; display: flex; align-items: center; }
.nav__actions { justify-content: flex-end; gap: 12px; }
.nav__logo { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.nav__menu {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 52px; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
  background: rgba(15, 15, 15, .45); border-radius: var(--pill);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 14px; white-space: nowrap;
}
.nav__menu a { transition: opacity .2s; }
.nav__menu a:hover { opacity: .7; }
.nav__menu a.is-active { font-weight: 600; }

.lang {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: var(--bg); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--pill);
}
.lang__opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px; border-radius: var(--pill);
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .4);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang__opt img { width: 20px; height: 20px; object-fit: contain; opacity: .45; transition: opacity .25s; }
.lang__opt.is-active { background: #333; color: #fff; }
.lang__opt.is-active img { opacity: 1; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: var(--pill); background: var(--bg); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Background video fills the card; gradient keeps the copy readable */
.hero__media { position: absolute; inset: 0; z-index: 0; background: #000; pointer-events: none; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; display: block; } /* ring sits right; keeps it in view when tall screens crop the sides */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(to right, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .88) 28%, rgba(0, 0, 0, .55) 48%, rgba(0, 0, 0, .15) 72%, rgba(0, 0, 0, .15) 100%);
}

/* Celular em pé: vídeo vertical com o anel embaixo; escurece só de baixo para cima */
@media (max-width: 980px) and (orientation: portrait) {
  .hero__video { object-position: 50% 100%; }
  .hero__media::after { background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 32%, rgba(0, 0, 0, 0) 58%); }
}

.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__eyebrow { font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.hero__title { font-size: 92px; font-weight: 500; line-height: 1; letter-spacing: -0.035em; max-width: 960px; text-wrap: balance; }
.hero__text { font-size: 18px; line-height: 1.55; max-width: 540px; color: var(--muted); }
.hero__ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1400px) {
  .lang__opt span { display: none; }
  .lang__opt { padding: 7px; }
}
@media (max-height: 820px) and (min-width: 641px) {
  .hero__title { font-size: clamp(52px, 10vh, 92px); }
  .hero__content { gap: 20px; }
}

/* ============ 02 Logos ============ */
.logos { padding: 40px 0 64px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.logos__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: rgba(242, 242, 242, .6); }
.logos__strip {
  position: relative; width: 100%; height: 56px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 240px, #000 calc(100% - 240px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 240px, #000 calc(100% - 240px), transparent 100%);
}
.logos__track { display: flex; width: max-content; height: 100%; animation: marquee 40s linear infinite; }
.logos__strip:hover .logos__track { animation-play-state: paused; }
.logos__row { display: flex; align-items: center; gap: 72px; padding-right: 72px; opacity: .6; }
.logos__row img { object-fit: contain; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ 03 Intro ============ */
.intro { display: flex; gap: 96px; padding-top: 64px; padding-bottom: 38px; }
.intro__left { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 32px; align-self: flex-start; position: sticky; top: 32px; }
.intro__photo { width: 244px; height: 289px; object-fit: cover; border-radius: var(--radius-lg); }
.intro__right { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; justify-content: center; }
.intro__cols { align-self: stretch; }
.intro__cols { display: flex; gap: 80px; }
.intro__col {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0;
}
.intro__col h3 { font-size: 18px; font-weight: 500; }
.intro__col p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ============ 04 Projects ============ */
.projects { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.projects__head { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 40px; }
.projects__head > div:first-child { display: flex; flex-direction: column; gap: 16px; }

.tabs {
  display: flex; gap: 2px; padding: 4px; flex-shrink: 0;
  background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--pill);
  overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  padding: 10px 18px; border-radius: var(--pill); white-space: nowrap;
  font-size: 14px; color: var(--white-55);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tabs__btn:hover { color: #fff; }
.tabs__btn.is-active { background: #333; color: #fff; font-weight: 500; }

.projects__grid { width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.project {
  grid-column: span 6;
  background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius-lg);
  padding: 10px 10px 18px; display: flex; flex-direction: column; gap: 18px;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.project.is-hidden { display: none; }
.project.is-entering { opacity: 0; transform: translateY(12px); }
.project__media {
  aspect-ratio: 620 / 440; border-radius: 14px; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
  position: relative; flex: 1 0 auto; /* grows when a taller 9:16 video card shares the row */
}
.project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
/* Hover: zoom in (uses `transform`, so it stacks on top of the scroll zoom below) */
@media (hover: hover) {
  .project:hover .project__img { transform: scale(1.06); }
}
/* Scroll: image starts zoomed in and settles as the card reaches mid-screen.
   Pure CSS scroll timeline (no scroll listener); browsers without support just skip it. */
@supports (animation-timeline: view()) {
  /* Timeline lives on the card: .project__media has overflow:hidden, which would make it the scroller */
  .project { view-timeline-name: --project; }
  .project__img {
    animation: project-zoom-out linear both;
    animation-timeline: --project;
    animation-range: entry 0% cover 50%;
  }
}
@keyframes project-zoom-out { from { scale: 1.25; } to { scale: 1; } }
.project__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 8px 0 10px; }
.project__meta h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.project__meta p { font-size: 14px; color: var(--muted-2); margin-top: 4px; }
.project__tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.project__tags li { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--pill); font-size: 13px; color: #d1d1d1; white-space: nowrap; }
/* Vertical 9:16 video card: narrower than the landscape cards so it doesn't get huge */
.project--video { grid-column: span 3; }
.catalog .project--video { grid-column: span 4; } /* the catalog column is narrower because of the sidebar */
.project--video .project__media { flex: none; aspect-ratio: 9 / 16; }
.project--video .project__meta { flex-direction: column; align-items: flex-start; gap: 12px; }
.project--video .project__tags { justify-content: flex-start; }
.project__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.project__video-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__play {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--text); color: #121212; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease);
}
.project__video:hover .project__play, .project--gallery:hover .project__play { transform: scale(1.08); }
.project__badge {
  position: absolute; top: 12px; left: 12px; padding: 7px 12px; border-radius: var(--pill);
  font-size: 12.5px; font-weight: 500; color: #fff; background: rgba(15, 15, 15, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.project__badge b { font-weight: 500; }

/* "View project" button on the cards */
.project__cta { align-self: flex-start; margin: 0 8px 0 10px; padding: 4px 4px 4px 16px; gap: 10px; font-size: 14px; }
.project__cta .btn-pill__icon { width: 32px; height: 32px; }

/* Individual project pages (projetos/<slug>/) */
.project-page { padding-bottom: 120px; }
.project-page__back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 48px;
  font-size: 15px; color: var(--white-55); transition: color .25s var(--ease);
}
.project-page__back:hover { color: #fff; }
.project-page .catalog-head { padding: 32px 0 48px; }
.project-page__soon {
  aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted);
  background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
}
.video-grid--single { grid-template-columns: minmax(0, 405px); }
@media (max-width: 640px) { .project-page { padding-bottom: 80px; } }

/* Pop-up with a project's vertical videos */
html:has(.video-modal[open]) { overflow: hidden; scrollbar-gutter: stable; }
.video-modal {
  width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0 28px 28px;
  overflow-y: auto; overscroll-behavior: contain; color: var(--text);
  background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg);
}
.video-modal[open] { animation: video-modal-up .55s var(--ease); }
.video-modal::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes video-modal-up { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
.video-modal__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0 20px; background: var(--bg-2);
}
.video-modal__head h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.video-modal__head p { font-size: 14px; color: var(--muted-2); margin-top: 2px; }
.video-modal__close {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  color: var(--text); background: rgba(255, 255, 255, .08); transition: background-color .25s var(--ease);
}
.video-modal__close:hover { background: rgba(255, 255, 255, .16); }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
.video-grid__item { margin: 0; }
.video-grid__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.video-grid__item figcaption { margin-top: 10px; font-size: 14px; color: #d1d1d1; }
/* A single video: the pop-up hugs a 9:16 player that always fits the screen */
.video-modal--single { width: fit-content; }
.video-modal--single .video-grid { display: block; }
.video-modal--single .video-grid__frame { width: min(405px, calc(100vw - 64px), calc((100dvh - 180px) * 9 / 16)); }
.video-modal--single figcaption, .video-modal--single .video-modal__head p { display: none; }
@media (max-width: 980px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .video-modal { padding: 0 16px 20px; max-height: calc(100dvh - 24px); }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .video-grid__item figcaption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .video-modal[open] { animation: none; } }

.projects__empty { color: var(--muted); padding: 40px 0; }
.projects__more { margin-top: 40px; }

/* ============ 05 Services ============ */
.services { max-width: var(--max); margin: 0 auto; padding: 50px 0 120px var(--gutter); display: flex; flex-direction: column; gap: 48px; }
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-right: var(--gutter); }
.services__title { font-size: 60px; font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.services__head .muted { max-width: 391px; }
.services__wrap { position: relative; }
.services__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px var(--gutter) 56px 32px; margin: -20px 0 -56px -32px; scroll-padding-left: 32px;
  scrollbar-width: none; cursor: grab;
}
.services__track::-webkit-scrollbar { display: none; }
.services__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.services__controls { display: flex; justify-content: flex-start; gap: 8px; padding-right: var(--gutter); margin-top: -12px; }
.services__fade {
  position: absolute; top: -20px; right: 0; bottom: -56px; width: 105px; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--page-bg) 60%, transparent) 55%, var(--page-bg));
}

/* Service card = Figma "Union" shape (PORTFOLIO-2027, node 2020:1777) in the card's colors (node 2002:1285).
   Square card; the image sits in the shape's window, cut with the window path as a CSS mask
   (path copied from the Figma SVG, 822x822 artboard). Sizes scale from --w so the shape never distorts. */
.svc {
  --w: 360px;
  position: relative; flex: 0 0 var(--w); min-height: var(--w); scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: calc(var(--w) * .028825) calc(var(--w) * .028825) 0;   /* 23.69 / 822 */
  border: 1px solid rgba(255, 255, 255, .07); border-radius: calc(var(--w) * .11086); /* 91.13 / 822 */
  background: linear-gradient(180deg, #202020, #161616);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 32px -8px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .14); }
/* Window of the shape: lower on the left, diagonal step up to the "folder tab" on the right */
.svc__media {
  --svc-window: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='23.6943 23.6943 774.612 398.445' preserveAspectRatio='none'%3E%3Cpath d='M91.1309 23.6943C53.8865 23.6943 23.6943 53.8865 23.6943 91.1309V422.139C30.2695 415.692 39.2755 411.716 49.2109 411.716H498.248C510.535 411.716 521.994 405.526 528.731 395.251L556.009 353.649C562.746 343.374 574.206 337.184 586.493 337.184H774.612C783.658 337.184 791.934 340.481 798.306 345.937V91.1309C798.306 53.8865 768.113 23.6943 730.869 23.6943H91.1309Z'/%3E%3C/svg%3E");
  position: relative; width: 100%; aspect-ratio: 774.612 / 398.445; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(180deg, #2e2e2e, #252525);
  -webkit-mask: var(--svc-window) center / 100% 100% no-repeat;
  mask: var(--svc-window) center / 100% 100% no-repeat;
}
.svc__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0), rgba(31, 31, 31, .55));
}
.svc__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc__img { transform: scale(1.05); }
.svc__media--empty { display: grid; place-items: center; }
.svc__num {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 34px; height: 34px; border-radius: var(--pill); display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .9);
}
.svc__body { margin-top: auto; padding: 20px 16px 26px; display: flex; flex-direction: column; gap: 10px; }
.svc__body h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.svc__body p { font-size: 14.5px; line-height: 1.55; color: var(--white-55); }

/* ============ 06 Process ============ */
.process { padding: 150px 0; }
.process__head { display: flex; gap: 96px; padding-bottom: 64px; }
.process__head .label { width: 300px; flex-shrink: 0; align-self: flex-start; }
.process__head > div { display: flex; flex-direction: column; gap: 16px; }
.process__lead { max-width: 640px; }
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.step {
  min-height: 432px; padding: 32px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: linear-gradient(180deg, #2c2c2c, #232323);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.step--active, .step:hover { background: linear-gradient(180deg, #363636, #2a2a2a); border-color: rgba(255, 255, 255, .12); }
.step__top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 242px; }
.step__icon { position: relative; width: 38px; height: 38px; display: block; }
.step__icon > img { width: 38px; height: 38px; }
.step__glyph { position: absolute; display: block; }
.step__glyph img { width: 100%; height: 100%; }
.step__num { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: rgba(255, 255, 255, .32); }
.step__bottom { display: flex; flex-direction: column; gap: 14px; }
.step__bottom h3 { font-size: 30px; font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
.step__bottom p { font-size: 15px; line-height: 1.55; color: var(--white-55); }
/* Align titles across a row (must come after the .step rules above) */
@supports (grid-template-rows: subgrid) {
  .process__grid { row-gap: 16px; }
  .step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 14px; }
  .step__bottom { display: contents; }
  .step__top { margin-bottom: 26px; }
}

/* ============ 07 About ============ */
.about { display: flex; gap: 24px; padding-top: 96px; padding-bottom: 96px; }
.about__photo {
  /* 20% smaller than the original half-width x 720px block */
  flex: 0 0 calc((100% - 24px) / 2 * .8); min-width: 0; height: 576px; border-radius: var(--radius-lg);
  background: var(--placeholder);
}
.about { align-items: center; justify-content: center; }

/* About gallery: photos appear one at a time */
.gallery { position: relative; overflow: hidden; isolation: isolate; cursor: pointer; }
.gallery__stage { position: absolute; inset: 0; }
.gallery__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  clip-path: inset(100% 0 0 0 round var(--radius-lg));
  transition: clip-path 1.1s var(--ease), transform 4.6s ease-out, opacity 0s linear 1.1s;
}
.gallery__img.is-active {
  opacity: 1; transform: scale(1); z-index: 2;
  clip-path: inset(0 0 0 0 round var(--radius-lg));
  transition: clip-path 1.1s var(--ease), transform 4.6s ease-out, opacity 0s;
}
.gallery__img.is-leaving { opacity: 1; z-index: 1; clip-path: inset(0 0 0 0); transform: scale(1); transition: none; }
.gallery::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%, transparent 75%, rgba(0, 0, 0, .45));
}
.gallery__bars { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 4; display: flex; gap: 6px; }
.gallery__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.gallery__bars i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.gallery__bars span.is-done i { transform: scaleX(1); }
.gallery__bars span.is-current i { animation: gallery-bar var(--gallery-ms, 3800ms) linear forwards; }
@keyframes gallery-bar { to { transform: scaleX(1); } }
.gallery__count { position: absolute; left: 18px; bottom: 16px; z-index: 4; font-size: 13px; color: rgba(255, 255, 255, .7); }
.gallery__count strong { color: #fff; font-weight: 500; }
.about__content { flex: 1; min-width: 0; max-width: 640px; padding-left: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px; }
.about__title { max-width: 498px; }
.about__text { display: flex; flex-direction: column; gap: 27px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-pill--social .btn-pill__icon { color: #121212; }
.btn-pill--social:hover .btn-pill__icon { transform: none; } /* the arrow's rotation would tilt the logos */

/* ============ 08 Tools ============ */
.tools { display: flex; flex-direction: column; gap: 48px; }
.tools h3 { font-size: 18px; font-weight: 500; margin-bottom: -32px; }
.tools__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tools__list li { background: var(--placeholder); padding: 12px 20px; border-radius: var(--pill); font-size: 15px; }

/* ============ 09 Testimonials ============ */
.testi { display: flex; gap: 96px; padding-top: 96px; padding-bottom: 96px; }
.testi__head { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.testi__eyebrow { font-size: 14px; color: var(--muted); }
.testi__title { font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.testi__slider { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.testi__viewport { overflow: hidden; }
.testi__pages { display: flex; transition: transform .6s var(--ease); }
.testi__page { flex: 0 0 100%; display: flex; gap: 40px; }
.quote { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--line-2); padding-top: 22px; }
.quote__mark { font-size: 40px; font-weight: 700; line-height: 1; }
.quote blockquote { font-size: 19px; line-height: 1.45; letter-spacing: -0.005em; }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.quote figcaption strong { font-size: 16px; font-weight: 500; }
.quote figcaption span { font-size: 14px; color: var(--muted); }
.testi__controls { display: flex; align-items: center; justify-content: space-between; }
.testi__count { font-size: 14px; display: flex; gap: 6px; }
.testi__count strong { font-weight: 500; }
.testi__count > span { color: #666; }
.testi__arrows { display: flex; gap: 8px; }
.testi__arrow {
  width: 52px; height: 52px; border-radius: var(--pill); background: var(--surface-2);
  font-size: 20px; color: var(--text); transition: background-color .25s, color .25s;
}
.testi__arrow:hover:not(:disabled) { background: #333; }
.testi__arrow:disabled { color: #666; cursor: default; }

/* ============ 10 Final CTA ============ */
.cta { position: relative; height: var(--cta-h, 960px); overflow: hidden; }
.cta__arc { position: absolute; inset: 0; }
.cta__card {
  position: absolute; left: 0; top: 0; width: 190px; height: 238px; margin: -119px 0 0 -95px;
  border-radius: var(--radius-lg); display: grid; place-items: center; overflow: hidden;
  will-change: transform, opacity;
}
.cta__card img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.cta__card:nth-child(odd) { background: #e0e0e0; }
.cta__card:nth-child(even) { background: #c7c7c7; }
.cta__fade {
  position: absolute; left: 0; right: 0; top: var(--cta-fade, 700px); bottom: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, .7) 55%, var(--bg) 100%);
}
.cta__content {
  position: absolute; left: 50%; top: var(--cta-top, 520px); transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  /* Text column fits inside the arc so it never runs under the side cards */
  width: min(var(--cta-inner, 720px), calc(100% - 32px));
}
/* Soft dark halo behind the copy: cards rotate behind it without hurting legibility */
.cta__content::before {
  content: ""; position: absolute; inset: -18% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--bg) 35%, rgba(15, 15, 15, .75) 65%, rgba(15, 15, 15, 0) 100%);
}
.cta__title { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.cta__title br { display: none; }
.cta__content p { font-size: 17px; line-height: 1.55; color: #a6a6a6; max-width: 400px; text-wrap: balance; }

/* ============ 11 Footer ============ */
.footer { background: var(--bg); padding: 80px 0 40px; }
.footer .container { display: flex; flex-direction: column; gap: 40px; }
.footer .divider { background: var(--line-2); }
.footer__top { display: flex; gap: 96px; }
.footer__brand { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.footer__logo { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
/* Profile chip used as the logo (nav and footer) */
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.brand__name { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.brand__handle { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--white-55); }
.footer__brand p:last-child { font-size: 15px; line-height: 1.55; color: #9e9e9e; max-width: 200px; }
.footer__cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9e9e9e; margin-bottom: 14px; }
.footer__cols ul { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #fff; }
.footer__cols a, .footer__legal a { transition: opacity .2s; }
.footer__cols a:hover, .footer__legal a:hover { opacity: .65; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: #9e9e9e; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 24px; }
.footer__top-link { color: #fff; font-weight: 500; }

/* ============ Bottom dock nav ============ */
.dock {
  position: fixed; left: 50%; bottom: 24px; z-index: 45;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(15, 15, 15, .45); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--pill);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease), opacity .4s var(--ease);
}
.dock.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock__links { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dock__links::-webkit-scrollbar { display: none; }
.dock__links a {
  padding: 10px 16px; border-radius: var(--pill); font-size: 14px; white-space: nowrap;
  color: rgba(255, 255, 255, .6); transition: color .25s, background-color .25s;
}
.dock__links a:hover { color: #fff; }
.dock__links a.is-active { color: #fff; background: #2a2a2a; font-weight: 500; }
.nav__menu a.is-active { font-weight: 600; }

@media (max-width: 640px) {
  .dock { bottom: 16px; max-width: calc(100vw - 32px - 76px); left: calc(50% - 38px); }
  .dock__links {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .dock__links a { padding: 9px 12px; font-size: 13px; }
}

/* ============ Floating social ============ */
.float-social {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.float-social.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-social__btn {
  width: 42px; height: 42px; border-radius: var(--pill);
  display: grid; place-items: center;
  background: #f2f0ec; color: #0f0f0f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.float-social__btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }

/* About pills in brand colors: icon circle + outline (Instagram gradient, LinkedIn blue) */
:root {
  --instagram: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  --instagram-line: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  --linkedin: #0a66c2;
}
.btn-pill--social[href*="instagram.com"] .btn-pill__icon { background: var(--instagram); color: #fff; }
.btn-pill--social[href*="linkedin.com"] .btn-pill__icon { background: var(--linkedin); color: #fff; }
.btn-pill--social[href*="linkedin.com"],
.btn-pill--social[href*="linkedin.com"]:hover { border-color: var(--linkedin); }
/* A gradient can't be a rounded border, so Instagram draws its outline with a masked ring */
.btn-pill--social[href*="instagram.com"],
.btn-pill--social[href*="instagram.com"]:hover { position: relative; border-color: transparent; }
.btn-pill--social[href*="instagram.com"]::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--instagram-line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.float-social__btn--wa { position: relative; width: 70px; height: 70px; background: #25d366; color: #fff; }
.float-social__btn--wa::before, .float-social__btn--wa::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, .55); animation: wa-pulse 2.4s var(--ease) infinite; pointer-events: none;
}
.float-social__btn--wa::after { animation-delay: 1.2s; }
@keyframes wa-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

@media (max-width: 640px) {
  .float-social { right: 14px; bottom: 14px; gap: 10px; }
  .float-social__btn { width: 37px; height: 37px; }
  .float-social__btn--wa { width: 60px; height: 60px; }
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0; transform: translateY(56px); filter: blur(6px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
/* the CTA block is centered with a transform, so it only fades + unblurs */
.cta__content.reveal { transform: translateX(-50%); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.cta__content.reveal.is-visible { transform: translateX(-50%); }

/* ============ Inner pages: projects catalog (projetos/) + 404 ============ */
.subpage { --page-bg: var(--bg); } /* inner pages stay dark (the lighter frame is only for the home hero) */
.page-top { position: relative; z-index: 10; padding-top: 20px; }
.subpage .nav__menu { background: var(--bg-2); border-color: rgba(255, 255, 255, .07); }

/* Full-bleed metallic strip behind the nav and title; fades into the page background */
.catalog-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 380px; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(15, 15, 15, .42), rgba(15, 15, 15, .42)), url("../assets/img/projects-bg.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.catalog-bg ~ main { position: relative; z-index: 1; }
.catalog-bg ~ .page-top .btn-pill--outline { background: var(--bg-2); } /* keeps the label readable over the highlights */

.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 96px 0 56px; }
.catalog-head > div { display: flex; flex-direction: column; gap: 16px; }
.catalog-head__title { font-size: 60px; font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.catalog-head .muted { max-width: 420px; }

.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 120px; }
.cats { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.cats__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9e9e9e; padding-left: 4px; }
.cats__list {
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius-lg);
}
.cats__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 11px 12px 11px 16px; border-radius: 16px;
  font-size: 15px; color: var(--white-55); text-align: left; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cats__btn:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.cats__btn.is-active { background: #333; color: #fff; font-weight: 500; }
.cats__count {
  min-width: 26px; height: 24px; padding: 0 8px; border-radius: var(--pill);
  display: grid; place-items: center; font-size: 12px; font-weight: 500;
  color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06);
}
.cats__btn.is-active .cats__count { color: #fff; background: rgba(255, 255, 255, .12); }
.cats__btn.is-empty .cats__count { color: rgba(255, 255, 255, .3); }
.cats__cta {
  margin-top: 8px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #202020, #161616);
}
.cats__cta h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.cats__cta p { font-size: 14px; line-height: 1.55; color: var(--white-55); }
.cats__cta .btn-pill { margin-top: 10px; }
.catalog__main { display: flex; flex-direction: column; }
.catalog .projects__empty {
  padding: 72px 24px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
}

/* 404: same card as the home hero, with a still of the carousel instead of the video */
.hero__poster { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; display: block; }

@media (max-width: 1180px) {
  .catalog { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 980px) {
  .catalog-head { flex-direction: column; align-items: flex-start; padding: 64px 0 40px; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cats { position: static; }
  .cats__label, .cats__cta { display: none; }
  .cats__list { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-radius: var(--pill); padding: 4px; }
  .cats__list::-webkit-scrollbar { display: none; }
  .cats__btn { width: auto; flex-shrink: 0; border-radius: var(--pill); padding: 8px 8px 8px 16px; font-size: 14px; }
}
@media (max-width: 640px) {
  .catalog-head__title { font-size: 44px; }
  .catalog { padding-bottom: 80px; }
}

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .nav__menu { gap: 20px; padding: 0 20px; }
  .nav__actions .btn-pill { display: none; }
  .hero__title { font-size: 76px; }
  .intro { gap: 56px; }
  .intro__cols { gap: 40px; }
  .process__head, .testi { gap: 56px; }
  .projects__head { flex-direction: column; align-items: flex-start; }
  .footer__top { flex-direction: column; gap: 48px; }
}

@media (max-width: 980px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .nav__actions { flex: 0 0 auto; margin-right: 8px; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; transform: none;
    height: auto; padding: 24px; border-radius: var(--radius-lg); font-size: 18px;
    background: rgba(15, 15, 15, .75);
  }
  .hero__card { padding: 16px 24px 40px; }
  .intro, .about, .testi, .process__head { flex-direction: column; }
  .intro__left, .testi__head, .process__head .label { width: auto; }
  .intro__left { position: static; }
  .about__photo { flex: none; width: 100%; height: 520px; }
  .about__content { padding-left: 0; max-width: none; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .project__meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .project__tags { justify-content: flex-start; }
  .project--video, .catalog .project--video { grid-column: span 4; }
  .hero__title { font-size: 64px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero__card { min-height: 500px; border-radius: 24px; padding: 12px 16px 28px; }
  .hero__title { font-size: 48px; }
  .hero__text { font-size: 16px; }
  .hero__ctas { gap: 10px; }
  .btn-solid { padding: 14px 20px; font-size: 14px; }
  .h2, .testi__title { font-size: 32px; }
  .services__title { font-size: 44px; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .intro__cols, .testi__page { flex-direction: column; gap: 24px; }
  .projects__grid, .process__grid { grid-template-columns: 1fr; }
  .projects__grid .project { grid-column: auto; }
  .svc { --w: 300px; }
  .step { min-height: 0; }
  .step__top { min-height: 110px; }
  .about__photo { height: 440px; }
  .quote blockquote { font-size: 17px; }
  .logos__strip { -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); }
  .cta__title { font-size: 34px; text-wrap: balance; }
  .cta__title br { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
