/* Kodit — versão curta. Cores e fontes do guia de identidade (Direção 02). */
:root {
  --bg: #101014;
  --ink: #F3F0F8;
  --muted: #B8B1C7;
  --accent: #8655F6;
  --accent-2: #7344E0;
  --lilac: #C8AEFF;
  --depth: #291B43;
  --raise: #1A1A21;
  --raise-2: #23232C;

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --t-xl: clamp(38px, 5.6vw, 88px);
  --t-l: clamp(32px, 4vw, 60px);
  --t-m: clamp(21px, 1.9vw, 27px);

  --m: clamp(16px, 2.4vw, 32px);
  --gap: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
video { background: var(--raise); }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }

.t-l { font: 400 var(--t-l)/1.02 var(--serif); letter-spacing: -.02em; }

/* Botões: quadrados, uma cor */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--ink);
  border: 0; border-radius: 0;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .2s ease;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(.96); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 52px; }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateY(3px); }

/* Partículas no fundo */
.particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* Barra */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 10px var(--m);
  background: var(--bg);
}
.brand { margin-right: auto; min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-k { width: 22px; height: 24px; color: var(--accent); }
.k-up { fill: var(--lilac); }
.brand-word { font: 400 24px/1 var(--serif); }
.brand-word em, .foot-word em { font-style: italic; }
/* Pingo do i vira um keyframe (losango), como no logo */
.kf-i { position: relative; display: inline-block; line-height: 1; }
.kf-i::after { content: ""; position: absolute; left: .17em; top: .08em; width: .1em; height: .1em; background: currentColor; transform: rotate(45deg); }
.bar-nav { display: flex; gap: 26px; }
.bar-nav a { text-decoration: none; font-size: 15px; font-weight: 700; padding: 12px 0; color: var(--muted); transition: color .2s ease; }
.bar-nav a:hover { color: var(--ink); }

/* ===== Abertura ===== */
.hero {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
  min-height: 100svh; padding: 88px var(--m) var(--m);
}
.hero-copy { grid-column: 1 / 8; }
.hero-t { font: 400 var(--t-xl)/.98 var(--serif); letter-spacing: -.03em; }
.hero-t .nb { display: block; }
.lede { font: 400 var(--t-m)/1.4 var(--serif); max-width: 34ch; margin-top: 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.hero-reel { grid-column: 9 / 13; position: relative; }
.hero-reel video { width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - 120px); object-fit: cover; margin-left: auto; }
.hero-reel figcaption { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; background: rgba(16, 16, 20, .82); font-size: 14px; }

/* ===== Trabalhos ===== */
.work { padding: var(--gap) var(--m) 0; }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.tabs { display: flex; background: var(--raise); padding: 4px; }
.tabs button {
  min-height: 48px; padding: 0 26px; border: 0; background: transparent; cursor: pointer;
  font: 700 16px/1 var(--sans); color: var(--muted);
  transition: background-color .25s ease, color .25s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--ink); }
.panel-note { margin-top: 36px; max-width: 60ch; font: 400 var(--t-m)/1.35 var(--serif); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.card-hit { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card-vid { position: relative; display: block; overflow: hidden; margin-bottom: 12px; background: var(--raise); }
.card-vid video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.card-play {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--accent); font: 700 14px/1 var(--sans);
  transition: transform .35s var(--ease);
}
.card-hit:hover .card-vid video { transform: scale(1.04); }
.card-hit:hover .card-play { transform: translateY(-3px); }
.card-hit:active .card-vid { transform: scale(.98); }
.card-vid { transition: transform .3s var(--ease); }
.card-t { font: 400 var(--t-m)/1.15 var(--serif); }
.card-m { font-size: 15px; color: var(--lilac); }
.card-d { font-size: 16px; }
/* Faixa com mais trechos: rola para o lado, não estica a página */
.more { margin-top: 64px; }
.more-head { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 24px; }
.more-t { font: 400 var(--t-m)/1.15 var(--serif); }
.more-hint { color: var(--muted); font-size: 15px; }
.more-nav { margin-left: auto; display: flex; gap: 8px; }
.more-nav button {
  width: 48px; height: 48px; border: 0; background: var(--raise-2); cursor: pointer; font-size: 20px;
  transition: background-color .2s ease, transform .3s var(--ease);
}
.more-nav button:hover { background: var(--accent); }
.more-nav button:active { transform: scale(.92); }
.strip {
  display: flex; gap: 14px; margin: 20px calc(-1 * var(--m)) 0; padding: 0 var(--m) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--m);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; scroll-snap-align: start; }
