/* Tokens e estilos globais */
:root {
  --bg: #101014;
  --purple: #8455f6;
  --lavender: #c5aeff;
  --muted: #afaeb9;
  --ink: #25232b;
  --font: 'Schibsted Grotesk',Arial,sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a,button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 6px;
}
p,h1,h2,h3,figure {
  margin: 0;
}
button,a {
  touch-action: manipulation;
}
#page {
  width: 100%;
  max-width: none;
  margin: 0;
  container-type: inline-size;
  overflow: clip;
}
.skip {
  position: fixed;
  z-index: 99;
  top: -100px;
  padding: 12px;
  background: white;
  color: #101014;
}
.skip:focus {
  top: 10px;
}
/* Abertura do portfólio */
.hero {
  height: min(71.5278cqw,1120px);
  position: relative;
}
/* Cabeçalho e navegação fixa */
.nav {
  display: flex;
  justify-content: space-between;
}
.brand {
  font-size: clamp(20px,1.6667cqw,24px);
  font-weight: 700;
}
.nav nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav nav a {
  transition: color .2s;
}
.nav nav a:hover {
  color: var(--lavender);
}
.violet,.eyebrow {
  color: var(--lavender);
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}
.hero-eyebrow {
  position: absolute;
  left: min(5.5556cqw,120px);
  top: min(10.5556cqw,160px);
  letter-spacing: 2px;
  font-size: clamp(10px,.9722cqw,14px);
}
h1 {
  position: absolute;
  top: min(13.4722cqw,214px);
  left: min(4.9306cqw,104px);
  font-size: min(11.3889cqw,196px);
  letter-spacing: -.055em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--lavender);
}
.hero-intro {
  position: absolute;
  left: min(5.5556cqw,120px);
  top: min(29.7222cqw,474px);
  width: min(21cqw,400px);
  z-index: 3;
}
.hero-intro>p:first-child {
  font-size: min(1.6667cqw,28px);
  font-weight: 500;
  line-height: 1.2;
}
.muted {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.25;
}
.hero-intro>.muted {
  font-size: min(1.1111cqw,18px);
  max-width: min(18.4722cqw,340px);
  margin-top: 20px;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  background: var(--purple);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  transition: transform .2s,background .2s,box-shadow .2s;
}
.button:hover {
  transform: translateY(-3px);
  background: #956bff;
  box-shadow: 0 8px 25px #8455f630;
}
.button:active {
  transform: translateY(0);
}
.outline {
  border-color: #76648f;
  background: transparent;
}
.outline:hover {
  background: #c5aeff12;
}
.available {
  position: absolute;
  top: min(31.25cqw,498px);
  right: min(5.5556cqw,120px);
  width: min(12.7778cqw,240px);
}
.available .eyebrow {
  font-size: 11px;
}
.available .muted {
  margin-top: 12px;
}
.hero-note {
  position: absolute;
  left: min(5.5556cqw,120px);
  top: min(57.7778cqw,924px);
  letter-spacing: 1.4px;
  font-size: 11px;
}
.character {
  position: absolute;
  top: min(31.1111cqw,500px);
  left: 50%;
  width: min(71.875cqw,1150px);
  transform: translateX(-50%);
  aspect-ratio: 1.5;
  z-index: 2;
  pointer-events: none;
}
.character #portrait,.character canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.character canvas {
  opacity: 0;
}
.character canvas.ready {
  opacity: 1;
}
.light {
  background: white;
  color: var(--ink);
}
/* Apresentação */
.intro {
  min-height: min(23.6111cqw,415px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: min(7.6389cqw,115px) min(5.5556cqw,120px) min(5cqw,78px);
  gap: 40px;
}
.intro h2 {
  font-size: min(3.6111cqw,58px);
  line-height: 1.2;
  font-weight: 500;
}
.intro>p {
  font-size: 17px;
  color: #66636d;
  line-height: 1.2;
  width: 25%;
  max-width: 400px;
  margin-top: 18px;
}
/* Projetos e carrossel */
.projects {
  padding: 66px min(5.5556cqw,120px) 130px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
  gap: 24px;
}
.section-heading h2 {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 500;
}
.carousel {
  outline: none;
}
.slide {
  display: grid;
  grid-template-columns: 47.65625% 52.34375%;
  background: #1d1928;
  overflow: hidden;
  min-height: min(42.3611cqw,690px);
}
.case-copy {
  padding: 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.case-copy .eyebrow {
  font-size: 12px;
}
.case-copy h3 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
}
.case-headline {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 500;
}
.case-desc {
  font-size: 16px;
  line-height: 1.25;
  color: #c5c1cd;
}
.case-label {
  font-size: 11px;
  color: var(--lavender);
  font-weight: 600;
  line-height: 1.25;
}
.case-detail {
  font-size: 15px;
  line-height: 1.25;
}
.case-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}
.case-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 670/610;
  container-type: inline-size;
  isolation: isolate;
  background: #201b2b;
}
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(#fff2 1px, transparent 1px), linear-gradient(90deg,#fff2 1px,transparent 1px);
  background-size: 9% 9%;
  mask-image: linear-gradient(to bottom,transparent,black 35%,transparent);
}
.stage--itau { background: radial-gradient(ellipse at 64% 43%,#7d3ec2 0%,#4c267c 38%,#241330 85%); }
.stage--sumup { background: radial-gradient(ellipse at 29% 40%,#154f6a 0%,#103246 43%,#101c30 90%); }
.stage--formio { background: radial-gradient(ellipse at 66% 42%,#6d537c 0%,#362a51 47%,#1c192d 92%); }
.stage--agitae {
  background: #241827 url('assets/agitae-festa.webp') center / cover no-repeat;
}
.stage-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  left: 17%;
  bottom: -42%;
  background: #fff;
  filter: blur(16cqw);
  opacity: .075;
  pointer-events: none;
}
.stage .stage-label {
  position: absolute;
  z-index: 8;
  left: 5%;
  top: 5%;
  max-width: 75%;
  font-size: clamp(9px,1.55cqw,14px);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  color: #f2e9ff;
  text-shadow: 0 1px 12px #0009;
}
.stage--itau .stage-label,
.stage--formio .stage-label,
.stage--agitae .stage-label { display: none; }
.stage .cover-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  user-select: none;
  pointer-events: none;
}
.stage .presenter {
  display: block;
  position: absolute;
  z-index: 3;
  width: 83%;
  height: auto;
  bottom: -24%;
  left: 31%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(1.6cqw 1.8cqw 2cqw #0006);
}
.stage--sumup .presenter {
  bottom: -38%;
  left: 33%;
}
.device {
  position: absolute;
  z-index: 4;
  transform-origin: top left;
  overflow: hidden;
  background: #15141b;
  border: 1px solid #ffffff6b;
  border-radius: 3.8cqw;
  box-shadow: 0 2cqw 5cqw #0009, inset 0 0 0 1px #ffffff18;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
}
.desktop {
  left: 2%;
  top: 18%;
  width: 61%;
  height: 53%;
  padding: 3.6cqw .8cqw .8cqw;
  border-radius: 1.5cqw;
  transform: rotate(-3deg);
  border-color: #8afcff;
  box-shadow: 0 0 .6cqw #a6ffff,0 0 3cqw #31ecec88,0 5cqw 8cqw #0009;
}
.browser-dots {
  position: absolute;
  top: 1.45cqw;
  left: 1.75cqw;
  display: flex;
  gap: .75cqw;
}
.browser-dots i {
  width: .65cqw;
  height: .65cqw;
  border-radius: 50%;
  background: #a4a5b7;
}
.screen-clip {
  height: 100%;
  overflow: hidden;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}
.controls span {
  font-size: 15px;
  font-weight: 500;
  color: var(--lavender);
}
.project-footnote {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}
/* Sobre */
.about {
  min-height: 700px;
  padding: 66px min(5.5556cqw,120px) 100px;
  display: grid;
  grid-template-columns: 59.375% 32.03125%;
  justify-content: space-between;
  gap: 40px;
}
.about .eyebrow {
  color: #7850ca;
  font-weight: 600;
}
.about h2 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 500;
  margin-top: 24px;
}
.bio {
  font-size: 21px;
  line-height: 1.2;
  margin-top: 40px;
}
.secondary {
  color: #66636d;
  font-size: 17px;
  line-height: 1.2;
  margin-top: 24px;
}
.education {
  font-size: 13px;
  line-height: 1.2;
  color: #66636d;
  margin-top: 24px;
}
.about .button {
  margin-top: 100px;
  color: white;
}
.about-photo {
  margin-top: 34px;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
}
.about-photo figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 12px;
  color: #7850ca;
}
/* Contato */
.contact {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 55% 95% at 0% 100%,#6740b72e,transparent 78%),linear-gradient(118deg,#17121f,#111016 83%);
  border-top: 1px solid #ffffff18;
  padding: clamp(62px,6cqw,88px) min(5.5556cqw,120px) 28px;
  min-height: calc(100svh - 68px);
}
.contact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: min(5.5556cqw,120px);
  width: 110px;
  height: 3px;
  background: var(--purple);
}
.contact-top {
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  gap: clamp(48px,7cqw,120px);
  flex: 1;
  align-items: center;
  margin-bottom: 40px;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-kicker {
  color: var(--lavender);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 25px;
}
.contact h2 {
  font-size: clamp(43px,4.5cqw,74px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.045em;
}
.contact h2 span { color: var(--lavender); }
.contact-description {
  color: #c1bbc9;
  max-width: 460px;
  margin-top: 28px;
  font-size: clamp(16px,1.3cqw,19px);
  line-height: 1.5;
}
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 11px 14px;
  border: 1px solid #a593c536;
  border-radius: 9px;
  background: #a593c511;
  color: #d0c5e1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
}
.contact-status {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #bce7c5;
  box-shadow: 0 0 0 3px #bce7c518;
}
.contact-details {
  font-style: normal;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.contact-channel {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  min-height: 124px;
  padding: 24px;
  border: 1px solid #ffffff1e;
  border-radius: 17px;
  background: #ffffff08;
  transition: background .22s,border-color .22s,transform .22s;
}
.contact-channel--primary {
  border-color: #a985f45b;
  background: linear-gradient(115deg,#6d4ab22e,#ffffff08 82%);
}
.contact-channel:hover {
  background: #ffffff11;
  border-color: #b49bff94;
  transform: translateY(-2px);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #a985f41d;
  border: 1px solid #cbb4ff24;
  border-radius: 12px;
  color: #d2bdff;
}
.contact-channel--primary .contact-icon {
  background: #25d36613;
  border-color: #25d36640;
  color: #25d366;
}
.contact-icon svg { width: 23px; height: 23px; }
.contact-channel-copy { display: flex; flex-direction: column; min-width: 0; }
.contact-channel-label,.contact-social-label {
  color: var(--lavender);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.contact-channel strong {
  margin-top: 7px;
  color: #fff;
  font-size: clamp(17px,1.55cqw,22px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-channel-hint { color: #ada4bc; font-size: 13px; line-height: 1.4; margin-top: 5px; }
.contact-social {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #ffffff24;
}
.contact-social-links {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.contact-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 9px;
  border: 1px solid #ffffff25;
  color: #e8e1f3;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s,border-color .2s;
}
.contact-social-links a:hover { background: #ffffff10; border-color: #b49bff94; }
.contact footer {
  padding-top: 24px;
  border-top: 1px solid #ffffff1e;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: #b7aec6;
}
.contact footer span+span {
  font-size: 11px;
  letter-spacing: .11em;
}
.reveal {
  transition: opacity .75s,transform .75s;
}
.motion .reveal.waiting {
  opacity: 0;
  transform: translateY(28px);
}

/* Abertura desktop proporcional ao espaço realmente visível.
   O estágio mantém a proporção original, mas respeita também a altura
   do navegador. A base do personagem coincide com a faixa branca. */
@media (min-width: 901px) {
  .hero {
    --hero-stage: clamp(720px, min(100cqw, calc((100svh - 120px) * 1.39806)), 1440px);
    height: max(560px, calc(var(--hero-stage) * .715278));
    min-height: 0;
    z-index: 2;
  }
  .hero-eyebrow {
    top: calc(var(--hero-stage) * .105556);
    font-size: clamp(10px, calc(var(--hero-stage) * .00097222), 14px);
  }
  .hero h1 {
    top: calc(var(--hero-stage) * .134722);
    font-size: calc(var(--hero-stage) * .113889);
  }
  .hero-intro {
    top: calc(var(--hero-stage) * .297222);
  }
  .hero-intro > p:first-child {
    font-size: clamp(18px, calc(var(--hero-stage) * .016667), 28px);
  }
  .hero-intro > .muted {
    font-size: clamp(13px, calc(var(--hero-stage) * .011111), 18px);
  }
  .available {
    top: calc(var(--hero-stage) * .3125);
  }
  .hero-note {
    top: calc(var(--hero-stage) * .577778);
  }
  .character {
    /* A base das mãos permanece ligada à borda da seção clara. */
    --character-width: min(calc(var(--hero-stage) * .71875), 58cqw);
    top: auto;
    bottom: calc(var(--character-width) * -.07343);
    width: var(--character-width);
  }
  .intro {
    position: relative;
    z-index: 1;
  }
}

/* Layout responsivo: (max-width:1100px) and (min-width:901px) */
@media(max-width:1100px) and (min-width:901px) {
  .hero-intro {
    width: min(30cqw, 300px);
  }
  .hero-intro > .muted {
    max-width: min(28cqw, 280px);
  }
  .nav nav {
    gap: 20px;
    font-size: 12px;
  }
  .button {
    min-height: 42px;
    font-size: 12px;
    padding: 10px 16px;
  }
  .actions {
    gap: 8px;
    margin-top: 20px;
  }
  .available .eyebrow,.hero-note {
    font-size: 9px;
  }
  .available .muted {
    font-size: 12px;
  }
  .intro>p {
    font-size: 14px;
  }
  .case-copy {
    padding: 26px;
    gap: 13px;
  }
  .case-copy h3 {
    font-size: 25px;
  }
  .case-headline {
    font-size: 21px;
  }
  .case-desc {
    font-size: 14px;
  }
  .case-detail {
    font-size: 13px;
  }
  .section-heading h2 {
    font-size: 36px;
  }
  .about h2 {
    font-size: 34px;
  }
  .bio {
    font-size: 18px;
  }
  .secondary {
    font-size: 15px;
  }
  .contact h2 {
    font-size: 48px;
  }
  .contact-details {
    font-size: 16px;
  }
}
/* Layout responsivo: (max-width:900px) */
@media(max-width:900px) {
  .nav {
    top: 24px;
    left: 24px;
    right: 24px;
  }
  .brand {
    font-size: 20px;
    white-space: nowrap;
  }
  .nav nav {
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav nav a:last-child {
    width: 100%;
    text-align: right;
  }
  .hero-eyebrow {
    top: 112px;
    left: 24px;
  }
  h1 {
    top: 145px;
    left: 20px;
    font-size: clamp(52px,12.8vw,94px);
    letter-spacing: -3px;
  }
  .hero-intro {
    top: 260px;
    left: 24px;
  }
  .hero-intro>p:first-child {
    font-size: 22px;
  }
  .hero-intro>.muted {
    font-size: 15px;
    margin-top: 16px;
  }
  .actions {
    margin-top: 24px;
    gap: 10px;
  }
  .button {
    font-size: 14px;
    min-height: 48px;
    padding: 13px 18px;
  }
  .available {
    top: 465px;
    left: 24px;
  }
  .available .eyebrow {
    font-size: 10px;
  }
  .available .muted {
    font-size: 12px;
  }
  .hero-note {
    display: none;
  }
  .character {
    aspect-ratio: 1.5;
  }
  .intro {
    display: block;
    padding: 90px 24px 56px;
    min-height: 0;
  }
  .intro h2 {
    font-size: clamp(27px,6.8vw,42px);
  }
  .intro>p {
    width: 100%;
    font-size: 16px;
    max-width: 380px;
    margin-top: 28px;
  }
  .projects {
    padding: 56px 24px 64px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .section-heading .eyebrow {
    font-size: 10px;
    margin-top: 14px;
  }
  .slide {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .case-copy {
    padding: 24px;
    gap: 16px;
  }
  .case-copy h3 {
    font-size: 26px;
  }
  .case-headline {
    font-size: 23px;
  }
  .case-copy .button {
    margin-top: 4px;
  }
  .case-detail {
    font-size: 15px;
  }
  .stage {
    width: 100%;
  }
  .stage-label {
    font-size: 9px!important;
  }
  .controls {
    margin-top: 22px;
  }
  .project-footnote {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 30px;
  }
  .about {
    display: flex;
    flex-direction: column;
    padding: 56px 24px;
    gap: 48px;
    min-height: 0;
  }
  .about h2 {
    font-size: 32px;
    margin-top: 22px;
  }
  .bio {
    font-size: 19px;
    margin-top: 28px;
    line-height: 1.35;
  }
  .secondary {
    font-size: 16px;
    line-height: 1.4;
  }
  .education {
    line-height: 1.5;
  }
  .about .button {
    margin-top: 32px;
  }
  .about-photo {
    margin-top: 0;
    max-width: 410px;
    width: 100%;
  }
  .contact { padding: 56px 24px 24px; }
  .contact::before { left: 24px; }
  .contact-top { grid-template-columns: 1fr; flex: none; align-items: start; gap: 34px; margin-bottom: 50px; }
  .contact-kicker { margin-bottom: 18px; font-size: 11px; }
  .contact h2 { font-size: clamp(34px,8.5cqw,44px); }
  .contact-description { margin-top: 22px; font-size: 15px; }
  .contact-availability { margin-top: 24px; font-size: 10px; }
  .contact-channel { padding: 18px; min-height: 106px; grid-template-columns: 40px minmax(0,1fr); gap: 12px; }
  .contact-icon { width: 40px; height: 40px; border-radius: 10px; }
  .contact-icon svg { width: 21px; height: 21px; }
  .contact-channel strong { font-size: 17px; }
  .contact-channel-hint { font-size: 12px; }
  .contact-social { margin-top: 6px; }
  .contact-social-links a { min-width: 0; }
  .contact footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .about-photo figcaption {
    font-size: 10px;
  }
  .contact a:focus-visible {
    outline-color: white;
  }
}
@media (min-width: 540px) and (max-width: 900px) {
  .contact-top { grid-template-columns: 1fr; flex: none; align-items: start; gap: 38px; }
  .contact-details { max-width: 700px; }
  .contact h2 { font-size: clamp(44px,6.8cqw,62px); }
}
/* Layout responsivo: (min-width:540px) and (max-width:900px) */
@media(min-width:540px) and (max-width:900px) {
  .hero {
    height: 970px;
  }
  .character {
    width: 95%;
    left: 2.5%;
  }
  .available {
    top: 430px;
    left: auto;
    right: 24px;
  }
  .hero-intro {
    width: 50%;
  }
}
/* Layout responsivo: (prefers-reduced-motion:reduce) */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
  }
  .motion .reveal.waiting {
    opacity: 1;
    transform: none;
  }
}
/* Estrutura e interações do carrossel */
#slides {
  display: grid;
  border-radius: 20px;
  overflow: hidden;
  padding: 10px clamp(34px, 8vw, 112px) 18px;
  background: transparent;
  perspective: 1400px;
  isolation: isolate;
}
.slide {
  grid-area: 1/1;
  min-width: 0;
  position: relative;
  border-radius: 20px;
  align-self: stretch;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) scale(.8);
  filter: brightness(.45) saturate(.75);
  transition: transform .62s cubic-bezier(.22,.72,.23,1),filter .62s ease,opacity .62s ease;
  box-shadow: 0 14px 30px #0005;
}
.slide.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1) rotateY(0);
  filter: none;
  box-shadow: 0 22px 40px #0008;
}
.slide.is-prev,.slide.is-next {
  z-index: 2;
  opacity: .82;
  filter: brightness(.48) saturate(.68) blur(.8px);
}
.slide.is-prev { transform: translateX(-32%) scale(.92) rotateY(5deg); }
.slide.is-next { transform: translateX(32%) scale(.92) rotateY(-5deg); }
.slide.is-far {
  z-index: 1;
  opacity: 0;
  transform: translateX(0) scale(.78);
}
.case-copy .button {
  margin-top: auto;
}
.stage {
  align-self: stretch;
  min-height: min(42.3611cqw,690px);
}
.controls {
  position: relative;
}
/* Feedback de interação */
.click-ripple {
  position: fixed;
  z-index: 1000;
  width: 1px;
  height: 1px;
  pointer-events: none;
  --ripple-color: rgba(210,193,255,.5);
}
.click-ripple.on-light {
  --ripple-color: rgba(122,80,210,.38);
}
.click-ripple:before,.click-ripple:after {
  content: '';
  position: absolute;
  left: -12px;
  top: -12px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ripple-color);
  border-radius: 50%;
  animation: water-ring .65s cubic-bezier(.16,.65,.3,1) both;
}
.click-ripple:after {
  animation-delay: .1s;
  border-width: .7px;
}
@keyframes water-ring {
  0% {
    transform: scale(.2);
    opacity: 0;
  }
  15% {
    opacity: .65;
  }
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}
/* Menu compacto */
.menu-toggle {
  display: none;
}
/* Layout responsivo: (max-width:900px) */
@media(max-width:900px) {
  #slides {
    padding-inline: clamp(18px,5vw,36px);
  }
  .case-copy {
    flex: 1;
  }
  .stage {
    min-height: 0;
    flex: none;
    aspect-ratio: 670/610;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid #76648f;
    border-radius: 8px;
  }
  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #c5aeff;
    transition: transform .2s,opacity .2s;
  }
  .menu-toggle[aria-expanded=true] span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded=true] span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .nav nav {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #1d1928;
    border: 1px solid #463956;
    border-radius: 12px;
    box-shadow: 0 16px 40px #0005;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s,transform .2s,visibility .2s;
  }
  .nav nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .nav nav a,.nav nav a:last-child {
    width: 100%;
    text-align: left;
    border-radius: 6px;
  }
  .nav nav a:hover {
    background: #c5aeff0e;
  }
}
.device {
  isolation: isolate;
}
.device .screen-clip {
  position: relative;
  border-radius: 3.05cqw;
  clip-path: inset(0 round 3.05cqw);
  background: #0d1215;
  transform: translateZ(0);
}
.device .screen-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.desktop .screen-clip {
  border-radius: .6cqw;
  clip-path: inset(0 round .6cqw);
}
.desktop .screen-clip img {
  object-fit: contain;
  object-position: center top;
}
/* Avatar, olhos e sombras */
.character .hand-shadows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.character #portrait {
  clip-path: polygon(0 0,100% 0,100% 88.98%,91% 88.98%,91% 100%,71% 100%,71% 88.98%,29% 88.98%,29% 100%,8% 100%,8% 88.98%,0 88.98%);
}
/* Layout responsivo: (min-width:540px) and (max-width:900px) */
@media(min-width:540px) and (max-width:900px) {
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 24px clamp(24px,5.5556vw,120px);
  z-index: 80;
  background: #101014;
  border-bottom: 1px solid #ffffff0b;
  align-items: center;
}
.nav .brand {
  font-size: 24px;
}
/* Layout responsivo: (max-width:900px) */
@media(max-width:900px) {
  .nav {
    align-items: center;
  }
  .nav .brand {
    font-size: 20px;
  }
}
/* Layout responsivo: (min-width:540px) and (max-width:900px) */
@media(min-width:540px) and (max-width:900px) {
  .character {
    bottom: -6.97585cqw;
  }
}
html {
  scroll-padding-top: 88px;
}
.nav {
  min-height: 68px;
  padding-block: 12px;
}
/* Layout responsivo: (max-width:900px) */
@media(max-width:900px) {
  .nav {
    min-height: 68px;
    padding: 12px 24px;
  }
  .nav nav {
    top: 60px;
    right: 24px;
    width: max-content;
    max-width: calc(100vw - 48px);
    min-width: 180px;
    padding: 8px;
  }
  .nav nav a,.nav nav a:last-child {
    min-height: 44px;
    padding: 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .hero {
    height: auto;
    padding: 104px 24px 0;
    display: flow-root;
  }
  .hero-eyebrow {
    position: static;
    font-size: 10px;
    letter-spacing: 1.4px;
  }
  .hero h1 {
    position: static;
    margin-top: 24px;
    font-size: clamp(44px,12.8cqw,88px);
    letter-spacing: -.055em;
    line-height: 1.1;
  }
  .hero-intro {
    position: static;
    width: 100%;
    margin-top: 40px;
  }
  .hero-intro>.muted {
    max-width: 330px;
    line-height: 1.4;
  }
  .hero .actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    white-space: normal;
  }
  .hero .actions .button {
    font-size: 14px;
    padding-inline: 16px;
  }
  .available {
    position: static;
    width: auto;
    margin-top: 32px;
  }
  .available .muted {
    margin-top: 10px;
    line-height: 1.4;
  }
  .character {
    position: relative;
    transform: none;
    top: auto;
    bottom: auto;
    left: -48px;
    width: calc(100% + 96px);
    margin-top: 32px;
    margin-bottom: calc(-.07343 * (100cqw + 48px));
  }
}

/* Grandes monitores: superfícies de ponta a ponta com leitura confortável. */
@media (min-width: 1840px) {
  .section-heading, .carousel, .project-footnote,
  .contact-top, .contact footer {
    max-width: 1750px;
    margin-inline: auto;
  }
  .about {
    grid-template-columns: minmax(0,900px) minmax(0,540px);
  }
}

/* Tablet em retrato: reduz o espaço morto antes do personagem e
   mantém os dedos na transição com a faixa branca. */
@media (min-width: 540px) and (max-width: 900px) {
  .hero { padding-top: 88px; }
  .hero h1 {
    margin-top: 14px;
    font-size: clamp(52px, 9.3cqw, 84px);
  }
  .hero-intro { margin-top: 20px; }
  .available { margin-top: 20px; }
  .character {
    --tablet-character-width: min(80cqw, max(450px, calc((100svh - 490px) * 1.5)));
    left: 50%;
    width: var(--tablet-character-width);
    transform: translateX(-50%);
    margin-top: 20px;
    margin-bottom: calc(var(--tablet-character-width) * -.07343);
  }
}

/* Tablet deitado / notebook compacto: distribuição horizontal semelhante
   ao desktop para não exigir uma abertura mais alta que a própria janela. */
@media (min-width: 700px) and (max-width: 900px) and (max-height: 760px) {
  .hero {
    height: max(560px, calc(100svh - 110px));
    padding: 0;
    display: block;
  }
  .hero-eyebrow {
    position: absolute;
    top: 100px;
    left: 24px;
  }
  .hero h1 {
    position: absolute;
    top: 135px;
    left: 24px;
    margin: 0;
    font-size: clamp(60px, 9.4cqw, 84px);
    line-height: 1.1;
  }
  .hero-intro {
    position: absolute;
    top: 280px;
    left: 24px;
    width: 37%;
    margin: 0;
  }
  .hero-intro > p:first-child { font-size: 18px; }
  .hero-intro > .muted { font-size: 13px; max-width: 220px; margin-top: 12px; }
  .hero .actions { margin-top: 15px; }
  .hero .actions .button { min-height: 42px; padding: 10px 13px; font-size: 12px; }
  .available {
    position: absolute;
    top: 288px;
    left: auto;
    right: 24px;
    width: 130px;
    margin: 0;
  }
  .character {
    position: absolute;
    /* Mesma âncora da versão desktop: a seção branca define a base. */
    --character-width: min(58cqw, 525px);
    top: auto;
    bottom: calc(var(--character-width) * -.07343);
    left: 50%;
    width: var(--character-width);
    margin: 0;
    transform: translateX(-50%);
  }
}

/* Celulares de viewport muito baixa: compacto sem ocultar conteúdo. */
@media (max-width: 539px) and (max-height: 700px) {
  .hero { padding-top: 72px; }
  .hero h1 { margin-top: 14px; }
  .hero-intro { margin-top: 16px; }
  .hero .actions { margin-top: 18px; }
  .available { margin-top: 12px; }
  .character {
    left: -36px;
    width: calc(100% + 72px);
    margin-top: 4px;
    margin-bottom: calc(-.07343 * (100cqw + 24px));
  }
}

/* Ao chegar pelo link #projetos, aproxima o título da navegação fixa,
   sem esconder a primeira linha e mantendo a capa do case na dobra. */
@media (min-width: 901px) {
  #projetos {
    scroll-margin-top: -26px;
  }
  #projetos .section-heading {
    margin-bottom: 24px;
  }
}

