/* Sistema visual compartilhado — carregar após os estilos de cada página.
 * 1. Ritmo e tipografia  2. Navegação  3. Superfícies
 * 4. Serviços  5. História e planeta  6. Responsividade e movimento
 */
:root {
  --nav-height: 82px;
  --section-space: clamp(64px, 7vw, 108px);
  --section-title: clamp(32px, 3.7vw, 54px);
  --section-dark: #0d0d0d;
  --section-edge: clamp(26px, 3.5vw, 54px);
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: calc(var(--nav-height) + 24px);
}
:is(.agency-page, .portfolio-page, .project-detail-page) :is(h1, h2),
.agency-footer-invite h2 {
  text-transform: uppercase;
  text-wrap: balance;
}
:is(.agency-page, .portfolio-page, .project-detail-page) main h2 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.agency-page .agency-section .section-head h2,
.agency-page .agency-section-heading h2,
.agency-page .lumyx-editorial-copy h2 {
  font-size: var(--section-title);
}
.agency-page main > section:not(:first-child) {
  padding-block: var(--section-space);
}
.agency-page .agency-hero,
.agency-privacy .privacy-hero,
.portfolio-page .portfolio-work:first-child,
.project-detail-page .case-header,
.agency-error-page .error-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-height) + clamp(24px, 5svh, 72px)) clamp(64px, 8svh, 110px);
  border: 0;
  background: radial-gradient(ellipse at 80% 48%, rgba(195, 245, 0, 0.035), transparent 60%);
}
.agency-page .agency-hero h1 {
  font-size: clamp(42px, 4.75vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.agency-page .agency-hero .agency-art {
  height: clamp(280px, 42svh, 450px);
}
.agency-page .agency-orbit {
  filter: none;
}

/* Cabeçalho sem recorte horizontal: o fundo desaparece gradualmente. */
.site-header,
.site-header.scrolled {
  border: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 19, 19, 0.98),
    rgba(19, 19, 19, 0.88) 52%,
    rgba(19, 19, 19, 0)
  );
  backdrop-filter: none;
  padding-bottom: 24px;
  pointer-events: none;
}
.site-header .nav-wrap {
  height: var(--nav-height);
  pointer-events: auto;
}
.nav {
  gap: clamp(18px, 2vw, 28px);
}
.nav-more {
  position: relative;
}
.nav-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 0;
  padding: 0;
  color: #ddd;
  font: inherit;
  background: transparent;
}
.nav-more-toggle:is(:hover, [aria-expanded='true'], [data-current]) {
  color: var(--lime);
}
.nav-more-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  width: 270px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: #1b1e17;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.nav-more-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  width: 13px;
  height: 13px;
  background: #1b1e17;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  transform: rotate(45deg);
}
.nav .nav-more-menu a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px;
  opacity: 1;
  border-radius: 8px;
  text-align: center;
}
.nav .nav-more-menu a:is(:hover, :focus-visible) {
  background: rgba(195, 245, 0, 0.06);
}
:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

/* A cor ocupa toda a seção; somente as extremidades fazem a transição. */
:is(.agency-page, .portfolio-page, .project-detail-page) main > section:not(:first-child),
.project-detail-page #case-body > section {
  border-block: 0;
  background: var(--bg);
}
:is(.agency-page, .portfolio-page, .project-detail-page) main > section:nth-of-type(even),
.project-detail-page #case-body > section:nth-of-type(odd) {
  background-color: var(--section-dark);
  background-image: linear-gradient(
    to bottom,
    var(--bg),
    var(--section-dark) var(--section-edge),
    var(--section-dark) calc(100% - var(--section-edge)),
    var(--bg)
  );
}
.agency-page .agency-services-banner,
.agency-page .lumyx-editorial-figure,
.agency-page .privacy-notice,
.agency-page .privacy-aside {
  border: 0;
  background: linear-gradient(
    135deg,
    rgba(195, 245, 0, 0.055),
    rgba(255, 255, 255, 0.025) 48%,
    transparent
  );
  box-shadow: none;
}
.agency-home .lumyx-project-carousel {
  background: none;
  border: 0;
  box-shadow: none;
  /* Trocar os cards não deve virar uma âncora que reposiciona a página. */
  overflow-anchor: none;
}
.agency-home .lumyx-project-carousel-stage {
  height: clamp(430px, 42vw, 560px);
  touch-action: pan-y;
}
.agency-home .lumyx-project-carousel-hint {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  margin: 12px 0 0;
}

