:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --surface: #1e293b;
  --surface-2: #253247;
  --line: #334155;
  --text: #f8fafc;
  --text-dim: #cbd5e1;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-hot: #93c5fd;
  --accent-deep: #2563eb;
  --success: #22c55e;
  --shadow: 0 20px 40px rgba(0,0,0,.35);
  --gradient: linear-gradient(135deg, var(--accent-deep), var(--accent));
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1400px;
  --radius: 18px;
}

:root.is-light {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --text-dim: #475569;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hot: #3b82f6;
  --accent-deep: #1d4ed8;
  --success: #16a34a;
  --shadow: 0 18px 30px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto auto;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(35px);
}

body::after {
  content: "";
  position: fixed;
  left: -25%;
  bottom: -35%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-deep) 15%, transparent), transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(45px);
}

/* Layout geral */
.shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 36%) 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px;
}

/* Sidebar */
.sidebar {
  position: relative;
}

.sidebar-inner {
  position: sticky;
  top: 32px;
  min-height: calc(100vh - 64px);
  padding: 32px 38px 28px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Foto */
.profile-photo {
  margin: 8px 0 10px;
}

.profile-photo img {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid color-mix(in oklab, var(--accent) 45%, var(--line));
  box-shadow:
    0 0 0 8px color-mix(in oklab, var(--accent) 10%, transparent),
    var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.profile-photo img:hover {
  transform: scale(1.05);
}

/* Marca */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-meta em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

/* Nome */
.display {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(46px, 5.6vw, 74px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 4px 0 2px;
  font-variation-settings: "opsz" 144, "SOFT" 35, "WONK" 1;
}

.display span {
  display: inline;
}

.display-italic {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}

.display-italic::before {
  content: " ";
}

/* Subtítulos do topo */
.headline-mini {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.headline-sub {
  margin: -12px 0 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

/* Mantido caso ainda exista no HTML */
.role,
.lede {
  display: none;
}

/* Botões */
.social-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: auto;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .01em;
  transition: all .25s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent-hot);
}

/* Menu */
.dock {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin-top: 18px;
}

.dock a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s ease;
}

.dock a span {
  width: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.dock a:hover {
  color: var(--text);
  padding-left: 8px;
}

.dock a:hover span {
  color: var(--accent);
}

/* Rodapé sidebar */
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 25%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px color-mix(in oklab, var(--success) 8%, transparent);
  }
}

/* Main */
main {
  padding: 36px 0 36px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.block {
  position: relative;
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(18px);
  transition: all .45s ease;
  margin-bottom: 8px;
}

.block.is-revealed {
  opacity: 1;
  transform: none;
}

.block-hero {
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line));
}

.block-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 24px;
}

.block-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.block-head h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.block-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Texto */
.prose,
#sobre-texto {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.75;
  font-weight: 350;
  color: var(--text);
  margin: 0 0 30px;
  max-width: 68ch;
  text-align: justify !important;
  text-align-last: left;
}

.projeto-desc,
.timeline-body p,
.contact-lede {
  text-align: justify !important;
  line-height: 1.65;
}

strong {
  color: var(--accent);
  font-weight: 700;
}

/* Chips */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.chips li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: all .2s ease;
}

.chips li:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent);
  padding-top: 4px;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-cargo {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
  color: var(--text);
}

.timeline-empresa {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Projetos */
.projetos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.projeto {
  position: relative;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .25s ease;
}

.projeto:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.projeto-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.projeto-nome {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0;
}

.projeto-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.projeto-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0;
}

/* Contacto */
.block-contact {
  padding-bottom: 36px;
}

.contact-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
}

.contact-row:hover {
  padding-left: 8px;
  color: var(--accent);
}

.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-family: var(--serif);
  font-size: 20px;
  word-break: break-word;
}

.contact-arrow {
  color: var(--text-dim);
}

.page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Botão tema */
#toggle-theme {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all .25s ease;
}

#toggle-theme:hover {
  transform: rotate(-12deg) scale(1.05);
  color: var(--accent);
}

.t-icon {
  display: grid;
  place-items: center;
}

.t-icon svg {
  width: 20px;
  height: 20px;
}

.t-sun {
  display: none;
}

.t-moon {
  display: grid;
}

:root.is-light .t-sun {
  display: grid;
}

:root.is-light .t-moon {
  display: none;
}

/* Reveal */
[data-reveal] .timeline-item,
[data-reveal] .projeto,
[data-reveal] .chips li,
[data-reveal] .contact-row {
  opacity: 0;
  transform: translateY(10px);
  transition: all .55s ease;
}

[data-reveal].is-revealed .timeline-item,
[data-reveal].is-revealed .projeto,
[data-reveal].is-revealed .chips li,
[data-reveal].is-revealed .contact-row {
  opacity: 1;
  transform: none;
}

/* Responsivo */
@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }

  .sidebar-inner {
    position: relative;
    top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
    padding: 80px 20px 28px;
    text-align: center;
    align-items: center;
  }

  .profile-photo {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  .profile-photo img {
    width: 125px;
    height: 125px;
  }

  .display {
    font-size: clamp(42px, 11vw, 64px);
    text-align: center;
  }

  .headline-mini,
  .headline-sub {
    text-align: center;
  }

  .social-buttons {
    justify-content: center;
  }

  .dock {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  main {
    padding: 28px 0;
  }

  .projetos {
    grid-template-columns: 1fr;
  }

  #toggle-theme {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 16px;
  }

  .block {
    padding: 26px 20px 22px;
  }

  .block-head h2 {
    font-size: 28px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-year {
    padding-top: 0;
  }

  .contact-row {
    grid-template-columns: 1fr auto;
  }

  .contact-label {
    display: none;
  }

  #sobre-texto,
  .prose,
  .projeto-desc,
  .timeline-body p,
  .contact-lede {
    text-align: left !important;
  }

  .social-buttons {
    flex-direction: column;
    width: 100%;
  }

  .social-buttons .btn {
    width: 100%;
  }

  .profile-photo img {
    width: 120px;
    height: 120px;
  }

  .page-foot {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
/* =========================================
   NOVAS SECÇÕES
   ========================================= */

.highlights,
.disponivel {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlights li,
.disponivel li {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.highlights li:hover,
.disponivel li:hover {
  transform: translateX(6px);
  color: var(--text);
  border-color: var(--accent);
}
/* =========================================
   MENU LATERAL PREMIUM
   ========================================= */

.dock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 18px;
}

.dock a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 18px;
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .25s ease;
}

.dock a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: all .25s ease;
}

.dock a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: all .25s ease;
}

.dock a:hover {
  color: var(--text);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  transform: translateX(4px);
}

.dock a:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.dock a:hover::after {
  background: var(--accent);
}

/* Estado visual para link ativo, se adicionares class="active" manualmente */
.dock a.active {
  color: var(--text);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
}

.dock a.active::before {
  background: var(--accent);
}

.dock a.active::after {
  background: var(--accent);
}


