/* ============================================================
   DIMAS — Personal Site
   Design: Bauhaus geometry × Apple restraint
   Palette: desert paper + Bauhaus primaries + healthcare teal
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Neutrals */
  --paper:      #F4EFE4;   /* warm desert paper */
  --paper-2:    #EDE6D6;
  --ink:        #17140F;   /* near-black, warm */
  --ink-soft:   #4A443B;
  --line:       #1714100F;

  /* Bauhaus primaries, warmed */
  --cobalt:     #2B3FD6;   /* blue */
  --terra:      #E24B26;   /* red / terracotta (burger, Guadalupe clay) */
  --ochre:      #F2B33D;   /* yellow */
  --teal:       #109D8E;   /* healthcare / tech accent */

  /* Tons FIXOS: usados onde a superfície deve permanecer escura/clara
     nos dois temas (senão --ink inverte e o texto some sobre o fundo). */
  --ink-fixed:   #17140F;
  --paper-fixed: #F4EFE4;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --sans:    "Archivo", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.3, 1);

  /* Spacing */
  --gutter: clamp(20px, 5vw, 90px);
  --maxw: 1400px;
}

:root[data-theme="dark"] {
  --paper:   #121017;
  --paper-2: #1B1826;
  --ink:     #F1ECE1;
  --ink-soft:#B8B1A4;
  --line:    #F1ECE114;
  --cobalt:  #6E7BFF;
  --terra:   #FF6A44;
  --ochre:   #FFC658;
  --teal:    #2FD3BF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .6s var(--ease), color .6s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--terra); color: var(--paper); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.section { padding-block: clamp(80px, 12vw, 190px); position: relative; }
.section-num {
  font-family: var(--display); font-weight: 800; font-size: 13px;
  letter-spacing: .1em; color: var(--ink-soft); opacity: .55;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 999; background: var(--ink);
  display: grid; place-items: center; color: var(--paper);
  transition: transform 1s var(--ease-io); transition-delay: .3s;
}
#loader.done { transform: translateY(-101%); }
.loader-inner { text-align: center; }
.loader-word { overflow: hidden; }
.loader-name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 8vw, 96px);
  letter-spacing: -.03em; line-height: .96;
  display: flex; gap: .02em; justify-content: center; overflow: hidden;
}
.loader-name .sp { width: .32em; }
.loader-name span {
  display: inline-block; transform: translateY(110%);
  animation: loadUp .9s var(--ease) forwards;
}
.loader-sub {
  margin-top: 16px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: #ffffff70; opacity: 0; animation: loadFade .8s var(--ease) .55s forwards;
}
@keyframes loadUp { to { transform: translateY(0); } }
@keyframes loadFade { to { opacity: 1; } }
.loader-bar {
  height: 3px; background: var(--terra); width: 0;
  animation: loadBar 1.6s var(--ease) forwards .2s; margin-top: 22px;
}
@keyframes loadBar { to { width: 100%; } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%,-50%); }
.cursor-ring {
  width: 40px; height: 40px; border: 1.5px solid #fff; transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.cursor-ring.hover { width: 64px; height: 64px; background: #ffffff22; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1.5px solid transparent;
  transition: transform .5s var(--ease), background .4s var(--ease),
              border-color .4s var(--ease), padding .4s var(--ease);
}
/* borda só aparece depois que sai do hero */
.nav.scrolled { border-bottom-color: var(--line); padding-block: 10px; }
/* esconde ao descer, revela ao subir */
.nav.hidden { transform: translateY(-105%); }

.nav .brand {
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; flex-shrink: 0;   /* a marca nunca quebra em duas linhas */
}
.nav .brand .mark {
  width: 20px; height: 20px; border-radius: 4px;
  background: url("/favicon.svg") center/contain no-repeat;
  transition: transform .5s var(--ease);
}
.nav .brand:hover .mark { transform: scale(1.1); }

