/* tech.julianamascarenhas.com — paleta do canal Simplificando Redes:
   azul-escuro de fundo, menta e laranja do logo SR, verde das linhas de rede do banner. */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
/* Fonte do logo do canal (texto "SIMPLIFICANDO_REDES"), usada nos títulos. Recorte só com os caracteres latinos. */
@font-face {
  font-family: 'DejaVu Sans Mono';
  src: url('/fonts/dejavu-sans-mono-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0f17;
  --bg-alt: #0d1520;
  --surface: #111b28;
  --line: rgba(160, 190, 220, 0.1);
  --text: #e8ecef;
  --muted: #8c97a3;
  --mint: #7bbf9a;
  --orange: #d98e4a;
  --net: #2d7359;
  --navy: #1b3a5c;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --title: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Nada passa da largura da tela (ex.: a caixa do anel giratório da foto) */
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--mono); letter-spacing: -0.02em; margin: 0; }
h1, h2 { font-family: var(--title); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--mint); }
.dim { color: var(--muted); }
.center { text-align: center; margin-top: 2.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--mint); color: var(--bg); padding: 8px 12px; }

/* ---------- topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
/* Sem JavaScript, ou depois de rolar, a barra ganha fundo */
html:not(.js) .topbar, .topbar.is-scrolled {
  background: rgba(10, 15, 23, 0.78); backdrop-filter: blur(10px); border-bottom-color: var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-size: 0.95rem; }
.brand__logo { width: 36px; height: auto; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 6px; font-family: var(--mono); font-size: 0.85rem; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 6px; transition: color 0.2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::before { content: '#'; color: var(--mint); }
.nav__cta { border: 1px solid rgba(123, 191, 154, 0.45); color: var(--mint) !important; }
/* Menu do celular: botão ☰ abre um painel com todas as seções */
.nav__toggle { display: none; }
@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px;
    background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
  .topbar.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .topbar.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 24px 22px;
    background: rgba(10, 15, 23, 0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    font-size: 1rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .topbar.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .topbar.is-open { background: rgba(10, 15, 23, 0.97); }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 10px; text-align: center; border-bottom: 1px solid rgba(123, 191, 154, 0.45) !important; }
  .brand__name { font-size: 0.85rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(27, 58, 92, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(45, 115, 89, 0.18), transparent 70%),
    var(--bg);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Trilhas de circuito com cantos arredondados, à direita */
.hero__circuit {
  position: absolute; right: -80px; top: 18%; width: 520px; height: 520px; pointer-events: none;
  border: 1px solid rgba(123, 191, 154, 0.12); border-right: 0; border-bottom: 0; border-radius: 48px 0 0 0;
}
.hero__circuit::before, .hero__circuit::after {
  content: ''; position: absolute; border: 1px solid rgba(123, 191, 154, 0.1); border-right: 0; border-bottom: 0;
}
.hero__circuit::before { left: 90px; top: 110px; right: 0; bottom: 0; border-radius: 40px 0 0 0; }
.hero__circuit::after { left: 190px; top: 230px; right: 0; bottom: -40px; border-radius: 32px 0 0 0; border-color: rgba(217, 142, 74, 0.14); }
@media (max-width: 900px) { .hero__circuit { display: none; } }

.hero__inner {
  position: relative; z-index: 2; padding-top: 140px; padding-bottom: 160px;
  /* Tamanho do título e recuo do texto abaixo dele (largura do logo + espaço), para alinhar com "Simplificando" */
  --title-size: clamp(2.3rem, 6.4vw, 4.6rem);
  --indent: calc(var(--title-size) * 1.873);
}
.prompt { font-family: var(--mono); font-size: 0.95rem; color: var(--muted); margin-bottom: 1.4rem; }
.prompt__path { color: var(--net); filter: brightness(1.6); }
.prompt__sign { color: var(--orange); }
.prompt__cmd { color: var(--text); }
.caret {
  display: inline-block; width: 0.6em; height: 1.1em; margin-left: 2px; vertical-align: -0.18em;
  background: var(--mint); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.caret--small { width: 0.5em; height: 1em; opacity: 0.8; }
.hero__title { font-size: var(--title-size); line-height: 1.04; font-weight: 700; margin-bottom: 1.6rem; }
.hero__brand { display: flex; align-items: center; gap: 0.32em; }
.hero__logo { flex-shrink: 0; width: auto; height: 1.5em; filter: drop-shadow(0 8px 24px rgba(123, 191, 154, 0.2)); }
@media (max-width: 640px) { .hero__logo { height: 1.9em; } }
.hero__sub { font-family: var(--mono); display: block; margin-top: 0.6rem; max-width: 820px; font-size: max(0.42em, 1.1rem); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.hero__role { color: var(--mint); }
.hero__lead { max-width: 560px; font-size: 1.05rem; color: var(--muted); margin-top: 1.6rem; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__links { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--mono); font-size: 0.95rem; }
.hero__links a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted);
  transition: color 0.2s;
}
.hero__links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; transition: transform 0.2s; }
.hero__links a:hover { color: var(--mint); }
.hero__links a:hover svg { transform: translateY(-2px); }
@media (min-width: 641px) {
  .hero__sub, .hero__lead, .hero__links { margin-left: var(--indent); }
}

/* ---------- faixa ---------- */
.marquee { background: var(--mint); color: var(--bg); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, 0.2); }
.marquee__track {
  display: flex; align-items: center; gap: 22px; width: max-content; padding: 14px 0;
  font-family: var(--mono); font-weight: 700; font-size: 1rem; text-transform: lowercase;
  animation: marquee 32s linear infinite;
}
.marquee__track i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg); opacity: 0.55; }
.marquee__track i.o { background: var(--orange); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__sub { font-family: var(--mono); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); margin: 0 0 1rem; }
.eyebrow { margin-top: 0; font-family: var(--title); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text); letter-spacing: -0.01em; margin-bottom: 1rem; }
.eyebrow span { color: var(--orange); margin-right: 10px; }
.eyebrow span::after { content: ' //'; color: var(--muted); }

