/* =========================================================
   Francisco Alpendre — Personal Brand Landing Page
   Design tokens, HUD layout, GSAP-ready sections
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0e0e0e;
  --muted: #ece9e4;
  --accent: #2563eb;
  --radius-card: 10px;
  --dur-hover: 300ms;
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
  --hud-h: 40px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 80px);

  --font-display: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, dt {
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

address {
  font-style: normal;
}

/* ---------- A11y ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-120%);
  transition: transform var(--dur-hover) var(--ease-soft);
}

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

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

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

/* ---------- Noise ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

@media (prefers-reduced-motion: reduce) {
  .noise {
    opacity: 0.025;
  }
}

@media (max-width: 768px) {
  .noise {
    opacity: 0.02;
  }
}

@media (max-width: 480px) {
  .noise {
    display: none;
  }
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 96px;
}

.projetos {
  z-index: 1;
  background: var(--ink);
}

.expertise,
.valores,
.contato {
  z-index: 2;
  background: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 233, 228, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 233, 228, 0.7);
  transition: color var(--dur-hover) var(--ease-soft);
}

.nav-num {
  color: var(--accent);
}

.nav-link:hover,
.nav-link[aria-current="true"] {
  color: var(--muted);
}

.header-cta {
  padding: 10px 18px;
  border: 1px solid rgba(236, 233, 228, 0.25);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--dur-hover) var(--ease-soft),
              color var(--dur-hover) var(--ease-soft),
              background var(--dur-hover) var(--ease-soft);
}

.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--muted);
  transition: transform var(--dur-hover) var(--ease-soft),
              opacity var(--dur-hover) var(--ease-soft);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- HUD ---------- */
.hud-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hud-h);
  padding-inline: var(--gutter);
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(236, 233, 228, 0.08);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hud-left,
.hud-center,
.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-right {
  gap: 24px;
}

.hud-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hud-label {
  color: rgba(236, 233, 228, 0.45);
  font-weight: 500;
}

.hud-value {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#hud-section {
  color: var(--accent);
}

/* ---------- Section title (stroke + fill marquee) ---------- */
.section-title-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 64px;
  padding-block: 18px;
  border-top: 1px solid rgba(236, 233, 228, 0.08);
  border-bottom: 1px solid rgba(236, 233, 228, 0.08);
}

.section-title-track {
  display: flex;
  gap: clamp(40px, 6vw, 100px);
  width: max-content;
  white-space: nowrap;
  user-select: none;
}

.section-title-track span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.section-title-track span:nth-child(odd) {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.section-title-track span:nth-child(even) {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--hud-h) + 48px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tag {
  padding: 8px 14px;
  border: 1px solid rgba(236, 233, 228, 0.18);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 233, 228, 0.85);
}

.hero-name {
  margin-bottom: 32px;
}

.name-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--muted);
}

.name-line span {
  display: inline-block;
  will-change: font-variation-settings;
}

.hero-headline {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(236, 233, 228, 0.9);
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 40px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 300;
  color: rgba(236, 233, 228, 0.65);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 15px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform var(--dur-hover) var(--ease-soft),
              background var(--dur-hover) var(--ease-soft),
              color var(--dur-hover) var(--ease-soft),
              border-color var(--dur-hover) var(--ease-soft);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 90%, white);
}

.btn-ghost {
  border: 1px solid rgba(236, 233, 228, 0.25);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: calc(var(--hud-h) + 24px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.scroll-text {
  font-size: 10px;
  letter-spacing: 0.2em;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 80%, transparent 0%, var(--ink) 60%),
    linear-gradient(to right, var(--ink) 0%, transparent 45%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: auto;
  height: 88%;
  max-width: 60vw;
  object-fit: contain;
  object-position: right bottom;
  filter: grayscale(100%) contrast(1.15) brightness(0.7);
  opacity: 0.32;
  mix-blend-mode: luminosity;
}

@media (max-width: 768px) {
  .hero-bg {
    height: 60%;
    max-width: 80vw;
    opacity: 0.22;
  }

  .hero-visual::after {
    background:
      radial-gradient(circle at 60% 90%, transparent 0%, var(--ink) 55%),
      linear-gradient(to top, var(--ink) 0%, transparent 40%);
  }
}

/* ---------- Sobre ---------- */
.sobre-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.sobre-destaque {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 32px;
}

.sobre-bio {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(236, 233, 228, 0.7);
}

.specs-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(236, 233, 228, 0.1);
  border-radius: var(--radius-card);
  background: rgba(236, 233, 228, 0.02);
}

.specs-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
}

