/* =====================================================
   MAYAFILMS — Light editorial cinematic design system
   ===================================================== */

:root {
  /* canvas */
  --bg: #f5f1e8;          /* warm off-white (cream) */
  --bg-2: #ffffff;        /* clean white */
  --surface: #ffffff;
  --surface-2: #ebe6d8;   /* soft sand */
  --line: rgba(15, 15, 15, 0.10);
  --line-strong: rgba(15, 15, 15, 0.22);

  /* ink */
  --text: #0a0a0a;
  --text-2: #2a2a2a;
  --text-dim: #5a544c;
  --text-mute: #908a80;

  /* accents */
  --accent: #b8854a;       /* warm gold (darker for contrast on light bg) */
  --accent-2: #d4a574;
  --accent-warm: #c25b3f;  /* terracotta */

  --grad-accent: linear-gradient(135deg, #b8854a 0%, #d4a574 50%, #b8854a 100%);

  --radius-sm: 6px;
  --radius: 18px;
  --radius-lg: 28px;

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-snap: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

#scroll { position: relative; }

/* TYPO */
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}
.h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.dot {
  font-style: normal;
  color: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}

/* LAYOUT */
main > section { padding: clamp(80px, 12vh, 160px) var(--gutter); position: relative; }
.section__head { max-width: 980px; margin: 0 auto 72px; text-align: center; }
.section__lead { color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.18rem); margin-top: 1.2rem; }
.section__head .kicker { justify-content: center; }

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.7s var(--easing), visibility 0.7s var(--easing);
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__brand { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.loader__logo {
  height: clamp(64px, 9vw, 110px);
  width: auto;
  opacity: 0;
  transform: translateY(40px);
  animation: loaderLogoIn 0.9s var(--easing) 0.1s forwards;
}
@keyframes loaderLogoIn {
  to { opacity: 1; transform: translateY(0); }
}
.loader__brand-text {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.loader__brand-text > span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderUp 0.7s var(--easing) forwards;
}
.loader__brand-text > span:nth-child(1) { animation-delay: 0.04s; }
.loader__brand-text > span:nth-child(2) { animation-delay: 0.08s; }
.loader__brand-text > span:nth-child(3) { animation-delay: 0.12s; }
.loader__brand-text > span:nth-child(4) { animation-delay: 0.16s; }
.loader__brand-text > span:nth-child(5) { animation-delay: 0.20s; }
.loader__brand-text > span:nth-child(6) { animation-delay: 0.24s; }
.loader__brand-text > span:nth-child(7) { animation-delay: 0.28s; }
.loader__brand-text > span:nth-child(8) { animation-delay: 0.32s; }
.loader__brand-text > span:nth-child(9) { animation-delay: 0.36s; }
.loader__brand-text .dot {
  transform: translateY(110%);
  animation: loaderUp 0.7s var(--easing) 0.5s forwards;
  margin-left: 4px;
}
@keyframes loaderUp {
  to { transform: translateY(0); }
}

.loader__bar {
  width: min(60vw, 280px);
  height: 1px;
  background: rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.loader__progress {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  transform-origin: left;
  transition: width 0.15s linear;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: padding 0.5s var(--easing), background 0.5s var(--easing), border-color 0.5s var(--easing), backdrop-filter 0.5s var(--easing);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px var(--gutter);
  background: rgba(245, 241, 232, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  position: relative;
  transition: opacity 0.3s var(--easing), transform 0.4s var(--easing);
}
.nav__logo:hover { opacity: 0.85; transform: translateY(-1px); }
.nav__logo-img {
  height: 32px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  transition: height 0.5s var(--easing);
}
.nav.is-scrolled .nav__logo-img { height: 28px; }
.nav__logo .dot { font-size: 1.6rem; line-height: 0; }

.nav__menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav__link {
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: 999px;
  color: var(--text-2);
  position: relative;
  transition: color 0.3s var(--easing);
}
.nav__link::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--text);
  border-radius: 999px;
  transform: scale(0.4);
  opacity: 0;
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);
  z-index: -1;
}
.nav__link:hover, .nav__link.is-active {
  color: var(--bg);
}
.nav__link:hover::before, .nav__link.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.nav__cta { display: inline-flex; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--easing), top 0.4s var(--easing);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger.is-open span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 80;
  padding: 110px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.7s var(--easing);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  transition: color 0.3s var(--easing), padding-left 0.3s var(--easing);
  color: var(--text);
}
.mobile-menu nav a:hover { color: var(--accent); padding-left: 12px; }
.mobile-menu__contact { display: flex; flex-direction: column; gap: 6px; color: var(--text-dim); font-size: 0.95rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--easing), color 0.4s var(--easing), border-color 0.4s var(--easing), background 0.4s var(--easing);
  will-change: transform;
  isolation: isolate;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--easing); flex-shrink: 0; }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--primary {
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
}
.btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.6s var(--easing);
  z-index: -1;
}
.btn--primary:hover { color: #fff; }
.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn--ghost::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.6s var(--easing);
  z-index: -1;
}
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn--ghost:hover::before { transform: translateY(0); }

