@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Nothing+You+Could+Do&display=swap');

/* =========================================
   PORTFOLIO HERO - VARIÁVEIS
========================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #050505;
  overflow-x: clip;
}

main {
  display: block;
}

main:focus {
  outline: none;
}

::selection {
  background: #b5121b;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #d21c28;
  outline-offset: 3px;
}

/* Dissuasão contra cópia casual (não impede clonagem técnica). */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Textura de grão fixa — puramente decorativa. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 700;

  pointer-events: none;

  opacity: 0.045;
  mix-blend-mode: overlay;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Link de acessibilidade — visível apenas no foco. */
.skip-link {
  position: fixed;
  z-index: 10001;
  top: 12px;
  left: 12px;

  padding: 12px 18px;

  background: #f4f4f4;
  color: #080808;
  border-radius: 2px;

  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;

  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.portfolio-hero {
  --ph-bg: #050505;
  --ph-red: #b5121b;
  --ph-red-bright: #d21c28;
  --ph-white: #f4f4f4;
  --ph-muted: #a2a0a0;

  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* usa a altura visível real no mobile (sem a barra do navegador) */
  min-height: 640px;
  overflow: hidden;

  /* o palco ocupa todo o espaço que sobra abaixo do header,
     então o hero nunca sobra nem corta conteúdo */
  display: flex;
  flex-direction: column;

  background: var(--ph-bg);
  color: var(--ph-white);

  font-family: 'DM Sans', sans-serif;
  isolation: isolate;
}

/* =========================================
   HEADER
========================================= */

.portfolio-hero__header {
  position: relative;
  z-index: 10;

  height: 64px;
  margin: 0 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #292122;
}

.portfolio-hero__brand {
  display: flex;
  flex-direction: column;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.portfolio-hero__brand span:first-child {
  color: var(--ph-red-bright);
}

.portfolio-hero__brand span:last-child {
  color: #949092;
}

.portfolio-hero__availability {
  display: flex;
  align-items: center;
  gap: 22px;

  padding-right: 9px;

  font-size: 10px;
  font-weight: 700;
  color: #bab6b6;
}

/* Bolinha verde piscando (status "online") */
.portfolio-hero__sparkle {
  flex: none;

  width: 9px;
  height: 9px;

  background-color: #33d17a;
  border-radius: 50%;

  box-shadow: 0 0 8px rgba(51, 209, 122, 0.75);

  animation: portfolio-hero-sparkle-blink 1.6s ease-in-out infinite;
}

@keyframes portfolio-hero-sparkle-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(51, 209, 122, 0.75);
  }

  50% {
    opacity: 0.2;
    box-shadow: 0 0 2px rgba(51, 209, 122, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-hero__sparkle {
    animation: none;
  }
}

/* =========================================
   ÁREA PRINCIPAL
========================================= */

.portfolio-hero__stage {
  position: relative;

  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;

  overflow: hidden;

  border-bottom: 2px solid #421318;
}

/* =========================================
   TEXTO GIGANTE DE FUNDO

   Referência (imagem 999 x 754):
   · início x 15px · fim x 980px → 965px de largura
   · topo 12px abaixo do divisor do header
   · altura das letras 440px (fim em ~65,9% da seção)
   A caixa é percentual (acompanha a seção) e o SVG
   usa viewBox 965x440 + preserveAspectRatio="none",
   então os glifos sempre preenchem exatamente a área.
========================================= */

.portfolio-hero__background-title {
  position: absolute;
  z-index: 1;
  top: 1.75%;
  left: 1.5%;

  width: 96.6%;
  aspect-ratio: 965 / 440;
  max-height: 64.33%; /* fim das letras em ~66% da seção */

  margin: 0;

  color: var(--ph-red);
  line-height: 0;

  pointer-events: none;
  user-select: none;

  translate:
    calc(var(--hero-mx, 0) * 7px)
    calc(var(--hero-my, 0) * 5px);
}

.portfolio-hero__background-title-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Anton é a fonte mais próxima da referência: ascendentes
   altos, traços grossos e desenho condensado.
   font-size 496 + baseline 433 = 440 de altura de tinta;
   scaleX 0.5162 comprime o conjunto e o translate -8.2
   alinha o início da tinta em x = 0 do viewBox. */
.portfolio-hero__background-title text {
  font-family: 'Anton', 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 496px;
  letter-spacing: 0;

  fill: currentColor;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linejoin: miter;
  paint-order: stroke fill;
}

/* =========================================
   BRILHO VERMELHO NO CENTRO
========================================= */

.portfolio-hero__red-glow {
  position: absolute;
  z-index: 2;

  width: 670px;
  height: 600px;

  left: 50%;
  top: 38%;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    ellipse at center,
    rgba(129, 0, 10, 0.55) 0%,
    rgba(75, 0, 5, 0.34) 40%,
    transparent 75%
  );

  pointer-events: none;

  translate:
    calc(var(--hero-mx, 0) * 26px)
    calc(var(--hero-my, 0) * 20px);
}

/* =========================================
   FOTOGRAFIA CENTRAL
========================================= */

.portfolio-hero__portrait {
  position: absolute;
  z-index: 4;

  bottom: 0;
  left: 50%;

  transform: translateX(-50%);

  width: min(60%, 620px);
  height: 91%;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  pointer-events: none;

  translate:
    calc(var(--hero-mx, 0) * 11px)
    calc(var(--hero-my, 0) * 8px);
}

.portfolio-hero__portrait img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center bottom;

  filter:
    brightness(0.78)
    contrast(1.14)
    drop-shadow(0 12px 36px rgba(0, 0, 0, 0.7));
}

/* =========================================
   INFORMAÇÕES À ESQUERDA
========================================= */

.portfolio-hero__intro {
  position: absolute;
  z-index: 6;

  left: 16px;
  bottom: 17px;

  width: 260px;
}

.portfolio-hero__signature {
  margin: 0 0 6px;

  color: #f4eeee;
  font-family: 'Nothing You Could Do', cursive;

  font-size: 37px;
  font-weight: 400;
  line-height: 1.4;

  transform: rotate(-5deg);
  transform-origin: left center;
}

