
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ========================================
   FONTES
======================================== */

@font-face {
  font-family: "Mandali";
  src: url("./assets/Mandali-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: dark;
  font-family: "Mandali", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --background: #0e0f0e;
  --white: #f4f4f2;
  --green: #57ff57;
  --blue: #00b7ff;
  --brand-gradient: linear-gradient(120deg, #57ff57, #00b7ff);

  background: var(--background);
  color: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* ========================================
   CABEÇALHO
======================================== */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(calc(100% - 96px), 1440px);
  min-height: 92px;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__name {
  font-family: "Mandali", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.wordmark__role {
  font-family: "Inter", Arial, sans-serif;
  color: #a9aaa7;
  font-size: 0.875rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3.2vw, 3rem);
  font-family: "Inter", Arial, sans-serif;
}

.site-nav a {
  color: #e6e7e3;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--green);
}

/* ========================================
   HERO
======================================== */

.hero {
  display: grid;
  min-height: calc(100svh - 92px);
  place-items: center;
  padding: 0 48px 32px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, 1440px);
  margin-inline: auto;
}

.hero-gif {
  display: block;
  justify-self: start;
  width: 140%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

/* O enquadramento de 1400 × 1000 preserva o espaço ocupado pelo GIF. */
.hero-art {
  position: relative;
  aspect-ratio: 7 / 5;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

.hero-art__scene {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* As transformações SVG usam coordenadas locais e um pivô explícito. */
.hero-art__star,
.hero-art__photo {
  animation: none;
}

.hero-copy {
  justify-self: end;
  width: min(100%, 520px);
  color: var(--white);
}

.hero-copy__greeting {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.5rem -0.08em;
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.hero-copy__letter-h {
  display: inline-block;
  color: var(--white);
  line-height: 1;
}

.hero-copy__greeting-accent {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0.01em;
  letter-spacing: 0;
  line-height: 1;
}

.hero-copy__letter-i,
.hero-copy__letter-inverted {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Mandali", sans-serif;
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(180deg, var(--green) 10%, var(--blue) 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-copy__letter-inverted {
  margin-left: -0.035em;
  background: linear-gradient(0deg, var(--green) 10%, var(--blue) 90%);
  background-clip: text;
  -webkit-background-clip: text;
  transform: translateY(0.055em) rotate(180deg);
  transform-origin: center;
}

.hero-copy__text {
  margin: 0;
  max-width: none;
  padding-bottom: 0.15em;
  text-wrap: pretty;
  font-size: clamp(2.5rem, 4.3vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.12;
  text-align: left;
  background: linear-gradient(
    100deg,
    #f4f4f2 30%,
    #57ff57 45%,
    #00b7ff 55%,
    #f4f4f2 70%
  );
  background-size: 250% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: text-gradient 6s linear infinite;
}

.hero-copy__green {
  color: var(--green);
  -webkit-text-fill-color: var(--green);
}

.hero-copy__blue {
  color: var(--blue);
  white-space: nowrap;
  -webkit-text-fill-color: var(--blue);
}

@keyframes text-gradient {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -50% 0;
  }
}

/* ========================================
   BASE DAS SECÇÕES
======================================== */

.portfolio,
.services,
.contact {
  font-family: "Inter", Arial, sans-serif;
  background-color: var(--background);
}

.site-footer {
  font-family: "Inter", Arial, sans-serif;
}

/* ========================================
   PORTFÓLIO
======================================== */

.portfolio {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 850px;
  padding: 105px 76px 120px;
}

.portfolio__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  margin-inline: auto;
}

.portfolio__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio__title {
  margin: 0;
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.portfolio__title-mark {
  display: inline-block;
  font-family: "Mandali", sans-serif;
  font-size: 1.3em;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 0.75;
  vertical-align: -0.055em;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.portfolio__title-mark--inverted {
  margin-right: 0;
  margin-left: 0.035em;
  transform: rotate(180deg) translateY(-0.04em);
  transform-origin: center;
}

.portfolio__description {
  margin: 28px 0 0;
  color: #d5d7d3;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

/* LUZES DO PORTFÓLIO */

.portfolio__glow {
  position: absolute;
  z-index: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(95px);
  opacity: 0.22;
}

.portfolio__glow--left {
  top: 43%;
  left: -300px;
  background: var(--green);
}

.portfolio__glow--right {
  top: 45%;
  right: -300px;
  background: var(--blue);
}

/* PAGINAÇÃO */

.portfolio__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 65px;
  color: var(--white);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.portfolio__pagination-line {
  width: 65px;
  height: 2px;
  background: var(--brand-gradient);
}

.portfolio__total {
  color: #a9aaa7;
}

/* CARROSSEL */

.portfolio__showcase {
  position: relative;
  width: 100%;
  margin-top: 25px;
}

.portfolio__viewport {
  width: 100%;
  overflow: hidden;
  padding: 7px 2px 12px;
}

.portfolio__track {
  --visible-cards: 3;
  --card-gap: 20px;

  display: flex;
  align-items: stretch;
  gap: var(--card-gap);
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ========================================
   CARTÕES DOS PROJETOS
======================================== */

.project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  flex: 0 0 calc(
    (100% - (var(--visible-cards) - 1) * var(--card-gap))
    / var(--visible-cards)
  );

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

  border: 1px solid transparent;
  border-radius: 22px;

  background:
    linear-gradient(#101310, #101310) padding-box,
    var(--brand-gradient) border-box;

  transition: box-shadow 250ms ease;
}

.project-card:hover {
  box-shadow: 0 14px 45px rgba(0, 183, 255, 0.13);
}

.project-card__content {
  position: relative;
  isolation: isolate;

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

  width: 100%;
  min-height: 430px;
  padding: 24px;

  overflow: hidden;
  border-radius: 21px;
}

/* ========================================
   IMAGENS DAS CAPAS
======================================== */

.project-card__image {
  position: absolute;
  z-index: -2;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

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

  pointer-events: none;

  transform: scale(1);

  transition:
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms ease;
}

/* DEGRADÊ SOBRE AS CAPAS */

.project-card__content::before {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.05) 27%,
    rgba(0, 0, 0, 0.13) 48%,
    rgba(0, 0, 0, 0.58) 73%,
    rgba(0, 0, 0, 0.90) 100%
  );

  pointer-events: none;

  transition: background 300ms ease;
}

/* EFEITO HOVER */

.project-card:hover .project-card__image {
  transform: scale(1.055);
  filter: brightness(1.04);
}

/* NÚMERO */

.project-card__number {
  position: relative;
  z-index: 1;

  align-self: flex-start;

  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* TEXTOS */

.project-card__bottom {
  position: relative;
  z-index: 1;
  padding-right: 40px;
}

.project-card__category {
  display: block;
  margin-bottom: 7px;

  color: #e4e9e5;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.project-card__title {
  margin: 0;

  color: #ffffff;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;

  overflow-wrap: break-word;

  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}

/* SUBTÍTULO DO LIVRO CASA VERMELHA */

.project-card__subtitle {
  display: inline-block;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

/* SÍMBOLO + */

.project-card__plus {
  position: absolute;
  right: 0;
  bottom: 1px;

  display: grid;
  width: 32px;
  height: 32px;

  place-items: center;

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

  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);

  transition:
    background 250ms ease,
    transform 250ms ease;
}

.project-card:hover .project-card__plus {
  background: rgba(87, 255, 87, 0.18);
  transform: rotate(90deg);
}

.project-card__plus::before,
.project-card__plus::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 2px;
}

.project-card__plus::before {
  width: 13px;
  height: 1.5px;
}

.project-card__plus::after {
  width: 1.5px;
  height: 13px;
}

/* LINKS DOS PROJETOS */

.project-card__link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project-card__link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -5px;
  border-radius: 22px;
}

/* ========================================
   PROJETO 12 — COMING SOON
======================================== */

.project-card--soon {
  cursor: default;

  background:
    linear-gradient(145deg, #18201a, #101310 65%) padding-box,
    var(--brand-gradient) border-box;
}

.project-card--soon .project-card__content::before {
  background:
    radial-gradient(
      ellipse at 65% 30%,
      rgba(87, 255, 87, 0.11),
      transparent 65%
    ),
    radial-gradient(
      ellipse at 25% 75%,
      rgba(0, 183, 255, 0.10),
      transparent 60%
    );
}

.project-card--soon .project-card__bottom {
  padding-right: 0;
}

.project-card--soon .project-card__category {
  color: #b5c0b8;
  text-shadow: none;
}

.project-card--soon .project-card__title {
  color: var(--white);
  text-shadow: none;
}

.project-card--soon .project-card__number {
  color: #aab3ac;
  text-shadow: none;
}

.project-card__soon {
  display: inline-block;
  margin-top: 14px;

  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ========================================
   SETAS DO CARROSSEL
======================================== */

.portfolio__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;

  display: grid;
  width: 46px;
  height: 46px;

  place-items: center;
  padding: 0;

  border: 1px solid #26352a;
  border-radius: 50%;

  background: #151c15;
  color: var(--white);

  cursor: pointer;
  transform: translateY(-50%);

  transition:
    background 200ms ease,
    border-color 200ms ease;
}

.portfolio__arrow svg {
  display: block;
  width: 22px;
  height: 22px;
}

.portfolio__arrow:hover {
  border-color: var(--green);
  background: #203023;
}

.portfolio__arrow--prev {
  left: -62px;
}

.portfolio__arrow--next {
  right: -62px;
}

/* ========================================
   BOTÃO EXPLORAR PROJETOS
======================================== */

.portfolio__action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.portfolio__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;

  min-height: 46px;
  padding: 0.5rem 1.7rem;

  border: 1px solid transparent;
  border-radius: 100px;

  background:
    linear-gradient(var(--background), var(--background)) padding-box,
    var(--brand-gradient) border-box;

  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;

  transition: transform 200ms ease;
}

.portfolio__button:hover {
  transform: translateY(-3px);
}

.portfolio__button span {
  font-size: 1.15rem;
}

/* ========================================
   ABOUT ME
======================================== */

.about {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 4vw, 64px) 6vw clamp(64px, 10vw, 144px);
  background: #0e0f0e;
  color: var(--white);
  font-family: "Mandali", sans-serif;
}

.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  /* Os focos terminam dentro da secção, antes das margens e da transição. */
  background:
    radial-gradient(
      ellipse 23% 20% at 47% 72%,
      rgba(87, 255, 87, 0.20) 0%,
      rgba(87, 255, 87, 0.08) 45%,
      rgba(87, 255, 87, 0) 100%
    ),
    radial-gradient(
      ellipse 16% 20% at 78% 23%,
      rgba(0, 183, 255, 0.16) 0%,
      rgba(0, 183, 255, 0.06) 42%,
      rgba(0, 183, 255, 0) 100%
    );
}

.about__container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  column-gap: clamp(32px, 6vw, 88px);
  row-gap: clamp(32px, 5vw, 72px);
  width: 100%;
  margin-inline: auto;
}

.about__container > * {
  min-width: 0;
}

.about__title {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  font-size: var(--about-title-size, clamp(3rem, 14vw, 12rem));
  font-weight: 700;
  font-synthesis: weight;
  letter-spacing: -0.035em;
  word-spacing: -0.12em;
  line-height: 0.95;
}

.about__title-word {
  position: relative;
  left: var(--about-word-offset, 0px);
  display: block;
  width: max-content;
  white-space: nowrap;
  transform: scaleX(var(--about-title-scale, 1));
  transform-origin: left center;
}

.about__portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, calc(22vw + 170px));
  aspect-ratio: 5 / 6;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #191a19;
}

.about__portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: min(100%, 35rem);
  justify-self: end;
  align-self: stretch;
  text-align: left;
}

.about__body {
  font-size: clamp(0.84375rem, calc(0.9vw + 0.1rem), 0.9375rem);
  line-height: clamp(1.375em, 1.15vw, 1.5em);
}

.about__body p {
  margin: 0;
}

.about__body p + p {
  margin-top: 5px;
}

.about__quote {
  margin: 0;
}

.about__quote p {
  margin: 0;
  font-size: clamp(2rem, calc(8vw - 3.5rem), 5.25rem);
  font-weight: 700;
  font-synthesis: weight;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.about__quote-accent {
  /* Mandali omite este carácter; evita o negrito da fonte de substituição. */
  font-weight: 400;
}

.about__quote footer {
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px clamp(24px, 3vw, 40px);
  margin-top: 0;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 5px;
  color: inherit;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease;
}

.about__cta svg {
  display: none;
}

.about__cta--portfolio {
  color: var(--green);
}

.about__cta--linkedin {
  color: var(--blue);
}

.about__cta:hover {
  color: var(--green);
}

.about__cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .about {
    padding-inline: 32px;
  }

  .about__container {
    column-gap: 6%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .about__portrait {
    width: min(100%, calc(26vw + 132px));
  }

  .about__quote p {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
  }

  .about__content {
    gap: 16px;
  }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  .about__container {
    grid-template-columns: calc(26vw + 132px) minmax(0, 1fr);
    column-gap: 32px;
  }

  .about__content {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .about {
    padding: 56px 20px 72px;
  }

  .about__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .about__title {
    grid-column: 1;
  }

  .about__portrait {
    width: min(100%, calc(50% + 130px), 370px);
    justify-self: start;
  }

  .about__content {
    width: min(100%, 30rem);
    justify-content: flex-start;
    gap: 0;
  }

  .about__body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about__body p + p {
    margin-top: 20px;
  }

  .about__quote {
    margin-top: 28px;
  }

  .about__quote p {
    font-size: clamp(2.75rem, 11vw, 4rem);
  }

  .about__actions {
    margin-top: 28px;
    padding-top: 0;
  }

  .about__cta {
    min-height: 44px;
    font-size: 1rem;
  }
}

/* ========================================
   SERVIÇOS
======================================== */

.services {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: 120px 48px 140px;
}

.services__glow {
  position: absolute;
  z-index: 0;
  top: 12%;
  left: 50%;
  width: 125%;
  height: 85%;
  transform: translateX(-50%);
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 26% 48%,
      rgba(87, 255, 87, 0.14),
      transparent 58%
    ),
    radial-gradient(
      ellipse at 76% 52%,
      rgba(0, 183, 255, 0.16),
      transparent 60%
    );

  filter: blur(65px);
}

.services__container {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(300px, 0.9fr);

  align-items: stretch;
  gap: clamp(45px, 6vw, 100px);

  width: min(100%, 1440px);
  margin-inline: auto;
}

.services__left {
  min-width: 0;
}

.services__heading {
  margin: 0 0 75px;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--white);
}

.services__heading span {
  color: var(--white);
}

.services__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.services__item {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(160px, 0.8fr);

  align-items: center;
  column-gap: 25px;

  min-height: 88px;
  padding: 17px 4px;

  border-bottom: 1px solid rgba(244, 244, 242, 0.2);

  transition:
    padding 300ms ease,
    border-color 300ms ease;
}

.services__item:first-child {
  border-top: 1px solid rgba(244, 244, 242, 0.2);
}

.services__item h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: var(--white);
  overflow-wrap: break-word;
  transition: color 300ms ease;
}

.services__item p {
  margin: 0;
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #aeb5ae;
  transition: color 300ms ease;
}

.services__item:hover {
  padding-left: 12px;
  border-color: rgba(87, 255, 87, 0.55);
}

.services__item:hover h3 {
  color: var(--green);
}

.services__item:hover p {
  color: var(--white);
}

/* ANIMAÇÃO DOS SERVIÇOS — SVG transparente, com a proporção do original. */

.services__right {
  display: flex;
  align-items: stretch;
  min-width: 0;
  padding-top: var(--services-heading-offset, 130px);
  transform: translateY(-35px);
}

.services__animation-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.services__animation {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  outline: none;
  pointer-events: none;
}


/* VISUAL ALTERNATIVO */

.services__visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 20px;

  background:
    linear-gradient(#101310, #101310) padding-box,
    var(--brand-gradient) border-box;
}

.services__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 690px;
  object-fit: cover;
  object-position: center;
}