.btn--lg { padding: 16px 28px; font-size: 0.95rem; }
.btn--xl { padding: 22px 38px; font-size: 1.05rem; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(48px, 7vh, 80px) !important;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  margin: 88px clamp(20px, 3vw, 40px) 0;
  will-change: transform;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.92) contrast(1.05) saturate(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 80%, rgba(0,0,0,0.7) 100%);
}

.hero__content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 56px);
  color: #fff;
  padding: clamp(120px, 16vh, 180px) clamp(24px, 4vw, 56px) 60px;
  position: relative;
}

.hero__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.hero__pill-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 2.5s var(--easing) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}
.hero__time {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.038em;
  margin: 0;
  color: #fff;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.is-loaded .hero__title .word {
  animation: heroWord 0.95s var(--easing) forwards;
}

.hero__sub {
  max-width: 580px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.hero__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.hero__actions .btn--ghost::before { background: #fff; }
.hero__actions .btn--ghost:hover { color: var(--text); border-color: #fff; }

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 24px;
}
.hero__rating { display: flex; align-items: center; gap: 14px; }
.hero__stars { display: flex; gap: 4px; }
.hero__stars span {
  width: 14px; height: 14px;
  background: var(--accent-2);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.hero__rating strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.hero__rating small { font-size: 0.74rem; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; }

.hero__scroll {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero__scroll-line {
  width: 70px; height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative; overflow: hidden;
}
.hero__scroll-line i {
  position: absolute; inset: 0;
  background: var(--accent-2);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--easing) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

@keyframes heroWord {
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 700px) {
  .hero__media { margin: 80px 16px 0; }
  .hero__topline { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ MARQUEE ============ */
.marquee {
  padding: 0 !important;
  border-block: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.marquee__row {
  overflow: hidden;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.marquee__row:last-child { border-bottom: none; padding: 18px 0; }

.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  width: max-content;
}
.marquee__track span { display: inline-block; }
.marquee__track i { color: var(--accent); font-style: normal; font-weight: 400; }
.marquee__track em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--text-dim);
}

.marquee__row--left .marquee__track {
  animation: scrollLeft 38s linear infinite;
}
.marquee__row--right .marquee__track {
  animation: scrollRight 42s linear infinite;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}
@keyframes scrollLeft {
  to { transform: translateX(-50%); }
}
@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ============ ABOUT ============ */
.about__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__intro h2 { letter-spacing: -0.025em; }
.about__body p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 1.4rem;
  max-width: 580px;
}
.about__body strong { color: var(--text); font-weight: 600; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__plus { font-size: 1.6rem; color: var(--accent); margin-left: 2px; }
.stat__label { font-size: 0.78rem; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }

@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
}

/* ============ SERVICES ============ */
.services { background: var(--bg-2); }
.services__list {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 40px;
  cursor: pointer;
  transition: padding 0.5s var(--easing);
}
.service::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(184, 133, 74, 0.06) 100%);
  transition: height 0.5s var(--easing);
  z-index: 0;
}
.service:hover { padding-left: 32px; padding-right: 32px; }
.service:hover::before { height: 100%; }
.service > * { position: relative; z-index: 1; }
.service__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  padding-top: 12px;
}
.service__head {
  grid-column: 2 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.service__head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  transition: color 0.4s var(--easing), transform 0.5s var(--easing);
  color: var(--text);
}
.service:hover .service__head h3 {
  color: var(--accent);
  transform: translateX(12px);
}
.service__plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-mute);
  transition: transform 0.5s var(--easing), color 0.4s var(--easing);
}
.service:hover .service__plus {
  transform: rotate(45deg);
  color: var(--accent);
}
.service__body {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: 1fr clamp(260px, 36%, 420px);
  gap: 36px;
  align-items: start;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--easing), padding-top 0.4s var(--easing);
}
.service.is-open .service__body { max-height: 520px; padding-top: 28px; }
.service.is-open .service__plus { transform: rotate(45deg); color: var(--accent); }
.service.is-open .service__head h3 { color: var(--accent); }
.service__copy { display: flex; flex-direction: column; gap: 16px; }
.service__body p {
  max-width: 660px;
  color: var(--text-dim);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.service__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.service__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--easing);
}
.service.is-open .service__visual img { transform: scale(1.06); }
.service__tags li {
  font-size: 0.78rem;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
}

