@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../assets/fonts/cabinet-grotesk-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('../assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('../assets/fonts/inter-tight-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Identidade global: grafite quente, marfim e cobre mineral. */
  --color-graphite: #0b0b0a;
  --color-graphite-raised: #151310;
  --color-hero-ink: #070706;
  --color-copper: #d58a64;
  --color-copper-deep: #a95b3d;
  --color-copper-soft: #c38b72;
  --color-copper-focus: #e4a07d;
  --color-ivory: #f4f0ea;
  --color-ivory-muted: #c3bdb4;
  --color-button-ink: #160c08;

  --color-bg: var(--color-graphite);
  --color-fg: var(--color-ivory);
  --color-fg-muted: var(--color-ivory-muted);
  --color-accent: var(--color-copper);

  --font-base: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cabinet Grotesk', var(--font-base);

  --container-max: 1280px;
  --header-offset: 4rem;
}

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

html {
  color-scheme: dark;
  scroll-padding-top: var(--header-offset);
  scrollbar-color: var(--color-copper-deep) var(--color-graphite);
  scrollbar-width: thin;
}

::selection {
  color: var(--color-button-ink);
  background: var(--color-copper);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-graphite);
}

::-webkit-scrollbar-thumb {
  background: var(--color-copper-deep);
  border: 3px solid var(--color-graphite);
  border-radius: 999px;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/*
  Anel de foco compartilhado: sem isto, logo/nav/CTA secundário caem no
  padrão do navegador sobre um fundo quase preto — praticamente invisível.
  .btn--primary já tem o seu próprio (idêntico), então esta regra genérica
  não muda nada nele, só preenche o resto.
*/
a:focus-visible {
  outline: 2px solid var(--color-copper-focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  :root {
    --header-offset: 4.5rem;
  }

  .container {
    padding-inline: 3rem;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(0);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 1px));
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  color: var(--color-ivory);
}

.logo {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .navbar {
    padding: 1.5rem 3rem;
  }

  .nav-links {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(100svh, 42rem);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(7.5rem, 17svh, 9rem) 3rem;
  background: var(--color-hero-ink);
}

.hero__portrait {
  --hero-reveal-x: 72%;
  --hero-reveal-y: 46%;
  --hero-reveal-radius: 0.1px;

  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--color-hero-ink);
}

.hero__portrait picture,
.hero__portrait-image,
.hero__portrait-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__portrait > picture {
  z-index: 0;
}

.hero__portrait-image {
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero__portrait-canvas {
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__portrait.is-dither-ready .hero__portrait-canvas {
  opacity: 1;
}

.hero__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.18) 0%, rgba(7, 7, 6, 0.04) 48%, rgba(7, 7, 6, 0.72) 100%),
    linear-gradient(90deg, rgba(7, 7, 6, 0.98) 0%, rgba(7, 7, 6, 0.94) 42%, rgba(7, 7, 6, 0.84) 65%, rgba(7, 7, 6, 0.16) 78%, rgba(7, 7, 6, 0.18) 100%);
  -webkit-mask-image: radial-gradient(
    circle var(--hero-reveal-radius) at var(--hero-reveal-x) var(--hero-reveal-y),
    transparent 0%,
    transparent 35%,
    #000 100%
  );
  mask-image: radial-gradient(
    circle var(--hero-reveal-radius) at var(--hero-reveal-x) var(--hero-reveal-y),
    transparent 0%,
    transparent 35%,
    #000 100%
  );
}

@media (hover: none), (pointer: coarse) {
  .hero {
    -webkit-user-select: none;
    user-select: none;
  }
}

@media (max-width: 767px) {
  .hero__portrait {
    top: 2.75rem;
    right: -0.75rem;
    bottom: -2.75rem;
    left: 0.75rem;
  }

  .hero__portrait::after {
    background:
      linear-gradient(180deg, rgba(7, 7, 6, 0.12) 0%, rgba(7, 7, 6, 0.03) 58%, rgba(7, 7, 6, 0.72) 100%),
      linear-gradient(90deg, rgba(7, 7, 6, 0.98) 0%, rgba(7, 7, 6, 0.9) 46%, rgba(7, 7, 6, 0.48) 78%, rgba(7, 7, 6, 0.14) 100%);
  }
}

@media (max-width: 374px) {
  .hero__portrait {
    right: -2rem;
    left: 2rem;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  margin-inline: auto;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--color-fg);
  text-wrap: balance;
}

.hero__line {
  display: block;
}

.hero__line:nth-child(2) > span {
  display: block;
}

