/* stav, v2. Layout fiel ao Figma a 1920px; abaixo disso escala de forma fluida. */

:root {
  color-scheme: light;
  --bg: #f2eff2;
  --surface: #fff;
  --surface-2: #fcfbfd;
  --ink: #121212;
  --ink-2: #333;
  --ink-3: #595959;
  --heading-ink: #0d0915;
  --line: rgba(0, 0, 0, 0.08);
  --grid-line: rgba(13, 9, 21, 0.04);
  --dot: rgba(0, 0, 0, 0.18);
  --accent: #8a2be2;
  --accent-ink: #fff;
  --accent-hover: #7420c3;
  --accent-link: #5f1ba1;
  --accent-soft: #c39ae9;
  --accent-icon: #d5b4f4;
  --accent-glow: rgba(138, 43, 226, 0.3);
  --accent-glow-strong: rgba(138, 43, 226, 0.45);
  --dark-card: #0d0915;
  --dark-card-border: rgba(255, 255, 255, 0.08);
  --on-dark: #fff;
  --on-dark-2: #c6c0cf;
  --on-dark-muted: #aba2b8;
  --on-dark-line: rgba(255, 255, 255, 0.25);
  --on-dark-icon-line: rgba(255, 255, 255, 0.15);
  --footer-bg: #120d1a;
  --header-bg: rgba(255, 255, 255, 0.55);
  --header-border: rgba(255, 255, 255, 0.7);
  --header-shadow: 0 0 0 1px rgba(13, 9, 21, 0.08), 0 8px 32px rgba(13, 9, 21, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --header-opaque: #faf8fb;
  --dropdown-bg: rgba(255, 255, 255, 0.88);
  --control-bg: rgba(255, 255, 255, 0.32);
  --control-hover: rgba(255, 255, 255, 0.72);
  --logo-filter: none;
  --action-bg: #111;
  --action-ink: #fff;
  --action-hover: #333;
  --outline-border: #b8adbf;
  --input-border: #dedbe3;
  --placeholder: #77717f;
  --focus-ring: #8a2be2;
  --focus-glow: rgba(138, 43, 226, 0.13);
  --error: #b3261e;
  --status-ink: #3d3150;
  --surface-shadow: 0 8px 32px rgba(13, 9, 21, 0.025);
  --toast-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  --button-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  --media-bg: #08060b;
  --lightbox-bg: rgba(5, 3, 10, 0.88);
  --lightbox-muted: #d4cedd;
  --lightbox-control: #211a2c;
  --lightbox-control-hover: #3b2e4d;
  --lightbox-line: rgba(255, 255, 255, 0.35);
  --carousel-side-opacity: 0.4;
  --radius: 20px;
  --grid-size: 64px;
  --neon-filter: hue-rotate(-40deg) saturate(1.05);

  --f-geist: "Geist", system-ui, sans-serif;
  --f-satoshi: "Satoshi", "Geist", system-ui, sans-serif;
  --f-clash: "Clash Display", "Geist", system-ui, sans-serif;
  --f-space: "Space Mono", ui-monospace, monospace;
  --f-spline: "Spline Sans Mono", ui-monospace, monospace;
  --f-pt: "PT Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-scale: 1.28;
  --nav-top: 64px;
  --nav-height: calc(106.2px * var(--nav-scale));
  --header-clearance: calc(var(--nav-top) + var(--nav-height) + 16px);
  --header-content-gap: 26px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0812;
  --surface: #15101f;
  --surface-2: #1c1628;
  --ink: #f2eff6;
  --ink-2: #d7d0e0;
  --ink-3: #a69fb2;
  --heading-ink: #f2eff6;
  --line: rgba(255, 255, 255, 0.08);
  --grid-line: rgba(255, 255, 255, 0.04);
  --dot: rgba(255, 255, 255, 0.32);
  --accent-link: #cda2f5;
  --dark-card: #151021;
  --on-dark: #f2eff6;
  --footer-bg: var(--dark-card);
  --header-bg: rgba(28, 20, 40, 0.55);
  --header-border: rgba(255, 255, 255, 0.10);
  --header-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --header-opaque: #20182e;
  --dropdown-bg: rgba(28, 20, 40, 0.94);
  --control-bg: rgba(255, 255, 255, 0.04);
  --control-hover: rgba(255, 255, 255, 0.10);
  --logo-filter: invert(1);
  --action-bg: #f2eff6;
  --action-ink: #15101f;
  --action-hover: #d7d0e0;
  --outline-border: rgba(255, 255, 255, 0.25);
  --input-border: rgba(255, 255, 255, 0.16);
  --placeholder: #a69fb2;
  --focus-ring: #c39ae9;
  --focus-glow: rgba(195, 154, 233, 0.24);
  --error: #ffaba5;
  --status-ink: #c6c0cf;
  --surface-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --carousel-side-opacity: 0.62;
}

/* Apenas as trocas de tema animam as cores, nunca o primeiro carregamento. */
@media (prefers-reduced-motion: no-preference) {
  html.is-theme-changing,
  html.is-theme-changing body,
  html.is-theme-changing body *:not(.theme-toggle__icon),
  html.is-theme-changing body *::before,
  html.is-theme-changing body *::after {
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-geist);
  color: var(--ink);
  background: var(--bg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
main[id], section[id], .cta[id] { scroll-margin-top: var(--header-clearance); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--action-bg); color: var(--action-ink); padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.skip:focus { top: 16px; }

/* ---------- Nav (card de vidro + dropdown) ---------- */
.nav {
  position: fixed; top: var(--nav-top); left: 64px; z-index: 50;
  width: calc(448px * var(--nav-scale)); max-width: calc(100vw - 32px);
}
.nav__card {
  height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 calc(18px * var(--nav-scale));
  border: 1px solid var(--header-border);
  border-radius: calc(var(--radius) * var(--nav-scale));
  overflow: visible;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--header-shadow);
}
.nav__row {
  width: 100%; padding: calc(18px * var(--nav-scale)) 0;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.nav__logo { display: block; width: calc(140px * var(--nav-scale)); height: calc(44px * var(--nav-scale)); }
.nav__logo img { width: 100%; height: 100%; object-fit: contain; filter: var(--logo-filter); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__logo, .nav__actions { flex-shrink: 0; }

/* ---------- Seletor de idioma ---------- */
.language { position: relative; }
.language__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; min-width: 72px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--control-bg); color: var(--ink); cursor: pointer;
  font: 500 12px/1 var(--f-geist); -webkit-tap-highlight-color: transparent;
}
.language__toggle:hover, .language__toggle[aria-expanded="true"] { background: var(--control-hover); }
.language__popover {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 2;
  width: 172px; padding: 6px; border: 1px solid var(--header-border); border-radius: 16px;
  background: var(--dropdown-bg); color: var(--ink); box-shadow: var(--header-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.language__popover[hidden] { display: none; }
.language__option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; cursor: pointer; text-align: left;
  font: 400 14px/1.4 var(--f-geist);
}
.language__option:hover, .language__option:focus-visible { background: var(--control-hover); }
.language__option[aria-current="true"] { color: var(--accent-link); }
.language__check { visibility: hidden; flex-shrink: 0; }
.language__option[aria-current="true"] .language__check { visibility: visible; }
.theme-toggle {
  position: relative; display: grid; place-items: center; flex: 0 0 44px;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--control-bg); color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background: var(--control-hover); }
.theme-toggle:focus-visible { border-radius: 50%; }
.theme-toggle__icon {
  position: absolute; pointer-events: none;
  transition: transform 250ms var(--ease), opacity 250ms ease;
}
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg); }
.theme-toggle__moon { opacity: 1; transform: rotate(0); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: rotate(0); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg); }
.nav__btn {
  display: flex; align-items: center; gap: calc(10px * var(--nav-scale)); min-height: 44px;
  padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--ink);
  font: 400 calc(16px * var(--nav-scale))/calc(18.2px * var(--nav-scale)) var(--f-clash);
  letter-spacing: calc(-0.56px * var(--nav-scale));
}
.nav__btn-icon {
  display: grid; place-items: center;
  width: calc(34px * var(--nav-scale)); height: calc(34px * var(--nav-scale)); border-radius: 999px;
  background: transparent;
  transition: background-color 0.25s;
}
.nav__btn:hover .nav__btn-icon,
.nav.is-open .nav__btn-icon { background: var(--control-hover); }
.nav__btn-icon img { width: calc(16px * var(--nav-scale)); height: calc(16px * var(--nav-scale)); filter: var(--logo-filter); }

