/* ==========================================================================
   Anderson Moreira — Portfólio (versão estática)
   Tokens, temas, layout e componentes — extraído do template DC
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --accent-base: #93aef0;
  --accent: var(--accent-base);
  --accent-ink: #0d1228;
  --accent-soft: color-mix(in oklab, var(--accent-base) 16%, transparent);
  --accent-dim: color-mix(in oklab, var(--accent-base) 36%, transparent);
  --bg: #121215;
  --surface: #1a1a1e;
  --surface-2: #222228;
  --raised: #1d1d22;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(255,255,255,0.13);
  --border-strong: rgba(255,255,255,0.16);
  --text: #e8e7e3;
  --text-dim: #b0afaa;
  --muted: #a3a8b3;
  --faint: #9aa0ad;
  --nav-bg: rgba(18,18,21,0.84);
  --glow-soft: rgba(147,174,240,0.13);
  --iso-label: #a3a8b3;
  --verified-border: #2a4d3d;
  --verified-ink: #5fb08a;
}
html[data-theme="light"] {
  color-scheme: light;
  --accent: color-mix(in oklab, var(--accent-base) 50%, #1a2a52);
  --accent-ink: #f6f8ff;
  --accent-soft: color-mix(in oklab, var(--accent-base) 18%, transparent);
  --accent-dim: color-mix(in oklab, var(--accent-base) 42%, transparent);
  --bg: #f8f7f3;
  --surface: #fefefd;
  --surface-2: #efede8;
  --raised: #eeece6;
  --border: rgba(20,20,15,0.09);
  --border-accent: rgba(20,20,15,0.14);
  --border-strong: rgba(20,20,15,0.22);
  --text: #1d1d1a;
  --text-dim: #4a4944;
  --muted: #63635b;
  --faint: #52524c;
  --nav-bg: rgba(248,247,243,0.87);
  --glow-soft: rgba(147,174,240,0.10);
  --iso-label: var(--muted);
  --verified-border: rgba(42,77,61,0.34);
  --verified-ink: #2c6b4f;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; color-scheme: dark; }
section[id] { scroll-margin-top: 84px; }
@media (max-height: 740px) {
  #hero { padding-top: 48px !important; padding-bottom: 56px !important; }
}
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  transition: background-color .35s ease, border-color .35s ease;
}
header, footer, section { transition: background-color .35s ease, border-color .35s ease; }
html.scrolled header { box-shadow: 0 10px 30px rgba(0,0,0,0.10); }
a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--text); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
::selection { background: var(--accent-soft); color: var(--text); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.mono { font-family: 'IBM Plex Mono', monospace; }
.container { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Animações ---------- */
@keyframes pulse-ring { 0%,100% { opacity: 0.35; transform: scale(0.96); } 50% { opacity: 0.65; transform: scale(1.04); } }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 78% { opacity: 0.9; } 100% { transform: translateY(244px); opacity: 0; } }
@keyframes cell-blink { 0%,100% { opacity: 0.18; } 50% { opacity: 0.55; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes layer-in { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes cell-lit {
  0% { background: var(--surface-2); border-color: var(--border); }
  40% { background: var(--accent-soft); border-color: var(--accent-dim); }
  100% { background: var(--accent-soft); border-color: var(--accent-dim); }
}

@media (prefers-reduced-motion: no-preference) {
  html.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); }
}
html.js-motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .iso-stage[data-focus="ui"] .iso-l4 i {
    background: var(--accent-soft);
    border-color: var(--accent-dim);
  }
  .iso-stage[data-focus="api"] .iso-l3 .ring { transform: none; opacity: 0.65; }
  .iso-stage[data-focus="api"] .iso-l3 .core { transform: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -64px; left: 16px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: top .15s;
}
.skip-link:focus { top: 16px; color: var(--accent-ink); }

/* ---------- Header / navegação ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(var(--sp, 0));
  transform-origin: 0 50%; opacity: 0.75; pointer-events: none;
}
.nav { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 20px; }
.logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--text); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px;
}
.logo::before {
  content: ''; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 12px var(--glow-soft);
}
.nav-desktop { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500; position: relative; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1.5px no-repeat;
  transition: color .2s, background-size .28s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover { color: var(--text); background-size: 100% 1.5px; }
.nav-links a.active { color: var(--text); background-size: 100% 1.5px; }
.nav-sep { width: 1px; height: 18px; background: var(--border-accent); }

.lang-group { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang-btn {
  border: none; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px;
  padding: 4px 9px; border-radius: 6px; background: transparent; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.mobile-menu .lang-btn { font-size: 14px; padding: 8px 16px; }

.icon-btn {
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.theme-icon {
  width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.btn {
  display: inline-block; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 8px;
  transition: filter .18s, box-shadow .18s, transform .25s cubic-bezier(.34,1.56,.64,1), border-color .18s, background .18s, color .18s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--accent-ink); transform: translateY(-1px); }

.nav-mobile-btns { display: none; align-items: center; gap: 8px; margin-left: auto; }
.nav-mobile-btns .icon-btn { width: 40px; height: 40px; }
.menu-btn { flex-direction: column; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 1px; display: block; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 12px 24px 28px; flex-direction: column; gap: 2px;
  animation: fade-up .25s ease both;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.nav-item {
  color: var(--text); font-size: 17px; font-weight: 500; padding: 14px 4px;
  border-bottom: 1px solid var(--border); transition: color .2s;
}
.mobile-menu a.nav-item:hover { color: var(--accent); }
.mobile-menu a.nav-item.active { color: var(--accent); }
.mobile-menu-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.mobile-menu-row .btn { font-size: 15px; padding: 11px 20px; margin-left: auto; }

@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .nav-mobile-btns { display: flex; }
}

@media (min-width: 1024px) and (max-width: 1120px) {
  .nav { gap: 14px; padding-inline: 18px; }
  .nav-desktop,
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 13px; }
  .nav-desktop .btn { padding-inline: 14px; }
}

/* ---------- Hero ---------- */
#hero {
  display: flex; flex-wrap: wrap; gap: clamp(40px, 8vw, 80px); align-items: center;
  padding-top: clamp(56px, 7vh, 120px); padding-bottom: clamp(56px, 8vh, 100px);
}
.hero-text { flex: 1 1 500px; min-width: min(100%, 320px); }
.eyebrow {
  font-size: 13px; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 20px; font-weight: 500;
}
h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 20px;
  text-wrap: pretty;
}
@media (max-width: 480px) {
  h1 { line-height: 1.12; }
}
.hero-lead {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.45; font-weight: 500; color: var(--text-dim);
  margin: 0 0 12px; max-width: 540px; text-wrap: pretty;
}
.hero-support {
  font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; max-width: 520px;
  text-wrap: pretty;
}
.hero-location {
  font-size: 12.5px; color: var(--accent);
  margin: 0 0 32px; display: flex; align-items: center; gap: 8px; opacity: 0.85;
}
.hero-location::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--glow-soft);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-facts {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 12.5px; line-height: 1.5;
  color: var(--faint); max-width: 560px;
}
/* Separador no item seguinte, nunca no anterior: numa quebra de linha
   ele vira marcador no início da linha em vez de ficar pendurado no fim. */