/* sobre */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
.about__photo { position: relative; margin: 0; width: 340px; aspect-ratio: 1; justify-self: center; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 50%; position: relative; z-index: 1; }
.about__ring {
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--mint), transparent 30%, var(--orange) 55%, transparent 75%, var(--mint));
  animation: spin 14s linear infinite; opacity: 0.85;
}
.about__ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__text > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 2.2rem 0 0; }
.stats dt { font-family: var(--mono); font-size: 2rem; font-weight: 800; color: var(--mint); line-height: 1; }
.stats dt.o { color: var(--orange); }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__photo { width: 260px; }
}

/* papéis */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role {
  --accent: 123, 191, 154;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 26px 26px 28px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(var(--accent), 0.06), rgba(var(--accent), 0) 55%), var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
}
.role:nth-child(even) { --accent: 217, 142, 74; }
/* fio de luz no topo, que se estende no hover */
.role::before {
  content: ''; position: absolute; top: 0; left: 26px; right: 70%; height: 2px; border-radius: 2px;
  background: rgb(var(--accent)); opacity: 0.8; transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.role:hover { transform: translateY(-5px); border-color: rgba(var(--accent), 0.45); box-shadow: 0 24px 50px -28px rgba(var(--accent), 0.45); }
.role:hover::before { right: 26px; }
.role__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.role__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(var(--accent), 0.1); border: 1px solid rgba(var(--accent), 0.28);
}
.role svg { width: 24px; height: 24px; fill: none; stroke: rgb(var(--accent)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role__num { font-family: var(--mono); font-size: 0.78rem; color: rgba(var(--accent), 0.7); }
.role h3 { font-family: var(--title); font-size: 1.2rem; margin-bottom: 0.7rem; }
.role p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; margin: 0; }
/* Consultoria: duas colunas, texto à esquerda e chamada à direita */
.role--consult { --accent: 217, 142, 74; grid-column: span 2; text-decoration: none; display: grid; grid-template-columns: auto 1fr auto; column-gap: 22px; align-items: center; }
.role--consult .role__head { flex-direction: column; gap: 10px; margin: 0; align-self: start; }
.role--consult b { color: var(--text); font-weight: 600; }
.role--consult .role__num { display: none; }
.role__cta {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700; white-space: nowrap; color: var(--bg);
  background: var(--orange); padding: 11px 16px; border-radius: 8px; transition: filter 0.2s;
}
.role--consult:hover .role__cta { filter: brightness(1.08); }
@media (max-width: 760px) {
  .role--consult { grid-template-columns: 1fr; row-gap: 18px; }
  .role--consult .role__head { flex-direction: row; justify-content: space-between; }
  .role__cta { justify-self: start; }
}
@media (max-width: 1000px) { .roles { grid-template-columns: repeat(2, 1fr); } .role--consult { grid-column: span 2; } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } .role--consult { grid-column: auto; } }

