/* ============================================
   GB Editor — Portfolio
   Minimalista · profissional · objetivo
   ============================================ */

:root {
  --bg: #080809;
  --bg-elevated: #0f0f11;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #ece8e1;
  --accent-soft: rgba(236, 232, 225, 0.08);
  --ink: #0a0a0b;
  --live: #4ade80;
  --radius: 14px;
  --max: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 0.6s;
  --dur-micro: 0.2s;
  --reveal-y: 18px;
  --word-y: 108%;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section-y: clamp(4.5rem, 10vw, 8rem);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

html:not(.js) {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: rgba(236, 232, 225, 0.22);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(100% - clamp(2rem, 5vw, 3rem), var(--max));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(236, 232, 225, 0.15), rgba(236, 232, 225, 0.85));
  pointer-events: none;
}

/* ---------- Header (floating pill) ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.1rem;
  pointer-events: none;
  transition: padding 0.5s var(--ease);
}

.header.scrolled {
  padding-top: 0.6rem;
}

.header .nav {
  pointer-events: auto;
}

.nav {
  display: flex;
  justify-content: center;
  width: auto;
  position: relative;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.42rem;
  background: rgba(14, 14, 16, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  animation: navIn 0.7s var(--ease) 0.1s both;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.header.scrolled .nav-pill {
  background: rgba(12, 12, 14, 0.86);
  border-color: rgba(255, 255, 255, 0.11);
}

.nav-brand {
  display: flex;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  transition: opacity 0.3s var(--ease);
}

.nav-brand:hover .nav-logo {
  opacity: 0.8;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo span {
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .nav-cta {
  color: var(--ink);
  background: var(--text);
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  margin-left: 0.25rem;
}

.nav-links .nav-cta:hover {
  color: var(--ink);
  background: #fff;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.2rem;
  padding-left: 0.45rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease);
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.is-active {
  color: var(--ink);
  background: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav-toggle.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-x: 0px;
  --btn-y: 0px;
  --btn-scale: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transform: translate3d(var(--btn-x), var(--btn-y), 0) scale(var(--btn-scale));
  transition:
    background var(--dur-micro) var(--ease),
    color var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    transform 0.25s var(--ease);
}

.btn svg {
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-scale: 1.02;
  }
}

.btn:active {
  --btn-scale: 0.97;
}

.btn-primary {
  background: var(--text);
  color: var(--ink);
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-dark {
  background: var(--ink);
  color: var(--text);
}

.btn-dark:hover {
  background: #1a1a1c;
}

.btn-outline-dark {
  color: var(--ink);
  border-color: rgba(10, 10, 11, 0.18);
}

.btn-outline-dark:hover {
  border-color: rgba(10, 10, 11, 0.5);
  background: rgba(10, 10, 11, 0.04);
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow--dark {
  color: rgba(10, 10, 11, 0.6);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--live);
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}

.eyebrow--dark .status-dot {
  background: #16a34a;
}

.eyebrow--dark .status-dot::after {
  border-color: #16a34a;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Same columns as .service rows, so the intro lines up with the descriptions */
.section-head--split {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: end;
}

.section-head--split > div {
  grid-column: 1 / 3;
}

.section-intro {
  grid-column: 3;
  max-width: 30rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1c;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Soft light behind the reel — no image, no cost */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70vw;
  height: 80%;
  background: radial-gradient(closest-side, rgba(236, 232, 225, 0.06), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-intro {
  min-width: 0;
}

.hero-intro .eyebrow {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s var(--ease) 0.05s both;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
}

.hero-line--muted {
  color: var(--text-dim);
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  vertical-align: top;
}

.hero-title .word > span {
  display: inline-block;
}

.js .hero-title .word > span {
  transform: translate3d(0, var(--word-y), 0);
  animation: wordReveal 0.8s var(--ease) forwards;
}

.hero-line:first-child .word:nth-child(1) > span { animation-delay: 0.1s; }
.hero-line:first-child .word:nth-child(2) > span { animation-delay: 0.16s; }
.hero-line:first-child .word:nth-child(3) > span { animation-delay: 0.22s; }
.hero-line:last-child .word:nth-child(1) > span { animation-delay: 0.26s; }
.hero-line:last-child .word:nth-child(2) > span { animation-delay: 0.32s; }
.hero-line:last-child .word:nth-child(3) > span { animation-delay: 0.38s; }
.hero-line:last-child .word:nth-child(4) > span { animation-delay: 0.44s; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  max-width: 30rem;
  margin-bottom: 2rem;
  line-height: 1.65;
  animation: fadeUp 0.8s var(--ease) 0.35s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: fadeUp 0.8s var(--ease) 0.45s both;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 30rem;
  animation: fadeUp 0.8s var(--ease) 0.55s both;
}

.hero-proof p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-proof strong {
  color: var(--text);
  font-weight: 600;
}

.avatar-stack {
  display: flex;
  flex-shrink: 0;
}

.avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: #1a1a1c;
  object-fit: cover;
}

.avatar-stack img + img {
  margin-left: -10px;
}

/* Showreel */
.reel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: reelIn 1.1s var(--ease) 0.2s both;
}

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

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.reel__label,
.reel__link {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 8, 9, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reel__label {
  top: 1rem;
  left: 1rem;
}

.reel__link {
  right: 1rem;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}

.reel__link:hover {
  background: var(--text);
  color: var(--ink);
}

.reel__sound {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(244, 244, 245, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: background 0.2s var(--ease), transform 0.3s var(--ease);
}

.reel__sound[hidden] {
  display: none;
}

.reel__sound:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.04);
}

