/* ==========================================================
   David Almeida | Diretor de Arte
   ========================================================== */

:root {
  --bg: #D5CFBE;
  --panel: rgba(223, 222, 206, .8);
  --panel-solid: #E2E0D1;
  --item: #EBEADA;
  --item-2: #C9C8BA;
  --ink: #0d0d0c;
  --text: #34332f;
  --muted: #6d6a61;
  --y: #FFFF23;
  --dark: #151515;
  --line: rgba(0, 0, 0, .1);
  --glass-line: rgba(255, 255, 255, .22);
  --fg: #0d0d0c;
  --tint: 0, 0, 0;
  --ico-bg: #D2CFBC;
  --avatar-bg: #C8C3B1;
  --chip-bg: rgba(235, 234, 218, .85);
  --menu-bg: rgba(213, 207, 190, .94);
  --unfill: rgba(255, 255, 255, .62);

  --f-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-b: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gut: 20px;
  --side-w: 267px;
  --col-l: calc(var(--gut) + var(--side-w) + 34px);
  --col-r: 34px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-b);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }
::selection { background: var(--y); color: var(--ink); }

/* estado de abertura: some tudo até o JS preparar a animação */
html.is-intro .bg-logo,
html.is-intro .bg-photo,
html.is-intro .hero-sticky { opacity: 0; }

/* ---------- logo ---------- */
.logo-svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: hidden; }

/* ---------- camadas fixas ---------- */
.bg-logo {
  position: fixed;
  left: 2.8vw; right: 2.8vw; top: 1.6vw;
  z-index: 0;
  color: var(--y);
  pointer-events: none;
  will-change: transform;
}
.bg-photo {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  height: 97vh;
  width: calc(97vh * 1680 / 2231);
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.bg-photo img { position: absolute; }
.bg-photo-sharp { inset: 0; width: 100%; height: 100%; }
.bg-photo-blur {
  top: -14.286%; left: -18.99%;
  width: 137.98%; height: 128.572%;
  max-width: none;
  opacity: 0;
}

main { position: relative; z-index: 2; }

/* ---------- utilitários ---------- */
.col { padding-left: var(--col-l); padding-right: var(--col-r); }
.eyebrow {
  display: inline-block;
  font: 700 11.5px/1 var(--f-d);
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 4px 7px 3px;
  border: 1.5px solid var(--fg);
  border-radius: 6px;
  background: rgba(var(--tint), .06);
}
.eyebrow-dark { border-color: #f2f2ee; color: #f2f2ee; background: rgba(255, 255, 255, .08); }
.h2 {
  font: 600 clamp(40px, 4.6vw, 66px)/1 var(--f-d);
  letter-spacing: -.025em;
  margin: 14px 0 18px;
}
.lead { font-size: 16px; line-height: 1.55; color: var(--text); max-width: 440px; }
.sec-head { max-width: 620px; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px;
  border-radius: 12px;
  font: 600 15px/1 var(--f-d);
  white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s;
}
.btn-yellow { background: var(--y); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-mask { display: grid; height: 1.15em; overflow: hidden; }
.btn-mask > span { grid-area: 1 / 1; line-height: 1.15; transition: transform .5s var(--ease); }
.btn-mask > span + span { transform: translateY(110%); }
.btn:hover .btn-mask > span:first-child { transform: translateY(-110%); }
.btn:hover .btn-mask > span + span { transform: translateY(0); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; height: 200vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; }

.hero-nav {
  position: absolute;
  top: calc(1.6vw + (94.4vw * 180 / 749) + 2.2vw);
  display: flex; align-items: center;
  font: 600 15px/1 var(--f-d);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.hero-nav-l { left: 2.8vw; }
.hero-nav-r { right: 2.8vw; }
.hero-nav a { position: relative; padding: 4px 0; }
.hero-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.hero-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hero-nav i { width: 1px; height: 12px; background: rgba(var(--tint), .45); margin: 0 14px; }

.hero-tag, .hero-desc { position: absolute; bottom: 5.5vh; font-size: 14.5px; line-height: 1.5; }
.hero-tag { left: 2.8vw; }
.hero-desc { right: 2.8vw; width: 330px; }

.hero-center {
  position: absolute; left: 0; right: 0; bottom: 5.5vh;
  display: flex; justify-content: center; align-items: flex-end;
  gap: 20px;
  pointer-events: none;
}
.hero-center > * { pointer-events: auto; }
.hero-cards-l { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-bottom: 64px; }
.hero-main { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font: 700 clamp(48px, 5.4vw, 88px)/1.03 var(--f-d);
  letter-spacing: -.03em;
  color: #F8F7F3;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.hero-btns { display: flex; gap: 10px; margin-top: 30px; }

.glass-card {
  background: rgba(194, 184, 172, .3);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  color: #fff;
  font: 600 15px/1.2 var(--f-d);
}
.hc-1 { display: flex; align-items: center; gap: 14px; padding: 18px 24px; }
.hc-1 .stat-ico { width: 40px; height: 40px; }
.hc-2 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 22px; }
.hc-num { font: 800 54px/.9 var(--f-d); color: var(--y); letter-spacing: -.03em; }
.hc-3 { list-style: none; margin: 0 0 96px; padding: 20px 30px 20px 22px; display: flex; flex-direction: column; gap: 9px; }
.hc-3 li { display: flex; align-items: center; gap: 9px; }
.hc-3 svg { width: 16px; height: 16px; fill: var(--y); }
.stat-ico { fill: var(--y); }

/* ==========================================================
   BARRA LATERAL
   ========================================================== */
.side {
  position: fixed;
  left: var(--gut); top: 18px; bottom: 18px;
  width: var(--side-w);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 20;
  pointer-events: none;
}
.side.is-live { pointer-events: auto; }
html.js .side > * { opacity: 0; }

.side-panel {
  background: var(--panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  transition: background-color .5s, border-color .5s, color .5s;
}
.side-top { padding: 16px 16px 18px; }
.side-top-row { display: flex; align-items: center; justify-content: space-between; }
.side .side-logo, .mbar .side-logo {
  display: block; width: 88px; padding: 7px 8px;
  background: var(--y); color: var(--ink);
  border-radius: 6px;
}
.side-social { display: flex; gap: 6px; }
.soc {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 6px; background: var(--item);
  transition: background-color .3s, color .3s;
}
.soc svg { width: 13px; height: 13px; fill: currentColor; }
.soc:hover { background: var(--y); color: var(--ink); }
.side-blurb { margin-top: 24px; font-size: 13.5px; line-height: 1.5; }

.side-stats { display: flex; align-items: center; padding: 14px 10px; }
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font: 600 13px/1.15 var(--f-d); }
.side-stats .stat-ico { width: 30px; height: 30px; }
.stat-num { font: 800 30px/.95 var(--f-d); color: var(--y); letter-spacing: -.03em; }
.stat-sep { width: 1px; align-self: stretch; background: var(--line); }

.side-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px; }
.nav-item {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 11px;
  border-radius: 8px;
  background: var(--item);
  border: 1px solid rgba(var(--tint), .07);
  font: 600 15.5px/1 var(--f-d);
  text-transform: uppercase;
  transition: background-color .35s, color .35s, transform .35s var(--ease);
}
.nav-item svg { width: 15px; height: 15px; fill: currentColor; }
.nav-item:hover { transform: translateX(4px); }
.nav-item.is-active { background: var(--y); color: var(--ink); border-color: transparent; }

.side-marquee {
  overflow: hidden; padding: 11px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 55s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-50% - 15px)); } }