/* ========================================
   CONTACTO
======================================== */

.contact {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 4.5vw, 76px) clamp(20px, 2.6vw, 48px);
  color: var(--white);
  background: var(--background);
}

.contact__glow {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
}

.contact__glow::before,
.contact__glow::after {
  content: "";
  position: absolute;
  inset: 0;
}

.contact__glow::before {
  background: radial-gradient(ellipse 22% 16% at 26% 80%, rgba(87, 255, 87, 0.20), rgba(87, 255, 87, 0.06) 48%, rgba(87, 255, 87, 0) 100%);
  animation: glow-green-move 11s ease-in-out infinite alternate;
}

.contact__glow::after {
  background: radial-gradient(ellipse 16% 15% at 79% 19%, rgba(0, 183, 255, 0.18), rgba(0, 183, 255, 0.05) 48%, rgba(0, 183, 255, 0) 100%);
  animation: glow-blue-move 13s ease-in-out infinite alternate;
}

@keyframes glow-green-move {
  from { transform: translate(0, 0); }
  to { transform: translate(2%, -2%); }
}

@keyframes glow-blue-move {
  from { transform: translate(0, 0); }
  to { transform: translate(-2%, 2%); }
}

.contact__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 3.5vw, 56px);
  width: min(100%, 1520px);
  margin-inline: auto;
  padding: clamp(28px, 3.8vw, 56px);
  border-radius: 40px;
  background: rgba(4, 6, 5, 0.94);
}