/* abre/fecha animando a altura (grid 0fr -> 1fr) e a opacidade */
.nav__drop {
  display: grid; grid-template-rows: 0fr;
  opacity: 0; visibility: hidden; border-radius: calc(var(--radius) * var(--nav-scale));
  transition: grid-template-rows 0.5s var(--ease), opacity 0.3s, visibility 0s 0.5s;
}
.nav.is-open .nav__drop {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.3s, visibility 0s;
}
.nav__drop-clip { overflow: hidden; min-height: 0; }
.dd {
  margin-top: calc(23px * var(--nav-scale)); height: calc(425px * var(--nav-scale));
  max-height: calc(100svh - var(--nav-top) - var(--nav-height) - 48px);
  padding: calc(8px * var(--nav-scale)) calc(18px * var(--nav-scale)) calc(20px * var(--nav-scale));
  background: var(--dropdown-bg); border: 1px solid var(--header-border);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--header-shadow); border-radius: calc(var(--radius) * var(--nav-scale));
  overflow-y: auto;
}
.dd__link {
  display: block; height: calc(48px * var(--nav-scale)); padding: calc(11px * var(--nav-scale)) 0 calc(2px * var(--nav-scale));
  font: 300 calc(24px * var(--nav-scale))/calc(25.92px * var(--nav-scale)) var(--f-clash);
  letter-spacing: calc(-1.2px * var(--nav-scale)); color: var(--ink);
  white-space: nowrap;
  transition: font-size 0.25s var(--ease), font-weight 0.25s;
}
.dd__link:hover, .dd__link:focus-visible { font-size: calc(28px * var(--nav-scale)); font-weight: 400; }
.dd__label {
  height: calc(48.2px * var(--nav-scale)); padding-top: calc(32.9px * var(--nav-scale)); margin-left: -0.2px;
  font: 400 calc(11px * var(--nav-scale))/calc(14.3px * var(--nav-scale)) var(--f-satoshi);
  letter-spacing: calc(0.44px * var(--nav-scale));
  color: var(--ink-3);
}
.dd__list { padding-top: calc(10px * var(--nav-scale)); }
.dd__social {
  display: block; height: calc(36.2px * var(--nav-scale)); padding-top: calc(8.93px * var(--nav-scale));
  font: 400 calc(14px * var(--nav-scale))/calc(15.12px * var(--nav-scale)) var(--f-satoshi);
  letter-spacing: calc(-0.56px * var(--nav-scale)); color: var(--ink-2);
}
.roll { display: block; width: fit-content; height: calc(17px * var(--nav-scale)); overflow: hidden; white-space: nowrap; }
.roll__in { display: block; transition: transform 0.4s var(--ease); }
.roll__in > span { display: block; height: calc(15.12px * var(--nav-scale)); }
.roll__in > span:last-child { font: 500 calc(14px * var(--nav-scale))/calc(15.12px * var(--nav-scale)) var(--f-geist); }
.dd__social--x .roll__in > span:first-child { font-weight: 500; }
.dd__social--x .roll__in > span:last-child { font: 400 calc(14px * var(--nav-scale))/calc(15.12px * var(--nav-scale)) var(--f-clash); }
.dd__social:hover .roll__in, .dd__social:focus-visible .roll__in { transform: translateY(calc(-15.12px * var(--nav-scale))); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__card, .dd, .language__popover { background: var(--header-opaque); }
}