/* Catálogo filtrável; conteúdo e popularidade vêm do Pages CMS. */
.lumyx-service-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.lumyx-service-filter {
  padding: 11px 17px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font:
    600 13px/1.4 Inter,
    sans-serif;
  color: #d0d2cb;
  background: transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.lumyx-service-filter[aria-pressed='true'] {
  color: var(--lime);
  border-color: rgba(195, 245, 0, 0.45);
  background: rgba(195, 245, 0, 0.055);
}
.lumyx-services-count {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.agency-page .agency-service-card {
  position: relative;
}
.agency-page .agency-service-card h3 {
  text-transform: uppercase;
  font-size: clamp(20px, 1.85vw, 26px);
}
.agency-page .agency-service-card.is-most-popular {
  border-color: rgba(195, 245, 0, 0.45);
  background: linear-gradient(145deg, #232720, #171a16 65%, #151615);
}
.agency-page .agency-popular-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  border: 1px solid rgba(195, 245, 0, 0.4);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--lime);
  background: #242b1a;
  font:
    800 10px/1.2 Inter,
    sans-serif;
  letter-spacing: 0.04em;
  transform-origin: center;
  animation: lumyx-popular-pulse 3.2s ease-in-out infinite;
}
.lumyx-popular-star {
  display: inline-block;
  animation: lumyx-popular-star 4.8s ease-in-out infinite;
}
.agency-page .agency-service-card .agency-card-link {
  margin-top: auto;
  align-self: flex-start;
  padding: 13px 17px;
  border: 1px solid rgba(195, 245, 0, 0.55);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(195, 245, 0, 0.035);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  max-width: 100%;
}
.agency-page .agency-service-card .agency-card-link:is(:hover, :focus-visible) {
  background: var(--lime);
  color: var(--bg);
}
.agency-page .agency-service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.5vw, 34px);
}
.agency-page .agency-service-card > p {
  margin-bottom: 28px;
}
.agency-page .agency-editorial-card {
  padding: clamp(28px, 2.3vw, 36px);
  border-radius: 24px;
}
.agency-page .agency-differentials-grid {
  gap: 20px;
}
/* Diferenciais seguem o mesmo container de 1180 px das seções vizinhas. */
.agency-home .home-differentials-section .agency-section-heading {
  max-width: 790px;
  margin-bottom: 32px;
}
.agency-home .home-differentials-section .agency-differentials-grid {
  gap: 28px;
}
.agency-home .home-differentials-section .agency-editorial-card {
  padding: clamp(34px, 2.6vw, 46px);
  min-height: 360px;
  border-radius: 28px;
}
.agency-home .home-differentials-section .agency-editorial-card h3 {
  font-size: clamp(22px, 1.5vw, 26px);
  min-height: 3.69em;
  margin-bottom: 18px;
}
.agency-home .home-differentials-section .agency-editorial-card p {
  font-size: 15px;
  line-height: 1.8;
}
.agency-home .home-differentials-section .agency-differentials-graphic {
  margin-top: 28px;
  height: 112px;
}
@media (max-width: 1300px) {
  .agency-home .home-differentials-section .agency-differentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agency-home .home-differentials-section .agency-editorial-card h3 {
    min-height: 2.46em;
  }
}
@media (max-width: 640px) {
  .agency-home .home-differentials-section .agency-differentials-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .agency-home .home-differentials-section .agency-editorial-card {
    padding: 32px 28px;
    min-height: 300px;
  }
  .agency-home .home-differentials-section .agency-editorial-card h3 {
    min-height: 0;
  }
}

