/* ivecio.com.br · estilos compartilhados */

/* Fontes hospedadas no próprio site (sem chamadas a serviços externos) */
@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-caslon-display-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/libre-franklin-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --text: #f3efe6;
  --text-soft: #d2ccc0;
  --muted: #c9c3b7;
  --subtle: #a9a398;
  --faint: #9c968b;
  --gold: #c9a55c;
  --gold-line: rgba(201, 165, 92, 0.25);
  --gold-chip: rgba(201, 165, 92, 0.45);
  --line: rgba(233, 227, 214, 0.14);
  --ghost-line: rgba(233, 227, 214, 0.45);
  --link: #e9e3d6;
  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link);
}
a:hover {
  color: #ffffff;
}
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus {
  top: 16px;
  color: var(--bg);
}

/* Estrutura da página */
.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gold-line);
}

.monogram {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
}
.monogram:hover {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 8px;
}
.nav a,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.back-link {
  padding-left: 0;
}
.nav a[aria-current="page"] {
  color: var(--gold);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.footer a {
  color: var(--faint);
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
}

/* Elementos de texto */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 1.04;
}
.name--small {
  font-size: clamp(40px, 5vw, 68px);
}

.rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0;
}

.lead {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
}

.bio {
  margin: 0;
  max-width: 580px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.bio--about {
  max-width: 640px;
  font-size: 18px;
  color: var(--text-soft);
}

.orgs {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Botões */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ghost-line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover {
  border-color: var(--text);
}
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}
.btn--gold:hover {
  background: #d6b46f;
  border-color: #d6b46f;
  color: var(--bg);
}
.btn svg {
  flex: none;
}

/* Retrato com moldura deslocada */
.portrait {
  flex: 0 1 440px;
  min-width: 260px;
  margin: 0 20px 20px 0;
}
.portrait--small {
  flex-basis: 300px;
  min-width: 220px;
  margin: 0 18px 18px 0;
}
.portrait__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.portrait__frame::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid var(--gold);
}
.portrait--small .portrait__frame::before {
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
}
.portrait__frame picture,
.portrait__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portrait__frame img {
  object-fit: cover;
  object-position: 50% 20%;
}

/* Página inicial */
.hero {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px 80px;
}
.hero__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 880px) {
  .hero {
    justify-content: flex-start;
  }
  .hero .portrait {
    order: -1;
    flex: none;
    width: min(100% - 20px, 360px);
    min-width: 0;
  }
}

/* Página Sobre */
.about {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 88px);
}
.about__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px 72px;
}
.about__intro-text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.section:last-child {
  border-bottom: 1px solid var(--line);
}
.section__label {
  flex: 0 0 200px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.section__body {
  flex: 1 1 480px;
  min-width: 0;
}

.roles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.role {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
}
.role__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.role__title {
  font-size: 18px;
  font-weight: 500;
}
.role__detail,
.role__period {
  font-size: 15px;
  color: var(--subtle);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline li {
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.timeline__year {
  flex: 0 0 104px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
}
.timeline__text {
  font-size: 16px;
  line-height: 1.6;
  color: #d9d3c7;
}

.education {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 32px;
}
.education li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.education__course {
  font-size: 16px;
  font-weight: 500;
}
.education__school {
  font-size: 14px;
  color: var(--subtle);
}

.chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--gold-chip);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Realizações */
.achievements {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.ach-org {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ach-org__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
}
.ach-org__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}
.ach-org__role {
  font-size: 15px;
  color: var(--subtle);
}
.ach-org__note {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 165, 92, 0.35);
  font-size: 14px;
  color: var(--subtle);
}

.stats {
  margin: 0;
  padding: 28px 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 32px;
  border-top: 1px solid rgba(201, 165, 92, 0.35);
  border-bottom: 1px solid rgba(201, 165, 92, 0.35);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat__value {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--gold);
}
.stat__label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.ach-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 32px;
}
.ach-group__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
}
.ach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #d9d3c7;
}
.ach-list li {
  position: relative;
  padding-left: 22px;
}
.ach-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.ach-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 32px;
}
.ach-footnote {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 560px) {
  .stat__value {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .timeline li {
    flex-direction: column;
    gap: 2px;
  }
  .timeline__year {
    flex: none;
  }
}

/* Página 404 */
.notfound {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  max-width: 640px;
}

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

/* menu do topo: quando não cabe numa linha, quebra entre os itens (nunca no meio de um item) em vez de sair da tela */
.nav {
  flex-wrap: wrap;
}
.nav a {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .nav {
    column-gap: 0;
  }
}

/* Projetos: "IA na prática" (/projetos/) */
.proj {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 56px);
}
.proj-abertura {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  padding-top: clamp(16px, 4vw, 48px);
}
.proj-subtitulo {
  margin: -4px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  color: var(--text-soft);
}
.proj-lead {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--text-soft);
}

.proj-regras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--gold-chip);
  border-bottom: 1px solid var(--gold-chip);
}
.proj-regra {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proj-regra__titulo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
}
.proj-regra__texto {
  margin: 0;
  font-size: 15px;
  color: var(--subtle);
}

.proj-lista {
  display: flex;
  flex-direction: column;
}
.proj-item {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: clamp(40px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.proj-item__num {
  flex: 0 0 96px;
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
}
.proj-item__corpo {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.proj-item__topo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}
.proj-item__titulo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 36px);
  line-height: 1.1;
}
.proj-item__tipo {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
}
.proj-item__desc {
  margin: 0;
  max-width: 720px;
  font-size: 17px;
  color: var(--text-soft);
}
.proj-campos {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px 40px;
}
.proj-campos dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.proj-campos dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.proj-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.proj-link:hover {
  color: var(--text);
}
@media (max-width: 560px) {
  .proj-item__num {
    flex-basis: 100%;
    font-size: 36px;
  }
}