.hero-facts li { display: flex; align-items: center; gap: 14px; }
.hero-facts li:not(:first-child)::before { content: '·'; color: var(--accent-dim); }
.hero-ctas .btn { font-size: 15px; padding: 14px 28px; border-radius: 10px; }
.hero-ctas .btn-primary:hover { transform: translateY(-2px); }
.hero-resume-link {
  margin: 20px 0 0;
  font-size: 14px;
}
.hero-resume-link a {
  color: var(--muted);
  border-bottom: 1px solid var(--border-accent);
  transition: color .18s, border-color .18s;
}
.hero-resume-link a:hover { color: var(--accent); border-color: var(--accent); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); transform: translateY(-2px); }
.btn-dashed { border: 1.5px dashed var(--border-strong); color: var(--muted); }
.btn-dashed:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Visual isométrico ---------- */
.iso-stage {
  flex: 1 1 340px; min-width: 280px; max-width: 440px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.iso-wrap { width: 100%; display: flex; justify-content: center; perspective: 1000px; }
.iso { position: relative; width: min(100%, 360px); height: 420px; }
.iso-layer {
  position: absolute; left: 50%; width: 200px; height: 200px; margin-left: -100px;
  transform: rotateX(55deg) rotateZ(-45deg); border-radius: 16px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 16px 36px rgba(0,0,0,0.16); box-sizing: border-box;
  transition: bottom .45s cubic-bezier(.22,1,.36,1), opacity .35s ease, border-color .3s ease, box-shadow .35s ease;
  cursor: pointer;
  padding: 0; background: none; font: inherit; color: inherit; appearance: none; -webkit-appearance: none;
}
.iso-layer:focus { outline: none; }
.iso-layer:focus-visible {
  outline: 2.5px solid var(--accent); outline-offset: 4px;
}
.iso-layer:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
}
.iso-l1 { bottom: 10px; background: color-mix(in oklab, var(--raised) 78%, transparent); display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; animation: layer-in .6s cubic-bezier(.22,1,.36,1) .5s backwards; }
.iso-l1 i { height: 12px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); transition: background .3s, border-color .3s; }
.iso-l1 i:nth-child(3) { width: 60%; }
.iso-l1 i:nth-child(4) { width: 40%; margin-top: 4px; background: var(--accent-soft); border-color: var(--accent-dim); }
.iso-l2 { bottom: 105px; background: color-mix(in oklab, var(--raised) 80%, transparent); display: flex; align-items: center; justify-content: center; gap: 16px; animation: layer-in .6s cubic-bezier(.22,1,.36,1) .62s backwards; }
.iso-l2 i { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-accent); transition: border-color .3s, box-shadow .3s, background .3s; }
.iso-l3 { bottom: 200px; border: 1.5px solid var(--accent); background: color-mix(in oklab, var(--raised) 82%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,0.18), 0 0 28px var(--glow-soft); display: flex; align-items: center; justify-content: center; animation: layer-in .6s cubic-bezier(.22,1,.36,1) .74s backwards; }
.iso-l3 .ring { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent-dim); opacity: 0.35; position: absolute; animation: pulse-ring 4.2s ease-in-out infinite; transition: opacity .35s, transform .45s cubic-bezier(.22,1,.36,1); }
.iso-l3 .core { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; transition: box-shadow .35s, transform .35s; }
.iso-l3 .core i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow-soft); }
.iso-l4 { bottom: 295px; background: color-mix(in oklab, var(--raised) 76%, transparent); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 24px; animation: layer-in .6s cubic-bezier(.22,1,.36,1) .86s backwards; }
.iso-l4 i { border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); }
.iso-l4 i.blink { background: var(--accent-soft); border-color: var(--accent-dim); animation: cell-blink 3.8s ease-in-out infinite; }
.iso-beam { position: absolute; bottom: 296px; left: calc(50% - 1px); width: 1.5px; height: 250px; background: linear-gradient(to top, transparent, var(--accent-dim) 20%, var(--accent-dim) 80%, transparent); opacity: 0.3; animation: fade-in .6s ease 1s backwards; transition: opacity .35s; }
.iso-drop { position: absolute; bottom: 296px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: drop 3.4s linear infinite; opacity: 0.8; transition: opacity .35s; }
.iso-drop.d2 { animation-delay: 1.7s; }
.iso-label {
  position: absolute; right: 2px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  color: var(--iso-label); letter-spacing: 0.08em;
  transition: color .3s ease, opacity .3s ease, bottom .45s cubic-bezier(.22,1,.36,1);
}
.iso-label.l-api { color: var(--accent); }
.iso-stage[data-focus] .iso-label.l-api { color: var(--iso-label); }
.iso-stage[data-focus="api"] .l-api { color: var(--accent); }
.iso-label.l-ui { bottom: 388px; animation: fade-in .5s ease 1.18s backwards; }
.iso-label.l-api { bottom: 293px; animation: fade-in .5s ease 1.12s backwards; }
.iso-label.l-services { bottom: 198px; animation: fade-in .5s ease 1.06s backwards; }
.iso-label.l-data { bottom: 103px; animation: fade-in .5s ease 1s backwards; }