.hero__headline-accent {
  color: var(--color-accent);
}

.hero__subtext {
  max-width: 25ch;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--color-fg-muted);
}

.hero__ctas {
  display: flex;
  align-items: flex-start;
  margin-top: 1.75rem;
}

/* Escala de raio: pill reservado para a ação primária; secundária não usa caixa, então não entra na escala */
.btn--primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border: 1px solid color-mix(in srgb, var(--color-copper) 78%, var(--color-ivory));
  border-radius: 8px;
  background: var(--color-copper);
  color: var(--color-button-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32), inset 0 3px 3px rgba(255, 240, 230, 0.18);
  text-align: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn--primary:hover {
  background: var(--color-copper-focus);
}

.btn--primary:active {
  transform: scale(0.97);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--color-copper-focus);
  outline-offset: 3px;
}

/*
  Port vanilla do Starfield Button do Originkit. A faixa, os feixes e a face
  são camadas independentes para que a luz percorra apenas o contorno.
*/
.btn--starfield {
  --starfield-radius: 9px;
  --starfield-band: 3px;

  isolation: isolate;
  padding: var(--starfield-band);
  overflow: visible;
  border: 0;
  border-radius: var(--starfield-radius);
  background: transparent;
  color: var(--color-ivory);
  box-shadow: none;
  transform-origin: center;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--starfield:hover,
.btn--starfield:active {
  background: transparent;
}

.btn--starfield.is-pressed {
  transform: scale(0.97);
}

.starfield-button__track,
.starfield-button__light-ring {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-clip: border-box, content-box;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-clip: border-box, content-box;
  mask-composite: exclude;
}

.starfield-button__track {
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: rgba(228, 160, 125, 0.34);
}

.starfield-button__light-ring {
  inset: -1px;
  z-index: 0;
  padding: 3px;
  overflow: hidden;
  border-radius: calc(var(--starfield-radius) + 1px);
}

.starfield-button__light {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  margin-top: -48px;
  margin-left: -48px;
  background: radial-gradient(circle, #e4a07d 0%, #d58a64 30%, rgba(213, 138, 100, 0) 72%);
  transform: translate3d(0, 0, 0);
}

.starfield-button__face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6875rem 1.25rem;
  overflow: hidden;
  border-radius: calc(var(--starfield-radius) - var(--starfield-band));
  background: var(--color-graphite);
  white-space: nowrap;
}

.starfield-button__canvas,
.starfield-button__inner-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.starfield-button__canvas {
  z-index: 0;
}

.starfield-button__inner-glow {
  z-index: 1;
  border: 3px solid var(--color-copper);
  border-radius: inherit;
  filter: blur(8px);
  opacity: 0;
}

.btn--starfield .btn--primary__label {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero {
    min-height: max(100svh, 44rem);
    align-items: center;
    padding-block: 6.5rem 4rem;
  }

  .hero__headline {
    max-width: 12.5ch;
    font-size: clamp(3.75rem, 6.25vw, 5rem);
  }

  .hero__line:nth-child(2) > span {
    display: inline;
  }

  .hero__subtext {
    max-width: 35ch;
  }
}

@media (min-width: 1024px) {
  .hero__headline {
    max-width: none;
    font-size: clamp(3.75rem, 4.5vw, 4.25rem);
  }

  .hero__line {
    white-space: nowrap;
  }
}

@media (min-width: 1440px) {
  .hero__headline {
    font-size: 4.25rem;
  }

  .hero__subtext {
    max-width: 36ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__portrait-canvas {
    display: none;
  }

  .btn--starfield {
    transition: none;
  }
}

/* ---------- Projetos: coverflow com tema por conceito ---------- */

.projects {
  --project-bg: #191a18;
  --project-surface: #292925;
  --project-text: #f4f0e9;
  --project-muted: #c5beb3;
  --project-accent: #d46a3a;
  --project-accent-contrast: #17120f;

  position: relative;
  overflow: hidden;
  padding-block: 5rem;
  color: var(--project-text);
  background-color: var(--project-bg);
  border-top: 1px solid color-mix(in srgb, var(--project-text) 12%, transparent);
  transition: background-color 0.65s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s ease;
}

.projects__inner {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
}

.projects__intro,
.projects__footer {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

.projects__intro h2 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.projects__intro p {
  max-width: 47ch;
  margin-top: 1.5rem;
  color: var(--project-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  transition: color 0.45s ease;
}

.projects__stage {
  --project-card-width: min(64vw, 35rem);
  --project-side-offset: min(32vw, 20rem);

  position: relative;
  height: clamp(20rem, 32vw, 23rem);
  margin-top: 2.5rem;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}

.projects__stage:active {
  cursor: grabbing;
}

.projects__stage:focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: -4px;
}

.project-card {
  --project-x: 0px;
  --project-scale-x: 1;
  --project-scale-y: 1;
  --project-media-scale-x: 1;

  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--project-card-width);
  aspect-ratio: 1.6 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--project-text) 20%, transparent);
  border-radius: 12px;
  background: var(--project-surface);
  box-shadow: 0 1.5rem 4rem color-mix(in srgb, var(--project-bg) 72%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) translateX(var(--project-x)) scaleX(var(--project-scale-x)) scaleY(var(--project-scale-y));
  transition:
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.38s ease,
    filter 0.58s ease,
    border-color 0.45s ease,
    background-color 0.45s ease;
  will-change: transform, opacity;
  cursor: pointer;
}

