@charset "UTF-8";

/* =========================================================
   Ary.dev — portfólio
   CSS próprio, sem framework. Tokens em :root, tema por
   [data-theme] no <body> com fallback para prefers-color-scheme.
   ========================================================= */

:root {
  /* dark é o padrão da marca */
  --bg: #0F0E0C;
  --bg-2: #14120F;
  --surface: #1A1815;
  --surface-2: #232019;
  --text: #E8E4DC;
  --text-2: #B5AEA2;
  --muted: #8D8578;
  --rule: #2E2A23;
  --rule-strong: #454036;
  --gold: #D4AF37;
  --gold-dim: #9C8129;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-line: rgba(212, 175, 55, 0.32);
  --on-gold: #17150F;
  --glow: rgba(212, 175, 55, 0.16);

  --f-display: "M PLUS Rounded 1c", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --wrap: 68rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body[data-theme="light"] {
  --bg: #FAF8F4;
  --bg-2: #F4F1EA;
  --surface: #FFFFFF;
  --surface-2: #F2EEE6;
  --text: #17150F;
  --text-2: #3D382E;
  --muted: #6B6459;
  --rule: #E2DCD0;
  --rule-strong: #C4BBA9;
  --gold: #8A6D14;
  --gold-dim: #B08F25;
  --gold-soft: rgba(138, 109, 20, 0.10);
  --gold-line: rgba(138, 109, 20, 0.30);
  --on-gold: #FFFFFF;
  --glow: rgba(138, 109, 20, 0.10);
  --shadow: 0 1px 2px rgba(23, 21, 15, .06), 0 8px 28px rgba(23, 21, 15, .08);
}

/* Primeira visita sem escolha salva: segue o sistema. */
@media (prefers-color-scheme: light) {
  body:not([data-theme]) {
    --bg: #FAF8F4;
    --bg-2: #F4F1EA;
    --surface: #FFFFFF;
    --surface-2: #F2EEE6;
    --text: #17150F;
    --text-2: #3D382E;
    --muted: #6B6459;
    --rule: #E2DCD0;
    --rule-strong: #C4BBA9;
    --gold: #8A6D14;
    --gold-dim: #B08F25;
    --gold-soft: rgba(138, 109, 20, 0.10);
    --gold-line: rgba(138, 109, 20, 0.30);
    --on-gold: #FFFFFF;
    --glow: rgba(138, 109, 20, 0.10);
    --shadow: 0 1px 2px rgba(23, 21, 15, .06), 0 8px 28px rgba(23, 21, 15, .08);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: .18em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--on-gold);
  padding: .7rem 1.1rem; z-index: 200; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------- progresso de rolagem ---------------- */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  z-index: 90;
}

/* ---------------- tipografia ---------------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; text-wrap: balance; margin: 0; }

.sec-label {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .6rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

h2.sec-title {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .7rem;
}
.sec-intro {
  color: var(--text-2);
  max-width: 58ch;
  margin: 0 0 2.4rem;
  font-size: 1.02rem;
}

section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 7rem 0; } }

/* ---------------- nav ---------------- */
.brand {
  position: fixed; top: 1.4rem; left: 1.4rem; z-index: 60;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  color: var(--gold); text-decoration: none; letter-spacing: -.01em;
  opacity: .85;
}
.brand:hover { opacity: 1; }

.nav-shell { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 60; }
.nav {
  display: flex; align-items: center; gap: .25rem;
  padding: .45rem .6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.nav a {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s, background-color .25s;
}
.nav a:hover, .nav a.active { color: var(--gold); background: var(--gold-soft); }
.nav a svg { width: 18px; height: 18px; }
.nav .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------------- hero ---------------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 130vw); aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }

.hero-photo { position: relative; justify-self: center; width: min(320px, 70vw); }
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(.15);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: -14px -14px 30px;
  border: 1px solid var(--gold);
  border-radius: calc(var(--radius) + 6px);
  opacity: .35;
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: 0 0 1.1rem;
}
.hero h1 .gold { color: var(--gold); }
.hero-pitch {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--text-2);
  max-width: 46ch;
  margin: 0 0 1.9rem;
  text-wrap: pretty;
}
.hero-pitch strong { color: var(--text); font-weight: 600; }

.facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  list-style: none; margin: 0 0 2.1rem; padding: 0;
  font-family: var(--f-mono); font-size: .76rem;
  color: var(--muted);
}
.facts li { display: flex; align-items: center; gap: .5rem; }
.facts li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex: none;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.4rem;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--text);
  transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-dim); border-color: var(--gold-dim); color: var(--on-gold); }