.spec-row dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 233, 228, 0.5);
}

.spec-row dd {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(236, 233, 228, 0.9);
}

.specs-highlight {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(236, 233, 228, 0.1);
}

.highlight-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.highlight-text {
  font-size: 13px;
  font-weight: 400;
  color: rgba(236, 233, 228, 0.7);
}

/* ---------- Projetos / Deck ---------- */
.projetos {
  padding-bottom: 0;
}

.deck-outer {
  position: relative;
  height: 500vh;
}

.deck-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h) - var(--hud-h));
  overflow: hidden;
}

.deck-track {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--container));
  height: 100%;
  margin-inline: auto;
}

.deck-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  will-change: transform;
}

.card-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(236, 233, 228, 0.12);
  border-radius: var(--radius-card);
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-soft);
}

.deck-card.is-active .card-inner::before,
.deck-card[data-card="0"]:not(.is-active) .card-inner::before { transform: scaleX(1); }

.deck-card .card-inner::before { transform: scaleX(0); }

.card-index {
  position: absolute;
  top: clamp(24px, 3vw, 40px);
  right: clamp(24px, 3vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  color: rgba(236, 233, 228, 0.04);
  line-height: 1;
  user-select: none;
}

.card-title {
  max-width: 80%;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-bottom: 18px;
}

.card-desc {
  max-width: 620px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(236, 233, 228, 0.7);
}

.card-metric {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.metric-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 233, 228, 0.55);
}

.deck-dots {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 50;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(236, 233, 228, 0.3);
  background: transparent;
  transition: background var(--dur-hover) var(--ease-soft),
              border-color var(--dur-hover) var(--ease-soft),
              transform var(--dur-hover) var(--ease-soft);
}

.dot.active,
.dot:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.projetos-static {
  display: none;
}

/* ---------- Expertise ---------- */
.expertise-intro {
  max-width: 760px;
  margin-bottom: 48px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  color: rgba(236, 233, 228, 0.75);
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(236, 233, 228, 0.08);
  border: 1px solid rgba(236, 233, 228, 0.08);
  margin-bottom: 48px;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--ink);
  transition: background var(--dur-hover) var(--ease-soft);
}

.expertise-item:hover {
  background: rgba(236, 233, 228, 0.03);
}

.expertise-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.expertise-text {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 400;
  color: rgba(236, 233, 228, 0.9);
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 10px 16px;
  border: 1px solid rgba(236, 233, 228, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(236, 233, 228, 0.75);
  transition: border-color var(--dur-hover) var(--ease-soft),
              color var(--dur-hover) var(--ease-soft);
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Valores ---------- */
.valores-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(236, 233, 228, 0.08);
  border: 1px solid rgba(236, 233, 228, 0.08);
}

.valor-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--ink);
  transition: background var(--dur-hover) var(--ease-soft);
}

.valor-item:hover {
  background: rgba(236, 233, 228, 0.03);
}

.valor-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.valor-text {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 500;
  color: rgba(236, 233, 228, 0.92);
}

/* ---------- Contato ---------- */
.contato-layout {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contato-intro {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  color: rgba(236, 233, 228, 0.75);
}

.contato-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(236, 233, 228, 0.08);
}

.contato-line {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 2.5vw, 28px) clamp(24px, 3vw, 32px);
  border-bottom: 1px solid rgba(236, 233, 228, 0.08);
  overflow: hidden;
  transition: color var(--dur-hover) var(--ease-soft);
}

