:root {
  color-scheme: dark;

  --violet: #8064C8;
  --lilac: #B4A3FF;
  --lilac-light: #C9BEFF;

  --bg: #100E18;
  --surface: #16121F;
  --terminal: #0E0C15;
  --hover: #221A33;

  --border: #2B2340;
  --border-strong: #3D3160;
  --border-hover: #5A4790;

  --text: #F1EEF8;
  --text-2: #DAD5E8;
  --muted: #B3ACCB;

  --mint: #8FD6C2;
  --pink: #F4A6E0;
  --orange: #FFB27A;

  --glow-mint: rgba(143,214,194,.35);
  --glow-violet: rgba(128,100,200,.55);
  --glow-cv: 0 0 0 1px rgba(180,163,255,.4), 0 12px 32px -10px rgba(128,100,200,.75), 0 0 28px -4px rgba(180,163,255,.55);
  --glow-cv-hover: 0 0 0 1px rgba(201,190,255,.6), 0 14px 36px -10px rgba(128,100,200,.9), 0 0 36px -2px rgba(201,190,255,.7);

  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
  --speed: .6s;
  --max-width: 1120px;
  --stack: 860px;

  --word-start: .2s;
  --word-gap: .35s;
  --word-dur: 1s;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 75% 65% at 0% 0%, rgba(128, 100, 200, 0.15) 0%, rgba(128, 100, 200, 0.123) 15%, rgba(128, 100, 200, 0.09) 30%, rgba(128, 100, 200, 0.057) 45%, rgba(128, 100, 200, 0.03) 60%, rgba(128, 100, 200, 0.012) 75%, rgba(128, 100, 200, 0.0) 100%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(244, 166, 224, 0.06) 0%, rgba(244, 166, 224, 0.049) 15%, rgba(244, 166, 224, 0.036) 30%, rgba(244, 166, 224, 0.023) 45%, rgba(244, 166, 224, 0.012) 60%, rgba(244, 166, 224, 0.005) 75%, rgba(244, 166, 224, 0.0) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--lilac); text-underline-offset: 4px; }
a:hover { color: var(--lilac-light); }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--lilac);
  color: var(--bg);
  font: 700 .875rem var(--font-mono);
}
.skip-link:focus { top: 12px; color: var(--bg); }

.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * max(16px, env(safe-area-inset-left, 0px)));
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

main { flex: 1; }
main:focus { outline: none; }

/* Cabeçalho */

.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 45;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  margin-right: auto;
  font: 700 1rem var(--font-mono);
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__diamond { color: var(--lilac); margin-right: .5ch; }

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu__list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 28px;
}

.menu__link {
  display: inline-block;
  padding-block: 10px;
  font: 500 .9375rem var(--font-mono);
  color: var(--text-2);
  text-decoration: none;
}
.menu__link:hover { color: var(--text); }
.menu__link[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--mint);
}

.menu__extras {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.lang-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: 500 .8125rem var(--font-mono);
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] { color: var(--text); border-color: var(--border); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn svg { display: block; }

.cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--lilac);
  color: var(--bg);
  font: 700 .875rem var(--font-mono);
  text-decoration: none;
  box-shadow: var(--glow-cv);
  transition: box-shadow .3s, background-color .3s;
}
.cv:hover { background: var(--lilac-light); color: var(--bg); box-shadow: var(--glow-cv-hover); }

.menu__toggle,
.menu__close { display: none; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8,7,12,.6);
}
.scrim[hidden] { display: none; }

@media (min-width: 861px) {
  .menu__link { position: relative; }
  .menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: center;
    pointer-events: none;
    transition: transform .35s var(--ease);
  }
  .menu__link:hover::after,
  .menu__link:focus-visible::after { transform: scaleX(1); }
  .menu__link[aria-current="page"]::after { display: none; }

  .lang-btn:hover,
  .menu__extras .icon-btn:hover { color: var(--pink); border-color: var(--pink); }

  .scrim { display: none; }
}

@media (max-width: 860px) {
  .menu__toggle { display: inline-flex; }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    overflow-y: auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--speed) var(--ease), visibility var(--speed);
  }
  .menu.is-open { transform: none; visibility: visible; }

  .menu__close { display: inline-flex; align-self: flex-end; }

  .menu__list { flex-direction: column; gap: 0; }
  .menu__link {
    display: block;
    margin-inline: -12px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1.125rem;
    transition: background-color .2s;
  }
  .menu__link:hover,
  .menu__link:focus-visible { background: var(--hover); color: var(--text); }
  .menu__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--mint); }

  .menu__extras { flex-wrap: wrap; row-gap: 24px; padding-left: 0; border-left: 0; }
  .cv { width: 100%; margin-left: 0; justify-content: center; }
}