.cl { font-family: var(--f-d); white-space: nowrap; line-height: 1; opacity: .9; }

.side-email { padding: 7px; }
.email-btn {
  position: relative; width: 100%; height: 32px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 6px; background: var(--item-2);
  border: 1px solid rgba(var(--tint), .05);
  font-size: 14.5px;
  transition: background-color .3s, color .3s;
}
.email-btn svg { width: 14px; height: 14px; fill: currentColor; }
.email-btn:hover { background: var(--y); color: var(--ink); }
.email-toast {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translate(-50%, 6px); opacity: 0;
  font: 600 12px/1 var(--f-d); font-style: normal;
  background: var(--ink); color: #fff; padding: 7px 10px; border-radius: 6px;
  pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.email-btn.is-copied .email-toast { opacity: 1; transform: translate(-50%, 0); }
.side-cta { height: 50px; width: 100%; font-size: 16px; }

/* barra no escuro, quando passa pela seção de projetos */
.side.is-dark { color: #f2f2ee; }
.side.is-dark .side-panel { background: rgba(38, 38, 36, .78); border-color: rgba(255, 255, 255, .08); }
.side.is-dark .nav-item { background: #2c2c2a; border-color: rgba(255, 255, 255, .07); color: #f2f2ee; }
.side.is-dark .nav-item.is-active { background: var(--y); color: var(--ink); }
.side.is-dark .soc { background: #34342f; }
.side.is-dark .email-btn { background: #34342f; border-color: rgba(255, 255, 255, .06); }
.side.is-dark .stat-sep { background: rgba(255, 255, 255, .12); }
.side.is-dark .soc:hover, .side.is-dark .email-btn:hover { background: var(--y); color: var(--ink); }

/* telas baixas */
@media (max-height: 820px) { .side-blurb { display: none; } .side-top-row { margin: 0; } }
@media (max-height: 700px) { .side-marquee { display: none; } .nav-item { height: 30px; } .side-nav { gap: 5px; padding: 11px; } }

/* ---------- barra do celular ---------- */
.mbar, .mmenu { display: none; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0;
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: var(--y); color: var(--ink);
  display: grid; place-items: center;
  font: 700 13px/1 var(--f-d); text-transform: uppercase; letter-spacing: .02em;
  pointer-events: none; z-index: 100;
  transform: scale(0);
}
@media (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================
   SOBRE / JORNADA
   ========================================================== */
.about { padding-top: 14vh; padding-bottom: 8vh; }
.tl { position: relative; margin-top: 30px; }
.tl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tl-svg path { fill: none; stroke-linecap: round; }
.tl-path { stroke: var(--fg); stroke-width: 2; }
.tl-path-bg { stroke: rgba(var(--tint), .07); stroke-width: 2; }

.tl-card {
  position: absolute;
  padding: 30px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
}
.tl-card::before {
  content: ""; position: absolute; top: 16px; bottom: -16px; left: -16px; width: 1px;
  background: rgba(var(--tint), .28);
}
.tl-card[data-rail="right"]::before { left: auto; right: -16px; }
.tl-dot {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; border: 1.5px solid var(--fg); background: var(--bg);
  transform: scale(.35); transition: transform .5s var(--ease), background-color .3s;
  z-index: 1;
}
.tl-dot.on { transform: scale(1); background: var(--y); }

.tl-year { display: flex; font: 800 68px/.9 var(--f-d); color: var(--y); letter-spacing: -.02em; }
.roll { display: inline-block; height: .9em; overflow: hidden; }
.roll-col { display: flex; flex-direction: column; }
.roll-col > span { display: block; height: .9em; }
.tl-card h3 { font: 600 23px/1.15 var(--f-d); margin: 16px 0 10px; letter-spacing: -.01em; }
.tl-card > p { font-size: 15px; line-height: 1.5; color: var(--text); }
.tl-bottom { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tl-av { display: flex; position: relative; }
.tl-av > * + * { margin-left: -12px; }
.tl-av img, .tl-ico { width: 44px; height: 44px; border-radius: 50%; }
.tl-ico { display: grid; place-items: center; background: var(--ico-bg); border: 2px solid var(--panel-solid); }
.tl-ico svg { width: 20px; height: 20px; fill: var(--y); }
.tl-online { position: absolute; left: 33px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #3ecf6b; border: 2px solid var(--panel-solid); }
.tl-meta { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; color: var(--muted); }
.tl-meta b { font-weight: 500; }
.tl-more {
  margin-left: auto; padding: 10px 18px;
  background: var(--item); border: 1px solid rgba(var(--tint), .15); border-radius: 12px;
  font: 500 14px/1 var(--f-d);
  transition: background-color .3s;
}
.tl-more:hover { background: var(--y); }

/* popup */
.popup {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 20px;
  background: rgba(24, 23, 20, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.popup[hidden] { display: none; }
[hidden] { display: none !important; }
.popup-card {
  position: relative; width: min(580px, 100%);
  background: var(--panel-solid); border-radius: 14px; padding: 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
}
.popup-year { font: 800 96px/.9 var(--f-d); color: var(--y); letter-spacing: -.02em; }
.popup-body h3 { font: 600 30px/1.1 var(--f-d); margin: 18px 0 14px; letter-spacing: -.015em; }
.popup-body p { font-size: 17px; line-height: 1.6; color: var(--text); }
.popup-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--item); font-size: 14px;
  transition: background-color .3s, transform .4s var(--ease);
}
.popup-close:hover { background: var(--y); transform: rotate(90deg); }

/* ==========================================================
   PROJETOS
   ========================================================== */
.work { position: relative; background: var(--dark); color: #f2f2ee; margin-top: 10vh; }
.work-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 5vh; overflow: hidden; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.work-head > div { flex: none; }
.work-head .h2 { margin-bottom: 0; color: #f2f2ee; }
.nw { white-space: nowrap; }
.work-lead { max-width: 400px; font-size: 16px; line-height: 1.55; color: #d9d9d4; }
.work-track { display: flex; gap: 22px; width: max-content; padding-left: calc(var(--col-l) + 16vw); will-change: transform; }

.wcard {
  position: relative; flex: none;
  height: min(56vh, 520px); aspect-ratio: 1;
  border-radius: 14px; overflow: hidden;
  background: #222; color: #fff;
  isolation: isolate;
}
.wcard img, .wcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 58%); z-index: 0; }
.wcard:hover img, .wcard:hover video { transform: scale(1.05); }
/* a imagem fica sempre por baixo; o vídeo só aparece quando começa a tocar de verdade */
.wcard video { opacity: 0; transition: opacity .5s, transform 1s var(--ease); }
.wcard video.is-playing { opacity: 1; }
.wcard.is-empty { background: radial-gradient(120% 90% at 30% 15%, var(--g1), var(--g2) 72%); }
.wcard-num {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font: 800 220px/1 var(--f-d); color: rgba(255, 255, 255, .07); letter-spacing: -.05em;
  transition: transform 1s var(--ease);
}
.wcard.is-empty:hover .wcard-num { transform: translate(-50%, -50%) scale(1.06); }
.wcard-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 1; }
.tags { display: flex; gap: 5px; }
.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  font: 500 12px/1 var(--f-d);
}
.wcard-bottom { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; }
.wcard-bottom h3 { font: 600 29px/1.05 var(--f-d); letter-spacing: -.015em; margin-bottom: 8px; }
.wcard-bottom p { font-size: 14px; line-height: 1.45; color: #dcdcd6; max-width: 80%; }
.wcard-arrow {
  position: absolute; right: 0; bottom: 0;
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--y); color: var(--ink);
  transition: transform .5s var(--ease);
}
.wcard-arrow svg { width: 16px; height: 16px; }
.wcard:hover .wcard-arrow { transform: rotate(45deg); }

/* ==========================================================
   O QUE VOCÊ LEVA
   ========================================================== */
.get { padding-top: 22vh; padding-bottom: 8vh; text-align: center; }
.giant { font: 800 clamp(64px, 11.4vw, 190px)/1.02 var(--f-d); letter-spacing: -.022em; word-spacing: .04em; margin-bottom: 44px; }
.giant .line { padding-bottom: .24em; margin-bottom: -.24em; }
.get-text {
  max-width: 1000px; margin: 26px auto 0;
  font: 600 clamp(28px, 3.1vw, 46px)/1.2 var(--f-d);
  letter-spacing: -.02em;
}
.get-text .w { display: inline-block; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: .22em;
  height: 1.05em; padding: 0 .38em; margin: 0 .08em;
  vertical-align: -.12em;
  background: var(--chip-bg);
  border: 1px solid rgba(var(--tint), .06);
  border-radius: 12px;
  transition: background-color .35s, transform .45s var(--ease);
}
.chip svg { width: .56em; height: .56em; fill: var(--y); transition: fill .35s; }
.chip i { width: .16em; height: .16em; border-radius: 50%; background: var(--y); transition: background-color .35s; }
.chip:hover, .chip.is-open { background: var(--y); transform: translateY(-3px) rotate(-3deg); }
.chip:hover svg, .chip.is-open svg { fill: var(--ink); }
.chip:hover i, .chip.is-open i { background: var(--ink); }
.chip-tip {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 270px; padding: 16px 18px;
  background: var(--panel-solid); border: 1px solid var(--glass-line); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  text-align: left; pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .4s var(--ease);
}
.chip-tip.is-on { opacity: 1; transform: translateY(0); }
.chip-tip b { display: block; font: 600 17px/1.2 var(--f-d); margin-bottom: 6px; }
.chip-tip span { display: block; font-size: 14px; line-height: 1.5; color: var(--text); }

/* ==========================================================
   SERVIÇOS
   ========================================================== */
.services { padding-top: 14vh; }
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px; padding: 8px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
}
.plan { display: flex; flex-direction: column; padding: 24px 22px 24px; border-radius: 10px; }
.plan.is-featured { background: rgba(var(--tint), .075); }
.plan-h { display: flex; align-items: center; gap: 11px; }
.plan-h h3 { font: 600 19px/1.1 var(--f-d); }
.plan-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: var(--y); }
.plan-ico svg { width: 17px; height: 17px; fill: var(--ink); }
.plan-price { font: 600 25px/1 var(--f-d); letter-spacing: -.015em; margin: 28px 0 18px; }
.plan-price small { font: 400 13px/1 var(--f-b); color: var(--muted); letter-spacing: 0; }
.plan-desc { font-size: 15px; line-height: 1.5; color: var(--text); }
.plan ul { list-style: none; margin: 30px 0 34px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2.5px solid var(--y); background: rgba(var(--tint), .04);
}
.plan-note { margin-top: auto; display: flex; gap: 9px; font-size: 14px; line-height: 1.45; color: var(--text); }
.plan-note svg { width: 16px; height: 16px; margin-top: 2px; fill: currentColor; }
/* botão de cada plano: abre o WhatsApp com a mensagem daquele plano */
.plan-btn { width: 100%; margin-top: 22px; gap: 9px; padding: 0 14px; }
.btn-ico { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { background: var(--y); color: var(--ink); }

/* ==========================================================
   CTA
   ========================================================== */
.cta { padding-top: 22vh; padding-bottom: 6vh; }
.cta-title { font: 700 clamp(52px, 7.6vw, 120px)/.98 var(--f-d); letter-spacing: -.04em; }
.cta-line { display: block; }
.cta-lead { margin-top: 34px; }
.chat { display: flex; gap: 12px; margin-top: 40px; }
.chat-av { width: 44px; height: 44px; border-radius: 50%; }
.chat-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bubble { padding: 11px 16px; background: var(--item); border-radius: 14px 14px 14px 4px; font-size: 15px; }
.chat-reply { position: relative; height: 46px; }
.typing {
  display: inline-flex; gap: 5px; align-items: center; height: 30px; padding: 0 13px;
  background: var(--item); border-radius: 14px; margin-top: 8px;
  transition: opacity .3s, transform .4s var(--ease);
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--y); animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-btn { position: absolute; left: 0; top: 0; opacity: 0; transform: scale(.7); transform-origin: left center; pointer-events: none; transition: opacity .35s, transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.chat.is-on .typing { opacity: 0; transform: scale(.6); }
.chat.is-on .chat-btn { opacity: 1; transform: scale(1); pointer-events: auto; }

/* ==========================================================
   DEPOIMENTOS
   ========================================================== */
.testi { padding-top: 18vh; }
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; }
.testi-dots {
  display: flex; gap: 6px; padding: 10px 12px; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--glass-line); border-radius: 8px;
}
.testi-dots button { width: 18px; height: 3px; border-radius: 2px; background: rgba(var(--tint), .18); transition: width .4s var(--ease), background-color .3s; }
.testi-dots button.is-on { width: 30px; background: var(--y); }
.testi-viewport { margin-top: 36px; overflow: hidden; padding-bottom: 10px; }
.testi-track { display: flex; gap: 16px; width: max-content; padding-left: var(--col-l); padding-right: var(--col-r); cursor: grab; }
.testi-track:active { cursor: grabbing; }
.tcard {
  display: flex; flex-direction: column;
  width: 400px; min-height: 340px; padding: 26px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-line); border-radius: 12px;
  user-select: none;
}
.tcard-h { display: flex; justify-content: space-between; gap: 16px; }
.tcard-h h3 { font: 600 22px/1.1 var(--f-d); letter-spacing: -.01em; }
.q { flex: none; color: var(--ink); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--y); font: 800 28px/1 var(--f-d); padding-top: 10px; }
.tcard > p { margin: 22px 0 28px; font-size: 15px; line-height: 1.55; color: var(--text); }
.tcard-f { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.3; }
.tcard-f div { display: flex; flex-direction: column; }
.tcard-f b { font: 600 15px/1.3 var(--f-d); }
.tcard-f span { color: var(--muted); }
.tcard-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--avatar-bg); font: 700 16px/1 var(--f-d); }

/* ==========================================================
   LOGO GIGANTE + FAQ
   ========================================================== */
.faq { padding-top: 14vh; }
.foot-logo { color: var(--y); margin-bottom: 9vh; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 44px; align-items: start; }
.faq-col { display: flex; flex-direction: column; gap: 10px; }
.qa {
  background: var(--panel);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-line); border-radius: 8px;
}
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 20px; list-style: none; cursor: pointer;
  font: 600 16.5px/1.3 var(--f-d);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 14px; height: 14px; }
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor;
  transition: transform .45s var(--ease);
}
.qa summary i::after { transform: rotate(90deg); }
.qa.is-open summary i::after { transform: rotate(0); }
.qa.is-open summary i::before { transform: rotate(180deg); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 20px 20px; font-size: 15px; line-height: 1.6; color: var(--text); max-width: 560px; }
.foot {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 16vh; padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text);
}
.foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WhatsApp flutuante ---------- */
.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: flex; flex-direction: row-reverse; align-items: center;
  height: 58px; padding: 0 17px; border-radius: 29px;
  background: var(--y); color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(0, 0, 0, .06);
  opacity: 0; transform: translateY(26px) scale(.6); pointer-events: none;
  transition: opacity .4s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.wa.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa.is-on.is-away, body.menu-open .wa { opacity: 0; transform: translateY(26px) scale(.6); pointer-events: none; }
.wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--y); pointer-events: none;
  animation: wa-ping 2.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .95; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.wa-ico { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.wa-ico svg { width: 24px; height: 24px; fill: currentColor; }
.wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font: 600 15px/1 var(--f-d);
  transition: max-width .55s var(--ease), margin .55s var(--ease);
}
.wa:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .26), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.wa:hover .wa-label { max-width: 220px; margin-right: 10px; }
.wa:hover::before { animation: none; opacity: 0; }

/* ==========================================================
   TELAS MÉDIAS
   ========================================================== */
@media (max-width: 1280px) and (min-width: 1000px) {
  .plan-btn { font-size: 14px; padding: 0 10px; gap: 7px; }
  .plan-btn .btn-ico { width: 16px; height: 16px; }
  .hero-nav { font-size: 13px; }
  .hero-nav i { margin: 0 9px; }
  .hero-nav .hn-opt { display: none; }
  .hero-desc { width: 260px; }
  .hc-3 { display: none; }
  .hero-tag { display: none; }
}

@media (max-width: 1099px) and (min-width: 1000px) {
  .hero-nav { font-size: 12px; }
  .hero-nav i { margin: 0 7px; }
}

/* ==========================================================
   CELULAR E TABLET
   ========================================================== */
@media (max-width: 999px) {
  :root { --col-l: 16px; --col-r: 16px; }
  .side { display: none; }

  .mbar {
    position: fixed; top: 10px; left: 10px; right: 10px; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    height: 54px; padding: 0 8px 0 10px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-line); border-radius: 12px;
    transform: translateY(-140%);
    transition: transform .6s var(--ease);
  }
  .mbar.is-on, body.menu-open .mbar { transform: none; }
  .mbar .side-logo { width: 84px; }
  .mbar-btn {
    height: 38px; padding: 0 16px; border-radius: 8px; background: var(--item);
    font: 600 14px/1 var(--f-d); text-transform: uppercase;
  }
  body.menu-open .mbar-btn { background: var(--y); }
  .mmenu {
    position: fixed; inset: 0; z-index: 35;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 92px 20px 28px;
    background: var(--menu-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .mmenu[hidden] { display: none; }
  .mmenu nav a { display: block; padding: 6px 0; font: 700 clamp(30px, 8.5vw, 44px)/1.1 var(--f-d); letter-spacing: -.03em; }
  .mmenu .btn { height: 52px; }
  .mmenu-foot { display: flex; flex-direction: column; gap: 14px; }
  .mmenu-social { display: flex; gap: 8px; }
  .mmenu-social .soc { width: 44px; height: 44px; border-radius: 10px; }
  .mmenu-social .soc svg { width: 18px; height: 18px; }
  .wa { right: 16px; bottom: 16px; height: 54px; padding: 0 15px; }

  .bg-logo { left: 16px; right: 16px; top: 16px; }
  /* cabeça no centro da tela: o topo da cabeça fica a 55,6% da largura da foto */
  .bg-photo { --pw: calc(80vh * 1680 / 2231); height: 80vh; width: var(--pw); left: 50%; right: auto; margin: 0 0 0 calc(var(--pw) * -.556); }
  .hero { height: 170vh; }
  .hero-nav, .hero-tag, .hero-cards-l, .hc-3 { display: none; }
  .hero-desc { display: none; }
  .hero-center { bottom: 32px; padding: 0 16px; justify-content: flex-start; }
  .hero-main { align-items: flex-start; }
  .hero-title { font-size: clamp(44px, 12vw, 72px); text-align: left; }
  .hero-btns { margin-top: 22px; }
  .hero-btns .btn { height: 44px; padding: 0 18px; font-size: 14px; }

  .about { padding-top: 10vh; }
  .tl { margin-top: 40px; padding-left: 22px; display: flex; flex-direction: column; gap: 16px; }
  .tl::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--fg); opacity: .85; }
  .tl-svg { display: none; }
  .tl-card { position: relative; padding: 24px; }
  .tl-card::before { display: none; }
  .tl-card::after { content: ""; position: absolute; left: -24px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: var(--y); border: 1.5px solid var(--fg); }
  .tl-year { font-size: 58px; }
  .tl-bottom { flex-wrap: wrap; }

  .work { margin-top: 6vh; }
  .work-pin { height: auto; padding: 90px 0 60px; gap: 34px; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .work-track {
    width: auto; padding: 0 16px; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .work-track { scroll-padding-inline: 16px; }
  .work-track::-webkit-scrollbar { display: none; }
  .wcard { height: auto; width: min(78vw, 360px); scroll-snap-align: start; }

  .get { padding-top: 14vh; }
  .get-text { font-size: clamp(24px, 6.4vw, 34px); }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px 18px; }
  .cta { padding-top: 14vh; }
  .testi { padding-top: 12vh; }
  .testi-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .testi-dots { display: none; }
  .testi-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .testi-viewport::-webkit-scrollbar { display: none; }
  .testi-track { cursor: auto; }
  .tcard { width: min(82vw, 380px); scroll-snap-align: center; }
  .faq-grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
}