/* formações da DIO */
.courses { margin-top: 110px; padding-top: 56px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.courses__head { margin-bottom: 6px; }
.courses__head h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.courses__head p { margin: 0; font-size: 0.9rem; }
.course {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 22px 26px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s;
}
.course:hover { transform: translateY(-3px); border-color: rgba(123, 191, 154, 0.4); }
.course__badge {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px;
  font-family: var(--mono); font-weight: 800; color: var(--mint); background: rgba(123, 191, 154, 0.1); border: 1px solid rgba(123, 191, 154, 0.3);
}
.course__badge.o { color: var(--orange); background: rgba(217, 142, 74, 0.1); border-color: rgba(217, 142, 74, 0.35); }
.course h4 { font-family: var(--mono); font-size: 1.02rem; margin: 0 0 4px; }
.course p { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; }
.course__meta { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.course__count { font-family: var(--mono); color: var(--muted); font-size: 0.85rem; text-align: right; white-space: nowrap; }
.course__count b { display: block; font-size: 1.6rem; color: var(--text); }
@media (max-width: 640px) {
  .course { grid-template-columns: auto 1fr; }
  .course__count { grid-column: 2; text-align: left; }
}

/* palestras */
.talks { display: grid; grid-template-columns: 1.7fr 0.85fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.talk--tall { grid-row: span 2; }
.talk--tall img { aspect-ratio: auto; object-position: center 35%; }
.talk { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.talk--main { grid-row: span 2; }
.talk img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); transition: filter 0.5s, transform 0.8s; aspect-ratio: 16 / 10; }
.talk:hover img { filter: none; transform: scale(1.03); }
.talk figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(10, 15, 23, 0.92));
  font-family: var(--mono); font-size: 0.9rem; font-weight: 600;
}
.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mint); border: 1px solid rgba(123, 191, 154, 0.4); border-radius: 4px; padding: 2px 7px; margin-right: 8px;
}
.tag.o { color: var(--orange); border-color: rgba(217, 142, 74, 0.45); }
@media (max-width: 1000px) { .talks { grid-template-columns: 1fr 1fr; } .talk--main { grid-column: span 2; grid-row: auto; } .talk--tall { grid-row: span 2; } }
@media (max-width: 640px) { .talks { grid-template-columns: 1fr; } .talk--main { grid-column: auto; } .talk--tall { grid-row: auto; } .talk--tall img { aspect-ratio: 4 / 5; } }