.reel__sound::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: soundPulse 2.2s var(--ease) infinite;
  pointer-events: none;
}

/* Playing with sound: native controls take over */
.reel.is-sound::after,
.reel.is-sound .reel__label,
.reel.is-sound .reel__toggle,
.reel.is-sound .reel__link {
  display: none;
}

.reel__toggle {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 8, 9, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}

.reel__toggle[hidden] {
  display: none;
}

.reel__toggle:hover {
  background: var(--text);
  color: var(--ink);
}

.reel__toggle .icon-play,
.reel.is-paused .reel__toggle .icon-pause {
  display: none;
}

.reel.is-paused .reel__toggle .icon-play {
  display: block;
}

.reel.is-paused .reel__rec {
  animation: none;
  background: var(--text-dim);
}

.reel__rec {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: blink 1.6s steps(2, start) infinite;
}

/* ---------- Clients marquee ---------- */
.trusted {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.trusted-marquee {
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.trusted-track {
  display: flex;
  justify-content: safe center;
  gap: 2.5rem;
  padding-inline: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.trusted-track.is-looping {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  gap: 0;
  padding-inline: 0;
  overflow: visible;
  animation: marquee 48s linear infinite;
}

.trusted-marquee:hover .trusted-track.is-looping {
  animation-play-state: paused;
}

.trusted-group {
  display: flex;
  align-items: center;
  gap: 3.25rem;
  padding-inline-end: 3.25rem;
  flex: 0 0 auto;
}

.trusted-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  opacity: 0.82;
  transition: opacity var(--dur-micro) var(--ease);
}

.trusted-item:hover {
  opacity: 1;
}

.trusted-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.trusted-item span {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- Portfolio ---------- */
.portfolio {
  padding: var(--section-y) 0;
}

.category-bar {
  margin-bottom: 2.5rem;
  overscroll-behavior-x: contain;
}

.category-track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  width: max-content;
  max-width: 100%;
  padding: 0.22rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.category-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--text);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.5s var(--ease),
    width 0.5s var(--ease),
    height 0.5s var(--ease),
    opacity 0.35s var(--ease);
}

.category-bar.has-indicator .category-indicator {
  opacity: 1;
}

.category-btn {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

.category-btn:hover {
  color: var(--text-muted);
}

.category-btn.is-active {
  color: var(--bg);
  background: var(--text);
}

.category-bar.has-indicator .category-btn.is-active {
  background: transparent;
}

.filter-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 1rem;
}

.portfolio-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.portfolio-groups.is-swapping {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.portfolio-groups.is-all-view {
  gap: clamp(3rem, 6vw, 4.5rem);
}

.portfolio-group.is-hidden {
  display: none;
}

.portfolio-group__head {
  display: none;
  margin: 0 0 1.5rem;
}

.portfolio-group.show-head .portfolio-group__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-group.show-head .portfolio-group__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  transform-origin: left center;
  animation: lineGrow 0.6s var(--ease) both;
}

.portfolio-group__title {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-dim);
  white-space: nowrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.5rem);
  max-width: 900px;
  margin-inline: auto;
}

.portfolio-grid--landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.portfolio-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 600px;
}

.work-card {
  min-width: 0;
}

.work-card.is-hidden {
  display: none;
}

.work-card.filter-in {
  animation: filterIn 0.55s var(--ease) both;
}

.portfolio-group.filter-in {
  animation: filterIn 0.5s var(--ease) both;
}

.portfolio-grid .work-card.filter-in:nth-child(2) { animation-delay: 0.06s; }
.portfolio-grid .work-card.filter-in:nth-child(3) { animation-delay: 0.12s; }

/* Inline player */
.inline-player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.4s var(--ease);
  isolation: isolate;
}

.inline-player--landscape {
  aspect-ratio: 16 / 9;
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover .inline-player {
    border-color: var(--border-hover);
  }

  .work-card:hover .inline-player__thumb {
    transform: scale(1.035);
  }

  .work-card:hover .inline-player__play {
    background: #fff;
    color: var(--ink);
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.inline-player__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  text-align: left;
}

.inline-player__facade[hidden] {
  display: none;
}

.inline-player__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.35s var(--ease);
  pointer-events: none;
}

.inline-player__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.inline-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: rgba(8, 8, 9, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, opacity 0.3s var(--ease);
}

.inline-player__play svg {
  transform: translateX(1px);
}

.inline-player__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  pointer-events: none;
}

