/* ============================================================
   NONO® — HEAD DE IA · PORTFÓLIO AI-FIRST
   editorial suíço · brutalismo tipográfico · off-white + laranja
   ============================================================ */

:root {
  /* paleta: branco, preto e vermelho */
  --paper: #FFFFFF;
  --paper-2: #F4F4F4;
  --panel: #ECECEC;
  --ink: #0A0A0A;
  --ink-soft: rgba(10, 10, 10, 0.62);
  --ink-faint: rgba(10, 10, 10, 0.35);
  --hairline: rgba(10, 10, 10, 0.16);
  --orange: #E31B23; /* vermelho da marca (mantém o nome da variável) */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", monospace;
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
  --pad: clamp(1.4rem, 5vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--paper); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.orange { color: var(--orange); font-style: normal; }
.u { text-decoration: underline; text-underline-offset: 3px; }
a { color: inherit; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor span {
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.cursor span:first-child  { top: 50%; left: 0; width: 100%; height: 1px; }
.cursor span:last-child   { left: 50%; top: 0; height: 100%; width: 1px; }
.cursor.is-hover span { background: var(--orange); }
.cursor.is-hover span:first-child { transform: rotate(45deg); }
.cursor.is-hover span:last-child  { transform: rotate(45deg); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 var(--pad);
  transition: transform 0.9s var(--ease), visibility 0.9s;
}
.loader.done { transform: translateY(-100%); visibility: hidden; }
.loader-row { display: flex; justify-content: space-between; }
.loader-track {
  height: 2px;
  background: var(--hairline);
  overflow: hidden;
}
.loader-fill {
  width: 0%; height: 100%;
  background: var(--orange);
  transition: width 0.25s var(--ease);
}

/* ---------- Índice lateral ---------- */
.side-index {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: right;
}
.idx {
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 0.68rem;
  position: relative;
  display: inline-block;
  transform-origin: bottom center;
  will-change: transform;
  transition: color 0.3s;
}
.idx.active {
  color: var(--ink);
  font-weight: 700;
}
.idx.active::before {
  content: "";
  position: absolute;
  right: -0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 14px;
  background: var(--orange);
}
@media (max-width: 900px) { .side-index { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  height: 58px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-logo sup { font-size: 0.5em; font-weight: 700; }

/* ---------- Logos (versões clara/escura trocam com o tema) ---------- */
.lg-white, .lg-dark { height: 12px; width: auto; display: none; }
.ic-white, .ic-dark { height: 24px; width: auto; display: none; border-radius: 4px; }
.loader-brand .lg-white, .loader-brand .lg-dark { height: 14px; }
.footer-brand .lg-white, .footer-brand .lg-dark { height: 13px; opacity: 0.9; }

/* superfície invertida (fundo escuro no tema claro): notch, footer */
.surface-ink .lg-white, .surface-ink .ic-white { display: inline-block; }
:root[data-theme="dark"] .surface-ink .lg-white,
:root[data-theme="dark"] .surface-ink .ic-white { display: none; }
:root[data-theme="dark"] .surface-ink .lg-dark,
:root[data-theme="dark"] .surface-ink .ic-dark { display: inline-block; }

/* superfície da página (fundo claro no tema claro): loader */
.surface-page .lg-dark, .surface-page .ic-dark { display: inline-block; }
:root[data-theme="dark"] .surface-page .lg-dark,
:root[data-theme="dark"] .surface-page .ic-dark { display: none; }
:root[data-theme="dark"] .surface-page .lg-white,
:root[data-theme="dark"] .surface-page .ic-white { display: inline-block; }

/* ---------- Logo na barra: wordmark inline, sem tarja ---------- */
.notch {
  align-self: center;
  display: flex;
  align-items: center;
  background: none;
}
.notch-top { display: flex; align-items: center; }
.notch .nav-logo { gap: 0; color: var(--ink); transition: color 0.3s; }
.notch .lg-mark { display: block; height: 15px; width: auto; }
/* wordmark escuro sobre página clara; claro sobre o hero e no tema escuro */
:root[data-theme="dark"] .notch .nav-logo,
body.at-hero .notch .nav-logo { color: #FFFFFF; }
/* hover: vermelho da marca, em qualquer contexto */
.notch .nav-logo:hover,
.notch .nav-logo:focus-visible,
:root[data-theme="dark"] .notch .nav-logo:hover,
body.at-hero .notch .nav-logo:hover { color: var(--orange); }

/* ---------- Menu horizontal na barra ---------- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  height: 58px;
  color: var(--ink-soft);
}
.nav-menu a {
  text-decoration: none;
  transition: color 0.25s;
}
.nav-menu a:hover { color: var(--orange); }
@media (max-width: 1200px) { .nav-menu { display: none; } }

.nav-right { display: flex; align-items: center; gap: 1.2rem; height: 58px; }

/* em telas largas o menu horizontal cobre a navegação: só CONTATO fica */
@media (min-width: 1201px) { #navToggle { display: none; } }

/* ---------- Overlay de contato (abre como o menu) ---------- */
.cmodal {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 950;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.cmodal.open { clip-path: inset(0 0 0% 0); }
.cmodal-inner {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px var(--pad) 70px;
}
.cmodal-head {
  display: flex;
  justify-content: space-between;
  color: var(--inv-faint);
  margin-bottom: 1.6rem;
}
.cmodal-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.cmodal .c-form { max-width: 860px; padding-bottom: 0; }
.cmodal .c-form-grid { gap: 1.1rem 2rem; }
.cmodal-foot {
  position: absolute;
  bottom: 1.4rem;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  color: var(--inv-faint);
}
.cmodal-title, .cmodal .c-form, .cmodal-head {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.cmodal.open .cmodal-head { opacity: 1; transform: none; transition-delay: 0.25s; }
.cmodal.open .cmodal-title { opacity: 1; transform: none; transition-delay: 0.32s; }
.cmodal.open .c-form { opacity: 1; transform: none; transition-delay: 0.4s; }
.nav-coord { color: var(--ink-faint); }
.nav-toggle {
  background: none;
  border: 1px solid var(--ink);
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.nav-toggle:hover, .nav-toggle.open {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.menu.open { clip-path: inset(0 0 0% 0); }
.menu-inner { display: flex; flex-direction: column; }
.menu-link {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  text-decoration: none;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--inv-hairline);
  opacity: 0;
  transform: translateY(28px);
  transition: color 0.3s, padding-left 0.4s var(--ease),
              opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.menu.open .menu-link { opacity: 1; transform: none; }
.menu.open .menu-link:nth-child(1) { transition-delay: 0s, 0s, 0.25s, 0.25s; }
.menu.open .menu-link:nth-child(2) { transition-delay: 0s, 0s, 0.31s, 0.31s; }
.menu.open .menu-link:nth-child(3) { transition-delay: 0s, 0s, 0.37s, 0.37s; }
.menu.open .menu-link:nth-child(4) { transition-delay: 0s, 0s, 0.43s, 0.43s; }
.menu.open .menu-link:nth-child(5) { transition-delay: 0s, 0s, 0.49s, 0.49s; }
.menu.open .menu-link:nth-child(6) { transition-delay: 0s, 0s, 0.55s, 0.55s; }
.menu.open .menu-link:nth-child(7) { transition-delay: 0s, 0s, 0.61s, 0.61s; }
.menu.open .menu-link:nth-child(8) { transition-delay: 0s, 0s, 0.67s, 0.67s; }
.menu-link .mono { color: var(--orange); font-size: 0.75rem; }
.menu-link:hover { color: var(--orange); padding-left: 1rem; }
.menu-foot {
  position: absolute;
  bottom: 1.6rem; left: var(--pad); right: var(--pad);
  display: flex;
  justify-content: space-between;
  color: var(--inv-faint);
}

/* ---------- HERO — cinematográfico: vídeo em loop no fundo ---------- */
/* o hero é sempre escuro (é uma cena fotográfica), independente do tema */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 58px;
  background: #060606;
  color: #F5F5F5;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }
/* fallback enquanto o vídeo não carrega: preto com brilho vermelho */
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 75% at 76% 26%, rgba(227, 27, 35, 0.34), transparent 62%),
    radial-gradient(45% 55% at 92% 80%, rgba(227, 27, 35, 0.14), transparent 65%),
    #060606;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* preenche o hero em qualquer proporção de tela; o corte acontece
     pela esquerda (só fundo vazio) — o retrato fica em ~62% da largura,
     então ancorar em 66% mantém o rosto enquadrado até em telas estreitas */
  object-fit: cover;
  object-position: 66% 50%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
/* só o take do tema atual aparece; o outro segue empilhado, invisível */
.hero.has-video .hero-video.hv-on { opacity: 1; }
/* sombra para legibilidade: mais escuro à esquerda e embaixo */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.82) 0%, rgba(4, 4, 4, 0.42) 40%, rgba(4, 4, 4, 0.08) 72%),
    linear-gradient(0deg, rgba(4, 4, 4, 0.85) 0%, transparent 34%),
    linear-gradient(180deg, rgba(4, 4, 4, 0.55) 0%, transparent 24%);
}

.hero-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.2rem, 2.6vh, 2rem);
  padding: clamp(1.4rem, 3.5vh, 2.6rem) var(--pad);
  max-width: min(820px, 94vw);
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
  color: #FFFFFF;
}
.hero-title .line { display: block; }
.hero-title .line i { font-style: normal; }
.hero-sub { color: rgba(255, 255, 255, 0.62); margin-top: 1.1rem; }
.hero-sub .u { text-decoration-color: var(--orange); }

.hero-list {
  list-style: none;
  max-width: 420px;
}
.hero-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: padding-left 0.35s var(--ease), color 0.3s;
}
.hero-list li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.hero-list li:hover { padding-left: 0.8rem; color: var(--orange); }
.pp { color: var(--orange); font-weight: 700; }

.hero-typing { color: rgba(255, 255, 255, 0.55); min-height: 1.3em; }
.caret { color: var(--orange); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Deck de vidro: numeração 01/02 alternando sozinha ---------- */
.hero-deck {
  position: absolute;
  z-index: 2;
  left: clamp(24rem, 38vw, 46rem);
  bottom: clamp(4.5rem, 12vh, 9rem);
  width: min(400px, 82vw);
  min-height: 172px;
}
.hd-card {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1.5rem 3.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.85s var(--ease), opacity 0.85s var(--ease),
              filter 0.85s var(--ease), background 0.85s var(--ease);
}
.hd-card.is-front { transform: none; opacity: 1; filter: none; z-index: 2; }
.hd-card.is-back {
  transform: translate(-34px, 30px) scale(0.94) rotate(-3deg);
  opacity: 0.72;
  filter: blur(0.6px);
  background: rgba(255, 255, 255, 0.16);
  z-index: 1;
}
/* a carta da frente é "jogada" para fora antes de voltar por baixo */
.hd-card.is-front.hd-leave {
  transform: translate(72px, -36px) rotate(6deg);
  opacity: 0;
  transition-duration: 0.45s;
}

/* controles do deck: passador e indicador */
.hd-next {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.hd-next svg { width: 16px; height: 16px; display: block; }
.hd-next:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateX(3px);
}
.hd-dots {
  position: absolute;
  left: 1.5rem;
  bottom: 1.55rem;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.hd-dots span {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.3s;
}
.hd-dots span.on { background: var(--orange); }
.hd-num {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 0.55rem;
}
.hd-card p {
  color: rgba(255, 255, 255, 0.85);
  text-transform: none;
  line-height: 1.7;
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
}
.hero-scroll { cursor: default; }

/* ---------- Nav e índice sobre o hero escuro ---------- */
body.at-hero .nav {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.at-hero .nav-menu { color: rgba(255, 255, 255, 0.72); }
body.at-hero .nav-menu a:hover { color: var(--orange); }
body.at-hero .nav-coord { color: rgba(255, 255, 255, 0.38); }
body.at-hero .nav-right .nav-toggle {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
body.at-hero .nav-right .nav-toggle:hover,
body.at-hero .nav-right .nav-toggle.open {
  background: #FFFFFF;
  color: #0A0A0A;
}
body.at-hero .lang button { color: rgba(255, 255, 255, 0.45); }
body.at-hero .lang button.active { color: var(--orange); }
body.at-hero .side-index .idx { color: rgba(255, 255, 255, 0.32); }
body.at-hero .side-index .idx.active { color: #FFFFFF; }
body.at-hero .progress { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero no tema claro: mesmo take com fundo branco ---------- */
:root[data-theme="light"] .hero {
  background: #FFFFFF;
  color: #0A0A0A;
}
:root[data-theme="light"] .hero-bg::before {
  background:
    radial-gradient(58% 75% at 76% 26%, rgba(227, 27, 35, 0.14), transparent 62%),
    radial-gradient(45% 55% at 92% 80%, rgba(227, 27, 35, 0.07), transparent 65%),
    #FFFFFF;
}
:root[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.45) 40%, rgba(255, 255, 255, 0.06) 72%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.88) 0%, transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 24%);
}
:root[data-theme="light"] .hero-title { color: #0A0A0A; }
:root[data-theme="light"] .hero-sub { color: rgba(10, 10, 10, 0.62); }
:root[data-theme="light"] .hero-list li {
  color: #0A0A0A;
  border-bottom-color: rgba(10, 10, 10, 0.22);
}
:root[data-theme="light"] .hero-list li:first-child { border-top-color: rgba(10, 10, 10, 0.22); }
:root[data-theme="light"] .hero-list li:hover { color: var(--orange); }
:root[data-theme="light"] .hero-typing { color: rgba(10, 10, 10, 0.55); }
:root[data-theme="light"] .hero-foot {
  border-top-color: rgba(10, 10, 10, 0.16);
  color: rgba(10, 10, 10, 0.55);
}
:root[data-theme="light"] .hd-card {
  background: rgba(10, 10, 10, 0.045);
  border-color: rgba(10, 10, 10, 0.14);
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.12);
}
:root[data-theme="light"] .hd-card.is-back { background: rgba(10, 10, 10, 0.10); }
:root[data-theme="light"] .hd-num { color: #0A0A0A; }
:root[data-theme="light"] .hd-card p { color: rgba(10, 10, 10, 0.75); }
:root[data-theme="light"] .hd-next {
  border-color: rgba(10, 10, 10, 0.35);
  background: rgba(10, 10, 10, 0.05);
  color: #0A0A0A;
}
:root[data-theme="light"] .hd-next:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}
:root[data-theme="light"] .hd-dots span { background: rgba(10, 10, 10, 0.25); }

/* nav e índice sobre o hero claro voltam ao visual escuro padrão */
:root[data-theme="light"] body.at-hero .notch .nav-logo { color: var(--ink); }
:root[data-theme="light"] body.at-hero .notch .nav-logo:hover { color: var(--orange); }
:root[data-theme="light"] body.at-hero .nav-menu { color: var(--ink-soft); }
:root[data-theme="light"] body.at-hero .nav-coord { color: var(--ink-faint); }
:root[data-theme="light"] body.at-hero .nav-right .nav-toggle {
  border-color: var(--ink);
  color: var(--ink);
}
:root[data-theme="light"] body.at-hero .nav-right .nav-toggle:hover,
:root[data-theme="light"] body.at-hero .nav-right .nav-toggle.open {
  background: var(--ink);
  color: var(--paper);
}
:root[data-theme="light"] body.at-hero .lang button { color: rgba(10, 10, 10, 0.45); }
:root[data-theme="light"] body.at-hero .lang button.active { color: var(--orange); }
:root[data-theme="light"] body.at-hero .side-index .idx { color: rgba(10, 10, 10, 0.32); }
:root[data-theme="light"] body.at-hero .side-index .idx.active { color: #0A0A0A; }
:root[data-theme="light"] body.at-hero .progress { background: rgba(10, 10, 10, 0.12); }

/* ---------- Faixas cruzadas (marquee físico, como fita impressa) ---------- */
.marquee {
  position: relative;
  background: transparent;
  overflow: hidden;
  padding: 0;
  will-change: transform;
  border-bottom: 1px solid var(--hairline);
}
.ribbons-stage {
  position: relative;
  height: clamp(230px, 26vw, 340px);
}
.ribbon {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  padding: clamp(0.95rem, 1.7vw, 1.4rem) 0;
  overflow: hidden;
  color: #FFFFFF;
}
.ribbon-red {
  background: var(--orange);
  transform: translateY(-88%) rotate(-3.2deg);
  box-shadow: 0 22px 50px rgba(10, 10, 10, 0.35), 0 4px 14px rgba(10, 10, 10, 0.22);
  z-index: 2;
}
.ribbon-ink {
  background: #0E0E0E;
  transform: translateY(-6%) rotate(2.6deg);
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}
/* papel: varredura de brilho + vincos sutis */
.ribbon::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(102deg,
      rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 16%,
      rgba(0, 0, 0, 0.13) 38%, rgba(0, 0, 0, 0) 52%,
      rgba(255, 255, 255, 0.09) 70%, rgba(0, 0, 0, 0.10) 100%);
}
.ribbon::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(85deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 210px);
}
.ribbon-track {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 2.6vw, 2.6rem);
  width: max-content;
  animation: marquee 36s linear infinite;
}
.ribbon-track.rev { animation-direction: reverse; animation-duration: 46s; }

/* unidade de marca: ícone + wordmark + texto em duas linhas + seta */
.rb-unit { display: inline-flex; align-items: center; gap: 0.85rem; }
.rb-mark { height: 24px; width: auto; display: block; }
.rb-name { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.rb-name sup { font-size: 0.5em; font-weight: 700; }
.rb-2l {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
  white-space: nowrap;
}
.rb-go { font-style: normal; font-weight: 700; }
.rb-word {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rb-dot { font-style: normal; font-size: 0.6rem; opacity: 0.75; }
/* acentos: escuros na fita vermelha, vermelhos na fita preta */
.ribbon-red .rb-go, .ribbon-red .rb-dot { color: #0A0A0A; opacity: 1; }
.ribbon-ink .rb-go, .ribbon-ink .rb-dot { color: var(--orange); opacity: 1; }
/* logos de clientes entram aqui quando chegarem: altura fixa, cor via arquivo */
.rb-logo { height: 26px; width: auto; display: block; opacity: 0.95; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section {
  position: relative;
  padding: clamp(5.5rem, 12vw, 10rem) var(--pad);
  border-bottom: 1px solid var(--hairline);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}
.sq { width: 9px; height: 9px; background: var(--orange); display: inline-block; }

.section-head-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
.section-head-row .section-label { margin-bottom: 0; align-self: start; }
.section-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}
.section-note { text-align: right; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 760px) {
  .section-head-row { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; }
  .section-note { text-align: left; }
}

/* ---------- Sobre ---------- */
.sobre { display: grid; grid-template-columns: clamp(60px, 7vw, 120px) 1fr; padding-left: 0; }
.side-word {
  border-right: 1px solid var(--hairline);
  position: relative;
}
.side-word span {
  position: sticky;
  top: 120px;
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 2rem auto 0;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  color: var(--ink-soft);
}
.section-body { padding-left: clamp(2rem, 7vw, 6rem); }
.statement {
  font-size: clamp(1.7rem, 3.8vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 20ch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.strike {
  font-style: normal;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
}
.sobre-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem 2.5rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  max-width: 1000px;
}
.s-num { color: var(--orange); display: block; margin-bottom: 0.7rem; font-weight: 700; }
.s-col p { color: var(--ink-soft); font-size: 0.95rem; }
.sobre-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  max-width: 1000px;
}
.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 2rem 1.6rem 2.4rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat-n { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; }
.stat-x { font-size: 2rem; color: var(--orange); font-family: var(--font-mono); }
.stat-l {
  display: block;
  order: -1;
  flex-basis: 100%;
  color: var(--ink-faint);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
}

/* ---------- Soluções: linhas ---------- */
.rows { border-top: 1px solid var(--hairline); }
.row {
  display: grid;
  grid-template-columns: clamp(60px, 8vw, 120px) minmax(0, 1.1fr) minmax(0, 1.3fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 2.4rem 0.4rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background 0.35s, color 0.35s, padding-left 0.45s var(--ease);
}
.row:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 1.4rem;
}
.row-num {
  color: var(--ink-faint);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.35s;
}
.row:hover .row-num { color: var(--orange); }
.row-title {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.row-desc { color: var(--ink-soft); font-size: 0.92rem; transition: color 0.35s; }
.row:hover .row-desc { color: var(--inv-soft); }
.row-tag { color: var(--ink-faint); white-space: nowrap; transition: color 0.35s; }
.row:hover .row-tag { color: var(--orange); }
.row-arrow {
  font-size: 1.6rem;
  font-weight: 700;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.row:hover .row-arrow { transform: translateX(8px); color: var(--orange); }
@media (max-width: 860px) {
  .row { grid-template-columns: auto 1fr auto; }
  .row-desc, .row-tag { display: none; }
}



/* ---------- Projetos: slider fullscreen ---------- */
.projetos {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--inv-hairline);
  padding: 58px 0 0;
  display: flex;
  flex-direction: column;
}
.proj-slider { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sl-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem var(--pad);
  color: var(--inv-faint);
}
.sl-stage {
  flex: 1;
  display: flex;
  min-height: 420px;
  border-top: 1px solid var(--inv-hairline);
}
.sl-main { flex: 1; position: relative; overflow: hidden; }
.sl-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem var(--pad) 2.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.sl-slide.active { opacity: 1; visibility: visible; }

/* thumb de mídia (vídeo, gif ou imagem) com revelação em cortina */
.sl-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 56%;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.9s var(--ease) 0.1s;
  pointer-events: none;
}
.sl-slide.active .sl-media { clip-path: inset(0 0 0 0); }
.sl-media img, .sl-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-slide.active .sl-media img, .sl-slide.active .sl-media video {
  animation: sl-ken 11s ease-in-out infinite alternate;
}
@keyframes sl-ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.15) translateX(-2%); }
}
.sl-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, transparent 34%),
    linear-gradient(0deg, var(--ink) 0%, transparent 38%);
}

/* conteúdo entra em cascata: kicker, título linha a linha, texto e CTA */
.sl-kicker, .sl-desc, .sl-cta {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.sl-slide.active .sl-kicker { opacity: 1; transform: none; transition-delay: 0.18s; }
.sl-slide.active .sl-desc { opacity: 1; transform: none; transition-delay: 0.42s; }
.sl-slide.active .sl-cta { opacity: 1; transform: none; transition-delay: 0.52s; }
.sl-title .tl { display: block; overflow: hidden; }
.sl-title .tl i {
  display: inline-block;
  font-style: normal;
  transform: translateY(115%);
  transition: transform 0.8s var(--ease);
}
.sl-slide.active .tl:nth-child(1) i { transform: none; transition-delay: 0.24s; }
.sl-slide.active .tl:nth-child(2) i { transform: none; transition-delay: 0.33s; }

.sl-water {
  position: absolute;
  right: 5%;
  top: 48%;
  transform: translateY(-50%);
  font-size: clamp(11rem, 46vh, 26rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--inv-hairline);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 0.25s;
}
.sl-slide.active .sl-water { opacity: 1; }
.sl-info { position: relative; max-width: 46rem; }
.sl-kicker { display: block; color: var(--orange); margin-bottom: 1rem; }
.sl-title {
  font-size: clamp(2.4rem, 9vh, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.sl-desc { color: var(--inv-soft); margin: 0.9rem 0 1.2rem; max-width: 52ch; font-size: 0.95rem; }
.sl-cta { color: var(--orange); font-weight: 700; text-decoration: none; }

/* tiras laterais com os próximos projetos */
.sl-side-rail { display: flex; }
.sl-side {
  width: clamp(78px, 7.5vw, 118px);
  border: 0;
  border-left: 1px solid var(--inv-hairline);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0 1.3rem;
  transition: background 0.3s;
}
.sl-side:hover { background: var(--inv-hairline); }
.sl-side.active { display: none; }
.sl-side-letter { font-size: clamp(1.8rem, 5.5vh, 3rem); font-weight: 900; }
.sl-side-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--inv-faint);
  letter-spacing: 0.14em;
}

/* barra inferior com os itens (como a fileira de serviços da referência) */
.sl-bottom { display: flex; border-top: 1px solid var(--inv-hairline); }
.sl-cell {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid var(--inv-hairline);
  color: var(--paper);
  font-family: var(--font-display);
  padding: 1.1rem 1.4rem 1.3rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  transition: background 0.3s;
}
.sl-cell:hover { background: var(--inv-hairline); }
.sl-cell .mono { color: var(--inv-faint); font-size: 0.62rem; }
.sl-cell strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-cell em { font-style: normal; color: var(--inv-soft); font-size: 0.74rem; }
.sl-cell.active::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  background: var(--orange);
  width: 0;
  animation: sl-progress 5s linear forwards;
}
.proj-slider:hover .sl-cell.active::before { animation-play-state: paused; }
@keyframes sl-progress { to { width: 100%; } }

.sl-next {
  flex: none;
  width: clamp(104px, 9vw, 150px);
  background: none;
  border: 0;
  color: var(--orange);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, letter-spacing 0.3s;
}
.sl-next:hover { background: var(--inv-hairline); letter-spacing: 0.12em; }

html.h-on .projetos { width: 100vw; height: 100vh; overflow: hidden; }

@media (max-width: 860px) {
  .projetos { min-height: 92svh; }
  .sl-side-rail { display: none; }
  .sl-stage { min-height: 380px; }
  .sl-bottom { flex-wrap: wrap; }
  .sl-cell { flex: 1 1 46%; border-bottom: 1px solid var(--inv-hairline); }
  .sl-next { flex: 1 1 100%; padding: 1rem; }
  .sl-water { font-size: 9rem; right: -4%; }
}

/* ---------- Compactação para telas baixas (evita corte no rodapé) ---------- */
@media (min-width: 861px) and (max-height: 930px) {
  html.h-on .hero-main { gap: 1rem; padding: 1.2rem 2rem 0.9rem; }
  html.h-on .fact-num { font-size: 1.3rem; margin-bottom: 0.3rem; }
  html.h-on .hero-facts { gap: 1.2rem; }
  html.h-on .hero-facts p { font-size: 0.66rem; line-height: 1.5; }
  html.h-on .hero-title { font-size: clamp(2rem, 8.5vh, 4.6rem); }
  html.h-on .hero-sub { margin-top: 0.5rem; }
  html.h-on .hero-list li { font-size: clamp(1rem, 2.9vh, 1.7rem); padding: 0.4rem 0; }
  html.h-on .hero-typing { font-size: 0.62rem; }
  html.h-on .hero-foot { padding: 0.6rem var(--pad); }
  html.h-on .section-title { font-size: clamp(1.9rem, 7.4vh, 4.2rem); }
  html.h-on .section-head-row { margin-bottom: 1.2rem; }
  html.h-on .statement { font-size: clamp(1.1rem, 3vh, 2.1rem); margin-bottom: 1.2rem; }
  html.h-on .stat-n { font-size: 2rem; }
  html.h-on .step { padding: 1.2rem 1.2rem 1.5rem; }
  html.h-on .step-big { font-size: clamp(2.4rem, 7vh, 4rem); margin-bottom: 0.7rem; }
  html.h-on .step p { font-size: 0.84rem; }
  html.h-on .quote { padding: 1.2rem 1.2rem; }
  html.h-on .quote-mark { font-size: 2.6rem; margin-bottom: 0.8rem; }
  html.h-on .quote blockquote p { font-size: 0.84rem; }
  html.h-on .contato-giant { font-size: clamp(2.2rem, 8vh, 5rem); }
}

/* ---------- Processo ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.step {
  padding: 2.2rem 1.8rem 2.8rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s;
}
.step:hover { background: var(--paper-2); }
.step-big {
  display: block;
  font-size: clamp(3.4rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: 1.4rem;
}
.step:hover .step-big { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Contato ---------- */
.contato {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) var(--pad) 0;
}
.contato-head {
  display: flex;
  justify-content: space-between;
  color: var(--inv-faint);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--inv-hairline);
}
.contato-giant {
  display: block;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  font-size: clamp(3.2rem, 11vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.contato-giant:hover { color: var(--orange); }
.contato-giant .line { display: block; overflow: hidden; }
.contato-giant .line i { font-style: normal; display: inline-block; }
.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--inv-hairline);
}
.c-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 1.2rem;
  text-decoration: none;
  color: var(--inv-soft);
  border-right: 1px solid var(--inv-hairline);
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.c-cell:last-child { border-right: none; }
.c-cell:hover { background: var(--orange); color: var(--ink); }
.c-cell span { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--inv-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1.4rem var(--pad);
  border-top: 1px solid var(--inv-hairline);
}
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* ---------- Trajetória: rótulos de bloco ---------- */
.block-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 3rem 0 1.4rem;
}
.trajetoria .block-label:first-of-type { margin-top: 0; }