@media (prefers-reduced-motion: no-preference) {
  .iso-layer, .iso-label, .iso-beam, .iso-drop {
    transition: translate .32s ease-out, rotate .32s ease-out, bottom .45s cubic-bezier(.22,1,.36,1), opacity .35s ease, border-color .3s ease, box-shadow .35s ease, color .3s ease;
  }
}

/* Fan-out + focus reveal */
.iso-stage[data-focus] .iso-layer { opacity: 0.38; }
.iso-stage[data-focus] .iso-label { opacity: 0.35; }
.iso-stage[data-focus] .iso-beam,
.iso-stage[data-focus] .iso-drop { opacity: 0.12; }
.iso-stage[data-focus] .iso-l4 i.blink { animation-play-state: paused; }
.iso-stage[data-focus] .iso-l3 .ring { animation-play-state: paused; }

.iso-stage.iso-fan[data-focus="ui"] .iso-l4 {
  bottom: 318px; opacity: 1; border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0,0,0,0.2), 0 0 32px var(--glow-soft);
}
.iso-stage.iso-fan[data-focus="ui"] .iso-l3 { bottom: 188px; }
.iso-stage.iso-fan[data-focus="ui"] .iso-l2 { bottom: 98px; }
.iso-stage.iso-fan[data-focus="ui"] .iso-l1 { bottom: 8px; }
.iso-stage.iso-fan[data-focus="ui"] .l-ui { bottom: 412px; }
.iso-stage.iso-fan[data-focus="ui"] .l-api { bottom: 281px; }
.iso-stage.iso-fan[data-focus="ui"] .l-services { bottom: 191px; }
.iso-stage.iso-fan[data-focus="ui"] .l-data { bottom: 101px; }