.portfolio-hero__name {
  margin: 0;

  color: #f4f4f4;

  font-family: 'Barlow Condensed', sans-serif;
  font-size: 78px;
  font-weight: 900;

  line-height: 0.96;
  letter-spacing: -0.025em;
}

.portfolio-hero__role {
  margin: 9px 0 12px;

  color: var(--ph-red-bright);

  font-size: 19px;
  font-weight: 700;
  line-height: 1.13;

  letter-spacing: -0.025em;
}

.portfolio-hero__description {
  max-width: 245px;

  margin: 0;

  color: #b2afb0;

  font-size: 11px;
  font-weight: 500;
  line-height: 1.58;
}

.portfolio-hero__worldwide {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-top: 21px;

  color: #aaa7a8;

  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.portfolio-hero__worldwide svg {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-hero__worldwide:hover svg {
  transform: rotate(18deg);
}

.portfolio-hero__globe {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  border: 1px solid rgba(190, 25, 35, 0.55);
  border-radius: 50%;

  color: var(--ph-red-bright);
  font-size: 21px;
  line-height: 1;
}

/* =========================================
   DETALHE CENTRAL DIREITO
========================================= */

.portfolio-hero__statement {
  position: absolute;
  z-index: 6;

  top: 45%;
  right: 11.5%;

  display: flex;
  align-items: center;
  gap: 12px;

  translate:
    calc(var(--hero-mx, 0) * -9px)
    calc(var(--hero-my, 0) * -7px);
}

.portfolio-hero__statement-icon {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 48px;
  height: 48px;

  flex-shrink: 0;

  border: 0px solid rgba(201, 52, 60, 0.48);
  border-radius: 50%;

  background: rgba(110, 13, 22, 0.22);

  color: #f1e8e8;
  font-size: 25px;
}

.portfolio-hero__statement p {
  margin: 0;

  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #d4ced0;
}

/* =========================================
   INDICADORES À DIREITA
========================================= */

.portfolio-hero__stats {
  position: absolute;
  z-index: 7;

  right: 20px;
  bottom: 20px;

  width: 150px;
}

.portfolio-hero__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 74px;

  border-bottom: 1px solid #292122;
}

.portfolio-hero__stat:last-child {
  border-bottom: 0;
}

.portfolio-hero__stat strong {
  color: var(--ph-red-bright);

  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 700;

  line-height: 1;
  letter-spacing: -0.03em;
}

.portfolio-hero__stat span {
  width: 86px;

  color: #b9b5b7;

  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

/* =========================================
   RESPONSIVIDADE - DESKTOP GRANDE
========================================= */

@media (min-width: 1440px) {
  .portfolio-hero__intro {
    left: 3%;
    bottom: 30px;
  }

  .portfolio-hero__portrait {
    width: 660px;
  }

  .portfolio-hero__stats {
    right: 3%;
  }
}

/* =========================================
   RESPONSIVIDADE - TABLET
========================================= */

@media (max-width: 900px) {
  .portfolio-hero {
    min-height: 720px;
  }

  .portfolio-hero__portrait {
    width: 68%;
    height: 83%;
  }

  .portfolio-hero__intro {
    width: 230px;
  }

  .portfolio-hero__name {
    font-size: 65px;
  }

  .portfolio-hero__signature {
    font-size: 30px;
  }

  .portfolio-hero__role {
    font-size: 16px;
  }

  .portfolio-hero__statement {
    right: 6%;
    top: 40%;
  }

  .portfolio-hero__stats {
    right: 14px;
    width: 137px;
  }

  .portfolio-hero__stat strong {
    font-size: 37px;
  }
}

/* =========================================
   RESPONSIVIDADE - MOBILE
========================================= */

@media (max-width: 600px) {
  .portfolio-hero {
    min-height: 820px;
  }

  .portfolio-hero__header {
    height: 60px;
    margin: 0 14px;
  }

  .portfolio-hero__brand {
    font-size: 9px;
  }

  .portfolio-hero__availability {
    gap: 9px;
    font-size: 8px;
  }

  .portfolio-hero__sparkle {
    width: 8px;
    height: 8px;
  }

  .portfolio-hero__stage {
    height: 760px;
  }

  /* Texto de fundo */
  .portfolio-hero__background-title {
    top: 12px;
    left: -4px;
  }

  /* Retrato */
  .portfolio-hero__portrait {
    top: 120px;
    bottom: auto;

    width: 100%;
    height: 460px;

    left: 50%;
  }

  .portfolio-hero__portrait img {
    object-position: center bottom;
  }

  .portfolio-hero__red-glow {
    top: 240px;
    width: 430px;
    height: 480px;
  }

  /* Informações */
  .portfolio-hero__intro {
    left: 16px;
    bottom: 22px;

    width: 60%;
  }

  .portfolio-hero__signature {
    font-size: 27px;
    margin-bottom: 4px;
  }

  .portfolio-hero__name {
    font-size: clamp(47px, 12vw, 68px);
  }

  .portfolio-hero__role {
    margin-top: 8px;
    font-size: 14px;
  }

  .portfolio-hero__description {
    max-width: 230px;
    font-size: 10px;
    line-height: 1.5;
  }

  .portfolio-hero__worldwide {
    margin-top: 14px;
    font-size: 8px;
  }

  /* Frase decorativa */
  .portfolio-hero__statement {
    top: 325px;
    right: 12px;

    gap: 6px;
  }

  .portfolio-hero__statement-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .portfolio-hero__statement p {
    font-size: 8px;
  }

  /* Números */
  .portfolio-hero__stats {
    right: 12px;
    bottom: 22px;

    width: 100px;
  }

  .portfolio-hero__stat {
    min-height: 58px;
    gap: 5px;
  }

  .portfolio-hero__stat strong {
    font-size: 30px;
  }

  .portfolio-hero__stat span {
    width: 52px;
    font-size: 7px;
  }
}

/* =========================================
   TELAS MOBILE PEQUENAS
========================================= */

@media (max-width: 380px) {
  .portfolio-hero__intro {
    width: 61%;
  }

  .portfolio-hero__name {
    font-size: 45px;
  }

  .portfolio-hero__description {
    font-size: 9px;
  }

  .portfolio-hero__stats {
    width: 92px;
  }

  .portfolio-hero__stat strong {
    font-size: 27px;
  }
}


/* =========================================
   SELECTED PROJECTS
========================================= */

.selected-projects {
  --sp-bg: #080808;
  --sp-white: #f3f3f3;
  --sp-muted: #a5a5a5;
  --sp-red: #a91f28;
  --sp-line: #353535;

  width: 100%;
  background: var(--sp-bg);
  padding: 22px 20px 34px;
  box-sizing: border-box;
  overflow: hidden;
}

.selected-projects,
.selected-projects * {
  box-sizing: border-box;
}

.selected-projects__container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.selected-projects__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.selected-projects__title {
  flex-shrink: 0;
  margin: 0;

  color: var(--sp-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 2.15vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.selected-projects__line {
  height: 2px;
  background: var(--sp-line);
  flex: 1;
  min-width: 20px;
}

.selected-projects__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.selected-projects__controls[hidden] {
  display: none;
}

.selected-projects__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;
  padding: 0;

  background: transparent;
  border: 1px solid var(--sp-line);
  border-radius: 0;

  color: #c4c4c4;
  cursor: pointer;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.selected-projects__nav svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.selected-projects__nav:hover:not(:disabled) {
  color: #fff;
  border-color: #5c5c5c;
  background: #111;
}

.selected-projects__nav:focus-visible {
  outline: 2px solid var(--sp-red);
  outline-offset: 3px;
}

.selected-projects__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

/* =========================================
   PROJECTS GRID
========================================= */

.selected-projects__carousel {
  --sp-gap: 35px;
  --sp-cards: 3;

  width: 100%;
}

.selected-projects__grid {
  display: flex;
  column-gap: var(--sp-gap);

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;

  scrollbar-width: none;
  -ms-overflow-style: none;

  cursor: grab;
}

.selected-projects__grid::-webkit-scrollbar {
  display: none;
}

.selected-projects__grid:focus-visible {
  outline: 2px solid var(--sp-red);
  outline-offset: 4px;
}

.selected-projects__grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.selected-projects__grid.is-dragging * {
  user-select: none;
}

/* Indicadores do carrossel */

.selected-projects__dots {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 28px;
}

.selected-projects__dots[hidden] {
  display: none;
}

.selected-projects__dot {
  width: 26px;
  height: 3px;
  padding: 0;

  background: #2c2c2c;
  border: 0;
  border-radius: 0;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    width 0.25s ease;
}

.selected-projects__dot:hover {
  background: #555;
}

.selected-projects__dot[aria-current="true"] {
  width: 44px;
  background: var(--sp-red);
}

.selected-projects__dot:focus-visible {
  outline: 2px solid var(--sp-red);
  outline-offset: 3px;
}

/* =========================================
   PROJECT CARD
========================================= */

.project-card {
  flex: 0 0 calc((100% - (var(--sp-cards) - 1) * var(--sp-gap)) / var(--sp-cards));

  min-width: 0;
  display: flex;
  flex-direction: column;

  scroll-snap-align: start;
  scroll-snap-stop: always;
  perspective: 1200px;
}

.project-card__image-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 440 / 265;
  position: relative;
  overflow: hidden;

  background: #111;
  border: 1px solid #202020;
  border-radius: 1rem;

  transform-style: preserve-3d;
}

/* Brilho que acompanha o cursor (3D tilt). */
.project-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  background: radial-gradient(
    420px circle at var(--tilt-x, 50%) var(--tilt-y, 50%),
    rgba(255, 255, 255, 0.18),
    transparent 46%
  );

  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-card__image::after {
  opacity: 1;
}

.project-card__image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  -webkit-user-drag: none;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__image-link:hover img,
.project-card__image-link:focus-visible img {
  transform: scale(1.045);
}

/* =========================================
   PROJECT CARD FOOTER
========================================= */

.project-card__footer {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 76px;
  padding-top: 18px;
}

.project-card__number {
  display: block;
  flex: 0 0 80px;

  color: var(--sp-red);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 49px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2px;
}

.project-card__info {
  flex: 1;
  min-width: 0;

  padding-left: 0;
}

.project-card__info h3 {
  margin: 0 0 6px;

  color: #dedede;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.project-card__info p {
  margin: 0;

  color: var(--sp-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-card__arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex-shrink: 0;
  width: 49px;
  margin-left: 10px;

  color: #a9a9a9;
  text-decoration: none;

  transition: color 0.3s ease;
}

.project-card__arrow svg {
  display: block;
  width: 42px;
  height: 20px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__arrow {
  color: #fff;
}

.project-card:hover .project-card__arrow svg {
  transform: translateX(5px);
}

/* =========================================
   RESPONSIVO - TABLET
========================================= */

@media (max-width: 1100px) {

  .selected-projects {
    padding: 35px 24px 50px;
  }

  .selected-projects__header {
    gap: 20px;
    margin-bottom: 35px;
  }

  .selected-projects__title {
    font-size: 26px;
  }

  .selected-projects__carousel {
    --sp-gap: 24px;
    --sp-cards: 2;
  }

  .project-card__number {
    flex-basis: 65px;
    font-size: 44px;
  }

  .project-card__info h3 {
    font-size: 15px;
  }

  .project-card__info p {
    font-size: 12px;
  }

}

/* =========================================
   RESPONSIVO - MOBILE
========================================= */

@media (max-width: 767px) {

  .selected-projects {
    padding: 45px 18px 55px;
  }

  .selected-projects__header {
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 30px;
  }

  .selected-projects__title {
    font-size: 25px;
    letter-spacing: -0.8px;
  }

  .selected-projects__line {
    min-width: 12px;
  }

  .selected-projects__carousel {
    --sp-gap: 16px;
    --sp-cards: 1;
  }

  .selected-projects__nav {
    width: 42px;
    height: 42px;
  }

  .selected-projects__dots {
    margin-top: 22px;
  }

  .project-card__image {
    aspect-ratio: 440 / 265;
  }

  .project-card__footer {
    padding-top: 16px;
    min-height: 72px;
  }

  .project-card__number {
    flex-basis: 65px;
    font-size: 46px;
  }

  .project-card__info h3 {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .project-card__info p {
    font-size: 12px;
  }

  .project-card__arrow {
    width: 42px;
  }

  .project-card__arrow svg {
    width: 37px;
  }

}

/* =========================================
   TELAS MUITO PEQUENAS
========================================= */

@media (max-width: 380px) {

  .selected-projects__title {
    font-size: 22px;
  }

  .project-card__number {
    flex-basis: 55px;
    font-size: 40px;
  }

  .project-card__info h3 {
    font-size: 13px;
  }

  .project-card__info p {
    font-size: 11px;
  }

  .project-card__arrow {
    width: 32px;
    margin-left: 5px;
  }

  .project-card__arrow svg {
    width: 30px;
  }

}


/* ==========================================
   EDUCATION / SKILLS / WORK PROCESS
========================================== */

.resume-section {
  --rs-bg: #080808;
  --rs-text: #e8e8e8;
  --rs-muted: #b1b1b1;
  --rs-red: #a51e29;
  --rs-border: #292124;
  --rs-quote: #650e13;

  width: 100%;
  background: var(--rs-bg);
  color: var(--rs-text);

  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}

.resume-section *,
.resume-section *::before,
.resume-section *::after {
  box-sizing: border-box;
}

/* ==========================================
   GRID PRINCIPAL
========================================== */

.resume-section__grid {
  display: grid;
  grid-template-columns: 38.3% 39.7% 22%;
  width: 100%;
  max-width: 1800px;
  min-height: 590px;
  margin: 0 auto;
  border-bottom: 3px solid #251519;
}

.resume-section__education {
  padding: 36px 42px 45px 30px;
  border-right: 2px solid #211719;
  min-width: 0;
}

.resume-section__process {
  padding: 36px 35px 40px 53px;
  border-right: 2px solid #211719;
  min-width: 0;
}

.resume-section__title {
  margin: 0;

  font-size: clamp(22px, 2.15vw, 31px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.7px;
  color: #f0f0f0;
}

/* ==========================================
   EDUCATION
========================================== */

.resume-education {
  margin-top: 43px;
}

.resume-section__subtitle {
  margin: 0 0 21px;

  color: var(--rs-red);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.resume-education__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
}

.resume-education__content {
  min-width: 0;
}

.resume-education__content h4 {
  margin: 0 0 8px;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #e0e0e0;
}

.resume-education__content p {
  margin: 0;

  color: #bababa;
  font-size: 16px;
  line-height: 1.3;
}

.resume-education__year {
  flex-shrink: 0;

  margin-top: 2px;
  color: var(--rs-red);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

/* ==========================================
   SKILLS
========================================== */

.resume-skills {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid #211c1d;
}

.resume-skills .resume-section__subtitle {
  margin-bottom: 21px;
}

.resume-skills__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 11px;
}

.resume-skills__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 43px;
  padding: 0 14px;

  border: 2px solid #252525;
  border-radius: 7px;
  background: transparent;

  color: #bebebe;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;

  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.resume-skills__tag:hover {
  border-color: var(--rs-red);
  color: #fff;
}

/* ==========================================
   WORK PROCESS TIMELINE
========================================== */

.work-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;

  margin-top: 21px;
}

/* Linha vertical entre os ícones */

.work-timeline__line {
  position: absolute;
  left: 92px;
  top: 35px;
  bottom: 38px;

  width: 2px;
  background: linear-gradient(180deg, #5c242b 0%, #a51e29 100%);
  z-index: 0;

  transform-origin: top center;
}

.work-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  min-height: 79px;
}

.work-timeline__number {
  color: var(--rs-red);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.5px;
}

.work-timeline__icon {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  border: 3px solid #68242c;
  border-radius: 50%;
  background: #090909;

  color: #bcbcbc;
}

.work-timeline__icon svg {
  width: 29px;
  height: 29px;
}

.work-timeline__content {
  min-width: 0;
}

.work-timeline__content h3 {
  margin: 0 0 5px;

  color: var(--rs-red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.work-timeline__content p {
  margin: 0;

  color: #c2c2c2;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* ==========================================
   QUOTE PANEL
========================================== */

.resume-section__quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-width: 0;
  min-height: 590px;
  padding: 42px 33px 35px 36px;

  background:
    linear-gradient(
      145deg,
      #6d1015 0%,
      #580c10 55%,
      #6d1015 100%
    );
}

.resume-quote__mark {
  display: block;
  height: 77px;

  color: #e12c38;
  font-family: Georgia, serif;
  font-size: 110px;
  font-weight: 700;
  line-height: 0.95;
}

.resume-quote__text {
  margin: 5px 0 0;
  padding: 0;

  color: #efdddd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.35px;
}

.resume-quote__signature {
  margin-top: 32px;

  color: #f0c6c9;
  font-family: "Brush Script MT",
               "Segoe Script",
               "Snell Roundhand",
               cursive;

  font-size: 39px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  transform: rotate(-7deg);
  transform-origin: left center;
}

.resume-quote__bottom {
  padding-left: 5px;
}

.resume-quote__bottom p {
  margin: 0 0 19px;

  color: #e5b9ba;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.48;
}

.resume-quote__star {
  display: inline-block;

  color: #de2b39;
  font-size: 26px;
  line-height: 1;
}

/* ==========================================
   DESKTOP INTERMEDIÁRIO
========================================== */

@media (max-width: 1250px) {

  .resume-section__grid {
    grid-template-columns: 38% 40% 22%;
  }

  .resume-section__education {
    padding: 35px 25px 40px;
  }

  .resume-section__process {
    padding: 35px 20px 40px 30px;
  }

  .resume-section__quote {
    padding: 38px 22px 30px;
  }

  .resume-section__title {
    font-size: 24px;
  }

  .resume-education__content h4,
  .resume-education__content p {
    font-size: 14px;
  }

  .resume-education__year {
    font-size: 13px;
  }

  .resume-skills__grid {
    gap: 9px;
  }

  .resume-skills__tag {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }

  .work-timeline__line {
    left: 77px;
  }

  .work-timeline__item {
    grid-template-columns: 35px 62px minmax(0, 1fr);
    column-gap: 12px;
  }

  .work-timeline__icon {
    width: 62px;
    height: 62px;
  }

  .work-timeline__content p {
    font-size: 13px;
  }

  .work-timeline__content h3 {
    font-size: 15px;
  }

  .resume-quote__text {
    font-size: 18px;
  }

  .resume-quote__bottom p {
    font-size: 13px;
  }

}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

  .resume-section__grid {
    grid-template-columns: 1fr 1fr;
  }

  .resume-section__education,
  .resume-section__process {
    min-height: 590px;
  }

  .resume-section__education {
    padding: 35px 25px;
  }

  .resume-section__process {
    padding: 35px 25px;
    border-right: none;
  }

  .resume-section__quote {
    grid-column: 1 / -1;

    min-height: 330px;
    padding: 35px;

    display: flex;
    flex-direction: row;
    align-items: flex-end;
  }

  .resume-quote__mark {
    height: 65px;
    font-size: 90px;
  }

  .resume-quote__text {
    font-size: 23px;
  }

  .resume-quote__signature {
    margin-top: 22px;
  }

  .resume-quote__bottom {
    text-align: right;
  }

  .resume-skills__tag {
    padding: 0 11px;
  }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

  .resume-section__grid {
    grid-template-columns: 1fr;
  }

  .resume-section__education {
    min-height: auto;
    padding: 40px 20px;

    border-right: none;
    border-bottom: 2px solid #211719;
  }

  .resume-section__process {
    min-height: auto;
    padding: 40px 20px 48px;

    border-bottom: 2px solid #211719;
  }

  .resume-section__title {
    font-size: 27px;
  }

  .resume-education {
    margin-top: 35px;
  }

  .resume-section__subtitle {
    font-size: 18px;
  }

  .resume-education__item {
    gap: 12px;
    margin-bottom: 25px;
  }

  .resume-education__content h4 {
    font-size: 14px;
  }

  .resume-education__content p {
    font-size: 14px;
  }

  .resume-education__year {
    font-size: 12px;
  }

  .resume-skills {
    margin-top: 18px;
    padding-top: 25px;
  }

  .resume-skills__grid {
    gap: 10px;
  }

  .resume-skills__tag {
    min-height: 39px;
    padding: 0 12px;
    font-size: 11px;
  }

  .work-timeline {
    margin-top: 30px;
    gap: 19px;
  }

  .work-timeline__item {
    grid-template-columns: 32px 60px minmax(0, 1fr);
    column-gap: 12px;
    min-height: 75px;
  }

  .work-timeline__number {
    font-size: 25px;
  }

  .work-timeline__icon {
    width: 60px;
    height: 60px;
  }

  .work-timeline__icon svg {
    width: 26px;
    height: 26px;
  }

  .work-timeline__line {
    left: 74px;
    top: 35px;
    bottom: 35px;
  }

  .work-timeline__content h3 {
    font-size: 15px;
  }

  .work-timeline__content p {
    font-size: 13px;
  }

  .work-timeline__content p br {
    display: none;
  }

  .resume-section__quote {
    grid-column: auto;

    flex-direction: column;
    align-items: flex-start;

    min-height: 460px;
    padding: 35px 25px;
  }

  .resume-quote__text {
    font-size: 23px;
  }

  .resume-quote__signature {
    font-size: 38px;
  }

  .resume-quote__bottom {
    text-align: left;
    padding-left: 0;
  }

  .resume-quote__bottom p {
    font-size: 14px;
  }

}

/* ==========================================
   MOBILE PEQUENO
========================================== */

@media (max-width: 380px) {

  .resume-section__title {
    font-size: 24px;
  }

  .resume-education__content h4 {
    font-size: 13px;
  }

  .resume-education__content p {
    font-size: 12px;
  }

  .work-timeline__item {
    grid-template-columns: 27px 54px minmax(0, 1fr);
    column-gap: 10px;
  }

  .work-timeline__number {
    font-size: 23px;
  }

  .work-timeline__icon {
    width: 54px;
    height: 54px;
  }

  .work-timeline__line {
    left: 64px;
  }

  .work-timeline__content p {
    font-size: 12px;
  }

}


/* =========================================
   FOOTER - CONFIGURAÇÕES GERAIS
========================================= */

.portfolio-footer {
  --footer-bg: #080808;
  --footer-text: #f0f0f0;
  --footer-muted: #a5a5a5;
  --footer-accent: #a51c28;
  --footer-border: #3d1b20;

  width: 100%;
  background: var(--footer-bg);
  color: var(--footer-text);

  font-family: Arial, Helvetica, sans-serif;

  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.portfolio-footer *,
.portfolio-footer *::before,
.portfolio-footer *::after {
  box-sizing: border-box;
}

/* =========================================
   CONTAINER PRINCIPAL
========================================= */

.portfolio-footer__container {
  display: grid;
  grid-template-columns: 29% 27% 44%;

  align-items: start;

  width: 100%;
  max-width: 1800px;
  min-height: 355px;

  margin: 0 auto;
  position: relative;
}

/* =========================================
   COLUNA 01 - INTRO
========================================= */

.portfolio-footer__intro {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  min-height: 355px;

  padding: 13px 20px 20px 27px;
}

.portfolio-footer__title {
  position: relative;

  display: inline-block;
  margin: 0;

  color: #f2f2f2;

  font-size: clamp(31px, 2vw, 45px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -1px;
  white-space: nowrap;
}

.portfolio-footer__sparkle {
  position: absolute;
  right: -44px;
  top: 34px;

  color: #c51f2d;

  font-size: 39px;
  font-weight: 400;
  line-height: 1;
}

.portfolio-footer__description {
  max-width: 345px;

  margin: 24px 0 0;

  color: #b1b1b1;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

/* =========================================
   DISPONIBILIDADE
========================================= */

.portfolio-footer__availability {
  display: inline-flex;
  align-items: center;
  gap: 15px;

  margin-top: auto;
  padding-bottom: 1px;
}

.portfolio-footer__availability-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 51px;
  height: 51px;

  border: 3px solid #79212b;
  border-radius: 50%;

  color: #cb2432;
}

.portfolio-footer__availability-icon svg {
  width: 28px;
  height: 28px;
}

.portfolio-footer__availability-text {
  color: #ae2530;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

/* =========================================
   COLUNA 02 - CONTATOS
========================================= */

.portfolio-footer__contacts {
  display: flex;
  flex-direction: column;

  position: relative;
  z-index: 3;

  min-width: 0;
  padding: 15px 0 18px 28px;
}

.portfolio-footer__contact {
  display: flex;
  align-items: center;
  gap: 20px;

  width: 100%;
  min-height: 75px;

  padding: 0 8px 0 0;

  border-bottom: 2px solid var(--footer-border);

  color: #c6c6c6;
  text-decoration: none;

  transition: color 0.25s ease;
}

.portfolio-footer__contact:last-child {
  border-bottom: none;
}

.portfolio-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 59px;
  height: 59px;

  border: 3px solid #65202a;
  border-radius: 50%;

  background: #0b0b0b;

  color: #b9b9b9;

  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.portfolio-footer__contact-icon svg {
  width: 27px;
  height: 27px;

  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

a.portfolio-footer__contact:hover .portfolio-footer__contact-icon svg {
  transform: scale(1.12) rotate(-6deg);
}

.portfolio-footer__contact-text {
  min-width: 0;

  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

a.portfolio-footer__contact:hover {
  color: #fff;
}

a.portfolio-footer__contact:hover
.portfolio-footer__contact-icon {
  color: #fff;
  border-color: var(--footer-accent);
}

/* =========================================
   COLUNA 03 - IMAGEM
========================================= */

.portfolio-footer__visual {
  position: relative;

  width: 100%;
  height: 355px;

  align-self: stretch;
  overflow: hidden;

  background: #080808;
}

/* Gradiente para integrar com o fundo */

.portfolio-footer__visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      #080808 0%,
      rgba(8, 8, 8, 0.55) 10%,
      transparent 35%
    );
}

/* Sombra inferior */

.portfolio-footer__visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.35),
      transparent 30%
    );
}

.portfolio-footer__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

/* =========================================
   DESKTOP INTERMEDIÁRIO
========================================= */

@media (max-width: 1250px) {

  .portfolio-footer__container {
    grid-template-columns: 32% 30% 38%;
  }

  .portfolio-footer__intro {
    padding-left: 24px;
  }

  .portfolio-footer__title {
    font-size: 36px;
  }

  .portfolio-footer__sparkle {
    right: -35px;
    font-size: 32px;
  }

  .portfolio-footer__description {
    font-size: 14px;
    max-width: 300px;
  }

  .portfolio-footer__contacts {
    padding-left: 12px;
  }

  .portfolio-footer__contact {
    gap: 12px;
  }

  .portfolio-footer__contact-text {
    font-size: 13px;
  }

  .portfolio-footer__availability-text {
    font-size: 12px;
  }

}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

  .portfolio-footer__container {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .portfolio-footer__intro {
    min-height: 360px;
    padding: 35px 25px;
  }

  .portfolio-footer__title {
    font-size: 39px;
  }

  .portfolio-footer__description {
    max-width: 350px;
    margin-top: 25px;
  }

  .portfolio-footer__contacts {
    padding: 35px 25px;
  }

  .portfolio-footer__contact {
    min-height: 73px;
  }

  .portfolio-footer__visual {
    grid-column: 1 / -1;
    height: 380px;
  }

  .portfolio-footer__image {
    object-position: center 45%;
  }

  .portfolio-footer__visual::before {
    background:
      linear-gradient(
        180deg,
        #080808,
        transparent 25%
      );
  }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

  .portfolio-footer__container {
    grid-template-columns: 1fr;
  }

  .portfolio-footer__intro {
    min-height: auto;
    padding: 45px 20px 25px;
  }

  .portfolio-footer__title {
    font-size: clamp(34px, 8vw, 43px);
    line-height: 1.2;
  }

  .portfolio-footer__sparkle {
    right: -35px;
    top: 30px;
    font-size: 31px;
  }

  .portfolio-footer__description {
    max-width: 370px;

    margin-top: 25px;

    font-size: 15px;
    line-height: 1.7;
  }

  .portfolio-footer__availability {
    margin-top: 35px;
    gap: 12px;
  }

  .portfolio-footer__availability-icon {
    width: 48px;
    height: 48px;
  }

  .portfolio-footer__availability-text {
    font-size: 12px;
  }

  .portfolio-footer__contacts {
    padding: 10px 20px 30px;
  }

  .portfolio-footer__contact {
    gap: 18px;
    min-height: 75px;
  }

  .portfolio-footer__contact-icon {
    width: 55px;
    height: 55px;
  }

  .portfolio-footer__contact-text {
    font-size: 14px;
  }

  .portfolio-footer__visual {
    grid-column: auto;
    height: 260px;
  }

  .portfolio-footer__image {
    object-position: center;
  }

}

/* =========================================
   MOBILE PEQUENO
========================================= */

@media (max-width: 380px) {

  .portfolio-footer__title {
    font-size: 32px;
  }

  .portfolio-footer__sparkle {
    font-size: 27px;
    right: -30px;
    top: 26px;
  }

  .portfolio-footer__description {
    font-size: 14px;
  }

  .portfolio-footer__contact {
    gap: 13px;
  }

  .portfolio-footer__contact-icon {
    width: 49px;
    height: 49px;
  }

  .portfolio-footer__contact-icon svg {
    width: 23px;
    height: 23px;
  }

  .portfolio-footer__contact-text {
    font-size: 12px;
  }

  .portfolio-footer__visual {
    height: 225px;
  }

}


/* =========================================
   PREMIUM MOTION LAYER
   Loader, navegação fixa, cursor, progresso,
   marquee e detalhes de interação.
========================================== */

/* -----------------------------------------
   LOADER
----------------------------------------- */

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9000;

  display: none;
  flex-direction: column;
  justify-content: space-between;

  padding: clamp(22px, 4vw, 52px);

  background: #070707;
  color: #f4f4f4;

  font-family: 'DM Sans', sans-serif;
  overflow: hidden;

  will-change: transform;
}

html.is-loading .page-loader {
  display: flex;
}

.page-loader__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-loader__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b9b5b7;
}

.page-loader__count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(82px, 15vw, 200px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.035em;
  color: #f4f4f4;
}

.page-loader__percent {
  margin-left: 6px;

  color: #c21b27;
  font-size: 0.28em;
  vertical-align: super;
  letter-spacing: 0;
}

.page-loader__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8c8889;
}

.page-loader__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;

  background: rgba(255, 255, 255, 0.08);
}

.page-loader__bar-fill {
  display: block;
  width: 100%;
  height: 100%;

  background: linear-gradient(90deg, #6f0c12, #d21c28);

  transform: scaleX(0);
  transform-origin: left center;
}

/* -----------------------------------------
   PROGRESSO DE SCROLL
----------------------------------------- */

.scroll-progress {
  position: fixed;
  z-index: 860;
  top: 0;
  left: 0;
  right: 0;

  height: 2px;

  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;

  background: linear-gradient(90deg, #7c0d15 0%, #e0212f 100%);

  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* -----------------------------------------
   NAVEGAÇÃO FLUTUANTE
----------------------------------------- */

.floating-nav {
  position: fixed;
  z-index: 820;
  top: 16px;
  left: 50%;

  display: flex;
  align-items: center;
  gap: 4px;

  max-width: calc(100vw - 28px);
  padding: 6px;

  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;

  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, calc(-100% - 28px));

  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    visibility 0.4s;
}

.floating-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 4px 12px 4px 4px;

  color: #f4f4f4;
  text-decoration: none;
}

.floating-nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  background: #b5121b;
  border-radius: 50%;

  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.floating-nav__brand-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.floating-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;

  list-style: none;
}

.floating-nav__links a {
  position: relative;

  display: block;
  padding: 10px 13px;

  color: #b6b3b4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  transition: color 0.25s ease;
}

.floating-nav__links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;

  height: 1px;

  background: #d21c28;

  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-nav__links a:hover,
.floating-nav__links a:focus-visible,
.floating-nav__links a[aria-current="true"] {
  color: #fff;
}

.floating-nav__links a:hover::after,
.floating-nav__links a:focus-visible::after,
.floating-nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.floating-nav__cta {
  padding: 10px 17px;

  background: #f4f4f4;
  color: #080808;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  transition: background-color 0.25s ease, color 0.25s ease;
}

.floating-nav__cta:hover {
  background: #b5121b;
  color: #fff;
}

/* -----------------------------------------
   VOLTAR AO TOPO
----------------------------------------- */

.back-to-top {
  position: fixed;
  z-index: 820;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  color: #f4f4f4;
  text-decoration: none;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(16px);

  transition:
    opacity 0.35s ease,
    visibility 0.35s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 19px;
  height: 19px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-to-top:hover {
  background: #b5121b;
  border-color: #b5121b;
  color: #fff;
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* -----------------------------------------
   CURSOR PERSONALIZADO (DESKTOP)
----------------------------------------- */

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

.cursor {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;

  display: none;
  pointer-events: none;

  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor.is-active {
  opacity: 1;
}

html.has-custom-cursor .cursor {
  display: block;
}

.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;

  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;

  background: #d21c28;
  border-radius: 50%;
}

.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;

  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;

  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.cursor__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;

  color: #080808;

  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.cursor.is-hover .cursor__ring {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;

  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.85);
}

.cursor.is-label .cursor__ring {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;

  background: #f4f4f4;
  border-color: #f4f4f4;
}

.cursor.is-label .cursor__dot {
  opacity: 0;
}

.cursor.is-label .cursor__label {
  opacity: 1;
  transform: scale(1);
}

.cursor.is-down .cursor__ring {
  background: rgba(181, 18, 27, 0.45);
  border-color: #d21c28;
}

/* -----------------------------------------
   MARQUEE DE ESPECIALIDADES
----------------------------------------- */

.marquee-band {
  position: relative;

  width: 100%;
  padding: clamp(14px, 2vw, 24px) 0;

  background: #0b0b0b;
  border-top: 1px solid #1c1c1c;
  border-bottom: 1px solid #1c1c1c;

  overflow: hidden;
}

.marquee-band::before,
.marquee-band::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;

  width: clamp(30px, 8vw, 130px);

  pointer-events: none;
}

.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, #0b0b0b, transparent);
}

.marquee-band::after {
  right: 0;
  background: linear-gradient(270deg, #0b0b0b, transparent);
}

.marquee-band__track {
  display: flex;
  width: max-content;

  animation: marquee-band-scroll 34s linear infinite;
  will-change: transform;
}

.marquee-band:hover .marquee-band__track {
  animation-play-state: paused;
}

.marquee-band__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);

  padding-right: clamp(22px, 3vw, 46px);
}

.marquee-band__group span {
  color: #ececec;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-band__group .is-outline {
  color: transparent;
  -webkit-text-stroke: 1px #5f5f5f;
}

.marquee-band__group .marquee-band__star {
  color: #c21b27;
  font-size: clamp(16px, 1.8vw, 26px);
  -webkit-text-stroke: 0;
}

@supports not (-webkit-text-stroke: 1px #000) {
  .marquee-band__group .is-outline {
    color: #8b8b8b;
  }
}

@keyframes marquee-band-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* -----------------------------------------
   DETALHES CONTÍNUOS
----------------------------------------- */

.portfolio-footer__sparkle {
  animation: footer-sparkle-spin 12s linear infinite;
}

.portfolio-footer__availability-icon {
  animation: footer-availability-pulse 3.6s ease-in-out infinite;
}

@keyframes footer-sparkle-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes footer-availability-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(181, 18, 27, 0);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(181, 18, 27, 0.08);
  }
}