/* Ação principal após contexto, contribuição e decisão — na mesma ordem
   visual e de leitura por teclado. */
.case-copy .button {
  margin-top: 8px;
}

/* Em janelas intermediárias, dados complementares lado a lado deixam
   o botão visível sem inverter a hierarquia ou aumentar o card. */
@media (min-width: 540px) and (max-width: 900px) {
  #projetos .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
  }
}

/* Em celulares estreitos, economizar espaço acima do CTA sem esconder texto. */
@media (max-width: 359px) and (max-height: 700px) {
  #projetos {
    padding-top: 36px;
  }
  #projetos .section-heading {
    margin-bottom: 18px;
  }
  #projetos .section-heading h2 {
    font-size: 27px;
  }
  #projetos .case-copy {
    padding: 18px;
    gap: 11px;
  }
  #projetos .case-copy h3 {
    font-size: 23px;
  }
  #projetos .case-headline {
    font-size: 20px;
  }
}


/* Cards mais compactos e controles únicos abaixo do carrossel.
   O limite também considera a altura visível em telas de notebook. */
@media (min-width: 901px) {
  #projetos { padding-top: 44px; }
  #projetos .section-heading,
  #projetos .carousel,
  #projetos .project-footnote {
    width: min(100%, 1120px, max(700px, calc(186dvh - 483.6px)));
    margin-inline: auto;
  }
  #projetos .section-heading {
    margin-bottom: 22px;
  }
  #projetos .section-heading h2 {
    font-size: clamp(30px, 2.7cqw, 39px);
  }
  #projetos .slide {
    min-height: 0;
  }
  #projetos .stage {
    min-height: 0;
  }
  #projetos .case-copy {
    padding: clamp(22px, 2.1cqw, 30px);
    gap: 11px;
  }
  #projetos .case-copy h3 { font-size: clamp(22px, 2vw, 27px); }
  #projetos .case-headline { font-size: clamp(18px, 1.6vw, 23px); }
  #projetos .case-desc { font-size: 14px; line-height: 1.4; }
  #projetos .case-detail { font-size: 13px; line-height: 1.4; }
  #projetos .case-copy .button { min-height: 43px; padding: 11px 16px; font-size: 14px; }
  #projetos .controls { margin-top: 16px; }
  #projetos .controls .button { min-height: 40px; padding: 9px 18px; font-size: 13px; }
}
@media (max-width: 900px) {
  #projetos { padding-top: 42px; }
  #projetos .section-heading { margin-bottom: 20px; }
  #projetos .case-copy { gap: 12px; }
  #projetos .controls { margin-top: 16px; }
}

/* Notebooks com pouca altura útil: preservar CTA e paginação sem encolher textos abaixo do legível. */
@media (min-width: 901px) and (max-height: 700px) {
  #projetos { padding-top: 26px; }
  #projetos .section-heading { margin-bottom: 14px; }
  #projetos .case-copy { padding: 17px 19px; gap: 7px; }
  #projetos .case-copy h3 { font-size: 21px; }
  #projetos .case-headline { font-size: 17px; }
  #projetos .case-desc, #projetos .case-detail { font-size: 12px; }
  #projetos .case-label { font-size: 10px; }
  #projetos .case-copy .button { margin-top: 8px; min-height: 40px; }
  #projetos .controls { margin-top: 11px; }
}

/* O personagem é uma camada decorativa, não uma imagem selecionável.
   Isso evita a seleção azul/caixa da figura ao clicar duas vezes no Opera.
   O canvas dos olhos e as sombras SVG permanecem nas mesmas coordenadas. */
.character, .character * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.character #portrait {
  background: url("assets/paulo-sorriso-hero.png") center / 100% 100% no-repeat;
  /* Captura o duplo clique somente na silhueta; não seleciona textos atrás. */
  pointer-events: auto;
}
