/**
 * Nexvio — Landing v2 ("athletic"), acabamento arredondado
 * Fundo claro, blocos de cor, cortes diagonais entre as seções e Barlow
 * Condensed em caixa alta; cards, botões e campos com cantos arredondados. CSS escrito à mão, sem build. Arquivo com cache imutável
 * (ver .htaccess): ao alterar o conteúdo, renomeie (style-v4.css etc.).
 */

/* ------------------------------------------------------------------ */
/* Fontes (hospedadas em /fonts, subset latin)                         */
/* ------------------------------------------------------------------ */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
}

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  --ink: #16222f;
  --ink-deep: #0f1822;
  --text: #3d4a59;
  --text-strong: #2b3542;
  --muted: #5f6b78;
  --page: #f2f3f5;
  --surface: #ffffff;
  --surface-dim: #f7f8f9;
  --line: #e4e7eb;
  --line-soft: #f0f1f3;
  --accent: #5c8dc5;
  --accent-light: #7fa8d4;
  --accent-deep: #3a5b80;
  --accent-wash: #eef3f9;
  --sand: #c2b6ac;
  --sand-deep: #ad9e90;
  --on-dark: #c9d3de;
  --on-dark-dim: #9aa8b8;
  --on-blue: #dbe5f1;
  --dark-rule: #2a3a4d;
  --error: #b4533c;
  --placeholder: #8a8f96;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --cut: clamp(32px, 4.5vw, 64px);
  --cut-lg: clamp(40px, 5.5vw, 80px);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-card:
    0 1px 2px rgba(22, 34, 47, 0.05),
    0 10px 30px -12px rgba(22, 34, 47, 0.16);
  --shadow-lift:
    0 2px 4px rgba(22, 34, 47, 0.06),
    0 28px 56px -20px rgba(22, 34, 47, 0.32);
  --shadow-frame: 0 30px 70px -24px rgba(22, 34, 47, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slide: cubic-bezier(0.77, 0, 0.18, 1);
}

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent-deep);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
}

.text-accent {
  color: var(--accent);
}

.tone-accent {
  --tone: var(--accent);
}
.tone-light {
  --tone: var(--accent-light);
}
.tone-sand {
  --tone: var(--sand-deep);
}
.tone-deep {
  --tone: var(--accent-deep);
}
.tone-girova {
  --tone: #6258e8;
}

.eyebrow {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--sand {
  color: var(--sand);
}
.eyebrow--ink {
  color: var(--ink);
}
.eyebrow--light {
  color: var(--accent-light);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Botões                                                              */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-out),
    background-color 0.25s,
    color 0.25s,
    box-shadow 0.3s var(--ease-out),
    filter 0.2s;
}

/* Faixa de brilho que atravessa o botão no hover. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

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

.btn:hover .icon {
  transform: translateX(4px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--sm {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--primary,
.btn--primary:hover {
  color: #ffffff;
}

.btn--primary {
  background: var(--accent);
  box-shadow: 0 8px 20px -10px rgba(58, 91, 128, 0.9);
}

.btn--primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 14px 30px -12px rgba(58, 91, 128, 0.95);
}

.btn--secondary,
.btn--secondary:hover {
  color: var(--ink);
}

.btn--secondary {
  background: var(--sand);
}

.btn--secondary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 30px -14px rgba(22, 34, 47, 0.5);
}

.btn .icon {
  font-size: 0.95em;
}

@media (max-width: 479px) {
  .btn--lg {
    padding: 15px 24px;
    font-size: 16px;
    white-space: normal;
    text-align: center;
  }
}

/* ------------------------------------------------------------------ */
/* Header + menu mobile                                                */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 4px solid var(--accent);
}

/*
 * Grade de 3 colunas com as laterais iguais: o Girova (coluna do meio) fica
 * no centro exato do header. O <nav> usa display: contents para que as duas
 * metades do menu e o Girova virem itens da grade, mantendo a ordem do Tab
 * (Serviços, Processo, Girova, Sobre, Portfolio).
 */
