:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --dark: #1C1C1C;
  --dark-2: #202020;
  --text: #1C1C1C;
  --text-muted: #6B6B6B;
  --accent: #18A3F2;
  --wa: #25D366;
  --grad: linear-gradient(135deg, #E0218A 0%, #8B57C9 50%, #18A3F2 100%);
  --maxw: 1120px;
  --pad: 20px;
  --radius: 8px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 64px; }
.section-title { font-size: clamp(24px, 5vw, 32px); }
.section-lead { color: var(--text-muted); margin: 6px 0 0; font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.pt-header { padding-top: 64px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: var(--radius);
  border: none; line-height: 1; transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(0.98); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--light { background: #fff; color: var(--dark); }
.btn .ico { width: 18px; height: 18px; }
.ico { display: inline-block; }

/* Header */
.site-header { position: absolute; top: 0; inset-inline: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.brand__name, .site-footer__brand span {
  font-family: var(--font-mono);
}
.brand__name { color: var(--text); }
.nav { display: none; }
.nav-cta { display: none; }
.nav-toggle { margin-left: auto; display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .2s; }

.mobile-menu { position: fixed; inset: 64px 0 auto 0; z-index: 49; background: rgba(28,28,28,.98); display: flex; flex-direction: column; gap: 4px; padding: 16px var(--pad) 28px; }
.mobile-menu a { color: #fff; font-size: 18px; padding: 14px 0; font-family: var(--font-mono); }
.mobile-menu a.active { font-weight: 700; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; font-family: var(--font); }
.mobile-menu[hidden] { display: none; }

/* Hero */
.hero { 
  position: relative; 
  min-height: 88vh; 
  display: flex; 
  align-items: center; 
  overflow: hidden; 
  background-color: #08080c; 
}
.hero__glow { 
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
  overflow: hidden;
}
.hero__glow::before,
.hero__glow::after {
  content: "";
  position: absolute;
  inset: -600px;
  background: transparent;
  will-change: transform;
}
/* Camada 1: Estrelas pequenas (1px), lentas */
.hero__glow::before {
  background-image: 
    radial-gradient(circle at 100px 150px, rgba(255,255,255,0.85) 1px, transparent 1px),
    radial-gradient(circle at 350px 80px, rgba(255,255,255,0.65) 1px, transparent 1px),
    radial-gradient(circle at 450px 400px, rgba(255,255,255,0.85) 1px, transparent 1px),
    radial-gradient(circle at 180px 320px, rgba(24,163,242,0.65) 1px, transparent 1px),
    radial-gradient(circle at 520px 220px, rgba(255,255,255,0.75) 1px, transparent 1px),
    radial-gradient(circle at 80px 500px, rgba(255,255,255,0.45) 1px, transparent 1px),
    radial-gradient(circle at 300px 550px, rgba(224,33,138,0.55) 1px, transparent 1px),
    radial-gradient(circle at 570px 480px, rgba(255,255,255,0.85) 1px, transparent 1px),
    radial-gradient(circle at 250px 200px, rgba(255,255,255,0.65) 1px, transparent 1px),
    radial-gradient(circle at 420px 580px, rgba(24,163,242,0.65) 1px, transparent 1px);
  background-size: 600px 600px;
  animation: space-move-a 60s linear infinite;
}
/* Camada 2: Estrelas médias (2px), mais rápidas */
.hero__glow::after {
  background-image: 
    radial-gradient(circle at 50px 100px, rgba(255,255,255,0.95) 1.5px, transparent 1.5px),
    radial-gradient(circle at 280px 350px, rgba(24,163,242,0.75) 2px, transparent 2px),
    radial-gradient(circle at 400px 180px, rgba(224,33,138,0.65) 2px, transparent 2px),
    radial-gradient(circle at 150px 450px, rgba(255,255,255,0.85) 1.5px, transparent 1.5px),
    radial-gradient(circle at 350px 220px, rgba(255,255,255,0.65) 2.5px, transparent 2.5px),
    radial-gradient(circle at 480px 80px, rgba(224,33,138,0.75) 1.5px, transparent 1.5px),
    radial-gradient(circle at 100px 300px, rgba(255,255,255,0.75) 2px, transparent 2px);
  background-size: 500px 500px;
  animation: space-move-b 40s linear infinite;
}

@keyframes space-move-a {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-600px, -600px);
  }
}
@keyframes space-move-b {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-500px, 0);
  }
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 40px; padding-block: 120px 64px; }
.hero__title { color: #fff; font-size: clamp(30px, 7vw, 48px); max-width: 16ch; }
.hero__sub { color: rgba(255,255,255,.85); font-size: clamp(15px, 2.5vw, 18px); max-width: 48ch; margin: 16px 0 24px; }

/* Hero — montagem animada: peças flutuam em cinza e ganham cor ao entrar no frame */
.hero__visual { display: flex; justify-content: center; }
.frame { position: relative; width: 100%; max-width: 360px; background: var(--bg); border-radius: 12px; border: 1px solid rgba(28,28,28,.10); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.frame__bar { display: flex; align-items: center; gap: 7px; padding: 11px 13px; border-bottom: 1px solid rgba(28,28,28,.10); }
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(28,28,28,.18); }
.frame__url { display: block; height: 7px; width: 42%; margin-left: 6px; border-radius: 4px; background: rgba(28,28,28,.12); }
.frame__body { padding: 13px; display: grid; gap: 10px; }
.frame__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.comp { min-width: 0; animation-duration: 14s; animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; will-change: transform, filter, opacity; }
.comp__card { background: var(--surface); border: 1px solid rgba(28,28,28,.10); border-radius: 8px; padding: 11px; }

.comp--head  { --ox: 20px;  --oy: -58px; --td: 2s;   animation-name: dock-a; }
.comp--m1    { --ox: -24px; --oy: -46px; --td: 2.7s; animation-name: dock-b; }
.comp--m2    { --ox: 24px;  --oy: -52px; --td: 3.4s; animation-name: dock-c; }
.comp--chart { --ox: -16px; --oy: 62px;  --td: 4.1s; animation-name: dock-d; }
.comp--list  { --ox: 18px;  --oy: 74px;  --td: 4.8s; animation-name: dock-e; }

.comp__head { display: flex; align-items: center; gap: 10px; }
.ava { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #5b80a6; }
.lines { display: grid; gap: 6px; flex: 1; }
.ln { display: block; height: 7px; width: 100%; border-radius: 4px; background: rgba(28,28,28,.14); }
.ln--soft { background: rgba(28,28,28,.09); }
.metric__k { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.metric__v { display: block; font-size: 18px; font-weight: 700; line-height: 1; height: 18px; overflow: hidden; }
.metric__v--blue { color: var(--dark); }
.metric__v--green { color: #5b80a6; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.bars i { flex: 1; background: #3a3a3a; border-radius: 3px 3px 0 0; }
.bars i:nth-child(2n) { background: #5b80a6; }
.list { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 9px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.dot--blue { background: #5b80a6; }
.dot--purple { background: #74935f; }
.dot--pink { background: #bf8a63; }

/* Chegada — cada card monta o próprio conteúdo de forma temática, depois para */
.comp--head .ava { transform-origin: center; animation: head-ava 14s cubic-bezier(.2,.7,.3,1) infinite both; }
.comp--head .ln  { transform-origin: left center; animation: head-line 14s cubic-bezier(.2,.7,.3,1) infinite both; }
.comp--head .ln--soft { animation-delay: 0.12s; }

.reel { display: flex; flex-direction: column; will-change: transform, filter; }
.reel i { display: block; height: 18px; line-height: 18px; font-style: normal; }
.comp--m1 .reel { animation: roll-m1 14s cubic-bezier(.16, 1, .3, 1) infinite both; }
.comp--m2 .reel { animation: roll-m2 14s cubic-bezier(.16, 1, .3, 1) infinite both; }

.comp--chart .bars i { transform-origin: bottom; animation-duration: 14s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); animation-iteration-count: infinite; animation-fill-mode: both; }
.comp--chart .bars i:nth-child(1) { animation-name: bars-dance-1; animation-delay: 0s; }
.comp--chart .bars i:nth-child(2) { animation-name: bars-dance-2; animation-delay: 0.04s; }
.comp--chart .bars i:nth-child(3) { animation-name: bars-dance-3; animation-delay: 0.08s; }
.comp--chart .bars i:nth-child(4) { animation-name: bars-dance-1; animation-delay: 0.12s; }
.comp--chart .bars i:nth-child(5) { animation-name: bars-dance-2; animation-delay: 0.16s; }
.comp--chart .bars i:nth-child(6) { animation-name: bars-dance-3; animation-delay: 0.20s; }

.comp--list .row { animation: row-in 14s cubic-bezier(.16, 1, .3, 1) infinite both; }
.comp--list .row:nth-child(2) { animation-delay: 0.12s; }
.comp--list .row:nth-child(3) { animation-delay: 0.24s; }

/* Encaixe em cascata; ficam estáticos e saem TODOS JUNTOS (80–86%) */
@keyframes dock-a {
  0%   { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; animation-timing-function: cubic-bezier(.33,.66,.3,1); }
  14%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; }
  80%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; animation-timing-function: cubic-bezier(.7,0,.85,.25); }
  86%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  100% { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
}
@keyframes dock-b {
  0%   { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  5%   { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; animation-timing-function: cubic-bezier(.33,.66,.3,1); }
  19%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; }
  80%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; animation-timing-function: cubic-bezier(.7,0,.85,.25); }
  86%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  100% { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
}
@keyframes dock-c {
  0%   { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  10%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; animation-timing-function: cubic-bezier(.33,.66,.3,1); }
  24%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; }
  80%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; animation-timing-function: cubic-bezier(.7,0,.85,.25); }
  86%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  100% { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
}
@keyframes dock-d {
  0%   { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  15%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; animation-timing-function: cubic-bezier(.33,.66,.3,1); }
  29%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; }
  80%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; animation-timing-function: cubic-bezier(.7,0,.85,.25); }
  86%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  100% { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
}
@keyframes dock-e {
  0%   { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  20%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; animation-timing-function: cubic-bezier(.33,.66,.3,1); }
  34%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; }
  80%  { transform: translate(0, 0); filter: grayscale(0); opacity: 1; animation-timing-function: cubic-bezier(.7,0,.85,.25); }
  86%  { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
  100% { transform: translate(var(--ox), var(--oy)); filter: grayscale(1); opacity: .4; }
}

/* head: avatar surge e linhas se desenham (rápido, ao encaixar) */
@keyframes head-ava {
  0%   { transform: scale(0); }
  10%  { transform: scale(0); }
  16%  { transform: scale(1.12); }
  19%  { transform: scale(1); }
  80%  { transform: scale(1); }
  86%  { transform: scale(0); }
  100% { transform: scale(0); }
}
@keyframes head-line {
  0%   { transform: scaleX(0); }
  10%  { transform: scaleX(0); }
  20%  { transform: scaleX(1); }
  80%  { transform: scaleX(1); }
  86%  { transform: scaleX(0); }
  100% { transform: scaleX(0); }
}
/* metric: o número rola como máquina de slot (com overshoot, blur e bounce) */
@keyframes roll-m1 {
  0%   { transform: translateY(0); filter: blur(0); opacity: 0; }
  15%  { transform: translateY(0); filter: blur(0); opacity: 0; }
  19%  { transform: translateY(-40px); filter: blur(1.5px); opacity: 1; }
  23%  { transform: translateY(-96px); filter: blur(0.5px); opacity: 1; }
  25%  { transform: translateY(-88px); filter: blur(0); opacity: 1; }
  27%  { transform: translateY(-90px); filter: blur(0); opacity: 1; }
  80%  { transform: translateY(-90px); filter: blur(0); opacity: 1; }
  86%  { transform: translateY(0); filter: blur(0); opacity: 0; }
  100% { transform: translateY(0); filter: blur(0); opacity: 0; }
}
@keyframes roll-m2 {
  0%   { transform: translateY(0); filter: blur(0); opacity: 0; }
  20%  { transform: translateY(0); filter: blur(0); opacity: 0; }
  24%  { transform: translateY(-40px); filter: blur(1.5px); opacity: 1; }
  28%  { transform: translateY(-96px); filter: blur(0.5px); opacity: 1; }
  30%  { transform: translateY(-88px); filter: blur(0); opacity: 1; }
  32%  { transform: translateY(-90px); filter: blur(0); opacity: 1; }
  80%  { transform: translateY(-90px); filter: blur(0); opacity: 1; }
  86%  { transform: translateY(0); filter: blur(0); opacity: 0; }
  100% { transform: translateY(0); filter: blur(0); opacity: 0; }
}
/* chart: as barras sobem e descem de forma randômica e rápida */
@keyframes bars-dance-1 {
  0%   { transform: scaleY(0); }
  25%  { transform: scaleY(0); }
  27%  { transform: scaleY(1.15); }
  29%  { transform: scaleY(0.3); }
  31%  { transform: scaleY(0.95); }
  33%  { transform: scaleY(0.55); }
  36%  { transform: scaleY(1); }
  80%  { transform: scaleY(1); }
  86%  { transform: scaleY(0); }
  100% { transform: scaleY(0); }
}
@keyframes bars-dance-2 {
  0%   { transform: scaleY(0); }
  25%  { transform: scaleY(0); }
  28%  { transform: scaleY(0.7); }
  30%  { transform: scaleY(0.25); }
  32%  { transform: scaleY(1.1); }
  34%  { transform: scaleY(0.65); }
  36%  { transform: scaleY(1); }
  80%  { transform: scaleY(1); }
  86%  { transform: scaleY(0); }
  100% { transform: scaleY(0); }
}
@keyframes bars-dance-3 {
  0%   { transform: scaleY(0); }
  25%  { transform: scaleY(0); }
  26%  { transform: scaleY(0.9); }
  28%  { transform: scaleY(0.4); }
  30%  { transform: scaleY(1.15); }
  33%  { transform: scaleY(0.5); }
  36%  { transform: scaleY(1); }
  80%  { transform: scaleY(1); }
  86%  { transform: scaleY(0); }
  100% { transform: scaleY(0); }
}
/* list: as linhas entram em sequência */
@keyframes row-in {
  0%   { opacity: 0; transform: translateX(-8px); }
  30%  { opacity: 0; transform: translateX(-8px); }
  38%  { opacity: 1; transform: translateX(0); }
  80%  { opacity: 1; transform: translateX(0); }
  86%  { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 0; transform: translateX(-8px); }
}

/* Faixa de valor */
.value { background: var(--surface); border-bottom: 1px solid rgba(0,0,0,.06); }
.value__grid { display: grid; gap: 28px; padding-block: 40px; }
.value__title { font-size: 17px; margin-bottom: 6px; }
.value__text { color: var(--text-muted); font-size: 15px; margin: 0; }

/* Projetos */
.projects__grid { display: grid; gap: 16px; margin-top: 28px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); aspect-ratio: 4 / 3; }
.project[data-type="video"] { border: 3px solid #ffffff; background: #ffffff; }
.project__img { width: 100%; height: 100%; object-fit: cover; }
.project[data-type="video"] .project__img { object-fit: contain; }
.project__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  background: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dark);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background-color 0.2s;
  pointer-events: none;
}
.project__play-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 4px;
}
.project:hover .project__play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #f7f6f3;
}
.project__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; background: linear-gradient(0deg, rgba(10,11,13,.88) 0%, rgba(10,11,13,.1) 62%); }
.project__tag { color: rgba(255,255,255,.7); font-weight: 500; font-size: 13px; margin: 0 0 5px; }
.project__title { color: #fff; font-size: 19px; line-height: 1.2; }

/* Como funciona */
.how { background: var(--surface); }
.how__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.how__step { display: flex; gap: 16px; align-items: flex-start; }
.how__num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-weight: 700; }
.how__title { font-size: 17px; margin-bottom: 4px; }
.how__text { color: var(--text-muted); margin: 0; font-size: 15px; }

/* Depoimentos removidos */

/* Sobre */
.about__grid { display: grid; gap: 28px; }
.about__photo { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; max-width: 360px; margin-inline: auto; }
.about__text p { margin: 0 0 16px; }

/* CTA final */
.cta-final { background: var(--dark); color: #fff; }
.cta-final__inner { padding-block: 72px; text-align: center; }
.cta-final__title { font-size: clamp(24px, 5vw, 34px); }
.cta-final__sub { color: rgba(255,255,255,.8); max-width: 46ch; margin: 14px auto 24px; }

.cta-final--project { margin-bottom: 64px; }

/* Rodapé */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,.85); }
.site-footer__inner { display: grid; gap: 20px; padding-block: 40px 16px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.site-footer__legal { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.site-footer__legal a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); transition: color 0.2s; }
.site-footer__legal .ico { width: 16px; height: 16px; flex-shrink: 0; }
.site-footer__legal a:hover { color: var(--accent); }
.site-footer__copy { margin-block: 0; max-width: none; color: rgba(255,255,255,.5); font-size: 13px; padding-block: 16px 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.site-footer__copy > span { display: block; margin-block: 2px; }

/* Botão flutuante WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); color: #fff; }
.wa-float .ico { width: 30px; height: 30px; }

@media (min-width: 768px) {
  :root { --pad: 32px; }
  .section { padding-block: 88px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; padding-block: 132px 80px; }
  .frame { max-width: 380px; }
  .comp--head  { --ox: 40px;  --oy: -92px; }
  .comp--m1    { --ox: -100px; --oy: -8px; }
  .comp--m2    { --ox: 100px; --oy: 22px; }
  .comp--chart { --ox: -70px; --oy: 94px; }
  .comp--list  { --ox: 78px;  --oy: 110px; }
  .value__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .how__list { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .about__grid { grid-template-columns: 360px 1fr; align-items: center; gap: 48px; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
  .site-footer__legal { align-items: flex-end; }
  .wa-float { width: 60px; height: 60px; }
}

@media (min-width: 900px) {
  .nav { display: flex; flex: 1; justify-content: center; gap: 34px; }
  .nav a { color: var(--text); font-size: 15px; font-weight: 400; font-family: var(--font-mono); }
  .nav a.active { font-weight: 700; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Lightbox modal styles */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none; /* Controlled by JS / class active */
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  z-index: 1010;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Nav buttons */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 36px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1010;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
  user-select: none;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}