/* Título com palavras surgindo e cursor rosa */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: end;
  padding-block: 56px 32px;
}

.page-head--wide { grid-template-columns: minmax(0, 1fr); }
.page-head--wide .page-title { max-width: none; }

.page-head__text {
  justify-self: end;
  max-width: 26rem;
  color: var(--text-2);
}

.hero__print {
  margin-bottom: 12px;
  font: 400 .875rem var(--font-mono);
  color: var(--muted);
}
.syntax-str { color: var(--mint); }

.page-title {
  max-width: 26ch;
  font: 800 2.5rem/1.15 var(--font-mono);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.page-title__hl { color: var(--lilac-light); }
.page-title__hash { color: var(--mint); }

.page-comment {
  margin-top: 12px;
  font: 400 .9375rem var(--font-mono);
  color: var(--muted);
}

.words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.3em);
  filter: blur(4px);
  transition: opacity var(--word-dur) ease, transform var(--word-dur) ease, filter var(--word-dur) ease;
  transition-delay: calc(var(--word-start) + var(--i, 0) * var(--word-gap));
}
.words.is-visible .word { opacity: 1; transform: none; filter: none; }

.caret {
  margin-left: 4px;
  color: var(--pink);
  visibility: hidden;
  animation: blink 1.1s steps(1) infinite;
}
.is-visible ~ .caret {
  visibility: visible;
  transition: visibility 0s linear var(--caret-delay, 0s);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (min-width: 861px) and (max-height: 1000px) {
  .page-head { padding-block: 28px 20px; }
  .page-title { font-size: 2rem; }
}

@media (max-width: 860px) {
  .page-head { grid-template-columns: 1fr; padding-block: 32px 24px; }
  .page-head__text { justify-self: start; }
  .page-title { font-size: 1.75rem; }
}

/* Projetos em sanfona */

.acc {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel {
  --imgh: 0px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.panel__cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.panel__tab {
  margin: 0;
  padding: 20px 20px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 700 1.0625rem var(--font-mono);
  text-align: left;
}

.panel__info {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 .8125rem var(--font-mono);
  color: var(--muted);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.status--progress::before { background: var(--pink); }
.status--launched { color: var(--orange); font-weight: 700; }
.status--launched::before { background: var(--orange); }

.panel__title { font: 700 1.25rem/1.25 var(--font-mono); }
.panel__desc { margin-bottom: 6px; color: var(--text-2); }
.panel__tags { list-style: none; padding: 0; margin: 2px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.panel__tags li { padding: 6px 9px; border: 1px solid var(--border-strong); border-radius: 4px; font: 500 .8125rem/1 var(--font-mono); color: var(--text-2); }
.panel__sub { font: 500 .9375rem var(--font-mono); color: var(--text-2); }
.panel__note { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.panel__branch { display: inline-flex; align-items: baseline; gap: 6px; width: fit-content; margin-top: 4px; font: 500 .8125rem/1.5 var(--font-mono); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.panel__branch:hover { color: var(--lilac-light); }

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: 700 .875rem var(--font-mono);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--lilac); color: var(--text); }
.btn--filled { background: var(--lilac); border-color: var(--lilac); color: var(--bg); }
.btn--filled:hover { background: var(--lilac-light); border-color: var(--lilac-light); color: var(--bg); }

.js .panel { cursor: pointer; }

.js .panel__cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.js .panel__cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  transition: filter var(--acc-speed) var(--acc-ease);
}
.js .panel:not(.is-open) img { filter: grayscale(1) brightness(.75); }

.js .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(16,14,24,.96) 42%, rgba(16,14,24,.6) 62%, rgba(16,14,24,0) 82%);
}

.js .panel__tab {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  padding: 20px;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.js .panel__info {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity calc(var(--acc-speed) * .6) var(--acc-ease), transform calc(var(--acc-speed) * .6) var(--acc-ease), visibility calc(var(--acc-speed) * .6);
}

.js .panel.is-open {
  cursor: default;
  background: var(--bg);
  border-color: var(--mint);
  box-shadow: 0 0 0 1px var(--mint), 0 24px 70px -24px var(--glow-mint), 0 0 60px -20px var(--glow-violet);
}
.js .panel.is-open .panel__cover { pointer-events: auto; cursor: pointer; z-index: 1; }
.js .panel.is-open img { inset: 0 0 auto 0; height: var(--imgh); aspect-ratio: auto; object-fit: cover; object-position: center; filter: none; }
.js .panel.is-open .panel__cover--top img { object-position: center top; }
.js .panel.is-open::after { background: none; }
.js .panel.is-open .panel__tab { opacity: 0; pointer-events: none; }
.js .panel.is-open .panel__info {
  top: var(--imgh);
  bottom: auto;
  gap: 4px;
  padding: 18px 24px 20px;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: calc(var(--acc-speed) * .35);
  pointer-events: none;
}
.js .panel.is-open .panel__info a { pointer-events: auto; }

@media (min-width: 861px) {
  .js .acc {
    flex-direction: row;
    height: clamp(420px, calc(100svh - 320px), 620px);
  }
  .js .panel {
    flex: 1 1 0;
    min-width: 0;
    transition: flex-grow var(--acc-speed) var(--acc-ease), box-shadow var(--acc-speed), border-color var(--acc-speed);
  }
  .js .panel.is-open { flex-grow: 5; }
  .panel__title { font-size: 1.5rem; }
}

@media (max-width: 860px) {
  .js .panel {
    height: 84px;
    transition: height var(--acc-speed) var(--acc-ease), box-shadow var(--acc-speed), border-color var(--acc-speed);
  }
  .js .panel__tab {
    top: 0;
    bottom: auto;
    right: 0;
    display: flex;
    align-items: center;
    height: 84px;
    padding: 0 20px;
    font-size: 1.0625rem;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .js .panel:not(.is-open)::after { background: linear-gradient(to right, rgba(16,14,24,.94) 35%, rgba(16,14,24,.55)); }
  .js .panel__info { padding: 20px; }
  .js .panel.is-open .panel__info { position: relative; top: auto; margin-top: calc(var(--imgh) - 16px); }
}

/* Páginas internas */

.section { padding-bottom: 72px; }

.section__title {
  margin-bottom: 20px;
  font: 700 1.25rem var(--font-mono);
}
.section__title .hash { color: var(--mint); }

/* Serviços em acordeão */
.acc, .svc-acc { --acc-speed: calc(var(--speed) * 1.8); --acc-ease: cubic-bezier(.45,0,.25,1); }

.svc-acc {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.svc__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 24px 24px 12px;
  border: 0;
  background: none;
  color: var(--text);
  font: 700 1.25rem/1.3 var(--font-mono);
  text-align: left;
}
.svc__num { font-size: .875rem; font-weight: 500; color: var(--mint); }
.svc__info { display: grid; gap: 14px; padding: 0 24px 24px; }
.svc__lead { color: var(--muted); }
.svc__list { list-style: none; padding: 0; display: grid; gap: 6px; color: var(--text-2); }
.svc__list li { display: grid; grid-template-columns: 1.4em 1fr; }
.svc__list li::before { content: "✓" / ""; color: var(--mint); font-family: var(--font-mono); }
.svc .btn { justify-self: start; margin-top: 4px; }
.svc__art { display: none; }

.js .svc__tab { cursor: pointer; }
.js .svc__tab:hover .svc__name { color: var(--pink); }
.js .svc.is-open { border-color: var(--mint); }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .js .svc.is-pinned .svc__num::after { content: " · fixado" / ""; color: var(--muted); }
}

@media (min-width: 861px) {
  .js .svc-acc { flex-direction: row; height: 430px; }
  .js .svc {
    flex: 1 1 0;
    min-width: 0;
    transition: flex-grow var(--acc-speed) var(--acc-ease), border-color var(--acc-speed);
  }
  .js .svc.is-open { flex-grow: 4; }
  .js .svc:not(.is-open):hover { border-color: var(--pink); }
  .js .svc:not(.is-open) .svc__tab {
    position: absolute;
    inset: 0;
    justify-content: flex-end;
    padding: 24px 20px;
  }
  .js .svc:not(.is-open) .svc__num { position: absolute; top: 24px; left: 20px; }
  .js .svc:not(.is-open) .svc__name { writing-mode: vertical-rl; transform: rotate(180deg); }
  .js .svc.is-open .svc__tab { padding: 28px 28px 8px; font-size: 1.5rem; }
  .js .svc__info { padding: 8px 28px 28px; max-width: 62ch; }

  .js .svc__art {
    display: block;
    position: absolute;
    height: auto;
    pointer-events: none;
    transition: opacity var(--acc-speed) var(--acc-ease);
  }
  .js .svc__art--cover { right: 14px; top: 64px; width: min(calc(100% - 72px), 150px); filter: grayscale(1); opacity: .45; }
  .js .svc:not(.is-open):hover .svc__art--cover { opacity: .7; }
  .js .svc__art--inner { right: 28px; bottom: 28px; width: min(34%, 260px); opacity: 0; }
  .js .svc.is-open .svc__art--cover { opacity: 0; transition-duration: calc(var(--acc-speed) * .5); }
  .js .svc.is-open .svc__art--inner { opacity: .9; transition-delay: calc(var(--acc-speed) * .5); }
}

.services__foot { margin-top: 28px; font: 400 .9375rem var(--font-mono); color: var(--muted); }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.cta__text { font: 700 1.125rem var(--font-mono); }

@media (max-width: 860px) {
}

/* Quadros da página Sobre */

.page-head__photo {
  justify-self: end;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bento__stack { display: grid; grid-template-rows: auto 1fr; gap: 16px; }

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.card--mono { font-family: var(--font-mono); }

.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.card__label {
  margin: 0;
  font: 700 .875rem var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lilac);
}
.card > .card__label { margin-bottom: 20px; }
.card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--lilac-light);
}

.specialty { container-type: inline-size; }
.specialty__head { display: flex; flex-direction: column; align-items: flex-start; margin: 12px 0 16px 8px; }
.specialty__title {
  font: 800 clamp(1.5rem, 9cqi, 2.5rem) var(--font-mono);
  letter-spacing: -.03em;
  outline: 2px dashed var(--lilac);
  outline-offset: 8px;
  border-radius: 2px;
}
.specialty__badge {
  margin: 4px 0 0 18px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--lilac);
  color: var(--bg);
  font: 400 .875rem var(--font-mono);
}
.specialty__text { margin-top: 24px; color: var(--text-2); max-width: 52ch; }