.nav-links {
  display: flex; gap: 4px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 100px; padding: 4px;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: .01em; position: relative;
  padding: 8px 15px; border-radius: 100px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-links a:hover { background: var(--ink); color: var(--paper); }
/* seção ativa durante o scroll */
.nav-links a.active { background: var(--terra); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-btn {
  width: 38px; height: 38px; border: 1.5px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px;
}
.nav-toggle {
  display: none; width: 42px; height: 38px; border: 1.5px solid currentColor; border-radius: 100px;
  place-items: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 16px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease), opacity .3s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

/* Fullscreen overlay menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--ink-fixed); color: var(--paper-fixed);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path .7s var(--ease-io);
  pointer-events: none;
}
body.menu-open .menu-overlay { clip-path: circle(150% at calc(100% - 44px) 40px); pointer-events: auto; }
.menu-links { display: flex; flex-direction: column; gap: clamp(4px, 1.4vh, 14px); }
.menu-links a {
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 9vw, 54px);
  letter-spacing: -.02em; line-height: 1.05; display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
body.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-links a:hover { color: var(--ochre); }
.menu-links a .mi { font-size: 13px; font-weight: 600; color: var(--terra); font-family: var(--sans); }
.menu-foot { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #ffffff99; }
.menu-foot a { color: var(--ochre); }
/* stagger the links */
body.menu-open .menu-links a:nth-child(1){transition-delay:.12s} body.menu-open .menu-links a:nth-child(2){transition-delay:.16s}
body.menu-open .menu-links a:nth-child(3){transition-delay:.2s}  body.menu-open .menu-links a:nth-child(4){transition-delay:.24s}
body.menu-open .menu-links a:nth-child(5){transition-delay:.28s} body.menu-open .menu-links a:nth-child(6){transition-delay:.32s}
body.menu-open .menu-links a:nth-child(7){transition-delay:.36s} body.menu-open .menu-links a:nth-child(8){transition-delay:.4s}
body.menu-open .menu-links a:nth-child(9){transition-delay:.44s}

/* Com 8 seções, os links inline só cabem confortavelmente em telas largas;
   abaixo disso vale mais o menu overlay do que espremer a barra. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
}
@media (min-width: 1081px) { .menu-overlay { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; position: relative; display: flex; align-items: flex-end;
  /* padding-top livra o conteúdo da barra fixa: com align-items:flex-end, um hero
     mais alto que a viewport empurraria o wordmark/kicker para trás do header. */
  padding-top: 92px;
  padding-bottom: clamp(40px, 7vw, 90px); overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-wordmark {
  font-family: var(--display); font-weight: 700; font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  /* flex + fit-content (e não inline-flex): caixa de bloco, para que a
     margin-bottom realmente separe o wordmark do kicker. */
  display: flex; width: fit-content; align-items: center; gap: 10px; margin-bottom: 18px;
}
.hero-wordmark .mark {
  width: 16px; height: 16px; border-radius: 3px;
  background: url("/favicon.svg") center/contain no-repeat;
}
.hero-kicker {
  font-size: clamp(13px,1.4vw,15px); font-weight: 600; letter-spacing: .04em;
  color: var(--ink-soft); margin-bottom: 20px; max-width: 30ch;
}
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 11.5vw, 190px); line-height: .82; letter-spacing: -.04em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; }
.hero-title em {
  font-style: normal; color: var(--terra);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 34px;
  font-size: 14px; font-weight: 500; align-items: center;
}
.hero-meta .tag {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--ink); border-radius: 100px; padding: 8px 16px;
}
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; }
.scroll-hint {
  position: absolute; bottom: 26px; right: var(--gutter); z-index: 3;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px; writing-mode: vertical-rl;
}
.scroll-hint .bar { width: 1.5px; height: 46px; background: var(--ink); position: relative; overflow: hidden; }
.scroll-hint .bar::after {
  content:""; position:absolute; inset:0; background: var(--terra);
  animation: scrollBar 2s var(--ease-io) infinite;
}
@keyframes scrollBar { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(100%)} }

/* ============================================================
   BAUHAUS BAND (substitui o marquee)
   ============================================================ */