.email-toast {
  background: var(--dark-card); color: var(--on-dark);
  border: 1px solid var(--dark-card-border); box-shadow: var(--toast-shadow);
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-top) + var(--nav-height) + var(--header-content-gap)) 24px 0; }
.hero__media {
  height: clamp(260px, calc(100svh - 460px), 620px); overflow: hidden; border-radius: var(--radius);
  background: var(--media-bg) url("../assets/hero-poster.jpg") center / cover no-repeat;
}
.hero__img, .cta__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.neon-media, .contact__media img { filter: var(--neon-filter); }
.hero__text {
  margin: 28px 40px 0;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end; gap: 32px 64px; color: var(--ink);
}
.hero__heading { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero__sub { font: 500 14px/1.4 var(--f-satoshi); text-transform: uppercase; }
.hero__title {
  max-width: 13em; text-wrap: balance;
  font: 400 clamp(48px, 4.2vw, 72px)/1.08 var(--f-clash); letter-spacing: -0.02em;
}
.hero__copy { min-width: 0; }
.hero__description { max-width: 56ch; font: 400 16px/1.6 var(--f-geist); color: var(--ink-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; border-radius: 999px;
  transition: background-color 0.25s, transform 0.25s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill--dark {
  height: 48px; padding: 0 28px; border: 1px solid var(--action-ink); background: var(--action-bg); color: var(--action-ink);
  font: 500 14px/14px var(--f-geist); letter-spacing: -0.42px; border-radius: 999px;
}
.pill--dark:hover { background: var(--action-hover); }
.pill--primary, .pill--outline {
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent;
  font: 500 14px/1.4 var(--f-geist);
}
.pill--primary { background: var(--accent); color: var(--accent-ink); }
.pill--primary:hover { background: var(--accent-hover); }
.pill--outline { border-color: var(--outline-border); }
.pill--outline:hover { background: var(--surface); }

/* Um único glifo, com dimensões inteiras e sem escala no SVG. */
.icon-whatsapp { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.contact-card__icon .icon-whatsapp { width: 22px; height: 22px; flex-basis: 22px; }

/* ---------- About ---------- */
.about { position: relative; margin-top: 88px; border-radius: var(--radius); }
.about__inner {
  position: relative; max-width: 1440px; margin: 0 auto; padding: 0 64px;
  display: flex; justify-content: space-between; gap: 120px;
}
.about__title { font: 500 32px/38.4px var(--f-geist); letter-spacing: -1.28px; color: var(--ink-2); white-space: nowrap; }
.about__body { flex: 0 1 800px; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.about__cols { display: flex; gap: 80px; width: 100%; }
.about__col { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.about__col h3 { font: 600 18.08px/21.696px var(--f-geist); letter-spacing: -0.7232px; }
.about__col p { font: 400 16px/22.4px var(--f-geist); letter-spacing: -0.64px; }

/* ---------- Sites por área ---------- */
.feature { margin-top: 64px; padding: 0 64px; }
.feature__card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 96px); color: var(--ink);
}
.feature__img {
  width: 100%; height: auto; border-radius: var(--radius);
}
.feature__content { min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.feature__content h2 { font: 500 clamp(32px, 3.34vw, 48px)/1.2 var(--f-geist); letter-spacing: -0.04em; }
.feature__content p { max-width: 480px; font: 500 16px/21.6px var(--f-geist); letter-spacing: -0.64px; color: var(--ink-3); }
.feature__content .pill { margin-top: 16px; }

/* ---------- News ---------- */
.news, .identidade { margin-top: 88px; padding: 0 56px 0 64px; }
.news__title {
  max-width: 1163px; margin-left: auto; text-align: right;
  font: 400 48px/55.2px var(--f-satoshi); letter-spacing: -2.4px; color: var(--ink);
}
.news__grid { width: min(1800px, 100%); margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.card { display: flex; flex-direction: column; gap: 20px; border-radius: var(--radius); color: var(--ink); }
.card__img {
  display: block; overflow: hidden; border-radius: var(--radius);
}
.card__img img {
  width: 100%; height: auto;
  cursor: zoom-in;
}
.card__date { display: block; margin-bottom: -4px; font: 400 10px/16px var(--f-spline); text-transform: uppercase; }
.card__title { display: block; max-width: 400px; font: 500 18px/22.5px var(--f-geist); letter-spacing: -0.72px; }

/* ---------- Galeria de projetos ---------- */
html.is-lightbox-open, html.is-lightbox-open body { overflow: hidden; overscroll-behavior: none; }
.project-lightbox {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 72px 0 24px; border: 0; background: transparent; color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain;
}
.project-lightbox[open] {
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 16px;
  animation: lightbox-open 220ms var(--ease);
}
.project-lightbox::backdrop {
  background: var(--lightbox-bg);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: lightbox-backdrop 220ms ease;
}
.project-lightbox__figure { flex: 0 0 auto; width: min(1200px, 92vw); margin: 0; }
.project-lightbox__image {
  width: auto; height: auto; max-width: 100%; max-height: min(80vh, calc(100dvh - 260px));
  margin-inline: auto; object-fit: contain; border-radius: 16px;
}
.project-lightbox__caption { display: grid; gap: 8px; margin-top: 16px; text-align: center; justify-items: center; }
.project-lightbox__name { font: 400 12px/1.5 var(--f-spline); text-transform: uppercase; }
.project-lightbox__description { font: 400 16px/1.5 var(--f-geist); color: var(--lightbox-muted); }
.project-lightbox__controls { display: flex; flex: 0 0 auto; gap: 16px; }
.project-lightbox__button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--lightbox-line); border-radius: 50%;
  background: var(--lightbox-control); color: var(--on-dark); cursor: pointer;
  transition: background-color 180ms;
}
.project-lightbox__button:hover { background: var(--lightbox-control-hover); }
.project-lightbox__button:focus-visible { outline-color: var(--on-dark); border-radius: 50%; }
.project-lightbox__close { position: fixed; top: 16px; right: max(16px, 4vw); }
@keyframes lightbox-open { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes lightbox-backdrop { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Identidade visual ---------- */
.identidade__carousel { min-width: 0; }
.identidade__stage {
  --slide-width: calc((100% - 48px) / 2.56);
  --slide-step: calc(89% + 24px);
  position: relative; height: min(64vh, 600px); overflow: hidden;
  touch-action: pan-y pinch-zoom; border-radius: var(--radius);
}
.identidade__slide {
  position: absolute; top: 0; left: 50%; width: var(--slide-width); height: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(calc(-50% + var(--offset) * var(--slide-step))) scale(.78);
  filter: grayscale(.25) brightness(.85);
  transition: transform 600ms var(--ease), opacity 600ms var(--ease), filter 600ms var(--ease), visibility 0s 600ms;
}
.identidade__slide.is-visible {
  opacity: var(--carousel-side-opacity); visibility: visible; pointer-events: auto;
  transition-delay: 0s;
}
.identidade__slide.is-current {
  z-index: 1; opacity: 1; filter: none;
  transform: translateX(-50%) scale(1);
}
.identidade__preview {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.identidade__preview:disabled { cursor: default; }
.identidade__preview img {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: var(--radius); pointer-events: none;
}
.identidade__preview:focus-visible { outline-offset: -4px; border-radius: var(--radius); }
.identidade__controls, .identidade__indicators { display: flex; align-items: center; justify-content: center; }
.identidade__controls { gap: 16px; margin-top: 20px; }
.identidade__arrow, .identidade__indicator {
  display: grid; place-items: center; height: 44px; padding: 0; color: var(--ink); cursor: pointer;
}
.identidade__arrow { width: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.identidade__arrow:hover { background: var(--surface); }
.identidade__indicator { width: 32px; border: 0; border-radius: 16px; background: transparent; }
.identidade__indicator::before { content: ""; width: 14px; height: 3px; border-radius: 16px; background: var(--dot); }
.identidade__indicator[aria-current="true"]::before { width: 22px; background: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .cta.is-pending { opacity: 0; transform: translateY(20px); }
  .cta.is-revealing {
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 4.5vw, 72px); border: 1px solid var(--dark-card-border); border-radius: 28px;
  background: var(--dark-card); color: var(--on-dark);
}
.cta::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 240px; height: 240px; top: -140px; right: -100px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}
.cta__content { min-width: 0; }
.cta__label {
  margin-bottom: 24px; font: 400 11px/1.5 var(--f-spline);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft);
}
.cta__title {
  max-width: 11em; font: 400 clamp(44px, 5vw, 72px)/1.04 var(--f-clash);
  letter-spacing: -0.02em; text-wrap: balance;
}
.cta__description {
  max-width: 44ch; margin-top: 24px;
  font: 400 16px/1.6 var(--f-geist); color: var(--on-dark-2);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta__button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px;
  font: 500 14px/1.4 var(--f-geist); color: var(--on-dark);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cta__button::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--on-dark);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.cta__button svg { flex: 0 0 auto; }
.cta__button--primary { background: var(--accent); color: var(--accent-ink); }
.cta__button--secondary { background: transparent; border-color: var(--on-dark-line); }
.cta__button:focus-visible, .cta__contacts a:focus-visible { outline-color: var(--accent-soft); }
.cta__contacts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 12px;
  font: 400 12px/1.5 var(--f-geist); color: var(--on-dark-muted);
}
.cta__contacts a { display: inline-flex; align-items: center; min-height: 44px; }
.cta__contacts a:hover, .cta__contacts a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.cta__media {
  min-width: 0; aspect-ratio: 1; overflow: hidden; border-radius: 20px;
  background: var(--media-bg) url("../assets/hero-poster.jpg") center / cover no-repeat;
}

@media (hover: hover) {
  .cta__button:hover { transform: translateY(-2px); box-shadow: var(--button-shadow); }
  .cta__button:hover::before { opacity: 0.1; }
}

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-direction: column; gap: 48px; padding: 48px 64px;
  border: 1px solid var(--dark-card-border); border-radius: var(--radius); background: var(--footer-bg);
  color: var(--on-dark);
}
.page-home .footer { margin-top: 64px; }
.footer__lists { display: flex; gap: 48px; }
.footer__col { width: 156px; display: flex; flex-direction: column; gap: 16px; }
.footer__col + .footer__col { width: auto; }
.footer__head { font: 500 12px/14.4px var(--f-geist); letter-spacing: -0.24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 2px; }
.flink {
  position: relative; display: inline-flex; align-items: center; height: 24px; padding: 0 2px;
  font: 400 12px/12px var(--f-space); text-transform: uppercase; white-space: nowrap;
}
.flink::after {
  content: ""; position: absolute; left: 2px; bottom: 0; height: 1px; width: 0; background: var(--on-dark);
  transition: width 0.35s var(--ease);
}
.flink:hover::after, .flink:focus-visible::after { width: calc(100% - 4px); }
.footer__mark {
  align-self: flex-end; width: min(1063px, 70%); height: auto;
  filter: invert(1); object-fit: contain; pointer-events: none;
}

/* ---------- Contato ---------- */
.contact {
  max-width: 1440px; margin: 0 auto;
  padding: calc(var(--nav-top) + var(--nav-height) + var(--header-content-gap)) 64px 0;
}
.contact__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.contact__title { font: 400 clamp(48px, 5vw, 72px)/1.08 var(--f-clash); letter-spacing: -0.03em; color: var(--heading-ink); }
.contact__intro { margin-top: 16px; font: 400 17px/1.6 var(--f-geist); color: var(--ink-3); }
.contact__local { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; text-align: right; font: 400 11px/1.5 var(--f-geist); color: var(--ink-3); }
.contact__clock { font: 400 14px/1.4 var(--f-pt); font-variant-numeric: tabular-nums; color: var(--heading-ink); }
.contact__channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; padding: 32px;
  border: 1px solid var(--dark-card-border); border-radius: 20px; background: var(--dark-card); color: var(--on-dark);
  transition: transform 0.3s var(--ease);
}
.contact-card::before {
  content: ""; position: absolute; z-index: -1; top: -64px; right: -64px; width: 180px; height: 180px; pointer-events: none;
  background: radial-gradient(circle at top right, var(--accent-glow-strong), transparent 70%);
}
.contact-card__top { display: flex; align-items: center; gap: 12px; width: 100%; }
.contact-card__icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid var(--on-dark-icon-line); border-radius: 14px; color: var(--accent-icon); }
.contact-card__label { font: 500 14px/1.5 var(--f-geist); }
.contact-card__arrow { margin-left: auto; flex-shrink: 0; color: var(--accent-icon); }
.contact-card__value { max-width: 100%; margin-top: 32px; font: 500 clamp(24px, 2.7vw, 38px)/1.2 var(--f-satoshi); letter-spacing: -0.035em; }
.contact-card__value--email { font-size: clamp(22px, 2.4vw, 34px); overflow-wrap: anywhere; }
.contact-card__description { max-width: 440px; margin-top: 12px; font: 400 14px/1.6 var(--f-geist); color: var(--on-dark-2); }
.contact-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; border-radius: 20px; }
.contact__instagram { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 8px; width: fit-content; min-height: 44px; margin: 12px 0 28px auto; font: 400 12px/1.5 var(--f-geist); color: var(--ink-3); }
.contact__instagram > span:last-child { color: var(--accent-link); font-weight: 500; }
.contact__instagram:hover > span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.contact__request {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; gap: 32px 64px;
  padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  box-shadow: var(--surface-shadow);
}
.contact__brief { min-width: 0; }
.contact__form-title { font: 500 clamp(28px, 2.5vw, 36px)/1.15 var(--f-satoshi); letter-spacing: -0.04em; color: var(--heading-ink); }
.contact__brief p { max-width: 390px; margin-top: 16px; font: 400 15px/1.7 var(--f-geist); color: var(--ink-3); }
.contact__media { align-self: end; min-width: 0; overflow: hidden; border-radius: 16px; }
.contact__media img { width: 100%; height: auto; }
.form { grid-column: 2; grid-row: 1 / 3; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field label { font: 500 13px/1.5 var(--f-geist); color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid var(--input-border); border-radius: 12px; background: var(--surface-2);
  font: 400 16px/1.5 var(--f-geist); color: var(--heading-ink); outline: none;
  transition: border-color 0.25s;
}
.field select { cursor: pointer; }
.field select:required:invalid { color: var(--placeholder); }
.field option { background: var(--surface-2); color: var(--ink); }
.field textarea { height: 140px; min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--focus-glow); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field__error { font: 500 12px/1.4 var(--f-geist); color: var(--error); }
.form__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 52px; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 500 14px/1.5 var(--f-geist);
  transition: transform 0.25s var(--ease);
}
.btn:focus-visible { outline-color: var(--focus-ring); border-radius: 999px; }
.form__status { font: 400 13px/1.6 var(--f-geist); color: var(--status-ink); overflow-wrap: anywhere; }
.form__status:empty { display: none; }
.form__status a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-link); text-decoration: underline; text-underline-offset: 3px; }
.contact + .footer { margin: 64px 24px 24px; }

