/* ============================================================
   Thiago Caminha — Commercial & Decision Analytics
   Refined editorial minimalism · warm paper / ink / vermilion
   ============================================================ */

:root {
  /* light (default) — identidade Prisma CIMATEC: cinza-azulado frio + marinho profundo */
  --paper:      #e9edf5;
  --paper-2:    #e1e7f1;
  --card:       #ffffff;
  --ink:        #0c1c3f;
  --ink-soft:   #34456b;
  --muted:      #6c7790;
  --hair:       #d3dbea;
  --hair-soft:  #e4e9f3;
  --accent:     #2350d4;
  --accent-ink: #1a3fae;
  --shadow:     18px 22px 52px -30px rgba(12, 28, 63, .30);
  --prism:      linear-gradient(to right, #2350d4, #5b3fd1, #0e8aa8, #5b3fd1, #2350d4);

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --paper:      #14120d;
  --paper-2:    #1a1812;
  --card:       #1d1b14;
  --ink:        #f1ebdd;
  --ink-soft:   #c9c1b0;
  --muted:      #8f8676;
  --hair:       #34301f;
  --hair-soft:  #28251a;
  --accent:     #6e8dff;
  --accent-ink: #a78bff;
  --shadow:     20px 24px 70px -30px rgba(0, 0, 0, .7);
  /* prisma idêntico ao claro (azul→violeta→teal), em tons claros legíveis sobre fundo escuro */
  --prism:      linear-gradient(to right, #6e8dff, #a78bff, #4fd1e0, #a78bff, #6e8dff);
}

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

/* títulos de display: sem ligaduras (evita o "f" emendado / letras tortas) */
.nav__mono, .hero__title, .stat__num, .section__title, .snap-card__title,
.fcase__title, .archive__title, .acard__title, .tl__role, .stack-list__main,
.contact__title {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
}

html {
  scroll-behavior: smooth;
  /* o snap é feito em JS (limiar de 50% da tela); aqui só garantimos que saltos
     por âncora caiam abaixo da navbar (~72px) com um respiro */
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .55vw + .85rem, 1.12rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .05; }

::selection { background: var(--accent); color: var(--paper); }

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

/* foco visível consistente para teclado (sem afetar clique do mouse) */
.nav__links a:focus-visible,
.hero__cue:focus-visible,
.contact__link:focus-visible,
.toggle:focus-visible,
.filter:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* transição suave de tema: só durante o toggle, para tudo deslizar junto */
.theme-anim, .theme-anim *,
.theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s var(--ease), border-color .5s var(--ease),
              color .4s var(--ease), fill .4s var(--ease), stroke .4s var(--ease),
              box-shadow .5s var(--ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  .theme-anim, .theme-anim * { transition: none !important; }
}

.mono-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--hair); }

.nav__mono {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.nav__mark { position: relative; }
.nav__mark::after {
  content: ""; position: absolute; right: -7px; top: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.nav__links {
  display: flex; gap: 1.9rem;
  font-size: .92rem;
}
.nav__links a {
  position: relative; color: var(--ink-soft); font-weight: 500;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__toggles { display: flex; gap: .5rem; align-items: center; }
.toggle {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--hair); border-radius: 100px;
  cursor: pointer; transition: all .25s var(--ease);
  display: inline-flex; align-items: center; justify-content: center;
}
.toggle--lang { padding: .4rem .7rem; gap: .12rem; }
.toggle--lang .lang-sep { opacity: .4; margin: 0 1px; }
.toggle--lang .lang-pt, .toggle--lang .lang-en { transition: color .25s, opacity .25s; opacity: .4; }
html[lang^="pt"] .lang-pt { color: var(--accent); opacity: 1; }
html[lang^="en"] .lang-en { color: var(--accent); opacity: 1; }
.toggle--theme { padding: .4rem; width: 34px; height: 30px; }
.toggle:hover { border-color: var(--ink-soft); color: var(--ink); }

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.25rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem);
}
/* constelação discreta em movimento (parallax), mantida sutil */
.hero__bg {
  position: absolute; inset: -8% 0 auto 0; width: 100%; height: 116%;
  z-index: 0; pointer-events: none; opacity: .6;
  will-change: transform; overflow: hidden;
}
.hero__bg canvas { display: block; }
[data-theme="dark"] .hero__bg { opacity: .55; }
.hero__inner, .hero__meta { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero__bg { display: none; } }
.hero__inner { max-width: min(100%, 40rem); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.8rem; font-weight: 500;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 16em;
}
.hero__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  background-image: var(--prism);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: prismFlow 9s linear infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title em { -webkit-text-fill-color: currentColor; color: var(--accent); }
}
.hero__lede {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: none; /* mesma largura horizontal do título */
  line-height: 1.55;
}
.hero__domains {
  margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .82rem; color: var(--ink);
  font-weight: 500;
}
.domain-dot { color: var(--accent); }
.hero__cue {
  margin-top: 2.8rem;
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .95rem;
  color: var(--ink);
}
.hero__cue svg { transition: transform .4s var(--ease); }
.hero__cue:hover svg { transform: translateY(4px); }
.hero__cue:hover { color: var(--accent); }