.contato-line:last-child {
  border-bottom: none;
}

.contato-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-soft);
  z-index: 0;
}

.contato-line:hover .contato-fill {
  transform: scaleX(1);
}

.contato-line:hover {
  color: var(--ink);
}

.contato-label,
.contato-value {
  position: relative;
  z-index: 1;
}

.contato-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 233, 228, 0.5);
  transition: color var(--dur-hover) var(--ease-soft);
}

.contato-line:hover .contato-label {
  color: rgba(14, 14, 14, 0.7);
}

.contato-value {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: var(--muted);
  transition: color var(--dur-hover) var(--ease-soft);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contato-line:hover .contato-value {
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 calc(48px + var(--hud-h));
  border-top: 1px solid rgba(236, 233, 228, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy,
.footer-note {
  font-size: 12px;
  color: rgba(236, 233, 228, 0.5);
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border: 1px solid rgba(236, 233, 228, 0.2);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Reveal utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sobre-layout,
  .contato-layout {
    grid-template-columns: 1fr;
  }

  .expertise-list {
    grid-template-columns: 1fr;
  }

  .valores-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .reveal {
    transform: translateY(16px);
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: var(--hud-h);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: rgba(14, 14, 14, 0.96);
    backdrop-filter: blur(16px);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-hover) var(--ease-soft),
                opacity var(--dur-hover) var(--ease-soft),
                visibility 0s linear var(--dur-hover);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform var(--dur-hover) var(--ease-soft),
                opacity var(--dur-hover) var(--ease-soft),
                visibility 0s linear 0s;
  }

  .nav-link {
    font-size: 14px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hud-center {
    display: none;
  }

  .hud-right {
    gap: 16px;
  }

  .section {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 64px;
  }

  .hero {
    padding-bottom: calc(var(--hud-h) + 64px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .spec-row dt {
    margin-bottom: 4px;
  }

  .deck-outer {
    height: auto;
  }

  .deck-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .deck-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  .deck-card {
    position: relative;
    inset: auto;
    padding: 0;
    transform: none !important;
    opacity: 1 !important;
  }

  .deck-dots {
    display: none;
  }

  .card-inner {
    min-height: auto;
  }

  .card-index {
    position: static;
    margin-bottom: 16px;
    color: rgba(236, 233, 228, 0.08);
  }

  .card-title {
    max-width: 100%;
  }

  .valores-list {
    grid-template-columns: 1fr;
  }

  .contato-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 32px 0 calc(32px + var(--hud-h));
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .name-line {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .hero-headline {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-tags {
    gap: 8px;
    margin-bottom: 24px;
  }

  .tag {
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .section-title-track span {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .card-inner {
    padding: 24px;
  }

  .card-index {
    font-size: clamp(3rem, 14vw, 5rem);
    margin-bottom: 12px;
  }

  .card-title {
    font-size: clamp(1.25rem, 5.5vw, 1.6rem);
    line-height: 1.25;
  }

  .card-desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .card-metric {
    margin-top: 28px;
  }

  .metric-value {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .contato-line {
    padding: 18px 20px;
  }

  .contato-value {
    font-size: 15px;
  }

  .footer-inner {
    gap: 12px;
  }

  .footer-copy,
  .footer-note {
    font-size: 11px;
  }

  .hero-bg {
    height: 45%;
    max-width: 95vw;
    right: -8%;
    opacity: 0.14;
  }

  .hero-visual::after {
    background:
      radial-gradient(circle at 50% 95%, transparent 0%, var(--ink) 50%),
      linear-gradient(to top, var(--ink) 0%, transparent 35%),
      linear-gradient(to right, var(--ink) 0%, transparent 40%);
  }
}

@media (max-width: 380px) {
  .hero-tags {
    flex-direction: column;
  }

  .tag {
    width: fit-content;
  }
}
