/* ============================================================
   SECTIONS — estilos específicos de cada bloco
   ============================================================ */

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: var(--sp-12);
  align-items: center;
}
.hero__badge { margin-bottom: var(--sp-8); }

.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  margin-bottom: var(--sp-6);
}
/* A máscara mantém a animação de entrada e inclui a área dos descendentes,
   evitando cortar caracteres como a cedilha de "Graça". */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0 0.34em;
  margin: -0.08em 0 -0.26em;
}
/* cada palavra sobe na entrada (JS split) */
.hero__title .word {
  display: inline-block;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--wi, 0) * 80ms + 200ms);
}
.hero__title .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-hover) 60%, var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes rise {
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .word { transform: none; animation: none; }
}

.hero__role {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-6);
}
.hero__role .bar {
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.hero__lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: var(--sp-8);
}
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.hero__meta {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.hero__meta-item .n {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
}
.hero__meta-item .l {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Retrato / slot de foto */
.hero__portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--elev), var(--surface));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__portrait-media {
  position: absolute;
  inset: -6% 0;
  will-change: transform;
}
.hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 60%, transparent), transparent 45%);
}
/* placeholder quando não há foto ainda */
.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--sp-3);
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.portrait-placeholder svg { width: 42px; height: 42px; justify-self: center; opacity: 0.5; }
.hero__portrait-tag {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-8);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scroll .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-full);
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheel 1.8s var(--ease-in-out) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============ MARQUEE ============ */
.marquee {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--sp-6);
  border-block: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--sp-10);
  animation: scroll-x 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee__item span { color: var(--accent); }
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; }
}

/* ============ SOBRE ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.about__body p {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  max-width: 60ch;
}
.about__body p b { color: var(--text); font-weight: 600; }
.about__body p .accent { font-weight: 600; }
.about__signature {
  margin-top: var(--sp-8);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text);
}
.about__signature small {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-top: var(--sp-1);
}

.about__aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.stat {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat__n .suffix { color: var(--accent); }
.stat__l {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Card "Atualmente" */
.now-card {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.now-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.now-card__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}
.now-card__row:first-of-type { border-top: none; }
.now-card__row .ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.now-card__row .ic svg { width: 16px; height: 16px; }
.now-card__row .t { font-size: var(--fs-sm); color: var(--text); }
.now-card__row .s { font-size: var(--fs-xs); color: var(--text-muted); }

/* ============ STACK ============ */
.stack__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}
.filter-btn {
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.stack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-4);
}
.tech {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  transition: transform var(--dur) var(--ease-out-expo), border-color var(--dur-fast),
    opacity var(--dur), filter var(--dur);
}
.tech:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.tech.is-dimmed {
  opacity: 0.25;
  filter: grayscale(1);
}
.tech__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--elev);
  color: var(--text);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.tech:hover .tech__icon { color: var(--accent); background: var(--accent-soft); }
.tech__icon svg { width: 24px; height: 24px; }
.tech__name { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.tech__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ EXPERIÊNCIA (timeline) ============ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.timeline__line {
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline__line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--fill, 0%);
  background: linear-gradient(var(--accent), var(--accent-hover));
  transition: height var(--dur-slow) var(--ease-out-expo);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-4) 0;
}
.tl-item__dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--text-muted);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.tl-item__dot svg { width: 18px; height: 18px; }
.tl-item.is-visible .tl-item__dot {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tl-item__body {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out-expo);
}
.tl-item__body:hover { border-color: var(--border-strong); transform: translateX(4px); }
.tl-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.tl-item__role { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.tl-item__company { color: var(--accent); font-weight: 600; }
.tl-item__period {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}
.tl-item__desc { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.tl-item__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ============ PROJETOS ============ */
.projects__grid {
  display: grid;
  gap: var(--sp-8);
}
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 420px;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.project:nth-child(even) .project__visual { order: 2; }
.project__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-12);
}
.project__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: var(--ls-label);
}
.project__title {
  font-size: var(--fs-xl);
  line-height: 1.04;
}
.project__desc { color: var(--text-muted); font-size: var(--fs-base); max-width: 46ch; }
.project__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.project__meta {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.project__meta div .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.project__meta div .v { font-size: var(--fs-sm); color: var(--text); font-weight: 600; }
.project__links { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); }