.contact__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

/* Enquadrar o PNG original, que inclui margens pretas, sem redesenhar o logo. */
.contact__logo {
  --contact-logo-height: clamp(56px, 5vw, 76px);
  position: relative;
  flex: none;
  width: calc(var(--contact-logo-height) * 216 / 832);
  height: var(--contact-logo-height);
  overflow: hidden;
  mix-blend-mode: screen;
}

.contact__logo img {
  position: absolute;
  width: 1111.1111%;
  max-width: none;
  height: auto;
  left: -505.5556%;
  top: -130.2885%;
}

.contact__title {
  margin: clamp(40px, 4.5vw, 72px) 0 0;
  max-width: 100%;
  font-family: "Mandali", sans-serif;
  font-size: clamp(3rem, 7.3vw, 7.75rem);
  font-weight: 700;
  font-synthesis: weight;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.contact__title span {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.contact__description {
  max-width: 34ch;
  margin: 28px 0 40px;
  color: #bfc2bf;
  font-size: clamp(1rem, 1.65vw, 1.625rem);
  line-height: 1.5;
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  max-width: 100%;
}

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 68px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--green);
  color: #071007;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700;
  font-synthesis: weight;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms ease, filter 200ms ease;
}

.contact__whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.contact__whatsapp-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.contact__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__social {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #858b86;
  border-radius: 50%;
  color: var(--white);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact__social:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.contact__social svg {
  width: 26px;
  height: 26px;
}

.contact__social svg:not([fill]) {
  fill: currentColor;
}

.contact__social svg[fill="none"] {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__form-shell {
  min-width: 0;
  margin-top: clamp(32px, 3vw, 48px);
  padding: clamp(28px, 3vw, 48px);
  border-radius: 32px;
  background: var(--blue);
  color: #071217;
  color-scheme: light;
}

.contact__form-title {
  margin: 0 0 28px;
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  font-weight: 700;
  font-synthesis: weight;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__honeypot {
  display: none;
}

.contact__field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Os labels continuam acessiveis; os campos seguem as linhas da referencia. */
.contact__field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact__fields-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(7, 18, 23, 0.42);
  border-radius: 0;
  background: transparent;
  color: #071217;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 180ms ease;
}

.contact__field textarea {
  min-height: 104px;
  resize: vertical;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: #173442;
  opacity: 1;
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: #071217;
  outline: 2px solid #071217;
  outline-offset: 4px;
}

.contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #102b36;
  font-size: 0.75rem;
  line-height: 1.5;
  cursor: pointer;
}

.contact__consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #071217;
}

