/* Lucas Afonso — Home (redesign Figma). HTML/CSS puro. Fontes locais Inknut + Raleway. */

/* ─── Transição entre páginas (View Transitions API) ───
   O KV do card da vitrine se EXPANDE virando o KV principal do projeto (mesmo
   view-transition-name), enquanto o resto faz cross-fade. Degrada p/ navegação
   normal em navegadores sem suporte. */
@view-transition { navigation: auto; }
::view-transition-group(*.kv) { animation-duration: .95s; animation-timing-function: cubic-bezier(.65,0,.35,1); overflow: clip; border-radius: 6px; }
/* o quadro cresce de verdade (card estreito -> KV largo); as duas imagens preenchem o quadro (cover) e se fundem, sem esticar */
::view-transition-image-pair(*.kv) { isolation: auto; }
::view-transition-old(*.kv), ::view-transition-new(*.kv) { width: 100%; height: 100%; object-fit: cover; animation-duration: .95s; animation-timing-function: cubic-bezier(.65,0,.35,1); mix-blend-mode: normal; }
::view-transition-old(*.kv) { animation-name: kv-fade-out; }
::view-transition-new(*.kv) { animation-name: kv-fade-in; }
@keyframes kv-fade-out { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kv-fade-in  { 0% { opacity: 0; } 65%, 100% { opacity: 1; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .7s; animation-timing-function: cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ───────────────────────── FONTS ───────────────────────── */
@font-face { font-family:"Inknut Antiqua"; src:url("assets/Inknut_Antiqua/InknutAntiqua-Light.ttf") format("truetype");    font-weight:300; font-display:swap; }
@font-face { font-family:"Inknut Antiqua"; src:url("assets/Inknut_Antiqua/InknutAntiqua-Regular.ttf") format("truetype");  font-weight:400; font-display:swap; }
@font-face { font-family:"Inknut Antiqua"; src:url("assets/Inknut_Antiqua/InknutAntiqua-Medium.ttf") format("truetype");   font-weight:500; font-display:swap; }
@font-face { font-family:"Inknut Antiqua"; src:url("assets/Inknut_Antiqua/InknutAntiqua-SemiBold.ttf") format("truetype"); font-weight:600; font-display:swap; }
@font-face { font-family:"Inknut Antiqua"; src:url("assets/Inknut_Antiqua/InknutAntiqua-Bold.ttf") format("truetype");     font-weight:700; font-display:swap; }
@font-face { font-family:"Inknut Antiqua"; src:url("assets/Inknut_Antiqua/InknutAntiqua-ExtraBold.ttf") format("truetype");font-weight:800; font-display:swap; }
@font-face { font-family:"Inknut Antiqua"; src:url("assets/Inknut_Antiqua/InknutAntiqua-Black.ttf") format("truetype");    font-weight:900; font-display:swap; }
@font-face { font-family:"Raleway"; src:url("assets/Raleway/Raleway-VariableFont_wght.ttf") format("truetype");        font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:"Raleway"; src:url("assets/Raleway/Raleway-Italic-VariableFont_wght.ttf") format("truetype"); font-weight:100 900; font-style:italic; font-display:swap; }

:root {
  --paper: #ececec;
  --ink: #141317;
  --ink-soft: #3b3a40;
  --magenta: #e400ff;
  --cursor: #e400ff;                  /* cor do cursor líquido — magenta (paleta neon) */
  --card: #d6d6d6;
  --black: #0a0a0a;
  --line: rgba(20,19,23,.5);         /* traços/bordas sobre o fundo claro */
  --fog: rgba(20,19,23,.4);          /* brilho do "foggy" nas letras */
  --serif: "Inknut Antiqua", Georgia, serif;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;               /* as meia-luas da seção work sangram p/ fora da tela: cortar sem virar contêiner de rolagem */
  transition: background .45s ease, color .45s ease;
}

/* ─────────────── modo escuro (sempre começa no claro; alternado pelo switch) ───── */
body.dark {
  --paper: #0b0b0d;
  --ink: #ececec;
  --ink-soft: #b4b3ba;
  --cursor: #ffce3a;                  /* no escuro o cursor ecoa a paleta fire (âmbar) */
  --card: #1b1b1f;
  --black: #000;
  --line: rgba(236,236,236,.32);
  --fog: rgba(236,236,236,.55);
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }

/* ─────────────── scroll reveal (surge animado + REVERSO) ───────────────
   Entrada: ease-out longo (desacelera suave). Saída (rolar pra cima): mais curta e
   sem delay, o inverso do movimento. Só opacity/transform (compositor, sem layout). */
:root { --ease-in-out: cubic-bezier(.22,1,.36,1); --ease-out: cubic-bezier(.4,0,.6,1); }
.reveal, .reveal-fade, .brands__row, .line-x { will-change: opacity, transform; backface-visibility: hidden; }
.reveal { opacity: 0; transform: translate3d(0,46px,0); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease-in-out), transform 1.1s var(--ease-in-out); }
.reveal.d1.in { transition-delay: .1s; } .reveal.d2.in { transition-delay: .2s; } .reveal.d3.in { transition-delay: .3s; }
/* about: entrada mais lenta (pra refinar o tempo) */
.about .reveal.in { transition-duration: 1.4s; }
/* opacity-only — para quem já usa transform de posição (ex.: "work." centralizado) */
.reveal-fade { opacity: 0; transition: opacity .45s var(--ease-out); }
.reveal-fade.in { opacity: 1; transition: opacity .9s var(--ease-in-out); }
/* linhas magenta: surgem do 0 (scaleX) e recolhem de volta */
.line-x { transform: scaleX(0); transform-origin: left center; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.line-x.in { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.65,0,.35,1); }
/* fileiras das marcas: entrada (o scroll infinito é no track interno) */
.brands__row { opacity: 0; transform: translate3d(0,28px,0); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.brands__row.in { opacity: 1; transform: none; transition: opacity .9s var(--ease-in-out), transform 1s var(--ease-in-out); }
.brands__rows .brands__row:nth-child(2).in { transition-delay: .15s; }
/* cards da vitrine: surgem escalonados via ANIMAÇÃO (não transition), pra o
   hover de expansão NÃO herdar o delay do escalonamento. Na saída, o inverso: último card sai primeiro. */
.work__grid .card { opacity: 0; }
.work__grid.in .card { animation: card-in .9s var(--ease-in-out) both; }
.work__grid.out .card { animation: card-out .45s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translate3d(0,48px,0); } to { opacity: 1; transform: none; } }
@keyframes card-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0,48px,0); } }
.work__grid.in .card:nth-child(1){animation-delay:.04s} .work__grid.in .card:nth-child(2){animation-delay:.1s} .work__grid.in .card:nth-child(3){animation-delay:.16s} .work__grid.in .card:nth-child(4){animation-delay:.22s} .work__grid.in .card:nth-child(5){animation-delay:.28s} .work__grid.in .card:nth-child(6){animation-delay:.34s} .work__grid.in .card:nth-child(7){animation-delay:.4s}
.work__grid.out .card:nth-child(7){animation-delay:0s} .work__grid.out .card:nth-child(6){animation-delay:.04s} .work__grid.out .card:nth-child(5){animation-delay:.08s} .work__grid.out .card:nth-child(4){animation-delay:.12s} .work__grid.out .card:nth-child(3){animation-delay:.16s} .work__grid.out .card:nth-child(2){animation-delay:.2s} .work__grid.out .card:nth-child(1){animation-delay:.24s}
/* voltando de um projeto: a página já abre pronta (a transição do KV precisa do card visível) */
html.restoring .reveal, html.restoring .reveal-fade, html.restoring .brands__row, html.restoring .line-x, html.restoring .work__pill, html.restoring .work__grid .card { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
html.restoring .nav, html.restoring .hero__first, html.restoring .hero__last, html.restoring .hero__roles { animation: none; }
/* entrada no LOAD (hero + nav) */
@keyframes rise-in { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.nav         { animation: rise-in .8s cubic-bezier(.2,.8,.2,1) both; }
.hero__first { animation: rise-in .9s cubic-bezier(.2,.8,.2,1) .15s both; }
.hero__last  { animation: rise-in 1s  cubic-bezier(.2,.8,.2,1) .3s both; }
.hero__roles { animation: rise-in .9s cubic-bezier(.2,.8,.2,1) .5s both; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .brands__row { transition: none; opacity: 1; transform: none; }
  .work__grid .card { opacity: 1; animation: none; }
  .line-x { transition: none; transform: scaleX(1); }
  .nav, .hero__first, .hero__last, .hero__roles { animation: none; }
}

/* ───────── cursor LÍQUIDO (metaball): gota magenta que estica num rastro ─────────
   Filtro "goo" de SVG funde 3 círculos defasados: ao mover vira um rastro/cometa,
   parado vira uma gota redonda. Incha sobre clicáveis. Só em ponteiro fino. */
/* sem ponteiro fino (celular/tablet) o SVG não existe no layout (antes empurrava ~150px em branco abaixo do rodapé) */
.cursor-goo { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.cursor-on, html.cursor-on * { cursor: none !important; }
  .cursor-goo {
    display: block;
    position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10000;
    opacity: 0; transition: opacity .25s ease;
  }
  html.cursor-on .cursor-goo { opacity: 1; }
  .cursor-goo circle { fill: var(--cursor); transition: r .3s cubic-bezier(.2,.8,.2,1), fill .45s ease; }
  #goo-a { r: 8px; } #goo-b { r: 7px; } #goo-c { r: 5.5px; } #goo-d { r: 4px; } #goo-e { r: 3px; }
  html.cursor-hover #goo-a { r: 15px; } html.cursor-hover #goo-b { r: 13px; } html.cursor-hover #goo-c { r: 10px; } html.cursor-hover #goo-d { r: 7px; } html.cursor-hover #goo-e { r: 5px; }
  html.cursor-down #goo-a { r: 5px; } html.cursor-down #goo-b { r: 4px; } html.cursor-down #goo-c { r: 3px; } html.cursor-down #goo-d { r: 2px; } html.cursor-down #goo-e { r: 1.5px; }
}

/* ─────────────────────────── NAV ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .2rem var(--gutter); line-height: 1; /* só a ALTURA reduzida (~45%) */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background .45s ease, border-color .45s ease;
}
.nav__logo { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; }

/* lâmpada: luz acesa = modo claro; apagada = modo escuro. Clicar alterna. */
.nav__toggle, .nav__replay {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: .45rem; padding: 0; cursor: pointer;
  background: none; border: 0; border-radius: 50%; color: var(--ink); -webkit-tap-highlight-color: transparent;
  transition: color .3s ease, transform .3s cubic-bezier(.2,.8,.2,1), background .3s ease;
}
.nav__toggle { margin-left: .8rem; }
.nav__toggle:hover, .nav__replay:hover { transform: scale(1.12); }
.nav__toggle:focus-visible, .nav__replay:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.nav__toggle .bulb { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.nav__toggle .bulb__glass { transition: fill .35s ease, filter .35s ease; }
.nav__toggle .bulb__rays { opacity: 0; transform: scale(.7); transform-origin: 12px 10px; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
/* acesa: só contorno + raios (sem preenchimento); apagada: só o contorno */
body:not(.dark) .nav__toggle .bulb__rays { opacity: 1; transform: none; }
body.dark .nav__toggle .bulb { opacity: .8; }
.nav__replay svg { width: 21px; height: 21px; fill: currentColor; }
.nav__replay:hover { color: var(--magenta); }
.nav__links {
  display: flex; gap: clamp(1.2rem, 3vw, 3rem);
  margin-left: auto; margin-right: clamp(1.5rem, 8vw, 7rem);
  font-family: var(--serif); font-weight: 400; font-size: 1.02rem;
}
.nav__links a { position: relative; padding-bottom: 3px; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--ink); transition:width .3s; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; }
.nav__cta:hover { color: var(--magenta); }

/* ─────────────────────────── HERO ─────────────────────────── */
.hero { position: relative; height: min(96vh, 1000px); min-height: 580px; }
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; z-index: 1;
  /* dissolve só embaixo — sem corte seco e sem cortar o topo da figura */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}
.hero__name {
  position: absolute; z-index: 2; top: 45%; left: 50%;
  transform: translate(-50%, -50%); display: inline-block; text-align: left;
  color: var(--ink); line-height: .92; pointer-events: none;
}
.hero__first {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3.7rem); letter-spacing: .06em; margin-left: .12em; margin-bottom: .1em;
}
.hero__last {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.5rem, 12.5vw, 11.5rem); letter-spacing: .005em;
  white-space: nowrap;    /* letras em spans não podem quebrar a linha */
  pointer-events: auto;   /* só o "AFONSO" é interativo; o resto passa pro canvas */
}
/* cada letra se move e "embaça" (foggy) ao passar o mouse por cima */
.hero__last span {
  display: inline-block; will-change: transform, filter;
  transition: transform .55s cubic-bezier(.22,.9,.24,1),
              filter .5s ease, opacity .5s ease, text-shadow .5s ease;
}
.hero__last span:hover {
  transform: translateY(-.15em) rotate(-3deg) scale(1.05);
  filter: blur(3px); opacity: .6;
  text-shadow: 0 .05em .55em var(--fog);
}
.hero__roles {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(.9rem, 1.7vw, 1.75rem);
}