/* subtítulos da seção de palestras e grade de 4 vídeos */
.subhead { font-size: 1.1rem; margin: 5.5rem 0 1.6rem; padding-top: 2.6rem; border-top: 1px solid var(--line); color: var(--text); }
/* eventos: linha do tempo */
.tl { list-style: none; padding: 0; margin: 0; position: relative; }
.tl::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--mint), var(--net) 60%, var(--orange));
  opacity: 0.55; border-radius: 2px;
}
.tl__item { position: relative; width: 50%; padding: 0 44px 34px 0; }
.tl__item:nth-child(even) { margin-left: 50%; padding: 0 0 34px 44px; }
/* cada evento começa na metade do anterior, do outro lado da linha (menos espaço vazio) */
.tl__item + .tl__item { margin-top: -56px; }
.tl__dot {
  position: absolute; top: 20px; right: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--mint); box-shadow: 0 0 0 5px rgba(123, 191, 154, 0.12);
}
.tl__dot.o { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(217, 142, 74, 0.12); }
.tl__item:nth-child(even) .tl__dot { right: auto; left: -8px; }
.tl__card {
  position: relative; padding: 18px 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}
.tl__card:hover { border-color: rgba(123, 191, 154, 0.45); transform: translateY(-3px); }
/* setinha do cartão apontando para a linha */
.tl__card::after {
  content: ''; position: absolute; top: 22px; right: -7px; width: 12px; height: 12px; background: var(--surface);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
}
.tl__item:nth-child(even) .tl__card::after { right: auto; left: -7px; transform: rotate(-135deg); }
.tl__item:nth-child(odd) .tl__card { text-align: right; }
.tl__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tl__item:nth-child(odd) .tl__top { justify-content: flex-end; }
.tl__year { font-family: var(--mono); font-weight: 800; font-size: 1.15rem; color: var(--orange); }
.tl__where { display: block; font-family: var(--mono); font-weight: 700; margin-bottom: 4px; }
.tl__what { display: block; color: var(--muted); font-size: 0.93rem; }
.tl__what a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(123, 191, 154, 0.4); }
.tl__what a:hover { color: var(--mint); }
.agenda__kind {
  display: inline-block; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mint); border: 1px solid rgba(123, 191, 154, 0.35); border-radius: 4px; padding: 1px 6px;
}
/* cada evento entra vindo do seu lado */
.js .tl__item.reveal { translate: -48px 0; }
.js .tl__item.reveal:nth-child(even) { translate: 48px 0; }
.js .tl__item.reveal.is-in { translate: none; }
@media (max-width: 760px) {
  .js .tl__item.reveal, .js .tl__item.reveal:nth-child(even) { translate: 0 32px; }
  .js .tl__item.reveal.is-in { translate: none; }
}
@media (max-width: 760px) {
  .tl::before { left: 8px; transform: none; }
  .tl__item, .tl__item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 26px 38px; }
  .tl__item + .tl__item { margin-top: 0; }
  .tl__dot, .tl__item:nth-child(even) .tl__dot { left: 0; right: auto; }
  .tl__card::after, .tl__item:nth-child(even) .tl__card::after { right: auto; left: -7px; transform: rotate(-135deg); }
  .tl__item:nth-child(odd) .tl__card { text-align: left; }
  .tl__item:nth-child(odd) .tl__top { justify-content: flex-start; }
}

