/* ═══════════════════════════════════════════════════
   portfolio.css
   CSS puro compartilhado pelas versões Tailwind e Bootstrap:
   tokens, escala tipográfica, cabeçalho, componentes,
   janelas do hero, efeitos de canvas, cursor e reveal.
═══════════════════════════════════════════════════ */

/* ─── TOKENS — dark (padrão) ─────────────────────── */
:root,
[data-theme="dark"] {
  --ink:        13  26  18;    /* #0D1A12 — fundo principal     */
  --ink-2:      22  32  16;    /* #162010 — superfícies          */
  --ink-3:      30  46  26;    /* #1E2E1A — cards               */
  --ink-4:      38  51  35;    /* #263323 — bordas              */

  --cream:      237 232 220;   /* #EDE8DC — texto principal     */
  --cream-2:    200 194 180;   /* #C8C2B4 — texto secundário    */
  --cream-3:    150 145 136;   /* #969188 — texto terciário (≥ 4.5:1 sobre os cards) */

  --accent:     95  232 154;   /* #5FE89A — verde brilhante     */
  --accent-rgb: 95, 232, 154;
  --amber:      255 184 77;    /* #FFB84D */

  --border:     rgba(237,232,220,.07);
  --border-2:   rgba(237,232,220,.14);
  --border-3:   rgba(237,232,220,.22);
}

/* ─── TOKENS — light ─────────────────────────────── */
[data-theme="light"] {
  --ink:        240 237 228;   /* #F0EDE4 */
  --ink-2:      232 228 216;   /* #E8E4D8 */
  --ink-3:      222 218 208;   /* #DEDAD0 */
  --ink-4:      206 201 188;   /* #CEC9BC */

  --cream:      26  30  20;    /* #1A1E14 */
  --cream-2:    61  66  52;    /* #3D4234 */
  --cream-3:    96  94  86;    /* #605E56 */

  --accent:     26  122  64;   /* #1A7A40 — verde mais escuro no light */
  --accent-rgb: 26, 122, 64;
  --amber:      176 106 0;

  --border:     rgba(26,30,20,.08);
  --border-2:   rgba(26,30,20,.14);
  --border-3:   rgba(26,30,20,.22);
}

/* ─── ESCALA TIPOGRÁFICA ─────────────────────────── */
:root {
  --fs-display:    clamp(3.4rem, 7vw, 6rem);
  --fs-h2:         clamp(2.1rem, 4vw, 3.1rem);
  --fs-h2-lg:      clamp(2.6rem, 5vw, 4rem);
  --fs-h3:         clamp(1.35rem, 2.2vw, 1.6rem);
  --fs-lede:       clamp(.9rem, 1.2vw, 1.05rem);
  --fs-copy:       1.075rem;
  --fs-card-title: 1.15rem;
  --fs-card:       .95rem;
  --fs-meta:       .82rem;
  --fs-micro:      .72rem;

  --header-h: 68px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body { overflow-x: clip; }

/* ─── CABEÇALHO ──────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}

.site-header.scrolled {
  background: rgb(var(--ink) / .92);
  border-color: var(--border-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: rgb(var(--cream));
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: rgb(var(--cream)); }
.brand i { color: rgb(var(--accent)); font-size: 1.35rem; }

.site-nav-link {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(var(--cream-2));
  text-decoration: none;
  padding: .35rem 0;
  transition: color .2s;
}

.site-nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgb(var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(0,0,.2,1);
}

.site-nav-link:hover,
.site-nav-link.active { color: rgb(var(--accent)); }
.site-nav-link.active::after { transform: scaleX(1); }

/* ─── MENU MOBILE ────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 1.5rem; }

@media (max-width: 767.98px) {
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .25rem 1.5rem 1rem;
    background: rgb(var(--ink) / .97);
    border-bottom: 1px solid var(--border-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }

  .site-header.menu-open {
    background: rgb(var(--ink) / .97);
    border-color: var(--border-2);
  }

  .site-nav .site-nav-link {
    padding: 1rem 0;
    font-size: var(--fs-meta);
    border-bottom: 1px solid var(--border);
  }

  .site-nav .site-nav-link:last-child { border-bottom: 0; }
  .site-header .lang-opt { padding: .3rem .55rem; }
  .site-nav .site-nav-link::after { display: none; }
}

/* ─── SWITCH DE IDIOMA ───────────────────────────── */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid var(--border-2);
  background: rgb(var(--ink-3));
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s;
}

.lang-switch:hover { border-color: rgba(var(--accent-rgb), .6); }