.hero__meta { max-width: 540px; }
.stats { display: grid; gap: 1.1rem; }
.stat {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem;
  align-items: baseline;
}
.stat__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2rem; line-height: 1; letter-spacing: -.025em; color: var(--ink);
}
.stat__lbl { font-size: .92rem; color: var(--ink-soft); line-height: 1.35; }
.hero__status {
  margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--hair);
  display: grid; gap: .35rem;
}
.hero__status p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.hero__status p:first-child { color: var(--ink); font-weight: 600; }
.hero__status p:first-child::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #2c7a4b; margin-right: .55rem; vertical-align: middle;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.55fr .95fr; align-items: start; }
  /* alinha o topo do painel (10+) com o início do título, não com o eyebrow */
  .hero__meta { align-self: start; margin-top: 3rem; }
}

/* ============ LEAD CTA + MODAL ============ */
.lead-cta {
  margin-top: 1.5rem; width: 100%;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  color: var(--paper); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 100px;
  padding: .85rem 1.4rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease);
}
.lead-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--accent-ink); }
.lead-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lead-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  opacity: 0; transition: opacity .28s var(--ease);
}
.lead-modal[hidden] { display: none; }
.lead-modal.is-open { opacity: 1; }
.lead-modal__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lead-modal__panel {
  position: relative; z-index: 1;
  width: min(100%, 460px); max-height: 92vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--hair);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  transform: translateY(12px) scale(.98);
  transition: transform .3s var(--ease);
}
.lead-modal.is-open .lead-modal__panel { transform: none; }
.lead-modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted);
  border: 1px solid var(--hair); border-radius: 50%; cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.lead-modal__close:hover { color: var(--ink); border-color: var(--ink-soft); }
.lead-modal__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.1;
  letter-spacing: -.015em; margin: .6rem 0 .5rem;
}
.lead-modal__sub { color: var(--ink-soft); font-size: .94rem; margin-bottom: 1.6rem; }

.lead-form { display: grid; gap: 1rem; }
.lead-field { display: grid; gap: .35rem; }
.lead-field label {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.lead-field input,
.lead-field select,
.lead-field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hair); border-radius: 8px;
  padding: .65rem .8rem; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.lead-field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.lead-submit {
  margin-top: .3rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  color: var(--paper); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 100px;
  padding: .8rem 1.4rem; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.lead-submit:hover { transform: translateY(-2px); background: var(--accent-ink); }
.lead-form__note {
  font-size: .78rem; color: var(--muted); line-height: 1.45; margin-top: .2rem;
}
@media (prefers-reduced-motion: reduce) {
  .lead-modal, .lead-modal__panel, .lead-cta, .lead-submit { transition: none; }
}

/* ============ SECTION SCAFFOLD ============ */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  border-top: 1px solid var(--hair);
}
.section__head { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); position: relative; }
.section__index {
  font-family: var(--font-mono); font-size: .8rem; color: var(--accent);
  font-weight: 600; letter-spacing: .1em; display: block; margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05;
  letter-spacing: -.02em;
}
.section__sub { margin-top: .9rem; color: var(--muted); max-width: 48ch; font-size: 1.02rem; }
/* sub dos cases acompanha a largura cheia do selo de dados logo abaixo */
#cases .section__sub { max-width: none; }

/* ============ SNAPSHOT ============ */
.snap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
}
.snap-card {
  background: var(--paper); padding: clamp(1.5rem, 2.5vw, 2.2rem);
  transition: background .4s var(--ease);
}
.snap-card:hover { background: var(--card); }
.snap-card__title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem;
  margin-bottom: 1.1rem; letter-spacing: -.01em;
}
.snap-card__list { list-style: none; display: grid; gap: .55rem; }
.snap-card__list li {
  font-size: .92rem; color: var(--ink-soft);
  padding-left: 1.1rem; position: relative; line-height: 1.4;
}
.snap-card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .55;
}

/* ============ FEATURED CASES ============ */
.featured { display: grid; gap: 1.4rem; margin-bottom: clamp(3.5rem, 6vw, 5.5rem); }
@media (min-width: 760px) { .featured { grid-template-columns: repeat(3, 1fr); } }

.fcase {
  background: var(--card); border: 1px solid var(--hair);
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  position: relative; overflow: hidden;
}
.fcase::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent); transition: width .5s var(--ease);
}
.fcase:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--hair-soft); }
.fcase:hover::before { width: 100%; }

.fcase__bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.fcase__sector {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.fcase__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.12;
  letter-spacing: -.015em; margin-bottom: .9rem;
}
.fcase__summary { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; margin-bottom: 1.5rem; }