.site-header__inner {
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.site-header__logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__logo img {
  height: 22px;
  width: auto;
  max-width: 100%;
}

.site-nav {
  display: contents;
}

.site-nav__side,
.site-header__cta {
  display: none;
}

.site-nav__side--start {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.site-nav__side--end {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

/* Coluna da direita: Portfolio (fora do desktop), WhatsApp (desktop) e o
   botão do menu. */
.site-header__end {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Portfolio em destaque fora do desktop (no desktop ele está no menu) --- */
.header-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 999px;
  background: rgba(92, 141, 197, 0.2);
  box-shadow: inset 0 0 0 1px rgba(127, 168, 212, 0.7);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

.header-portfolio:hover {
  color: #ffffff;
  background: rgba(92, 141, 197, 0.36);
}

.header-portfolio[aria-current="page"] {
  background: var(--accent);
  box-shadow: none;
}

.header-portfolio:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.header-portfolio .icon {
  display: none;
  font-size: 14px;
}

/* Telas muito estreitas: só o Girova no header; o Portfolio continua em
   destaque no menu. */
@media (max-width: 349px) {
  .header-portfolio {
    display: none;
  }
}

/* --- Girova em destaque (centro do header) --- */
.girova-link {
  --girova: #6258e8;
  --girova-light: #9b8eff;
  grid-column: 2;
  grid-row: 1;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px 6px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(98, 88, 232, 0.42), rgba(155, 142, 255, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(155, 142, 255, 0.7),
    0 0 22px -6px rgba(98, 88, 232, 0.9);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s,
    background-color 0.25s;
}

.girova-link img {
  height: 22px;
  width: auto;
}

/* Brilho que atravessa o botão de tempos em tempos. */
.girova-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: girova-shine 6s var(--ease-out) 1.2s infinite;
}

.girova-link:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px var(--girova-light),
    0 0 30px -4px rgba(124, 111, 255, 1);
}

.girova-link:focus-visible {
  outline: 2px solid var(--girova-light);
  outline-offset: 3px;
}

.girova-link__tag {
  display: none;
  padding: 3px 8px 2px;
  border-radius: 999px;
  background: var(--girova, #6258e8);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes girova-shine {
  0% {
    transform: translateX(-130%);
  }
  22%,
  100% {
    transform: translateX(130%);
  }
}

@media (min-width: 420px) {
  .site-header__logo img {
    height: 26px;
  }

  .girova-link {
    gap: 10px;
    padding: 6px 7px 6px 14px;
  }

  .girova-link img {
    height: 24px;
  }

  .girova-link .girova-link__tag {
    display: inline-block;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-header__end {
    gap: 8px;
  }

  .header-portfolio {
    padding: 7px 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 640px) {
  .header-portfolio {
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .header-portfolio .icon {
    display: inline-block;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent-light);
}

.menu-toggle {
  display: inline-flex;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--accent-light);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 24, 34, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(320px, 85vw);
  height: 100%;
  padding: 14px 24px 28px;
  overflow-y: auto;
  background: var(--ink);
  border-left: 4px solid var(--accent);
  transform: translateX(100%);
  transition: transform 0.25s var(--ease-out);
}

.menu-drawer.is-open {
  transform: none;
}

.menu-drawer__top {
  display: flex;
  justify-content: flex-end;
}

.menu-girova {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(98, 88, 232, 0.4), rgba(155, 142, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(155, 142, 255, 0.6);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
}

.menu-girova:hover {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #9b8eff;
}

.menu-girova img {
  width: 44px;
  height: 44px;
}

.menu-girova strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-girova .girova-link__tag {
  display: inline-block;
}

.menu-girova__text > span {
  color: var(--on-dark);
}

.menu-girova > .icon {
  font-size: 18px;
}

.menu-drawer__featured {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-portfolio {
  background: linear-gradient(120deg, rgba(92, 141, 197, 0.42), rgba(127, 168, 212, 0.12));
  box-shadow: inset 0 0 0 1px rgba(127, 168, 212, 0.65);
}

.menu-portfolio:hover,
.menu-portfolio[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--accent-light);
}

.menu-portfolio__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  font-size: 22px;
}

.menu-drawer__nav {
  display: flex;
  flex-direction: column;
}

.menu-drawer__nav .nav-link {
  padding: 12px 0;
  border-bottom: 2px solid var(--dark-rule);
  font-size: 22px;
}

.menu-drawer__cta {
  margin-top: auto;
}

.menu-drawer__cta p {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--on-dark-dim);
}

@media (min-width: 1080px) {
  .site-header__inner {
    gap: 28px;
  }

  .site-nav__side {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .header-portfolio {
    display: none;
  }

  .girova-link {
    padding: 7px 8px 7px 16px;
  }

  .girova-link img {
    height: 26px;
  }

  .site-header__inner .menu-toggle,
  .menu-overlay,
  .menu-drawer {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Seções: respiro lateral comum                                       */
/* ------------------------------------------------------------------ */
.hero,
.stats,
.services,
.process,
.tech,
.about,
.contact,
.page-hero,
.cases,
.page-cta {
  padding-inline: var(--gutter);
}

#servicos,
#processo,
#sobre,
#contato {
  scroll-margin-top: 80px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero__eyebrow-bar {
  width: 28px;
  height: 4px;
  flex: none;
  border-radius: 99px;
  background: var(--accent);
}

.hero__title {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  animation: nx-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  max-width: 520px;
  margin-bottom: 36px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__tags li {
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .hero {
    padding-block: 88px 120px;
  }
}

@keyframes nx-rise {
  from {
    opacity: 0;
    transform: translateY(28px) skewY(3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Showcase (demonstração do hero) --- */
.showcase-wrap {
  position: relative;
}

/* Bloco de cor atrás do quadro, levemente girado. */
.showcase-wrap__backdrop {
  position: absolute;
  top: 28px;
  bottom: -36px;
  left: 18%;
  right: -16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--accent), var(--accent-deep) 70%);
  rotate: 3deg;
}

/* --tilt-x/--tilt-y vêm do main-v4.js (inclinação 3D que segue o mouse). */
.showcase {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s var(--ease-out);
}

.showcase__tabs {
  display: flex;
  background: var(--ink);
}

.showcase__tab {
  flex: 1;
  padding: 13px 6px;
  border: 0;
  background: transparent;
  color: var(--on-dark-dim);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.showcase__tab:hover {
  color: #ffffff;
}

.showcase__tab[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

.showcase__tab:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
}

.showcase__track {
  height: 3px;
  background: var(--line);
}

.showcase__progress {
  height: 3px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
}

.showcase__stage {
  position: relative;
  height: 300px;
  padding: 22px 20px 18px;
}

.showcase__panel {
  height: 100%;
  animation: nx-fade 0.3s ease-out;
}

@keyframes nx-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sk {
  display: block;
  flex: none;
  border-radius: 99px;
}
.sk--white {
  background: #ffffff;
}
.sk--light {
  background: var(--accent-light);
}
.sk--accent {
  background: var(--accent);
}
.sk--ink {
  background: var(--ink);
}
.sk--ink-soft {
  background: var(--ink);
  opacity: 0.6;
}
.sk--sand {
  background: var(--sand);
}
.sk--line {
  background: var(--line);
}

.sc-landing {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-landing__hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-deep), #2d4766);
}

.sc-landing__cta {
  display: block;
  width: 110px;
  height: 24px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--sand);
}

.sc-landing__blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sc-landing__blocks span {
  height: 54px;
  border-radius: 10px;
  background: var(--page);
  box-shadow: inset 0 3px 0 var(--tone);
}

.sc-landing__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-landing__bar .icon {
  color: var(--accent-light);
}

.sc-site {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-site__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.sc-site__links {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.sc-site__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sc-site__card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 10px;
  background: var(--page);
}

.sc-site__media {
  display: block;
  height: 42px;
  border-radius: 6px;
  background: var(--tone);
}

.sc-site__lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sc-site__caption {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}

.sc-system {
  display: flex;
  gap: 16px;
}

.sc-system__side {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 88px;
  flex: none;
  padding-right: 14px;
  border-right: 2px solid var(--line);
}

.sc-system__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.sc-system__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-system__head span:first-child {
  font-size: 15px;
  color: var(--ink);
}

.sc-system__head span:last-child {
  font-size: 12px;
  color: var(--muted);
}

.sc-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  box-shadow: inset 4px 0 0 var(--line);
  background: var(--surface-dim);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.sc-task[aria-pressed="true"] {
  box-shadow: inset 4px 0 0 var(--accent);
  background: var(--accent-wash);
}

.sc-task__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid var(--sand);
  border-radius: 5px;
  background: #ffffff;
  color: #ffffff;
  font-size: 10px;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.sc-task[aria-pressed="true"] .sc-task__check {
  border-color: var(--accent);
  background: var(--accent);
}

.sc-system__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}

.sc-system__meter {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.sc-system__meter span {
  display: block;
  height: 5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}

/* ------------------------------------------------------------------ */
/* Números                                                             */
/* ------------------------------------------------------------------ */
.stats {
  padding-block: 56px 88px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--dark-rule);
}

.stat {
  padding: 20px 0;
  background: var(--ink);
}

.stat__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-light);
}

.stat__value span {
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}

.stat__label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--on-dark);
}

@media (min-width: 640px) {
  .stats {
    padding-block: 72px 104px;
  }

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

  .stat {
    padding: 16px 28px;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
  }
}

@media (min-width: 1200px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat,
  .stat:nth-child(odd) {
    padding: 8px 28px;
  }

  .stat:first-child {
    padding-left: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Serviços                                                            */
/* ------------------------------------------------------------------ */
.services {
  padding-block: 72px 112px;
}

.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.services__title {
  max-width: 720px;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--ink);
}

.services__intro {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 4px 0 var(--tone),
    var(--shadow-card);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 4px 0 var(--tone),
    var(--shadow-lift);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-card__n {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 0.8;
  color: var(--line);
}

.service-card__time {
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card__time.is-highlight {
  background: var(--accent);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.service-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}

.dash-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dash-list li::before {
  content: "";
  width: 10px;
  height: 4px;
  flex: none;
  margin-top: calc(0.75em - 2px);
  border-radius: 99px;
  background: var(--accent);
}

.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 2px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card__foot > span {
  color: var(--muted);
}

.service-card__foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
}

.service-card__foot a .icon {
  transition: transform 0.3s var(--ease-out);
}

.service-card__foot a:hover .icon {
  transform: translateX(4px);
}

.service-card__foot a:hover {
  color: var(--accent);
}

.service-card__foot .icon {
  font-size: 12px;
}

@media (max-width: 479px) {
  .service-card {
    padding: 28px 24px;
  }
}

/* ------------------------------------------------------------------ */
/* Processo                                                            */
/* ------------------------------------------------------------------ */
.process {
  position: relative;
  padding-block: calc(var(--cut) + 72px);
  background: var(--accent-deep);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.process__title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  color: #ffffff;
}

.process__lead {
  max-width: 560px;
  margin-bottom: 56px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-blue);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1d2c3c, var(--ink) 60%);
  box-shadow:
    inset 0 4px 0 var(--tone),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 48px -24px rgba(8, 14, 22, 0.7);
  transition: transform 0.45s var(--ease-out);
}

.step:hover {
  transform: translateY(-8px);
}

.step.tone-sand {
  --tone: var(--sand);
}

.step__n {
  font-family: var(--font-display);
  font-size: 72px;
  font-style: italic;
  font-weight: 800;
  line-height: 0.85;
  color: var(--tone);
}

.step__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

.step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark);
}

.step__out {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ------------------------------------------------------------------ */
/* Tecnologia                                                          */
/* ------------------------------------------------------------------ */
.tech {
  padding-block: 72px;
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.tech__title {
  margin-bottom: 18px;
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--ink);
}

.tech__lead {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.tech__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tech-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.tech-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--tone);
  color: #ffffff;
  font-size: 18px;
  transition: transform 0.45s var(--ease-out);
}

.tech-card:hover .tech-card__icon {
  transform: rotate(-8deg) scale(1.08);
}

.tech-card__icon.tone-light {
  color: var(--ink);
}

.tech-card__title {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.tech-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

@media (min-width: 640px) {
  .tech {
    padding-block: 104px;
  }
}

/* ------------------------------------------------------------------ */
/* Sobre                                                               */
/* ------------------------------------------------------------------ */
.about {
  padding-block: 0 104px;
}

.about__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about__story {
  padding: clamp(28px, 4vw, 56px);
  background: var(--sand);
}

.about__title {
  margin-bottom: 24px;
  text-wrap: wrap;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.92;
  color: var(--ink);
}

.about__title em {
  color: var(--accent-deep);
}

.about__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.about__text + .about__text {
  margin-top: 16px;
  color: var(--text-strong);
}

.about__principles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--surface);
}

.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 2px solid var(--line-soft);
}

.principle:last-child {
  border-bottom: 0;
}

.principle__n {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.principle__title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.principle__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Contato                                                             */
/* ------------------------------------------------------------------ */
.contact {
  padding-block: calc(var(--cut-lg) + 56px) 104px;
  background: var(--ink);
  clip-path: polygon(0 var(--cut-lg), 100% 0, 100% 100%, 0 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 56px;
  align-items: start;
}

.contact__title {
  margin-bottom: 18px;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 0.92;
  color: #ffffff;
}

.contact__title em {
  color: var(--accent-light);
}

.contact__lead {
  max-width: 460px;
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark);
}

.contact__cta {
  margin-bottom: 32px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--on-dark);
}

.contact__info a {
  color: var(--on-dark);
}

.contact__info a:hover {
  color: #ffffff;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    inset 0 4px 0 var(--accent),
    0 30px 60px -28px rgba(0, 0, 0, 0.6);
  color: var(--ink);
}

.contact-form__badge {
  position: absolute;
  top: -16px;
  right: 24px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.field legend {
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    background-color 0.2s;
}

.field textarea {
  resize: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(92, 141, 197, 0.18);
}

.field__error {
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 16px;
  border: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.25s var(--ease-out);
}

.chip:active {
  transform: scale(0.96);
}

.chip:hover {
  background: var(--line);
}

.chip[aria-pressed="true"] {
  background: var(--accent-deep);
  color: #ffffff;
}

.chip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.chip[aria-pressed="true"]:focus-visible {
  outline-color: var(--accent-deep);
}

.contact-form__sent {
  font-size: 13.5px;
  color: var(--accent-deep);
}

.contact-form__sent:empty {
  display: none;
}

.contact-form__note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 479px) {
  .contact-form {
    padding: 28px 22px;
  }
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
  padding: 32px var(--gutter);
  background: var(--ink-deep);
  border-top: 4px solid var(--accent);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__logo img {
  height: 22px;
  width: auto;
  opacity: 0.9;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__nav a {
  color: var(--on-dark-dim);
}

.site-footer__nav a:hover {
  color: var(--accent-light);
}

.site-footer__copy {
  font-size: 13px;
  color: var(--on-dark-dim);
}

/* ------------------------------------------------------------------ */
/* Portfolio (/portfolio/)                                             */
/* ------------------------------------------------------------------ */
.page-hero {
  padding-block: 56px 72px;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px 64px;
  align-items: end;
}

.page-hero__title {
  font-size: clamp(52px, 7vw, 92px);
  text-wrap: balance;
  animation: none;
}

/* Cada linha do título sobe de dentro de uma "fenda" (overflow escondido).
   O respiro em cima/à direita evita cortar acentos e o itálico. */
.page-hero__line {
  display: block;
  overflow: hidden;
  margin: -0.14em -0.12em 0 0;
  padding: 0.14em 0.12em 0 0;
}

.page-hero__line > span {
  display: block;
  animation: page-hero-line 0.95s var(--ease-out) both;
  animation-delay: calc(var(--in, 0) * 90ms + 80ms);
}

.page-hero__in {
  animation: page-hero-in 0.8s var(--ease-out) both;
  animation-delay: calc(var(--in, 0) * 90ms + 80ms);
}

.case-index li {
  animation: page-hero-in 0.6s var(--ease-out) both;
  animation-delay: calc(420ms + var(--i, 0) * 60ms);
}

@keyframes page-hero-line {
  from {
    transform: translateY(108%) skewY(5deg);
  }
  to {
    transform: none;
  }
}

@keyframes page-hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  padding: 16px 20px 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 4px 0 0 var(--sand-deep),
    var(--shadow-card);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}

.notice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 800;
}

.notice__label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.case-index {
  padding: 24px 28px 12px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow:
    inset 0 4px 0 var(--accent),
    var(--shadow-frame);
}

.case-index__label {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.case-index a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 2px solid var(--dark-rule);
  color: #ffffff;
}

.case-index li:last-child a {
  border-bottom: 0;
}

.case-index__n {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-light);
}