.lang-switch::before {
  content: '';
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 9999px;
  background: rgb(var(--accent));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

[data-lang="en"] .lang-switch::before { transform: translateX(100%); }

.lang-opt {
  position: relative;
  z-index: 1;
  padding: .3rem .7rem;
  color: rgb(var(--cream-3));
  transition: color .25s;
}

[data-lang="pt"] .lang-opt[data-lang="pt"],
[data-lang="en"] .lang-opt[data-lang="en"] {
  color: rgb(var(--ink));
  font-weight: 500;
}

/* ─── BOTÕES DE TEMA E MENU ──────────────────────── */
.theme-btn,
.menu-btn {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: rgb(var(--ink-3));
  color: rgb(var(--cream-2));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s cubic-bezier(.34,1.56,.64,1);
}

.menu-btn:hover {
  border-color: rgba(var(--accent-rgb), .6);
  color: rgb(var(--accent));
}

@media (min-width: 768px) { .menu-btn { display: none; } }

.menu-btn .ph-x,
.menu-open .menu-btn .ph-list { display: none; }
.menu-open .menu-btn .ph-x { display: inline; }

.theme-btn:hover {
  border-color: rgba(var(--accent-rgb), .6);
  color: rgb(var(--accent));
  transform: rotate(20deg) scale(1.1);
}

:is(.lang-switch, .theme-btn, a, button):focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 3px;
}

/* ─── SEÇÕES ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-kicker {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgb(var(--accent));
}

.section-kicker::before {
  content: '';
  display: block; width: 1.25rem; height: 1px;
  background: rgb(var(--accent));
}

.rich strong { color: rgb(var(--cream)); font-weight: 500; }
.rich em     { color: rgb(var(--cream-2)); font-style: normal; }

/* ─── PILLS E BADGES ─────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .3rem .8rem;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: .05em;
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .22);
  color: rgb(var(--accent));
  transition: background .2s;
}

.pill:hover { background: rgba(var(--accent-rgb), .18); }

.badge-green,
.badge-amber {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-green {
  background: rgba(var(--accent-rgb), .08);
  border: 1px solid rgba(var(--accent-rgb), .22);
  color: rgb(var(--accent));
}

.badge-amber {
  background: rgb(var(--amber) / .08);
  border: 1px solid rgb(var(--amber) / .22);
  color: rgb(var(--amber));
}

.status-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  width: fit-content;
  padding: .45rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--accent-rgb), .3);
  background: rgba(var(--accent-rgb), .06);
  color: rgb(var(--accent));
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}

a.status-chip:hover {
  color: rgb(var(--accent));
  background: rgba(var(--accent-rgb), .14);
  border-color: rgba(var(--accent-rgb), .6);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgb(var(--accent));
  animation: ping 2s ease-in-out infinite;
}

.icon-tile {
  width: 3rem; height: 3rem;
  flex-shrink: 0;
  border-radius: .8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .2);
  color: rgb(var(--accent));
}

.icon-tile-sm { width: 2.5rem; height: 2.5rem; border-radius: .6rem; font-size: 1.2rem; }

/* ─── SCROLL HINT ────────────────────────────────── */
.scroll-hint {
  display: inline-flex; align-items: center; gap: .75rem;
  width: fit-content;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(var(--cream-3));
  text-decoration: none;
  transition: color .2s;
}

.scroll-hint:hover { color: rgb(var(--accent)); }

.scroll-arrow {
  display: inline-block;
  width: 12px; height: 12px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  animation: bounce-y .8s ease-in-out infinite alternate;
}

/* ─── CURSOR PERSONALIZADO ───────────────────────── */
#cursor, #cursor-ring { display: none; }

@media (pointer: fine) {
  body { cursor: none; }

  #cursor, #cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
  }

  #cursor {
    width: 10px; height: 10px;
    margin: -5px 0 0 -5px;
    background: rgb(var(--accent));
    z-index: 9999;
    mix-blend-mode: exclusion;
    transition: width .3s cubic-bezier(.34,1.56,.64,1),
                height .3s cubic-bezier(.34,1.56,.64,1),
                margin .3s cubic-bezier(.34,1.56,.64,1);
  }

  #cursor-ring {
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border: 1px solid rgba(var(--accent-rgb), .4);
    z-index: 9998;
    transition: width .3s cubic-bezier(.34,1.56,.64,1),
                height .3s cubic-bezier(.34,1.56,.64,1),
                margin .3s cubic-bezier(.34,1.56,.64,1),
                border-color .3s;
  }

  body.hovering #cursor      { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
  body.hovering #cursor-ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: rgba(var(--accent-rgb),.2); }
}

