/* ============================================================
   Henrique Alexandre — Psicólogo · Landing Page
   Paleta (projeto Wix): creme #F7E5C9 · petróleo #20303C
   Base branco-quente com transições de onda entre seções
   ============================================================ */

:root {
  --paper: #fdfbf7;
  --cream: #f7e5c9;
  --cream-deep: #f2dfc0;
  --petrol: #20303c;
  --petrol-deep: #16222c;
  --petrol-soft: #31485a;
  --white: #ffffff;

  --ink: var(--petrol);
  --ink-soft: #55636e;
  --ink-on-dark: #eef2f4;
  --ink-on-dark-soft: #a9b7c0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(32, 48, 60, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);

  --wave-h: clamp(60px, 8vw, 110px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

::selection { background: var(--petrol); color: var(--cream); }

/* ===== Barra de progresso ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--petrol);
  z-index: 200;
}

/* ===== Botões (cantos suaves, não pílula) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition),
              border-color var(--transition);
}
.btn .icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--solid {
  background: var(--petrol);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(32, 48, 60, 0.28);
}
.btn--solid:hover {
  background: var(--petrol-deep);
  box-shadow: 0 14px 32px rgba(32, 48, 60, 0.36);
}

.btn--outline {
  color: var(--petrol);
  border: 1.5px solid rgba(32, 48, 60, 0.4);
}
.btn--outline:hover {
  border-color: var(--petrol);
  background: rgba(32, 48, 60, 0.05);
}

.btn--cream {
  background: var(--cream);
  color: var(--petrol);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.btn--cream:hover { background: var(--white); }

.btn--outline-cream {
  color: var(--cream);
  border: 1.5px solid rgba(247, 229, 201, 0.5);
}
.btn--outline-cream:hover {
  border-color: var(--cream);
  background: rgba(247, 229, 201, 0.08);
}

.btn--large { padding: 1.05rem 2.1rem; font-size: 1.02rem; }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(253, 251, 247, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), transform 0.45s var(--ease);
}
.header.is-scrolled { box-shadow: 0 2px 24px rgba(32, 48, 60, 0.1); }
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.header__brand { text-decoration: none; line-height: 1.25; }
.header__brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}
.header__brand-role {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.9rem; list-style: none; }

.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
/* sublinhado ondulado no hover */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3 Q 5 0, 10 3 T 20 3 T 30 3 T 40 3' fill='none' stroke='%2320303c' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x;
  background-size: 40px 6px;
  opacity: 0;
  transition: opacity var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--petrol); }
.nav__link:hover::after, .nav__link.is-active::after { opacity: 1; }

.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 120;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 calc(var(--wave-h) + 4rem);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.blob--1 {
  width: 480px; height: 480px;
  right: -140px; top: -100px;
  background: var(--cream);
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--2 {
  width: 320px; height: 320px;
  left: -110px; bottom: 18%;
  background: #e4ecef;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3.5rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}
.hero__title em { font-style: italic; font-weight: 300; }

.hero__text {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 33rem;
  margin-bottom: 2.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* foto em forma orgânica que se transforma lentamente */
.hero__portrait {
  width: min(360px, 74vw);
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  margin-inline: auto; /* centralizada na coluna, sem sombra */
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
  animation: morph 14s ease-in-out infinite alternate;
  background: var(--cream);
}
@keyframes morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%; }
  50%  { border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%; }
  100% { border-radius: 52% 48% 42% 58% / 45% 55% 45% 55%; }
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* luz quente em movimento no fundo do hero */
.hero__light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  will-change: transform;
}
.hero__light--1 {
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  left: -12%; top: -18%;
  background: radial-gradient(circle, rgba(255, 241, 214, 0.85) 0%, rgba(247, 229, 201, 0.35) 42%, transparent 70%);
  animation: light-drift-1 16s ease-in-out infinite alternate;
}
.hero__light--2 {
  width: 42vw; height: 42vw;
  max-width: 560px; max-height: 560px;
  right: -10%; bottom: -12%;
  background: radial-gradient(circle, rgba(255, 246, 226, 0.7) 0%, rgba(242, 223, 192, 0.3) 45%, transparent 70%);
  animation: light-drift-2 21s ease-in-out infinite alternate;
}
@keyframes light-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(42vw, 16vh) scale(1.18); }
}
@keyframes light-drift-2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-38vw, -14vh) scale(0.92); }
}

/* ondas animadas na base do hero */
.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: var(--wave-h);
  pointer-events: none;
}
.hero__wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 300%; /* 3 ciclos idênticos; anima 1 ciclo (1/3) para loop invisível */
  max-width: none; /* sem isso, o reset global (max-width: 100%) corta a onda e o fim dela aparece */
  height: 100%;
}
.hero__wave--back {
  opacity: 0.6;
  animation: wave-slide 26s linear infinite;
}
.hero__wave--front {
  animation: wave-slide 16s linear infinite reverse;
}
@keyframes wave-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}

/* ===== Seções ===== */
.section {
  position: relative;
  padding: 6rem 0;
}