/* Scale e translate independentes preservam as animações de entrada e do carrossel. */
.agency-page :is(.lumyx-story, .agency-team-carousel) {
  overflow-anchor: none;
}
.agency-page :is(.agency-editorial-card, .agency-service-card, .lumyx-pillar-card) {
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    scale 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s,
    box-shadow 0.4s;
}
.agency-page :is(.agency-editorial-card, .agency-service-card) .agency-icon {
  transition:
    scale 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    rotate 0.45s ease,
    background 0.3s;
}
.agency-page :is(.agency-founder-photo, .lumyx-editorial-figure, .agency-team-card-front) img {
  transition: scale 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.agency-page :is(.btn, .lumyx-project-carousel-control, .lumyx-story-arrow, .agency-team-arrow) {
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s,
    scale 0.3s;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .agency-page :is(.agency-editorial-card, .agency-service-card, .lumyx-pillar-card):hover {
    scale: 1.035;
    translate: 0 -4px;
    border-color: rgba(195, 245, 0, 0.55);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
  }
  .agency-services .agency-service-card:hover {
    scale: 1.025;
  }
  .agency-page :is(.agency-editorial-card, .agency-service-card):hover .agency-icon {
    scale: 1.12;
    rotate: -6deg;
    background: rgba(195, 245, 0, 0.09);
  }
  .agency-page
    :is(.agency-founder-photo, .lumyx-editorial-figure, .agency-team-card-front):hover
    img {
    scale: 1.045;
  }
  .agency-page
    :is(.btn, .lumyx-project-carousel-control, .lumyx-story-arrow, .agency-team-arrow):hover {
    scale: 1.055;
  }
  .lumyx-story.is-carousel .lumyx-story-card[data-position='0']:hover {
    scale: 1.025;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
  }
}
.agency-page .agency-service-icon {
  align-self: flex-start;
}
.agency-form select {
  color-scheme: dark;
}
.agency-form-status:empty {
  display: none;
}

.lumyx-planet {
  position: relative;
  text-align: center;
  min-width: 0;
}
.lumyx-planet-art {
  width: min(100%, 560px);
  margin-inline: auto;
}
.lumyx-planet-art :is(svg, img) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.lumyx-planet-caption {
  color: #b8bcaf;
  font-size: 10px;
  letter-spacing: 0.16em;
  margin: -24px 0 12px;
}

@media (max-width: 980px) {
  :root {
    --nav-height: 72px;
  }
  .site-header .nav {
    max-height: calc(100svh - var(--nav-height) - 12px);
    overflow-y: auto;
  }
  .nav-more {
    width: 100%;
  }
  .nav-more-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .nav-more-menu {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    transform: none;
    box-shadow: none;
  }
  .agency-page .agency-hero .agency-art {
    height: clamp(140px, 23svh, 210px);
  }
  .lumyx-planet-art {
    width: min(68vw, 300px);
  }
}
@media (max-width: 640px) {
  :root {
    --section-title: clamp(28px, 7.5vw, 40px);
    --section-space: 64px;
  }
  .agency-page .agency-hero h1 {
    font-size: clamp(34px, 9vw, 54px);
  }
  .agency-page .agency-hero-grid {
    gap: 22px;
  }
  .agency-page .agency-hero .agency-lead {
    font-size: 16px;
    line-height: 1.6;
  }
  .agency-page .agency-hero .agency-actions {
    margin-top: 24px;
  }
  .agency-home .lumyx-hero-signals {
    margin-top: 26px;
  }
  .agency-home .lumyx-project-carousel-stage {
    height: 440px;
  }
  .agency-home .lumyx-project-carousel-hint {
    text-align: center;
  }
  .agency-page .agency-hero .agency-art {
    height: 140px;
  }
  .lumyx-service-filters {
    gap: 8px;
  }
  .lumyx-service-filter {
    padding-inline: 12px;
    font-size: 12px;
  }
  .agency-page .agency-popular-badge {
    top: 15px;
    right: 14px;
    font-size: 9px;
  }
}
@media (max-height: 760px) and (min-width: 951px) {
  .agency-page .agency-hero .agency-art {
    height: 300px;
  }
  .agency-page .agency-hero h1 {
    font-size: clamp(40px, 4.3vw, 64px);
  }
}
/* Prévias legíveis em ambas as pontas do carrossel. */
.agency-home .lumyx-project-carousel-stage {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
}
.agency-home .lumyx-project-carousel-card:is([data-slot='top'], [data-slot='bottom']) {
  opacity: 0.85;
  filter: none;
  background: #1d2018;
  border-color: rgba(255, 255, 255, 0.22);
}
.agency-home .lumyx-project-carousel-card[data-slot='top'] .lumyx-project-carousel-card-copy {
  position: absolute;
  bottom: 48px;
  padding: 14px 20px;
}
.agency-home .lumyx-project-carousel-card[data-slot='bottom'] .lumyx-project-carousel-card-copy {
  position: absolute;
  top: 64px;
  bottom: auto;
  padding: 14px 20px;
}
@keyframes lumyx-popular-pulse {
  0%,
  100% {
    background-color: #242b1a;
    border-color: rgba(195, 245, 0, 0.4);
    transform: translateY(0) scale(1);
  }
  50% {
    background-color: #29321c;
    border-color: rgba(195, 245, 0, 0.85);
    transform: translateY(-3px) scale(1.04);
  }
}
@keyframes lumyx-popular-star {
  0%,
  55%,
  100% {
    transform: rotate(0);
  }
  20%,
  35% {
    transform: rotate(72deg);
  }
}
@media (max-width: 640px) {
  .agency-page .agency-hero .agency-orbit {
    width: 104px;
    max-width: 104px;
  }
  .agency-page .agency-hero .agency-art-caption {
    bottom: -3px;
    font-size: 9px;
  }
  .agency-page .agency-hero .agency-art::before {
    inset: 5% 26%;
  }
  .agency-page .agency-hero .agency-art::after {
    width: 150px;
  }
  .lumyx-planet-art {
    width: min(64vw, 270px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  html.lumyx-motion-ready [data-motion] {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-cursor,
  .cursor-glow {
    display: none !important;
  }
  html.cursor-ready,
  html.cursor-ready *,
  html.cursor-ready *::before,
  html.cursor-ready *::after {
    cursor: auto !important;
  }
}

/* O link de salto aparece apenas ao receber foco do teclado. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 10000;
  padding: 12px 16px;
  color: #131313;
  background: #c3f500;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.privacy-article h2 {
  font-size: clamp(23px, 2.5vw, 32px);
}