[data-theme="light"] #cursor      { mix-blend-mode: normal; }
[data-theme="light"] #cursor-ring { border-color: rgba(var(--accent-rgb), .5); }

/* ─── FUNDO: MESH ───────────────────────────────── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80vw 60vh at 8% -5%,  rgba(var(--accent-rgb),.13) 0%, transparent 65%),
    radial-gradient(ellipse 55vw 45vh at 92% 105%, rgba(var(--accent-rgb),.06) 0%, transparent 60%);
}

[data-theme="light"] .mesh-bg {
  background:
    radial-gradient(ellipse 80vw 60vh at 8% -5%,  rgba(var(--accent-rgb),.06) 0%, transparent 65%),
    radial-gradient(ellipse 55vw 45vh at 92% 105%, rgba(var(--accent-rgb),.03) 0%, transparent 60%);
}

.page { position: relative; z-index: 2; }

/* ─── JANELAS EM CASCATA ─────────────────────────── */
.hero-windows {
  --win-w: clamp(300px, 27vw, 380px);
  --win-step: calc(var(--win-w) * .135);
  position: relative;
  height: calc(var(--win-w) * 1.4);
}

.win {
  position: absolute;
  width: var(--win-w);
  border-radius: 18px;
  border: 1px solid var(--border-2);
  background: rgb(var(--ink-3));
  overflow: hidden;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1),
              box-shadow .45s cubic-bezier(0,0,.2,1),
              border-color .3s;
}

.win:hover {
  border-color: var(--border-3);
  box-shadow: 0 24px 64px rgba(0,0,0,.55),
              0 0 0 1px rgba(var(--accent-rgb),.12);
  z-index: 10 !important;
  transform: rotate(0deg) translate(0, -12px) scale(1.04) !important;
}

.win-1 { top: 0;                        left: 0;                        transform: rotate(-6deg) translate(-20px, 20px);  z-index: 1; }
.win-2 { top: calc(var(--win-step) * .75); left: var(--win-step);          transform: rotate(-2deg) translate(0, 10px);     z-index: 2; }
.win-3 { top: calc(var(--win-step) * 1.5); left: calc(var(--win-step) * 2); transform: rotate(2deg)  translate(20px, 0);     z-index: 3; }
.win-4 { top: calc(var(--win-step) * 2.25); left: calc(var(--win-step) * 3); transform: rotate(5deg)  translate(40px, -10px); z-index: 4; }

.win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgb(var(--cream) / .04);
  border-bottom: 1px solid var(--border);
}

