/* =========================================================
   Fonte: Forma DJR Deck, carregada pelo código do Adobe Fonts
   (o <link> fica no <head> do index.html). Sem ele, o site
   usa a Hanken Grotesk automaticamente.
   ========================================================= */

/* ================= Tokens (estilos do Figma) ================= */
:root {
  --bg: #212624;
  --cream: #faebd7;          /* Antique White */
  --cream-2: #fcf0e1;
  --navy: #3f059e;           /* Navy Electric */
  --purple: #6e3fad;
  --purple-light: #a77de6;   /* roxo claro para hovers no fundo escuro */
  --gray: #959998;
  --gray-light: #cacccc;
  --gunmetal: #2b3230;
  --ink: #0b0d0c;

  /* "forma-djr-deck" é o nome que o Adobe Fonts costuma dar. Confira o nome
     exato na página do seu Web Project e troque aqui se for diferente. */
  --font: "forma-djr-deck", "Forma DJR Deck", "Hanken Grotesk", system-ui, sans-serif;

  --pad-x: clamp(20px, 3.4vw, 48px);
  --h2: clamp(32px, 3.34vw, 48px);
  --h4: clamp(22px, 2.23vw, 32px);
  --text-l: clamp(16px, 1.39vw, 20px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================= Base ================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none; /* bloqueia o "salvar imagem" ao segurar no celular */
}

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.section { padding: 40px var(--pad-x); }

.section-title {
  margin: 0;
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.section-title--left { text-align: left; }

/* ================= Cursor personalizado ================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}
.cursor svg {
  display: block;
  width: 100%; height: 100%;
  transform: scale(0.55); /* 22px na tela, mas desenhado em 40px para ficar nítido */
  transition: transform 0.35s var(--ease-spring);
}
.has-cursor .cursor.is-visible { opacity: 1; }
.has-cursor .cursor.is-hover svg { transform: scale(0.95); animation: cursor-spin 2.4s linear infinite; }
.has-cursor .cursor.is-down svg { transform: scale(0.45); }

/* Esconde o cursor padrão só quando o personalizado está ativo */
.has-cursor,
.has-cursor * { cursor: none !important; }

@keyframes cursor-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

/* ================= Hero ================= */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7.5vw, 108px);
  min-height: clamp(560px, 55.6vw, 801px);
  padding: 34px clamp(16px, 2.1vw, 30px) clamp(64px, 9.4vw, 136px);
  background: linear-gradient(90deg, var(--navy) 0%, var(--cream) 100%);
}

/* Fundo: degradê cônico girando em volta do canto inferior esquerdo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Garante leitura do texto branco à esquerda, por cima do degradê */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(63, 5, 158, 0.45) 0%, rgba(63, 5, 158, 0.15) 50%, rgba(63, 5, 158, 0) 72%);
}
.hero-swirl {
  position: absolute;
  left: 0;
  top: 100%;
  width: 320vmax;
  height: 320vmax;
  translate: -50% -50%;          /* o centro do círculo fica no canto */
  /* A paleta se repete duas vezes na volta, então sempre há
     várias cores passando pela área visível */
  background: conic-gradient(
    from 0deg,
    #3f059e 0deg,
    #6e3fad 35deg,
    #b48ee8 70deg,
    #f1dfe6 95deg,
    #8a5bd6 125deg,
    #3f059e 180deg,
    #6e3fad 215deg,
    #b48ee8 250deg,
    #f1dfe6 275deg,
    #8a5bd6 305deg,
    #3f059e 360deg
  );
  will-change: transform;
}
/* Granulado leve por cima do degradê */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Menu flutuante */
.menu {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  min-height: clamp(56px, 5vw, 72px);
  margin: 0 auto;
  padding: 0 clamp(18px, 2.5vw, 36px);
  background: var(--cream);
  border-radius: 116px;
  font-size: clamp(16px, 1.53vw, 22px);
  line-height: 1;
}
.menu :focus-visible { outline-color: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--gunmetal);
  font-weight: 500;
  text-decoration: none;
}
.brand img {
  width: clamp(24px, 2.1vw, 30px);
  height: auto;
  transition: rotate 0.8s var(--ease-out);
}
.brand:hover img { rotate: 180deg; }