@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
  .service__num { padding-top: 0; }
}

/* ============ PORTFOLIO ============ */
.portfolio__switcher {
  position: relative;
  max-width: 460px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  isolation: isolate;
}
.pswitch {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.005em;
  transition: color 0.45s var(--easing);
}
.pswitch svg { width: 18px; height: 18px; flex-shrink: 0; }
.pswitch small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-left: 4px;
  transition: color 0.45s var(--easing);
}
.pswitch.is-active { color: var(--bg); }
.pswitch.is-active small { color: rgba(245, 241, 232, 0.75); }
.pswitch__indicator {
  position: absolute;
  top: 6px; bottom: 6px; left: 6px;
  width: calc(50% - 6px);
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.55s var(--easing-snap);
  z-index: 1;
}
.portfolio__switcher[data-active="videos"] .pswitch__indicator { transform: translateX(100%); }

.portfolio__filters {
  max-width: var(--container);
  margin: 0 auto 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing), max-height 0.4s var(--easing);
}
.portfolio__filters.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  pointer-events: none;
}
.filter {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-2);
  background: var(--surface);
  transition: all 0.4s var(--easing);
}
.filter:hover { border-color: var(--text); transform: translateY(-2px); }
.filter.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

/* MASONRY GRID — column-count keeps each photo in its natural aspect ratio */
.portfolio__grid {
  max-width: var(--container);
  margin: 0 auto;
  column-count: 3;
  column-gap: 18px;
  transition: opacity 0.45s var(--easing), filter 0.45s var(--easing);
}
.portfolio__grid.is-fading { opacity: 0; filter: blur(4px); }
@media (max-width: 1100px) { .portfolio__grid { column-count: 3; } }
@media (max-width: 900px)  { .portfolio__grid { column-count: 2; } }
@media (max-width: 560px)  { .portfolio__grid { column-count: 1; } }

.card {
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 18px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.55s var(--easing), border-color 0.5s var(--easing), box-shadow 0.5s var(--easing);
  isolation: isolate;
}
.card:hover {
  border-color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.18);
}
.card.is-hidden { display: none; }

.card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.card__media--video { aspect-ratio: 9 / 16; }
.card__media img, .card__media video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.6s var(--easing), filter 0.6s var(--easing);
  filter: saturate(1) contrast(1);
}
.card__media--video video {
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.card:hover .card__media img,
.card:hover .card__media video { transform: scale(1.06); filter: saturate(1.1) contrast(1.05); }

/* gradient overlay revealed on hover */
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--easing);
  pointer-events: none;
  z-index: 1;
}
.card:hover .card__media::after { opacity: 1; }