.project-card__media {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: scaleX(var(--project-media-scale-x));
  transition: transform 0.58s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.project-card[data-position="active"] {
  z-index: 4;
  opacity: 1;
  filter: brightness(1);
}

.project-card[data-position="previous"],
.project-card[data-position="next"] {
  --project-scale-x: 0.17;
  --project-scale-y: 0.76;
  --project-media-scale-x: 5.8824;

  z-index: 3;
  opacity: 0.78;
  filter: brightness(0.62) saturate(0.8);
}

.project-card[data-position="previous"] {
  --project-x: calc(-1 * var(--project-side-offset));
}

.project-card[data-position="next"] {
  --project-x: var(--project-side-offset);
}

.project-card[data-position="hidden"] {
  --project-scale-x: 0.12;
  --project-scale-y: 0.64;
  --project-media-scale-x: 8.3333;

  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.project-card:hover[data-position="previous"],
.project-card:hover[data-position="next"] {
  opacity: 1;
  filter: brightness(0.82) saturate(0.95);
}

.project-card:focus-visible {
  outline: 3px solid var(--project-accent);
  outline-offset: 4px;
}

.projects__footer {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
}

.projects__caption {
  max-width: 38rem;
}

.projects__segment {
  color: var(--project-accent);
  font-weight: 600;
  transition: color 0.45s ease;
}

.projects__caption h3 {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}

.projects__description {
  max-width: 46ch;
  min-height: 3rem;
  margin-top: 0.9rem;
  color: var(--project-muted);
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.45s ease;
}

.projects__disclaimer {
  display: inline-block;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  color: var(--project-muted);
  border-top: 1px solid color-mix(in srgb, var(--project-text) 24%, transparent);
  font-size: 0.8125rem;
  transition: color 0.45s ease, border-color 0.45s ease;
}

.projects__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.projects__control {
  min-width: 7.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--project-text) 38%, transparent);
  border-radius: 8px;
  background: transparent;
  color: var(--project-text);
  font: 600 0.9375rem/1 var(--font-base);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.45s ease, transform 0.15s ease;
  cursor: pointer;
}

.projects__control--next {
  border-color: var(--project-accent);
  background: var(--project-accent);
  color: var(--project-accent-contrast);
}

.projects__control:hover {
  background: color-mix(in srgb, var(--project-text) 10%, transparent);
}

.projects__control--next:hover {
  background: color-mix(in srgb, var(--project-accent) 86%, var(--project-text));
}

.projects__control:active {
  transform: scale(0.97);
}

.projects__control:focus-visible {
  outline: 2px solid var(--project-text);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .projects__stage {
    --project-card-width: 86vw;
    --project-side-offset: 46vw;

    height: clamp(17rem, 68vw, 22rem);
  }

  .project-card[data-position="previous"],
  .project-card[data-position="next"] {
    --project-scale-x: 0.18;
    --project-scale-y: 0.78;
    --project-media-scale-x: 5.5556;
  }
}

@media (max-width: 374px) {
  .projects__description {
    min-height: 4.5rem;
  }
}

@media (min-width: 768px) {
  .projects__intro,
  .projects__footer {
    width: min(100% - 6rem, var(--container-max));
  }

  .projects__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .projects__controls {
    justify-content: flex-end;
    /* Mantém todos os projetos na mesma coordenada aprovada da Linha Norte. */
    margin-top: 8.0625rem;
  }
}

/* ---------- Manifesto ---------- */