.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.wd-r { background: #FF5F57; }
.wd-y { background: #FFBD2E; }
.wd-g { background: #28C840; }

.win-titlebar {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: rgb(var(--cream-3));
  letter-spacing: .05em;
}

.win-body {
  padding: 16px;
  height: calc(var(--win-w) * .62);
  overflow: hidden;
  position: relative;
}

.win-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px 14px;
  background: linear-gradient(transparent, rgb(var(--ink-3) / .95));
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}

.win:hover .win-caption { opacity: 1; transform: translateY(0); }

.win-terminal {
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  color: rgb(var(--cream-2));
  line-height: 2;
}

.t-prompt { color: rgb(var(--accent)); }
.t-cmd    { color: rgb(var(--cream)); }
.t-out    { color: rgb(var(--cream-3)); }
.t-cur    {
  display: inline-block;
  width: 7px; height: .9em;
  background: rgb(var(--accent));
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.win-dashboard { display: flex; flex-direction: column; gap: 10px; }
.dash-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem; text-transform: uppercase;
  letter-spacing: .08em; color: rgb(var(--cream-3));
}
.dash-bar-wrap { height: 5px; margin-top: 4px; background: rgb(var(--ink-4)); border-radius: 3px; overflow: hidden; }
.dash-bar {
  height: 100%; border-radius: 3px;
  background: rgb(var(--accent));
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0,0,.2,1);
}
.win:hover .dash-bar,
.dash-bar.animated { transform: scaleX(1); }
.dash-val { display: block; font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: rgb(var(--cream-2)); text-align: right; }
.dash-divider { height: 1px; background: var(--border); margin: 2px 0; }

.win-sheet { font-family: 'JetBrains Mono', monospace; font-size: .7rem; }
.sheet-header,
.sheet-row {
  display: grid; grid-template-columns: 76px 1fr 52px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.sheet-header {
  background: rgb(var(--cream) / .04);
  color: rgb(var(--cream-3)); letter-spacing: .06em; text-transform: uppercase;
}
.sheet-row { color: rgb(var(--cream-2)); transition: background .2s; }
.sheet-row:hover { background: rgba(var(--accent-rgb),.05); }
.sheet-num { text-align: right; }
.s-green { color: rgb(var(--accent)); }
.s-amber { color: rgb(var(--amber)); }
.s-dim   { color: rgb(var(--cream-3)); }

.win-network { position: relative; width: 100%; height: 100%; }
.net-canvas  { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── FOTO — anel animado ────────────────────────── */
.photo-ring {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  padding: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

/* o gradiente gira num pseudo-elemento para a foto ficar parada */
.photo-ring::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: conic-gradient(rgb(var(--accent)) 0deg, #A094FA 180deg, rgb(var(--accent)) 360deg);
  animation: spin-ring 9s linear infinite;
}

.photo-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  background: rgb(var(--ink-3));
}

.photo-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fact {
  display: flex; align-items: center; gap: .75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  color: rgb(var(--cream-2));
  text-decoration: none;
  transition: color .2s;
}

a.fact:hover { color: rgb(var(--accent)); }
.fact i { color: rgb(var(--accent)); font-size: 1.1rem; }

/* ─── FREELANCE — abas e painéis ─────────────────── */
.fl-label {
  margin: 0 0 .9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(var(--cream-3));
}

.fl-tabs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.fl-tab {
  display: flex; align-items: center; gap: .85rem;
  width: 100%;
  padding: .9rem 1.1rem;
  border-radius: .8rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.fl-tab:hover { background: rgb(var(--ink-3) / .6); }

.fl-tab.active {
  background: rgb(var(--ink-3));
  border-color: var(--border-2);
}

.fl-tab-dot {
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(var(--cream-3));
  transition: background .2s, box-shadow .2s;
}

.fl-tab.active .fl-tab-dot {
  background: rgb(var(--accent));
  box-shadow: 0 0 7px rgba(var(--accent-rgb),.4);
}

.fl-tab-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: rgb(var(--cream-2));
  transition: color .2s;
}

.fl-tab.active .fl-tab-name { color: rgb(var(--cream)); }

.fl-tab-status {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .04em;
  color: rgb(var(--accent));
}

.fl-tab-status.is-amber { color: rgb(var(--amber)); }

/* no celular as abas viram pills roláveis na horizontal */
@media (max-width: 767.98px) {
  .fl-tabs {
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 0 -1.5rem;
    padding: 0 1.5rem 2px;
  }

  .fl-tabs::-webkit-scrollbar { display: none; }

  .fl-tab {
    flex: 0 0 auto;
    width: auto;
    padding: .6rem 1rem;
    border-radius: 9999px;
    border-color: var(--border-2);
    white-space: nowrap;
  }

  .fl-tab-name br,
  .fl-tab-status { display: none; }
}

/* painéis sobrepostos na mesma célula: a altura não muda ao trocar de aba */
.fl-panels {
  display: grid;
  align-items: start;
  min-width: 0;
}

.fl-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.fl-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.feature-card {
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: .8rem;
  background: rgb(var(--ink));
  border: 1px solid var(--border);
  transition: border-color .2s;
}

.feature-card:hover { border-color: rgba(var(--accent-rgb), .3); }

.feature-title {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .5rem;
  font-size: var(--fs-card);
  font-weight: 500;
  color: rgb(var(--cream));
}

.feature-title i { color: rgb(var(--accent)); }

.feature-text {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  line-height: 1.65;
  color: rgb(var(--cream-3));
}

.feature-text code {
  font-family: inherit;
  font-size: 1em;
  color: rgb(var(--cream-2));
  background: none;
  padding: 0;
}

.callout {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: .8rem;
  background: rgba(var(--accent-rgb), .08);
  border: 1px solid rgba(var(--accent-rgb), .18);
}

.callout > i { flex-shrink: 0; margin-top: .2rem; font-size: 1.2rem; color: rgb(var(--accent)); }
.callout p { margin: 0; font-size: var(--fs-card); line-height: 1.7; color: rgb(var(--cream-2)); }
.callout strong { color: rgb(var(--cream)); font-weight: 700; }

/* ─── PROJETOS — cards ───────────────────────────── */
.project-card {
  display: flex; flex-direction: column; gap: .9rem;
  height: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgb(var(--ink-3));
  border: 1px solid var(--border);
}

.project-title {
  margin: 0;
  font-size: var(--fs-card-title);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: rgb(var(--cream));
}

.project-meta {
  margin: .2rem 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: rgb(var(--cream-3));
}

.project-text {
  flex: 1;
  margin: 0;
  font-size: var(--fs-card);
  line-height: 1.65;
  color: rgb(var(--cream-2));
}

.project-actions {
  display: flex; gap: .5rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}

.btn-repo,
.btn-play {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem .75rem;
  border-radius: .6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  text-decoration: none;
  transition: border-color .2s, color .2s, opacity .2s;
}

.btn-repo {
  color: rgb(var(--cream-2));
  background: rgb(var(--ink-2));
  border: 1px solid var(--border-2);
}

.btn-repo:hover { color: rgb(var(--accent)); border-color: rgba(var(--accent-rgb), .5); }

.btn-play {
  font-weight: 600;
  color: rgb(var(--ink));
  background: rgb(var(--accent));
  border: 1px solid rgb(var(--accent));
}

.btn-play:hover { opacity: .85; color: rgb(var(--ink)); }

/* ─── CARD GLOW (mouse tracking) ─────────────────── */
.card-glow {
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .2s, box-shadow .25s;
}

.card-glow::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%),
              rgba(var(--accent-rgb),.07) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}

.card-glow:hover { border-color: rgba(var(--accent-rgb),.35); transform: translateY(-3px); box-shadow: 0 18px 52px rgba(0,0,0,.35); }
.card-glow:hover::before { opacity: 1; }

/* ─── CONTATO ────────────────────────────────────── */
.cta-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: 1rem;
  background: rgb(var(--ink-3));
  border: 1px solid var(--border-2);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s, transform .2s;
}