/* curtain reveal */
.card[data-anim="reveal"] .card__media::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg);
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 1.1s var(--easing);
  z-index: 3;
}
.card[data-anim="reveal"].is-in .card__media::before { transform: scaleX(0); }

/* play badge for video cards */
.card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(245,241,232,0.9);
  color: var(--text);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--easing), transform 0.5s var(--easing-snap), background 0.4s var(--easing);
  pointer-events: none;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.4);
}
.card__play svg { width: 26px; height: 26px; }
.card:hover .card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.card__media--video .card__play { opacity: 0.85; transform: translate(-50%, -50%) scale(0.95); }
.card__media--video:hover .card__play { background: var(--accent); color: #fff; }

.card__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--easing), opacity 0.4s var(--easing);
}
.card:hover .card__meta { transform: translateY(0); opacity: 1; }
.card__cat {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.card__meta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
}
.card__year {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.portfolio__more { text-align: center; margin-top: 56px; }
.portfolio { position: relative; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--easing), visibility 0.45s var(--easing);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  position: relative;
  width: min(92vw, 1200px);
  height: min(82vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.5s var(--easing-snap), opacity 0.4s var(--easing) 0.05s;
}
.lightbox.is-open .lightbox__stage { transform: scale(1); opacity: 1; }
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  background: #000;
  animation: lbFadeIn 0.4s var(--easing);
}
@keyframes lbFadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
.lightbox__skel {
  width: min(80vw, 900px);
  height: min(60vh, 600px);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 220% 100%;
  animation: lbShimmer 1.2s linear infinite;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lightbox__skel--err { animation: none; background: rgba(255,255,255,0.04); }
@keyframes lbShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s var(--easing), transform 0.4s var(--easing), border-color 0.3s var(--easing);
  z-index: 5;
}
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.lightbox__btn--close { top: 24px; right: 24px; }
.lightbox__btn--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__btn--next:hover { transform: translateY(-50%) scale(1.06); }

.lightbox__counter {
  position: absolute;
  top: 28px; left: 28px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 5;
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: min(90vw, 600px);
}
.lightbox__cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.lightbox__caption strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 700px) {
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__btn--prev { left: 12px; }
  .lightbox__btn--next { right: 12px; }
  .lightbox__btn--close { top: 14px; right: 14px; }
  .lightbox__counter { top: 18px; left: 14px; font-size: 0.7rem; }
  .lightbox__stage { width: 96vw; height: 70vh; }
}

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 300;
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: none; }
}
.cursor__dot {
  position: absolute;
  top: -3px; left: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  transition: width 0.3s var(--easing), height 0.3s var(--easing), opacity 0.3s var(--easing);
}
.cursor__ring {
  position: absolute;
  top: -22px; left: -22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #fff;
  display: grid;
  place-items: center;
  transition: width 0.4s var(--easing), height 0.4s var(--easing), top 0.4s var(--easing), left 0.4s var(--easing), background 0.3s var(--easing), border-color 0.3s var(--easing);
  background: transparent;
}
.cursor__label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
}
.cursor.is-hover .cursor__ring {
  width: 86px; height: 86px;
  top: -43px; left: -43px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-hover .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-pressed .cursor__ring { transform: scale(0.85); }

/* ============ PROCESS ============ */
.process__steps {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.5s var(--easing), transform 0.5s var(--easing);
}
.step:last-child { border-right: none; }
.step:hover { background: var(--surface-2); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 28px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}
.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .process__steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}

/* ============ PRICING ============ */
.pricing { background: var(--bg-2); }
.pricing__tabs {
  max-width: var(--container);
  margin: 0 auto 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  width: fit-content;
}
.ptab {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-2);
  transition: all 0.4s var(--easing);
  white-space: nowrap;
}
.ptab:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.ptab.is-active { color: var(--bg); background: var(--text); }

