/* MTEC · estilos comuns às páginas internas (projetos e experimentos): título, grade de cards, banner final */

  nav.main-nav { display: flex; align-items: center; gap: 36px; }

  nav.main-nav a {
    position: relative;
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
  }

  nav.main-nav a:hover,
  nav.main-nav a:focus-visible { color: var(--fg); }

  nav.main-nav a:focus-visible { outline: 1px solid var(--border-strong); outline-offset: 4px; border-radius: 2px; }

  nav.main-nav a[aria-current="page"] { color: var(--fg); }

  nav.main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--fg);
  }

  .cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fg);
    color: #0d0d0f;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-panel a.cta { margin-top: 16px; justify-content: center; color: #0d0d0f; border-bottom: none; font-size: 0.95rem; padding: 12px 20px; }

  .page-hero { padding-block: 56px 36px; }

  .page-title {
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.02;
    text-transform: uppercase;
  }

  .lede {
    margin: 0;
    max-width: 58ch;
    color: var(--fg-muted);
    font-size: 1.02rem;
    line-height: 1.6;
  }

  /* ---------- Grade ---------- */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  }

  a.card:hover,
  a.card:focus-visible {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    background: color-mix(in srgb, var(--fg) 3%, transparent);
  }

  a.card:focus-visible { outline: 2px solid var(--border-strong); outline-offset: 3px; }

  .card.is-upcoming { opacity: 0.6; }

  .thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .thumb > svg { width: 28px; height: 28px; color: var(--fg-muted); }

  .card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 6px 12px;
    padding: 16px 18px 18px;
  }

  .card-name { grid-column: 1; margin: 0; font-size: 1.02rem; font-weight: 600; }

  .card-cat { grid-column: 1; margin: 0; font-size: 0.82rem; color: var(--fg-muted); }

  .card-desc { grid-column: 1; margin: 8px 0 0; font-size: 0.85rem; color: var(--fg-muted); line-height: 1.45; }

  .card-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    width: 18px;
    height: 18px;
    color: var(--fg-muted);
    transition: transform 0.25s ease, color 0.25s ease;
  }

  a.card:hover .card-arrow { transform: translateX(3px); color: var(--fg); }

  /* ---------- CTA final ---------- */
  .cta-wrap { padding-block: 64px; }

  .cta-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
  }

  .cta-cube {
    width: 112px;
    aspect-ratio: 1 / 1;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--fg-muted);
  }

  .cta-cube strong { display: block; color: var(--fg); font-size: 0.78rem; font-weight: 600; }

  .cta-banner h2 {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
  }

  .cta-banner p { margin: 0; color: var(--fg-muted); font-size: 0.95rem; line-height: 1.5; max-width: 52ch; }

  .cta-cube[data-cube] { width: 136px; border: none; background: transparent; padding: 0; }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--fg);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 13px 22px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .btn-outline svg { width: 16px; height: 16px; transition: transform 0.2s ease; }

  .btn-outline:hover { border-color: var(--fg-muted); background: color-mix(in srgb, var(--fg) 5%, transparent); }

  .btn-outline:hover svg { transform: translateX(3px); }

  .btn-outline:focus-visible { outline: 2px solid var(--border-strong); outline-offset: 3px; }

  .footer-tagline { margin: 14px 0 20px; max-width: 30ch; font-size: 0.85rem; color: var(--fg-muted); line-height: 1.55; }

  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 20px;
    font-size: 0.8rem;
    color: var(--fg-muted);
  }

  .footer-bottom p { margin: 0; }

  /* ---------- Responsivo ---------- */
  @media (max-width: 900px) {
    nav.main-nav, header > .cta { display: none; }
    .menu-toggle { display: flex; }

    .grid { grid-template-columns: repeat(2, 1fr); }

    .cta-banner { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .cta-cube[data-cube] { width: 112px; }
    .btn-outline { justify-self: start; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
  }

  @media (max-width: 600px) {
    .page-hero { padding-block: 36px 28px; }
    .grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  }