.band {
  display: grid; grid-template-columns: 1.3fr 1fr 1.15fr .85fr;
  border-block: 1.5px solid var(--ink);
}
.band-cell {
  position: relative; overflow: hidden;
  padding: clamp(22px, 2.6vw, 40px);
  min-height: clamp(150px, 17vw, 220px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  border-right: 1.5px solid var(--ink);
}
.band-cell:last-child { border-right: none; }
.cell-cobalt { background: var(--cobalt);    color: #fff; }
.cell-ink    { background: var(--ink-fixed); color: var(--paper-fixed); }
.cell-terra  { background: var(--terra);     color: #fff; }
.cell-ochre  { background: var(--ochre);     color: var(--ink-fixed); }
.bc-shape {
  width: clamp(30px, 3vw, 46px); height: clamp(30px, 3vw, 46px);
  opacity: .92; transition: transform .55s var(--ease);
}
.band-cell:hover .bc-shape { transform: rotate(90deg) scale(1.08); }
.bc-label {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(17px, 1.9vw, 28px); letter-spacing: -.02em; line-height: 1.05;
}
.bc-sub { font-size: clamp(11px, .85vw, 13px); opacity: .82; margin-top: 6px; max-width: 22ch; }
@media (max-width: 760px) {
  .band { grid-template-columns: 1fr 1fr; }
  .band-cell:nth-child(2n) { border-right: none; }
  .band-cell:nth-child(1), .band-cell:nth-child(2) { border-bottom: 1.5px solid var(--ink); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: minmax(260px, .82fr) 1.18fr;
  gap: clamp(30px,5vw,70px); align-items: start;
}
/* Retrato com moldura + acento Bauhaus deslocado atrás */
.about-photo { position: relative; margin: 0; }
/* a bio ficou mais alta que a foto: no desktop a foto acompanha a leitura */
@media (min-width: 821px) { .about-photo { position: sticky; top: 96px; } }
.about-photo::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(16px, 16px); border-radius: 20px;
  background: var(--terra); z-index: 0;
}
.about-photo img {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  border-radius: 20px; border: 1.5px solid var(--ink);
}
.about-text { min-width: 0; }
.about-lead {
  font-family: var(--serif); font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.18; letter-spacing: -.01em; font-weight: 400; margin-bottom: 26px;
}
.about-lead b { font-weight: 600; font-style: italic; color: var(--terra); }
.about-text > p { font-size: clamp(15px,1.15vw,17px); color: var(--ink-soft); margin-bottom: 18px; max-width: 52ch; }
/* citação de destaque no meio da bio */
.about-quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(21px, 2.4vw, 31px); line-height: 1.25; color: var(--ink);
  border-left: 3px solid var(--terra); padding-left: 22px;
  margin: 4px 0 26px; max-width: 44ch;
}
/* fecho pessoal, separado por um fio */
.about-closer {
  font-family: var(--serif); font-style: italic;
  color: var(--ink) !important; max-width: 52ch;
  border-top: 1.5px solid var(--line); padding-top: 22px; margin-top: 32px !important;
}
.about-closer b { font-style: normal; font-weight: 600; color: var(--terra); }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(30px, 4vw, 46px);
  border-top: 1.5px solid var(--ink);
}
.stat .n { font-family: var(--display); font-weight: 800; font-size: clamp(46px,7vw,92px); line-height: .92; letter-spacing: -.04em; }
.stat .l { font-family: var(--serif); font-size: clamp(14px,1.15vw,18px); color: var(--ink-soft); margin-top: 14px; max-width: 20ch; line-height: 1.32; }
.stat .n em { font-style: normal; color: var(--cobalt); }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; gap: 34px; } .stat .l { max-width: 32ch; } }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 380px; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(40px,6vw,80px); flex-wrap: wrap; }
.sec-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px,6vw,86px); letter-spacing: -.035em; line-height: .95; }
.sec-title .accent { color: var(--terra); }
.sec-desc { max-width: 34ch; font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   EXPERIENCE (timeline)
   ============================================================ */
.exp-list { border-top: 1.5px solid var(--ink); }
.exp-item {
  display: grid; grid-template-columns: 90px 1fr auto; gap: clamp(16px,4vw,60px);
  padding: clamp(26px,3vw,40px) 0; border-bottom: 1.5px solid var(--line);
  align-items: baseline; position: relative; transition: padding-left .5s var(--ease);
  overflow: hidden;
}
.exp-item::before {
  content: ""; position: absolute; left: -100%; top: 0; bottom: 0; width: 100%;
  background: var(--ink); z-index: -1; transition: left .5s var(--ease);
}
.exp-item:hover { padding-left: 24px; color: var(--paper); }
.exp-item:hover::before { left: 0; }
.exp-item:hover .exp-role .arrow { transform: translate(4px,-4px); }
.exp-year { font-family: var(--display); font-weight: 700; font-size: 15px; }
.exp-role { font-family: var(--display); font-weight: 700; font-size: clamp(20px,2.6vw,34px); letter-spacing: -.02em; display:flex; align-items:center; gap:14px; }
.exp-role .arrow { transition: transform .4s var(--ease); display:inline-block; }
.exp-where { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.exp-item:hover .exp-where { color: var(--paper); opacity: .7; }
.exp-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border: 1.5px solid currentColor; border-radius: 100px; white-space: nowrap; }
@media (max-width: 720px) {
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .exp-tag { justify-self: start; }
}

/* ============================================================
   PROJECTS (Medcloud)
   ============================================================ */
.prob { margin: clamp(40px,5vw,72px) 0 clamp(48px,6vw,84px); }
.prob-eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: clamp(22px,3vw,34px); }
.prob-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px,3.4vw,46px) clamp(24px,3vw,52px);
  border-top: 1.5px solid var(--ink); padding-top: clamp(28px,3.5vw,44px);
}
.prob-stat .pn { font-family: var(--display); font-weight: 800; font-size: clamp(30px,3.4vw,46px); line-height: 1; letter-spacing: -.03em; }
.prob-stat .pl { font-family: var(--serif); font-size: clamp(13px,1vw,15.5px); color: var(--ink-soft); margin-top: 10px; line-height: 1.36; max-width: 24ch; }
.prob-stat .pl span { opacity: .6; }
@media (max-width: 820px) { .prob-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .prob-grid { grid-template-columns: 1fr; } }