.pricing__panels {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.ppanel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ppanel.is-active { display: grid; animation: fadeUp 0.6s var(--easing); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.4s var(--easing), border-color 0.4s var(--easing), box-shadow 0.4s var(--easing);
  transform-style: preserve-3d;
  will-change: transform;
}
.plan:hover {
  border-color: var(--text);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.18);
}
.plan--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(184,133,74,0.05) 0%, var(--surface) 100%);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.plan__tier {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 4px 0 8px;
  color: var(--text);
}
.plan header p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}
.plan ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.plan li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  color: var(--text-2);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--easing);
}
.plan:hover li::before { width: 22px; }
.plan footer .btn { width: 100%; justify-content: center; }

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

/* ============ BEHIND THE SCENES ============ */
.behind {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}
.behind__bg {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(184,133,74,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 78%, rgba(194,91,63,0.12) 0%, transparent 55%);
  opacity: 0.7;
  filter: blur(40px);
  animation: bhBgDrift 22s ease-in-out infinite alternate;
}
@keyframes bhBgDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 4%) scale(1.05); }
}

.behind__strip {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: start;
}
.behind__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  will-change: transform;
}

.bcard {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
  isolation: isolate;
  transition: transform 0.55s var(--easing), border-color 0.5s var(--easing), box-shadow 0.5s var(--easing);
}
.bcard:hover { border-color: var(--text); transform: translateY(-4px); box-shadow: 0 30px 60px -25px rgba(0,0,0,0.18); }
.bcard img {
  width: 100%; height: auto;
  display: block;
  transition: transform 1.6s var(--easing), filter 0.6s var(--easing);
  filter: saturate(0.95) contrast(1.02);
}
.bcard:hover img { transform: scale(1.05); filter: saturate(1.08) contrast(1.05); }

.bcard--feature { aspect-ratio: 4 / 5; }
.bcard--feature img { height: 100%; object-fit: cover; }

.bcard::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--easing);
  pointer-events: none;
  z-index: 1;
}
.bcard:hover::after { opacity: 1; }
.bcard figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--easing), opacity 0.4s var(--easing);
  color: #fff;
}
.bcard:hover figcaption { transform: translateY(0); opacity: 1; }
.bcard figcaption span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}
.bcard figcaption strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.behind__quote {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.behind__quote::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(184,133,74,0.6) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.behind__quote span {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
}
.behind__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0;
  color: var(--bg);
}
.behind__quote small {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
  margin-top: 6px;
}

@media (max-width: 1000px) {
  .behind__strip { grid-template-columns: 1fr 1fr; }
  .behind__col--3 { grid-column: span 2; flex-direction: row; }
  .behind__col--3 .bcard { flex: 1; }
}
@media (max-width: 640px) {
  .behind__strip { grid-template-columns: 1fr; }
  .behind__col--3 { grid-column: span 1; flex-direction: column; }
}

/* ============ CLIENTES ============ */
.clients {
  background: var(--bg);
  border-block: 1px solid var(--line);
  padding-bottom: clamp(60px, 9vh, 120px) !important;
}
.clients__marquee {
  margin: -20px calc(-1 * var(--gutter)) clamp(60px, 8vh, 100px);
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.clients__marquee::before,
.clients__marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.clients__marquee::before { left: 0; background: linear-gradient(90deg, var(--surface-2) 0%, transparent 100%); }
.clients__marquee::after { right: 0; background: linear-gradient(270deg, var(--surface-2) 0%, transparent 100%); }
.clients__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: cliMarquee 36s linear infinite;
  width: max-content;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.clients__track i {
  font-style: normal;
  font-size: 0.8em;
  color: var(--accent);
  transform: translateY(-2px);
}
@keyframes cliMarquee {
  to { transform: translateX(-50%); }
}

.clients__stats {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cstat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  position: relative;
  transition: background 0.5s var(--easing);
}
.cstat:last-child { border-right: none; }
.cstat:hover { background: var(--surface-2); }
.cstat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.cstat__plus {
  font-size: 1.5rem;
  color: var(--accent);
  margin-left: 2px;
}
.cstat__label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 12px;
}