/* ---------------- marquee de tecnologias ---------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { border-top: 0; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  animation: slide 46s linear infinite;
  will-change: transform;
}
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-item {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: .01em;
}
.marquee-item.hot { color: var(--gold); }
.marquee-item::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .55; flex: none;
}

/* ---------------- números ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 3.4rem;
}
@media (min-width: 780px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--surface); padding: 1.5rem 1.4rem; }
.stat-n {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-n .suf { font-size: .5em; margin-left: .12em; }
.stat-l { font-size: .82rem; color: var(--text-2); margin: .5rem 0 0; line-height: 1.45; }

/* ---------------- diagrama de arquitetura ---------------- */
.diagram-wrap {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2rem 1.5rem;
  overflow-x: auto;
}
@media (min-width: 768px) { .diagram-wrap { padding: 2.6rem 2.4rem; } }
.diagram { width: 100%; min-width: 620px; height: auto; display: block; }

.dg-box { fill: var(--surface-2); stroke: var(--rule-strong); stroke-width: 1.5; }
.dg-box-hi { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.75; }
.dg-ink { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dg-ink-hi { fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dg-fill { fill: var(--muted); }
.dg-fill-hi { fill: var(--gold); }
.dg-t {
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  fill: var(--text); text-anchor: middle;
}
.dg-s {
  font-family: var(--f-mono); font-size: 10px;
  fill: var(--muted); text-anchor: middle; letter-spacing: .06em;
}
.dg-s-hi { fill: var(--gold); }

/* linhas que se desenham ao entrar na tela */
.dg-link {
  fill: none;
  stroke: var(--gold-line);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 300);
  stroke-dashoffset: var(--len, 300);
  transition: stroke-dashoffset 1.1s var(--ease);
}
.reveal.in .dg-link { stroke-dashoffset: 0; }
.dg-link.d1 { transition-delay: .1s; }
.dg-link.d2 { transition-delay: .22s; }
.dg-link.d3 { transition-delay: .34s; }
.dg-link.d4 { transition-delay: .46s; }
.dg-link.d5 { transition-delay: .58s; }

.dg-node { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in .dg-node { opacity: 1; transform: none; }
.dg-node.n1 { transition-delay: .05s; }
.dg-node.n2 { transition-delay: .14s; }
.dg-node.n3 { transition-delay: .23s; }
.dg-node.n4 { transition-delay: .38s; }
.dg-node.n5 { transition-delay: .52s; }
.dg-node.n6 { transition-delay: .64s; }

.dg-legend {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  margin: 1.6rem 0 0; padding: 1.2rem 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: .74rem; color: var(--muted);
}
.dg-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.dg-legend i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; }
.dg-legend .on { color: var(--gold); }

/* ---------------- cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}

/* sobre */
.about { max-width: 62ch; }
.about p { color: var(--text-2); margin: 0 0 1.15rem; }
.about p strong { color: var(--text); font-weight: 600; }

/* assinatura: PNG com alfa usado como máscara, então a cor vem do token
   e funciona nos dois temas sem filtro nem inversão. */
.sign {
  margin: 1.8rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}
.sign-mark {
  width: clamp(150px, 26vw, 210px);
  aspect-ratio: 1885 / 1060;
  background-color: var(--gold);
  -webkit-mask-image: url("assets/assinatura.png");
  mask-image: url("assets/assinatura.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
}
.sign-cap {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- o que eu trago ---------------- */
.value {
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 700px) { .value { grid-template-columns: 1fr 1fr; } }
.value > div { background: var(--surface); padding: 1.7rem 1.6rem; transition: background-color .3s; }
.value > div:hover { background: var(--surface-2); }
.value .ico {
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: .9rem;
}
.value .ico svg { width: 18px; height: 18px; }
.value h3 { font-size: 1.05rem; margin: 0 0 .45rem; letter-spacing: -.005em; }
.value p { margin: 0; font-size: .93rem; color: var(--text-2); line-height: 1.6; }

/* ---------------- stack ---------------- */
.stack { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.stack-row {
  background: var(--surface);
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.4rem;
  padding: 1.25rem 1.6rem;
  align-items: baseline;
  transition: background-color .3s;
}
.stack-row:hover { background: var(--surface-2); }
@media (max-width: 640px) { .stack-row { grid-template-columns: 1fr; gap: .5rem; } }
.stack-row h3 {
  font-family: var(--f-body); font-size: .95rem; font-weight: 600;
  display: flex; align-items: center; gap: .6rem;
}
.stack-row h3 svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--f-mono); font-size: .76rem;
  padding: .22rem .6rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--text-2);
}
.chips li.key { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

/* ---------------- trabalho ---------------- */
.featured {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 2.4rem;
  background: var(--surface);
}
@media (min-width: 900px) { .featured { grid-template-columns: 1fr 1fr; } }
.featured-media { background: var(--surface-2); display: grid; place-items: center; padding: 2rem; min-height: 240px; }
.featured-media img { border-radius: 8px; box-shadow: var(--shadow); }
.featured-body { padding: 2rem 2rem 2.2rem; }
.tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-gold); background: var(--gold);
  padding: .22rem .6rem; border-radius: 4px;
  margin-bottom: .9rem;
}
.featured h3 { font-size: 1.5rem; margin: 0 0 .2rem; letter-spacing: -.015em; }
.featured .role { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); margin: 0 0 1.1rem; }
.featured ul { margin: 0 0 1.3rem; padding-left: 1.1rem; }
.featured li { color: var(--text-2); font-size: .93rem; margin-bottom: .5rem; }
.featured li strong { color: var(--text); font-weight: 600; }