/* Formação reutiliza .rows; ajusta a coluna do número para nomes longos */
.edu-rows .row-num { font-size: 0.7rem; letter-spacing: 0.06em; }
.edu-rows { margin-bottom: 1rem; }

/* ---------- Trajetória: experiência ---------- */
.xp-list { border-top: 1px solid var(--hairline); }
.xp {
  display: grid;
  grid-template-columns: clamp(70px, 8vw, 110px) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 2.2rem 0.4rem;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s, padding-left 0.45s var(--ease);
}
.xp:hover { background: var(--paper-2); padding-left: 1rem; }
.xp-years { color: var(--ink-faint); line-height: 1.7; }
.xp-years b { color: var(--orange); }
.xp-title {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.xp-company { display: block; color: var(--orange); font-weight: 700; margin: 0.45rem 0 0.7rem; }
.xp-body p { color: var(--ink-soft); font-size: 0.92rem; max-width: 68ch; }

/* ---------- Comentários ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.quote {
  position: relative;
  padding: 2.6rem 2rem 2.4rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s;
}
.quote:hover { background: var(--paper-2); }
.quote-mark {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.6;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.quote blockquote p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; }
.quote figcaption { margin-top: 1.6rem; }
.quote figcaption strong {
  display: block;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.quote figcaption .mono { color: var(--ink-faint); }

/* ---------- Formulário de contato (fundo ink) ---------- */
.c-form {
  border-top: 1px solid var(--inv-hairline);
  padding: 2.4rem 0 2.8rem;
}
.c-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2.4rem;
  max-width: 860px;
}
.c-field-full { grid-column: 1 / -1; }
.c-field label {
  display: block;
  color: var(--inv-faint);
  margin-bottom: 0.5rem;
}
.c-field input,
.c-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--inv-faint);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.55rem 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
}
.c-field input:focus,
.c-field textarea:focus { border-color: var(--orange); }
.c-field ::placeholder { color: var(--inv-faint); }
.c-send {
  margin-top: 2rem;
  background: var(--orange);
  color: var(--ink);
  border: 0;
  padding: 1rem 2.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.c-send:hover { background: var(--paper); transform: translateY(-2px); }
@media (max-width: 700px) { .c-form-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas de projeto (cases) ---------- */
.case-hero {
  padding: calc(58px + clamp(3rem, 8vw, 6rem)) var(--pad) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--hairline);
}
.case-kicker { margin-bottom: 1.6rem; }
.case-title {
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}
.case-sub {
  margin-top: 1.6rem;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.8;
}
.case-cover {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  min-height: clamp(240px, 42vw, 460px);
  background:
    radial-gradient(circle at 1px 1px, var(--ink-faint) 1px, transparent 1.6px) 0 0/22px 22px,
    var(--panel);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.case-cover span {
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.case-tags .tag {
  border: 1px solid var(--ink);
  padding: 0.4rem 0.9rem;
  font-weight: 700;
}
.case-block {
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.case-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.case-block-body p { color: var(--ink-soft); margin-bottom: 1.1rem; line-height: 1.75; }
.case-check {
  list-style: none;
  margin-top: 1.4rem;
  border-top: 1px solid var(--hairline);
}
.case-check li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.case-check .sq { flex: none; transform: translateY(-1px); }
@media (max-width: 860px) { .case-block { grid-template-columns: 1fr; } }

.case-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.6rem var(--pad);
  border-bottom: 1px solid var(--hairline);
}
.case-nav a { text-decoration: none; font-weight: 700; }
.case-nav a:hover { color: var(--orange); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Barra de progresso ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Split text (reveal letra a letra) ---------- */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split .ch {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s var(--ease);
  transition-delay: calc(var(--lb, 0s) + var(--ci, 0) * 0.026s);
}
.split.visible .ch { transform: none; }

/* ---------- Statement: pinta palavra a palavra no scroll ---------- */
.statement .wd { color: var(--ink-faint); transition: color 0.3s linear; }
.statement .wd.on { color: var(--ink); }
.statement .strike.wd.on { color: var(--ink-faint); }
.statement .orange.wd.on { color: var(--orange); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  /* o deck sai da posição flutuante e entra no fluxo, abaixo do conteúdo */
  .hero-deck {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 1.6rem var(--pad) 2.4rem;
    width: min(400px, calc(100vw - 2 * var(--pad)));
  }
}
@media (max-width: 760px) {
  .hero-foot { flex-wrap: wrap; }
  .sobre { grid-template-columns: 1fr; }
  .side-word { display: none; }
  .section-body { padding-left: 0; }
  .contato-head { flex-direction: column; gap: 0.4rem; }
}

/* ============================================================
   MAGIC BENTO — brilho de borda, spotlight, partículas e ripple
   (aplicado via JS aos elementos .bento)
   ============================================================ */
.bento {
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-i: 0;
  --glow-r: 260px;
  position: relative;
}

/* luz de borda que segue o cursor: acende no trecho da borda mais
   próximo do ponteiro e vaza para fora como um halo (drop-shadow) */
.bento::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: radial-gradient(
    var(--glow-r) circle at var(--glow-x) var(--glow-y),
    rgba(227, 27, 35, var(--glow-i)) 0%,
    rgba(227, 27, 35, calc(var(--glow-i) * 0.5)) 30%,
    transparent 62%
  );
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  /* sem drop-shadow animado: filtros por elemento derrubavam o FPS no Windows */
  pointer-events: none;
  z-index: 7;
}

.bento-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 27, 35, 0.35) 0%, rgba(227, 27, 35, 0.18) 30%, transparent 70%);
  pointer-events: none;
  z-index: 8;
}