.case-index__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  transition:
    color 0.2s,
    transform 0.35s var(--ease-out);
}

.case-index a:hover .case-index__name {
  transform: translateX(6px);
}

.case-index__type {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-dark-dim);
}

.case-index a:hover .case-index__name {
  color: var(--accent-light);
}

.case-index a:focus-visible {
  outline-color: var(--accent-light);
  outline-offset: 2px;
}

/* --- Projetos --- */
.cases {
  overflow: hidden;
  padding-block: 32px 128px;
}

.cases__list {
  display: flex;
  flex-direction: column;
  gap: 104px;
}

.case {
  display: grid;
  gap: 48px;
  align-items: center;
  scroll-margin-top: 96px;
}

.case__media {
  position: relative;
}

/* Bloco de cor atrás da captura, como o da demonstração do hero da home. */
.case__backdrop {
  position: absolute;
  top: 24px;
  bottom: -28px;
  left: 18%;
  right: -16px;
  border-radius: var(--radius-lg);
  background: var(--tone);
  rotate: 2deg;
}

.case__frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-frame);
}

.case__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--ink);
}

.case__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-rule);
}

.case__bar span:first-child {
  background: var(--tone);
}

.case__bar em {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

.case__zoom {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.case__zoom img {
  width: 100%;
  height: auto;
  transition: transform 0.4s var(--ease-out);
}

.case__zoom:hover img {
  transform: scale(1.02);
}

.case__zoom:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.case__zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 99px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease-out);
}