.menu-panel { display: contents; }

.menu-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Links com sublinhado que "cresce" no hover */
.menu-links a,
.resume-link {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}
.menu-links a::after,
.resume-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.15em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.menu-links a:hover,
.resume-link:hover { color: var(--navy); }
.menu-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* O currículo já começa sublinhado, como no Figma */
.resume-link::after { transform: scaleX(1); }
.resume-link:hover::after { animation: underline-swipe 0.6s var(--ease-out); }

@keyframes underline-swipe {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  55% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.menu-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.9vw, 27px);
}

.lang-switch { display: flex; gap: 8px; }
.lang-switch button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gray);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.3s var(--ease-spring);
}
.lang-switch button:hover { color: var(--navy); transform: translateY(-2px); }
.lang-switch button[aria-pressed="true"] {
  color: var(--gunmetal);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 24px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, background 0.25s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Conteúdo do hero */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 50px);
  max-width: 1320px;
  color: #fff;
}
/* Cada texto do hero se move só quando o mouse passa por cima dele */
[data-hover-move] {
  width: fit-content;
  transition: translate 0.5s var(--ease-out);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.1vw, 16px);
  margin: 0 0 calc(clamp(12px, 1.4vw, 20px) - clamp(28px, 3.5vw, 50px));
  padding: 0;
  list-style: none;
  font-size: clamp(13px, 1.74vw, 25px);
  line-height: 1.2;
}
.hero-tags img { width: 10px; height: 10px; }

.hero-title {
  margin: 0;
  font-size: clamp(42px, 7.43vw, 107px);
  font-weight: 400;
  line-height: 0.94;
}
.hero-title span { display: block; }

.hero-intro {
  max-width: 1003px;
  margin: 0;
  font-size: clamp(18px, 2.5vw, 36px);
  line-height: 1.2;
}
.hero-intro strong { font-weight: 700; }

/* Estrela do hero: posição e tamanho do Figma (603 × 586 em 1440px) */
.hero-star {
  position: absolute;
  z-index: 1;
  left: 79%;
  top: 19%;
  width: clamp(260px, 41.9vw, 820px);
  aspect-ratio: 603 / 586;
  pointer-events: none;
}
.hero-star svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ================= Works ================= */
.works {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 39px;
  padding-bottom: 60px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5.56vw, 80px);
  width: 100%;
  max-width: 1380px;
}