.iso-stage[data-focus="ui"] .iso-l4 {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0,0,0,0.2), 0 0 32px var(--glow-soft);
}
.iso-stage[data-focus="ui"] .l-ui { opacity: 1; color: var(--accent); }
.iso-stage[data-focus="ui"] .iso-l4 i {
  animation: cell-lit .55s ease forwards;
}
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(1) { animation-delay: 0s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(2) { animation-delay: .05s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(3) { animation-delay: .1s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(4) { animation-delay: .15s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(5) { animation-delay: .2s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(6) { animation-delay: .25s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(7) { animation-delay: .3s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(8) { animation-delay: .35s; }
.iso-stage[data-focus="ui"] .iso-l4 i:nth-child(9) { animation-delay: .4s; }

.iso-stage.iso-fan[data-focus="api"] .iso-l3 { bottom: 218px; }
.iso-stage.iso-fan[data-focus="api"] .iso-l4 { bottom: 305px; }
.iso-stage.iso-fan[data-focus="api"] .iso-l2 { bottom: 92px; }
.iso-stage.iso-fan[data-focus="api"] .iso-l1 { bottom: 6px; }
.iso-stage.iso-fan[data-focus="api"] .l-api { bottom: 311px; }
.iso-stage.iso-fan[data-focus="api"] .l-ui { bottom: 398px; }
.iso-stage.iso-fan[data-focus="api"] .l-services { bottom: 185px; }
.iso-stage.iso-fan[data-focus="api"] .l-data { bottom: 99px; }

.iso-stage[data-focus="api"] .iso-l3 {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 22px 48px rgba(0,0,0,0.22), 0 0 40px var(--glow-soft);
}
.iso-stage[data-focus="api"] .l-api { opacity: 1; color: var(--accent); }
.iso-stage[data-focus="api"] .iso-l3 .ring {
  opacity: 0.75; transform: scale(1.22); animation: none;
}
.iso-stage[data-focus="api"] .iso-l3 .core {
  transform: scale(1.08); box-shadow: 0 0 20px var(--glow-soft);
}

.iso-stage.iso-fan[data-focus="services"] .iso-l2 { bottom: 122px; }
.iso-stage.iso-fan[data-focus="services"] .iso-l4 { bottom: 308px; }
.iso-stage.iso-fan[data-focus="services"] .iso-l3 { bottom: 208px; }
.iso-stage.iso-fan[data-focus="services"] .iso-l1 { bottom: 4px; }
.iso-stage.iso-fan[data-focus="services"] .l-services { bottom: 215px; }
.iso-stage.iso-fan[data-focus="services"] .l-ui { bottom: 401px; }
.iso-stage.iso-fan[data-focus="services"] .l-api { bottom: 301px; }
.iso-stage.iso-fan[data-focus="services"] .l-data { bottom: 97px; }

.iso-stage[data-focus="services"] .iso-l2 {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0,0,0,0.2), 0 0 28px var(--glow-soft);
}
.iso-stage[data-focus="services"] .l-services { opacity: 1; color: var(--accent); }
.iso-stage[data-focus="services"] .iso-l2 i {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 12px var(--glow-soft);
}
.iso-stage[data-focus="services"] .iso-l2 i:nth-child(1) { transition-delay: 0s; }
.iso-stage[data-focus="services"] .iso-l2 i:nth-child(2) { transition-delay: .08s; }
.iso-stage[data-focus="services"] .iso-l2 i:nth-child(3) { transition-delay: .16s; }

.iso-stage.iso-fan[data-focus="data"] .iso-l1 { bottom: 28px; }
.iso-stage.iso-fan[data-focus="data"] .iso-l4 { bottom: 308px; }
.iso-stage.iso-fan[data-focus="data"] .iso-l3 { bottom: 210px; }
.iso-stage.iso-fan[data-focus="data"] .iso-l2 { bottom: 112px; }
.iso-stage.iso-fan[data-focus="data"] .l-data { bottom: 121px; }
.iso-stage.iso-fan[data-focus="data"] .l-ui { bottom: 401px; }
.iso-stage.iso-fan[data-focus="data"] .l-api { bottom: 303px; }
.iso-stage.iso-fan[data-focus="data"] .l-services { bottom: 205px; }

.iso-stage[data-focus="data"] .iso-l1 {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0,0,0,0.2), 0 0 28px var(--glow-soft);
}
.iso-stage[data-focus="data"] .l-data { opacity: 1; color: var(--accent); }
.iso-stage[data-focus="data"] .iso-l1 i {
  background: var(--accent-soft); border-color: var(--accent-dim);
}

.iso-caption {
  margin: 0; min-height: 2.8em; max-width: 300px; text-align: center;
  font-size: 13px; line-height: 1.5;
  color: var(--muted); letter-spacing: 0.01em;
  transition: color .3s ease, opacity .3s ease;
}
.iso-caption-title {
  display: block; margin-bottom: 4px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}
.iso-caption-title[hidden] { display: none; }
.iso-caption-desc {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; line-height: 1.5;
  color: var(--text-dim);
}
.iso-stage[data-focus] .iso-caption-desc { color: var(--text-dim); }
.iso-stage[data-focus] .iso-caption { color: var(--text-dim); }

.iso-compact {
  display: none; flex: 0 0 auto; justify-content: center; align-items: center;
  margin: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px;
  background: color-mix(in oklab, var(--raised) 88%, transparent); cursor: pointer;
  color: inherit; font: inherit; appearance: none; -webkit-appearance: none;
  transition: border-color .2s ease, background .2s ease;
  perspective: 400px;
}
.iso-compact:hover { border-color: var(--border-accent); background: var(--raised); }
.iso-compact-inner { position: relative; width: 200px; height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; pointer-events: none; transform-style: preserve-3d; }
.iso-compact-ring {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: var(--raised); position: relative; z-index: 1;
  box-shadow:
    0 0 10px var(--glow-soft),
    0 3px 0 0 var(--border),
    0 7px 0 0 color-mix(in oklab, var(--border) 55%, transparent),
    0 11px 0 0 color-mix(in oklab, var(--border) 28%, transparent);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .3s;
}
.iso-compact-ring i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow-soft); }
.iso-compact-line { flex: 0 0 26px; width: 1px; height: 26px; background: linear-gradient(to bottom, var(--accent-dim), transparent); transition: opacity .3s ease; }
.iso-compact-labels { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.iso-compact-labels span {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; line-height: 1.4; color: var(--faint);
  transition: color .25s ease, opacity .25s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.iso-stage[data-focus] .iso-compact-labels span { opacity: 0.4; }
.iso-stage[data-focus="ui"] .iso-compact-labels [data-layer="ui"],
.iso-stage[data-focus="api"] .iso-compact-labels [data-layer="api"],
.iso-stage[data-focus="services"] .iso-compact-labels [data-layer="services"],
.iso-stage[data-focus="data"] .iso-compact-labels [data-layer="data"] {
  opacity: 1; color: var(--accent); transform: translateZ(6px) scale(1.12);
}

.iso-stage[data-focus] .iso-compact-ring {
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 0 18px var(--glow-soft),
    0 5px 0 0 var(--accent),
    0 13px 0 0 color-mix(in oklab, var(--accent) 50%, transparent),
    0 22px 0 0 color-mix(in oklab, var(--accent) 22%, transparent);
}
.iso-stage[data-focus] .iso-compact-line { opacity: 0.45; }

/* Tablet/mobile: isométrico completo com escala discreta.
   Números puros — clamp() misturando length e number zera o scale no computed value. */
@media (max-width: 1023px) {
  #hero { gap: clamp(48px, 9vw, 72px); }
  .hero-ctas { margin-bottom: 12px; }
  .iso-compact { display: none; }
  .iso-stage {
    --iso-scale: 0.80;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin-top: clamp(28px, 6vw, 40px);
    padding-top: 8px;
    gap: 12px;
  }
  .iso-wrap {
    display: flex;
    height: calc(420px * var(--iso-scale));
    overflow: visible;
  }
  .iso {
    transform: scale(var(--iso-scale));
    transform-origin: top center;
  }
  .iso-caption { max-width: min(100%, 280px); }
}

@media (max-width: 767px) {
  #hero { gap: clamp(36px, 8vw, 56px); }
  .iso-stage { --iso-scale: 0.66; }
}

@media (max-width: 400px) {
  .iso-stage { --iso-scale: 0.58; }
}

/* ---------- Seções ---------- */
section { border-top: 1px solid var(--border); }
section.alt { background: var(--raised); }
.section-pad { padding-top: clamp(56px, 7vh, 88px); padding-bottom: clamp(56px, 7vh, 88px); }
h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 3.8vw, 38px); letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: pretty; }
main { position: relative; z-index: 2; }

/* ---------- Sobre ---------- */
.about-box { max-width: 960px; }
.about-layout {
  display: grid;
  gap: 20px 48px;
  grid-template-areas:
    "title"
    "media"
    "copy";
  align-items: start;
}
.about-title { grid-area: title; margin-bottom: 0; }
.about-media { grid-area: media; }
.about-copy { grid-area: copy; min-width: 0; }
.about-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 14px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  display: block;
}
html[data-theme="light"] .about-photo {
  box-shadow: 0 10px 28px rgba(20, 20, 15, 0.10);
}
.about-copy p.body { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; text-wrap: pretty; }
.about-copy p.body:last-of-type { margin: 0; }
.about-langs { font-size: 12.5px; color: var(--faint); margin: 20px 0 0; }
.about-quote {
  max-width: 620px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.about-quote p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}
.about-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas:
      "media title"
      "media copy";
    column-gap: clamp(36px, 5vw, 56px);
    row-gap: 16px;
  }
  .about-media {
    position: sticky;
    top: 96px;
  }
  .about-photo {
    width: 280px;
    height: 280px;
  }
}