.fcase__narr { display: grid; gap: .7rem; padding: 1.2rem 0; border-top: 1px solid var(--hair); margin-top: auto; }
.fcase__narr div { display: grid; grid-template-columns: 80px 1fr; gap: .7rem; align-items: baseline; }
.fcase__narr dt {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.fcase__narr dd { font-size: .88rem; color: var(--ink-soft); }

.fcase__tags { margin-top: 1.1rem; }
.tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em;
  color: var(--ink); border: 1px solid var(--hair); border-radius: 100px;
  padding: .25rem .7rem; display: inline-block;
}

/* badges */
.badge {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600;
  padding: .28rem .6rem; border-radius: 4px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .35rem;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.badge--synth  { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
.badge--synth::before  { background: var(--accent); }
.badge--public { background: color-mix(in srgb, #2c7a4b 14%, transparent); color: #2c7a4b; }
.badge--public::before { background: #2c7a4b; }
.badge--arch   { background: color-mix(in srgb, #7a5cc4 14%, transparent); color: #6a4cb4; }
.badge--arch::before   { background: #7a5cc4; }
[data-theme="dark"] .badge--public { color: #6fd49a; }
[data-theme="dark"] .badge--arch   { color: #b49af0; }

/* ============ ARCHIVE ============ */
.archive__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.archive__title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  font-family: var(--font-mono); font-size: .73rem; letter-spacing: .03em;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--hair); border-radius: 100px;
  padding: .4rem .9rem; cursor: pointer; transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.archive__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
}
.acard {
  background: var(--paper); padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .7rem;
  transition: background .35s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.acard:hover { background: var(--card); }
.acard:hover .acard__title { color: var(--accent); }
.acard__title { transition: color .3s var(--ease); }
.acard.is-hidden { display: none; }
.acard__bar { display: flex; }
.acard__title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
  line-height: 1.18; letter-spacing: -.01em;
}
.acard__desc { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.acard__cat {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  padding-top: .7rem; border-top: 1px solid var(--hair-soft);
}
.archive__note { margin-top: 1.6rem; color: var(--muted); font-size: .88rem; font-style: italic; }

/* ============ TIMELINE ============ */
.timeline { list-style: none; display: grid; gap: 0; }
.tl {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--hair);
  align-items: baseline; transition: padding-left .35s var(--ease);
}
.tl:last-child { border-bottom: 1px solid var(--hair); }
.tl:hover { padding-left: .6rem; }
.tl__date { padding-top: .2rem; }
.tl__role { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; }
.tl__org { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.tl__org::first-line { color: var(--ink-soft); }
@media (max-width: 600px) {
  .tl { grid-template-columns: 1fr; gap: .4rem; }
}

/* ============ STACK ============ */
.stack-cols { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 760px) { .stack-cols { grid-template-columns: 1fr 1fr; } }
.stack-col__title { margin-bottom: 1.5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--hair); display: block; }
.stack-list { list-style: none; display: grid; gap: 1.3rem; }
.stack-list li { display: flex; flex-direction: column; gap: .15rem; }
.stack-list__main { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.stack-list__sub { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .05em; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  font-family: var(--font-mono); font-size: .8rem;
  border: 1px solid var(--hair); border-radius: 6px;
  padding: .45rem .8rem; color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============ CONTACT ============ */
.section--contact { border-top: 1px solid var(--hair); }
.contact__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.04;
  letter-spacing: -.025em; max-width: 40rem; margin: 1rem 0 2.8rem;
}
.contact__title em {
  font-style: normal; font-weight: 500; color: var(--accent);
  background-image: var(--prism);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: prismFlow 9s linear infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .contact__title em { -webkit-text-fill-color: currentColor; color: var(--accent); }
}
/* Gradient text animado: vai-e-volta suave do degradê prisma */
@keyframes prismFlow {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title em, .contact__title em { animation: none; }
}
.contact__links { display: grid; gap: 0; max-width: 620px; }
.contact__link {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.2rem 0; border-top: 1px solid var(--hair);
  transition: padding-left .35s var(--ease), color .25s var(--ease);
}
.contact__link:last-child { border-bottom: 1px solid var(--hair); }
.contact__link .mono-label { min-width: 90px; }
.contact__link span:last-child { font-size: 1.1rem; font-weight: 500; }
.contact__link:hover { padding-left: .6rem; color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.5rem;
  border-top: 1px solid var(--hair);
  display: grid; gap: 1.5rem;
}
.data-pledge {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex; align-items: flex-start; gap: .7rem;
  width: 100%; max-width: none;
  padding: .9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 10px;
  font-size: .84rem; line-height: 1.5; color: var(--ink-soft);
}
.data-pledge__icon { flex-shrink: 0; color: var(--accent); margin-top: .12rem; }
.data-pledge p { margin: 0; }
.footer__sig {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em;
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ MOBILE NAV ============ */
@media (max-width: 720px) {
  .nav__links { display: none; }
}
