@font-face {
  font-family: 'Project Lora';
  src: url('fonts/project-lora-500.ttf') format('truetype');
  font-display: swap;
  font-weight: 500;
}
@font-face {
  font-family: 'Project Fraunces';
  src: url('fonts/project-fraunces-600.ttf') format('truetype');
  font-display: swap;
  font-weight: 600;
}

:root {
  scroll-behavior: auto;
  --bg: #05070b;
  --ink: #f7f8fb;
  --muted: #aeb4c2;
  --line: rgba(255,255,255,.16);
  --blue: #3f6cff;
  --dark: #05070b;
  --white: #f7f8fb;
}
html, body { overflow-x: clip; }
body { color: var(--ink); background: var(--bg); }
.siteHeader,
.hero,
.services,
.contact { color: var(--ink); background: #05070b; }
.siteHeader { border-color: var(--line); }
.siteHeader .wordmark img { filter: brightness(0) invert(1); }
.siteHeader nav a:not(.headerButton),
.heroFooter > a,
.contact a { color: #fff; }
.heroFooter > p,
.contactLine,
.sectionTitle span { color: var(--muted); }
.hero h1 span,
.servicesIntro h2 span,
.contact h2 span,
.aboutLead span {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(63,108,255,.72), 0 0 32px rgba(63,108,255,.36);
}

.skipLink {
  position: fixed;
  z-index: 10001;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: #0d0f15;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skipLink:focus { transform: none; }
.srOnly {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.services,
.about,
.contact,
footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
.serviceList p {
  font-size: 14px;
  line-height: 1.65;
}

.siteIntro { animation-duration: .65s; animation-delay: 1.35s; }
.introSeen .siteIntro { display: none; }

.menuButton { display: none; }

.caseDetails {
  display: grid;
  grid-template-columns: minmax(110px, .75fr) 1.5fr;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.caseDetails span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}
.caseDetails small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12em;
}

.about {
  padding: 140px 0;
  color: #f7f8fb;
  background: #0d0f15;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.aboutGrid {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) 2fr;
  gap: 60px;
}
.aboutLabel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 12px;
  color: #9ca1ad;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .15em;
}
.aboutLabel i {
  width: 8px;
  height: 8px;
  margin-top: 2px;
  flex: 0 0 auto;
  background: var(--blue);
  border-radius: 50%;
}
.aboutLead {
  margin: 0;
  max-width: 880px;
  font-size: clamp(50px, 6.5vw, 92px);
  font-weight: 560;
  letter-spacing: -.06em;
  line-height: .96;
}
.aboutLead span { color: var(--blue); }
.aboutCopy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 850px;
  margin-top: 58px;
}
.aboutCopy p {
  margin: 0;
  color: #b6bac4;
  font-size: 16px;
  line-height: 1.65;
}
.proofGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.proofGrid div { padding: 28px 20px 0 0; }
.proofGrid strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-space-grotesk);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.05em;
}
.proofGrid span { color: #9297a3; font-size: 12px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* Carrossel cinético de projetos: a estrutura continua semântica e navegável. */
.projects[data-carousel-ready] {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: max(720px, 100svh);
  margin-left: 0;
  padding: clamp(42px, 7vh, 78px) max(20px, calc((100vw - 1240px) / 2)) 0;
  overflow: hidden;
  color: #f7f8fb;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(48, 54, 70, .22), transparent 47%),
    #090b10;
}
.projects[data-carousel-ready]::after {
  position: absolute;
  right: -18%;
  bottom: -18%;
  left: -18%;
  height: 55%;
  border-top: 1px solid rgba(120,145,255,.2);
  background:
    linear-gradient(rgba(111,145,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,145,255,.16) 1px, transparent 1px);
  background-size: 64px 50px;
  content: '';
  pointer-events: none;
  transform: perspective(520px) rotateX(62deg) scaleX(1.14);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%);
}
.projects[data-carousel-ready] .sectionTitle { position: relative; z-index: 3; border-color: rgba(255,255,255,.17); }
.projects[data-carousel-ready] .sectionTitle span { color: #858b98; }
.projectCarouselControls {
  display: none;
  grid-template-columns: 1fr minmax(140px, 300px) auto auto;
  align-items: center;
  gap: 24px;
  margin: 34px 0 24px;
}
.carouselHint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9095a1;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
}
.carouselHint i {
  width: 28px;
  height: 1px;
  background: var(--blue);
}
.carouselProgress {
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}
.carouselProgress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #f7f8fb;
  transform: scaleX(calc(1 / 6));
  transform-origin: left;
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
}
.carouselCounter {
  min-width: 54px;
  color: #a0a5b0;
  font-family: var(--font-space-grotesk);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.carouselButtons { display: flex; gap: 8px; }
.carouselButtons button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: #f7f8fb;
  background: transparent;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, opacity 180ms ease;
}
.carouselButtons button:hover:not(:disabled) { color: #090b10; background: #f7f8fb; }
.carouselButtons button:disabled { cursor: default; opacity: .25; }
.projectCarousel {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-left: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  perspective: none;
}
.projectCarousel::-webkit-scrollbar { display: none; }
.projectCarousel.isDragging,
.projectCarousel.isGliding {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.projectCarousel a,
.projectCarousel img {
  -webkit-user-drag: none;
  user-select: none;
}
.projectCarousel .visit { display: none !important; }
.projectCarouselTrack.projectGrid {
  display: flex;
  width: max-content;
  gap: clamp(1px, .18vw, 3px);
  padding: clamp(68px, 9vh, 90px) max(16px, calc(50vw - min(31vw, 480px))) clamp(90px, 14vh, 140px);
  transform-style: preserve-3d;
}
.projectCarouselTrack .project {
  position: relative;
  z-index: 3;
  width: clamp(620px, 62vw, 960px);
  flex: 0 0 auto;
  scroll-snap-align: none;
  opacity: var(--slide-opacity, .5);
  transition: opacity 180ms linear, filter 320ms cubic-bezier(.22, 1, .36, 1);
}
.projectCarouselTrack .project + .project {
  margin-left: 0;
}
.projectCarouselTrack .project:not(.isActive) { filter: saturate(.78); }
.projectCarouselTrack .project.isActive { filter: saturate(1); }
.projectCarouselTrack .projectVisual {
  overflow: hidden;
  aspect-ratio: 1.72 / 1;
  background: #151821;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  box-shadow: none;
}
.projectCarouselTrack .projectVisual:not(.webgl-ready) {
  transform:
    perspective(1100px)
    translate3d(0, var(--slide-y, 0px), var(--slide-z, 0px))
    rotateY(var(--slide-angle, 0deg))
    scale(var(--slide-scale, 1));
  transform-origin: center center;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), filter 240ms ease;
  will-change: transform;
}
.projectCarouselTrack .projectVisual:not(.webgl-ready):hover {
  filter: brightness(1.08);
  transform:
    perspective(1100px)
    translate3d(0, calc(var(--slide-y, 0px) - 8px), calc(var(--slide-z, 0px) + 34px))
    rotateY(var(--slide-angle, 0deg))
    rotateX(-1.5deg)
    scale(calc(var(--slide-scale, 1) + .018));
}
.webgl-fallback:not(.mobile-carousel) .projectCarouselTrack .projectVisual:not(.webgl-ready) {
  transform:
    perspective(1050px)
    translate3d(0, var(--slide-y, 0px), calc(var(--slide-z, 0px) + var(--hover-z, 0px)))
    rotateX(var(--pointer-rotate-x, 0deg))
    rotateY(calc(var(--slide-angle, 0deg) + var(--pointer-rotate-y, 0deg)))
    scale(var(--slide-scale, 1));
  filter: brightness(var(--slide-brightness, .72));
}
.webgl-fallback:not(.mobile-carousel) .projectCarouselTrack .projectVisual:not(.webgl-ready):hover {
  filter: brightness(1.08);
  transform:
    perspective(1050px)
    translate3d(0, var(--slide-y, 0px), calc(var(--slide-z, 0px) + var(--hover-z, 46px)))
    rotateX(var(--pointer-rotate-x, 0deg))
    rotateY(calc(var(--slide-angle, 0deg) + var(--pointer-rotate-y, 0deg)))
    scale(calc(var(--slide-scale, 1) + .025));
}
.projectCarouselTrack .projectVisual.webgl-ready {
  transform: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.projectCarouselTrack .projectVisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(var(--slide-brightness, .58)) saturate(var(--slide-saturation, .66));
  transition: opacity .5s ease;
  will-change: filter;
}
[data-webgl].webgl-ready img { opacity: 0; }
.is-file-preview [data-webgl] img,
.is-file-preview [data-webgl].webgl-ready img {
  opacity: 1 !important;
}
.is-file-preview .webglLayer { display: none; }
.projectCarouselTrack .projectInfo {
  display: none;
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 16px;
  left: 18px;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0;
  padding: 18px 4px 2px;
  border: 0;
  background: linear-gradient(transparent, rgba(5,7,11,.78));
  pointer-events: none;
}
.projectCarouselTrack .projectInfo > div:last-child { align-self: end; padding-left: 0; text-align: right; }
.projectCarouselTrack .projectInfo > div:first-child { min-width: 0; }
.projectCarouselTrack .projectInfo h2,
.projectCarouselTrack .projectInfo .category { white-space: nowrap; }
.projectCarouselTrack .projectInfo > div:last-child > p:not(.category),
.projectCarouselTrack .caseDetails { display: none; }
.projectCarouselTrack .projectInfo span,
.projectCarouselTrack .projectInfo p { color: #888e9b; }
.projectCarouselTrack .projectInfo .category { color: #f7f8fb; }
.projectCarouselTrack .project h2 {
  color: #f7f8fb;
  font-size: clamp(34px, 4.2vw, 62px);
  transition: color 320ms ease, text-shadow 320ms ease;
}
.projectCarouselTrack .project.isActive h2 {
  color: #6f91ff;
  text-shadow: 0 0 18px rgba(63, 108, 255, .58), 0 0 42px rgba(63, 108, 255, .22);
}
.projectCarousel:focus-visible {
  outline: 2px solid #6f91ff;
  outline-offset: 6px;
}
.projectCarouselTrack .projectVisual:focus-visible {
  outline: 3px solid #6f91ff;
  outline-offset: 4px;
}
.projectCarouselTrack .caseDetails { border-color: rgba(255,255,255,.15); }
.projectCarouselTrack .caseDetails span { color: #d8dbe2; }

.webglLayer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.webglLayer canvas { display: block; width: 100%; height: 100%; }

.projectCursor {
  position: fixed;
  top: -27px;
  left: -27px;
  z-index: 8;
  display: grid;
  width: 54px;
  height: 54px;
  color: #071027;
  background: #6f91ff;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px,-100px,0);
  transition: opacity 180ms ease, scale 220ms cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.projectCursor span { font-size: 18px; transform: translate(-1px,1px); }
.projectCursor.isVisible { opacity: 1; scale: 1; }
.projectCarousel.isDragging + .projectCursor,
.projects:has(.projectCarousel.isDragging) .projectCursor { scale: .78; }

@media (hover: hover) and (pointer: fine) {
  .projectCarouselTrack .projectVisual { cursor: grab; }
  .projectCarousel.isDragging .projectVisual { cursor: grabbing; }
}

.project[data-project-font="agenda"] h2 { font-family: Georgia, 'Times New Roman', serif; }
.project[data-project-font="doce"] h2 { font-family: 'Project Lora', Georgia, serif; font-weight: 500; }
.project[data-project-font="alvexa"] h2 { font-family: var(--font-space-grotesk), Arial, sans-serif; font-weight: 700; }
.project[data-project-font="mimos"] h2 { font-family: 'Project Fraunces', Georgia, serif; font-weight: 600; }
.project[data-project-font="marbogran"] h2 { font-family: 'Times New Roman', Times, serif; }
.project[data-project-font="aurora"] h2 { font-family: var(--font-space-grotesk), Arial, sans-serif; font-weight: 500; }
.project[data-project-font="campo"] h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 400; }
.project[data-project-font="decoracao"] h2 { font-family: var(--font-space-grotesk), Arial, sans-serif; font-weight: 600; }

@media (max-width: 700px) {
  .projects[data-carousel-ready] {
    min-height: 74svh;
    padding: 34px 0 18px;
  }
  .projects[data-carousel-ready]::after { display: none; }
  .projects[data-carousel-ready] .sectionTitle {
    margin: 0 20px 22px;
    padding-bottom: 12px;
  }
  .projects[data-carousel-ready] .sectionTitle span { display: none; }
  .projectCarouselControls {
    grid-template-columns: 1fr auto;
    gap: 18px;
    margin: 26px 0 18px;
  }
  .carouselHint { font-size: 9px; }
  .carouselProgress { grid-column: 1 / -1; grid-row: 2; }
  .carouselCounter { justify-self: end; }
  .carouselButtons { display: none; }
  .projectCarouselTrack.projectGrid {
    gap: 10px;
    padding: 4px 16px 34px;
  }
  .projectCarouselTrack .project {
    width: calc(100vw - 32px);
    margin-left: 0;
    scroll-snap-align: center;
  }
  .projectCarousel { scroll-snap-type: x proximity; }
  .mobile-carousel .projectCarouselTrack .projectVisual:not(.webgl-ready),
  .mobile-carousel .projectCarouselTrack .projectVisual:not(.webgl-ready):hover {
    filter: brightness(var(--slide-brightness, .68)) saturate(var(--slide-saturation, .72));
    transform: scale(var(--mobile-scale, .94));
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1), filter 220ms ease;
  }
  .mobile-carousel .projectCarouselTrack .project {
    opacity: var(--mobile-opacity, .62);
  }
  .projectCarouselTrack .projectInfo {
    right: 14px;
    bottom: 13px;
    left: 14px;
    display: none;
    padding: 42px 0 0;
    background: linear-gradient(to top, rgba(5, 7, 12, .78), transparent);
  }
  .projectCarouselTrack .projectInfo span,
  .projectCarouselTrack .projectInfo > div:last-child { display: none; }
  .projectCarouselTrack .project h2 {
    max-width: 100%;
    font-size: clamp(29px, 9vw, 39px);
    line-height: .92;
    white-space: normal;
    text-wrap: balance;
  }
  .projectCursor { display: none; }
}

/* CTAs finais: duas escolhas rápidas, sem repetir explicações. */
.contactChoices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 680px);
  margin: 42px 0 0 auto;
  gap: 12px;
}
.contactChoice {
  display: flex;
  min-height: 64px;
  padding: 0 22px;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(63,108,255,.24);
}
.contactChoice strong { font-size: 14px; font-weight: 650; }
.contactChoice > b { font-size: 18px; font-weight: 400; transition: transform 180ms ease; }
.contactChoice:hover { background: #315ce8; transform: translateY(-2px); }
.contactChoice:hover > b { transform: translate(3px, -3px); }
.contactChoiceWhatsapp { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); box-shadow: none; }
.contactChoiceWhatsapp:hover { background: rgba(255,255,255,.08); }

@media (max-width: 700px) {
  .contactChoices { grid-template-columns: 1fr; margin-top: 28px; }
  .contactChoice { min-height: 58px; }
}

@media (max-width: 700px) {
  .siteHeader { position: relative; z-index: 100; }
  .siteHeader .wordmark { position: relative; z-index: 2; }
  .siteHeader > nav {
    position: absolute;
    z-index: 1;
    top: 73px;
    left: -14px;
    right: -14px;
    display: flex;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #f0f1f5;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: max-height 260ms ease, opacity 180ms ease, visibility 180ms ease, padding 260ms ease;
  }
  .siteHeader.menuOpen > nav {
    max-height: 360px;
    padding-top: 14px;
    padding-bottom: 22px;
    opacity: 1;
    visibility: visible;
  }
  .siteHeader > nav a:not(.headerButton) {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .siteHeader > nav .headerButton {
    display: flex;
    justify-content: center;
    margin-top: 16px;
  }
  .menuButton {
    display: flex;
    min-width: 54px;
    min-height: 44px;
    margin-left: auto;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 12px;
  }
  .menuButton i, .menuButton i::before {
    display: block;
    width: 15px;
    height: 1px;
    background: currentColor;
    content: '';
    transition: transform 180ms ease;
  }
  .menuButton i::before { transform: translateY(5px); }
  .menuOpen .menuButton i { transform: translateY(2px) rotate(45deg); }
  .menuOpen .menuButton i::before { transform: rotate(-90deg); }

  .hero { min-height: 570px; padding-top: 58px; }
  .hero h1 { margin: 36px 0; font-size: clamp(52px, 16.5vw, 68px); line-height: .9; }
  .heroTag, .sectionTitle p, .sectionTitle span { font-size: 10px; }
  .heroFooter > p { font-size: 16px; line-height: 1.55; }

  .caseDetails { grid-template-columns: 1fr; gap: 13px; }
  .caseDetails span { font-size: 12px; }

  .about { padding: 82px 0; }
  .aboutGrid { grid-template-columns: 1fr; gap: 42px; }
  .aboutLabel { font-size: 10px; }
  .aboutLead { font-size: clamp(44px, 13vw, 58px); }
  .aboutCopy { grid-template-columns: 1fr; gap: 18px; margin-top: 38px; }
  .aboutCopy p { font-size: 16px; }
  .serviceList p { font-size: 16px; }
  .proofGrid { grid-template-columns: 1fr; margin-top: 48px; }
  .proofGrid div { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .proofGrid strong { min-width: 74px; margin: 0; font-size: 36px; }
  .proofGrid span { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .siteIntro { display: none; }
  .projectCarouselTrack .project,
  .projectCarouselTrack .projectVisual img { opacity: 1; transform: none; filter: none; }
  .projectCarouselTrack .project h2 { transition: none; }
}

/* A identidade final usa somente preto, branco e azul nos pontos de ação. */
.headerButton,
.contactLine a {
  color: #fff !important;
  background: var(--blue) !important;
  box-shadow: 0 0 22px rgba(63, 108, 255, .3);
}

@media (max-width: 700px) {
  .siteHeader > nav {
    background: #05070b;
  }
}