/* ─────────────────────────── WORK ─────────────────────────── */
.work { max-width: var(--maxw); margin: 0 auto; padding: clamp(1rem,2vw,2rem) var(--gutter) clamp(2.5rem,5vw,4rem); }
.work__viz {
  position: relative;
  --pt: clamp(44px, 5vw, 74px);           /* topo de "work." e dos estádios */
  --ph: clamp(360px, 44vw, 545px);        /* altura dos estádios (pills) */
  --cards-h: clamp(230px, 30vw, 360px);
  /* cards CENTRALIZADOS na altura das pills (meia-luas) */
  --cards-top: calc(var(--pt) + (var(--ph) - var(--cards-h)) / 2);
  /* bloco termina logo abaixo dos cards (nome do trabalho mais pra cima) */
  height: calc(var(--cards-top) + var(--cards-h) + clamp(8px, 1.4vw, 18px));
}
.work__title {
  position: absolute; z-index: 3; top: var(--pt); left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1;
}
/* duas "meia-luas" = dois estádios (retângulos arredondados) ATRÁS dos cards.
   Só as pontas INTERNAS (arredondadas) aparecem ladeando "work."; as externas
   se estendem muito pra fora do frame (100vw), então só os lados retos cruzam
   a borda da tela. SURGEM do zero (wipe da ponta interna pra fora) ao entrar. */