@media (max-width: 800px) {
  .clients__stats { grid-template-columns: repeat(2, 1fr); }
  .cstat:nth-child(2) { border-right: none; }
  .cstat:nth-child(1), .cstat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ FAQ ============ */
.faq {
  background: var(--bg-2);
  position: relative;
}
.faq__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq__intro h2 { letter-spacing: -0.025em; margin-bottom: 1.4rem; }
.faq__intro p {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2rem;
}

.faq__list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.faq-item__head {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 28px 0;
  cursor: pointer;
  text-align: left;
  transition: padding 0.5s var(--easing);
}
.faq-item:hover .faq-item__head { padding-left: 12px; }
.faq-item__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  transition: color 0.4s var(--easing);
}
.faq-item__q {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.4s var(--easing);
}
.faq-item:hover .faq-item__q,
.faq-item.is-open .faq-item__q { color: var(--accent); }
.faq-item:hover .faq-item__num,
.faq-item.is-open .faq-item__num { color: var(--accent); }
.faq-item__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.4s var(--easing), border-color 0.4s var(--easing), transform 0.4s var(--easing);
  flex-shrink: 0;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--easing-snap), background 0.4s var(--easing);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-item__icon { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after { background: #fff; }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  padding: 0 56px 0 74px;
  transition: max-height 0.6s var(--easing), padding 0.4s var(--easing);
}
.faq-item.is-open .faq-item__body { max-height: 320px; padding-bottom: 28px; }
.faq-item__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 640px;
}

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq-item__body { padding-left: 56px; padding-right: 0; }
}

/* ============ TESTIMONIALS ============ */
.testimonials__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  margin: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s var(--easing), transform 0.5s var(--easing), box-shadow 0.4s var(--easing);
}
.quote:hover {
  border-color: var(--text);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.15);
}
.quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 24px;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-left: 0;
}
.quote blockquote::before {
  content: "“";
  display: block;
  font-size: 4rem;
  color: var(--accent);
  font-family: var(--font-serif);
  line-height: 0.6;
  margin-bottom: 8px;
  font-style: normal;
}
.quote figcaption {
  display: flex; flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.quote figcaption strong { font-family: var(--font-display); font-weight: 500; color: var(--text); }
.quote figcaption span { font-size: 0.82rem; color: var(--text-mute); }

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

/* ============ CTA BANNER ============ */
.ctabanner {
  padding: clamp(80px, 12vh, 140px) var(--gutter) !important;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(184,133,74,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(194,91,63,0.10) 0%, transparent 50%),
    var(--bg);
  border-block: 1px solid var(--line);
  text-align: center;
}
.ctabanner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.ctabanner__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: var(--text);
}
.ctabanner__title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 8px;
}

/* ============ CONTACT ============ */
.contact__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__info p { color: var(--text-dim); max-width: 480px; margin: 1.6rem 0 2rem; font-size: 1.05rem; }
.contact__list { display: flex; flex-direction: column; gap: 0; margin-bottom: 36px; }
.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list span {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact__list a {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 500;
  transition: color 0.3s var(--easing);
  color: var(--text);
}
.contact__list a:hover { color: var(--accent); }

.contact__social { display: flex; gap: 12px; }
.contact__social a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: all 0.4s var(--easing);
  color: var(--text);
}
.contact__social a svg { width: 18px; height: 18px; }
.contact__social a:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-4px);
}

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; flex-direction: column;
  gap: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.10);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-size: 1.02rem;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.3s var(--easing);
  font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-bottom-color: var(--accent);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%235a544c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; }
.field select option { background: var(--surface); color: var(--text); }

