@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --bg: #050d0b;
  --ink: #f1eee6;
  --muted: rgb(241 238 230 / .64);
  --faint: rgb(241 238 230 / .42);
  --line: rgb(241 238 230 / .1);
  --card: rgb(241 238 230 / .026);
  --accent: #c6f24e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gx: 31%;
  --gy: 50%;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* luz verde atrás do retrato, eco do fundo da foto */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42rem 42rem at var(--gx) var(--gy), rgb(20 92 66 / .42), rgb(9 44 33 / .16) 45%, transparent 72%),
    radial-gradient(80rem 50rem at 50% 120%, rgb(14 54 41 / .35), transparent 70%);
}
/* grão fino: evita faixas no degradê escuro */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none;
}
.dots-on .dots { display: block; }

.hero {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  padding: clamp(28px, 6vh, 72px) clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(28px, 6vw, 112px);
}

.portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: min(600px, 80svh);
  aspect-ratio: 1;
  justify-self: end;
  touch-action: pan-y pinch-zoom;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, #000 84%, transparent 100%);
  mask: radial-gradient(closest-side, #000 84%, transparent 100%);
}
.js .portrait img { opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.photo .portrait img { opacity: 1; transform: none; }

.info { min-width: 0; }

.name {
  margin: 0;
  font: 400 clamp(66px, 7.8vw, 120px)/.86 "Instrument Serif", Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.name .line { display: block; overflow: hidden; padding-bottom: .08em; }
.name .line + .line { font-style: italic; margin-top: -.06em; }
.ch { display: inline-block; will-change: transform; }

.bio {
  margin: 18px 0 32px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: balance;
}

.links { display: grid; gap: 10px; }

.link {
  --brand: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 18px 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background-color: var(--card);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s, background-color .3s, transform .45s var(--ease);
}
.link > * { position: relative; }
.link[data-tint="youtube"] { --brand: #ff2442; }
.link[data-tint="instagram"] { --brand: #ff4f8b; }
.link[data-tint="tiktok"] { --brand: #25f4ee; }
.link[data-tint="x"] { --brand: #ffffff; }
.link[data-tint="linkedin"] { --brand: #4a98f7; }
.link[data-tint="nora"] { --brand: #c6f24e; }

/* luz que segue o cursor dentro do botão */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgb(241 238 230 / .09), transparent 70%);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 15%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgb(241 238 230 / .5), transparent 70%);
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 70%, white 10%), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
}

.ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background-color: rgb(241 238 230 / .055);
  color: var(--ink);
  transition: background-color .3s, color .3s, transform .45s var(--ease);
}
.ico svg { width: 18px; height: 18px; fill: currentColor; }
.label { font-weight: 500; font-size: 16px; letter-spacing: -.006em; white-space: nowrap; }
.handle {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 13px/1 "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--faint);
  transition: color .3s;
}
.arrow {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--faint);
  transition: transform .45s var(--ease), color .3s;
}

@media (hover: hover) {
  .link:hover { border-color: rgb(241 238 230 / .2); background-color: rgb(241 238 230 / .045); }
  .link:hover::before, .link:hover::after { opacity: 1; }
  .link:hover .ico { background-color: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); transform: scale(1.06); }
  .link:hover .handle { color: var(--muted); }
  .link:hover .arrow { color: var(--ink); transform: translate(2px, -2px); }
}
.link:active { transform: scale(.982); }
.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.link:focus-visible .ico { background-color: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }

/* entrada: só com JS; sem JS tudo aparece parado */
.js:not(.go) .name, .js:not(.go) .bio, .js:not(.go) .links { visibility: hidden; }
.go .ch { animation: sobe .95s var(--ease) backwards; animation-delay: calc(120ms + var(--i, 0) * 34ms); }
.go .bio { animation: surge .9s var(--ease) backwards; animation-delay: 380ms; }
.go .link { animation: chega .85s var(--ease) backwards; animation-delay: calc(460ms + var(--i, 0) * 60ms); }
@keyframes sobe { from { transform: translate3d(0, 110%, 0); } }
@keyframes surge { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@keyframes chega { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); filter: blur(8px); } }

@media (max-width: 899px) {
  .stage { place-items: start center; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 4px;
    padding: max(10px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  }
  .portrait { width: min(100%, 400px, 44svh); justify-self: center; }
  .info { width: 100%; max-width: 460px; text-align: center; }
  .name { font-size: clamp(46px, 13.4vw, 66px); line-height: .95; }
  .name .line { display: inline-block; vertical-align: top; }
  .name .line + .line { margin-top: 0; }
  .bio { margin: 12px auto 24px; font-size: 15.5px; max-width: 32ch; }
  .links { gap: 8px; text-align: left; }
  .link { min-height: 56px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .go .ch, .go .bio, .go .link { animation: none; }
  .js .portrait img { transition: none; transform: none; }
  .link, .ico, .arrow { transition: none; }
}

.lost { display: grid; gap: 18px; justify-items: center; padding: 24px 16px; text-align: center; }
.lost p { margin: 0; font: 400 clamp(36px, 6vw, 56px)/1 "Instrument Serif", Georgia, serif; }
.lost .link { gap: 12px; padding: 10px 20px; }