.contact__consent input:focus-visible,
.contact__submit:focus-visible {
  outline: 2px solid #071217;
  outline-offset: 4px;
}

.contact__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #060807;
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  font-synthesis: weight;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.contact__submit:hover {
  transform: translateY(-2px);
  background: #17251b;
}

.contact__submit span {
  font-size: 1.3rem;
}

.contact__feedback {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #071217;
  color: #ffffff;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.contact__feedback[hidden] {
  display: none;
}

.contact__fineprint {
  margin: 0;
  color: #102b36;
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .contact__container {
    padding: 32px;
    gap: 28px;
  }

  .contact__title {
    font-size: clamp(3rem, 5.7vw, 4rem);
  }

  .contact__form-shell {
    padding: 28px;
  }

  .contact__form-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 900px) {
  .contact {
    padding: 56px 24px;
  }

  .contact__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 36px;
    border-radius: 32px;
  }

  .contact__title {
    margin-top: 36px;
    font-size: clamp(3rem, 9vw, 6rem);
  }

  .contact__description {
    margin: 24px 0 32px;
    font-size: 1.25rem;
  }

  .contact__form-shell {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .contact {
    padding: 40px 16px;
  }

  .contact__container {
    gap: 32px;
    padding: 28px 20px;
    border-radius: 28px;
  }

  .contact__title {
    font-size: clamp(2rem, 11vw, 3.25rem);
    overflow-wrap: break-word;
  }

  .contact__description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .contact__channels {
    width: 100%;
    gap: 20px;
  }

  .contact__whatsapp {
    width: 100%;
    min-height: 56px;
    padding: 14px;
    font-size: 0.875rem;
    gap: 8px;
  }

  .contact__socials {
    gap: 14px;
  }

  .contact__social {
    width: 48px;
    height: 48px;
  }

  .contact__form-shell {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .contact__form-title {
    font-size: 1.65rem;
  }

  .contact__consent {
    min-height: 44px;
    padding-block: 4px;
  }
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  position: relative;
  padding: 80px 48px 30px;
  background: var(--blue);
  color: var(--background);
  border: none;
  border-radius: 48px 48px 0 0;
}

.site-footer__container {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
  gap: 50px;
  padding-bottom: 75px;
}

.site-footer__name {
  display: inline-block;
  color: var(--background);
  font-family: "Mandali", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.2;
  text-decoration: none;
}

.site-footer__label {
  margin: 0 0 22px;
  color: var(--background);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__contacts,
.site-footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__contact-link {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--background);
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity 180ms ease;
}

.site-footer__contact-link:hover {
  color: var(--background);
  opacity: 0.65;
}

.site-footer__behance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 46px;
  padding: 11px 24px;
  border: 1px solid var(--background);
  border-radius: 100px;
  background: var(--background);
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;

  transition:
    transform 200ms ease,
    background 200ms ease;
}