.lightbox__nav--prev {
  left: 24px;
}
.lightbox__nav--next {
  right: 24px;
}

/* Content wrapper */
.lightbox__content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: max-content;
  max-width: min(1000px, 90vw);
  max-height: 80vh;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  z-index: 1005;
}

/* Media area */
.lightbox__media-container {
  position: relative;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.lightbox__media {
  display: block;
  width: auto;
  height: auto;
  max-width: min(600px, 60vw);
  max-height: 80vh;
}
.lightbox__media img,
.lightbox__media video {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Video custom play overlay */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  z-index: 5;
  transition: opacity 0.3s;
}
.video-play-btn {
  background: #ffffff;
  border: none;
  color: var(--dark);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.video-play-btn:hover {
  transform: scale(1.1);
  background-color: #f7f6f3;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.video-play-btn svg {
  margin-left: 4px; /* Align triangle */
}

/* Info area */
.lightbox__info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  flex: 1 1 350px;
  min-width: 280px;
  max-width: 400px;
  box-sizing: border-box;
}
.lightbox__tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.lightbox__title {
  color: var(--dark);
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 16px 0;
}
.lightbox__description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Clickable projects style */
.project {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .lightbox__content {
    flex-direction: column;
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
  }
  .lightbox__info {
    padding: 24px;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .lightbox__media-container {
    flex: 0 0 auto;
    width: 100%;
    max-height: 40vh;
  }
  .lightbox__media img,
  .lightbox__media video {
    max-height: 40vh;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
  }
  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .lightbox__nav--prev {
    left: 8px;
  }
  .lightbox__nav--next {
    right: 8px;
  }
  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

/* Fullscreen zoom overlay (lightbox images) — top-level layer above the
   lightbox so it isn't clipped by .lightbox__content's overflow:hidden nor
   trapped in the .lightbox backdrop-filter containing block. */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 10, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  box-sizing: border-box;
  cursor: zoom-out;
}
.zoom-overlay.active {
  display: flex;
}
.zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

/* Image Zoom Effect (about photo) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.9);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease-out;
}
body.has-zoomed-img::after {
  opacity: 1;
  pointer-events: auto;
}
.is-zoomed {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  width: auto !important;
  height: auto !important;
  margin: auto !important;
  object-fit: contain !important;
  cursor: zoom-out !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.12s ease-out !important;
}