.med-lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3vw, 40px); line-height: 1.2; letter-spacing: -.01em;
  max-width: 22ch; margin: 0 0 clamp(32px,5vw,60px);
}
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px,2vw,26px); }
.proj {
  position: relative; border-radius: 22px; overflow: hidden; padding: clamp(26px,3vw,40px);
  min-height: 340px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; isolation: isolate; transition: transform .6s var(--ease); border: 1.5px solid var(--ink);
}
.proj:hover { transform: translateY(-6px); }
.proj::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.14;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 16px 16px; }
.proj .glyph { position: absolute; right: -30px; top: -30px; font-size: 200px; opacity: .12; font-family: var(--display); font-weight: 800; z-index:-1; }
.proj.c-1 { background: var(--cobalt); grid-column: span 7; }
.proj.c-2 { background: var(--terra); grid-column: span 5; }
.proj.c-3 { background: var(--ink-fixed); grid-column: span 5; }
.proj.c-4 { background: var(--teal); grid-column: span 7; }
.proj.c-5 { background: var(--ochre); color: var(--ink-fixed); grid-column: span 12; min-height: 240px; }
.proj-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.proj-name { font-family: var(--display); font-weight: 800; font-size: clamp(24px,2.6vw,38px); letter-spacing: -.02em; margin-top: auto; }
.proj-desc { font-size: 14px; margin-top: 12px; max-width: 42ch; opacity: .9; }
.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.proj-tags span { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border: 1.5px solid currentColor; border-radius: 100px; }
@media (max-width: 900px) { .proj { grid-column: 1 / -1 !important; min-height: 280px; } }

/* ============================================================
   AWARDS
   ============================================================ */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 0; border: 1.5px solid var(--ink); }
