/* ---------- Menu do header ---------- */

/* Pílula do header: só o link da seção atual mostra o rótulo. */
.nav-list {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s;
}

.nav-link .icon {
  width: 16px;
  height: 16px;
}

.nav-label {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.5s ease-out, margin-left 0.5s ease-out, opacity 0.3s;
}

.nav-link:hover {
  background: var(--color-surface);
}

.nav-link[aria-current="location"] {
  background: var(--color-surface);
  border-color: var(--color-line);
}

.nav-link[aria-current="location"] .icon {
  color: var(--color-accent);
}

.nav-link[aria-current="location"] .nav-label {
  max-width: 100px;
  margin-left: 8px;
  opacity: 1;
}

/* No hover ou no foco pelo teclado, qualquer link abre o nome, como o link da seção atual. */
.nav-link:hover .nav-label,
.nav-link:focus-visible .nav-label {
  max-width: 100px;
  margin-left: 8px;
  opacity: 1;
}

/* ---------- Ações do header: tema e contato ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  transform: rotate(-12deg);
}

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

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(255 106 61 / 30%);
}

@media (max-width: 760px) {
  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 0 6px;
  }

  /* No celular não cabe o rótulo aberto: a seção atual fica marcada só pela pílula e pelo ícone coral. */
  .nav-link[aria-current="location"] .nav-label,
  .nav-link:hover .nav-label,
  .nav-link:focus-visible .nav-label {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .header-cta {
    padding: 0 12px;
  }

  .header-cta-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Em telas bem estreitas não cabe tudo: o contato continua no último ícone do menu. */
@media (max-width: 480px) {
  .header-cta {
    display: none;
  }
}

/* ---------- Peças comuns ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.highlight {
  background: linear-gradient(transparent 62%, rgb(255 106 61 / 38%) 62%);
  padding: 0 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}

/* O canal usa o vermelho do YouTube, para ser reconhecido de longe. Branco sobre esse vermelho passa de 4,5:1. */
.button-youtube {
  border-color: #e60028;
  background: #e60028;
  color: #fff;
}

/* Degradê nas cores do Instagram, só nos tons escuros: o branco passa de 4,5:1 nos dois extremos. */
.button-instagram {
  border-color: #c1307f;
  background: linear-gradient(45deg, #d62976, #962fbf);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgb(0 0 128 / 15%);
}

.button-primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

/* Texto sobre fundo coral fica sempre navy: no tema escuro, cream sobre coral não teria contraste. */
.button-primary,
.header-cta:hover,
.header-cta:focus-visible,
.project-card:hover .project-more,
.project-card:focus-visible .project-more,
.social-link:hover,
.social-link:focus-visible,
.contact-email {
  color: var(--color-on-accent);
}

/* ---------- Hero ---------- */

.hero-title {
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 46ch;
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.hero-lead strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-lead a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hero-lead a:hover {
  text-decoration-thickness: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* isolation cria uma camada própria para a foto: a aura (z-index -1) fica atrás da imagem,
   mas não some atrás do fundo da página. */
.hero-photo {
  position: relative;
  isolation: isolate;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 6% 4% 20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 106 61 / 60%) 0%, rgb(255 106 61 / 25%) 45%, rgb(255 106 61 / 0%) 70%);
  filter: blur(28px);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: top;
  mask-image: linear-gradient(to bottom, #000 80%, rgb(0 0 0 / 40%));
}

/* ---------- Faixa de ferramentas ---------- */

/* Contraste de peso: a frase leve em navy e a palavra-chave pesada em coral. */
.tools-title {
  margin-top: 72px;
  color: var(--color-muted);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
}

.tools-title-accent {
  color: var(--color-accent-text);
  font-weight: 800;
}

/* As pontas da faixa somem aos poucos, em vez de cortar os ícones seco. */
.tools {
  margin-top: 16px;
  padding: 24px 0 32px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.tools-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.tools.is-animated .tools-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  /* Avisa o navegador que só o transform muda: a faixa vai para uma camada própria da placa de vídeo. */
  will-change: transform;
  animation: tools-scroll var(--loop-duration, 40s) linear infinite;
}

/* Margem em vez de gap: cada ícone carrega o próprio espaço, então a largura de uma volta fica exata. */
.tools.is-animated .tool {
  margin-right: 24px;
}

.tools.is-animated:hover .tools-track,
.tools.is-offscreen .tools-track {
  animation-play-state: paused;
}

@keyframes tools-scroll {
  from {
    transform: translateX(calc(-1 * var(--loop-width)));
  }

  to {
    transform: translateX(0);
  }
}

/* Cada ferramenta aparece como o seu logo oficial: o quadrado na cor da marca (--brand)
   e o ícone na cor que a marca usa por cima (--on). */
.tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: var(--brand);
  color: var(--on, #fff);
  font-size: 38px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.tool .icon {
  transition: transform 0.25s;
}

.tool:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgb(0 0 128 / 18%);
}

/* No hover, o ícone sobe e diminui, e o nome aparece embaixo, dentro do próprio quadrado. */
.tool-name {
  position: absolute;
  bottom: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
}

.tool:hover .icon {
  transform: translateY(-9px) scale(0.8);
}

.tool:hover .tool-name {
  opacity: 1;
}

.tool-python { --brand: #3776ab; }
.tool-c { --brand: #a8b9cc; --on: var(--navy); }
.tool-javascript { --brand: #f7df1e; --on: #000; }
.tool-html { --brand: #e34f26; }
.tool-css { --brand: #1572b6; }
.tool-react { --brand: #61dafb; --on: #20232a; }
.tool-vite { --brand: #646cff; }
.tool-supabase { --brand: #3ecf8e; --on: #1c1c1c; }
.tool-git { --brand: #f05032; }
.tool-github { --brand: #181717; }
.tool-typescript { --brand: #3178c6; }
.tool-arduino { --brand: #00878f; }
.tool-obsidian { --brand: #7c3aed; }

/* No tema escuro, o preto do GitHub sumiria no navy: o quadrado vira cream. */
:root[data-theme="dark"] .tool-github {
  --brand: var(--cream);
  --on: #181717;
}

/* ---------- Projetos ---------- */

/* Card de projeto: o card sobe com sombra, a camada escura com o nome some
   e o botão fica coral. Os detalhes ficam sempre visíveis (funciona no celular). */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: rgb(255 253 208 / 35%);
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--color-accent);
}

.project-cover-icon {
  width: 72px;
  height: 72px;
}

/* Imagem que ocupa a capa inteira, recortada no centro (ex.: o grafo do segundo cérebro). */
.project-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo do cliente no lugar do ícone; o fundo é o preto do próprio app da LarryKing. */
/* Absoluta para a altura em % valer sobre a capa, sem a imagem esticar o card. */
.project-cover-logo {
  position: absolute;
  inset: 0;
  width: auto;
  height: 62%;
  margin: auto;
}

.project-cover-larryking { background: #0d0d0d; }
.project-cover-streetlight { background: #24405a; }
.project-cover-brain { background: #17171c; }
.project-cover-portfolio { background: #00004d; }

/* O mesmo nome no card (home) e no banner (case): é assim que o navegador sabe que um vira o outro. */
.project-cover-larryking { view-transition-name: cover-larryking; }
.project-cover-streetlight { view-transition-name: cover-streetlight; }
.project-cover-brain { view-transition-name: cover-brain; }
.project-cover-portfolio { view-transition-name: cover-portfolio; }

.project-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: rgb(0 0 40 / 62%);
  color: var(--cream);
  text-align: center;
  transition: opacity 0.35s ease;
}

.project-name {
  font-size: 1.25rem;
}

.project-tools {
  display: flex;
  gap: 8px;
}

.project-tools li {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgb(255 253 208 / 30%);
  border-radius: 8px;
  background: rgb(255 253 208 / 16%);
  font-size: 16px;
}

.project-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 0.875rem;
}

.project-details p {
  line-height: 1.45;
}

.project-details strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
}

.project-more {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgb(0 0 80 / 18%);
}

.project-card:hover .project-shade,
.project-card:focus-visible .project-shade {
  opacity: 0;
}

.project-card:hover .project-more,
.project-card:focus-visible .project-more {
  background: var(--color-accent);
}

/* ---------- Além do Código: canal do YouTube ---------- */

.about-subtitle {
  margin: 48px 0 18px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  text-align: center;
}

/* O objetivo em destaque: um bloco só, com o filete coral da marca. */
.about-goal {
  max-width: 68ch;
  margin-inline: auto;
  padding: 22px 26px;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.075rem;
}

.beyond-title {
  margin-top: 64px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.beyond-lead {
  margin: 8px 0 24px;
  text-align: center;
}

.channel-card {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 30px 32px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: var(--color-surface);
}

.channel-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.channel-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
}

.channel-logo svg {
  width: 34px;
  height: 24px;
}

.channel-name {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.channel-handle {
  margin-left: 6px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

.channel-desc {
  margin-top: 4px;
  font-size: 0.95rem;
}

.channel-topics-label {
  margin: 22px 0 8px;
  font-size: 0.8rem;
}

.channel-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.channel-topics li {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.topic-ia { background: #e3e8ff; color: #1b2a9c; }
.topic-business { background: #ffe4d9; color: #a33a12; }
.topic-tech { background: #e6f6ea; color: #1d6b34; }
.topic-future { background: #f1e6ff; color: #5b23a8; }

.channel-subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #e60028;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-subscribe:hover,
.channel-subscribe:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgb(230 0 40 / 35%);
}

@media (max-width: 560px) {
  .channel-card {
    padding: 22px 20px;
  }

  .channel-head {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Além do Código: cards de soft skill ---------- */

.beyond-card {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beyond-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgb(0 0 80 / 12%);
}

.beyond-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgb(255 106 61 / 16%);
  color: var(--color-accent);
  font-size: 22px;
}

.beyond-skill {
  margin-bottom: 4px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.beyond-origin {
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.beyond-card > p:last-of-type {
  font-size: 0.925rem;
}

/* Linha de ícones embaixo do texto dos cards de Além do Código. */
.icon-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.icon-row li {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 19px;
}

/* ---------- Posts, vídeos e eventos ---------- */

.feed-empty {
  padding: 18px 20px;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.feed-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 48px 0 18px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.feed-subtitle .icon {
  color: #e62117;
}

/* Post em miniatura, no formato de um post do LinkedIn: autor, texto curto e imagem opcional. */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-card);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgb(0 0 80 / 14%);
}

.post-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: start;
  padding: 14px 14px 8px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-who {
  display: grid;
  line-height: 1.3;
}

.post-author {
  font-size: 0.875rem;
}

.post-headline,
.post-meta {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-brand {
  width: 18px;
  height: 18px;
  color: #0a66c2;
}

.post-text {
  display: -webkit-box;
  margin: 0 14px 12px;
  overflow: hidden;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-more {
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.post-card:hover .post-more {
  color: var(--color-accent-text);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  text-decoration: none;
}

.video-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-text);
  aspect-ratio: 16 / 9;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  color: #e62117;
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / 35%));
  transform: translate(-50%, -50%);
}

.video-card:hover .video-thumbnail,
.video-card:focus-visible .video-thumbnail {
  transform: scale(1.05);
}

.video-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Ingresso de evento: as cores vêm do events.json (--ev-from e --ev-to). */
.ticket {
  --ev-from: var(--navy);
  --ev-to: var(--coral);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.ticket:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgb(0 0 80 / 16%);
}

.ticket-stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  overflow: hidden;
  padding: 18px 10px;
  background: linear-gradient(150deg, var(--ev-from), var(--ev-to));
  color: #fff;
  text-align: center;
}

/* Bolhas decorativas no canhoto, no clima do evento. */
.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
}

.ticket-stub::before {
  top: -40px;
  right: -50px;
  width: 120px;
  height: 120px;
}

.ticket-stub::after {
  bottom: -20px;
  left: -20px;
  width: 70px;
  height: 70px;
}

.ticket-days {
  position: relative;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ticket-month {
  position: relative;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ticket-year {
  position: relative;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* O corte pontilhado entre o canhoto e o ingresso. */
.ticket-info {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px 22px;
  border-left: 2px dashed var(--color-line);
}

.ticket-name {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.ticket-tagline,
.ticket-where {
  font-size: 0.85rem;
}

.ticket-link {
  width: fit-content;
  margin-top: 4px;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

/* Próximo evento: aceso, com borda coral e um brilho que pulsa devagar no canhoto. */
.ticket.is-upcoming {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(255 106 61 / 18%);
}

.ticket.is-upcoming .ticket-stub::after {
  animation: ticket-glow 2.4s ease-in-out infinite;
}

@keyframes ticket-glow {
  50% {
    transform: scale(1.35);
    opacity: 0.4;
  }
}

/* Evento que já passou: ingresso usado. As cores desbotam e o canhoto ganha um carimbo. */
.ticket.is-past .ticket-stub {
  filter: saturate(0.25) brightness(0.95);
}

.ticket.is-past .ticket-info {
  opacity: 0.75;
}

.ticket.is-past:hover .ticket-stub {
  filter: none;
}

.ticket-stamp {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 2px solid rgb(255 255 255 / 85%);
  border-radius: 50%;
  color: #fff;
  transform: rotate(-14deg);
}

/* ---------- Contato ---------- */

.contact-lead {
  max-width: 44ch;
  margin: 0 auto;
  font-size: 1.075rem;
}

/* O e-mail é o contato principal: botão grande com o endereço escrito por extenso. */
.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  text-align: left;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgb(255 106 61 / 40%);
}

.contact-email .icon {
  width: 40px;
  height: 40px;
}

.contact-email-text {
  display: grid;
  min-width: 0;
}

.contact-email-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-email-address {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1.5px solid var(--color-line);
  border-radius: 22px;
  background: var(--color-surface);
  font-size: 38px;
  transition: transform 0.25s ease, background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: 0 10px 22px rgb(255 106 61 / 35%);
}

/* Mesmo balão do menu: o nome aparece embaixo do ícone. */
.social-link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover::after,
.social-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.contact-form {
  display: grid;
  gap: 16px;
  width: min(100%, 560px);
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
  text-align: left;
}

.contact-form-title {
  font-size: 1.25rem;
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--color-accent);
}

.contact-form-note {
  font-size: 0.85rem;
}

.contact-form .button {
  justify-self: start;
}

/* ---------- Rodapé ---------- */

.site-footer a {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

/* ---------- Tela de abertura (intro.js) ---------- */

/* As letras sobem, o ponto coral cai e quica, e a tela sobe. */
.intro body {
  visibility: hidden;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  color: var(--color-text);
  visibility: visible;
  animation: intro-lift 0.6s cubic-bezier(0.7, 0, 0.3, 1) 1.9s forwards;
}

.intro-word {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.intro-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: intro-up 0.35s ease forwards;
  animation-delay: calc(var(--i) * 60ms);
}

.intro-dot {
  display: inline-block;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(-1.2em);
  animation: intro-drop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.15s forwards;
}

@keyframes intro-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-drop {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-lift {
  to {
    transform: translateY(-100%);
  }
}