/* -----------------------------------------
   RESPONSIVO — UI FIXA
----------------------------------------- */

@media (max-width: 900px) {
  .floating-nav__brand-text {
    display: none;
  }

  .floating-nav__brand {
    padding-right: 4px;
  }

  .floating-nav__links a {
    padding: 10px 10px;
    font-size: 9px;
  }

  .floating-nav__links a::after {
    left: 10px;
    right: 10px;
  }

  .floating-nav__cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .page-loader__bottom {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .floating-nav {
    top: 10px;
    gap: 0;
    padding: 5px;
  }

  .floating-nav__brand-mark {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .floating-nav__links a {
    padding: 9px 8px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .floating-nav__links a::after {
    left: 8px;
    right: 8px;
    bottom: 5px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 17px;
    height: 17px;
  }

  .marquee-band__group span {
    font-size: 32px;
  }
}

/* -----------------------------------------
   MOVIMENTO REDUZIDO / TOUCH
----------------------------------------- */

@media (hover: none), (pointer: coarse) {
  .portfolio-hero__portrait,
  .portfolio-hero__red-glow,
  .portfolio-hero__background-title,
  .portfolio-hero__statement {
    translate: none;
  }

  .cursor {
    display: none !important;
  }

  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: auto !important;
  }

  .project-card__image::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.is-loading,
  html.is-loading body {
    overflow: auto;
  }

  .page-loader {
    display: none !important;
  }

  .marquee-band__track,
  .portfolio-footer__sparkle,
  .portfolio-footer__availability-icon,
  .portfolio-hero__sparkle {
    animation: none !important;
  }

  .floating-nav,
  .back-to-top,
  .skip-link {
    transition: none;
  }

  .cursor {
    display: none !important;
  }

  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: auto !important;
  }

  .portfolio-hero__portrait,
  .portfolio-hero__red-glow,
  .portfolio-hero__background-title,
  .portfolio-hero__statement {
    translate: none;
  }

  .project-card__image::after {
    display: none;
  }
}


/* ==========================================
   EDUCAÇÃO — BOTÃO "VER MAIS"
========================================== */

.resume-education__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 2px;
  padding: 0;

  border: 0;
  background: none;

  color: #e6e6e6;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;

  cursor: pointer;
}