.award { padding: clamp(26px,3vw,40px); border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); position: relative; overflow:hidden; transition: background .4s var(--ease); }
.award:hover { background: var(--cobalt); color: #fff; }
.award .yr { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.award:hover .yr { color: #ffffffcc; }
.award .star { font-size: 26px; color: var(--ochre); margin-bottom: 20px; }
.award h3 { font-family: var(--display); font-weight: 700; font-size: clamp(18px,1.6vw,23px); letter-spacing: -.01em; margin: 12px 0 8px; }
.award p { font-size: 13px; color: var(--ink-soft); }
.award:hover p { color: #ffffffcc; }

/* ============================================================
   WRITING / POSTS
   ============================================================ */
.posts { border-top: 1.5px solid var(--ink); }
.post {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(14px,3vw,40px); align-items: center;
  padding: clamp(20px,2.4vw,30px) 0; border-bottom: 1.5px solid var(--line);
  transition: opacity .3s;
}
.posts:hover .post { opacity: .4; }
.posts .post:hover { opacity: 1; }
.post .p-src { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--terra); }
.post .p-title { font-family: var(--display); font-weight: 700; font-size: clamp(18px,2vw,28px); letter-spacing: -.01em; transition: transform .4s var(--ease); }
.post:hover .p-title { transform: translateX(14px); }
.post .p-date { font-size: 13px; color: var(--ink-soft); }
.post .p-arrow { font-size: 22px; transition: transform .4s var(--ease); }
.post:hover .p-arrow { transform: translate(5px,-5px); color: var(--terra); }
@media (max-width: 720px) { .post { grid-template-columns: 1fr auto; } .post .p-date { display: none; } }
.post .p-title { min-width: 0; }
@media (max-width: 720px) { .post .p-src { grid-column: 1 / -1; } }

/* ---- Embeds oficiais do LinkedIn (texto + fotos reais) ---- */
.embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(18px,2vw,26px); align-items: start; }
.li-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.li-embed {
  width: 100%; height: 560px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper-2); display: block;
}
.li-card figcaption { font-size: 13px; line-height: 1.35; }
.li-card figcaption a { color: var(--ink-soft); font-weight: 600; transition: color .3s; }
.li-card figcaption a:hover { color: var(--terra); }
@media (max-width: 480px) { .li-embed { height: 520px; } }

/* ---- Palestras & painéis (cards com foto) [legado] ---- */
.talks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(16px,1.8vw,24px); }
.talk {
  display: flex; flex-direction: column; border: 1.5px solid var(--line);
  border-radius: 18px; overflow: hidden; background: var(--paper);
  transition: transform .5s var(--ease), border-color .4s var(--ease);
}
.talk:hover { transform: translateY(-5px); border-color: var(--ink); }
.talk-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block;
  background-image: radial-gradient(circle at 1px 1px, #ffffff2e 1px, transparent 0);
  background-size: 15px 15px;
}
.talk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* cor de fundo Bauhaus por card — aparece se a foto ainda não foi adicionada */
.talk.t1 .talk-media { background-color: var(--cobalt); }
.talk.t2 .talk-media { background-color: var(--terra); }
.talk.t3 .talk-media { background-color: var(--teal); }
.talk.t4 .talk-media { background-color: var(--ochre); }
.talk-body { padding: clamp(16px,1.6vw,22px); display: flex; flex-direction: column; gap: 8px; }
.talk-kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.talk-title { font-family: var(--display); font-weight: 700; font-size: clamp(16px,1.4vw,20px); letter-spacing: -.01em; line-height: 1.15; }
.talk-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--terra); }

/* ============================================================
   THOUGHTS
   ============================================================ */