.work__pill {
  position: absolute; z-index: 0; top: var(--pt); height: var(--ph);
  border: 1.6px solid var(--ink); border-radius: 999px;
  transition: clip-path .7s cubic-bezier(.65,0,.35,1);
}
.work__pill--l { left: calc(50% - 100vw); right: calc(50% + clamp(100px, 11vw, 170px)); clip-path: inset(-14% 0 -14% 100%); }
.work__pill--r { left: calc(50% + clamp(100px, 11vw, 170px)); right: calc(50% - 100vw); clip-path: inset(-14% 100% -14% 0); }
.work__viz.in .work__pill { transition-duration: 1.2s; }
.work__viz.in .work__pill--l { clip-path: inset(-14% 0 -14% -14%); }
.work__viz.in .work__pill--r { clip-path: inset(-14% -14% -14% 0); }

.work__grid {
  position: absolute; z-index: 1; top: var(--cards-top); left: 0; right: 0; height: var(--cards-h);
  display: flex; gap: clamp(8px, 1.1vw, 15px);
}
.card {
  flex: 1 1 0; min-width: 0; background: var(--card);
  background-size: cover; background-position: center;
  transition: flex-grow .42s cubic-bezier(.2,.85,.25,1) 0s, filter .3s 0s, background-color .45s ease 0s; /* hover sem delay */
  cursor: pointer; will-change: flex-grow;
}
.card:hover { flex-grow: 4.2; }
.work__grid:hover .card:not(:hover) { filter: brightness(.96); }
/* card com KV real: âncora do morph pra página do projeto */
.card--kv { position: relative; overflow: hidden; }
.card--kv { view-transition-name: project-hero-kv; view-transition-class: kv; }
.card--kv2 { position: relative; overflow: hidden; }
.card--kv2 { view-transition-name: kv-repsol; view-transition-class: kv; }
.card--kv3 { position: relative; overflow: hidden; }
.card--kv3 { view-transition-name: kv-abiquim; view-transition-class: kv; }
.card--kv7 { position: relative; overflow: hidden; }
.card--kv7 { view-transition-name: kv-newera; view-transition-class: kv; background-position: 78% center; }
.card--kv6 { position: relative; overflow: hidden; }
.card--kv6 { view-transition-name: kv-supergasbras; view-transition-class: kv; background-position: 17% center; }
.card--kv5 { position: relative; overflow: hidden; }
.card--kv5 { view-transition-name: kv-odd; view-transition-class: kv; background-position: 58% center; }
.card--kv4 { position: relative; overflow: hidden; }
.lookat__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.card--kv4 { view-transition-name: kv-gattelier; view-transition-class: kv; background-position: 66% center; }