/* (spotlight global removido — a luz agora vive só na borda dos boxes) */

/* ============================================================
   TEMA — light/dark com transição animada
   ============================================================ */
:root {
  color-scheme: light;
  --inv-soft: rgba(236, 236, 233, 0.7);
  --inv-faint: rgba(236, 236, 233, 0.45);
  --inv-hairline: rgba(236, 236, 233, 0.14);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0A0A0A;
  --paper-2: #141414;
  --panel: #1A1A1A;
  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.35);
  --hairline: rgba(255, 255, 255, 0.16);
  --inv-soft: rgba(10, 10, 10, 0.72);
  --inv-faint: rgba(10, 10, 10, 0.5);
  --inv-hairline: rgba(10, 10, 10, 0.18);
}

/* toggle de tema em ícone (sol/lua) */
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.theme-toggle svg { width: 16px; height: 16px; display: block; }

/* fallback: crossfade de cores quando não há View Transitions */
body.theme-anim,
body.theme-anim * {
  transition: background-color 0.55s ease, color 0.55s ease,
              border-color 0.55s ease, fill 0.55s ease,
              -webkit-text-stroke-color 0.55s ease !important;
}

/* View Transitions: revelação circular a partir do botão */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: vt-wipe 0.65s var(--ease) forwards;
  clip-path: circle(0px at var(--vt-x, 50%) var(--vt-y, 0%));
}
@keyframes vt-wipe {
  to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0%)); }
}