.case__zoom:hover .case__zoom-hint,
.case__zoom:focus-visible .case__zoom-hint {
  opacity: 1;
  transform: none;
}

/* Sem hover (toque): o aviso fica sempre visível para indicar que dá para ampliar. */
@media (hover: none) {
  .case__zoom-hint {
    opacity: 1;
    transform: none;
  }
}

.case__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.case__n {
  font-family: var(--font-display);
  font-size: 64px;
  font-style: italic;
  font-weight: 800;
  line-height: 0.8;
  color: var(--tone);
}

.case__type {
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
}

.case__segment {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.case__desc {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  text-wrap: pretty;
}

@media (min-width: 960px) {
  .case {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }

  /* Alterna o lado da captura a cada projeto. */
  .case:nth-child(even) .case__media {
    order: 2;
  }

  .case:nth-child(even) .case__backdrop {
    left: -16px;
    right: 18%;
    rotate: -2deg;
  }
}

.case__link {
  margin-top: 28px;
}

/* --- Faixa animada com capturas (decorativa) --- */
.reel {
  overflow: hidden;
  padding-block: calc(var(--cut) + 18px);
  background: var(--ink);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

.reel__row {
  display: flex;
  overflow: hidden;
}

.reel__row + .reel__row {
  margin-top: 14px;
}

/* Duas cópias da mesma sequência: andar -50% fecha o laço sem emenda. */
.reel__track {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
  animation: reel 70s linear infinite;
}

.reel__row--reverse .reel__track {
  animation-direction: reverse;
  animation-duration: 80s;
}

.reel:hover .reel__track {
  animation-play-state: paused;
}

.reel img {
  flex: none;
  width: clamp(168px, 21vw, 288px);
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  opacity: 0.88;
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease-out);
}

.reel img:hover {
  opacity: 1;
  transform: translateY(-4px);
}

@keyframes reel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- Galeria de capturas de cada projeto (carrossel) --- */
.cases--gallery {
  padding-top: 96px;
}

.gallery__stage {
  position: relative;
}

.gallery__stage .case__backdrop {
  bottom: -18px;
}

.gallery__frame {
  overflow: hidden;
}

/* Sem JS: rolagem horizontal com encaixe (dá para arrastar no celular).
   Com JS (.is-ready): o trilho anda por transform, com arrasto e animação. */
.gallery__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--surface-dim);
}