.thoughts { background: var(--ink-fixed); color: var(--paper-fixed); }
.thoughts .sec-title { color: var(--paper-fixed); }
.thought-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(24px,3vw,44px); }
.thought { border-left: 3px solid var(--terra); padding-left: 22px; }
.thought .q { font-family: var(--serif); font-size: clamp(19px,1.7vw,26px); line-height: 1.35; font-style: italic; }
.thought .a { font-size: 13px; letter-spacing: .04em; margin-top: 16px; color: #ffffff88; text-transform: uppercase; }
.thought:nth-child(2n) { border-color: var(--ochre); }
.thought:nth-child(3n) { border-color: var(--teal); }
.thought:nth-child(4n) { border-color: var(--cobalt); }

/* ============================================================
   INTERESTS
   ============================================================ */
.int-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(14px,1.6vw,22px); }
.int {
  border: 1.5px solid var(--ink); border-radius: 20px; padding: clamp(22px,2.4vw,34px);
  min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; transition: background .5s var(--ease), color .5s var(--ease);
}
.int .ic { font-size: 40px; line-height: 1; }
.int h3 { font-family: var(--display); font-weight: 800; font-size: clamp(20px,2vw,28px); letter-spacing: -.02em; margin-top: auto; }
.int p { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; max-width: 34ch; transition: color .5s; }
.int:hover { color: #fff; }
.int:hover p { color: #ffffffcc; }
.int.i-1 { grid-column: span 5; } .int.i-1:hover { background: var(--terra); }
.int.i-2 { grid-column: span 4; } .int.i-2:hover { background: var(--ochre); color: var(--ink-fixed); }
.int.i-2:hover p { color: var(--ink-fixed); }
.int.i-3 { grid-column: span 3; } .int.i-3:hover { background: var(--ink-fixed); color: var(--paper-fixed); }
.int.i-4 { grid-column: span 6; } .int.i-4:hover { background: var(--cobalt); }
.int.i-5 { grid-column: span 6; } .int.i-5:hover { background: var(--teal); }
@media (max-width: 900px) { .int { grid-column: 1 / -1 !important; min-height: 180px; } }

/* ============================================================
   INSPIRAÇÕES
   Sem fotos de terceiros: o âncora visual é um monograma
   geométrico (círculo/quadrado Bauhaus) com as iniciais.
   ============================================================ */
.insp-grid {
  /* Flex (e não grid) de propósito: com grid, um card sobrando na última
     linha fica encostado à esquerda e parece erro. Aqui os que sobram ficam
     centralizados, então QUALQUER quantidade de referências fecha bonito —
     não precisa ser múltiplo de 3. */
  --g: clamp(16px, 1.8vw, 26px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g);
}
.insp {
  border: 1.5px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 2.2vw, 30px);
  display: flex; flex-direction: column; gap: 12px;
  flex: 1 1 250px;
  max-width: calc((100% - 2 * var(--g)) / 3);   /* teto = 3 por linha */
  transition: transform .5s var(--ease), border-color .4s var(--ease), background .5s var(--ease);
}
@media (max-width: 900px) { .insp { max-width: calc((100% - var(--g)) / 2); } }
@media (max-width: 600px) { .insp { max-width: 100%; } }
.insp:hover { transform: translateY(-5px); border-color: currentColor; }
/* Retrato: busto geométrico abstrato na linguagem Bauhaus (Schlemmer).
   Não é likeness de ninguém — é composição de primitivas, uma por pessoa. */
.insp-portrait {
  width: 100%; aspect-ratio: 5 / 4; border-radius: 14px; overflow: hidden;
  margin-bottom: 14px; transition: transform .6s var(--ease);
}
.insp-portrait svg { width: 100%; height: 100%; display: block; }
.insp:hover .insp-portrait { transform: scale(1.03); }
.p-ring { fill: none; stroke-width: 4; }
.p-light { fill: var(--paper); }
.insp h3 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(18px, 1.7vw, 23px); letter-spacing: -.02em; line-height: 1.1;
}
.insp-field {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.insp-why { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
/* acentos por pessoa: figura sólida + placa em tinta suave da mesma cor */
.insp.c-terra  .insp-portrait { background: color-mix(in srgb, var(--terra) 15%, transparent); }
.insp.c-terra  .p-solid { fill: var(--terra); }  .insp.c-terra  .p-ring { stroke: var(--terra); }
.insp.c-cobalt .insp-portrait { background: color-mix(in srgb, var(--cobalt) 15%, transparent); }
.insp.c-cobalt .p-solid { fill: var(--cobalt); } .insp.c-cobalt .p-ring { stroke: var(--cobalt); }
.insp.c-ochre  .insp-portrait { background: color-mix(in srgb, var(--ochre) 22%, transparent); }
.insp.c-ochre  .p-solid { fill: var(--ochre); }  .insp.c-ochre  .p-ring { stroke: var(--ochre); }
/* o ocre é claro nos dois temas, então a face precisa ser sempre escura */
.insp.c-ochre  .p-light { fill: var(--ink-fixed); }
.insp.c-teal   .insp-portrait { background: color-mix(in srgb, var(--teal) 15%, transparent); }
.insp.c-teal   .p-solid { fill: var(--teal); }   .insp.c-teal   .p-ring { stroke: var(--teal); }
.insp.c-ink    .insp-portrait { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.insp.c-ink    .p-solid { fill: var(--ink); }    .insp.c-ink    .p-ring { stroke: var(--ink); }
.insp.c-terra:hover  { border-color: var(--terra); }
.insp.c-cobalt:hover { border-color: var(--cobalt); }
.insp.c-ochre:hover  { border-color: var(--ochre); }
.insp.c-teal:hover   { border-color: var(--teal); }
.insp.c-ink:hover    { border-color: var(--ink); }

/* ============================================================
   PESSOAL (família + vídeos)
   ============================================================ */
.pessoal-top {
  display: grid; grid-template-columns: minmax(240px, .82fr) 1.18fr;
  gap: clamp(30px,5vw,70px); align-items: center;
}
.fam-photo { position: relative; margin: 0; }
.fam-photo::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px,16px);
  border-radius: 20px; background: var(--cobalt); z-index: 0;
}
.fam-photo img {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  border-radius: 20px; border: 1.5px solid var(--ink);
}
.fam-note .fam-lead {
  font-family: var(--serif); font-size: clamp(24px,2.8vw,38px); line-height: 1.18;
  margin-bottom: 20px;
}
.fam-note .fam-lead b { font-weight: 600; font-style: italic; color: var(--terra); }
.fam-note p { font-size: clamp(15px,1.15vw,17px); color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 820px) {
  .pessoal-top { grid-template-columns: 1fr; }
  .fam-photo { max-width: 420px; }
}

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(20px,2.4vw,34px); }
.vid { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.vid-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--ink);
}
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid figcaption { display: flex; flex-direction: column; gap: 6px; }
.vid-kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.vid-title { font-family: var(--display); font-weight: 700; font-size: clamp(17px,1.6vw,22px); letter-spacing: -.01em; line-height: 1.15; }
.vid-note { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); max-width: 48ch; }