/* ---------- Experiência (timeline) ---------- */
.timeline { display: flex; flex-direction: column; max-width: 780px; }
.job { display: grid; grid-template-columns: 18px 1fr; gap: clamp(18px, 3.5vw, 36px); }
.job-rail { display: flex; flex-direction: column; align-items: center; }
.job-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); background: var(--raised); flex-shrink: 0; margin-top: 7px; }
.job-line { width: 1px; flex: 1; background: var(--border-accent); min-height: 12px; }
.job:last-child .job-line { display: none; }
.job-body { padding-bottom: 48px; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 4px; }
.job-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.job-period { font-size: 12.5px; color: var(--faint); }
.job-role { font-size: 14.5px; font-weight: 600; color: var(--accent); margin: 0 0 2px; }
.job-loc { font-size: 13px; color: var(--faint); margin: 0 0 16px; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.job-card p { font-size: 14px; line-height: 1.65; color: var(--text-dim); margin: 0; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 11.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; }
.chip-lg { font-size: 12px; color: var(--text-dim); }
.experience-next {
  max-width: 780px;
  margin-top: -8px;
  padding: 22px 0;
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.experience-next p {
  max-width: 510px;
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}
.experience-next .btn { flex-shrink: 0; }
.stack-strata:has(+ .experience-next) .stack-row:last-child {
  border-bottom: none;
}

@media (max-width: 640px) {
  .experience-next { align-items: flex-start; flex-direction: column; }
}

/* ---------- Projetos ---------- */
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proj-intro {
  max-width: 670px;
  margin: -8px 0 42px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}
.case-files {
  display: flex;
  max-width: 1040px;
  flex-direction: column;
  gap: 28px;
}
/* A lombada é dimensionada para que o texto do case caia no mesmo trilho de
   116px que .stack-row usa (88px de label + 28px de gap), já descontando o
   1px de borda: 1 + 75 + 40 = 116. As duas seções são vizinhas, então recuos
   quase iguais (119 contra 116) liam como erro, não como intenção. */
.case-file {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .25s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) {
  .case-file:hover {
    border-color: var(--border-accent);
    box-shadow: 0 18px 42px rgba(0,0,0,0.12);
    transform: translateY(-2px);
  }
}
.case-file-index {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 30px 12px;
  border-right: 1px solid var(--border);
  background: var(--raised);
  font-family: 'IBM Plex Mono', monospace;
}
.case-file-index span {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.case-file-index strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.case-file-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
}
.proj-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proj-cat { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--accent); margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }
.proj-badge { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--faint); border: 1px dashed var(--border-accent); padding: 3px 8px; border-radius: 5px; margin-left: auto; }
.case-file h3 {
  margin: 16px 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.025em;
}
.proj-blurb {
  max-width: 720px;
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}
.case-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 26px 0;
  padding: 14px 16px;
  border-block: 1px solid var(--border);
  background: color-mix(in oklab, var(--accent-soft) 32%, transparent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
}
.case-route span { color: var(--text-dim); }
.case-route i,
.case-route b {
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}
.case-narrative {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}
.case-narrative > div {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.case-narrative strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-narrative p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  text-wrap: pretty;
}
.case-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 32px;
  align-items: end;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-accent);
}
.proof-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 12px;
  margin: 0;
}
.proof-ledger > div {
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-dim);
}
.proof-ledger dt {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.proof-ledger dd {
  margin: 4px 0 0;
  color: var(--faint);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  line-height: 1.4;
}
.proj-links { display: flex; flex-wrap: wrap; gap: 10px; }
.proj-links a {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--border-accent); padding: 8px 14px; border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  transition: border-color .18s, color .18s, background .18s;
}
.proj-links a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