.cta-btn:hover { transform: translateX(6px); border-color: rgba(var(--accent-rgb), .35); color: inherit; }

.cta-icon {
  width: 3rem; height: 3rem;
  flex-shrink: 0;
  border-radius: .8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.cta-label {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(var(--cream-3));
}

.cta-value {
  margin: .15rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(var(--cream));
}

.cta-arrow {
  margin-left: auto;
  color: rgb(var(--cream-3));
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .25s;
}

.cta-btn:hover .cta-arrow { transform: translateX(4px); color: rgb(var(--accent)); }

.version-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  text-decoration: none;
}

.version-link:hover { text-decoration: underline; color: rgb(var(--accent)); }

.site-footer {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(var(--cream-3));
  opacity: .6;
}

/* ─── BRILHO NO TEXTO ────────────────────────────── */
.glow-text   { text-shadow: 0 0 24px rgb(var(--cream) / .45); }
.title-accent {
  color: rgb(var(--accent));
  text-shadow: 0 0 24px rgba(var(--accent-rgb), .7);
}

[data-theme="light"] .glow-text,
[data-theme="light"] .title-accent { text-shadow: none; }

/* ─── REVEAL ─────────────────────────────────────────
   Opacidade e deslocamento acompanham a rolagem (reveal.js).
   Usa a propriedade `translate` para não brigar com os
   `transform` de hover dos cards.
─────────────────────────────────────────────────── */
.rv, .rv-l, .rv-r { opacity: 0; }

/* entrada do hero no carregamento; depois o reveal.js assume */
.hero .rv   { animation: intro-up    .9s cubic-bezier(.2,.8,.2,1) backwards; }
.hero .rv-r { animation: intro-right .9s cubic-bezier(.2,.8,.2,1) backwards; }

.hero .d1 { animation-delay: .1s; }
.hero .d2 { animation-delay: .2s; }
.hero .d3 { animation-delay: .3s; }
.hero .d4 { animation-delay: .4s; }

@keyframes intro-up    { from { opacity: 0; translate: 0 28px; } }
@keyframes intro-right { from { opacity: 0; translate: 28px 0; } }

/* ─── KEYFRAMES ──────────────────────────────────── */
@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); }
  50%      { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes bounce-y {
  from { transform: rotate(45deg) translate(-2px, -2px); }
  to   { transform: rotate(45deg) translate(2px, 2px); }
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

/* ─── SELEÇÃO E SCROLLBAR ────────────────────────── */
::selection {
  background: rgba(var(--accent-rgb), .22);
  color: rgb(var(--cream));
}

::-webkit-scrollbar          { width: 6px; }
::-webkit-scrollbar-track    { background: rgb(var(--ink)); }
::-webkit-scrollbar-thumb    { background: rgb(var(--ink-4)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--accent)); }

/* ─── MOVIMENTO REDUZIDO ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .rv, .rv-l, .rv-r { opacity: 1; }
  #cursor, #cursor-ring { display: none !important; }
  body { cursor: auto !important; }
}