.work__caption.is-idle .tag { display: none; }
.work__caption { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-top: clamp(.4rem,1.1vw,.9rem); }
.tag { font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .03em; padding: .3rem .6rem; border: 1px solid var(--ink); border-radius: 3px; }
.work__project { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.5rem); transition: opacity .25s; }

/* ────────────────────────── BRANDS ────────────────────────── */
.brands { --bgap: clamp(2rem,5vw,4.5rem); margin: clamp(2rem,5vw,4rem) 0; }
.brands__title { text-align: center; font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem,2.2vw,1.6rem); margin-bottom: clamp(1rem,2.5vw,1.8rem); }
.brands__rule { height: 1.5px; background: var(--magenta); }
.brands__rows { display: flex; flex-direction: column; gap: clamp(1rem,2.5vw,1.8rem); padding: clamp(1.2rem,3vw,2rem) 0; }
.brands__row { overflow: hidden; }
.brands__track { display: flex; align-items: center; gap: var(--bgap); padding-right: var(--bgap); width: max-content; } /* padding = gap: as 2 metades ficam idênticas (loop sem salto) */
.brands__track--l { animation: scroll-l 34s linear infinite; }
.brands__track--r { animation: scroll-r 34s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
@keyframes scroll-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.brand { font-family: var(--sans); font-weight: 800; font-size: clamp(1.05rem,1.9vw,1.5rem); white-space: nowrap; color: var(--ink); letter-spacing: -.01em; }
.brand--serif { font-family: var(--serif); font-style: italic; font-weight: 700; }
.brand--tiny { font-size: clamp(.8rem,1.3vw,1rem); font-weight: 700; letter-spacing: .04em; }
.brand--light { font-weight: 500; }

/* ────────────────────────── ABOUT ────────────────────────── */
.about {
  max-width: var(--maxw); margin: clamp(3rem,7vw,6rem) auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(0, 520px);
  grid-template-areas: ".    title" "text shape";
  justify-content: center;                 /* bloco centralizado no site */
  column-gap: clamp(2rem,6vw,6rem);
  row-gap: clamp(.2rem,.5vw,.5rem);         /* shape/texto logo abaixo de "about." */
  align-items: start;                       /* topo do texto alinha com topo do shape */
}
.about__title {
  grid-area: title; justify-self: end; margin: 0;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem,6vw,4.4rem);
}
.about__text { grid-area: text; }
.about__lead { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.about__text p:not(.about__lead) {
  font-family: var(--sans); font-weight: 400; color: var(--ink-soft);
  font-size: 1.02rem; line-height: 1.65; margin-bottom: 1.1rem; max-width: 32ch;
}
.about__shape {
  grid-area: shape; justify-self: end; position: relative; overflow: hidden; isolation: isolate;
  width: min(520px, 100%); aspect-ratio: 1 / 1; background: var(--card);
  border-radius: 50% 0 0 50% / 50% 0 0 50%;   /* arredondado à ESQUERDA (orientação correta) */
  transition: background-color .45s ease; touch-action: pan-y;
}
.about__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 2; }
.about__shape.is-gl .about__img { visibility: hidden; }
.about__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* raio-x por cima do retrato, visível só dentro da lente que segue o cursor */
.about__img--xray {
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 62%, transparent 100%);
          mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 62%, transparent 100%);
}
.about__shape { --lr: 0px; --lx: 50%; --ly: 50%; }