.contact__legal { font-size: 0.78rem; color: var(--text-mute); margin: 8px 0 0; }
.contact__form .btn { align-self: flex-start; margin-top: 8px; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { padding: 28px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ FOOTER ============ */
.footer {
  padding: 80px var(--gutter) 28px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.footer__big-wrap {
  max-width: var(--container);
  margin: 0 auto 60px;
  text-align: center;
}
.footer__big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--text);
}
.footer__big .dot {
  font-size: 0.9em;
  color: var(--accent);
}
.footer__logo {
  display: inline-block;
  height: clamp(80px, 14vw, 200px);
  width: auto;
  margin: 0 auto;
}

.footer__cols {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 48px 0;
  border-block: 1px solid var(--line);
}
.footer__cols h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__cols a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  transition: color 0.3s var(--easing), padding-left 0.3s var(--easing);
}
.footer__cols a:hover { color: var(--accent); padding-left: 6px; }
.footer__cols p { color: var(--text-dim); margin: 0; max-width: 240px; font-size: 0.95rem; }

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.footer__top { color: var(--text); transition: color 0.3s var(--easing); }
.footer__top:hover { color: var(--accent); }

/* CODIGOSS credit chip */
.footer__by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
}
.footer__codigoss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--easing), border-color 0.4s var(--easing), transform 0.4s var(--easing);
  isolation: isolate;
}
.footer__codigoss::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-accent);
  transform: translateX(-101%);
  transition: transform 0.55s var(--easing);
  z-index: -1;
}
.footer__codigoss:hover {
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__codigoss:hover::before { transform: translateX(0); }
.footer__codigoss-mark {
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0;
  transition: color 0.4s var(--easing), transform 0.5s var(--easing);
}
.footer__codigoss:hover .footer__codigoss-mark {
  color: #fff;
  transform: rotate(-10deg) scale(1.1);
}
.footer__codigoss-name {
  background: linear-gradient(180deg, currentColor 0%, currentColor 100%);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--easing);
}

@media (max-width: 800px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ WHATSAPP — submit button + chat widget ============ */
.btn--wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.btn--wa::before {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}
.btn--wa .btn__wa-icon { width: 20px; height: 20px; }
.btn--wa.is-sending { pointer-events: none; opacity: 0.85; }
.btn--wa.is-sending .btn__wa-icon { animation: waSpin 1.2s linear infinite; }
@keyframes waSpin { to { transform: rotate(360deg); } }

/* === WhatsApp Chat Widget === */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
}
.wa-widget > * { pointer-events: auto; }

/* --- Floating action button --- */
.wa-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.35),
    0 14px 50px rgba(0, 0, 0, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  isolation: isolate;
  transition: transform 0.45s var(--easing-snap), box-shadow 0.45s var(--easing);
  opacity: 0;
  transform: translateY(60px) scale(0.5);
}
.is-loaded .wa-fab {
  animation: waFabIn 0.8s var(--easing-snap) 1s forwards;
}
@keyframes waFabIn {
  0%   { opacity: 0; transform: translateY(60px) scale(0.5) rotate(-30deg); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.08) rotate(8deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
.wa-fab:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.55),
    0 20px 60px rgba(0, 0, 0, 0.28),
    inset 0 -2px 6px rgba(0, 0, 0, 0.18);
}
.wa-fab:active { transform: translateY(0) scale(0.96); }
.wa-fab__icon { position: relative; z-index: 2; width: 30px; height: 30px; }