@media (max-width: 800px) {
  .case-narrative { grid-template-columns: 1fr; }
  .case-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .case-file { grid-template-columns: 1fr; }
  .case-file-index {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: var(--raised);
  }
  .case-file-index span { writing-mode: initial; }
  .case-file-index strong { font-size: 18px; }
  .case-file-main { padding: 24px 20px 26px; }
  .proj-badge { margin-left: 0; }
  .case-route { align-items: flex-start; }
  .proof-ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-ledger > div { padding-left: 8px; }
  .proof-ledger dt { font-size: 18px; }
  .proj-links { align-items: stretch; flex-direction: column; }
  .proj-links a { text-align: center; }
}

/* ---------- Tecnologias (stack strata) ---------- */
.stack-intro {
  font-size: 15px; color: var(--muted); margin: -8px 0 32px; max-width: 520px; text-wrap: pretty;
}
.stack-strata {
  display: flex; flex-direction: column; max-width: 820px;
  border-top: 1px solid var(--border);
}
.stack-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px 28px;
  padding: 22px 8px 22px 0; border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.stack-row:hover,
.stack-row:focus-within {
  background: color-mix(in oklab, var(--accent-soft) 55%, transparent);
}
.stack-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  color: var(--faint); padding-top: 3px; transition: color .2s ease;
}
.stack-row:hover .stack-label,
.stack-row:focus-within .stack-label { color: var(--accent); }
.stack-body h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; margin: 0 0 4px; letter-spacing: -0.01em;
}
.stack-body p {
  font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; text-wrap: pretty;
}
.stack-row--practices .stack-body p {
  max-width: 600px;
}