.strip-hit { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.strip-vid { display: block; overflow: hidden; height: clamp(280px, 30vw, 420px); aspect-ratio: var(--ar); margin-bottom: 10px; background: var(--raise); transition: transform .3s var(--ease); }
.strip-vid video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.strip-hit:hover .strip-vid video { transform: scale(1.04); }
.strip-hit:active .strip-vid { transform: scale(.97); }
.strip-t { font-size: 16px; font-weight: 700; }
.strip-m { font-size: 14px; color: var(--lilac); }

.work-foot { margin-top: 48px; color: var(--muted); font-size: 16px; }
.panel.in .card { animation: cardin .6s var(--ease) both; }
.panel.in .card:nth-child(2) { animation-delay: .07s; }
.panel.in .card:nth-child(3) { animation-delay: .14s; }
.panel.in .card:nth-child(4) { animation-delay: .21s; }
@keyframes cardin { from { opacity: 0; transform: translateY(20px); } }

/* ===== Serviços ===== */
.services {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  margin-top: var(--gap); padding: var(--gap) var(--m); background: var(--depth);
}
.services-head { grid-column: 1 / 6; }
.services-head p { margin-top: 28px; font: 400 var(--t-m)/1.4 var(--serif); max-width: 30ch; }
.serv-list { grid-column: 7 / 13; display: grid; gap: 36px; }
.serv-list h3 { font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--serif); letter-spacing: -.01em; }
.serv-list p { margin-top: 8px; max-width: 46ch; }