/* ────────────────────────── FOOTER ────────────────────────── */
.footer { --pw: clamp(240px,26vw,326px); position: relative; color: #f2f0ea; margin-top: clamp(7rem,15vw,12rem); padding: calc(clamp(3rem,6vw,5rem) + clamp(2rem,4vw,3.6rem)) var(--gutter) clamp(2rem,4vw,3rem); }
/* fundo do rodapé numa camada própria: a borda de cima faz uma curva (cava) embaixo da Zoe, pra o bloco não passar atrás dela */
.footer::before { --cw: calc(var(--pw) * 2.2); --ch: calc(var(--pw) * .36); --sh: calc(var(--ch) * 1.2); content: ""; position: absolute; inset: 0; z-index: 0; background: var(--black); transition: background-color .45s ease;
  /* curva suave (mesma família da curva da página ESG). A faixa da curva é 20% mais alta que a cava e as camadas se sobrepõem
     só ABAIXO do fundo da cava — sem fresta (linha branca) e sem achatar o fundo da curva. */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 24%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0 0C20 0 28 20 50 20C72 20 80 0 100 0V24H0Z%27/%3E%3C/svg%3E"), linear-gradient(#000,#000), linear-gradient(#000,#000), linear-gradient(#000,#000);
          mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 24%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0 0C20 0 28 20 50 20C72 20 80 0 100 0V24H0Z%27/%3E%3C/svg%3E"), linear-gradient(#000,#000), linear-gradient(#000,#000), linear-gradient(#000,#000);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 50% 0, 0 calc(var(--sh) - 2px), 0 0, 100% 0; mask-position: 50% 0, 0 calc(var(--sh) - 2px), 0 0, 100% 0;
  -webkit-mask-size: var(--cw) var(--sh), 100% calc(100% - var(--sh) + 2px), calc((100% - var(--cw)) / 2 + 2px) var(--sh), calc((100% - var(--cw)) / 2 + 2px) var(--sh);
          mask-size: var(--cw) var(--sh), 100% calc(100% - var(--sh) + 2px), calc((100% - var(--cw)) / 2 + 2px) var(--sh), calc((100% - var(--cw)) / 2 + 2px) var(--sh); }
.footer__bar { position: relative; z-index: 1; }
/* Zoe: silhueta térmica em repouso; no hover vira o vídeo (fundo transparente). ~300px de largura. */
.footer__pet { position: absolute; left: 50%; top: 0; transform: translate(-50%,-50%); width: var(--pw); aspect-ratio: 900 / 458; z-index: 2; cursor: pointer; }
.footer__canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 170%; aspect-ratio: 1; touch-action: none; pointer-events: none; transition: opacity .3s ease; }
.footer__pet-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.footer__pet.is-petting .footer__pet-video { opacity: 1; }
.footer__pet.is-petting .footer__canvas { opacity: 0; }
.footer__bar { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__tagline { font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem,2.4vw,1.7rem); line-height: 1.3; margin-bottom: 1.1rem; }
.footer__copy { font-family: var(--sans); font-size: .82rem; color: #918e87; }
.footer__links { display: flex; gap: clamp(1.2rem,3vw,2.4rem); font-family: var(--serif); font-size: 1.05rem; }
.footer__links a:hover { color: var(--magenta); }

/* ───────────────────────── RESPONSIVE ───────────────────────── */
/* menu do celular (hambúrguer + folha de links) — montado por nav-mobile.js */
.nav__burger, .nav-sheet { display: none; }
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav { padding-top: .35rem; padding-bottom: .35rem; }
  .nav__replay { margin-right: auto; }
  .nav__burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 36px; margin-right: -8px; padding: 0 8px; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav__burger span { display: block; height: 1.6px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .45s cubic-bezier(.22,1,.36,1), background .3s; }
  html.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
  html.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }
  .nav-sheet {
    display: flex; flex-direction: column; justify-content: center; gap: .2rem;
    position: fixed; inset: 0; z-index: 49; padding: 4rem var(--gutter) 3rem;
    background: var(--paper); font-family: var(--serif); font-weight: 400;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s cubic-bezier(.65,0,.35,1), visibility 0s linear .6s;
  }
  html.menu-open .nav-sheet { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s cubic-bezier(.65,0,.35,1), visibility 0s; }
  html.menu-open { overflow: hidden; }
  .nav-sheet a { font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: 1.15; padding: .45rem 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .3s, color .25s; }
  html.menu-open .nav-sheet a { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1), color .25s; }
  html.menu-open .nav-sheet a:nth-child(1) { transition-delay: .18s; } html.menu-open .nav-sheet a:nth-child(2) { transition-delay: .25s; }
  html.menu-open .nav-sheet a:nth-child(3) { transition-delay: .32s; } html.menu-open .nav-sheet a:nth-child(4) { transition-delay: .39s; }
  .nav-sheet a:active { color: var(--magenta); }
  .nav-sheet .nav-sheet__cta { margin-top: 1.4rem; border-bottom: 0; font-size: 1.2rem; }

}
@media (max-width: 760px) {

  /* RODAPÉ: mais respiro entre a curva/Zoe e o texto */
  .footer { padding-top: calc(var(--pw) * .5 + 5.2rem); padding-bottom: 2.5rem; }
  .footer__bar { gap: 1.6rem; }

  /* HERO: altura menor (a figura encosta no menu e o vazio de baixo some) + sombra suave pro nome ler sobre o laranja */
  .hero { height: min(74vh, 620px); min-height: 0; }
  .hero__name { text-shadow: 0 0 22px rgba(0,0,0,.4); top: 50%; }

  /* HERO: o nome centraliza na tela e o sobrenome cabe na largura (antes saía pela esquerda) */
  .hero__name { left: 50%; }
  .hero__last { font-size: min(15.5vw, 5.4rem); }
  .hero__first { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* WORK: vira uma fileira que se arrasta com o dedo (7 cards de 41 px não dão); o nome da marca fica sobre o card */
  .work__viz { height: auto; padding: 0; }
  .work__pill { display: none; }
  .work__title { position: static; transform: none; text-align: center; margin: 0 0 1.1rem; }
  .work__grid {
    position: static; height: auto; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
  }
  .work__grid::-webkit-scrollbar { display: none; }
  .work__grid .card {
    flex: 0 0 74%; max-width: 340px; aspect-ratio: 3 / 4.1; height: auto; scroll-snap-align: center; border-radius: 6px;
    position: relative; overflow: hidden;
  }
  .work__grid .card:hover { flex-grow: 0; }
  .work__grid .card::after {
    content: attr(data-brand); position: absolute; left: 14px; bottom: 12px; z-index: 3;
    font-family: var(--serif); font-size: 1.15rem; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.55);
  }
  .work__caption { display: none; }

  /* ABOUT: empilha — título, foto, texto (antes duas colunas de ~150 px) */
  .about { grid-template-columns: 1fr; grid-template-areas: "title" "shape" "text"; row-gap: 1.2rem; margin-top: 2.5rem; }
  .about__title { justify-self: start; }
  .about__shape { justify-self: stretch; width: 100%; max-width: 440px; margin: 0 auto 0 0; }
  .about__text { padding-top: 0; }
  .about__text p:not(.about__lead) { max-width: none; }
}

