/* venturini.me · porta de entrada dividida
   Esquerda: beatriz.venturini.me (janela grafite, verde-limão, Onest/Nunito/Yellowtail)
   Direita: felipe.venturini.me (dark cinematográfico, âmbar, Fraunces)
   Ordem alfabética: Beatriz, depois Felipe.
   Fontes servidas localmente (sem Google Fonts). Licença das fontes: SIL OFL 1.1. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url("/fonts/yellowtail.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Felipe */
  --fe-bg: #0a0a0b;
  --fe-ink: #ededea;
  --fe-dim: #a3a39d;
  --fe-amber: #f5a623;
  --fe-amber-bright: #ffc24b;
  --fe-glow: rgba(245, 166, 35, 0.22);
  /* Beatriz */
  --be-bg: #1c1c1c;
  --be-panel: #3c3c3c;
  --be-bar: #4b4b4b;
  --be-tab: #565656;
  --be-lime: #a6ff00;
  --be-blue: #3b5bff;
  --be-mut: #c4c4c4;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--be-bg);
  color: var(--fe-ink);
  font-family: "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- divisão ---------- */

.split {
  display: flex;
  height: 100vh;
  height: 100dvh;
}

.half {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  transition: flex-grow 0.9s var(--ease);
  outline: none;
}

@media (hover: hover) and (min-width: 761px) {
  .split:hover .half { flex-grow: 0.8; }
  .split .half:hover,
  .split .half:focus-visible { flex-grow: 1.25; }
}

.half:focus-visible::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 5;
}
.fe:focus-visible::after { outline: 2px solid var(--fe-amber); outline-offset: 0; }
.be:focus-visible::after { outline: 2px solid var(--be-lime); outline-offset: 0; }

.arrow { display: inline-block; transition: transform 0.5s var(--ease); }
.half:hover .arrow, .half:focus-visible .arrow { transform: translateX(6px); }

/* ---------- costura central ---------- */

.seam {
  position: fixed;
  z-index: 20;
  top: clamp(1rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  padding: 0.7rem 1.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 16, 18, 0.72);
  border: 1px solid rgba(237, 237, 234, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.seam-brand {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fe-dim);
}
.seam-title {
  margin-top: 0.15rem;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.92rem, 0.8rem + 0.4vw, 1.1rem);
  letter-spacing: 0;
  color: #fff;
}

/* ---------- Felipe ---------- */

.fe {
  background:
    radial-gradient(ellipse 70% 55% at 30% 60%, rgba(245, 166, 35, 0.10), transparent 70%),
    var(--fe-bg);
  color: var(--fe-ink);
}

.fe-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fe-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fe-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: min(30rem, 100%);
}

.fe-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fe-amber);
}

.fe-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 320;
  font-size: clamp(2.8rem, 1rem + 5.4vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}
.fe-name em {
  font-style: normal;
  color: var(--fe-amber);
  text-shadow: 0 0 40px var(--fe-glow);
}

.fe-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fe-dim);
}

.fe-desc {
  font-weight: 300;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.12rem);
  line-height: 1.65;
  color: var(--fe-dim);
  max-width: 26rem;
}

.fe-cta {
  align-self: flex-start;
  margin-top: 0.6rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fe-ink);
  padding: 0.95rem 1.4rem;
  border: 1px solid rgba(245, 166, 35, 0.55);
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.fe:hover .fe-cta, .fe:focus-visible .fe-cta {
  background: var(--fe-amber);
  color: var(--fe-bg);
  box-shadow: 0 0 40px var(--fe-glow);
}

/* ---------- Beatriz ---------- */

.be {
  background: var(--be-bg);
  color: #fff;
  font-family: "Onest", system-ui, sans-serif;
}