/* ===== Ondas separadoras animadas (entre seções) =====
   Mesma técnica do hero: svg com 3 ciclos idênticos, anima 1 ciclo. */
.wave-div {
  height: var(--wave-h);
  overflow: hidden;
  line-height: 0;
}
.wave-div svg {
  width: 300%;
  max-width: none;
  height: 100%;
  display: block;
  animation: wave-slide 20s linear infinite;
}
.wave-div--rev svg { animation: wave-slide 28s linear infinite reverse; }

.section--cream { background: var(--cream); }

/* cor chapada: qualquer gradiente aqui cria emenda visível com as ondas */
.section--dark {
  background: var(--petrol);
  color: var(--ink-on-dark);
}
.section--dark .section__eyebrow { color: var(--cream-deep); }
.section--dark .section__title { color: var(--white); }

.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.section__title em { font-style: italic; font-weight: 300; }
.section__title--xl { font-size: clamp(2.4rem, 5vw, 3.7rem); }

.section__head { max-width: 50rem; margin-bottom: 3.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--ink-soft); }
.section__lead + .section__lead { margin-top: 1rem; }

/* ===== Sobre ===== */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.about__media {
  position: relative;
  display: flex;
  justify-content: center;
}
.about__photo {
  position: relative;
  width: min(330px, 68vw);
  aspect-ratio: 3 / 3.6;
  border-radius: 999px 999px 26px 26px; /* arco */
  overflow: hidden;
  box-shadow: 0 30px 50px -30px rgba(32, 48, 60, 0.4);
  background: var(--paper);
  will-change: transform;
  z-index: 1;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about__photo:hover img { transform: scale(1.045); }

/* selo circular com texto girando */
.about__badge {
  position: absolute;
  right: 2%;
  bottom: -34px;
  width: 132px;
  height: 132px;
  z-index: 2;
  background: var(--petrol);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(32, 48, 60, 0.3);
}
.about__badge svg {
  width: 86%;
  height: 86%;
  animation: rotate 24s linear infinite;
}
.about__badge text {
  font-family: var(--font-body);
  /* precisa caber na circunferência do circlePath (~232 un.), senão a última palavra é cortada */
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--cream);
}
@keyframes rotate { to { transform: rotate(360deg); } }

.about__text { color: var(--ink-soft); margin-bottom: 1.5rem; }

.about__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--petrol);
  border-left: 3px solid var(--petrol);
  padding-left: 1.4rem;
  margin-bottom: 1.75rem;
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--petrol);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--transition);
}
.link-arrow:hover { border-color: var(--petrol); }
.link-arrow .icon { width: 1.1rem; height: 1.1rem; }

/* ===== Serviços ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  position: relative;
  background: linear-gradient(165deg, rgba(253, 251, 247, 0.07), rgba(253, 251, 247, 0.03));
  border: 1px solid rgba(247, 229, 201, 0.18);
  border-radius: var(--radius);
  padding: 3rem 2.5rem 3.25rem;
  transition: transform 0.5s var(--ease), border-color var(--transition),
              box-shadow var(--transition);
}
/* anel que acende em volta do card no hover */
.card::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: calc(var(--radius) + 9px);
  border: 1.5px solid rgba(247, 229, 201, 0.6);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
  transform: scale(1);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(247, 229, 201, 0.5);
  box-shadow: 0 0 44px -8px rgba(247, 229, 201, 0.28);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--petrol);
  margin-bottom: 1.5rem;
  transition: transform 0.5s var(--ease);
}
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.08); }

.card__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
}

.card__text {
  color: var(--ink-on-dark-soft);
  font-size: 1rem;
  line-height: 1.75;
}

/* ===== Qualificações ===== */
.qualifications__subtitle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

/* formações: cartões */
.degrees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.degree {
  background: var(--white);
  border: 1px solid rgba(32, 48, 60, 0.1);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 30px rgba(32, 48, 60, 0.06);
  transition: transform 0.5s var(--ease), box-shadow var(--transition);
}
.degree:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(32, 48, 60, 0.12);
}

.degree__icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--petrol);
  margin-bottom: 1.2rem;
}

.degree__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.degree__org {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.degree__org em { color: var(--petrol); }

/* painel de destaque (professor + pesquisas) */
.qualifications__note {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}
.qualifications__note::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--petrol);
}
.qualifications__note p {
  color: var(--ink);
  font-size: 1.02rem;
  max-width: 62rem;
}

/* experiências: lista com ano em destaque */
.exp {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.exp__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid rgba(32, 48, 60, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  transition: transform 0.4s var(--ease), box-shadow var(--transition),
              border-color var(--transition);
}
.exp__item:hover {
  transform: translateX(6px);
  border-color: rgba(32, 48, 60, 0.28);
  box-shadow: 0 10px 30px rgba(32, 48, 60, 0.08);
}

.exp__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--petrol);
  background: var(--cream);
  border-radius: 10px;
  text-align: center;
  padding: 0.35rem 0;
}