.work-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 650 / 527;
  padding: 0 24px clamp(18px, 2.1vw, 30px) clamp(20px, 2.8vw, 40px);
  overflow: hidden;
  border: 2px solid var(--gray-light);
  border-radius: 20px;
  text-decoration: none;
  isolation: isolate;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: border-color 0.35s ease, box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.work-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.work-media img {
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.6s ease;
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 50.1%, #000 95%),
    rgba(11, 13, 12, 0.25);
  transition: background-color 0.5s ease;
}
.work-card::before {
  /* brilho roxo que aparece no hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(110, 63, 173, 0) 40%, rgba(110, 63, 173, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(calc(1.2em + 6px));
  transition: transform 0.5s var(--ease-out);
}

.work-title {
  margin: 0;
  color: var(--cream-2);
  font-size: var(--h4);
  font-weight: 700;
  line-height: 1.3;
}

.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: var(--text-l);
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.4s ease 0.05s;
}
.work-cta::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 39'%3E%3Cpath d='M19.9991 0L22.8458 10.3545L30.9232 3.15911L27.6348 13.3859L38.3793 11.6343L29.9998 18.4864L40 22.7347L29.1899 24.0367L35.2708 32.9361L25.4622 28.2745L25.6932 38.9996L20.0003 29.8545L14.308 39L14.5382 28.275L4.72999 32.9373L10.8102 24.0374L0 22.7362L9.99982 18.4872L1.61981 11.6357L12.3644 13.3864L9.07519 3.15995L17.1532 10.3547L19.9991 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 39'%3E%3Cpath d='M19.9991 0L22.8458 10.3545L30.9232 3.15911L27.6348 13.3859L38.3793 11.6343L29.9998 18.4864L40 22.7347L29.1899 24.0367L35.2708 32.9361L25.4622 28.2745L25.6932 38.9996L20.0003 29.8545L14.308 39L14.5382 28.275L4.72999 32.9373L10.8102 24.0374L0 22.7362L9.99982 18.4872L1.61981 11.6357L12.3644 13.3864L9.07519 3.15995L17.1532 10.3547L19.9991 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hover dos cards */
a.work-card:hover,
a.work-card:focus-visible {
  border-color: var(--purple-light);
  box-shadow: 0 24px 60px -24px rgba(110, 63, 173, 0.7);
}
a.work-card:hover .work-media img,
a.work-card:focus-visible .work-media img { transform: scale(1.1); }
a.work-card:hover::before,
a.work-card:focus-visible::before { opacity: 1; }
a.work-card:hover .work-info,
a.work-card:focus-visible .work-info { transform: none; }
a.work-card:hover .work-cta,
a.work-card:focus-visible .work-cta { opacity: 1; }

.work-card--soon {
  align-items: center;
  justify-content: center;
  padding: 0;
  border-width: 3px;
}
.work-card--soon::after {
  background:
    rgba(0, 0, 0, 0.59),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 50.1%, #000 95%);
}
.work-title--blur {
  position: absolute;
  left: clamp(20px, 2.8vw, 40px);
  bottom: clamp(18px, 2.1vw, 30px);
  filter: blur(3px);
  color: var(--cream);
}
.soon-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6.04vw, 87px);
  line-height: 1.2;
  text-align: center;
}

/* ================= Infos / Tabs ================= */
.infos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.85vw, 41px);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.25vw, 18px);
  min-height: clamp(52px, 5.14vw, 74px);
  padding: 0 clamp(18px, 2.1vw, 30px);
  border: 4px solid var(--purple);
  border-radius: 50px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: clamp(16px, 1.95vw, 28px);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.35s var(--ease-spring), border-color 0.3s ease;
}
.tab img {
  width: clamp(22px, 2.22vw, 32px);
  height: auto;
  transition: transform 0.4s var(--ease-spring);
}
.tab:hover {
  background: rgba(110, 63, 173, 0.35);
  border-color: var(--purple-light);
  transform: translateY(-3px);
}
.tab:hover img { transform: rotate(-10deg) scale(1.12); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] {
  background: var(--purple);
  border-color: var(--purple);
  font-weight: 700;
}

.tab-panel { width: min(941px, 100%); }
.tab-panel:focus-visible { outline-offset: 8px; }

.info-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.info-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-card {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 30px 26px 30px 30px;
  border: 3px solid var(--gray);
  border-radius: 50px;
  font-size: clamp(17px, 1.81vw, 26px);
  line-height: 1.2;
  transition: border-color 0.35s ease, transform 0.45s var(--ease-out), background-color 0.35s ease;
}
.info-card:hover {
  border-color: var(--purple-light);
  background: rgba(110, 63, 173, 0.08);
  transform: translateY(-4px);
}
.info-card h3 {
  margin: 0;
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.2;
}
.info-meta,
.info-desc { margin: 0; }