.gallery__viewport::-webkit-scrollbar {
  display: none;
}

.gallery__track {
  display: flex;
  height: 100%;
}

.gallery__slide {
  flex: 0 0 100%;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery__zoom {
  display: block;
  height: 100%;
  cursor: zoom-in;
  -webkit-user-drag: none;
}

.gallery__zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery__zoom:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.gallery.is-ready .gallery__viewport {
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
}

.gallery.is-ready .gallery__track {
  transition: transform 0.9s var(--ease-slide);
}

.gallery.is-dragging .gallery__track {
  transition: none;
}

/* A captura que entra "assenta" (zoom de 1.08 para 1) enquanto o trilho anda. */
.gallery.is-ready .gallery__slide img {
  transform: scale(1.08);
  filter: saturate(0.6) brightness(0.9);
  transition:
    transform 1.3s var(--ease-out),
    filter 0.9s;
}

.gallery.is-ready .gallery__slide.is-active img {
  transform: none;
  filter: none;
}

.gallery__viewport:hover .gallery__hint,
.gallery__viewport:focus-within .gallery__hint {
  opacity: 1;
  transform: none;
}

.gallery.is-dragging .gallery__hint {
  opacity: 0;
}

.gallery__hint {
  pointer-events: none;
}

/* Barra de tempo da troca automática (o fim da animação avança o slide). */
.gallery__progress {
  height: 4px;
  background: var(--line);
}

.gallery__progress span {
  display: block;
  height: 100%;
  background: var(--tone);
  transform: scaleX(0);
  transform-origin: left;
}

.gallery.is-playing .gallery__progress span.is-running {
  animation: gallery-progress var(--gallery-delay, 5.5s) linear forwards;
}

.gallery.is-playing:hover .gallery__progress span,
.gallery.is-playing:focus-within .gallery__progress span,
.gallery.is-offscreen .gallery__progress span {
  animation-play-state: paused;
}

@keyframes gallery-progress {
  to {
    transform: scaleX(1);
  }
}

.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}