/* ===== Contato ===== */
.contact { padding: var(--gap) var(--m); }
.contact h2 { max-width: 22ch; }
.contact > p { margin-top: 24px; font: 400 var(--t-m)/1.4 var(--serif); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.people a {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px;
  padding: 28px; min-height: 160px; background: var(--accent); text-decoration: none;
  transition: background-color .2s ease, transform .35s var(--ease);
}
.people a:hover { background: var(--accent-2); }
.people a:active { transform: scale(.98); }
.people .alt a { background: var(--raise-2); }
.people .alt a:hover { background: var(--depth); }
/* E-mail e agenda lado a lado; o WhatsApp em outra linha. */
.people li { display: grid; align-content: start; }
.p-name { font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); grid-column: 1; }
.copy {
  justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.copy:hover, .copy.done { color: var(--lilac); }
.p-num { grid-column: 1; font-weight: 700; }
.nw { white-space: nowrap; }
.p-go { grid-column: 2; grid-row: 1 / 3; font-size: 36px; line-height: 1; transition: transform .35s var(--ease); }
.people a:hover .p-go { transform: translateX(6px); }

/* ===== Rodapé ===== */
.foot { padding: 0 var(--m) var(--m); }
.foot-word { display: flex; align-items: center; gap: .18em; font: 400 clamp(88px, 21vw, 340px)/.8 var(--serif); letter-spacing: -.04em; }
.foot-k { width: .55em; height: .6em; color: var(--accent); }
.foot-legal { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* WhatsApp fixo e escolha de pessoa */
.fab {
  position: fixed; right: var(--m); bottom: calc(var(--m) + env(safe-area-inset-bottom)); z-index: 40;
  min-height: 52px; padding: 0 22px; border: 0; cursor: pointer;
  background: #25D366; color: #0B2A17; font: 700 16px/1 var(--sans);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); /* taste-skill-ignore: floats over the page */
  transition: transform .4s var(--ease), opacity .3s ease;
}
.fab:active { transform: scale(.95); }
/* Em inglês o botão fixo leva a todos os contatos, e-mail primeiro: cor da marca, não do WhatsApp. */
:lang(en) .fab { background: var(--accent); color: var(--ink); }
.fab.off { opacity: 0; transform: translateY(24px); pointer-events: none; }
.zap {
  inset: auto var(--m) calc(var(--m) + 64px + env(safe-area-inset-bottom)) auto;
  margin: 0; width: min(320px, calc(100vw - 2 * var(--m)));
  padding: 20px; border: 0; background: var(--raise-2); color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); /* taste-skill-ignore: popover menu */
}
.zap::backdrop { background: rgba(16, 16, 20, .5); }
.zap-t { font: 400 21px/1.2 var(--serif); margin-bottom: 14px; }
.zap a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; margin-top: 8px; background: var(--accent); text-decoration: none; transition: background-color .2s ease; }
.zap a:hover { background: var(--accent-2); }
:lang(pt-BR) .zap :is(.zap-mail, .zap-call), :lang(en) .zap a:not(.zap-mail, .zap-call) { background: var(--raise); }
:lang(pt-BR) .zap :is(.zap-mail, .zap-call):hover, :lang(en) .zap a:not(.zap-mail, .zap-call):hover { background: var(--depth); }
.zap a b { white-space: nowrap; }
.zap a span { font-size: 15px; text-align: right; }
.zap-x { margin-top: 12px; min-height: 44px; width: 100%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }

/* Player */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.player::backdrop { background: rgba(16, 16, 20, .92); }
.player-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.player-t { font: 400 21px/1.2 var(--serif); }
.player video { max-height: calc(100svh - 160px); width: auto; max-width: 100%; }

/* Entradas */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s var(--ease); }
.js .rise.on { opacity: 1; transform: none; }
/* A abertura já nasce visível: só sobe um pouco. */
.lift { animation: lift .8s var(--ease) both; }
.hero .lift:nth-child(2) { animation-delay: .06s; }
.hero .lift:nth-child(3) { animation-delay: .12s; }
.hero-reel.lift { animation-delay: .1s; }
@keyframes lift { from { transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { transform: none; transition: opacity .3s ease; }
  .panel.in .card, .lift { animation: none; }
  .card-vid video, .card-play, .p-go, .fab { transition: none; }
}

/* ===== Tablet e celular ===== */
@media (max-width: 900px) {
  .bar-nav { gap: 18px; }
  .bar-nav a:not([lang]) { display: none; }
  .hero { display: block; min-height: 0; padding-top: 96px; }
  .lede { margin-top: 20px; }
  .actions { margin-top: 28px; }
  .hero-reel { margin-top: 32px; }
  .hero-reel video { aspect-ratio: 4 / 5; max-height: 72svh; }
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .card-play { left: 8px; bottom: 8px; padding: 8px 10px; font-size: 13px; }
  .services { display: block; }
  .serv-list { margin-top: 48px; gap: 28px; }
  .people { grid-template-columns: 1fr; }
  .people a { min-height: 128px; padding: 22px; }
}
@media (max-width: 420px) {
  .bar .btn-sm { display: none; }
  .actions .btn { width: 100%; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 0 10px; white-space: nowrap; font-size: 15px; }
  .card-d { display: none; }
  .more-nav { display: none; }
  .strip-vid { height: 300px; }
}
/* Celulares pequenos (iPhone SE e afins): títulos continuam em duas linhas */
@media (max-width: 360px) {
  :root { --t-xl: 32px; --t-l: 28px; }
  .strip-vid { height: 260px; }
}