.resume-education__more span {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(165, 30, 41, 0.65);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.resume-education__more svg {
  width: 14px;
  height: 14px;
  color: #d21c28;
  transition: transform 0.25s ease;
}

.resume-education__more:hover span {
  color: #fff;
  border-color: #d21c28;
}

.resume-education__more:hover svg {
  transform: translateX(3px);
}

/* ==========================================
   MODAL — EDUCAÇÃO
========================================== */

html.is-edu-modal-open,
html.is-edu-modal-open body {
  overflow: hidden;
}

.edu-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.edu-modal[hidden] {
  display: none;
}

.edu-modal *,
.edu-modal *::before,
.edu-modal *::after {
  box-sizing: border-box;
}

.edu-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(4, 4, 4, 0.84);

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  opacity: 0;
  transition: opacity 0.3s ease;
}

.edu-modal__dialog {
  position: relative;

  display: flex;
  flex-direction: column;

  width: min(780px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);

  background: #0b0909;
  border: 1px solid #2c1c20;
  border-top: 3px solid #a51e29;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  opacity: 0;
  transform: translateY(20px) scale(0.985);

  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);

  outline: none;
}

.edu-modal.is-open .edu-modal__backdrop {
  opacity: 1;
}

.edu-modal.is-open .edu-modal__dialog {
  opacity: 1;
  transform: none;
}