.site-footer__behance:hover {
  transform: translateY(-3px);
  background: #202420;
  box-shadow: none;
}

.site-footer__behance span:last-child {
  font-size: 1.1rem;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(14, 15, 14, 0.25);
  color: var(--background);
  font-size: 0.82rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  color: var(--background);
  text-decoration: none;
  transition: opacity 180ms ease;
}

.site-footer__bottom a:hover {
  color: var(--background);
  opacity: 0.65;
}

/* ========================================
   TABLET — 1050 PX
======================================== */

@media (max-width: 1050px) {

  .services {
    padding: 100px 32px 115px;
  }

  .services__container {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(260px, 0.75fr);
    gap: 35px;
  }

  .services__heading {
    margin-bottom: 55px;
  }

  .services__item {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 80px;
  }

  .services__item h3 {
    font-size: 1.55rem;
  }

  .services__item p {
    font-size: 0.9rem;
  }



}

/* ========================================
   TABLET — 900 PX
======================================== */

@media (max-width: 900px) {

  .site-header {
    width: calc(100% - 48px);
  }

  .hero {
    padding: 0 24px 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: min(100%, 620px);
  }

  .hero-gif {
    width: min(125%, 520px);
  }

  .hero-copy {
    justify-self: start;
    width: min(100%, 560px);
    padding-top: 24px;
  }

  .hero-copy__greeting {
    margin-bottom: 1rem;
    font-size: clamp(6rem, 18vw, 10rem);
  }

  .hero-copy__text {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
  }

  .portfolio {
    min-height: auto;
    padding: 90px 65px 110px;
  }

  .portfolio__track {
    --visible-cards: 2;
    --card-gap: 12px;
  }

  .project-card,
  .project-card__content {
    min-height: 350px;
  }

  .project-card__content {
    padding: 17px;
  }

  .project-card__title {
    font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  }

  .portfolio__arrow--prev {
    left: -53px;
  }

  .portfolio__arrow--next {
    right: -53px;
  }

  .services__container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .services__right {
    padding-top: 0;
    width: 100%;
    transform: none;
  }

  .services__animation-container {
    width: min(100%, 540px);
    height: auto;
    margin-inline: auto;
    overflow: visible;
  }

  .services__animation {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
  }





  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

}