.education { display: flex; flex-direction: column; }
.education__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.education__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.5;
}
.education__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .875rem; }
.education__type { color: var(--muted); }
.education__status { color: var(--mint); }
.education__status--progress { color: var(--pink); }
.education__link { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.education__link:hover { color: var(--pink); }
.education__more { margin-top: auto; padding-top: 16px; align-self: flex-start; font-size: .9375rem; font-weight: 700; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--lilac);
}
.text-link--arrow { text-decoration: none; }
.text-link__text { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9375rem; }
.chip { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text); }
.card__label--sub { margin-top: 24px; }

.ifc-card { container-type: inline-size; }

.ifc { display: grid; gap: 1.5rem; }
@container (min-width: 40rem) {
  .ifc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 2.5rem; }
}
.ifc__text { margin-bottom: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); }
.ifc__label { margin-bottom: 1.25rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 0.9375rem; }
.ifc__from { border: 1px solid var(--border-strong); border-radius: 4px; padding: 4px 10px; background: #141020; }
.ifc__arrow { display: inline-block; color: var(--lilac); }
.ifc__to {
  background: linear-gradient(180deg, var(--lilac-light), var(--lilac));
  color: var(--bg);
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(201,190,255,.5), 0 0 16px 0 rgba(180,163,255,.5), 0 0 30px 2px rgba(128,100,200,.4);
}
.flow {
  position: relative;
  margin-left: 5px;
  padding: 4px 0;
  border-left: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow__step {
  position: relative;
  padding-left: 22px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 1rem;
  line-height: 1.4;
}
.flow__step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: .45em;
  width: 9px;
  height: 9px;
  background: var(--surface);
  border: 1.5px solid var(--lilac);
  box-shadow: 0 0 6px rgba(180,163,255,.45);
  transform: rotate(45deg);
}
.flow__num { font-size: 0.875rem; color: var(--muted); }
.flow__label { display: inline-block; }

.flow__step::before { background: var(--lilac); }
.flow__num { color: var(--lilac); }
.flow::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 4px;
  bottom: 15px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(180,163,255,.35), var(--lilac));
  box-shadow: 0 0 6px rgba(180,163,255,.6);
}