.edu-modal__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 2px solid #2c2023;
  border-radius: 50%;
  background: #0b0909;

  color: #d7d7d7;

  cursor: pointer;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.edu-modal__close svg {
  width: 18px;
  height: 18px;
}

.edu-modal__close:hover {
  color: #fff;
  border-color: #a51e29;
  transform: rotate(90deg);
}

.edu-modal__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  padding: 42px 44px 38px;

  scrollbar-width: thin;
  scrollbar-color: #6d1a22 transparent;
}

.edu-modal__scroll::-webkit-scrollbar {
  width: 8px;
}

.edu-modal__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.edu-modal__scroll::-webkit-scrollbar-thumb {
  background: #54161c;
  border-radius: 999px;
}

.edu-modal__header {
  padding-right: 48px;
}

.edu-modal__eyebrow {
  display: inline-block;

  color: #d21c28;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.edu-modal__title {
  margin: 12px 0 14px;

  color: #f2f2f2;
  font-size: clamp(23px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.edu-modal__desc {
  max-width: 58ch;
  margin: 0;

  color: #a9a9a9;
  font-size: 15px;
  line-height: 1.6;
}

.edu-modal__timeline {
  display: grid;
  gap: 18px;

  margin: 30px 0 0;
  padding: 0;

  list-style: none;
}

.edu-modal__item {
  padding: 24px 26px;

  background: #0f0c0d;
  border: 1px solid #251a1d;
  border-left: 2px solid #6d1a22;
}

.edu-modal__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.edu-modal__year {
  color: #d21c28;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.edu-modal__badge {
  padding: 5px 9px;

  border: 1px solid #2e2426;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);

  color: #b9b9b9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.edu-modal__item-title {
  margin: 12px 0 4px;

  color: #ededed;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.edu-modal__institution {
  margin: 0 0 14px;

  color: #b1b1b1;
  font-size: 14px;
  line-height: 1.4;
}

.edu-modal__text {
  margin: 0 0 16px;

  color: #a8a8a8;
  font-size: 14.5px;
  line-height: 1.65;
}

.edu-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.edu-modal__tags li {
  padding: 6px 9px;

  border: 1px solid #2b2325;
  border-radius: 5px;

  color: #c2c2c2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.edu-modal__note {
  margin: 26px 0 0;
  padding-top: 20px;

  border-top: 1px solid #241a1c;

  color: #8f8f8f;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ==========================================
   MODAL — RESPONSIVO
========================================== */

@media (max-width: 767px) {

  .edu-modal {
    padding: 12px;
  }

  .edu-modal__dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .edu-modal__close {
    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;
  }

  .edu-modal__close svg {
    width: 16px;
    height: 16px;
  }

  .edu-modal__scroll {
    padding: 28px 20px 26px;
  }

  .edu-modal__header {
    padding-right: 40px;
  }

  .edu-modal__title {
    font-size: 24px;
  }

  .edu-modal__desc {
    font-size: 14px;
  }

  .edu-modal__timeline {
    gap: 14px;
    margin-top: 24px;
  }

  .edu-modal__item {
    padding: 20px 18px;
  }

  .edu-modal__item-title {
    font-size: 17px;
  }

  .edu-modal__text {
    font-size: 14px;
  }

  .edu-modal__tags li {
    font-size: 10px;
  }

}

@media (max-width: 420px) {

  .edu-modal__badge {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .edu-modal__item-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .edu-modal__backdrop,
  .edu-modal__dialog,
  .edu-modal__close,
  .resume-education__more span,
  .resume-education__more svg {
    transition: none;
  }

  .edu-modal__dialog {
    transform: none;
  }

}

.portfolio-footer__copyright {
  margin: 24px auto 0;
  padding: 0 24px 24px;
  max-width: 1200px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