/* ============================================================
   MODO HORIZONTAL — rolagem lateralizada (desktop)
   a classe .h-on é aplicada no <html> via JS quando ativa
   ============================================================ */
html.h-on { scroll-behavior: auto; }
html.h-on body { overscroll-behavior: none; }

html.h-on .h-wrap {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  will-change: transform;
}
html.h-on main { display: flex; height: 100%; }

html.h-on .section {
  flex: none;
  height: 100vh;
  border-bottom: none;
  border-right: 1px solid var(--hairline);
  overflow: hidden;
  padding: calc(58px + 1.6rem) var(--pad) 1.5rem;
  display: flex;
  flex-direction: column;
}
html.h-on .section-head-row {
  width: min(84vw, 1000px);
  margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
}

/* reveals entram da direita no modo horizontal */
html.h-on .reveal { transform: translateX(46px); }
html.h-on .reveal.visible { transform: none; }

/* hero */
html.h-on .hero {
  flex: none;
  width: 100vw;
  min-height: 0;
  height: 100vh;
  border-bottom: none;
  border-right: 1px solid var(--hairline);
}

/* marquee vira faixa vertical (mais larga para as fitas cruzadas) */
html.h-on .marquee {
  flex: none;
  width: clamp(230px, 20vw, 320px);
  height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  border-right: 1px solid var(--hairline);
}
html.h-on .marquee-rot {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vh;
  transform: translate(-50%, -50%) rotate(90deg);
}
html.h-on .ribbons-stage { height: clamp(230px, 20vw, 320px); }