.manifesto {
  background: var(--color-graphite-raised);
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.manifesto__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .manifesto {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.manifesto__statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.manifesto__statement em {
  color: var(--color-accent);
  font-style: italic;
}

.manifesto__line {
  display: block;
  text-wrap: balance;
}

.manifesto__line--template {
  white-space: nowrap;
}

.manifesto__flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
}

.manifesto__step {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: start;
  column-gap: 1.25rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(244, 240, 234, 0.12);
}

.manifesto__step:last-child {
  border-bottom: 1px solid rgba(244, 240, 234, 0.12);
}

.manifesto__step-index {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-copper-soft);
  min-width: 2ch;
}

.manifesto__step-content {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.manifesto__step-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-fg);
  overflow-wrap: break-word;
  hyphens: auto;
}

.manifesto__step-description {
  max-width: 42ch;
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .manifesto {
    padding-block: 7rem;
  }

  .manifesto__statement {
    max-width: 24ch;
  }

  .manifesto__flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 3.5rem;
    margin-top: 4rem;
  }

  .manifesto__step {
    grid-column: span 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-block: 0;
    padding-right: 1rem;
    padding-left: 1.5rem;
    border-top: none;
    border-left: 1px solid rgba(244, 240, 234, 0.12);
  }

  .manifesto__step:last-child {
    border-bottom: none;
  }

  .manifesto__step:nth-last-child(-n + 2) {
    grid-column: span 3;
  }

  .manifesto__step-index {
    font-size: 2.25rem;
  }

  .manifesto__step-description {
    max-width: 36ch;
  }
}

@media (min-width: 1200px) {
  .manifesto__flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 0;
  }

  .manifesto__step,
  .manifesto__step:nth-last-child(-n + 2) {
    grid-column: auto;
  }
}

@media (min-width: 1440px) {
  .manifesto__statement {
    font-size: clamp(2.75rem, 3.5vw, 3.5rem);
  }
}

/* ---------- Sobre ---------- */

.about {
  padding: 5rem 1.25rem;
  background: var(--color-graphite);
}

.about__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.about__eyebrow {
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.about__statement {
  max-width: 29ch;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about__closing {
  max-width: 39ch;
  margin-top: 3rem;
  color: var(--color-fg-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .about {
    padding: 8rem 3rem;
  }

  .about__statement {
    margin-top: 2rem;
    font-size: clamp(2.5rem, 4.25vw, 3.75rem);
  }

  .about__closing {
    margin-top: 4.5rem;
    margin-left: auto;
    font-size: 1.25rem;
  }
}

/* ---------- CTA final ---------- */

.cta-final {
  padding-block: 5rem;
  padding-inline: 1.25rem;
  text-align: center;
}

.cta-final__inner {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-final__statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

@media (min-width: 768px) {
  .cta-final {
    padding-block: 7rem;
    padding-inline: 3rem;
  }
}

.site-footer {
  display: grid;
  gap: 0.35rem;
  padding: 2rem;
  text-align: center;
  color: var(--color-fg-muted);
  font-size: 0.875rem;
}

.site-footer__legal {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ---------- Consentimento de cookies ---------- */

.cookie-banner {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  width: min(30rem, calc(100vw - 2rem));
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-copper) 52%, var(--color-graphite-raised));
  border-radius: 12px;
  background: var(--color-graphite-raised);
  color: var(--color-ivory);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner--positioning {
  visibility: hidden;
}

.cookie-banner--top {
  top: calc(var(--header-offset) + 0.75rem);
  bottom: auto;
}

.cookie-banner__copy {
  display: grid;
  gap: 0.35rem;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.2;
}

.cookie-banner__description {
  max-width: 46ch;
  color: var(--color-fg-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.cookie-banner__button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cookie-banner__button--secondary {
  border: 1px solid var(--color-copper-soft);
  background: transparent;
  color: var(--color-ivory);
}

.cookie-banner__button--secondary:hover {
  background: color-mix(in srgb, var(--color-copper) 12%, transparent);
}

.cookie-banner__button--primary {
  border: 1px solid var(--color-copper);
  background: var(--color-copper);
  color: var(--color-button-ink);
}

.cookie-banner__button--primary:hover {
  background: var(--color-copper-focus);
  border-color: var(--color-copper-focus);
}

.cookie-banner__button:active {
  transform: scale(0.98);
}

.cookie-banner__button:focus-visible {
  outline: 2px solid var(--color-copper-focus);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .cookie-banner {
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    padding: 1.25rem;
  }

  .cookie-banner--top {
    bottom: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner:not([hidden]):not(.cookie-banner--positioning) {
    animation: cookie-banner-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes cookie-banner-in {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