/* ============================================================
   LEITURAS (estante / carrossel de capas)
   ============================================================ */
.shelf-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.shelf-arrows { display: flex; gap: 10px; }
.shelf-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink);
  font-size: 22px; line-height: 1; display: grid; place-items: center;
  background: transparent; transition: background .3s var(--ease), color .3s var(--ease);
}
.shelf-btn:hover { background: var(--ink); color: var(--paper); }
@media (hover: none) { .shelf-arrows { display: none; } }

.shelf {
  display: flex; gap: clamp(16px, 2vw, 26px); overflow-x: auto;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding: 10px 2px 26px; margin-top: clamp(30px,4vw,50px);
  scrollbar-width: thin;
  overflow-anchor: none;   /* impede o navegador de "ancorar" o scroll quando as capas carregam */
}
.shelf::-webkit-scrollbar { height: 8px; }
.shelf::-webkit-scrollbar-track { background: transparent; }
.shelf::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.book { flex: 0 0 auto; width: clamp(140px, 16vw, 172px); scroll-snap-align: start; }
.book-cover {
  aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; position: relative;
  border: 1.5px solid var(--line); background: var(--ink);
  box-shadow: 0 12px 30px #00000021;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.book:hover .book-cover { transform: translateY(-10px); box-shadow: 0 24px 44px #00000033; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-meta { margin-top: 14px; }
.book-title { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.2; letter-spacing: -.01em; }
.book-author { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 640px) { .book { width: 44vw; } }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: clamp(20px,2.4vw,34px); }
.edu { border-top: 3px solid var(--cobalt); padding-top: 22px; }
.edu:nth-child(2n){border-color:var(--terra)} .edu:nth-child(3n){border-color:var(--teal)}
.edu .deg { font-family: var(--display); font-weight: 700; font-size: clamp(19px,1.8vw,25px); letter-spacing: -.01em; }
.edu .inst { font-size: 15px; margin-top: 8px; }
.edu .yr { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact { background: var(--terra); color: var(--paper); }
:root[data-theme="dark"] .contact { color: #fff; }
.contact .big {
  font-family: var(--display); font-weight: 800; font-size: clamp(44px,10vw,150px);
  letter-spacing: -.04em; line-height: .9;
}
.contact .big a { display: inline-flex; align-items: center; gap: .2em; transition: opacity .3s; }
.contact .big a:hover { opacity: .7; }
.contact .big .arrow { transition: transform .4s var(--ease); }
.contact .big a:hover .arrow { transform: translate(10px,-10px); }
/* Manifesto (seção editorial de impacto) */
.manifesto { background: var(--ink-fixed); color: var(--paper-fixed); }
.manifesto-body p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(23px, 3.2vw, 44px); line-height: 1.28; letter-spacing: -.01em;
  max-width: 26ch; margin-bottom: clamp(24px, 3.2vw, 44px);
}
.manifesto-body p:last-child { margin-bottom: 0; color: #ffffffcc; }
.manifesto-body b { font-weight: 500; font-style: italic; color: var(--ochre); }

/* Faixa de credibilidade (logos de reconhecimento e parceiros) */
.cred { border-bottom: 1.5px solid var(--ink); padding-block: clamp(30px, 4vw, 46px); }
.cred-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 4.5vw, 60px); }
.cred-logos img { height: 34px; width: auto; object-fit: contain; }
.cred-more { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
/* dark mode: logos coloridos sumiriam no escuro, então viram silhueta branca */
:root[data-theme="dark"] .cred-logos img { filter: brightness(0) invert(1); opacity: .85; }

/* CTA do Contato (linha de intenção + trilhas) */
.cta-line {
  font-family: var(--serif); font-style: italic; line-height: 1.3;
  font-size: clamp(18px, 2vw, 26px); max-width: 34ch; margin: 26px 0 22px;
}
.cta-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-chips span {
  border: 1.5px solid currentColor; border-radius: 100px; padding: 9px 18px;
  font-weight: 600; font-size: 14px;
}
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.socials a {
  border: 1.5px solid currentColor; border-radius: 100px; padding: 12px 22px;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 10px;
  transition: background .3s, color .3s;
}
.socials a:hover { background: var(--paper); color: var(--terra); }
footer.foot {
  padding: clamp(46px, 6vw, 76px) var(--gutter) 44px;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  text-align: center; font-size: 13px; color: var(--ink-soft);
  border-top: 1.5px solid var(--line);
}
footer.foot .foot-name {
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -8px;
}
footer.foot .brand-sm {
  font-family: var(--display); font-weight: 800; color: var(--ink);
  font-size: clamp(21px, 2.6vw, 30px); letter-spacing: -.02em;
}
footer.foot .foot-gloss {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--ink-soft); max-width: 40ch;
}
footer.foot .foot-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; width: 100%;
  padding-top: 22px; border-top: 1.5px solid var(--line);
}