.gallery__status {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.gallery__count {
  flex: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.gallery__count b {
  display: inline-block;
  margin-right: 2px;
  font-size: 30px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.gallery__caption {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.gallery__count b.is-changing,
.gallery__caption.is-changing {
  animation: gallery-text 0.55s var(--ease-out);
}

@keyframes gallery-text {
  from {
    opacity: 0;
    transform: translateY(70%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gallery__buttons {
  display: flex;
  flex: none;
  gap: 6px;
}

.gallery__buttons[hidden] {
  display: none;
}

.gallery__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease-out);
}

.gallery__btn:hover {
  background: var(--accent-deep);
}

.gallery__btn:active {
  transform: translateY(1px);
}

.gallery__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery__btn--prev .icon {
  transform: rotate(180deg);
}

.gallery__btn--toggle {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: 14px;
}

.gallery__btn--toggle:hover {
  background: var(--surface);
}

.gallery__btn--toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery__btn--toggle .icon--play,
.gallery.is-playing .gallery__btn--toggle .icon--play,
.gallery:not(.is-playing) .gallery__btn--toggle .icon--pause {
  display: none;
}

.gallery:not(.is-playing) .gallery__btn--toggle .icon--play {
  display: block;
}

.gallery__thumbs {
  display: none;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  margin-top: 14px;
}

.gallery__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--line);
  opacity: 0.5;
  transition:
    opacity 0.3s,
    transform 0.35s var(--ease-out);
}

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

.gallery__thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--tone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.gallery__thumb:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}

.gallery__thumb[aria-current="true"] {
  opacity: 1;
}

.gallery__thumb[aria-current="true"]::after {
  transform: none;
}

.gallery__thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Telas estreitas: legenda embaixo do contador, para não cortar o texto. */
@media (max-width: 559px) {
  .gallery__status {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .gallery__caption {
    max-width: 100%;
    font-size: 13px;
  }
}

@media (min-width: 560px) {
  .gallery__thumbs {
    display: grid;
  }
}

/* --- Entrada dos projetos ao rolar a página ---
   O JS só "arma" (.is-armed) quem ainda está abaixo da dobra, então nada
   some depois de já ter aparecido; sem JS tudo fica visível. */
.case.is-armed .case__backdrop {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.1s var(--ease-slide) 0.05s;
}

.case.is-armed .gallery__frame,
.case.is-armed .gallery__controls,
.case.is-armed .gallery__thumbs,
.case.is-armed .case__body > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease-out,
    transform 0.9s var(--ease-out);
}

.case.is-armed .gallery__frame {
  transform: translateY(56px) scale(0.96);
  transition-delay: 0.2s;
}

.case.is-armed .gallery__controls {
  transition-delay: 0.45s;
}

.case.is-armed .gallery__thumbs {
  transition-delay: 0.55s;
}

.case.is-armed .case__body > :nth-child(1) {
  transition-delay: 0.25s;
}
.case.is-armed .case__body > :nth-child(2) {
  transition-delay: 0.32s;
}
.case.is-armed .case__body > :nth-child(3) {
  transition-delay: 0.39s;
}
.case.is-armed .case__body > :nth-child(4) {
  transition-delay: 0.46s;
}
.case.is-armed .case__body > :nth-child(5) {
  transition-delay: 0.53s;
}
.case.is-armed .case__body > :nth-child(6) {
  transition-delay: 0.6s;
}

.case.is-armed.is-inview .case__backdrop,
.case.is-armed.is-inview .gallery__frame,
.case.is-armed.is-inview .gallery__controls,
.case.is-armed.is-inview .gallery__thumbs,
.case.is-armed.is-inview .case__body > * {
  opacity: 1;
  transform: none;
}

@media (min-width: 960px) {
  .case.is-armed:nth-child(even) .case__backdrop {
    transform-origin: left;
  }
}

/* --- Chamada final --- */
.page-cta {
  padding-block: calc(var(--cut-lg) + 56px) 104px;
  background: var(--ink);
  clip-path: polygon(0 var(--cut-lg), 100% 0, 100% 100%, 0 100%);
}

.page-cta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 8px 56px;
  align-items: end;
}

.page-cta .contact__lead {
  margin-bottom: 0;
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
}

@media (min-width: 960px) {
  .page-cta__actions {
    justify-content: flex-end;
  }
}

/* --- Captura ampliada (<dialog>) --- */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(15, 24, 34, 0.88);
}