@media (hover: hover) {
  .contact-card:hover { transform: translateY(-4px); }
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .about__inner { gap: 48px; padding-inline: 24px; }
  .about__cols { gap: 32px; }
  .news, .identidade { padding: 0 32px; }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .news__title { font-size: 40px; line-height: 1.15; letter-spacing: -2px; }
}

/* Mais espaço para os campos em telas intermediárias. */
@media (max-width: 1000px) {
  .contact { padding-inline: 24px; }
  .contact-card { padding: 24px; }
  .contact__request { gap: 24px 32px; padding: 32px; }
}

/* ---------- Mobile e tablet: uma só régua (--gutter) para tudo ---------- */
@media (max-width: 900px) {
  :root {
    --gutter: 24px; --card-pad: 24px; --rhythm: 64px; --radius: 16px;
    --nav-scale: 1.15; --nav-top: var(--gutter); --nav-height: calc(72px * var(--nav-scale));
    --header-content-gap: 24px;
  }

  /* nav alinhada à margem do conteúdo */
  .nav { left: var(--gutter); max-width: calc(100vw - 2 * var(--gutter)); }
  .nav__card { padding: 0 calc(var(--card-pad) * var(--nav-scale)); }
  .nav__row { padding: 0; align-items: center; }
  .nav__actions { gap: 8px; }
  .nav__logo { width: calc(96px * var(--nav-scale)); height: 44px; }
  .nav__btn { margin-right: calc(-8px * var(--nav-scale)); padding-right: calc(8px * var(--nav-scale)); }
  .dd {
    margin-top: calc(8px * var(--nav-scale)); height: auto;
    max-height: calc(100svh - 2 * var(--gutter) - var(--nav-height) - 10px);
    padding: calc(8px * var(--nav-scale)) calc(var(--card-pad) * var(--nav-scale)) calc(16px * var(--nav-scale));
  }
  .dd__social { height: calc(44px * var(--nav-scale)); padding-top: calc(14px * var(--nav-scale)); }
  .project-lightbox__figure { width: calc(100vw - 32px); }
  .project-lightbox__close { right: 16px; }

  /* hero */
  .hero { padding-inline: var(--gutter); }
  .hero__media { height: clamp(240px, 38svh, 480px); }
  .hero__text { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 24px 0 0; }
  .hero__title { font-size: clamp(36px, 7.4vw, 56px); line-height: 1.1; }
  .hero__description { font-size: 15px; line-height: 1.5; }

  /* about */
  .about { margin-top: var(--rhythm); }
  .about__inner { flex-direction: column; gap: 32px; padding: 0 var(--gutter); }
  .about__title { font-size: clamp(28px, 8vw, 36px); line-height: 1.2; letter-spacing: -0.04em; }
  .about__body { flex: none; }
  .about__cols { flex-direction: row; gap: 24px; }
  .about__col { flex: 1 1 0; }

  /* feature */
  .feature { margin-top: var(--rhythm); padding: 0 var(--gutter); }
  .feature__card { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature__img { height: auto; }
  .feature__content h2 { font-size: clamp(32px, 9vw, 44px); line-height: 1.15; letter-spacing: -0.04em; white-space: normal; }
  .feature__content p { width: auto; max-width: 480px; }

  /* news */
  .news, .identidade { margin-top: var(--rhythm); padding: 0 var(--gutter); }
  .news__title { margin: 0; font-size: clamp(26px, 6.6vw, 34px); line-height: 1.18; letter-spacing: -0.05em; text-align: left; }
  .news__grid { margin-top: 40px; gap: 32px 16px; }
  .card__title { max-width: none; }

  /* cta */
  .cta { margin-top: 48px; scroll-margin-top: calc(var(--gutter) + 96px); }

  /* footer: card com a mesma margem; colunas e marca no fluxo */
  .page-home .footer, .contact + .footer { margin: var(--rhythm) var(--gutter) var(--gutter); }
  .footer { height: auto; display: flex; flex-direction: column; gap: 64px; padding: var(--card-pad); }
  .footer__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__col, .footer__col + .footer__col { width: auto; gap: 8px; }
  .footer__col ul { gap: 0; }
  .flink { height: 44px; margin-left: -2px; }
  .footer__mark { width: 100%; height: auto; aspect-ratio: 1063 / 334.27; }

  /* contato */
  .contact { padding-inline: var(--gutter); }
  .contact__request { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .contact__brief p { max-width: 600px; }
  .form { grid-column: auto; grid-row: auto; }
  .contact__media { grid-row: 3; width: min(100%, 360px); }
  .contact + .footer { margin-top: 48px; }
}

@media (max-width: 768px) {
  .identidade { padding-inline: 16px; }
  .identidade__stage { --slide-width: 72vw; --slide-step: calc(89% + 8px); height: 52vh; }
  .cta { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 24px 24px; border-radius: 20px; }
  .cta__label { margin-bottom: 20px; }
  .cta__title { font-size: clamp(44px, 8.5vw, 64px); }
  .cta__description { margin-top: 20px; }
  .cta__actions { flex-direction: column; gap: 12px; margin-top: 28px; }
  .cta__button { width: 100%; min-height: 52px; }
  .cta__contacts { gap: 0 6px; font-size: 11px; }
  .cta__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --card-pad: 20px; --rhythm: 56px; --header-content-gap: 32px; --grid-size: 40px; }
  .nav { width: auto; max-width: none; right: var(--gutter); }
  .nav__card { padding-inline: 16px; }
  .nav__logo { width: 96px; }
  .nav__actions { gap: 6px; }
  .nav__btn { gap: 3px; }
  .language__toggle { min-width: 44px; padding-inline: 10px; }
  .language__globe { display: none; }
  .about__cols { flex-direction: column; gap: 32px; }
  .news__grid { grid-template-columns: 1fr; }
  .contact__header { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .contact__intro { font-size: 16px; }
  .contact__local { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  .contact__channels { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-card__value { font-size: 30px; }
  .contact-card__value--email { font-size: clamp(21px, 6.5vw, 26px); }
  .contact__instagram { justify-content: flex-start; margin-left: 0; }
  .contact__request { padding: 24px 20px; gap: 28px; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .btn { width: 100%; padding-inline: 18px; gap: 12px; }
}

@media (max-width: 360px) {
  .nav__card { padding-inline: 16px; }
  .nav__logo { width: 96px; }
}

/* toque: sem efeitos que só fazem sentido com hover (ficariam "colados") */
@media (hover: none) {
  .dd__link:hover { font-size: calc(24px * var(--nav-scale)); font-weight: 300; }
  .card:hover .card__img img { transform: none; }
  .pill:hover { transform: none; }
  .dd__social:hover .roll__in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .identidade__slide { transition: none !important; }
  .project-lightbox[open], .project-lightbox::backdrop { animation: none; }
  .hero__media, .cta__media { filter: var(--neon-filter); }
  .hero__media [data-loop-video], .cta__media [data-loop-video] { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