/* Pulse rings */
.wa-fab__pulse, .wa-fab__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.wa-fab__pulse {
  background: #25d366;
  z-index: 0;
  animation: waPulse 2.2s var(--easing) infinite;
}
.wa-fab__halo {
  border: 2px solid rgba(37, 211, 102, 0.5);
  z-index: 0;
  animation: waPulse 2.2s var(--easing) 0.6s infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Notification badge */
.wa-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #ef4444;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
  border: 2px solid #fff;
  animation: badgePop 0.5s var(--easing-snap) 1.6s both;
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.wa-widget.is-open .wa-fab__badge { display: none; }
.wa-widget.is-open .wa-fab__pulse,
.wa-widget.is-open .wa-fab__halo { display: none; }

.wa-fab .wa-fab__icon { transition: transform 0.35s var(--easing-snap); }
.wa-widget.is-open .wa-fab__icon {
  transform: rotate(180deg) scale(0);
}
.wa-widget.is-open .wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
  z-index: 2;
  animation: waXFade 0.35s var(--easing) both;
}
@keyframes waXFade {
  from { opacity: 0; transform: rotate(-90deg) scale(0.5); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}

/* --- Pop-up message bubble (chat preview) --- */
.wa-pop {
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(20px) scale(0.92);
  opacity: 0;
  transition: opacity 0.4s var(--easing), transform 0.5s var(--easing-snap);
  border: 1px solid rgba(0,0,0,0.05);
}
.wa-pop:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.wa-pop[hidden] { display: block !important; pointer-events: none; opacity: 0; }
.wa-widget.is-open .wa-pop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.wa-pop__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}
.wa-pop__close:hover { opacity: 1; background: rgba(255,255,255,0.18); }
.wa-pop__close svg { width: 14px; height: 14px; }

/* Header — branded green WhatsApp top bar */
.wa-pop__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px 16px 18px;
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  color: #fff;
  position: relative;
}
.wa-pop__avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.wa-pop__avatar svg { width: 100%; height: 100%; }
.wa-pop__head-info { display: flex; flex-direction: column; gap: 2px; }
.wa-pop__head-info strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.wa-pop__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  opacity: 0.85;
}
.wa-pop__dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: waDotPulse 1.6s ease infinite;
}
@keyframes waDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Body — chat messages */
.wa-pop__body {
  padding: 22px 18px 16px;
  background:
    repeating-linear-gradient(45deg,
      rgba(37, 211, 102, 0.03) 0 1px,
      transparent 1px 12px),
    #ece5dd;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wa-pop__msg {
  align-self: flex-start;
  max-width: 85%;
  background: #fff;
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-size: 0.92rem;
  line-height: 1.4;
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(6px);
  animation: waMsgIn 0.45s var(--easing-snap) forwards;
}
.wa-pop__msg:nth-child(1) { animation-delay: 0.25s; }
.wa-pop__msg--delay { animation-delay: 1.05s; }

@keyframes waMsgIn {
  to { opacity: 1; transform: translateY(0); }
}

.wa-pop__typing {
  align-self: flex-start;
  background: #fff;
  padding: 12px 14px;
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  display: inline-flex;
  gap: 4px;
  opacity: 0;
  animation: waMsgIn 0.4s var(--easing) 0.7s forwards, waTypingHide 0.3s var(--easing) 1s forwards;
}
.wa-pop__typing span {
  width: 6px; height: 6px;
  background: #75808a;
  border-radius: 50%;
  animation: waTypingDot 1.2s ease infinite;
}
.wa-pop__typing span:nth-child(2) { animation-delay: 0.18s; }
.wa-pop__typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes waTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes waTypingHide {
  to { opacity: 0; height: 0; padding: 0; margin: 0; transform: scale(0); }
}

/* CTA — green WhatsApp button */
.wa-pop__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: background 0.3s var(--easing);
  text-align: center;
}
.wa-pop__cta:hover { background: #128c7e; }
.wa-pop__cta svg { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 600px) {
  .wa-widget { bottom: 16px; right: 16px; gap: 12px; }
  .wa-fab { width: 56px; height: 56px; }
  .wa-fab__icon { width: 26px; height: 26px; }
}

/* ============ ANIMATIONS ============ */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
[data-anim="fade-up"].is-in { opacity: 1; transform: translateY(0); }

[data-anim="words"] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
}
[data-anim="words"].is-in .word {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ NAV RESPONSIVE ============ */
@media (max-width: 950px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