.project__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(160deg, var(--elev), var(--surface));
  border-left: 1px solid var(--border);
}
.project:nth-child(even) .project__visual { border-left: none; border-right: 1px solid var(--border); }
.project__mock {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 84%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateZ(40px);
  transition: transform var(--dur) var(--ease-out-expo), border-color var(--dur-fast),
    box-shadow var(--dur);
  cursor: pointer;
}
.project:hover .project__mock { transform: translateZ(40px) scale(1.015); }
.project__mock:hover {
  border-color: var(--accent);
  box-shadow: 0 40px 80px -32px var(--accent-glow);
}
/* Dica "Abrir site" que surge sobre o print no hover */
.project__open {
  position: absolute;
  inset: auto var(--sp-3) var(--sp-3) auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out-back);
}
.project__open svg { width: 14px; height: 14px; }
.project__mock:hover .project__open,
.project__mock:focus-visible .project__open {
  opacity: 1;
  transform: translateY(0);
}
.project__mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.project__mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.project__shot {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
.project__mock-body {
  display: grid;
  place-items: center;
  height: 100%;
  padding: var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-faint);
  text-align: center;
}
.project__badge {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transform: translateZ(60px);
}

/* ============ TERMINAL / CONSOLE ============ */
.console {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.console__dots { display: flex; gap: 7px; }
.console__dots i { width: 12px; height: 12px; border-radius: 50%; }
.console__dots i:nth-child(1) { background: #ff5f57; }
.console__dots i:nth-child(2) { background: #febc2e; }
.console__dots i:nth-child(3) { background: #28c840; }
.console__title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-inline: auto;
}
.console__body {
  padding: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.9;
  min-height: 280px;
  color: var(--text);
}
.console__line { white-space: pre-wrap; word-break: break-word; }
.console__prompt { color: var(--accent); }
.console__path { color: #37d67a; }
.console__out { color: var(--text-muted); }
.console__key { color: var(--accent-hover); }
.console__cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.console__hint {
  margin-top: var(--sp-4);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.console__hint kbd {
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--elev);
  color: var(--text-muted);
}

/* ============ CONQUISTAS (bento) ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: var(--sp-4);
}
.bento__cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  overflow: hidden;
}
.bento__cell--wide { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--feature {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 60%),
    color-mix(in srgb, var(--surface) 60%, transparent);
}
.bento__ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.bento__ic svg { width: 22px; height: 22px; }
.bento__big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.bento__t { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.bento__s { font-size: var(--fs-sm); color: var(--text-muted); }
.bento__cell--feature .bento__t { font-size: var(--fs-lg); }

/* ============ FORMAÇÃO ============ */
.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.edu-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.edu-card__head { display: flex; align-items: center; gap: var(--sp-4); }
.edu-card__logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--elev);
  color: var(--accent);
  flex-shrink: 0;
}
.edu-card__logo svg { width: 26px; height: 26px; }
.edu-card__inst { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.edu-card__period { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.edu-card__deg { color: var(--text); font-weight: 600; }
.edu-card__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.edu-card__list li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.edu-card__list li::before { content: "▹"; color: var(--accent); }

/* ============ CONTATO ============ */
.contact { text-align: center; }
.contact__big {
  font-size: var(--fs-2xl);
  line-height: 1.02;
  margin-bottom: var(--sp-6);
}
.contact__big a {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
.contact__big a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out-expo);
}
.contact__big a:hover::after { transform: scaleX(1); }
.contact__sub {
  color: var(--text-muted);
  font-size: var(--fs-md);
  max-width: 48ch;
  margin: 0 auto var(--sp-10);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}
.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-width: 0;
  padding: var(--sp-5);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: border-color var(--dur-fast), transform var(--dur) var(--ease-out-expo);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-card > div { min-width: 0; }
.contact-card__ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--elev);
  color: var(--text);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.contact-card:hover .contact-card__ic { color: var(--accent); background: var(--accent-soft); }
.contact-card__ic svg { width: 18px; height: 18px; }
.contact-card .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.contact-card .v {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.copy-feedback {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: #37d67a;
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.copy-feedback.show { opacity: 1; }

/* ============ RESPONSIVO GLOBAL DAS SEÇÕES ============ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hero__portrait { justify-self: start; width: min(100%, 320px); }
  .about__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__visual { order: 0; }
  .project__visual { border-left: none !important; border-right: none !important; border-top: 1px solid var(--border); min-height: 320px; }
  .project__body { padding: var(--sp-8); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--feature { grid-column: span 2; grid-row: span 1; }
  .edu__grid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero__meta { gap: var(--sp-5); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide, .bento__cell--feature, .bento__cell--tall { grid-column: auto; grid-row: auto; }
  .project__meta { gap: var(--sp-4); }
}