@media (max-width: 560px) {
  .stack-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .stack-label { padding-top: 0; }
}

/* ---------- Formação (foundation signal) ---------- */
.edu-lead {
  max-width: 670px;
  margin: -8px 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}
.edu-grid {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  border-top: 1px solid var(--border);
}
.edu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.edu-course {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.edu-meta {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .edu-row { grid-template-columns: 1fr; }
  .edu-meta { white-space: normal; }
}

/* ---------- Credenciais ---------- */
.cred-block { max-width: 900px; margin-top: 36px; }
.cred-heading {
  margin: 0 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.cred-featured {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: opacity .18s ease;
}
.cred-featured.is-swapping { opacity: 0.45; }
.cred-featured-brand {
  display: flex;
  align-items: center;
  min-width: 38px;
  min-height: 30px;
}
.cert-logo {
  height: 24px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
}
.cert-logo--aws { height: 23px; }
.cert-logo--trybe { height: 20px; }
.cert-logo--devsuperior { height: 13px; }
.cert-logo--google { height: 18px; }
.cert-wordmark {
  height: 30px;
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  white-space: nowrap;
}
html[data-theme="dark"] .cert-logo--on-light,
html[data-theme="light"] .cert-logo--on-dark { display: none; }
.cred-featured-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
  min-width: 0;
}
.cred-featured-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
  text-wrap: pretty;
}
.cred-featured-meta {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}
.cert-verified {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--verified-ink);
  border: 1px solid var(--verified-border);
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1.4;
}
.cert-verified[hidden],
.cred-featured-link[hidden] { display: none; }
.cred-featured-link {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  transition: color .18s ease;
}
.cred-featured-link:hover { color: var(--text); }
.cred-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.chip-select {
  appearance: none;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.chip-select:hover,
.chip-select:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.chip-select.is-selected,
.chip-select[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.cred-more {
  margin-top: 16px;
}
.cred-more > summary {
  cursor: pointer;
  list-style: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  user-select: none;
}
@media (max-width: 1023px) {
  .lang-group { gap: 4px; }
  .lang-btn,
  .mobile-menu .lang-btn {
    min-height: 44px;
    padding: 10px 16px;
  }
  .chip-select {
    min-height: 44px;
    padding: 10px 14px;
  }
  .cred-chips { gap: 10px; }
  .cred-more > summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
  }
  .cred-featured-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
  }
}
.cred-more > summary::-webkit-details-marker { display: none; }
.cred-more > summary::before {
  content: '+ ';
  font-weight: 500;
}
.cred-more[open] > summary::before { content: '− '; }
.cred-more-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.cred-more-list > li { border-bottom: 1px solid var(--border); }
.cred-more-list > li:last-child { border-bottom: none; }
.cred-more-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 12px 0 12px 10px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.cred-more-row:hover,
.cred-more-row:focus-visible {
  background: color-mix(in oklab, var(--accent-soft) 55%, transparent);
}
.cred-more-row.is-selected,
.cred-more-row[aria-pressed="true"] {
  border-left-color: var(--accent);
  background: color-mix(in oklab, var(--accent-soft) 55%, transparent);
}
.cred-more-title {
  grid-column: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--text-dim);
}
.cred-more-meta {
  grid-column: 2;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .cred-featured {
    align-items: flex-start;
    flex-direction: column;
  }
  .cred-more-row {
    grid-template-columns: 1fr;
  }
  .cred-more-meta {
    grid-column: 1;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cred-featured { transition: none; }
}

/* ---------- Contato ---------- */
.contact-box { max-width: 760px; margin: 0 auto; padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(64px, 10vh, 120px); text-align: center; }
.contact-box h2 { font-size: clamp(30px, 4.8vw, 44px); margin-bottom: 16px; }
.contact-body { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 auto 36px; max-width: 500px; text-wrap: pretty; }
.contact-ctas { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact-primary-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
}
.contact-ctas .btn { font-size: 15px; padding: 14px 28px; border-radius: 10px; }
.contact-links { display: flex; align-items: center; gap: 12px; color: var(--faint); }
.contact-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
}
.contact-links a:hover { color: var(--text); border-bottom-color: var(--border-strong); }