.ifc.is-pending .ifc__to { background: var(--lilac); box-shadow: none; }
.ifc.is-pending .flow__step:not(.is-lit) { color: var(--muted); }
.ifc.is-pending .flow__step:not(.is-lit)::before { background: var(--surface); }
.ifc.is-pending .flow__step:not(.is-lit) .flow__num { color: var(--muted); }
.ifc.is-pending .flow::before { bottom: auto; height: var(--rail, 0px); }
.ifc.is-pending .flow::after {
  content: "";
  position: absolute;
  left: -4px;
  top: calc(4px + var(--rail, 0px) - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--lilac-light);
  box-shadow: 0 0 8px 2px rgba(201,190,255,.8), 0 0 18px 4px rgba(128,100,200,.6);
  opacity: var(--comet, 0);
}
.ifc.is-start .ifc__from { border-color: var(--lilac); box-shadow: 0 0 0 1px rgba(180,163,255,.25), 0 0 16px -2px rgba(180,163,255,.55); }
.ifc.is-start .ifc__arrow { transform: translateX(4px); }
.flow__step.is-current::before {
  background: var(--lilac-light);
  transform: rotate(45deg) scale(1.25);
  box-shadow: 0 0 10px 2px rgba(201,190,255,.7), 0 0 22px 4px rgba(128,100,200,.5);
}
.flow__step.is-current .flow__label { transform: translateX(4px); }
html[data-motion="on"] :is(.ifc__from, .ifc__arrow, .ifc__to, .flow__step, .flow__num, .flow__label),
html[data-motion="on"] .flow__step::before {
  transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease), transform .4s var(--ease);
}
html[data-motion="on"] .ifc.is-pending .flow::before { transition: height .7s cubic-bezier(.4,0,.2,1); }
html[data-motion="on"] .ifc.is-pending .flow::after { transition: top .7s cubic-bezier(.4,0,.2,1), opacity .3s; }
@media (forced-colors: active) {
  .flow__step.is-current::before { border-color: Highlight; }
}


