/* HM Digital · links da bio.
   Layout: uma coluna estreita como um app, logo cromado no topo e botões empilhados.
   Mesmo visual escuro dos cartões dos sócios. */
:root {
  --ink: #060912;
  --panel: #0c1324;
  --panel-2: #111b33;
  --line: rgba(150, 180, 255, .14);
  --text: #e9eef8;
  --muted: #8d9ab3;
  --electric: #4c8dff;
  --ice: #cfe0ff;
  --navy: #04112e;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box }
html { background: var(--ink) }
body {
  margin: 0; min-height: 100vh;
  background: var(--ink); color: var(--text);
  font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% -8%, rgba(76,141,255,.28), transparent 70%),
    radial-gradient(50% 30% at 100% 70%, rgba(31,95,214,.12), transparent 70%);
}
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit }
img { display: block; max-width: 100% }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 12px }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none }

main {
  position: relative; max-width: 480px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(36px + env(safe-area-inset-top, 0px)) calc(32px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 28px;
}

/* ---------- topo ---------- */
.head { display: grid; justify-items: center; text-align: center; gap: 6px }
.logo-wrap { margin-bottom: 10px }
.logo {
  width: 168px; height: auto; filter: drop-shadow(0 8px 30px rgba(76,141,255,.45));
  animation: logo-in .9s cubic-bezier(.2,.8,.2,1) both, glint 1.1s .7s ease-in-out both;
}
/* o logo entra e dá um brilho rápido, no lugar da abertura longa dos cartões */
@keyframes logo-in { from { opacity: 0; transform: translateY(10px) scale(.94) } }
@keyframes glint {
  50% { filter: drop-shadow(0 8px 40px rgba(140,180,255,.9)) brightness(1.7) }
}
h1 { margin: 0; font: 600 24px/1.1 var(--display); letter-spacing: -.01em }
.handle { margin: 0; font: 500 12px var(--mono); letter-spacing: .12em; color: var(--electric) }
.bio { margin: 4px 0 0; color: var(--muted); max-width: 30ch; text-wrap: balance }
.socials { display: flex; gap: 10px; margin-top: 12px }
.socials a, .socials button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ice); cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.socials a:hover, .socials button:hover { background: rgba(76,141,255,.14); border-color: rgba(76,141,255,.5); transform: translateY(-2px) }

/* ---------- botões ---------- */
.list { display: grid; gap: 10px }
.link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 11px 16px 11px 11px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, background .2s;
}
.link:hover { transform: translateY(-2px); border-color: rgba(76,141,255,.45); background: var(--panel-2) }
.link:active { transform: scale(.985) }
.link .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(76,141,255,.1); color: var(--ice) }
.tx { min-width: 0 }
.tx strong { display: block; font: 600 15px/1.25 var(--body) }
.tx small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35 }
.link .arrow { color: var(--muted); transition: transform .2s, color .2s }
.link:hover .arrow { transform: translateX(3px); color: var(--electric) }
.link.primary {
  padding-block: 15px;
  background: linear-gradient(120deg, #8fb6ff 0%, #e6efff 40%, #a9c7ff 60%, #6c9dfa 100%);
  background-size: 200% 100%; animation: shine 8s linear infinite;
  border-color: transparent; color: var(--navy);
  box-shadow: 0 18px 40px -18px rgba(76,141,255,.8);
}
.link.primary .ic { background: rgba(4,17,46,.14); color: var(--navy) }
.link.primary small, .link.primary .arrow { color: rgba(4,17,46,.7) }
@keyframes shine { to { background-position: -200% 0 } }

section { display: grid; gap: 12px }
h2 { margin: 0; font: 500 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-left: 4px }

/* ---------- sócios ---------- */
.people { display: grid; gap: 10px }
.person { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden }
.person-main {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px 12px 12px; transition: background .2s;
}
.person-main:hover { background: var(--panel-2) }
.person-main img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(140,180,255,.55) }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px;
  font: 600 12px var(--body); color: var(--ice); background: rgba(76,141,255,.12); border: 1px solid rgba(140,180,255,.25);
}
.pill svg.i { width: 15px; height: 15px }
.person-ig {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line);
  font: 500 13px var(--body); color: var(--muted); transition: color .2s, background .2s;
}
.person-ig svg.i { width: 16px; height: 16px }
.person-ig:hover { color: var(--ice); background: rgba(76,141,255,.06) }

/* ---------- rodapé ---------- */
footer { display: grid; justify-items: center; gap: 8px; text-align: center; padding-top: 12px }
.logo-sm { width: 56px; height: auto; opacity: .85 }
footer span { font: 500 10.5px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--electric) }
footer small { color: var(--muted); font-size: 12px }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ice); color: var(--navy); font: 600 13.5px var(--body);
  padding: 11px 18px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0) }

/* entrada suave dos blocos */
main > * { animation: rise .6s ease both }
main > :nth-child(2) { animation-delay: .15s }
main > :nth-child(3) { animation-delay: .22s }
main > :nth-child(4) { animation-delay: .29s }
@keyframes rise { from { opacity: 0; transform: translateY(12px) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}

/* ---------- portfólio ---------- */
[hidden] { display: none !important }
.pf-head { display: flex; align-items: center; justify-content: space-between }
.back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ice); font: 600 13px var(--body);
}
.back:hover { background: rgba(76,141,255,.12) }
.back svg.i { width: 16px; height: 16px }
.pf-head .logo-sm { width: 52px }
.pf-title { display: grid; gap: 10px }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--electric) }
.pf-title h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.12; text-wrap: balance }
.pf-title h1 em { font-style: normal; color: var(--muted) }
.pf-title p { margin: 0; color: var(--muted) }
.filters { display: flex; flex-wrap: wrap; gap: 8px }
.filters button {
  padding: 8px 14px; border-radius: 99px; cursor: pointer; font: 600 13px var(--body);
  background: transparent; border: 1px solid var(--line); color: var(--muted); transition: all .2s;
}
.filters button[aria-pressed="true"] { background: var(--ice); color: var(--navy); border-color: var(--ice) }
.grid { display: grid; gap: 14px }
.proj { border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line) }
.cover { aspect-ratio: 16 / 9; max-width: 100%; background: var(--panel-2) }
.cover img { width: 100%; height: 100%; object-fit: cover }
.mono {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 90% at 80% 10%, hsl(var(--h) 70% 55% / .45), transparent 60%),
    radial-gradient(70% 80% at 10% 100%, rgba(31,95,214,.35), transparent 60%),
    #0a1020;
}
.mono span { font: 700 64px var(--display); letter-spacing: -.03em; color: rgba(233,238,248,.92) }
.proj-body { padding: 16px 18px 18px; display: grid; gap: 8px }
.seg { font: 500 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--electric) }
.proj h3 { margin: 0; font: 600 19px/1.2 var(--display) }
.proj p { margin: 0; color: var(--muted); font-size: 14px }
.proj .result { color: var(--ice); font-weight: 600 }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px }
.chips span { padding: 4px 10px; border-radius: 99px; font: 600 11.5px var(--body); color: var(--ice); background: rgba(76,141,255,.1); border: 1px solid rgba(140,180,255,.2) }
.see { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font: 600 13.5px var(--body); color: var(--electric) }
.see svg.i { width: 16px; height: 16px }
.see:hover { color: var(--ice) }
@media (min-width: 560px) { main.wide { max-width: 860px } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