/* --- Silhueta de Nossa Senhora de Guadalupe --- */
.foot-emblem { line-height: 0; }
.guad {
  width: clamp(84px, 9vw, 116px); height: auto; overflow: visible;
  transition: transform .8s var(--ease);
}
.foot-emblem:hover .guad { transform: translateY(-4px) scale(1.03); }
.g-rays   { fill: var(--ochre); }
.g-mantle { fill: var(--cobalt); }
.g-robe   { fill: var(--terra); }
.g-face   { fill: var(--paper-fixed); }
.g-hands  { fill: var(--paper-fixed); }
.g-moon   { fill: var(--ochre); }
/* raios respiram devagar */
@media (prefers-reduced-motion: no-preference) {
  .g-rays { animation: halo 7s ease-in-out infinite; transform-origin: 110px 158px; }
  @keyframes halo {
    0%, 100% { opacity: .78; transform: scale(.985) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1)    rotate(3deg); }
  }
}

/* Progress bar */
#progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--terra); z-index: 200; width: 0; }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; gap: 1px; }
.lang-switch button {
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .05em;
  padding: 5px 6px; border: none; background: none; color: var(--ink-soft);
  cursor: pointer; border-radius: 6px; transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--terra); }
.nav-right .lang-switch { margin-right: 4px; }
@media (max-width: 720px) { .nav-right .lang-switch { display: none; } }
.lang-switch-menu { margin-top: 22px; gap: 8px; }
.lang-switch-menu button { font-size: 14px; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 100px; color: var(--ink); }
.lang-switch-menu button.active { border-color: var(--terra); color: var(--terra); }