.exp__body strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.45;
}
.exp__body span {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ===== Citação ===== */
.quote__inner {
  position: relative;
  max-width: 50rem;
  text-align: center;
}
.quote__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--petrol);
  opacity: 0.25;
  margin-bottom: 1rem;
}
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 1.75rem;
}
.quote__wave {
  display: inline-block;
  width: 110px;
  color: var(--petrol);
  opacity: 0.6;
}

/* ===== Contato ===== */
.contact__inner {
  position: relative;
  text-align: center;
  max-width: 46rem;
}
.contact__text {
  color: var(--ink-on-dark-soft);
  font-size: 1.12rem;
  margin-bottom: 2.5rem;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--petrol-deep);
  color: var(--ink-on-dark-soft);
  padding: 3.5rem 0;
  text-align: center;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.footer__note { font-size: 0.92rem; margin-bottom: 1.75rem; }

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 229, 201, 0.3);
  color: var(--cream);
  transition: background-color var(--transition), transform var(--transition),
              border-color var(--transition);
}
.footer__social a:hover {
  background: rgba(247, 229, 201, 0.1);
  border-color: var(--cream);
  transform: translateY(-3px);
}
.footer__social svg { width: 20px; height: 20px; }

.footer__copy { font-size: 0.8rem; opacity: 0.55; }

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   Animações de entrada
   ============================================================ */

.line-reveal { display: block; overflow: hidden; }
.line-reveal span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1s var(--ease) forwards;
}
.hero__title .line-reveal:nth-child(1) span { animation-delay: 0.15s; }
.hero__title .line-reveal:nth-child(2) span { animation-delay: 0.3s; }
@keyframes line-up { to { transform: translateY(0); } }

.split-reveal {
  opacity: 0;
  animation: fade-in 0.9s ease 0.05s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js .reveal--delay { transition-delay: 0.15s; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

html.js .reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}
html.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }
html.js .hero .reveal-img {
  clip-path: inset(100% 0 0 0);
  transition-delay: 0.35s;
}
html.js .hero .reveal-img.is-visible { clip-path: inset(0 0 0 0); }

html.js .stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
/* precisa do mesmo prefixo html.js: sem ele a regra de esconder
   tem especificidade maior e os filhos ficam invisíveis para sempre */
html.js .stagger.is-visible > * { opacity: 1; transform: none; }
html.js .stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
html.js .stagger.is-visible > *:nth-child(2) { transition-delay: 0.18s; }
html.js .stagger.is-visible > *:nth-child(3) { transition-delay: 0.31s; }
html.js .stagger.is-visible > *:nth-child(4) { transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > *, .reveal-img, .line-reveal span, .split-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero__wave, .hero__portrait, .blob, .about__badge svg,
  .wave-div svg, .hero__light { animation: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; margin-top: 1rem; }
  .hero__portrait { width: min(270px, 62vw); }
  .hero { padding-top: 7.5rem; }

  .about__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .about__badge { width: 110px; height: 110px; bottom: -26px; }
  .services__grid { grid-template-columns: 1fr; }
  .degrees { grid-template-columns: 1fr; }
  .exp__item { grid-template-columns: 1fr; gap: 0.6rem; }
  .exp__year { justify-self: start; padding: 0.35rem 1.1rem; }
  .qualifications__note { padding: 1.8rem 1.6rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(330px, 84vw);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.75rem;
    padding: 6.5rem 2.25rem 2rem;
    box-shadow: -16px 0 48px rgba(32, 48, 60, 0.2);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; gap: 1.4rem; }
  .nav__link { font-size: 1.1rem; }

  .section { padding: 4.5rem 0; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 2rem); }

  .section { padding: 3.5rem 0; }
  .quote { padding: 4.5rem 0; }

  .hero {
    min-height: auto;
    padding: 6.5rem 0 calc(var(--wave-h) + 2.5rem);
  }
  .hero__portrait { width: min(230px, 72vw); }
  .hero__title { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero__text { font-size: 1.05rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__light--1, .hero__light--2 { width: 90vw; height: 90vw; }

  .header__brand-name { font-size: 1.1rem; }

  .about__photo { width: min(260px, 78vw); }
  .about__badge { width: 96px; height: 96px; bottom: -20px; right: 0; }
  .about__quote { font-size: 1.1rem; padding-left: 1.1rem; }
  .about__links { flex-direction: column; gap: 1rem; }

  .card { padding: 2.25rem 1.6rem 2.5rem; }
  .card__title { font-size: 1.45rem; }

  .degree { padding: 1.6rem 1.4rem; }
  .qualifications__note { padding: 1.5rem 1.25rem; }
  .exp__item { padding: 1.25rem 1.3rem; }

  .quote blockquote p { font-size: 1.35rem; }
  .quote__mark { font-size: 4.5rem; }

  .contact__actions { flex-direction: column; align-items: stretch; }
  .contact__actions .btn { justify-content: center; }

  .whatsapp-float {
    width: 52px; height: 52px;
    right: 1rem; bottom: 1rem;
  }
  .whatsapp-float svg { width: 26px; height: 26px; }

  .footer { padding: 2.5rem 0; }
}