/* sobre */
html.h-on .sobre { width: min(100vw, 1280px); padding: 0; }
html.h-on .sobre .section-body {
  padding: calc(58px + 1.4rem) var(--pad) 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
html.h-on .side-word span { position: static; }
html.h-on .statement {
  font-size: clamp(1.3rem, 3.4vh, 2.7rem);
  margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
}
html.h-on .sobre-cols { margin-bottom: clamp(1.2rem, 3vh, 2.4rem); gap: 1.4rem; }
html.h-on .s-col p { font-size: 0.88rem; }
html.h-on .stat { padding: 1rem 1.2rem; }
html.h-on .stat-n { font-size: 2.4rem; }
html.h-on .stat-x { font-size: 1.6rem; }

/* especialidades */
html.h-on .especialidades { width: 94vw; }
html.h-on .especialidades .rows { overflow: hidden; }
html.h-on .row { padding: 1.15rem 0.4rem; }

/* projetos e processo: cartões em fila */
html.h-on .processo { width: max-content; }
html.h-on .steps {
  display: flex;
  flex: 1;
  min-height: 0;
}
html.h-on .step { width: min(300px, 24vw); overflow: hidden; }

/* trajetória: formação à esquerda, experiência em fila */
html.h-on .trajetoria { width: max-content; }
html.h-on .traj-cols {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex: 1;
  min-height: 0;
}
html.h-on .traj-edu { width: clamp(360px, 30vw, 460px); flex: none; }
html.h-on .traj-edu .row {
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
}
html.h-on .traj-edu .row-desc, html.h-on .traj-edu .row-tag,
html.h-on .traj-edu .row-arrow { display: none; }
html.h-on .traj-edu .row-title { font-size: 1.05rem; }
html.h-on .traj-xp { display: flex; flex-direction: column; min-height: 0; }
html.h-on .xp-list {
  display: flex;
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--hairline);
}
html.h-on .xp {
  display: block;
  width: 330px;
  flex: none;
  padding: 1.4rem 1.3rem;
  border-bottom: none;
  border-right: 1px solid var(--hairline);
  overflow-y: auto;
}
html.h-on .xp:hover { padding-left: 1.3rem; }
html.h-on .xp-years { display: block; margin-bottom: 0.9rem; line-height: 1.5; }
html.h-on .xp-title { font-size: 1.15rem; }
html.h-on .xp-body p { font-size: 0.84rem; }