@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento__stack { grid-template-rows: none; }
  .card { padding: 20px; }
  .page-head__photo { justify-self: start; width: 120px; height: 120px; order: -1; }
}

/* Formulário de contato */

.contact {
  max-width: 760px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.field { display: grid; gap: 6px; }
.field label,
.reply__legend { font: 500 .875rem var(--font-mono); color: var(--text-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem var(--font-sans);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--border-hover); }
.field textarea { resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B4A3FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--text); background: var(--terminal); }
.field [aria-invalid="true"] { border: 2px solid var(--pink); }

.reply { margin: 0; padding: 0; border: 0; }
.reply__legend { padding: 0; }
.reply__options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.reply__opt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  font: 500 .9375rem var(--font-mono);
  color: var(--text);
  cursor: pointer;
}
.reply__opt input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--lilac); }
.reply__opt:has(input:checked) { border-color: var(--lilac); background: var(--hover); }
.reply__opt:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 3px; }

.form__submit { justify-self: start; }

.form-errors {
  padding: 16px 18px;
  border: 2px solid var(--pink);
  border-radius: 8px;
  background: var(--terminal);
}
.form-errors ul { margin-top: 8px; padding-left: 1.2em; }
.form-errors a { color: var(--pink); }
.field__error { color: var(--pink); font-size: .9375rem; }

.result { display: grid; gap: 12px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.result__label { font: 700 1rem var(--font-mono); }
.result textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--terminal);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-mono);
  resize: vertical;
}
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result__note { font: 400 .9375rem var(--font-mono); color: var(--muted); }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .contact { padding: 20px; }
  .form__row { grid-template-columns: 1fr; }
}

/* Rodapé */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 56px;
  padding-block: 32px 40px;
  border-top: 1px solid var(--border);
  font: 400 .875rem var(--font-mono);
  color: var(--muted);
}

.socials { list-style: none; padding: 0; display: flex; gap: 8px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
}
.socials a:hover { color: var(--pink); border-color: var(--pink); }

@media (max-width: 700px) {
  .footer { padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom, 0px)); }
}

/* Seta de voltar ao topo */

.back-to-top {
  --back-to-top-gap: 24px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--back-to-top-gap) + var(--back-to-top-lift, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  background: rgba(21,19,31,.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--lilac);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.back-to-top svg { display: block; }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s, border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.back-to-top.is-visible:hover {
  border-color: var(--lilac);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(200,192,255,.3), 0 6px 18px -8px rgba(200,192,255,.5);
  transform: translateY(-2px);
}
.back-to-top.is-visible:active { background: var(--hover); transform: none; }
.back-to-top-target:focus,
.back-to-top-target:focus-visible { outline: none; }

/* Animações desligadas: pelo botão do site ou pela configuração do sistema */

html[data-motion="off"] { scroll-behavior: auto; --speed: 0s; }
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after { transition: none !important; animation: none !important; }
html[data-motion="off"] .words .word { opacity: 1; transform: none; filter: none; }
html[data-motion="off"] .caret { visibility: visible; }
html[data-motion="off"] .back-to-top.is-visible:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; --speed: 0s; }
  html *,
  html *::before,
  html *::after { transition: none !important; animation: none !important; }
  html .words .word { opacity: 1; transform: none; filter: none; }
  html .caret { visibility: visible; }
}

/* =============================================
   GOOGLE TRADUTOR: esconde a barra e o seletor do Google
   (a troca de idioma é feita pelos botões PT/EN/DE do menu)
============================================= */
.skiptranslate iframe,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
#google_translate_element { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