/* ==========================================================
   MOVIMENTO REDUZIDO
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .typing i, .wa::before { animation: none; }
  .wa::before { display: none; }
  .bg-photo-sharp, .bg-photo-blur, .bg-logo, .hero-sticky, .side > * { transition: opacity .4s; }
  body.is-past .bg-photo-sharp { opacity: 0; }
  body.is-past .bg-photo-blur { opacity: .68; }
  body.is-past .bg-logo, body.is-past .hero-sticky { opacity: 0; }
  body.is-past .side > * { opacity: 1; }
  body.is-past .side { pointer-events: auto; }
  body.is-past .mbar { transform: none; }
  .work-pin { height: auto; padding: 12vh 0; }
  .work-track { width: auto; overflow-x: auto; padding-right: 34px; }
}

/* ---------- logos de clientes no letreiro (silhueta na cor do texto) ---------- */
.cl-logo {
  display: block; flex: none;
  height: var(--h); aspect-ratio: var(--ar);
  background-color: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.cl-intrade  { --h: 22px; --ar: 332 / 110; --m: url("../img/clientes/intrade.png"); }
.cl-energisa { --h: 20px; --ar: 337 / 110; --m: url("../img/clientes/energisa.png"); }
.cl-capim    { --h: 32px; --ar: 212 / 110; --m: url("../img/clientes/capim-dourado.png"); }
.cl-terrafos { --h: 19px; --ar: 404 / 110; --m: url("../img/clientes/terrafos.png"); }
.cl-brk      { --h: 24px; --ar: 224 / 110; --m: url("../img/clientes/brk.png"); }
.cl-senai    { --h: 19px; --ar: 412 / 110; --m: url("../img/clientes/senai.png"); }
.cl-perro    { --h: 20px; --ar: 322 / 110; --m: url("../img/clientes/perro.png"); }
.cl-kokar    { --h: 17px; --ar: 510 / 110; --m: url("../img/clientes/kokar.png"); }
.cl-amz      { --h: 26px; --ar: 310 / 110; --m: url("../img/clientes/amazonia.png"); }
.cl-public   { --h: 26px; --ar: 230 / 110; --m: url("../img/clientes/public.png"); }

/* ==========================================================
   MODO ESCURO
   ========================================================== */
html[data-theme="dark"] {
  --bg: #161615;
  --panel: rgba(38, 38, 36, .78);
  --panel-solid: #252523;
  --item: #2e2e2b;
  --item-2: #34342f;
  --text: #c9c7be;
  --muted: #8e8c84;
  --dark: #0b0b0a;
  --line: rgba(255, 255, 255, .1);
  --glass-line: rgba(255, 255, 255, .08);
  --fg: #f2f1ea;
  --tint: 255, 255, 255;
  --ico-bg: #34342f;
  --avatar-bg: #3a3a35;
  --chip-bg: rgba(46, 46, 43, .9);
  --menu-bg: rgba(22, 22, 21, .94);
  --unfill: rgba(255, 255, 255, .16);
  color-scheme: dark;
}
html[data-theme="dark"] .work { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(255, 255, 255, .06); }
html[data-theme="dark"] .email-toast { background: var(--y); color: var(--ink); }
html[data-theme="dark"] .chip-tip, html[data-theme="dark"] .popup-card { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* título do CTA: a palavra se preenche no scroll (--fill vai de 0 a 1) */
.cta-title .w { color: color-mix(in srgb, var(--fg) calc(var(--fill, 1) * 100%), var(--unfill)); }

/* ---------- botão de tema: Sol no claro, Lua no escuro ---------- */
.theme-btn { position: relative; display: grid; place-items: center; }
.theme-btn svg { grid-area: 1 / 1; fill: currentColor; transition: transform .6s var(--ease), opacity .35s; }
.theme-btn .ico-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
html[data-theme="dark"] .theme-btn .ico-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
html[data-theme="dark"] .theme-btn .ico-moon { opacity: 1; transform: none; }

.side-social .sep { width: 1px; height: 16px; align-self: center; margin: 0 2px; background: var(--line); }
.side.is-dark .side-social .sep { background: rgba(255, 255, 255, .12); }

.hero-nav .theme-btn {
  width: 32px; height: 32px; margin: -9px -6px -9px -8px;
  border-radius: 50%;
  transition: background-color .3s, color .3s;
}
.hero-nav .theme-btn svg { width: 16px; height: 16px; }
.hero-nav .theme-btn:hover { background: var(--y); color: var(--ink); }

.mbar-right { display: flex; align-items: center; gap: 6px; }
.mbar .theme-btn { width: 38px; height: 38px; border-radius: 8px; background: var(--item); }
.mbar .theme-btn svg { width: 16px; height: 16px; }

/* troca de tema: círculo que abre a partir do botão */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-fade, html.theme-fade * { transition: background-color .5s, color .5s, border-color .5s, fill .5s, stroke .5s !important; }

/* ==========================================================
   PROJETO ABERTO (o card abre o projeto aqui mesmo)
   ========================================================== */
.case {
  position: fixed; inset: 0; z-index: 92;
  background: var(--dark); color: #f2f2ee;
}
.case-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.case-open, html.case-open body { overflow: hidden; }
body.case-open .wa { opacity: 0; transform: translateY(26px) scale(.6); pointer-events: none; }
.case :focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

.case-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 76px; padding: 0 34px;
  background: rgba(21, 21, 21, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.case-count { font: 600 15px/1 var(--f-d); color: #a9a9a2; letter-spacing: .01em; }
.case-count b { color: #f2f2ee; font-weight: 700; }
.case-ctrl { display: flex; gap: 8px; }
.case-ctrl :is(button, a) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font: 600 15px/1 var(--f-d);
  transition: background-color .3s, color .3s, border-color .3s;
}
.case-ctrl :is(button, a):hover { background: var(--y); border-color: var(--y); color: var(--ink); }
.case-ctrl svg { width: 18px; height: 18px; }
.case-close { padding: 0 14px 0 18px !important; }

/* página própria do projeto (projetos/nome/): o mesmo projeto aberto, com a rolagem da própria página */
body.page-case { background: var(--dark); }
.case.is-page { position: static; min-height: 100vh; }
.case.is-page .case-scroll { height: auto; overflow: visible; }
.case-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.case-logo { display: block; width: 104px; color: #f2f2ee; transition: color .3s; }
.case-logo:hover { color: var(--y); }
.case-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; color: #9a9a93;
}
.case-foot a { color: #f2f2ee; }
.case-foot a:hover { color: var(--y); }
@media (max-width: 560px) {
  .case-logo { width: 84px; }
  .is-page .case-count { display: none; } /* no celular não cabe: fica o logo, que diz de quem é o site */
}

.case-wrap { max-width: 1320px; margin: 0 auto; padding: 8px 34px 34px; }


.case-info {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px 64px; align-items: start; padding: 72px 0 72px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.case-about { font: 700 clamp(40px, 4.6vw, 76px)/.95 var(--f-d); letter-spacing: -.03em; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.case-text p { font-size: 19px; line-height: 1.6; color: #d9d9d4; max-width: 520px; }
.case-meta { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 520px; }
.case-meta div { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.case-meta dt { font: 600 12px/1 var(--f-d); text-transform: uppercase; letter-spacing: .08em; color: #9a9a93; margin-bottom: 8px; }
.case-meta dd { margin: 0; font: 500 17px/1.35 var(--f-d); }


.case-text p + p { margin-top: 14px; }
.case-meta div:nth-child(n + 3) { margin-top: 18px; }


.case-cta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-top: 72px; padding: 56px; border-radius: 14px;
  background: var(--y); color: var(--ink);
}
.case-cta h3 { font: 700 clamp(30px, 3.6vw, 54px)/1 var(--f-d); letter-spacing: -.025em; max-width: 640px; }
.case-cta .btn { height: 52px; gap: 10px; background: var(--ink); color: #f2f2ee; }
.case-cta .btn:hover { background: #fff; color: var(--ink); }

.case-nextp {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  margin-top: 22px; padding: 28px 0 8px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.case-nextp-lab { display: block; font: 600 13px/1 var(--f-d); text-transform: uppercase; letter-spacing: .08em; color: #9a9a93; margin-bottom: 12px; }
.case-nextp-name { display: flex; align-items: center; gap: .2em; font: 700 clamp(40px, 6vw, 96px)/.95 var(--f-d); letter-spacing: -.03em; }
.case-nextp-name svg { width: .55em; height: .55em; color: var(--y); transition: transform .5s var(--ease); }
.case-nextp img { width: clamp(96px, 14vw, 200px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: transform .6s var(--ease); }
.case-nextp:hover img { transform: scale(1.05) rotate(-2deg); }
.case-nextp:hover .case-nextp-name svg { transform: rotate(45deg); }

@media (max-width: 999px) {
  .case-bar { height: 62px; padding: 0 16px; }
  .case-ctrl :is(button, a) { height: 42px; min-width: 42px; }
  .case-wrap { padding: 4px 16px 24px; }
  .case-info { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 44px; }
  .case-text p { font-size: 17px; }
  .case-meta dd { font-size: 16px; }
  .case-cta { margin-top: 48px; padding: 28px 22px 22px; }
  .case-cta .btn { width: 100%; }
  .case-nextp { gap: 16px; }
}

/* ---------- mosaico do projeto (peças de tamanhos diferentes, título por cima) ---------- */
.mosaic {
  --u: min(calc((100vw - 96px) / 16), calc((100vh - 150px) / 10));
  --g: 10px;
  display: grid; justify-content: center;
  grid-template-columns: repeat(16, calc(var(--u) - var(--g)));
  grid-template-rows: repeat(10, calc(var(--u) - var(--g)));
  gap: var(--g);
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 10px 0 56px;
}
.mosaic--rich {
  grid-template-areas:
    ". . . . . a a . . . . c c c . ."
    ". . p p p a a b b b b c c c . v"
    ". . p p p a a b b b b c c c . v"
    "d d e e e e e b b b b f f f f v"
    "d d e e e e e g g g g f f f f v"
    "d d e e e e e g g g g f f f f ."
    ". . e e e e e g g g g h h i i ."
    ". . j j k k k n n n . h h i i ."
    ". . j j k k k n n n l l l x x x"
    ". . . . k k k . . . l l l x x x";
}
.mosaic--compact {
  grid-template-areas:
    ". . . . a a a . . . . . . . . ."
    ". p p p a a a b b b b b c c . v"
    ". p p p a a a b b b b b c c . v"
    ". d d d d d d b b b b b c c . v"
    ". d d d d d d b b b b b c c . v"
    ". d d d d d d e e e f f f f f ."
    ". d d d d d d e e e f f f f f ."
    ". . . g g g . e e e f f f f f ."
    ". . . g g g n n n . x x x x . ."
    ". . . . . . n n n . x x x x . .";
}
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; } .t-d { grid-area: d; }
.t-e { grid-area: e; } .t-f { grid-area: f; } .t-g { grid-area: g; } .t-h { grid-area: h; }
.t-i { grid-area: i; } .t-j { grid-area: j; } .t-k { grid-area: k; } .t-l { grid-area: l; }

.mosaic-title {
  grid-column: 6 / 14; grid-row: 2 / 6; align-self: start; z-index: 3;
  margin-top: calc(var(--u) * .3);
  font: 800 calc(var(--u) * 1.55)/.84 var(--f-d); letter-spacing: -.045em;
  color: var(--y); text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.mosaic--compact .mosaic-title { grid-column: 5 / 13; grid-row: 1 / 5; }
.mosaic-label {
  grid-area: v; justify-self: start;
  writing-mode: vertical-rl;
  font: 800 calc(var(--u) * .3)/1 var(--f-d); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
  color: var(--y);
}

.tile { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #222; }
.tile img, .tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter .5s, transform .9s var(--ease), opacity .5s;
}
.tile video { opacity: 0; }
.tile video.is-playing { opacity: 1; }
.tile:hover img, .tile:hover video, .tile.is-active img, .tile.is-active video, .tile:focus-visible img { filter: none; transform: scale(1.04); }
.tile-badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--y); color: var(--ink);
}
.tile-badge svg { width: 12px; height: 12px; margin-left: 2px; }

.mosaic-nav {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 12px 14px; border-radius: 8px; text-align: left;
  background: var(--y); color: var(--ink);
  font: 600 13px/1.2 var(--f-d);
  transition: background-color .3s;
}
.mosaic-nav.is-next { grid-area: n; align-items: flex-end; text-align: right; flex-direction: column-reverse; }
.mosaic-nav.is-prev { grid-area: p; }
.mosaic-nav svg { width: 26px; height: 26px; transition: transform .5s var(--ease); }
.mosaic-nav small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.mosaic-nav:hover { background: #fff; }
.mosaic-nav.is-prev:hover svg { transform: translateX(-6px); }
.mosaic-nav.is-next:hover svg { transform: translateX(6px); }
.mosaic-text {
  grid-area: x; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  font-size: 13px; line-height: 1.45; color: #c9c9c2;
}
.mosaic-more { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-d); color: var(--y); }
.mosaic-more svg { width: 14px; height: 14px; }

/* peça aberta na tela: no hover (desktop) só mostra; no clique fica presa com setas e Fechar */
.lb { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.lb-bg { position: absolute; inset: 0; background: rgba(8, 8, 8, .8); opacity: 0; transition: opacity .35s; }
.lb.is-open .lb-bg { opacity: 1; }
.lb-box { position: fixed; overflow: hidden; border-radius: 10px; background: #111; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
.lb-box img, .lb-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-img { opacity: 0; transition: opacity .3s; }
.lb-img.is-loaded { opacity: 1; }
.lb-vid { display: none; opacity: 0; transition: opacity .25s; }
.lb.is-video .lb-vid { display: block; }
.lb-vid.is-playing { opacity: 1; }
.lb.is-video .lb-img { display: none; }
.lb-cap {
  position: fixed; left: 16px; right: 16px; bottom: 20px; text-align: center;
  font: 600 14px/1.3 var(--f-d); color: #f2f2ee; opacity: 0; transition: opacity .3s;
}
.lb.is-open .lb-cap { opacity: 1; }
.lb-btn { position: fixed; display: none; align-items: center; justify-content: center; gap: 8px; }
.lb.is-pinned { pointer-events: auto; }
.lb.is-pinned .lb-btn { display: inline-flex; }
.lb-close {
  top: 16px; right: 34px; height: 44px; padding: 0 14px 0 18px; border-radius: 12px;
  background: var(--y); color: var(--ink); font: 600 15px/1 var(--f-d);
}
.lb-prev, .lb-next {
  top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  transition: background-color .3s, color .3s;
}
.lb-prev:hover, .lb-next:hover { background: var(--y); color: var(--ink); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-btn svg { width: 20px; height: 20px; }

@media (max-width: 999px) {
  .mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none; grid-template-areas: none; grid-auto-rows: auto;
    justify-content: stretch;
    width: auto; margin-left: 0; padding: 4px 0 36px;
  }
  /* no celular cada peça ocupa uma linha e a altura vem da proporção */
  .mosaic > * { grid-area: auto / auto / span 1 / span 2; aspect-ratio: 1; }
  .mosaic .mosaic-title { grid-area: auto / 1 / auto / -1; order: -3; aspect-ratio: auto; margin: 10px 0 0; font-size: clamp(48px, 15vw, 96px); }
  .mosaic .mosaic-label { grid-area: auto / 1 / auto / -1; order: -2; aspect-ratio: auto; writing-mode: horizontal-tb; font-size: 17px; }
  .mosaic .mosaic-text { grid-area: auto / 1 / auto / -1; order: -1; aspect-ratio: auto; font-size: 15px; margin-bottom: 6px; }
  .mosaic--rich .t-e, .mosaic--compact .t-d { grid-column: span 4; aspect-ratio: 4 / 3; order: 1; }
  .mosaic--rich .t-a { aspect-ratio: 2 / 3; order: 2; }
  .mosaic--rich .t-d { aspect-ratio: 2 / 3; order: 3; }
  .mosaic--rich .t-b, .mosaic--compact .t-b { grid-column: span 4; aspect-ratio: 2 / 1; order: 4; }
  .mosaic--rich .t-c, .mosaic--compact .t-a { order: 5; }
  .mosaic--rich .t-k, .mosaic--compact .t-e { order: 6; }
  .mosaic--rich .t-f, .mosaic--compact .t-f { grid-column: span 4; aspect-ratio: 2 / 1; order: 7; }
  .mosaic--rich .t-h, .mosaic--compact .t-c { order: 8; }
  .mosaic--rich .t-i, .mosaic--compact .t-g { order: 9; }
  .mosaic--rich .t-g { grid-column: span 4; aspect-ratio: 2 / 1; order: 10; }
  .mosaic--rich .t-j { order: 11; }
  .mosaic--rich .t-l { order: 12; }
  .mosaic .mosaic-nav.is-prev, .mosaic .mosaic-nav.is-next { grid-area: auto / auto / span 1 / span 2; aspect-ratio: auto; min-height: 72px; order: 13; }
  .mosaic .mosaic-nav.is-next { order: 14; }
  .lb-close { right: 16px; top: 10px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin-top: 0; width: 46px; height: 46px; }
  .lb-cap { bottom: 30px; left: 70px; right: 70px; }
}

/* barra de progresso dos vídeos: só uma linha fina que cresce */
.vbar {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  width: 100%; height: 2px;
  background: var(--y);
  transform: scaleX(0); transform-origin: 0 50%;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.vbar.is-on { opacity: .9; }
.lb:not(.is-video) .vbar { display: none; }