/* ---------------- carrossel ---------------- */
.carousel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 0 0 1.1rem;
}
.carousel-head h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 600; color: var(--text-2); margin: 0; }
.carousel-nav { display: flex; gap: .5rem; }
.carousel-nav button {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color .25s, border-color .25s, opacity .25s;
}
.carousel-nav button:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.carousel-nav button:disabled { opacity: .3; cursor: default; }
.carousel-nav svg { width: 17px; height: 17px; }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(19rem, 82vw), 1fr);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .25rem .25rem 1.4rem;
  margin: 0 -.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
@media (min-width: 760px) { .carousel { grid-auto-columns: minmax(21rem, 1fr); } }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-track { background: var(--rule); border-radius: 99px; }
.carousel::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 99px; }
.carousel::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

.proj { scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; }
.proj:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.proj-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.05); }
.proj-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proj h3 { font-size: 1.15rem; margin: 0 0 .1rem; }
.proj .kind { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: .08em; }
.proj p { font-size: .91rem; color: var(--text-2); margin: 0 0 1.1rem; }
.proj .chips { margin-top: auto; margin-bottom: 1rem; }
.proj .btn { align-self: flex-start; padding: .5rem 1rem; font-size: .85rem; }

.dots { display: flex; justify-content: center; gap: .45rem; margin: .2rem 0 0; }
.dots button {
  width: 7px; height: 7px; padding: 0;
  border-radius: 999px; border: 0;
  background: var(--rule-strong);
  cursor: pointer;
  transition: background-color .3s, width .3s;
}
.dots button[aria-current="true"] { background: var(--gold); width: 20px; }

/* ---------------- formação ---------------- */
.edu { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .edu { grid-template-columns: 1.1fr 1fr; } }
.edu-card { padding: 1.8rem; }
.edu-card > h3 { font-size: 1.15rem; margin: 0 0 1.2rem; display: flex; align-items: center; gap: .7rem; }
.edu-card > h3 svg { width: 20px; height: 20px; color: var(--gold); }
.degree b { display: block; font-size: 1rem; font-weight: 600; }
.degree .inst { color: var(--text-2); font-size: .92rem; margin: .1rem 0 .7rem; }
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--f-mono); font-size: .72rem;
  padding: .25rem .65rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); color: var(--muted);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { padding: .6rem 0; border-top: 1px solid var(--rule); }
.certs li:first-child { border-top: 0; padding-top: 0; }
.certs b { display: block; font-weight: 600; font-size: .95rem; }
.certs span { font-size: .84rem; color: var(--muted); }

/* ---------------- contato ---------------- */
.contact { text-align: center; }
.contact h2 { margin-bottom: .7rem; }
.contact > .wrap > p { color: var(--text-2); max-width: 46ch; margin: 0 auto 2.2rem; }
.contact .sec-label { justify-content: center; }
.contact .sec-label::after { display: none; }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin: 0 0 2.4rem; }
.social a {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem;
  border: 1px solid var(--rule); border-radius: 999px;
  color: var(--text-2); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: color .25s, border-color .25s, background-color .25s, transform .2s;
}
.social a:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-family: var(--f-mono); font-size: .73rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ---------------- botões flutuantes ---------------- */
.fab {
  position: fixed; z-index: 60;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-2);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: color .25s, border-color .25s, opacity .3s, transform .3s;
}
.fab:hover { color: var(--gold); border-color: var(--gold); }
.fab svg { width: 18px; height: 18px; }
#theme-toggle { bottom: 1.25rem; left: 1.25rem; }
#to-top { bottom: 1.25rem; right: 1.25rem; opacity: 0; transform: translateY(10px); pointer-events: none; }
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
  .dg-link { stroke-dashoffset: 0 !important; }
  .dg-node { opacity: 1 !important; transform: none !important; }
  .carousel { scroll-behavior: auto; }
}