/* Cards de Skills e Idiomas (layout do Figma) */
.info-card--compact {
  gap: 20px;
  padding: clamp(24px, 2.5vw, 34px);
  border-width: 2px;
  border-radius: 40px;
  font-size: var(--text-l);
}
.info-card--compact h3 { font-size: clamp(26px, 2.5vw, 36px); }
.info-card--compact ul {
  margin: 0;
  padding-left: 1.1em;
  list-style: square;
  line-height: 1.4;
}
.info-card--compact ul + h3 { margin-top: 10px; }
.info-card--lang { gap: 18px; }

/* Entrada dos cards ao trocar de aba */
@media (prefers-reduced-motion: no-preference) {
  .tab-panel.is-entering .info-card {
    animation: card-in 0.6s var(--ease-out) both;
  }
  .tab-panel.is-entering .info-card:nth-child(2) { animation-delay: 0.06s; }
  .tab-panel.is-entering .info-card:nth-child(3) { animation-delay: 0.12s; }
  .tab-panel.is-entering .info-card:nth-child(4) { animation-delay: 0.18s; }
  .tab-panel.is-entering .info-card:nth-child(5) { animation-delay: 0.24s; }
  .tab-panel.is-entering .info-card:nth-child(n+6) { animation-delay: 0.3s; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ================= Services ================= */
.services {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}
/* Layout em zigue-zague do Figma */
.service:nth-child(1) { grid-column: 1; grid-row: 1; }
.service:nth-child(2) { grid-column: 2; grid-row: 2; }
.service:nth-child(3) { grid-column: 1; grid-row: 3; }
.service:nth-child(4) { grid-column: 2; grid-row: 4; }

.service {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: var(--text-l);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.service-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: -11px;
}
.service-num {
  line-height: 1.5;
  transition: color 0.3s ease;
}
.service-line {
  position: relative;
  flex: 1;
  height: 1px;
  margin-bottom: 0.45em;
  background: rgba(250, 235, 215, 0.9);
  overflow: hidden;
}
.service-line::after {
  content: "";
  position: absolute;
  inset: -1px 0;
  background: var(--purple-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.service-title {
  margin: 0;
  font-size: var(--h4);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  transition: transform 0.45s var(--ease-out), color 0.3s ease;
}
.service-text { margin: 0; }

.service:hover .service-num,
.service:hover .service-title { color: var(--purple-light); }
.service:hover .service-title { transform: translateX(10px); }
.service:hover .service-line::after { transform: scaleX(1); }

/* ================= About ================= */
.about { overflow-x: clip; } /* a estrela girando não cria rolagem lateral */

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1342px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 772px;
}
.about-text p {
  margin: 0;
  font-size: var(--text-l);
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.about-text .about-lead {
  font-size: var(--h4);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Foto com a estrela girando */
.about-photo {
  position: relative;
  flex-shrink: 0;
  width: min(550px, 40vw);
  aspect-ratio: 40 / 39;
}
.about-star {
  position: absolute;
  inset: 0;
}
.about-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 39'%3E%3Cpath d='M19.9991 0L22.8458 10.3545L30.9232 3.15911L27.6348 13.3859L38.3793 11.6343L29.9998 18.4864L40 22.7347L29.1899 24.0367L35.2708 32.9361L25.4622 28.2745L25.6932 38.9996L20.0003 29.8545L14.308 39L14.5382 28.275L4.72999 32.9373L10.8102 24.0374L0 22.7362L9.99982 18.4872L1.61981 11.6357L12.3644 13.3864L9.07519 3.15995L17.1532 10.3547L19.9991 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 39'%3E%3Cpath d='M19.9991 0L22.8458 10.3545L30.9232 3.15911L27.6348 13.3859L38.3793 11.6343L29.9998 18.4864L40 22.7347L29.1899 24.0367L35.2708 32.9361L25.4622 28.2745L25.6932 38.9996L20.0003 29.8545L14.308 39L14.5382 28.275L4.72999 32.9373L10.8102 24.0374L0 22.7362L9.99982 18.4872L1.61981 11.6357L12.3644 13.3864L9.07519 3.15995L17.1532 10.3547L19.9991 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* A foto é maior que a estrela para cobrir os cantos enquanto gira */
.about-photo-img {
  pointer-events: none;
  position: absolute;
  top: -21%;
  left: -21%;
  width: 142%;
  height: 142%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
}
.about-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* ================= Contact ================= */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-size: var(--h4);
  font-weight: 700;
  line-height: 1.3;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--purple);
  font-size: var(--h4);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  transition: color 0.3s ease, background-color 0.35s ease, transform 0.4s var(--ease-out);
}
.contact-icon {
  width: clamp(28px, 2.6vw, 38px);
  height: auto;
  color: currentColor;
  transition: transform 0.45s var(--ease-spring);
}
.contact-link:hover {
  color: var(--cream);
  background: var(--purple);
  text-decoration-color: transparent;
}
.contact-link:hover .contact-icon { transform: rotate(-12deg) scale(1.15); }

/* ================= Footer ================= */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 67px;
  padding: 0 clamp(16px, 2.8vw, 40px);
  background: var(--navy);
}

.footer-text {
  margin: 0;
  color: var(--bg);
  font-size: var(--text-l);
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: center;
}

.footer-social { display: flex; gap: 10px; }

.footer-icon {
  display: inline-flex;
  border-radius: 50%;
  color: var(--bg);
  transition: color 0.3s ease;
}
.footer-icon svg { width: 46px; height: 46px; }
.footer-icon:hover,
.footer-icon:focus-visible { color: var(--cream); }

/* ================= Animações (respeitam "reduzir movimento") ================= */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada do hero */
  .hero-tags,
  .hero-title span,
  .hero-intro {
    animation: hero-in 0.9s var(--ease-out) both;
  }
  .hero-tags { animation-delay: 0.1s; }
  .hero-title span:nth-child(1) { animation-delay: 0.2s; }
  .hero-title span:nth-child(2) { animation-delay: 0.32s; }
  .hero-intro { animation-delay: 0.48s; }

  .hero-star { animation: star-in 1.2s var(--ease-out) 0.25s both; }
  .hero-swirl { animation: spin 14s linear infinite; }
  .hero-star svg { animation: spin 40s linear infinite; }

  /* Estrela do "sobre mim": gira no sentido horário, a foto gira ao contrário
     na mesma velocidade e por isso fica parada */
  .about-star { animation: spin 36s linear infinite; }
  .about-photo-img { animation: spin 36s linear infinite reverse; }

  /* Elementos que aparecem ao rolar a página */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  /* Cards de trabalho: depois de aparecer, o transform volta para o efeito 3D */
  .js .work-card[data-reveal].is-visible {
    transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: opacity 0.9s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.35s ease, box-shadow 0.5s var(--ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes star-in {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

/* ================= Responsivo ================= */
@media (max-width: 960px) {
  .menu {
    grid-template-columns: 1fr auto;
    border-radius: 40px;
  }
  .menu-toggle { display: block; }

  .menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    background: var(--cream);
    border-radius: 28px;
  }
  .menu.is-open .menu-panel { display: flex; }

  .menu-links { flex-direction: column; gap: 18px; }
  .menu-actions { justify-content: space-between; }

  .hero-star {
    left: 58%;
    top: auto;
    bottom: -14%;
    width: 72vw;
    opacity: 0.6;
  }

  .about-row { flex-direction: column; align-items: flex-start; }
  .about-photo { width: min(420px, 86vw); align-self: center; }

  .info-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-info { transform: none; }
  .work-cta { opacity: 1; }

  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .service:nth-child(n) { grid-column: 1; grid-row: auto; }

  .info-card { border-radius: 32px; padding: 24px; gap: 16px; }
  .info-list { gap: 24px; }
  .info-grid--2 { grid-template-columns: 1fr; }

  .footer { flex-wrap: wrap; justify-content: center; padding: 16px; }
  .footer-text { order: 3; width: 100%; }
}