/* comentários */
html.h-on .comentarios { width: 100vw; }
html.h-on .quotes { flex: 1; min-height: 0; overflow: hidden; }
html.h-on .quote { padding: 1.6rem 1.5rem; overflow-y: auto; }
html.h-on .quote blockquote p { font-size: 0.92rem; }

/* contato */
html.h-on .contato {
  flex: none;
  width: max-content;
  min-width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(58px + 1.4rem) var(--pad) 0;
}
html.h-on .contato-main {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex: 1;
  min-height: 0;
}
html.h-on .contato-giant {
  padding: 0;
  font-size: clamp(2.6rem, 9vh, 6.5rem);
}
html.h-on .c-form {
  border-top: none;
  padding: 0;
  width: min(520px, 38vw);
  flex: none;
}
html.h-on .c-form-grid { gap: 1rem 1.6rem; }
html.h-on .c-send { margin-top: 1.2rem; }

/* footer vira coluna final */
html.h-on .footer {
  flex: none;
  width: clamp(260px, 22vw, 340px);
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(58px + 1.8rem) 1.6rem 1.8rem;
  border-top: none;
  border-left: 1px solid var(--inv-hairline);
}

/* índice lateral vira trilho horizontal embaixo (dock) */
html.h-on .side-index {
  right: auto;
  left: 50%;
  top: auto;
  bottom: 1rem;
  transform: translateX(-50%);
  flex-direction: row;
  align-items: flex-end;
  gap: 1.1rem;
  /* área de captura generosa para o efeito de dock */
  padding: 1.6rem 2rem 0.2rem;
}
html.h-on .idx.active::before {
  right: auto;
  left: 50%;
  top: auto;
  bottom: -0.55rem;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
}


/* ---------- Seletor de idioma ---------- */
.lang { display: flex; gap: 0.15rem; }
.lang button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  padding: 0.3rem 0.35rem;
  transition: color 0.25s;
}
.lang button:hover { color: var(--ink); }
.lang button.active { color: var(--orange); font-weight: 700; }