.be-window {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(36rem, 100%);
  border-radius: 14px;
  background: var(--be-panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  container-type: inline-size;
  transition: transform 0.9s var(--ease);
}
.be:hover .be-window, .be:focus-visible .be-window { transform: translateY(-6px) rotate(-0.6deg); }

.be-bar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0.55rem 0.9rem 0;
  background: var(--be-bar);
}
.be-dots { display: flex; gap: 6px; padding-bottom: 0.65rem; }
.be-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.be-dots i:nth-child(1) { background: #ff7a45; }
.be-dots i:nth-child(2) { background: #ffc233; }
.be-dots i:nth-child(3) { background: #3ddc97; }
.be-tab {
  font-size: 0.72rem;
  color: #fff;
  background: var(--be-panel);
  padding: 0.45rem 0.9rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  gap: 0.7rem;
}
.be-tab b { font-weight: 400; color: var(--be-mut); }

.be-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.2rem) clamp(1.6rem, 3vw, 2.4rem);
}

/* caixas de seleção, como num programa de design */
.sel { position: relative; outline: 1.5px solid var(--be-blue); outline-offset: 3px; }
.sel::before, .sel::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  background: #fff;
  border: 1.5px solid var(--be-blue);
}
.sel::before { left: -7px; top: -7px; }
.sel::after { right: -7px; bottom: -7px; }

.be-tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: #fff;
  background: rgba(59, 91, 255, 0.18);
  padding: 0.25rem 0.55rem;
  margin: 0.3rem 0 0 0.3rem;
}

.be-word {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Nunito", "Onest", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 14cqi, 5.6rem);
  line-height: 1;
  margin-bottom: 0.12em;
  letter-spacing: -0.01em;
  color: #fff;
  padding-right: 0.5em;
}
.be-b { outline-offset: 1px; }
.be-z {
  font-family: "Yellowtail", cursive;
  font-weight: 400;
  color: var(--be-lime);
  font-size: 2.1em;
  line-height: 0;
  margin: 0 0 0 -0.02em;
  transform: translateY(-0.1em) rotate(-4deg);
  display: inline-block;
}
.be-star {
  position: absolute;
  right: 0;
  top: -0.05em;
  width: 0.38em;
  height: 0.38em;
  outline-offset: 2px;
}
.be-star::before, .be-star::after { width: 5px; height: 5px; }
.be-star::before { left: -5px; top: -5px; }
.be-star::after { right: -5px; bottom: -5px; }
.be-star svg { width: 100%; height: 100%; display: block; }
.be-star path { fill: var(--be-lime); stroke: var(--be-lime); stroke-width: 12; stroke-linejoin: round; }

.be:hover .be-star svg, .be:focus-visible .be-star svg { animation: spin 2.4s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.be-desc {
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.08rem);
  line-height: 1.6;
  color: #e6e6e6;
  max-width: 28rem;
}

.be-cta {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
  background: var(--be-lime);
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.be:hover .be-cta, .be:focus-visible .be-cta { box-shadow: 0 0 0 4px rgba(166, 255, 0, 0.25); }

/* ---------- celular: divisão vertical ---------- */

@media (max-width: 760px) {
  body { overflow: auto; }
  .split { flex-direction: column; height: auto; min-height: 100dvh; }
  .half { flex: 0 0 auto; min-height: 50vh; min-height: 50dvh; padding: 6.2rem 1.25rem 2.2rem; }
  .be:hover .be-window { transform: none; }
  .fe { padding-top: 2rem; }
  .seam { position: absolute; top: 0.9rem; }
  .fe-inner { gap: 0.8rem; }
  .fe-name { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .be-body { gap: 0.9rem; }
}

@media (max-height: 620px) and (min-width: 761px) {
  .fe-desc, .be-desc { display: none; }
}

/* ---------- menos movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .split:hover .half, .split .half:hover, .split .half:focus-visible { flex-grow: 1; }
  .be:hover .be-window, .be:focus-visible .be-window { transform: none; }
  .half:hover .arrow, .half:focus-visible .arrow { transform: none; }
}

/* ---------- 404 ---------- */

.nf { display: grid; place-items: center; min-height: 100dvh; padding: 1.5rem; text-align: center; }
.nf-box { display: grid; gap: 0.8rem; }
.nf-box .seam-title { font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); }
.nf-box a { color: var(--fe-amber); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85rem; letter-spacing: 0.1em; }
.nf-box a:hover, .nf-box a:focus-visible { color: var(--be-lime); }