/* logos de marcas: sempre monocromáticos (preto no claro, branco no escuro) */
.brand--logo { display: block; flex: none; width: auto; height: calc(clamp(1.35rem, 2.3vw, 1.9rem) * var(--s, 1)); max-width: none; filter: brightness(0); transition: opacity .3s; }
body.dark .brand--logo { filter: brightness(0) invert(1); }


/* ───────────────────────── ABERTURA (vídeo da Zoe -> raio-x -> site) ───────────────────────── */
.intro { position: fixed; inset: 0; z-index: 9000; background: #000; display: none; overflow: hidden; cursor: pointer; }
.intro.is-on { display: block; }
html.intro-on, html.intro-leaving { overflow: hidden; }
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
/* linha do scanner: núcleo claro + brilho no azul da paleta térmica (#2d8dfe / #0c38c5) */
.intro__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, #2d8dfe 14%, #fef7dc 50%, #2d8dfe 86%, transparent);
  box-shadow: 0 0 16px 4px rgba(45,141,254,.95), 0 0 70px 22px rgba(12,56,197,.7), 0 0 130px 40px rgba(12,56,197,.35);
}
.intro__skip {
  position: absolute; right: var(--gutter); bottom: clamp(1rem, 3vw, 2rem); z-index: 3; padding: .4rem 1rem;
  border: 1.3px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(0,0,0,.25);
  color: #fff; font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, border-color .25s;
}
.intro__sound {
  position: absolute; left: var(--gutter); bottom: clamp(1rem, 3vw, 2rem); z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem .4rem .75rem;
  border: 1.3px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(0,0,0,.25); color: #fff; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, border-color .25s;
}
.intro__sound[hidden] { display: none; }
.intro__sound svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.intro__sound .wave, .intro__sound .off { display: none; }
.intro__sound.is-on .wave { display: block; } .intro__sound:not(.is-on) .off { display: block; }
.intro__sound:not(.is-on) { animation: sound-pulse 1.8s ease-in-out infinite; }   /* convida a ligar o som enquanto está mudo */
@keyframes sound-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(45,141,254,.0); } 50% { box-shadow: 0 0 0 8px rgba(45,141,254,.35); } }
.intro__sound:hover { background: var(--magenta); border-color: var(--magenta); }
.intro__skip:hover { background: var(--magenta); border-color: var(--magenta); }
/* o site fica APAGADO atrás da abertura (sem animar) e só surge quando o scanner passa: nav -> aura -> nome -> cargos */
html.intro-on .nav, html.intro-on .hero__first, html.intro-on .hero__last, html.intro-on .hero__roles { animation: none; opacity: 0; }
html.intro-on .hero__canvas { opacity: 0; }
.hero__canvas { transition: opacity 1.6s cubic-bezier(.22,1,.36,1) .25s; }
html.intro-on .hero__canvas { transition: none; }
html.intro-leaving .nav        { animation: rise-in 1.1s cubic-bezier(.22,1,.36,1) .15s both; }
html.intro-leaving .hero__first { animation: rise-in 1.2s cubic-bezier(.22,1,.36,1) .5s both; }
html.intro-leaving .hero__last  { animation: rise-in 1.3s cubic-bezier(.22,1,.36,1) .65s both; }
html.intro-leaving .hero__roles { animation: rise-in 1.2s cubic-bezier(.22,1,.36,1) .95s both; }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } html.intro-on .nav, html.intro-on .hero__first, html.intro-on .hero__last, html.intro-on .hero__roles, html.intro-on .hero__canvas { opacity: 1; } }