@media (max-width: 480px) {
  .contact-ctas .btn {
    width: 100%;
    max-width: 260px;
    font-size: 14px;
    padding: 12px 20px;
    text-align: center;
  }
}

/* ---------- Rodapé ---------- */
footer { border-top: 1px solid var(--border); position: relative; z-index: 2; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 30px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-credit { font-size: 12.5px; color: var(--faint); margin: 0; flex: 1; min-width: 200px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-inner a, .footer-inner button.linklike {
  font-size: 13px; color: var(--muted); transition: color .18s;
  border: none; background: transparent; cursor: pointer; padding: 4px;
  font-family: inherit;
}
.footer-inner a:hover, .footer-inner button.linklike:hover { color: var(--text); }
.footer-inner button.linklike { font-size: 13px; }

@media (max-width: 720px) {
  .footer-links { gap: 8px 16px; }
}

@media (max-width: 560px) {
  .footer-inner {
    display: block;
    text-align: center;
    padding: 28px 20px 24px;
  }
  .footer-credit {
    flex: none;
    min-width: 0;
    width: 100%;
    margin-bottom: 20px;
    font-size: 12px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .footer-inner .footer-links a,
  .footer-inner .footer-links button.linklike {
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }
  .footer-inner .footer-links > :nth-child(-n + 4) {
    border-bottom: 1px solid var(--border);
  }
  .footer-inner .footer-links > :nth-child(odd):not(:last-child) {
    border-right: 1px solid var(--border);
  }
  .footer-inner .footer-links > :last-child {
    grid-column: 1 / -1;
  }
}