/* ========================================
   MOBILE — 700 PX
======================================== */

@media (max-width: 700px) {

  .services {
    padding: 85px 20px 100px;
  }

  .services__container {
    gap: 40px;
  }

  .services__heading {
    margin-bottom: 40px;
    font-size: clamp(3.2rem, 12vw, 5rem);
  }

  .services__item {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 78px;
    padding: 16px 2px;
  }

  .services__item h3 {
    font-size: clamp(1.45rem, 5.3vw, 1.85rem);
  }

  .services__item p {
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .services__glow {
    top: 5%;
    width: 180%;
    height: 100%;
    filter: blur(60px);
  }

  .services__animation-container {
    width: min(100%, 440px);
  }

}

/* ========================================
   MOBILE — 640 PX
======================================== */

@media (max-width: 640px) {

  .hero-layout > *,
  .portfolio__content,
  .portfolio__showcase,
  .portfolio__viewport,
  .services__container,
  .services__container > *,
  .contact__container,
  .contact__container > *,
  .site-footer__container,
  .site-footer__top > * {
    min-width: 0;
  }

  .site-header {
    width: calc(100% - 40px);
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-block: 20px 8px;
  }

  .wordmark {
    flex-wrap: wrap;
    gap: 4px 0.45rem;
    max-width: 100%;
    min-height: 32px;
    white-space: normal;
  }

  .wordmark__name {
    font-size: 0.94rem;
  }

  .wordmark__role {
    font-size: 0.82rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 0.875rem;
    line-height: 1.3;
  }

  /* HERO */

  .hero {
    min-height: 0;
    height: auto;
    padding: 8px 20px 64px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
  }

  /* O SVG faz o enquadramento internamente, sem uma camada ampliada. */
  .hero-art {
    justify-self: center;
    width: min(100%, 360px);
    aspect-ratio: 9 / 10;
    isolation: auto;
    overflow: visible;
  }

  .hero-art__scene {
    width: 100%;
    max-width: none;
    height: 100%;
  }

  /* Mantém o brilho dentro do viewport SVG e preserva o canal alfa. */
  .hero-art__glow {
    filter: url(#hero-star-glow-mobile);
  }

  .hero-copy {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .hero-copy__greeting {
    margin-bottom: 16px;
    font-size: clamp(4.75rem, 22vw, 6.5rem);
  }

  .hero-copy__text {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.16;
    overflow-wrap: break-word;
    padding-bottom: 0.15em;
  }

  /* PORTFÓLIO */

  .portfolio {
    padding: 64px 20px 72px;
  }

  .portfolio__title {
    max-width: 100%;
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    line-height: 1.1;
    overflow-wrap: break-word;
  }

  .portfolio__title-mark {
    font-family: "Mandali", sans-serif;
    font-size: 1.22em;
    font-weight: 400;
  }

  .portfolio__title-mark--inverted {
    margin-right: 0;
    margin-left: 0.035em;
  }

  .portfolio__description {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .portfolio__pagination {
    margin-top: 32px;
  }

  .portfolio__showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }

  .portfolio__viewport {
    grid-column: 1 / -1;
    grid-row: 1;
    touch-action: pan-y pinch-zoom;
  }

  .portfolio__viewport:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
    border-radius: 22px;
  }

  .portfolio__track {
    --visible-cards: 1;
    --card-gap: 16px;
  }

  .project-card,
  .project-card__content {
    min-height: clamp(320px, 105vw, 400px);
  }

  .project-card__content {
    padding: 20px;
  }

  .project-card__bottom {
    padding-right: 38px;
  }

  .project-card__title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .project-card__category {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .portfolio__arrow {
    position: static;
    grid-row: 2;
    width: 48px;
    height: 48px;
    transform: none;
  }

  .portfolio__arrow--prev {
    grid-column: 1;
    justify-self: end;
  }

  .portfolio__arrow--next {
    grid-column: 2;
    justify-self: start;
  }

  .portfolio__action {
    margin-top: 24px;
  }

  .portfolio__button {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .portfolio__glow {
    width: 300px;
    height: 300px;
    filter: blur(75px);
  }

  .portfolio__glow--left {
    left: -220px;
  }

  .portfolio__glow--right {
    right: -220px;
  }

  /* SERVIÇOS */

  .services {
    padding: 64px 20px 32px;
  }

  .services__container {
    grid-template-columns: minmax(0, 1fr);
    /* Equilibra os 32px finais dos Serviços + 40px iniciais do contacto. */
    gap: 72px;
  }

  .services__heading {
    margin-bottom: 28px;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    line-height: 1.1;
  }

  .services__item {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 18px 0;
    gap: 8px;
  }

  .services__item h3 {
    font-size: clamp(1.25rem, 5.8vw, 1.55rem);
    line-height: 1.25;
  }

  .services__item p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .services__right {
    display: grid;
    place-items: center;
    width: 100%;
    padding-top: 0;
    transform: none;
  }

  .services__animation-container {
    width: min(100%, 360px);
    max-width: 100%;
    height: auto;
    margin-inline: auto;
  }

  .services__animation {
    width: 100%;
    height: auto;
    max-height: clamp(330px, 110vw, 462px);
    object-fit: contain;
    transform: scale(1.1);
    transform-origin: center;
  }

  @media (hover: none) {
    .services__item:hover {
      padding-left: 0;
    }
  }

  /* CONTACTO */












  /* 16 px evita o zoom automático ao focar campos no iOS. */








  /* FOOTER */

  .site-footer {
    padding: 56px 20px 24px;
    border-radius: 30px 30px 0 0;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 36px;
  }

  .site-footer__name {
    font-size: 2.25rem;
  }

  .site-footer__label {
    margin-bottom: 12px;
  }

  .site-footer__contact-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 44px;
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .site-footer__behance {
    min-height: 48px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .site-footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
  }

}

/* ========================================
   ACESSIBILIDADE
======================================== */

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