/* ───────── idioma (PT · EN · ES) ───────── */
html.i18n-wait body { opacity: 0; }
.nav__lang, .nav-sheet__lang { display: inline-flex; align-items: center; gap: .1rem; font-family: var(--serif); }
.nav__lang { margin-left: 1.1rem; font-size: .8rem; }
.nav__lang button, .nav-sheet__lang button { background: none; border: 0; padding: .3rem .38rem; color: var(--ink); opacity: .5; cursor: pointer; letter-spacing: .06em; border-radius: 4px; transition: opacity .25s, color .25s; font: inherit; -webkit-tap-highlight-color: transparent; }
.nav__lang button:hover, .nav-sheet__lang button:hover { opacity: 1; color: var(--magenta); }
.nav__lang button[aria-pressed="true"], .nav-sheet__lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.2px; }
.nav__lang button:focus-visible, .nav-sheet__lang button:focus-visible { outline: 2px solid var(--magenta); outline-offset: 1px; }
.nav-sheet__lang { display: none; }
@media (max-width: 980px) {
  .nav__lang { display: none; }
  .nav-sheet .nav-sheet__lang { display: flex; margin-top: 1.4rem; gap: .5rem; font-size: 1.05rem; }
  .nav-sheet .nav-sheet__lang button { font-size: 1.05rem; padding: .45rem .7rem; border: 1px solid var(--line); opacity: .7; opacity: .7; text-decoration: none; }
  .nav-sheet .nav-sheet__lang button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
}

