/* =========================================================
   Matheus Machado · Portfólio "Noite"
   Uma família (Archivo) variando largura: condensada nos títulos
   gigantes, normal nas frases, expandida nos rótulos.
   ========================================================= */
:root {
  --bg: #0c0b0a;
  --bg-2: #13110f;
  --bg-3: #1b1815;
  --fg: #efede8;
  --muted: #8a857d;
  --dim: #4a4640;
  --line: #2b2825;
  --accent: #ff5631;
  --on-accent: #120805;
  --glow: #ffb07a;
  --live: #3ccf6a;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --gx: max(40px, env(safe-area-inset-left, 0px));
  --gxr: max(40px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
  color-scheme: dark;
}
@media (max-width: 720px) {
  :root { --gx: max(18px, env(safe-area-inset-left, 0px)); --gxr: max(18px, env(safe-area-inset-right, 0px)); --nav-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.intro, html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-weight: 500; font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .17; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Barras de rolagem: fininhas, no tom da página, laranja ao arrastar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: #4a4540; border: 3px solid transparent; background-clip: padding-box; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #4a4540 transparent; }
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { padding-left: var(--gx); padding-right: var(--gxr); }
.label { font-size: 12px; line-height: 1.35; font-weight: 600; font-variation-settings: "wdth" 115; letter-spacing: .045em; text-transform: uppercase; }
.soft, .soft-label { color: var(--muted); }
.sec-label { display: block; color: var(--muted); margin-bottom: 22px; }

.display {
  margin: 0; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase;
  font-size: clamp(56px, 9.4vw, 156px); line-height: .84; letter-spacing: -.01em; text-wrap: balance;
}
.display .soft { color: var(--dim); }
.display.mega { font-size: clamp(72px, 15.5vw, 260px); line-height: .8; }
.statement { margin: 0; font-weight: 800; font-size: clamp(32px, 3vw, 46px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.statement.sm { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; }
.statement .slash { color: var(--accent); margin-right: .35em; font-weight: 600; }
.sec-head { display: grid; gap: 4px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-sub { margin: 18px 0 0; max-width: 46ch; color: var(--muted); font-size: 19px; line-height: 1.45; }

/* Botões */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; border-radius: 999px; padding: 15px 24px; background: transparent;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap; font-variation-settings: "wdth" 108;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.pill svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .3s var(--ease); }
.pill:hover svg { transform: translate(2px, -2px); }
.pill.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill.solid:hover { background: var(--fg); border-color: var(--fg); }
.pill.ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pill.sm { padding: 10px 16px; font-size: 12px; }
.pill.lg { padding: 20px 30px; font-size: 17px; }
.pill:active { transform: scale(.97); }
.textlink { font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; padding: 8px 4px 8px 0; color: var(--muted); transition: color .2s; }
.textlink:hover { color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: env(safe-area-inset-top, 0px); padding-left: var(--gx); padding-right: var(--gxr);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-105%); }
.brand { font-weight: 800; font-size: 15px; text-decoration: none; font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.links a { text-decoration: none; color: var(--muted); transition: color .2s; position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--fg); transition: right .35s var(--ease); }
.links a:hover, .links a.is-current { color: var(--fg); }
.links a:hover::after, .links a.is-current::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) var(--gxr) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gx);
}
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-links a { display: block; text-decoration: none; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(48px, 15vw, 84px); line-height: .92; }
.menu-links li { overflow: hidden; }
.menu.is-open .menu-links a { animation: menuIn .6s var(--ease) both; }
.menu.is-open .menu-links li:nth-child(2) a { animation-delay: .04s; } .menu.is-open .menu-links li:nth-child(3) a { animation-delay: .08s; }
.menu.is-open .menu-links li:nth-child(4) a { animation-delay: .12s; } .menu.is-open .menu-links li:nth-child(5) a { animation-delay: .16s; }
.menu.is-open .menu-links li:nth-child(6) a { animation-delay: .2s; } .menu.is-open .menu-links li:nth-child(7) a { animation-delay: .24s; }
@keyframes menuIn { from { transform: translateY(100%); } }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: clamp(720px, 100svh, 960px); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding-top: clamp(150px, 21vh, 210px);
}
.photo, .cut { position: absolute; right: 0; bottom: 0; height: 80%; width: auto; aspect-ratio: 2048 / 1144; max-width: none; object-fit: cover; }
.photo { z-index: 1; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%); mask-image: linear-gradient(to right, transparent 0%, #000 30%); }
.cut { z-index: 3; pointer-events: none; }
.name {
  position: relative; z-index: 2; margin: 0 0 0 calc(var(--gx) - 4px);
  font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; white-space: nowrap;
  font-size: 12.9vw; line-height: .82; letter-spacing: -.01em;
}
.name .ch { display: inline-block; }
.name::after {
  content: ""; position: absolute; inset: -4% -2%; pointer-events: none; mix-blend-mode: multiply; opacity: 0;
  background: linear-gradient(100deg, transparent 38%, var(--glow) 47%, #ff7a45 50%, var(--glow) 53%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
}
.meta { position: absolute; z-index: 4; top: calc(var(--nav-h) + 18px); right: var(--gxr); display: flex; gap: 36px; }
.meta div { display: grid; gap: 2px; }
.meta small { font-size: inherit; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 8px; vertical-align: 1px; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero-copy { position: relative; z-index: 4; margin: 34px 0 48px var(--gx); width: min(560px, 42%); display: grid; gap: 30px; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.note { display: grid; gap: 8px; align-content: start; }
.tag { display: flex; align-items: center; gap: 10px; }
.tag i { width: 9px; height: 9px; background: var(--accent); flex: none; }
.note p { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 600; font-variation-settings: "wdth" 108; text-transform: uppercase; letter-spacing: .02em; text-wrap: pretty; }
.hero-bar {
  position: relative; z-index: 4; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-block: 20px 24px; padding-left: var(--gx); padding-right: var(--gxr);
}
.live-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.live-list li:first-child { color: var(--muted); margin-right: 8px; }
.live-list a { font-size: 17px; font-weight: 800; font-variation-settings: "wdth" 88; text-transform: none; letter-spacing: -.01em; text-decoration: none; background: linear-gradient(var(--fg), var(--fg)) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.live-list a:hover { background-size: 100% 1px; }
.facts { display: flex; gap: 28px; }
.facts b { font-weight: 800; }
.skip-intro { position: absolute; z-index: 6; right: var(--gxr); top: calc(22px + env(safe-area-inset-top, 0px)); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; color: var(--muted); display: none; }

/* Entrada normal (sem intro) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.intro):not(.intro-done) .hero .photo, html:not(.intro):not(.intro-done) .hero .cut { animation: fadeIn 1.2s ease-out both; }
  html:not(.intro):not(.intro-done) .hero .name .ch { animation: chUp .9s var(--ease) both; animation-delay: calc(var(--i) * 22ms); }
  html:not(.intro):not(.intro-done) .hero-copy, html:not(.intro) .meta, html:not(.intro):not(.intro-done) .hero-bar { animation: fadeUp .8s var(--ease) .35s both; }
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes chUp { from { transform: translateY(105%); opacity: 0; } }

/* Intro: o nome sobe letra a letra, uma luz quente atravessa (a mesma luz de recorte do retrato), a foto acende e o resto entra. */
html.intro .nav, html.intro .hero-copy, html.intro .meta, html.intro .hero-bar, html.intro .photo, html.intro .cut { opacity: 0; }
html.intro .skip-intro { display: block; animation: fadeIn .4s ease-out .3s both; }
html.intro.play .name .ch { animation: chUp 1s var(--ease) both; animation-delay: calc(120ms + var(--i) * 45ms); }
html.intro.play .name::after { animation: glint 1.25s cubic-bezier(.45, 0, .2, 1) 1s both; }
html.intro.play .photo, html.intro.play .cut { animation: photoIn 1.6s var(--ease) 1.55s forwards; }
html.intro.play .nav, html.intro.play .meta { animation: fadeIn .8s ease-out 2.35s forwards; }
html.intro.play .hero-copy, html.intro.play .hero-bar { animation: fadeUpTo .9s var(--ease) 2.25s forwards; }
@keyframes glint { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }
@keyframes photoIn { from { opacity: 0; transform: scale(1.06); filter: brightness(.3); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUpTo { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   FAIXA
   ========================================================= */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 24px; }
.track { display: flex; width: max-content; }
.track ul { display: flex; margin: 0; padding: 0; list-style: none; }
.track li { white-space: nowrap; font-size: clamp(26px, 3.4vw, 52px); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; padding-right: .6em; }
.track li::after { content: "/"; color: var(--accent); padding-left: .6em; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .track { animation: slide 52s linear infinite; } .ticker:hover .track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .track ul + ul { display: none; } .track { width: auto; } .track ul { flex-wrap: wrap; row-gap: 12px; padding-inline: var(--gx); } .track li { white-space: normal; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================
   CASE
   ========================================================= */
.case { border-top: 1px solid var(--line); padding-block: clamp(90px, 10vw, 150px) clamp(110px, 12vw, 180px); background: var(--bg-2); }
.case-head { display: grid; gap: 8px; }
.case-head .mega { color: var(--fg); }
.case-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; margin-top: clamp(36px, 4vw, 56px); }
.case-intro .label { color: var(--muted); padding-top: .5em; }
.films { display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 10fr); gap: 20px; margin-top: clamp(56px, 6vw, 96px); align-items: start; }
.film { margin: 0; display: grid; gap: 14px; }
.film-frame { position: relative; overflow: hidden; border-radius: 6px; background: #000; }
.film-main .film-frame { aspect-ratio: 1600 / 728; }
.film-side .film-frame { aspect-ratio: 9 / 16; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.film-loop.is-on { opacity: 1; }
.film-len { position: absolute; right: 12px; bottom: 12px; background: #000a; color: #fff; padding: 6px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.film.is-playable { cursor: pointer; }
.film.is-playable:hover .film-frame img { transform: scale(1.04); }
.film-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(64px, 7vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); transition: transform .4s var(--ease), background .3s; }
.film-side .film-play { width: 54px; }
.film-play svg { width: 34%; fill: currentColor; margin-left: 6%; }
.film.is-playable:hover .film-play { transform: scale(1.08); background: var(--accent); }
.film:not(.is-playable) .film-play { background: color-mix(in srgb, var(--fg) 16%, transparent); color: var(--fg); }
.film figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.film-title { font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.01em; }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); }
.num { display: grid; gap: 14px; align-content: start; padding: 28px 24px 0 0; }
.num + .num { padding-left: 24px; border-left: 1px solid var(--line); }
.num b { font-weight: 900; font-variation-settings: "wdth" 62; font-size: clamp(84px, 11vw, 190px); line-height: .8; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.num span { color: var(--muted); max-width: 22ch; font-size: 16px; line-height: 1.4; }

.built { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); margin-top: clamp(90px, 10vw, 160px); align-items: start; }
.built-phone { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; place-items: center; }
.phone { position: relative; width: min(330px, 100%); aspect-ratio: 585 / 1266; border-radius: 40px; overflow: hidden; background: #000; outline: 1px solid var(--line); outline-offset: 10px; box-shadow: 0 40px 120px -30px #000; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.phone img.is-on { opacity: 1; transform: none; }
.built-list ol { list-style: none; margin: 0; padding: 0; counter-reset: b; border-top: 1px solid var(--line); }
.built-list li {
  counter-increment: b; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: baseline; gap: 8px;
  padding: 26px 0; border-bottom: 1px solid var(--line); cursor: default; color: var(--dim);
  font-weight: 800; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -.02em; transition: color .4s;
}
.built-list li::before { content: counter(b, decimal-leading-zero); font-size: 12px; font-weight: 600; font-variation-settings: "wdth" 115; letter-spacing: .04em; color: var(--dim); transition: color .4s; }
.built-list li.is-on { color: var(--fg); }
.built-list li.is-on::before { color: var(--accent); }
.built-list .stack { color: var(--muted); margin: 28px 0 28px; line-height: 1.8; }

/* =========================================================
   ÍCONES (traço fino) · chips · mocks
   ========================================================= */
.ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.plain { color: var(--muted); }

/* =========================================================
   SOBRE (texto + cartão de código)
   ========================================================= */
.about {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 100px); align-items: center;
  padding-block: clamp(90px, 10vw, 150px) clamp(110px, 13vw, 190px);
}
.about-body { display: grid; gap: 28px; min-width: 0; }
.about-body .display { font-size: clamp(56px, 7.5vw, 124px); }
.about-text { display: grid; gap: 18px; max-width: 62ch; }
.about-text p { margin: 0; color: var(--muted); font-size: 17px; }
.about-text .lead { color: var(--fg); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.about-actions { gap: 10px 14px; }
.cv-pair { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-left: 4px; }
.cv-pair a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

.code { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #0f0e0d; box-shadow: 0 50px 120px -40px #000, 0 0 0 1px #ffffff06 inset; overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dim); }
.code-bar i:first-child { background: #ff5f57; } .code-bar i:nth-child(2) { background: #febc2e; } .code-bar i:nth-child(3) { background: #28c840; }
.code-tab { margin-left: 14px; font-size: 13px; font-weight: 600; color: var(--fg); padding: 5px 12px; border-radius: 6px; background: var(--bg-3); }
.code-body {
  margin: 0; padding: 22px 0; overflow-x: auto; counter-reset: ln;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 14.5px; line-height: 1.75; tab-size: 2;
}
.code-body .ln { display: block; padding: 0 22px 0 0; white-space: pre; min-height: 1.75em; }
.code-body .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: var(--dim); user-select: none; }
.code-body .ln.typing::after { content: ""; display: inline-block; width: .55em; height: 1.15em; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.k { color: #ff7a59; } .s { color: #e7c48b; } .n { color: #9ad3a4; } .p { color: #c9c3b8; } .c { color: #6f6a62; font-style: italic; } .f { color: #8fb7ff; } .t { color: #ff9f7a; } .a { color: #d9b8ff; }
.code-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }
.code-foot > span { display: inline-flex; align-items: center; }

/* Carrossel no celular (rail) */
.rail-nav { display: none; }

/* Botão flutuante do WhatsApp (celular) */
.fab { display: none; }
/* =========================================================
   SERVIÇOS
   ========================================================= */
.services { padding-block: clamp(100px, 12vw, 170px) clamp(90px, 10vw, 150px); }
.srv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sv { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.sv:hover { border-color: var(--dim); transform: translateY(-4px); }
.sv-visual { position: relative; height: 270px; overflow: hidden; background: var(--bg-3); border-bottom: 1px solid var(--line); isolation: isolate; }
.sv-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2), transparent 35%); pointer-events: none; }
.mini-phone { width: 210px; border-radius: 26px; background: #000; padding: 6px; box-shadow: 0 20px 50px -20px #000; }
.mini-phone img { width: 100%; height: auto; border-radius: 20px; display: block; }
.sv-visual--phone .mini-phone { position: absolute; left: 50%; top: 28px; translate: -50% 0; }
.sv-visual--duo .mini-phone { position: absolute; top: 30px; width: 175px; }
.sv-visual--duo .mini-phone:first-child { left: 18%; rotate: -4deg; }
.sv-visual--duo .mini-phone:last-child { right: 18%; top: 54px; rotate: 4deg; z-index: 1; }
.mini-browser { position: absolute; left: 24px; right: 24px; top: 28px; border-radius: 10px 10px 0 0; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 20px 50px -20px #000; }
.mini-browser::before { content: ""; display: block; height: 22px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 14px 11px, var(--dim) 3px, transparent 4px), radial-gradient(circle at 28px 11px, var(--dim) 3px, transparent 4px), radial-gradient(circle at 42px 11px, var(--dim) 3px, transparent 4px) var(--bg-2); }
.mini-browser img { width: 100%; height: auto; display: block; }
.chat { position: absolute; inset: 24px 24px 0; display: grid; gap: 8px; align-content: start; }
.chat p { margin: 0; max-width: 80%; padding: 10px 12px 8px; border-radius: 14px; font-size: 13px; line-height: 1.35; font-weight: 500; display: grid; gap: 4px; }
.chat .in { background: var(--bg-3); border-bottom-left-radius: 4px; justify-self: start; }
.chat .out { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; justify-self: end; }
.chat time { font-size: 10px; opacity: .6; justify-self: end; }
.term { position: absolute; inset: 24px 24px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px 10px 0 0; padding: 14px 16px; display: grid; gap: 9px; align-content: start; font-size: 12.5px; }
.term p { margin: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; color: var(--fg); }
.term time { color: var(--muted); font-variant-numeric: tabular-nums; }
.term i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.term i.wait { background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
.sv-body { padding: 24px 24px 26px; display: grid; gap: 12px; align-content: start; }
.sv-body .ic { color: var(--accent); }
.sv h3 { margin: 4px 0 0; font-weight: 800; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.sv p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.sv-seen { margin-top: 8px !important; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.sv-seen a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--dim); padding-bottom: 1px; transition: border-color .2s; }
.sv-seen a:hover { border-color: var(--fg); }

/* =========================================================
   PROCESSO
   ========================================================= */
.process { padding-block: clamp(90px, 10vw, 150px) clamp(110px, 12vw, 180px); border-top: 1px solid var(--line); }
.steps { position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 18px var(--accent); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { position: relative; padding-top: 34px; display: grid; gap: 14px; align-content: start; }
.steps li::before { content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--dim); transition: background .4s, border-color .4s, box-shadow .4s; }
.steps li.is-on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.steps b { font-weight: 900; font-variation-settings: "wdth" 62; font-size: clamp(64px, 7vw, 120px); line-height: .8; color: var(--dim); transition: color .5s; }
.steps li.is-on b { color: var(--fg); }
.steps .ic { color: var(--accent); width: 30px; height: 30px; }
.steps h3 { margin: 0; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* =========================================================
   PROJETOS
   ========================================================= */
.work { padding-block: clamp(110px, 12vw, 180px); border-top: 1px solid var(--line); }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.wk { display: grid; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); transition: border-color .3s, transform .5s var(--ease); }
.wk:hover { border-color: var(--dim); transform: translateY(-4px); }
.wk-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.wk-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wk:hover .wk-cover img { transform: scale(1.04); }
.wk-type { position: absolute; left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; border-radius: 999px; }
.wk-body { padding: 24px 26px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: start; }
.wk-name { grid-column: 1; margin: 0; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(36px, 3.4vw, 52px); line-height: .88; letter-spacing: -.01em; }
.wk-arrow { grid-column: 2; grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.wk-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.wk:hover .wk-arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(45deg); }
.wk-ctx { grid-column: 1; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.wk-ctx b { display: block; color: var(--fg); font-weight: 700; margin-bottom: 2px; }
.wk .chips { grid-column: 1 / -1; margin-top: 6px; }

/* =========================================================
   TRAJETÓRIA
   ========================================================= */
.path { padding-block: clamp(110px, 12vw, 180px); border-top: 1px solid var(--line); }

/* =========================================================
   TECNOLOGIAS + INTEGRAÇÕES
   ========================================================= */
.tech { padding-block: 0 clamp(110px, 12vw, 180px); }
.tech-groups { display: grid; gap: 40px; }
.tech-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.tech-group h3 { margin: 0; color: var(--muted); padding-top: 14px; }
.tech-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-grid li { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-weight: 700; font-size: 15px; transition: border-color .25s, transform .4s var(--ease); }
.tech-grid li:hover { border-color: var(--dim); transform: translateY(-2px); }
.tech-grid img { width: 26px; height: 26px; object-fit: contain; }
.tech-txt { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.integ { margin-top: clamp(80px, 9vw, 130px); }
.sec-head--sm { margin-bottom: 36px; }
.integ-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.integ-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.integ-list img { width: 44px; height: 44px; object-fit: contain; padding: 8px; border-radius: 10px; background: var(--bg-3); }
.integ-list .ic { width: 44px; height: 44px; padding: 9px; border-radius: 10px; background: var(--bg-3); color: var(--accent); }
.integ-list div { display: grid; gap: 4px; }
.integ-list b { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.integ-list span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.integ-list a, .integ-list .plain { color: var(--muted); text-decoration: none; white-space: nowrap; padding-top: 4px; }
.integ-list a:hover { color: var(--fg); }

/* =========================================================
   CONTATO + RODAPÉ
   ========================================================= */
.contact { padding-block: clamp(110px, 13vw, 200px) clamp(80px, 9vw, 130px); border-top: 1px solid var(--line); background: var(--bg-2); }
.contact-title { margin: 0; font-weight: 800; font-size: clamp(48px, 8vw, 136px); line-height: .94; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.contact-title em { font-style: italic; color: var(--accent); font-weight: 800; }
.contact-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.contact-row p { margin: 0; max-width: 40ch; color: var(--muted); font-size: 19px; }
.contact-cards { list-style: none; margin: clamp(56px, 6vw, 90px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-cards li { display: grid; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.contact-cards .ic { color: var(--accent); margin-bottom: 6px; }
.contact-cards a { text-decoration: none; font-weight: 700; font-size: 17px; }
.contact-cards a:hover { color: var(--accent); }
.contact-cards > li > span:not(.label) { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.email-text { user-select: all; word-break: break-all; }

.footer { background: var(--bg); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand p { margin: 0; color: var(--muted); max-width: 32ch; font-size: 15.5px; }
.foot-social { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.foot-social a { text-decoration: none; color: var(--muted); }
.foot-social a:hover { color: var(--fg); }
.foot-col h3 { margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; font-weight: 600; font-size: 15.5px; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); opacity: .85; transition: opacity .2s, color .2s; }
.foot-col a:hover { opacity: 1; color: var(--accent); }
.foot-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--muted); border-top: 1px solid var(--line); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--fg); }

/* =========================================================
   DETALHE DO PROJETO
   ========================================================= */
.pd { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); }
.pd.is-in { animation: pdIn .75s var(--ease) both; }
.pd.is-out { animation: pdOut .45s var(--ease) both; }
@keyframes pdIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pdOut { to { clip-path: inset(0 0 100% 0); } }
.pd-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-2); min-height: 0; padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); }
.pd-back { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 22px 28px 0; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: background .2s, color .2s; }
.pd-back:hover { background: var(--fg); color: var(--bg); }
.pd-back svg, .lb-btn svg, .seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pd-side-scroll { flex: 1; overflow-y: auto; padding: 40px 28px 28px; display: grid; gap: 0; align-content: start; }
/* Esmaecido em cima/embaixo só quando tem mais texto daquele lado */
@property --fade-top { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@supports (animation-timeline: scroll()) {
  .pd-side-scroll {
    -webkit-mask: linear-gradient(transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-end)), transparent) left / calc(100% - 10px) 100% no-repeat, linear-gradient(#000, #000) right / 10px 100% no-repeat;
    mask: linear-gradient(transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-end)), transparent) left / calc(100% - 10px) 100% no-repeat, linear-gradient(#000, #000) right / 10px 100% no-repeat;
    animation: sideFadeTop linear both, sideFadeEnd linear both;
    animation-timeline: scroll(self), scroll(self);
    animation-range: 0 60px, calc(100% - 60px) 100%;
  }
}
@keyframes sideFadeTop { from { --fade-top: 0px; } to { --fade-top: 56px; } }
@keyframes sideFadeEnd { from { --fade-end: 56px; } to { --fade-end: 0px; } }
.pd-company { color: var(--muted); margin: 0 0 10px; }
.pd-title { margin: 0; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(56px, 5.4vw, 88px); line-height: .84; letter-spacing: -.01em; }
.pd-type { margin: 18px 0 0; display: inline-flex; align-self: start; }
.pd-type::before { content: ""; width: 9px; height: 9px; background: var(--accent); display: inline-block; margin-right: 10px; vertical-align: 0; }
.pd-desc { margin-top: 30px; display: grid; gap: 16px; }
.pd-desc p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.pd-desc p:first-child { color: var(--fg); font-size: 18px; line-height: 1.45; font-weight: 600; }
.pd-stack { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-stack ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-stack li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.pd-side-foot { padding: 20px 28px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.pd-side-foot .pill { width: 100%; }
.pd-main { overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); }
.pd-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); }
.seg { position: relative; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; color: var(--muted); font-weight: 700; transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--bg); }
.seg button i { font-style: normal; opacity: .6; font-variant-numeric: tabular-nums; }
.seg button[hidden] { display: none; }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: var(--sx, 4px); width: var(--sw, 0); background: var(--fg); border-radius: 999px; transition: left .45s var(--ease), width .45s var(--ease); }
.pd-gallery { padding: 40px; display: grid; gap: 32px; }
.pd-gallery.is-desktop { grid-template-columns: 1fr; }
.pd-gallery.is-mobile { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 24px; }
.shot { margin: 0; position: relative; }
.shot-btn { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 10px; }
.shot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot-frame { display: block; }
.shot-frame { overflow: hidden; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.is-desktop .shot-frame { border-radius: 10px; }
.is-desktop .shot-frame::before { content: ""; display: block; height: 30px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 18px 15px, var(--dim) 4px, transparent 5px), radial-gradient(circle at 36px 15px, var(--dim) 4px, transparent 5px), radial-gradient(circle at 54px 15px, var(--dim) 4px, transparent 5px) var(--bg-2); }
.is-mobile .shot-frame { border-radius: 26px; padding: 6px; background: #000; }
.is-mobile .shot-frame img { border-radius: 21px; }
.shot img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.02); }
.shot figcaption { margin-top: 10px; color: var(--muted); }
.pd-gallery .shot { animation: shotIn .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .15s); }
@keyframes shotIn { from { opacity: 0; transform: translateY(30px); } }
.pd-next { display: grid; gap: 8px; margin: 40px; padding: 40px 0 10px; border-top: 1px solid var(--line); text-decoration: none; }
.pd-next b { font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(56px, 8vw, 140px); line-height: .84; transition: color .3s, transform .6s var(--ease); }
.pd-next:hover b { color: var(--accent); transform: translateX(14px); }

/* Lightbox / vídeo / certificados */
.lb { position: fixed; inset: 0; z-index: 180; background: color-mix(in srgb, #000 94%, transparent); display: grid; place-items: center; padding: 70px 80px; animation: fadeIn .3s ease-out both; }
.lb img { max-width: 100%; max-height: calc(100svh - 140px); width: auto; height: auto; border-radius: 8px; object-fit: contain; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid #ffffff33; background: #0008; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.lb-btn:hover { background: var(--fg); color: var(--bg); }
.lb-prev { left: max(20px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.lb-next { right: max(20px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }
.lb-close { right: max(20px, env(safe-area-inset-right, 0px)); top: calc(20px + env(safe-area-inset-top, 0px)); }
.lb-count { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; color: #fffa; margin: 0; }
.vp-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: calc(100svh - 140px); background: #000; border-radius: 8px; overflow: hidden; }
.vp-frame.is-vertical { width: auto; height: min(86svh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.vp-frame video, .vp-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.certs { position: fixed; inset: 0; z-index: 170; background: color-mix(in srgb, #000 80%, transparent); display: grid; place-items: center; padding: 40px; animation: fadeIn .3s ease-out both; }
.certs-box { position: relative; width: min(1100px, 100%); max-height: calc(100svh - 80px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.certs-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.certs-head h2 { margin: 0; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(36px, 4vw, 56px); line-height: .9; }
.certs-head .lb-btn { position: static; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chips button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cert-grid a { display: grid; gap: 10px; text-decoration: none; }
.cert-grid img { width: 100%; height: auto; aspect-ratio: 836 / 563; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); transition: transform .5s var(--ease); background: var(--bg-3); }
.cert-grid a:hover img { transform: translateY(-4px); }
.cert-grid span { font-size: 14px; line-height: 1.35; font-weight: 600; }
.toast { position: fixed; z-index: 220; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; background: var(--fg); color: var(--bg); padding: 14px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* Revelar no scroll */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  html.js .display[data-reveal] { transform: translateY(60px); clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease), opacity .4s; }
  html.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(-20% -5% -20% -5%); }
  .srv li[data-reveal]:nth-child(2n), .jobs li[data-reveal]:nth-child(2n) { transition-delay: .06s; }
  .numbers .num:nth-child(2) { transition-delay: .08s; } .numbers .num:nth-child(3) { transition-delay: .16s; } .numbers .num:nth-child(4) { transition-delay: .24s; }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1180px) {
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-copy { width: min(540px, 52%); }
  .facts { display: none; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .num:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--line); }
  .pd { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
}

/* =========================================================
   CELULAR
   ========================================================= */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .nav .lang { display: none; }
  .hero { min-height: 0; padding-top: var(--nav-h); }
  .stage { position: relative; height: min(138vw, 580px); overflow: hidden; }
  .photo { left: 0; right: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 30%; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 26%); mask-image: linear-gradient(to top, transparent 0, #000 26%); }
  .cut { display: none; }
  .name { position: absolute; bottom: 0; left: var(--gx); margin: 0; white-space: normal; line-height: .8; font-size: 24vw; }
  .name .w { display: block; }
  .meta { position: static; padding: 22px var(--gxr) 0 var(--gx); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
  .hero-copy { width: auto; margin: 0; padding: 26px var(--gxr) 0 var(--gx); gap: 24px; }
  .statement { font-size: 30px; }
  .notes { gap: 18px; }
  .hero .actions .pill { flex: 1 1 auto; }
  .hero-bar { padding: 32px var(--gxr) 40px var(--gx); }
  .live-list li:first-child { flex-basis: 100%; }
  .ticker { padding-block: 18px; }
  @media (prefers-reduced-motion: reduce) { .track li { font-size: 22px; } }

  .case-intro { grid-template-columns: 1fr; gap: 12px; }
  .films { grid-template-columns: 1fr; }
  .film-side { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 16px; }
  .film-side figcaption { display: grid; gap: 4px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num { padding: 22px 12px 0 0; }
  .num + .num { padding-left: 14px; }
  .num:nth-child(3) { padding-left: 0; }
  .num b { font-size: 25vw; }
  .num span { font-size: 14px; }
  .built { grid-template-columns: 1fr; gap: 40px; }
  .built-phone { position: relative; top: auto; }
  .phone { width: min(250px, 70vw); border-radius: 30px; }
  .built-list li { grid-template-columns: 38px minmax(0, 1fr); font-size: 21px; padding: 20px 0; }
  .built .actions .pill { flex: 1 1 auto; }

  .pd { grid-template-columns: 1fr; grid-template-rows: auto; overflow-y: auto; display: block; }
  .pd-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .pd-back { margin: 16px var(--gxr) 0 var(--gx); }
  .pd-side-scroll { overflow: visible; padding: 28px var(--gxr) 22px var(--gx); }
  .pd-side-foot { padding: 0 var(--gxr) 26px var(--gx); border-top: 0; }
  .pd-title { font-size: 17vw; }
  .pd-main { overflow: visible; }
  .pd-bar { padding: 12px var(--gxr) 12px var(--gx); }
  .pd-hint { display: none; }
  .pd-gallery { padding: 24px var(--gxr) 24px var(--gx); gap: 22px; }
  .pd-gallery.is-mobile { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .is-mobile .shot-frame { border-radius: 20px; padding: 4px; }
  .is-mobile .shot-frame img { border-radius: 16px; }
  .pd-next { margin: 24px var(--gxr) 40px var(--gx); }
  .pd-next b { font-size: 16vw; }
  .lb { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); translate: none; }
  .certs { padding: 0; place-items: stretch; }
  .certs-box { max-height: none; height: 100%; border-radius: 0; border: 0; padding: calc(20px + env(safe-area-inset-top, 0px)) var(--gxr) 30px var(--gx); }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (min-width: 721px) { .stage { display: contents; } }

/* =========================================================
   TABLET (seções novas)
   ========================================================= */
@media (max-width: 1180px) {
  .srv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integ-list { grid-template-columns: 1fr; }
  .tech-group { grid-template-columns: 1fr; gap: 14px; }
  .tech-group h3 { padding-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   CELULAR (seções novas)
   ========================================================= */
@media (max-width: 720px) {
  .about-actions .pill { flex: 1 1 calc(50% - 8px); }
  .about-actions .pill.solid { flex-basis: 100%; }
  .cv-pair { flex-basis: 100%; margin: 6px 0 0; }

  .srv { grid-template-columns: 1fr; gap: 14px; }
  .sv-visual { height: 240px; }
  .mini-phone { width: 170px; }
  .sv-visual--duo .mini-phone { width: 140px; }
  .sv-visual--duo .mini-phone:first-child { left: 12%; }
  .sv-visual--duo .mini-phone:last-child { right: 12%; }
  .sv-body { padding: 20px 20px 22px; }
  .sv h3 { font-size: 20px; }
  .chat { inset: 18px 18px 0; }
  .chat p { max-width: 88%; font-size: 12.5px; }
  .term { inset: 18px 18px 0; font-size: 11.5px; padding: 12px; }

  .steps ol { grid-template-columns: 1fr; row-gap: 40px; }
  .steps-line { display: none; }
  .steps li { border-top: 1px solid var(--line); padding-top: 28px; }
  .steps li::before { top: -6px; }

  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .wk-body { padding: 20px 20px 22px; }
  .wk-name { font-size: 13vw; }
  .integ-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .integ-list img, .integ-list .ic { width: 40px; height: 40px; }
  .integ-list a, .integ-list .plain { grid-column: 2; padding-top: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-title { font-size: 13vw; }
  .contact .actions .pill { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 48px 36px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-row { flex-direction: column; gap: 10px; }
}

/* =========================================================
   CELULAR · camada final
   Pensado pra tela de 360 a 430: blocos compactos, carrosséis
   de arrastar onde há cards lado a lado, e ação sempre à mão.
   ========================================================= */
@media (max-width: 1180px) {
  .about { grid-template-columns: 1fr; row-gap: 48px; }
  .code { max-width: 640px; }
}
@media (max-width: 720px) {
  .sec-head { margin-bottom: 30px; gap: 2px; }
  .sec-label { margin-bottom: 14px; }
  .display { font-size: clamp(46px, 15vw, 72px); line-height: .86; }
  .display.mega { font-size: 21vw; }
  .sec-sub { font-size: 16px; margin-top: 12px; }
  .pill { padding: 14px 20px; font-size: 15px; }
  .pill.lg { padding: 17px 22px; font-size: 16px; }

  /* Hero */
  .stage { height: min(112vw, 470px); }
  .name { font-size: 23.5vw; }
  .meta { padding-top: 18px; gap: 12px; font-size: 11px; }
  .hero-copy { padding-top: 20px; gap: 18px; }
  .statement { font-size: 28px; line-height: 1.1; }
  .hero-actions { gap: 10px; }
  .hero-actions .pill.solid { flex: 1 1 100%; }
  .hero-actions .pill.ghost { flex: 1 1 auto; }
  .hero-bar { padding: 26px 0 30px; display: block; }
  .live-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-inline: var(--gx) var(--gxr); }
  .live-list::-webkit-scrollbar { display: none; }
  .live-list li:first-child { flex-basis: auto; align-self: center; margin-right: 2px; }
  .live-list li { flex: none; }
  .live-list a { display: block; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; }
  .ticker { padding-block: 14px; }
  .track li { font-size: 20px; }

  /* Sobre */
  .about { padding-block: 72px 80px; row-gap: 36px; }
  .about-body { gap: 22px; }
  .about-body .display { font-size: 17vw; }
  .about-text .lead { font-size: 19px; }
  .about-text p { font-size: 16px; }
  .about-actions .pill { flex: 1 1 calc(50% - 6px); }
  .about-actions .pill.solid { flex-basis: 100%; }
  .cv-pair { flex-basis: 100%; margin: 4px 0 0; }
  .code { border-radius: 12px; margin-inline: calc(-1 * var(--gx) + 8px) calc(-1 * var(--gxr) + 8px); }
  .code-body { font-size: 12px; padding: 16px 0; }
  .code-body .ln::before { width: 2.6em; padding-right: .9em; }
  .code-foot { font-size: 10.5px; }

  /* Carrosséis de arrastar */
  .rail {
    display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gx)) calc(-1 * var(--gxr)); padding-inline: var(--gx) var(--gxr); scroll-padding-inline: var(--gx);
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > li { flex: 0 0 86%; scroll-snap-align: start; }
  .rail > li[data-reveal] { opacity: 1 !important; transform: none !important; }
  .rail-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
  .rail-count { color: var(--muted); font-variant-numeric: tabular-nums; }
  .rail-dots { display: flex; gap: 6px; }
  .rail-dots i { width: 18px; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s, width .3s; }
  .rail-dots i.on { background: var(--accent); width: 28px; }

  /* Case */
  .case { padding-block: 72px 84px; }
  .case-intro { margin-top: 26px; }
  .statement.sm { font-size: 21px; }
  .films { margin-top: 40px; gap: 16px; }
  .numbers { margin-top: 56px; }
  .num b { font-size: 21vw; }
  .built { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; margin-top: 64px; align-items: start; }
  .built-phone { position: sticky; top: calc(var(--nav-h) + 16px); }
  .phone { width: 112px; border-radius: 18px; outline-offset: 5px; }
  .built-list .sec-label { margin-bottom: 10px; }
  .built-list li { grid-template-columns: 26px minmax(0, 1fr); font-size: 16.5px; line-height: 1.2; padding: 15px 0; gap: 4px; }
  .built-list li::before { font-size: 10.5px; }
  .built-list .stack { margin: 20px 0; font-size: 11px; }
  .built .actions { grid-column: 1 / -1; }
  .built .actions .pill { flex: 1 1 100%; }

  /* Projetos */
  .work { padding-block: 72px 80px; }
  .work-grid { gap: 14px; }
  .wk-cover { aspect-ratio: 16 / 11; }
  .wk-body { padding: 18px 18px 20px; gap: 10px 12px; }
  .wk-name { font-size: 11.5vw; }
  .wk-arrow { width: 42px; height: 42px; }
  .wk-ctx { font-size: 14.5px; }

  /* Serviços */
  .services { padding-block: 72px 80px; }
  .sv-visual { height: 210px; }
  .mini-phone { width: 160px; }
  .sv-visual--duo .mini-phone { width: 128px; }
  .sv-visual--duo .mini-phone:first-child { left: 10%; }
  .sv-visual--duo .mini-phone:last-child { right: 10%; }
  .chat { inset: 16px 14px 0; }
  .term { inset: 16px 14px 0; font-size: 10.5px; padding: 10px; gap: 7px; }
  .term p { gap: 8px; }

  /* Processo */
  .process { padding-block: 72px 80px; }
  .steps ol { row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "n h" "n p"; column-gap: 10px; row-gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
  .steps li::before { display: none; }
  .steps b { grid-area: n; font-size: 46px; color: var(--fg); }
  .steps .ic { display: none; }
  .steps h3 { grid-area: h; font-size: 19px; margin: 0; }
  .steps p { grid-area: p; font-size: 15px; }

  /* Trajetória */
  .path { padding-block: 72px 80px; }

  /* Tecnologias e integrações */
  .tech { padding-block: 0 80px; }
  .tech-groups { gap: 26px; }
  .tech-group { padding-top: 18px; gap: 12px; }
  .tech-grid { gap: 7px; }
  .tech-grid li { padding: 7px 12px 7px 9px; font-size: 13px; gap: 8px; }
  .tech-grid img { width: 20px; height: 20px; }
  .integ { margin-top: 56px; }
  .integ-list { gap: 0; border-top: 1px solid var(--line); }
  .integ-list li { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; }
  .integ-list img, .integ-list .ic { width: 38px; height: 38px; padding: 7px; }
  .integ-list span { font-size: 14px; }
  .integ-list a, .integ-list .plain { grid-column: 2; font-size: 11px; }

  /* Contato */
  .contact { padding-block: 72px 64px; }
  .contact-title { font-size: 12.4vw; line-height: .98; }
  .contact-row { margin-top: 24px; gap: 22px; }
  .contact-row p { font-size: 16px; }
  .contact-cards { margin-top: 40px; gap: 10px; }
  .contact-cards li { padding: 16px 18px; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; }
  .contact-cards .ic { grid-row: 1 / 3; margin: 0; }

  /* Rodapé */
  .foot-grid { padding-block: 40px 28px; gap: 28px 20px; }
  .foot-col h3 { margin-bottom: 10px; }
  .foot-col ul { gap: 8px; }
  .foot-col a { font-size: 15px; }

  /* WhatsApp flutuante */
  .fab {
    display: grid; place-items: center; position: fixed; z-index: 95; width: 56px; height: 56px; border-radius: 50%;
    right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: #1fa855; box-shadow: 0 12px 30px -8px #000c; opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
    transition: opacity .3s, transform .4s var(--ease);
  }
  .fab img { width: 26px; height: 26px; }
  .fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 380px) {
  .statement { font-size: 26px; }
  .built { grid-template-columns: 92px minmax(0, 1fr); }
  .phone { width: 92px; }
  .built-list li { font-size: 15px; }
}

.cv-two a { text-decoration: none; font-weight: 700; font-size: 17px; }
.cv-two a:hover { color: var(--accent); }

/* =========================================================
   RODADA 8 · detalhe e acabamento
   ========================================================= */

/* Títulos palavra a palavra */
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.is-split .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html.js .display[data-reveal], html.js .contact-title[data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none; }
  html.js .is-split[data-reveal] .w > span { transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms); }
  html.js .is-split[data-reveal].is-in .w > span { transform: none; }
}

/* Barra de leitura */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 210; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: 0 50%; transform: scaleX(0); }


/* ---------- Filmes ---------- */
.films { grid-template-columns: minmax(0, 39fr) minmax(0, 11fr); align-items: start; }
.film { cursor: pointer; }
.film-frame { border-radius: 10px; isolation: isolate; }
.film-main .film-frame > img { transform: scale(1.12); will-change: transform; }
.film-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0c0b0aee 0%, #0c0b0a99 38%, transparent 70%), linear-gradient(0deg, #0c0b0acc 0%, transparent 45%); pointer-events: none; }
.film-side .film-shade { background: linear-gradient(0deg, #0c0b0aee 0%, transparent 50%); }
.film-copy { position: absolute; z-index: 2; left: clamp(20px, 3.2vw, 48px); top: clamp(20px, 3.2vw, 44px); max-width: 46%; display: grid; gap: 14px; }
.film-kicker { display: inline-flex; align-items: center; gap: 10px; color: #f2efe9; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 4px #ff3b3033; animation: blink 1.6s ease-in-out infinite; }
.film-h { margin: 0; color: #f6f3ee; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(44px, 5.6vw, 92px); line-height: .84; letter-spacing: -.005em; }
.film-h em { font-style: normal; color: var(--accent); }
.film-sub { margin: 0; color: #d9d4cc; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.45; max-width: 34ch; }
.film-cta { position: absolute; z-index: 3; left: clamp(20px, 3.2vw, 48px); bottom: clamp(20px, 3vw, 40px); display: inline-flex; align-items: center; gap: 16px; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; text-align: left; }
.film-cta-ic { width: clamp(58px, 5.4vw, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 0 0 0 #ff563166; animation: ring 2.4s ease-out infinite; }
.film-cta-ic svg { width: 36%; fill: currentColor; margin-left: 6%; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 #ff563170; } 80%, 100% { box-shadow: 0 0 0 22px #ff563100; } }
.film-cta-txt { display: grid; gap: 4px; }
.film-cta-txt b { font-weight: 800; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.01em; }
.film-cta-txt .label { color: #d9d4cc; }
.film-cta--sm { left: 16px; bottom: 16px; gap: 12px; }
.film-cta--sm .film-cta-ic { width: 46px; }
.film-cta--sm b { font-size: 15px; }
.film-tag { position: absolute; z-index: 3; left: 14px; top: 14px; background: #0c0b0acc; color: #fff; padding: 7px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.film-len, .film-play, .film-main figcaption { display: none; }
.film:hover .film-frame > img { transform: scale(1.16); }
.film:hover .film-cta-ic { background: var(--fg); }
.chapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: ch; }
.chapters button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 6px; width: 100%; height: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); transition: border-color .25s, background .25s, transform .35s var(--ease); }
.chapters button:hover, .chapters button:focus-visible { border-color: var(--accent); background: var(--bg-3); transform: translateY(-2px); }
.chapters time { font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.chapters span { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--fg); }

/* ---------- Player ---------- */
.pl { position: fixed; inset: 0; z-index: 260; background: #000; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.pl.in { opacity: 1; }
.pl-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: #000; overflow: hidden; }
.pl-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl.vertical .pl-video { height: 100%; width: auto; max-width: 100%; }
.pl-hit { all: unset; position: absolute; inset: 0; cursor: pointer; }
.pl:not(.ui).is-playing .pl-hit { cursor: none; }
.pl-top, .pl-bottom { position: absolute; left: 0; right: 0; z-index: 3; transition: opacity .35s, transform .45s var(--ease); }
.pl-top { top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: calc(18px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) 60px max(22px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, #000c, transparent); color: #fff; }
.pl-top > div { display: grid; gap: 4px; }
.pl-kicker { color: var(--accent); }
.pl-title { font-size: clamp(16px, 1.6vw, 22px); font-weight: 800; letter-spacing: -.01em; }
.pl-bottom { bottom: 0; padding: 70px max(22px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); background: linear-gradient(0deg, #000d, transparent); color: #fff; }
.pl:not(.ui).is-playing .pl-top { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.pl:not(.ui).is-playing .pl-bottom { opacity: 0; transform: translateY(12px); pointer-events: none; }
.pl-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s, color .2s; }
.pl-btn svg { width: 22px; height: 22px; }
.pl-btn:hover, .pl-btn:focus-visible { background: #ffffff1f; }
.pl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pl-x { background: #ffffff14; }
.pl-pp { width: 48px; height: 48px; background: #fff; color: #000; }
.pl-pp:hover, .pl-pp:focus-visible { background: var(--accent); color: var(--on-accent); }
.pl-speed { width: auto; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.pl-row { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.pl-sp { flex: 1; }
.pl-time { color: #ffffffcc; margin-left: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-time b { color: #fff; font-weight: 700; }
.pl-chap { color: #ffffff99; margin-left: 14px; padding-left: 14px; border-left: 1px solid #ffffff33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.pl-vol { display: flex; align-items: center; }
.pl-volr { width: 0; opacity: 0; transition: width .3s var(--ease), opacity .3s; accent-color: var(--accent); }
.pl-vol:hover .pl-volr, .pl-volr:focus { width: 84px; opacity: 1; margin-right: 6px; }
.pl-bar { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pl-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pl-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: #ffffff33; transition: height .2s; }
.pl-bar:hover .pl-track, .pl-bar.hov .pl-track { height: 7px; }
.pl-buf, .pl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.pl-buf { background: #ffffff4d; }
.pl-fill { background: linear-gradient(90deg, var(--accent), var(--glow)); }
.pl-ticks i { position: absolute; top: -1px; bottom: -1px; width: 3px; background: #000; transform: translateX(-1px); }
.pl-knob { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%) scale(0); transition: transform .2s; box-shadow: 0 0 0 4px #ff563155; }
.pl-bar:hover .pl-knob, .pl-bar.hov .pl-knob, .pl-bar:focus-visible .pl-knob { transform: translate(-50%, -50%) scale(1); }
.pl-tip { position: absolute; bottom: 30px; transform: translateX(-50%); background: #fff; color: #000; padding: 7px 11px; border-radius: 8px; display: grid; gap: 1px; text-align: center; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pl-tip b { font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-tip span { font-size: 11px; color: #555; font-weight: 600; }
.pl-tip span:empty { display: none; }
.pl-bar:hover .pl-tip, .pl-bar.hov .pl-tip { opacity: 1; }
.pl:not(.has-ch) .pl-chbtn, .pl:not(.has-ch) .pl-chap { display: none; }
.pl-flash { position: absolute; z-index: 2; width: 86px; height: 86px; border-radius: 50%; background: #0009; color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.pl-flash svg { width: 36px; height: 36px; }
.pl-flash.on { animation: plFlash .6s ease-out; }
@keyframes plFlash { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.3); } }
.pl-spin { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #ffffff33; border-top-color: var(--accent); opacity: 0; pointer-events: none; }
.pl.loading .pl-spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pl-resume { position: absolute; z-index: 4; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 26px 28px; border-radius: 16px; background: #0c0b0ae6; border: 1px solid #ffffff22; color: #fff; }
.pl-resume p { margin: 0; color: #ffffffcc; }
.pl-resume div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pl-chip { all: unset; cursor: pointer; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.pl-chip.ghost { background: none; color: #fff; box-shadow: inset 0 0 0 1px #ffffff55; }
.pl-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pl-list { position: absolute; z-index: 5; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 110px; width: min(360px, calc(100% - 32px)); max-height: 60%; overflow-y: auto; padding: 16px; border-radius: 14px; background: #121110f2; border: 1px solid #ffffff1f; color: #fff; }
.pl-list > p { margin: 0 0 10px; color: #ffffff99; }
.pl-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pl-list button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; }
.pl-list button:hover, .pl-list button:focus-visible { background: #ffffff14; }
.pl-list .label { color: #ffffff66; }
.pl-list b { font-size: 14px; font-weight: 600; }
.pl-list time { font-size: 12px; color: #ffffff99; font-variant-numeric: tabular-nums; }
.pl-list li.on button { background: #ff56311f; }
.pl-list li.on b { color: var(--accent); }

/* ---------- Serviços: visuais ---------- */
.sv-visual { height: 280px; }
.sv-visual--fan .mini-phone { position: absolute; top: 30px; width: 150px; transition: transform .6s var(--ease); }
.sv-visual--fan .mini-phone:nth-child(1) { left: 50%; translate: -132% 0; rotate: -8deg; top: 52px; }
.sv-visual--fan .mini-phone:nth-child(2) { left: 50%; translate: -50% 0; z-index: 2; }
.sv-visual--fan .mini-phone:nth-child(3) { left: 50%; translate: 32% 0; rotate: 8deg; top: 52px; }
.sv:hover .sv-visual--fan .mini-phone:nth-child(1) { transform: translateX(-10px) rotate(-3deg); }
.sv:hover .sv-visual--fan .mini-phone:nth-child(3) { transform: translateX(10px) rotate(3deg); }
.sv-visual--fan .mini-phone, .sv-visual--duo .mini-phone, .sv-visual--pay .mini-phone { padding: 5px; border-radius: 22px; }
.sv-visual--fan .mini-phone img, .sv-visual--duo .mini-phone img, .sv-visual--pay .mini-phone img { border-radius: 17px; }
.wa { position: absolute; left: 22px; right: 22px; top: 22px; bottom: -10px; border-radius: 14px 14px 0 0; overflow: hidden; background: #efeae2; box-shadow: 0 20px 50px -20px #000; display: flex; flex-direction: column; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #008069; color: #fff; }
.wa-head svg { width: 18px; height: 18px; flex: none; }
.wa-head svg:nth-last-child(2) { margin-left: auto; }
.wa-av { width: 30px; height: 30px; border-radius: 50%; background: #0c0b0a; color: #e7c48b; display: grid; place-items: center; font: 700 14px Georgia, serif; flex: none; }
.wa-who { display: grid; line-height: 1.15; }
.wa-who b { font-size: 13.5px; font-weight: 600; }
.wa-who small { font-size: 11px; opacity: .85; }
.wa-body { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; background-color: #efeae2; background-image: radial-gradient(#d6cfc4 1px, transparent 1.2px); background-size: 14px 14px; }
.wa-day { align-self: center; font-size: 10.5px; color: #54656f; background: #fff; padding: 3px 9px; border-radius: 7px; margin-bottom: 2px; box-shadow: 0 1px 0 #0000000d; }
.wa-body p { position: relative; margin: 0; max-width: 82%; padding: 6px 8px 5px; border-radius: 8px; font-size: 12.5px; line-height: 1.35; color: #111b21; box-shadow: 0 1px 0 #00000014; display: grid; }
.wa-body time { justify-self: end; font-size: 10px; color: #667781; margin-top: 1px; display: inline-flex; align-items: center; gap: 3px; }
.wa-in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.wa-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.tk { width: 15px; height: 9px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5.5 3.8 8.3 9.5 1.8M6.2 8.3 12 1.8' fill='none' stroke='%2353bdeb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wa-typing { align-self: flex-start; background: #fff; border-top-left-radius: 0; display: flex !important; gap: 4px; padding: 9px 11px !important; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: typing 1.2s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.sv-visual--wa::after { background: linear-gradient(to top, var(--bg-2), transparent 22%); }
.mini-phone--corner { position: absolute; right: 18px; bottom: -40px; width: 104px; padding: 4px; border-radius: 18px; z-index: 2; }
.mini-phone--corner img { border-radius: 14px; }
.sv-visual--pay .mini-phone { position: absolute; left: 50%; top: 26px; translate: -50% 0; width: 170px; }
.pay-toast { position: absolute; z-index: 2; right: 14px; top: 46px; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 12px; background: #fff; color: #111; box-shadow: 0 16px 34px -12px #000c; animation: toast 5s var(--ease) infinite; }
.pay-toast span:last-child { display: grid; line-height: 1.2; }
.pay-toast b { font-size: 12.5px; }
.pay-toast small { font-size: 11px; color: #666; }
.pay-ic { width: 28px; height: 28px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; }
.pay-ic svg { width: 16px; height: 16px; }
.pay-ic--card { background: #111; }
.pay-toast--b { right: auto; left: 14px; top: 150px; animation-delay: 2.5s; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 8%, 45% { opacity: 1; transform: none; } 55%, 100% { opacity: 0; transform: translateY(-6px); } }
.sv-body { gap: 10px; }

/* ---------- Projetos ---------- */
.wk { position: relative; }
.wk-cover img { transform: scale(1.12); will-change: transform; }
.wk:hover .wk-cover img { transform: scale(1.16); }
.wk-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.wk-foot span:first-child { color: var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  html.js .work-grid > li .wk-cover { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
  html.js .work-grid > li.is-in .wk-cover { clip-path: inset(0 0 0 0); }
  html.js .work-grid > li:nth-child(2) .wk-cover { transition-delay: .12s; }
  html.js .work-grid > li:nth-child(4) .wk-cover { transition-delay: .12s; }
}

/* ---------- Trajetória ---------- */
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.path-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.path-stats li { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); min-width: 150px; }
.path-stats b { font-weight: 900; font-variation-settings: "wdth" 62; font-size: 46px; line-height: .85; font-variant-numeric: tabular-nums; }
.path-stats span { color: var(--muted); font-size: 13px; line-height: 1.3; max-width: 18ch; }
.tl { position: relative; }
.tl-rail { position: absolute; left: 175px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), var(--glow)); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 14px var(--accent); }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.job { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 50px; align-items: start; }
.tl-dot { position: absolute; left: 170px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); transition: background .4s, border-color .4s, box-shadow .4s; z-index: 1; }
.job.lit .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px #ff563126; }
.job-when { display: grid; gap: 4px; padding-top: 20px; text-align: right; color: var(--fg); }
.job-when small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: .01em; }
.job-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); padding: 22px 24px; display: grid; gap: 12px; transition: border-color .3s; }
.job:hover .job-card, .job.is-open .job-card { border-color: var(--dim); }
.job-top { display: flex; align-items: center; gap: 16px; }
.job-mark { width: 64px; height: 48px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.job-mark--logo { background: #f3f1ec; }
.job-mark--logo img { width: 82%; height: auto; }
.job-mark--me { background: var(--accent); color: var(--on-accent); font-weight: 900; font-variation-settings: "wdth" 70; font-size: 20px; border-color: var(--accent); }
.job-id { flex: 1; min-width: 0; }
.job-id h3 { margin: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.job-id p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); white-space: nowrap; }
.badge--up { color: var(--glow); border-color: #ffb07a55; }
.badge--done { color: var(--muted); }
.job-sum { margin: 0; color: var(--muted); font-size: 16px; }
.job-more { all: unset; cursor: pointer; justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); padding: 6px 0; }
.job-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease); }
.job-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.job-more:hover span { text-decoration: underline; text-underline-offset: 4px; }
.job-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.job-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.job-detail > div { overflow: hidden; display: grid; gap: 14px; }
.job.is-open .job-detail { grid-template-rows: 1fr; }
.job-bullets { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.job-bullets li { position: relative; padding-left: 20px; color: var(--fg); font-size: 15px; line-height: 1.5; }
.job-bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--accent); }
.metric { display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); justify-self: start; }
.metric b { font-weight: 900; font-variation-settings: "wdth" 70; font-size: 28px; color: var(--accent); }
.metric span { color: var(--muted); font-size: 14px; }

/* Formação */
.edu { margin-top: clamp(80px, 9vw, 130px); display: block; }
.edu-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.edu-title { margin: 0; font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: clamp(40px, 5vw, 72px); line-height: .85; }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.tabs button { all: unset; cursor: pointer; position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px; color: var(--muted); transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--bg); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabs-ink { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--fg); transition: transform .45s var(--ease), width .45s var(--ease); }
.edu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.edu-grid li { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.edu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.edu-logo { font-weight: 900; font-variation-settings: "wdth" 62; font-size: 38px; line-height: .9; letter-spacing: .01em; }
.edu-grid b { font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.edu-grid p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.edu-prog { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.edu-prog i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--accent), var(--glow)); }
.chips-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips-filter button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.chips-filter button i { font-style: normal; opacity: .6; font-variant-numeric: tabular-nums; }
.chips-filter button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chips-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cert-grid li { animation: shotIn .55s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.cert-grid a { display: grid; gap: 8px; text-decoration: none; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); height: 100%; box-sizing: border-box; transition: border-color .3s, transform .4s var(--ease); }
.cert-grid a:hover { border-color: var(--dim); transform: translateY(-3px); }
.cert-img { display: block; overflow: hidden; border-radius: 7px; background: var(--bg-3); aspect-ratio: 836 / 563; }
.cert-img img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; transition: transform .6s var(--ease); }
.cert-grid a:hover .cert-img img { transform: scale(1.05); }
.cert-cat { color: var(--accent); margin-top: 4px; }
.cert-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cert-open { color: var(--muted); }
.cert-more { margin-top: 20px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-copy { max-width: 60%; }
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-rail { left: 15px; }
  .tl-dot { left: 10px; }
  .job { grid-template-columns: 1fr; gap: 10px; padding-left: 42px; }
  .job-when { text-align: left; padding-top: 0; display: flex; gap: 10px; align-items: baseline; }
}
@media (max-width: 720px) {
  .films { grid-template-columns: 1fr; }
  .film-main .film-frame { aspect-ratio: 4 / 5; }
  .film-main .film-frame > img { object-position: 62% 50%; }
  .film-shade { background: linear-gradient(0deg, #0c0b0af2 0%, #0c0b0a99 45%, #0c0b0a33 75%, #0c0b0a66 100%); }
  .film-copy { max-width: none; left: 18px; right: 18px; top: auto; bottom: 108px; gap: 10px; }
  .film-h { font-size: 15vw; }
  .film-sub { font-size: 14px; }
  .film-cta { left: 18px; right: 18px; bottom: 20px; }
  .chapters { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gx)) calc(-1 * var(--gxr)); padding-inline: var(--gx) var(--gxr); }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters li { scroll-snap-align: start; }
  .film-side { display: block; }
  .film-side .film-frame { aspect-ratio: 16 / 11; }
  .film-side .film-frame > img { object-position: 50% 20%; }
  .pl-row { gap: 0; }
  .pl-row [data-act="back"], .pl-row [data-act="fwd"], .pl-vol, .pl-chap { display: none; }
  .pl-btn { width: 40px; height: 40px; }
  .pl-list { bottom: 96px; max-height: 55%; }
  .sv-visual { height: 230px; }
  .sv-visual--fan .mini-phone { width: 118px; top: 22px; }
  .sv-visual--fan .mini-phone:nth-child(1), .sv-visual--fan .mini-phone:nth-child(3) { top: 40px; }
  .wa { left: 12px; right: 12px; top: 14px; }
  .wa-body p { font-size: 11.5px; }
  .sv-visual--pay .mini-phone { width: 140px; }
  .pay-toast { right: 8px; top: 30px; }
  .pay-toast--b { left: 8px; top: 128px; }
  .mini-phone--corner { width: 82px; right: 10px; }
  .path-stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .path-stats li { min-width: 0; padding: 12px; }
  .path-stats b { font-size: 34px; }
  .path-stats span { font-size: 11.5px; }
  .job { padding-left: 34px; }
  .tl-rail { left: 9px; }
  .tl-dot { left: 4px; top: 4px; }
  .job-when { flex-wrap: wrap; }
  .job-card { padding: 16px; gap: 10px; }
  .job-top { gap: 12px; flex-wrap: wrap; }
  .job-mark { width: 50px; height: 40px; }
  .job-id h3 { font-size: 18px; }
  .job-id p { font-size: 13.5px; }
  .badge { order: 3; }
  .job-sum, .job-bullets li { font-size: 14.5px; }
  .edu-head { margin-bottom: 20px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; text-align: center; padding: 10px 8px; font-size: 11px; }
  .edu-grid { grid-template-columns: 1fr; }
  .edu-grid li { padding: 18px; }
  .chips-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gx)) calc(-1 * var(--gxr)); padding-inline: var(--gx) var(--gxr); }
  .chips-filter::-webkit-scrollbar { display: none; }
  .chips-filter button { flex: none; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cert-name { font-size: 13px; }
  .cert-more { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .film-cta-ic, .rec, .pay-toast, .wa-typing i { animation: none; }
}
@media (max-width: 720px) {
  .job-id { flex: 1 1 calc(100% - 62px); }
  .badge { margin-left: 62px; }
  .tabs button { font-size: 10.5px; letter-spacing: .02em; }
}

/* =========================================================
   RODADA 9 · intro do terminal, fundo vivo, sobre, história
   ========================================================= */
.boot { display: none; }
html.intro .boot, .boot.out {
  display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 300; background: var(--bg);
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  transition: opacity .5s ease;
}
.boot.out { opacity: 0; pointer-events: none; }
html.intro .hero > *:not(.hero-bg) { opacity: 0; }
.boot-wrap { width: 100%; max-width: 800px; position: relative; }
.boot-term { border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.boot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.boot-bar i { width: 12px; height: 12px; border-radius: 999px; background: #ef4444; }
.boot-bar i:nth-child(2) { background: #eab308; } .boot-bar i:nth-child(3) { background: #22c55e; }
.boot-bar span { margin-left: 12px; font: 400 14px "JetBrains Mono", ui-monospace, Consolas, monospace; color: var(--muted); }
.boot-body { padding: 24px; font: 400 15.2px/1.5 "JetBrains Mono", ui-monospace, Consolas, monospace; min-height: 200px; color: var(--fg); }
.boot-lines { display: grid; gap: 8px; margin-bottom: 12px; }
.boot-line { color: var(--accent); text-shadow: 0 0 20px #ff563180; opacity: 0; transform: translateX(-20px); animation: bootLine .3s ease forwards; }
@keyframes bootLine { to { opacity: 1; transform: none; } }
.boot-line.dim { color: #ff563199; text-shadow: none; }
.boot-cur { display: flex; align-items: center; gap: 8px; }
.boot-cur span { color: var(--muted); }
.boot-cur i { display: inline-block; width: 12px; height: 24px; background: var(--accent); margin-left: 4px; animation: blink 1s step-end infinite; }
.boot-select { margin-top: 18px; }
.boot-select p { margin: 0 0 14px; }
.boot-langs { display: grid; gap: 12px; }
.boot-langs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; cursor: pointer;
  border-radius: 10px; padding: 12px 18px; background: transparent; border: 1px solid var(--accent); color: var(--accent);
  font: 600 15.2px "JetBrains Mono", ui-monospace, Consolas, monospace;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.boot-langs button:hover, .boot-langs button:focus-visible { background: #ff56311a; box-shadow: 0 0 24px -6px #ff563199; }
.boot-langs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.boot-langs b { font-weight: 600; }
.boot-code { position: absolute; margin: 0; font: 400 12px/1.35 "JetBrains Mono", ui-monospace, Consolas, monospace; color: var(--muted); opacity: .3; white-space: pre; display: none; }
@media (min-width: 640px) { .boot-langs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .boot-code { display: block; }
  .boot-code--l { left: 40px; bottom: 10px; }
  .boot-code--r { right: 40px; top: 10px; }
}
@media (max-width: 720px) { .boot-body { padding: 18px; font-size: 13.5px; } }

/* Fundo vivo do hero */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-bg { z-index: 0; opacity: 0; animation: fieldIn 2s ease-out .4s forwards; }
@keyframes fieldIn { to { opacity: 1; } }
html.intro .hero-bg { animation: none; }
.hero .stage { position: relative; }

/* Sobre: marcos */
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); min-width: 0; }
.about-stats li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.about-stats b { font-weight: 900; font-variation-settings: "wdth" 62; font-size: clamp(64px, 7vw, 116px); line-height: .82; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.about-stats b small { font-size: .45em; color: var(--muted); font-variation-settings: "wdth" 80; }
.about-stats li > span { color: var(--muted); font-size: 16px; line-height: 1.4; }
.about-stats li:hover b { color: var(--accent); transition: color .3s; }

/* Trajetória contada */
.job-story { margin: 0; color: #cfcac2; font-size: 16.5px; line-height: 1.6; max-width: 72ch; }
.job-h { margin: 6px 0 -2px; color: var(--muted); }
.job-bullets { border-top: 0; padding-top: 0; }
.job-detail > div { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 0; }
.job.is-open .job-detail > div { padding-top: 14px; }

@media (max-width: 720px) {
  .boot-code { display: none; }
  .boot-body { padding: 18px 16px 20px; font-size: 13px; min-height: 210px; }
  .boot-langs { grid-template-columns: 1fr; }
  .boot-langs kbd { display: none; }
  .about-stats li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .about-stats b { font-size: 18vw; }
  .job-story { font-size: 15px; }
}

/* =========================================================
   RODADA 10 · Sobre com retrato
   ========================================================= */
.about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.about-photo { display: block; margin: 0; position: relative; overflow: hidden; aspect-ratio: 1650 / 2048; max-width: 100%; border-radius: 10px; background: #0c0b0a; position: sticky; top: calc(var(--nav-h) + 24px); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.about-photo.is-in img { transform: none; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #0c0b0aee 0%, transparent 30%); pointer-events: none; }
.about-photo figcaption { position: absolute; z-index: 1; left: 18px; bottom: 16px; display: flex; align-items: center; background: #0c0b0acc; padding: 9px 14px; border-radius: 999px; }
.about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 0; margin-top: 10px; }
.about-stats li { grid-template-columns: 1fr; gap: 8px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.about-stats b { font-size: clamp(38px, 3.6vw, 54px); }
.about-stats li > span { font-size: 14.5px; }
@media (max-width: 1180px) {
  .about { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}
@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; row-gap: 32px; }
  .about-photo { position: relative; top: auto; aspect-ratio: 4 / 4.4; }
  .about-photo img { object-position: 40% 25%; }
  .about-stats li { padding: 14px 14px 16px; }
  .about-stats b { font-size: 36px; }
  .about-stats li > span { font-size: 13px; }
}

/* Sobre: dados embaixo da foto */
.about-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.about-side .about-photo { position: relative; top: auto; }
.about-side .about-stats { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-side .about-stats li.wide { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.about-side .about-stats b { font-size: clamp(34px, 3vw, 46px); }
@media (max-width: 720px) {
  .about-side .about-stats b { font-size: 32px; }
}
@media (min-width: 721px) {
  .about-body { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
}
@media (max-width: 720px) {
  .about-side { display: contents; }
  .about-side .about-photo { order: 1; }
  .about-body { order: 2; }
  .about-side .about-stats { order: 3; }
}

/* =========================================================
   RODADA 11 · menu do celular, hero sem nome no celular, textos justificados
   ========================================================= */
.lang-circle { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 50%; }
.menu-btn i { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--fg); }
.menu-btn:focus-visible, .lang-circle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: calc(70px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
  background: #0c0b0ab8; -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; transition: opacity .35s ease; overflow-y: auto;
}
.menu.is-open { opacity: 1; }
.menu-x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.menu-x svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-in { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.menu-brand { margin: 0 0 6px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; font-variation-settings: "wdth" 112; color: var(--accent); }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu-links li { overflow: visible; }
.menu-links a { display: block; text-decoration: none; padding: 6px 18px; font-weight: 700; font-size: 20px; line-height: 1.3; text-transform: none; font-variation-settings: "wdth" 100; letter-spacing: -.01em; color: var(--fg); border-radius: 10px; transition: color .2s, background .2s; }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--accent); background: #ff563114; }
.menu-in > * { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .5s var(--ease); }
.menu.is-open .menu-in > * { opacity: 1; transform: none; }
.menu.is-open .menu-in > :nth-child(2) { transition-delay: .05s; } .menu.is-open .menu-in > :nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu-in > :nth-child(4) { transition-delay: .15s; } .menu.is-open .menu-in > :nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu-links a { animation: none; }
.menu-social { display: flex; gap: 18px; }
.menu-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--fg); transition: color .2s, background .2s; }
.menu-social a:hover { color: var(--accent); background: #ff563114; }
.menu-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-cta { margin-top: 4px; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
}
@media (max-width: 720px) {
  .lang-circle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; padding: 0; font-size: 12px; }
  .nav-right { gap: 6px; }
  .name { display: none; }
  .stage { height: min(118vw, 500px); }
  .photo { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%); }
}

/* Textos de descrição justificados (títulos não) */
.about-text p, .sec-sub, .sv p, .wk-ctx, .job-story, .job-bullets li, .steps p, .integ-list span, .edu-grid p, .contact-row p, .film-sub, .pd-desc p, .cert-name {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}
.about-text .lead { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.cert-name { text-align: left; hyphens: manual; }
.menu { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.menu[hidden] { display: none; }
.menu-in { margin: auto; }

/* Player: qualidade */
.pl-q { position: relative; }
.pl-q[hidden] { display: none; }
.pl-qmenu { position: absolute; right: 0; bottom: 52px; list-style: none; margin: 0; padding: 6px; min-width: 150px; border-radius: 12px; background: #121110f2; border: 1px solid #ffffff1f; display: grid; gap: 2px; z-index: 6; }
.pl-qmenu[hidden] { display: none; }
.pl-qmenu button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.pl-qmenu button:hover, .pl-qmenu button:focus-visible { background: #ffffff14; }
.pl-qmenu button.on { color: var(--accent); }
@media (max-width: 720px) { .pl-row .pl-q .pl-speed { padding: 0 8px; } }
/* Player: o quadro inteiro sempre cabe na tela (com as duas barras do formato cinema) */
.pl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pl.vertical .pl-video { width: 100%; height: 100%; }

/* =========================================================
   RODADA 12 · cabeçalho e menu no estilo app (como o Abdou's)
   ========================================================= */
/* cabeçalho sempre visível, translúcido e desfocado; a faixa acima dele (barra de status) fica coberta */
.nav { transform: none !important; }
.nav.is-solid { background: #0c0b0ac7; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid #efede814; }
.nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; background: var(--bg); }
html.menu-open .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.m-cta { display: none; }
.menu-btn { width: 46px; height: 46px; border: 1px solid #efede833; border-radius: 50%; background: #0c0b0a66; gap: 6px; align-items: flex-end; padding: 0 13px; transition: border-color .25s, background .25s; }
.menu-btn i { height: 2px; border-radius: 2px; transition: transform .45s var(--ease), width .45s var(--ease), background .3s; }
.menu-btn i:first-child { width: 20px; background: var(--fg); }
.menu-btn i:last-child { width: 11px; background: var(--accent); }
.menu-btn:hover { border-color: #efede866; }
.menu-btn[aria-expanded="true"] { align-items: center; padding: 0; gap: 0; }
.menu-btn[aria-expanded="true"] i:first-child { width: 20px; transform: translateY(1px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { width: 20px; background: var(--fg); transform: translateY(-1px) rotate(-45deg); }

/* menu: tela cheia sólida, numerado, ações no rodapé */
.menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 28px) var(--gxr) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gx);
  background: radial-gradient(120% 70% at 85% 0%, #2a1610 0%, transparent 55%), var(--bg);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 0 0 100vmax var(--bg);
  opacity: 0; transition: opacity .35s ease; overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu-in { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 100%; text-align: left; align-items: stretch; flex: 1; }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.menu-links li { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu-links a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-radius: 0; background: none; text-decoration: none; color: var(--fg); font-weight: 900; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: clamp(34px, 10vw, 54px); line-height: 1; letter-spacing: -.005em; }
.menu-links a .n { font-size: 12px; font-weight: 600; font-variation-settings: "wdth" 115; letter-spacing: .1em; color: var(--accent); min-width: 22px; transform: translateY(-.9em); }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--accent); background: none; }
.menu-links li > a { transform: translateY(105%); transition: transform .6s var(--ease); }
.menu.is-open .menu-links li > a { transform: none; }
.menu.is-open .menu-links li:nth-child(2) > a { transition-delay: .04s; } .menu.is-open .menu-links li:nth-child(3) > a { transition-delay: .08s; }
.menu.is-open .menu-links li:nth-child(4) > a { transition-delay: .12s; } .menu.is-open .menu-links li:nth-child(5) > a { transition-delay: .16s; }
.menu.is-open .menu-links li:nth-child(6) > a { transition-delay: .2s; } .menu.is-open .menu-links li:nth-child(7) > a { transition-delay: .24s; }
.menu-in > * { opacity: 1; transform: none; }
.menu-foot { display: grid; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity .45s ease .25s, transform .55s var(--ease) .25s; }
.menu.is-open .menu-foot { opacity: 1; transform: none; }
.menu-foot .pill { width: 100%; justify-content: center; padding: 16px 20px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.menu-social { display: flex; gap: 6px; }

/* barra de ações fixa embaixo */
.dock { display: none; }
@media (max-width: 1180px) {
  .nav .lang, .nav-cta { display: none; }
  .m-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; text-decoration: none; }
  .nav-right { gap: 8px; }
}
@media (max-width: 720px) {
  .fab { display: none !important; }
  .dock {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; position: fixed; z-index: 95; left: 0; right: 0; bottom: 0;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: #0c0b0ad9; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-top: 1px solid #efede814;
    box-shadow: 0 100px 0 0 var(--bg);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
  .dock-main { background: var(--accent); color: var(--on-accent); }
  .dock-main img { filter: brightness(0); }
  .dock-alt { border: 1px solid #efede84d; color: var(--fg); }
  main { padding-bottom: 0; }
  .footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* overlays cobrem a tela inteira, inclusive atrás das barras do navegador */
.pd, .pl, .lb { box-shadow: 0 0 0 100vmax var(--bg); }
.pl { box-shadow: 0 0 0 100vmax #000; }
html.menu-open .dock { transform: translateY(110%); }
@media (max-width: 1180px) {
  .nav { gap: 12px; }
  .brand { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nav-right { flex: none; }
}
@media (max-width: 720px) {
  .m-cta { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .menu-btn { width: 44px; height: 44px; padding: 0 12px; }
}
@media (max-width: 360px) { .brand { font-size: 12.5px; } }
.menu-foot { justify-items: stretch; }
.menu-foot > .pill { display: flex; width: auto; }
.menu-foot { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }

/* =========================================================
   RODADA 13 · bordas sólidas no Safari do iPhone (como o Abdou's)
   O Safari pinta a barra de status e a barra de endereço com a cor
   dos elementos fixos encostados nas bordas: eles precisam ter fundo
   desde o início e não podem se esconder atrás das barras.
   ========================================================= */
.nav::before { content: none; }
@media (max-width: 1180px) {
  .nav, .nav.is-solid {
    background: #0c0b0ae6; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid #efede814;
  }
  html.menu-open .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
  .hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 720px) {
  .dock { transform: none !important; box-shadow: none; background: #0c0b0aeb; transition: opacity .3s; }
  .dock.is-hidden { visibility: hidden; opacity: 0; }
  html.menu-open .dock { visibility: hidden; }
  .footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}
.menu { box-shadow: none; }
@media (max-width: 720px) { html.lock .dock { visibility: hidden; opacity: 0; } }
@media (max-width: 720px) { .hero-actions { display: none; } .hero-copy { padding-bottom: 6px; } }

/* =========================================================
   RODADA 14 · nada transparente fixo nas bordas da tela
   O Safari (iPhone e Mac) usa o elemento fixo mais de cima encostado
   na borda pra pintar a barra de status e a da URL. A textura e a barra
   de leitura eram camadas fixas transparentes de ponta a ponta: o Safari
   via "sem cor" e mostrava o conteúdo passando. Agora a textura acompanha
   a página (não é fixa) e a barra de leitura fica embaixo do cabeçalho.
   ========================================================= */
body { position: relative; }
body::after { position: absolute; inset: 0; z-index: 1; }
.progress { top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 99; }
.about-text strong { color: var(--fg); font-weight: 700; }

/* =========================================================
   RODADA 15 · Primeiro projeto (robô de 2018), entre Processo e Trajetória
   ========================================================= */
.memory { padding-block: clamp(90px, 10vw, 150px) clamp(110px, 12vw, 180px); border-top: 1px solid var(--line); }
.memory-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 100px); align-items: center; }
.memory-frame { margin: 0; padding: 12px 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); max-width: 460px; width: 100%; }
.memory-photo { overflow: hidden; border-radius: 8px; aspect-ratio: 825 / 1024; background: #0c0b0a; }
.memory-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.04); transform: scale(1.04); transition: transform 1.6s var(--ease), filter .6s; }
.memory-frame.is-in .memory-photo img { transform: none; }
.memory-frame:hover .memory-photo img { filter: none; }
.memory-frame figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 4px 14px; color: var(--muted); }
.memory-text { display: grid; gap: 18px; max-width: 62ch; min-width: 0; }
.memory-title { margin: 0; text-wrap: balance; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: var(--fg); }
.memory-text p { margin: 0; color: var(--muted); font-size: 17px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.memory-text .chips { margin: 4px 0 0; }
.memory-note { color: var(--muted); opacity: .7; font-size: 13px; }
@media (max-width: 720px) {
  .memory { padding-block: 72px 80px; }
  .memory-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .memory-frame { max-width: none; }
  .memory-text p { font-size: 16px; }
}

/* =========================================================
   RODADA 16 · Case completo no detalhe do projeto
   ========================================================= */
.pd-meta { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-meta div { min-width: 0; }
.pd-meta dt { margin: 0 0 6px; }
.pd-meta dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.pd-toc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; }
.pd-toc p { margin: 0 0 8px; }
.pd-toc a { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 16px; transition: color .25s, padding .35s var(--ease); }
.pd-toc a .label { color: var(--dim); }
.pd-toc a:hover { color: var(--accent); padding-left: 6px; }
.pd-case { padding: 40px 40px 0; }
.pd-case[hidden] { display: none; }
.pd-case:not([hidden]) + .pd-bar { margin-top: clamp(70px, 8vw, 120px); border-top: 1px solid var(--line); }
.pc-cover { margin: 0; }
.pc-shot { all: unset; display: block; cursor: zoom-in; border-radius: 10px; min-width: 0; }
.pc-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pc-shot img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.pc-shot:hover img { transform: scale(1.015); }
.is-tablet .shot-frame { border-radius: 22px; padding: 7px; background: #000; }
.is-tablet .shot-frame img { border-radius: 16px; }
.pc-nums { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pc-nums li { padding: 22px 18px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.pc-nums li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.pc-nums b { font-weight: 900; font-variation-settings: "wdth" 62; font-size: clamp(44px, 4.6vw, 76px); line-height: .9; letter-spacing: -.01em; }
.pc-nums span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.pc-sec { margin-top: clamp(80px, 9vw, 130px); }
.pc-sec > .label { margin: 0 0 14px; }
.pc-h { margin: 0; max-width: 22ch; text-wrap: balance; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.pc-text { margin-top: 24px; display: grid; gap: 16px; max-width: 68ch; }
.pc-text p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.pc-big p { color: var(--fg); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 600; }
.pc-mod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.pc-mod:first-of-type { margin-top: clamp(30px, 4vw, 50px); border-top: 1px solid var(--line); }
.pc-mod:not(.is-desktop):not(.is-tablet):not(.is-none):nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pc-mod:not(.is-desktop):not(.is-tablet):not(.is-none):nth-of-type(even) .pc-mod-text { order: 2; }
.pc-mod.is-desktop, .pc-mod.is-tablet, .pc-mod.is-none { grid-template-columns: minmax(0, 1fr); align-items: start; }
.pc-mod.is-desktop .pc-mod-text, .pc-mod.is-tablet .pc-mod-text, .pc-mod.is-none .pc-mod-text { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "n ul" "h ul" "p ul"; column-gap: clamp(32px, 4vw, 64px); }
.pc-mod.is-desktop .pc-mod-n, .pc-mod.is-tablet .pc-mod-n, .pc-mod.is-none .pc-mod-n { grid-area: n; }
.pc-mod.is-desktop h4, .pc-mod.is-tablet h4, .pc-mod.is-none h4 { grid-area: h; }
.pc-mod.is-desktop .pc-mod-text > p, .pc-mod.is-tablet .pc-mod-text > p, .pc-mod.is-none .pc-mod-text > p { grid-area: p; }
.pc-mod.is-desktop ul, .pc-mod.is-tablet ul, .pc-mod.is-none ul { grid-area: ul; align-self: end; margin: 0; }
.pc-mod.is-none { grid-template-columns: minmax(0, 1fr); }
.pc-mod-text { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pc-mod-n { color: var(--accent); }
.pc-mod h4 { margin: 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.pc-mod p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.pc-mod ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.pc-mod li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--fg); }
.pc-mod li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1.5px; background: var(--accent); }
.pc-mod-media { display: grid; gap: 18px; min-width: 0; }
.pc-mod.is-mobile .pc-mod-media { grid-template-columns: repeat(auto-fit, minmax(150px, 230px)); justify-content: center; }
.pc-mod.is-tablet .pc-mod-media { grid-template-columns: minmax(0, 520px); justify-content: center; }
.pc-mod.is-mobile.is-multi .pc-mod-media .pc-shot:nth-child(2) { translate: 0 28px; }
.pd-gallery.is-tablet { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 24px; }
@media (max-width: 1100px) {
  .pc-mod { grid-template-columns: minmax(0, 1fr); }
  .pc-mod:not(.is-desktop):not(.is-tablet):not(.is-none):nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .pc-mod:not(.is-desktop):not(.is-tablet):not(.is-none):nth-of-type(even) .pc-mod-text { order: 0; }
  .pc-mod.is-desktop .pc-mod-text, .pc-mod.is-tablet .pc-mod-text, .pc-mod.is-none .pc-mod-text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "h" "p" "ul"; }
  .pc-mod.is-desktop ul, .pc-mod.is-tablet ul, .pc-mod.is-none ul { margin-top: 4px; }
  .pc-nums { grid-template-columns: 1fr 1fr; }
  .pc-nums li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pc-nums li:nth-child(n+3) { margin-top: 22px; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .pd-case { padding: 24px var(--gxr) 0 var(--gx); }
  .pd-toc { display: none; }
  .pc-nums b { font-size: 15vw; }
  .pc-text p { font-size: 16px; }
  .pc-mod.is-mobile .pc-mod-media { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pc-mod.is-mobile.is-multi .pc-mod-media .pc-shot:nth-child(2) { translate: 0 16px; }
  .pd-gallery.is-tablet { grid-template-columns: 1fr; }
  .pd-case:not([hidden]) + .pd-bar { margin-top: 60px; }
}
.is-photo .shot-frame { border-radius: 14px; }
.pc-mod.is-photo .pc-mod-media { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.pc-mod.is-photo.is-multi .pc-mod-media .pc-shot:nth-child(2) { translate: 0 28px; }
@media (max-width: 720px) { .pc-mod.is-photo .pc-mod-media { grid-template-columns: 1fr 1fr; gap: 12px; } .pc-mod.is-photo.is-multi .pc-mod-media .pc-shot:nth-child(2) { translate: 0 16px; } }
.pc-mod.is-mobile .pc-mod-media { grid-template-columns: minmax(0, 260px); }
.pc-mod.is-mobile.is-multi .pc-mod-media { grid-template-columns: repeat(2, minmax(0, 240px)); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 720px) { .pc-mod.is-mobile .pc-mod-media { grid-template-columns: minmax(0, 240px); } .pc-mod.is-mobile.is-multi .pc-mod-media { grid-template-columns: 1fr 1fr; gap: 12px; } }

.pc-note { margin: 28px 0 0; color: var(--muted); opacity: .7; font-size: 13px; }

/* =========================================================
   RODADA 17 · Compartilhar projeto
   ========================================================= */
.pd-side-foot { display: flex; gap: 10px; }
.pd-side-foot .pill { width: auto; }
.pd-side-foot #pd-live { flex: 1; }
#pd-live[hidden] + .sh { flex: 1; }
#pd-live[hidden] + .sh .pill { width: 100%; }
.sh { position: relative; }
.sh-open { color: var(--fg); border-color: var(--line); }
.sh-open svg, .sh-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill.sh-open:hover svg { transform: translateY(-2px); }
.sh-open[aria-expanded="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.sh-btn svg.sh-fill { fill: currentColor; stroke: none; }

.sh-menu { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 10px); width: 250px; padding: 6px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px -20px #000; animation: shIn .25s var(--ease) both; }
@keyframes shIn { from { opacity: 0; transform: translateY(8px); } }
.sh-menu .sh-opts { display: grid; gap: 2px; }
.sh-menu .sh-btn { justify-content: flex-start; width: 100%; border-color: transparent; border-radius: 11px; padding: 13px 14px; }
.sh-menu .sh-btn:hover { background: var(--bg-2); border-color: transparent; color: var(--fg); }
.sh-menu .sh-btn:hover svg { color: var(--accent); }

.sh-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: var(--fg); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.sh-btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.sh-btn:active { transform: scale(.97); }

.pd-share { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin: 40px 40px 0; padding: 28px 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.pd-share p { margin: 0; max-width: 34ch; font-size: 19px; line-height: 1.35; font-weight: 700; }
@media (max-width: 720px) {
  .pd-side-foot .pill { padding-inline: 18px; }
  .pd-share { margin: 24px var(--gxr) 0 var(--gx); padding: 22px 20px; }
  .pd-share p { font-size: 17px; }
  .pd-share .sh-opts { width: 100%; }
  .pd-share .sh-btn { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 14px 12px; }
}

/* Compartilhar direto do card da lista */
.work-grid > li { position: relative; }
.work-grid > li:hover .wk { border-color: var(--dim); transform: translateY(-4px); }
.work-grid > li:hover .wk-cover img { transform: scale(1.16); }
.wk-sh { position: absolute; z-index: 3; top: 16px; right: 16px; transition: transform .5s var(--ease), opacity .6s var(--ease) .5s; }
.work-grid > li:hover .wk-sh { transform: translateY(-4px); }
html.js .work-grid > li:not(.is-in) .wk-sh { opacity: 0; }
.wk-sh-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; background: var(--bg); color: var(--fg); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.wk-sh-btn:hover, .wk-sh-btn[aria-expanded="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.wk-sh-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sh-menu.is-down { bottom: auto; top: calc(100% + 8px); }

/* =========================================================
   RODADA 18 · Projetos em cada serviço + atendimento com IA ao vivo
   ========================================================= */
.sv-body { flex: 1; display: flex; flex-direction: column; }
.sv-body .ic { align-self: flex-start; }
.sv .sv-seen { margin: auto 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sv-seen .label { color: var(--muted); margin-right: 4px; }
.sv-seen .sv-chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.sv-seen .sv-chip:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.sv-demo { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: var(--fg); font-size: 14px; font-weight: 700; text-decoration: none; padding: 9px 14px 9px 12px; border-radius: 999px; background: #3ccf6a14; border: 1px solid #3ccf6a40; transition: background .2s, border-color .2s; }
.sv-demo:hover { background: #3ccf6a26; border-color: #3ccf6a80; }
.sv-demo svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.sv-demo:hover svg { transform: translateY(2px); }
.sv-demo-dot, .bot-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 #3ccf6a80; animation: liveDot 1.8s ease-out infinite; flex: none; }
@keyframes liveDot { 70%, 100% { box-shadow: 0 0 0 7px #3ccf6a00; } }

.bot { padding-block: clamp(90px, 10vw, 150px); border-top: 1px solid var(--line); }
@media (max-width: 720px) { .bot { padding-block: 72px 80px; } }
.bot-head .sec-sub { max-width: 58ch; }
.bot-stage {
  position: relative; display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(220px, 270px);
  height: 640px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden;
}
.bot-col { padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.bot-col-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); min-height: 22px; }
.bot-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--live); }

.bot-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bot-steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; transition: background .35s, border-color .35s; }
.bot-steps li.is-run { background: var(--bg-3); border-color: var(--line); }
.bot-steps b { display: block; font-size: 14.5px; line-height: 1.3; font-weight: 700; color: var(--muted); transition: color .3s; }
.bot-steps small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--dim); transition: color .3s; }
.bot-steps li.is-run b, .bot-steps li.is-done b { color: var(--fg); }
.bot-steps li.is-run small { color: var(--accent); }
.bot-steps li.is-done small { color: var(--muted); }
.st { position: relative; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--dim); transition: background .3s, border-color .3s; }
.is-run .st { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.is-done .st { background: var(--live); border-color: var(--live); animation: stPop .35s var(--ease); }
.is-done .st::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid #04140a; border-width: 0 2px 2px 0; rotate: 45deg; }
@keyframes stPop { from { transform: scale(.4); } }
.bot-done { margin: auto 0 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #3ccf6a14; border: 1px solid #3ccf6a40; color: var(--fg); font-size: 13.5px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.bot-done svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--live); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.is-done .bot-done { opacity: 1; transform: none; }

.bot-chat { display: flex; flex-direction: column; min-height: 0; background: #0e0d0c; border-inline: 1px solid var(--line); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.bc-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.bc-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2c2723; color: var(--fg); font: 700 15px var(--font); flex: none; }
.bc-who { display: grid; line-height: 1.2; }
.bc-who b { font-size: 15px; font-weight: 600; color: var(--fg); }
.bc-status { font-size: 12.5px; color: var(--muted); }
.bc-tag { margin-left: auto; font: 700 11px/1 var(--font); font-variation-settings: "wdth" 115; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); border: 1px solid #ff563155; border-radius: 999px; padding: 7px 10px; }
.bc-body { position: relative; flex: 1; min-height: 0; overflow: hidden; background-image: radial-gradient(#ffffff0b 1px, transparent 1.3px); background-size: 16px 16px; }
.bc-list { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 18px 16px; -webkit-mask-image: linear-gradient(transparent, #000 70px); mask-image: linear-gradient(transparent, #000 70px); }
.bc-m { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); flex: none; }
.bc-m.is-in { grid-template-rows: 1fr; }
.bc-mi { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.bm { margin-top: 8px; max-width: 80%; padding: 7px 10px 6px; border-radius: 10px; font-size: 14px; line-height: 1.42; color: #ebe8e3; display: grid; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .35s .08s, transform .5s var(--ease) .04s; }
.bc-m.is-in .bm { opacity: 1; transform: none; }
.bm p { margin: 0; }
.bm time { justify-self: end; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; color: #ffffff8c; }
.bm-in { align-self: flex-start; background: #25211e; border-top-left-radius: 3px; transform-origin: 0 0; }
.bm-out { align-self: flex-end; background: #0b5c47; border-top-right-radius: 3px; transform-origin: 100% 0; }
.bm-ai { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8ff0cf; margin-bottom: 2px; }
.tk svg { width: 16px; height: 11px; fill: none; stroke: #6cc8f5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bm-day { align-self: center; max-width: none; margin: 4px 0 4px; padding: 4px 10px; border-radius: 8px; background: #1e1b19; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.bm-typing { padding: 10px 12px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffffc0; animation: typing 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.bm-audio { min-width: min(300px, 80%); }
.au { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.au-play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffffff17; flex: none; }
.au-play svg { width: 15px; height: 15px; fill: #ebe8e3; margin-left: 2px; }
.au-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.au-wave i { flex: 1; height: var(--h); border-radius: 2px; background: #ffffff40; }
.bc-m.is-in .au-wave i { animation: auOn .25s calc(.5s + var(--n) * 45ms) forwards; }
@keyframes auOn { to { background: #8ff0cf; } }
.au-dur { font-size: 11.5px; color: #ffffff99; font-variant-numeric: tabular-nums; }
.au-tr { margin-top: 7px !important; padding-top: 7px; border-top: 1px solid #ffffff14; font-size: 13px; font-style: italic; color: #ffffffbf; }
.au-tr span { display: block; margin-bottom: 1px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bc-m.is-in .au-tr { animation: fadeIn .5s 1.4s both; }
.bm-link { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; margin: 3px 0 7px; padding: 9px; border-radius: 8px; background: #00000038; }
.bl-ic { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #ffffff14; }
.bl-ic svg { width: 20px; height: 20px; fill: none; stroke: #ebe8e3; stroke-width: 1.7; }
.bm-link b { display: block; font-size: 13.5px; }
.bm-link small { display: block; font-size: 12px; color: #ffffffb3; }
.bm-link .bl-url { color: #8ff0cf; }
.bm-sys { align-self: center; max-width: 92%; margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 12px; background: #10291a; border: 1px solid #2a6b42; color: #dcf6e5; }
.sys-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--live); flex: none; }
.sys-ic svg { width: 16px; height: 16px; fill: none; stroke: #04140a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bm-sys b { display: block; font-size: 13.5px; }
.bm-sys small { display: block; font-size: 12px; opacity: .8; }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font: 500 12.5px var(--font); }
.bc-take { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-size: 12px; font-weight: 700; }

.bot-agenda { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ba-title { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--bg-3); font-size: 13px; }
.ba-title span { color: var(--muted); }
.ba-slots { list-style: none; margin: 0; padding: 0; }
.ba-slots li { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; transition: background .4s, box-shadow .4s; }
.ba-slots time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ba-slots span { color: var(--live); font-weight: 600; transition: color .3s; }
.ba-slots li.busy { background: repeating-linear-gradient(135deg, transparent 0 7px, #ffffff06 7px 14px); }
.ba-slots li.busy span { color: var(--dim); font-weight: 500; }
.ba-slots li.is-look { background: #3ccf6a14; }
.ba-slots li.busy.is-look { background: #ff56311c; }
.ba-slots li.busy.is-look span { color: #ff8a6b; }
.ba-slots li.is-booked { background: #ff563124; box-shadow: inset 3px 0 0 var(--accent); }
.ba-slots li.is-booked span { color: var(--fg); font-weight: 700; animation: fadeUp .45s var(--ease); }
.bot-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bot-kpis > div { display: grid; gap: 6px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .4s, background .4s; }
.bot-kpis .label { color: var(--muted); font-size: 10.5px; }
.bot-kpis b { font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--dim); }
.bot-kpis > div.is-on { border-color: #3ccf6a55; background: #3ccf6a0d; }
.bot-kpis > div.is-on b { color: var(--fg); animation: fadeUp .45s var(--ease); }
.bot-kpis > div[data-kpi="caixa"].is-on b { color: var(--live); }

.bot-ctrl { display: flex; justify-content: flex-end; margin-top: 12px; }
.bot-replay { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s; }
.bot-replay:hover { color: var(--fg); }
.bot-replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.bot-replay:hover svg { transform: rotate(-200deg); }

.bot-points { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.bot-points li { display: grid; gap: 8px; align-content: start; padding: 26px 24px 0 0; }
.bot-points li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.bot-points .ic { color: var(--accent); margin-bottom: 6px; }
.bot-points b { font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.bot-points span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.bot-foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.bot-foot .sv-seen { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

@media (max-width: 1180px) {
  .bot-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-areas: "steps chat" "sys chat"; height: auto; }
  .bot-steps-col { grid-area: steps; }
  .bot-sys-col { grid-area: sys; border-top: 1px solid var(--line); }
  .bot-chat { grid-area: chat; height: 680px; border-inline: 0; border-left: 1px solid var(--line); }
  .bot-done { margin-top: 4px; }
  .bot-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-points li:nth-child(3) { padding-left: 0; border-left: 0; }
  .bot-points li:nth-child(n+3) { margin-top: 26px; }
}
@media (max-width: 720px) {
  .bot-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chat" "steps" "sys"; border-radius: 14px; }
  .bot-chat { height: 540px; border-left: 0; }
  .bot-steps-col { border-top: 1px solid var(--line); }
  .bot-col { padding: 18px 16px; }
  .bc-head { padding: 12px 14px; }
  .bc-list { padding: 8px 12px 14px; }
  .bm { max-width: 88%; font-size: 13.5px; }
  .bc-foot { padding: 10px 14px; font-size: 12px; }
  .bot-steps { grid-template-columns: 1fr 1fr; gap: 2px 8px; }
  .bot-steps li { padding: 8px; gap: 9px; grid-template-columns: 18px minmax(0, 1fr); }
  .bot-steps b { font-size: 13px; }
  .bot-steps small { font-size: 11.5px; }
  .bot-points { grid-template-columns: 1fr; }
  .bot-points li, .bot-points li + li { padding: 22px 0 0; border-left: 0; margin-top: 0; }
  .bot-points li + li { margin-top: 22px; border-top: 1px solid var(--line); }
  .bot-foot { flex-direction: column; align-items: flex-start; }
  .bot-foot .pill { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .bot-steps { grid-template-columns: 1fr; }
}