.lightbox[open]::backdrop {
  animation: nx-fade 0.3s ease-out;
}

/* Todas as capturas são 16:10 (1440x900): a largura do quadro já garante que
   a imagem caiba na altura da tela, sem sobrar faixa vazia nas laterais. */
.lightbox__frame {
  width: min(1440px, 100%, calc((100vh - 32px - 46px) * 16 / 10));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
  animation: lightbox-in 0.45s var(--ease-out);
}

@supports (height: 100dvh) {
  .lightbox__frame {
    width: min(1440px, 100%, calc((100dvh - 32px - 46px) * 16 / 10));
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lightbox__stage {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
}

.lightbox__img.is-entering {
  animation: lightbox-img 0.5s var(--ease-out);
}

@keyframes lightbox-img {
  from {
    opacity: 0;
    transform: translateX(var(--lightbox-from, 0)) scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lightbox__count {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--on-dark-dim);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(22, 34, 47, 0.86);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}

.lightbox__nav:hover {
  background: var(--accent-deep);
}

.lightbox__nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lightbox__nav--prev {
  right: auto;
  left: 12px;
}

.lightbox__nav--prev .icon {
  transform: rotate(180deg);
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 6px 6px 16px;
  background: var(--ink);
  color: #ffffff;
}

.lightbox__caption {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__note {
  display: none;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

.lightbox__close {
  display: inline-flex;
  margin-left: auto;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

.lightbox__close:hover {
  color: var(--accent-light);
}

.lightbox__close:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -2px;
}

.lightbox__img {
  width: 100%;
  height: auto;
}

@media (min-width: 640px) {
  .page-hero {
    padding-block: 88px 96px;
  }

  .lightbox__note {
    display: block;
  }

  .lightbox__note + .lightbox__close {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Movimento: entradas, brilho dos cards e progresso de leitura        */
/* ------------------------------------------------------------------ */

/* Título do hero palavra a palavra: cada palavra sobe de dentro de uma
   "fenda". O respiro evita cortar acentos e o itálico. */
.hero__title--words {
  animation: none;
}

.hero__title .w {
  display: inline-block;
  overflow: hidden;
  margin: -0.14em -0.08em 0 0;
  padding: 0.14em 0.08em 0 0;
  vertical-align: top;
}

.hero__title .w > span {
  display: inline-block;
  animation: hero-word 0.9s var(--ease-out) both;
  animation-delay: calc(var(--w, 0) * 70ms + 120ms);
}

@keyframes hero-word {
  from {
    transform: translateY(110%) rotate(4deg);
  }
  to {
    transform: none;
  }
}

.hero .hero__eyebrow,
.hero .hero__lead,
.hero .hero__actions,
.hero .hero__tags {
  animation: page-hero-in 0.8s var(--ease-out) both;
}

.hero .hero__lead {
  animation-delay: 0.55s;
}

.hero .hero__actions {
  animation-delay: 0.68s;
}

.hero .hero__tags {
  animation-delay: 0.8s;
}

.showcase-wrap {
  animation: showcase-in 1.1s var(--ease-out) 0.35s both;
}

@keyframes showcase-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.showcase-wrap__backdrop {
  animation: backdrop-float 7s ease-in-out 1.5s infinite;
}

@keyframes backdrop-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: -6px -10px;
  }
}

/* Entrada ao rolar ([data-animate], main-v4.js). Só quem está abaixo da
   dobra é "armado"; ao terminar, as classes saem e o elemento volta às
   próprias transições (hover dos cards etc.). Sem JS, tudo visível. */
[data-animate].is-armed {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.8s ease-out,
    filter 0.8s ease-out,
    transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

[data-animate].is-armed.is-inview {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Brilho que acompanha o cursor dentro do card (--mx/--my, main-v4.js). */
.spotlight {
  position: relative;
  isolation: isolate;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    var(--spotlight, rgba(92, 141, 197, 0.13)),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.spotlight:hover::after {
  opacity: 1;
}

.step.spotlight {
  --spotlight: rgba(127, 168, 212, 0.2);
}

/* Barra de progresso de leitura sob o header (só em navegadores com
   animação ligada à rolagem; nos outros, nada muda). */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-light), #9b8eff);
    transform: scaleX(0);
    transform-origin: left;
    animation: read-progress linear both;
    animation-timeline: scroll(root);
  }

  @keyframes read-progress {
    to {
      transform: scaleX(1);
    }
  }
}

/* ------------------------------------------------------------------ */
/* Movimento reduzido                                                  */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__title,
  .showcase__panel,
  .lightbox__frame,
  .lightbox__img,
  .girova-link::after,
  .page-hero__line > span,
  .page-hero__in,
  .case-index li,
  .reel__track,
  .gallery__count b,
  .gallery__caption,
  .hero__title .w > span,
  .hero .hero__eyebrow,
  .hero .hero__lead,
  .hero .hero__actions,
  .hero .hero__tags,
  .showcase-wrap,
  .showcase-wrap__backdrop,
  .site-header::after {
    animation: none !important;
  }

  .site-header::after,
  .spotlight::after,
  .btn::after {
    display: none;
  }

  .showcase {
    transform: none;
  }

  .gallery.is-ready .gallery__slide img {
    transform: none;
    filter: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