/* texto em meia-elipse acima da Zoe */
.footer__arc { position: absolute; left: 50%; bottom: 80%; width: 150%; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.footer__arc text { font-family: var(--serif); font-size: 14px; letter-spacing: .05em; fill: var(--ink); }

/* ───────── menu: hierarquia (logo · links · CTA · ferramentas) ───────── */
.nav__logo { order: 0; }
.nav__links { order: 1; margin-left: auto; margin-right: clamp(1.2rem, 2.6vw, 2.4rem); }
.nav__cta { order: 2; padding: .34rem 1rem; border: 1.3px solid var(--ink); border-radius: 999px; line-height: 1.2; transition: color .25s, border-color .25s, background .25s; }
.nav__cta:hover { color: var(--magenta); border-color: var(--magenta); }
.nav__tools { order: 3; display: inline-flex; align-items: center; gap: .05rem; margin-left: clamp(.9rem, 1.8vw, 1.6rem); }
.nav__tools .nav__toggle, .nav__tools .nav__replay { margin: 0; }
.nav__lang { margin-left: .55rem; padding-left: .6rem; border-left: 1px solid var(--line); gap: .05rem; }
.nav__lang button { display: inline-grid; place-items: center; padding: .35rem .3rem; }
.flag { display: block; width: 21px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.nav__lang button[aria-pressed="true"] { text-decoration: none; }
.nav__lang button[aria-pressed="true"] .flag { stroke-width: 1.7; }
.nav__lang button[aria-pressed="true"]::after { content: ""; display: block; height: 1.5px; margin-top: 3px; background: currentColor; border-radius: 2px; }
.nav__lang button::after { content: ""; display: block; height: 1.5px; margin-top: 3px; background: transparent; }
.nav-sheet .nav-sheet__lang button { display: inline-flex; align-items: center; gap: .5rem; }
.nav-sheet .nav-sheet__lang .flag { width: 22px; height: 15px; }
@media (max-width: 980px) {
  .nav__tools { margin-left: auto; margin-right: .1rem; }
  .nav__lang { display: none; }
  .nav__burger { order: 4; }
  .nav__replay { margin-right: 0; }
}

/* bandeiras: preenchidas, 1 cor (a do texto); recortes na cor do fundo */
.flag { stroke: none; fill: currentColor; width: 24px; height: 16px; border-radius: 2.5px; }
.flag .cut { fill: var(--paper); }
.flag .cutl { fill: none; stroke: var(--paper); stroke-linecap: butt; }
.nav__lang button[aria-pressed="true"] .flag { stroke-width: 0; }
.nav__lang button { opacity: .42; }
.nav__lang button[aria-pressed="true"] { opacity: 1; }

/* ───────── respiro com textos de comprimento variável (PT/EN/ES) ───────── */
.nav__links a, .nav__cta, .nav__lang button, .nav-sheet a { white-space: nowrap; }
h1, h2, h3, .footer__tagline, .work__title, .pj-next__link { text-wrap: balance; }
p, li, dd, dt, .pj-fact, .pj-fact * { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.footer__bar { gap: 1.6rem 2rem; }
.footer__left { min-width: 0; flex: 1 1 18rem; }
.footer__links { flex: none; }
.hero__roles { flex-wrap: wrap; row-gap: .15rem; }
.hero__roles span { white-space: nowrap; }
@media (max-width: 760px) { .hero__roles { font-size: min(.9rem, 3.1vw); gap: .6rem; } }

/* ───────── celular: vitrine em carrossel mais dinâmico + hero mais compacto ───────── */
@media (max-width: 760px) {
  .hero { height: min(62vh, 520px); }
  .work { padding-top: .4rem; }
  .work__grid { padding-bottom: .4rem; }
  .work__grid .card {
    flex: 0 0 min(76vw, 340px); max-width: none; transform-origin: 50% 55%;
    scale: calc(.88 + .12 * var(--a, 1));
    filter: brightness(calc(.55 + .45 * var(--a, 1))) saturate(calc(.6 + .4 * var(--a, 1)));
    will-change: scale, filter;
  }
  .work__grid .card::after { font-size: 1.3rem; left: 16px; bottom: 14px; opacity: calc(.2 + .8 * var(--a, 1)); }
  .work__grid:hover .card:not(:hover) { filter: brightness(calc(.55 + .45 * var(--a, 1))) saturate(calc(.6 + .4 * var(--a, 1))); }
  .work__nav { padding: .9rem 0 0; }
  .work__row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
  .work__meta { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 0; text-align: center; }
  .work__count { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; color: var(--ink-soft); }
  .work__count b { font-weight: 700; color: var(--ink); }
  .work__brand { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
  .work__arrow { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.4px solid var(--ink); background: none; color: var(--ink); cursor: pointer; transition: opacity .25s, background .25s, color .25s, transform .2s; -webkit-tap-highlight-color: transparent; }
  .work__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .work__arrow:active { transform: scale(.92); background: var(--ink); color: var(--paper); }
  .work__arrow:disabled { opacity: .25; }
  .work__dots { display: flex; justify-content: center; gap: 7px; margin-top: .9rem; }
  .work__dot { width: 7px; height: 7px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .35s cubic-bezier(.22,1,.36,1), background .3s; -webkit-tap-highlight-color: transparent; }
  .work__dot.is-on { width: 24px; background: var(--ink); }
  .work__hint { margin-top: .8rem; text-align: center; font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); transition: opacity .5s; animation: hint-nudge 1.8s ease-in-out infinite; }
  .work__nav.is-used .work__hint { opacity: 0; animation: none; }
  @keyframes hint-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
}
@media (min-width: 761px) { .work__nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .work__hint { animation: none; } }
@media (max-width: 760px) {
  /* 1º e último card também podem centralizar (o ativo fica no meio da tela) */
  .work__grid { padding-left: max(var(--gutter), calc((100vw - min(76vw, 340px)) / 2)); padding-right: max(var(--gutter), calc((100vw - min(76vw, 340px)) / 2)); scroll-padding-inline: 0; }
}
/* fonte do vídeo (usada só no Safari/iPhone, onde o canvas faz o alfa): fora da tela, invisível */
.footer__pet-src { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: 0; top: 0; }
.footer__pet { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ───────── card "mais projetos" (último da vitrine → galeria com todos os projetos) ───────── */
.work__grid .card.card--more {
  flex: 0 0 clamp(62px, 6.4vw, 96px); position: relative; overflow: hidden;
  background: transparent; border: 1.4px solid var(--ink); border-radius: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .8rem; padding: 1.1rem 0 1rem;
  color: var(--ink); transition: background .4s ease, color .4s ease, border-color .4s;
}
.work__grid .card.card--more:hover { flex-grow: 0; background: var(--ink); color: var(--paper); filter: none; }
.work__grid:hover .card.card--more:not(:hover) { filter: none; }
.more__ico { width: 22px; height: 22px; fill: currentColor; flex: none; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.card--more:hover .more__ico { transform: rotate(90deg) scale(1.1); }
.more__txt { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-size: 1.02rem; letter-spacing: .06em; white-space: nowrap; }
.more__arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.card--more:hover .more__arrow { transform: translateX(4px); }
.work__grid.in .card:nth-child(8){animation-delay:.46s}
.work__grid.out .card:nth-child(8){animation-delay:0s}
.work__grid.out .card:nth-child(7){animation-delay:.04s} .work__grid.out .card:nth-child(6){animation-delay:.08s} .work__grid.out .card:nth-child(5){animation-delay:.12s} .work__grid.out .card:nth-child(4){animation-delay:.16s} .work__grid.out .card:nth-child(3){animation-delay:.2s} .work__grid.out .card:nth-child(2){animation-delay:.24s} .work__grid.out .card:nth-child(1){animation-delay:.28s}

@media (max-width: 760px) {
  .work__grid .card.card--more { flex: 0 0 min(76vw, 340px); aspect-ratio: 3 / 4.1; flex-direction: column; justify-content: center; align-items: center; gap: 1.2rem; padding: 0; border-radius: 6px; border-style: dashed; }
  .work__grid .card.card--more::after { display: none; }
  .more__ico { width: 56px; height: 56px; }
  .more__txt { writing-mode: horizontal-tb; transform: none; font-size: 1.5rem; letter-spacing: .02em; }
  .more__arrow { width: 30px; height: 30px; }
}
@media (max-width: 760px) {
  .work__title { margin-bottom: .35rem; }
  .work__head { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin: 0 0 1.1rem; min-height: 3.6rem; text-align: center; }
  .work__head[hidden] { display: none; }
  .work__head .work__brand { font-size: 1.5rem; line-height: 1.15; }
  .work__row { justify-content: center; gap: 1.1rem; }
  .work__row .work__dots { margin-top: 0; flex-wrap: wrap; justify-content: center; max-width: 9.5rem; row-gap: 8px; }
  .work__nav { padding-top: 1rem; }
}


/* legenda da vitrine: aparece junto com a vitrine (não espera o scroll), mais perto dos cards */
@media (min-width: 761px) {
  .work__caption { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .5s, transform .9s cubic-bezier(.22,1,.36,1) .5s; margin-top: calc(-1 * clamp(1rem, 1.9vw, 1.9rem)); position: relative; z-index: 3; }
  .work__viz.in ~ .work__caption { opacity: 1; transform: none; }
}
.work__project { transition: opacity .3s ease; }

/* o nome do trabalho já aparece na legenda (desktop) e acima do carrossel (celular): sem repetir dentro dos cards */
.work__grid .card:not(.card--more)::after { content: none !important; display: none !important; }