/* reconhecimentos */
.terminal { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #070b11; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4655; }
.terminal__bar i:first-child { background: var(--orange); }
.terminal__bar i:nth-child(2) { background: #c9b458; }
.terminal__bar i:nth-child(3) { background: var(--mint); }
.terminal__bar span { margin-left: 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.terminal__body { padding: 22px 22px 18px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; }
.terminal__body p { margin: 0 0 0.8rem; color: #c9d1d8; }
.t-date { color: var(--muted); }
.t-info { color: var(--mint); }
.t-sign { color: var(--orange); }

/* conteúdo */
.topics { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.topics li { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.topics b { display: block; font-family: var(--mono); color: var(--text); margin-bottom: 4px; }
.topics b::before { content: '▹ '; color: var(--mint); }
@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .topics { grid-template-columns: 1fr; } }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video { text-decoration: none; display: block; }
.video img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; transition: transform 0.35s, border-color 0.35s; }
.video:hover img { transform: translateY(-4px); border-color: rgba(123, 191, 154, 0.5); }
.video__title { display: block; margin-top: 8px; font-weight: 600; line-height: 1.4; }
.video:hover .video__title { color: var(--mint); }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }

/* repositórios */
.repos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.repo {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s, border-color 0.3s;
}
.repo:hover { transform: translateY(-4px); border-color: rgba(123, 191, 154, 0.45); }
.repo__name { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.86rem; font-weight: 700; color: #8fb3d9; word-break: break-all; }
.repo__name svg { flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.repo__desc { color: var(--muted); font-size: 0.9rem; flex: 1; }
.repo__meta { display: flex; gap: 16px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.repo__lang::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); margin-right: 6px; }
.repo__stars { color: var(--orange); }
@media (max-width: 900px) { .repos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .repos { grid-template-columns: 1fr; } }

/* botões */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; padding: 13px 22px; border-radius: 8px; background: var(--mint); color: var(--bg);
  transition: filter 0.2s, transform 0.2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(232, 236, 239, 0.25); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

/* stack */
.code {
  margin: 0; padding: 26px; border-radius: 12px; background: #070b11; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.86rem; line-height: 1.8; overflow-x: auto; color: #c9d1d8;
}
.c-k { color: var(--orange); }
.c-v { color: var(--text); font-weight: 700; }
.c-p { color: #8fb3d9; }
.c-s { color: var(--mint); }

/* contato */
.contact { padding-bottom: 130px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consult {
  margin-top: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 22px 26px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.3s;
}
.consult:hover { border-color: rgba(217, 142, 74, 0.5); }
.consult__label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); }
.consult__text { color: var(--muted); }
.consult__text b { color: var(--text); }
.consult__arrow { font-size: 1.4rem; color: var(--orange); transition: transform 0.3s; }
.consult:hover .consult__arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .consult { grid-template-columns: 1fr; gap: 8px; }
  .consult__arrow { display: none; }
}

/* media kit: só o botão, centralizado, com um pulso leve */
.mediakit { margin-top: 56px; display: flex; justify-content: center; }
.btn--pulse { animation: pulse 2.4s ease-out infinite; }
.btn--pulse:hover { animation-play-state: paused; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 142, 74, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(217, 142, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 142, 74, 0); }
}
.btn--orange { background: var(--orange); color: var(--bg); white-space: nowrap; }

/* formação e ferramentas: log da pesquisa ao lado do bloco de código */
.formacao { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.formacao .code { display: flex; align-items: center; white-space: pre-wrap; }
@media (max-width: 900px) { .formacao { grid-template-columns: 1fr; } }

/* contato numa linha */
.contact__line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: 28px 32px; border-radius: 16px; background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(27, 58, 92, 0.55), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.contact__title { margin: 0; font-family: var(--title); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.4rem, 3vw, 2rem); }

/* rodapé */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.85rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__brand img { width: 26px; height: auto; }
.footer__links { display: flex; gap: 18px; font-family: var(--mono); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--mint); }

/* entrada ao rolar (só com JavaScript; sem ele, tudo aparece) */
/* Atraso (--d) só na entrada; o hover (transform, borda) continua imediato */
.js .reveal {
  opacity: 0; translate: 0 32px; filter: blur(4px);
  transition: opacity 0.8s ease var(--d, 0ms), translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    filter 0.8s ease var(--d, 0ms), transform 0.3s, border-color 0.3s;
}
.js .reveal.is-in { opacity: 1; translate: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; filter: none; }
}

/* links para sites externos dentro do texto (ex.: DIO) */
.ext { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(123, 191, 154, 0.55); transition: color 0.2s, border-color 0.2s; }
.ext:hover { color: var(--mint); border-bottom-style: solid; border-color: var(--mint); }