.work-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.inline-player__meta strong {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.work-result {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.inline-player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
  z-index: 3;
  display: none;
}

.inline-player--landscape .inline-player__video {
  object-fit: contain;
}

.inline-player__video.is-visible,
.inline-player.is-previewing .inline-player__video {
  display: block;
}

.inline-player.is-playing .inline-player__facade {
  display: none;
}

.inline-player.is-previewing .inline-player__facade {
  z-index: 4;
  background: transparent;
}

.inline-player.is-previewing .inline-player__thumb,
.inline-player.is-previewing .inline-player__play {
  opacity: 0;
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}

.service-list {
  border-bottom: 1px solid var(--border);
}

.service {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--border);
  transition: padding 0.5s var(--ease);
}

.service__num {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.service__title {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}

.service__desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 30rem;
  transition: color 0.4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .service-list:hover .service__title {
    color: var(--text-dim);
  }

  .service-list .service:hover .service__title {
    color: var(--text);
    transform: translateX(6px);
  }
}

/* ---------- Process ---------- */
.process {
  padding: 0 0 var(--section-y);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%);
  transition: border-color 0.4s var(--ease);
}

.step:hover {
  border-color: var(--border-hover);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  transition: border-color 0.35s var(--ease);
}

.testimonial:hover {
  border-color: var(--border-hover);
}

.testimonial > p {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.testimonial .avatar {
  width: 40px;
  height: 40px;
}

.testimonial footer strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.testimonial footer span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---------- CTA ---------- */
.cta {
  padding: 0 0 var(--section-y);
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}

.cta-card > * {
  position: relative;
}

.cta-card .eyebrow {
  margin-bottom: 1.5rem;
}

.cta-title {
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
  max-width: 14ch;
  margin: 0 auto 1.25rem;
}

.cta-sub {
  color: rgba(10, 10, 11, 0.65);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 32rem;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.cta-mail {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(10, 10, 11, 0.6);
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(10, 10, 11, 0.2);
  transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}

.cta-mail:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur-micro) var(--ease);
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Keyframes ---------- */
@keyframes navIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

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

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

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

@keyframes wordReveal {
  to { transform: translate3d(0, 0, 0); }
}

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

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

@keyframes soundPulse {
  0% { transform: scale(0.96); opacity: 0.9; }
  80%, 100% { transform: scale(1.18, 1.35); opacity: 0; }
}

@keyframes blink {
  to { visibility: hidden; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .header {
    padding-top: 0.65rem;
  }

  .nav {
    width: min(100% - 1rem, var(--max));
  }

  .nav-pill {
    width: 100%;
    justify-content: space-between;
    padding: 0.35rem 0.4rem;
  }

  .nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .lang-switch {
    margin-left: auto;
    padding-left: 0;
    border-left: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.65rem;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    display: flex;
    animation: fadeUp 0.35s var(--ease) both;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .nav-links .nav-cta {
    text-align: center;
    margin: 0.2rem 0 0;
  }

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-sub,
  .hero-proof {
    max-width: 36rem;
  }

  .category-bar {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(clamp(2rem, 5vw, 3rem) / -2);
    padding-inline: calc(clamp(2rem, 5vw, 3rem) / 2);
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .category-track {
    flex-wrap: nowrap;
    max-width: none;
  }

  .portfolio-grid--landscape {
    grid-template-columns: 1fr;
  }

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

  .service {
    grid-template-columns: 3rem minmax(0, 1fr);
    row-gap: 0.6rem;
  }

  .service__desc {
    grid-column: 2;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-head--split > div,
  .section-intro {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .portfolio-grid:not(.portfolio-grid--landscape) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-player__play {
    width: 46px;
    height: 46px;
  }

  .inline-player__play svg {
    width: 20px;
    height: 20px;
  }

  .portfolio-grid:not(.portfolio-grid--landscape) .inline-player__meta {
    padding: 0.75rem;
  }

  .portfolio-grid:not(.portfolio-grid--landscape) .inline-player__meta strong {
    font-size: 0.9rem;
  }

  .portfolio-grid:not(.portfolio-grid--landscape) .work-result {
    display: none;
  }

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

  .step__num {
    margin-bottom: 1.5rem;
  }

  .trusted-group {
    gap: 2rem;
    padding-inline-end: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-cta .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .hero-proof {
    align-items: flex-start;
  }

  .lang-btn {
    padding: 0.28rem 0.4rem;
    font-size: 0.62rem;
  }

  .reel__link {
    display: none;
  }
}

/* Reduced motion: keep fades, drop movement */
@media (prefers-reduced-motion: reduce) {
  :root {
    --reveal-y: 0px;
    --word-y: 0%;
  }

  .nav-pill,
  .reel,
  .hero-intro .eyebrow,
  .hero-sub,
  .hero-cta,
  .hero-proof,
  .work-card.filter-in,
  .portfolio-group.filter-in,
  .nav-links.open {
    animation-name: fadeIn;
  }

  .portfolio-groups.is-swapping {
    transform: none;
  }

  .status-dot::after,
  .reel__sound::before {
    animation: none;
  }

  .service__title,
  .inline-player__thumb {
    transform: none !important;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
