:root {
  --navy: #101923;
  --navy-2: #172331;
  --paper: #f4f2ed;
  --surface: #ffffff;
  --ink: #18212b;
  --muted: #6a727b;
  --accent: #9c8762;
  --line: rgba(24, 33, 43, .12);
  --line-light: rgba(255, 255, 255, .16);
  --container: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, blockquote { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; }
p { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.section { padding: 92px 0; }
.section-label {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-label.light { color: rgba(255, 255, 255, .58); }
h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.3vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -.04em;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(16, 25, 35, .94);
  border-color: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  font-family: Georgia, serif;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.site-nav a {
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; }
.site-nav .contact-link {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  min-height: 720px;
  padding-top: 76px;
  color: #fff;
  background: var(--navy);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(400px, .72fr);
  align-items: stretch;
  gap: 88px;
  min-height: 644px;
}
.hero-copy {
  align-self: center;
  max-width: 650px;
  padding: 56px 0;
}
.eyebrow {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 670px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 6.6vw, 6.35rem);
  font-weight: 500;
  letter-spacing: -.055em;
}
.hero-role {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-lead {
  max-width: 590px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .68);
  font-size: 1.07rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: #fff;
  color: var(--navy);
}
.button.secondary {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}
.hero-image {
  position: relative;
  align-self: stretch;
  margin: 0;
  overflow: hidden;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,25,35,.2), transparent 35%);
  pointer-events: none;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.profile { background: var(--paper); }
.profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 82px;
}
.profile-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 22px 55px rgba(16, 25, 35, .12);
}
.profile-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 50% 52%;
}
.profile-copy { max-width: 710px; }
.profile-copy .lead {
  max-width: 680px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.5;
}
.profile-copy > p:not(.section-label):not(.lead) { max-width: 680px; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.principles div { min-width: 0; }
.principles span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 750;
}
.principles strong {
  display: block;
  font-size: .92rem;
  line-height: 1.4;
}

.editorial {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
  background: #080a0d;
}
.editorial-media {
  position: absolute;
  inset: 0;
  background-color: #080a0d;
  background-image:
    linear-gradient(90deg, #080a0d 0%, rgba(8,10,13,.96) 28%, rgba(8,10,13,.55) 48%, rgba(8,10,13,0) 70%),
    url("assets/mateus-editorial.webp");
  background-repeat: no-repeat;
  background-size: cover, min(760px, 55vw) auto;
  background-position: center, right 42%;
}
.editorial-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 500px;
}
.editorial-copy { max-width: 610px; }
.editorial blockquote {
  margin-bottom: 25px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.editorial-copy > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .58);
}

.career { background: var(--surface); }
.career-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 95px;
}
.section-intro { max-width: 430px; }
.section-intro h2 { font-size: clamp(2.3rem, 3.8vw, 3.65rem); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 28px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item time {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.timeline-item p {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.timeline-item h3 {
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
}
.timeline-item span {
  color: var(--muted);
  font-size: .9rem;
}

.credentials {
  color: #fff;
  background: var(--navy-2);
}
.credentials-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 92px;
}
.credentials h2 {
  max-width: 650px;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
}
.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.credential-list span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  font-weight: 650;
}
.education { padding-top: 4px; }
.education article {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
}
.education article:last-child { border-bottom: 1px solid var(--line-light); }
.education time {
  color: rgba(255, 255, 255, .5);
  font-size: .78rem;
}
.education h3 {
  margin-bottom: 6px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}
.education p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .55);
  font-size: .88rem;
}

.contact {
  padding-top: 78px;
  padding-bottom: 78px;
  background: var(--paper);
}
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 54px 60px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
}
.contact-panel h2 {
  margin-bottom: 15px;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
}
.contact-panel p { color: rgba(255, 255, 255, .56); }
.contact-list { border-top: 1px solid var(--line-light); }
.contact-list a {
  display: block;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
}
.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .45);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-list strong {
  color: rgba(255, 255, 255, .88);
  font-size: .94rem;
  overflow-wrap: anywhere;
}

footer {
  padding: 32px 0;
  background: #0b121a;
  color: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  align-items: center;
  gap: 40px;
}
.footer-inner div { display: flex; flex-direction: column; }
.footer-inner strong { font-size: .92rem; }
.footer-inner span,
.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, .48);
  font-size: .76rem;
}
.footer-inner p { margin-bottom: 0; }
.footer-inner a { text-decoration: none; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 980px) {
  .section { padding: 76px 0; }
  .hero { min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr .78fr;
    gap: 42px;
    min-height: 600px;
  }
  .hero h1 { font-size: clamp(3.1rem, 7vw, 5.25rem); }
  .profile-grid,
  .career-grid,
  .credentials-grid { gap: 55px; }
  .profile-image img { height: 470px; }
  .principles { grid-template-columns: 1fr; gap: 14px; }
  .principles div { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
  .principles span { margin-bottom: 0; }
  .contact-panel { padding: 46px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 66px; }
  .brand-text { font-size: .84rem; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 66px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 24px;
    background: rgba(16, 25, 35, .98);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .site-nav .contact-link {
    margin-top: 12px;
    text-align: center;
  }

  .hero { padding-top: 66px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  .hero-copy { padding: 62px 0 48px; }
  .hero h1 { max-width: 590px; font-size: clamp(3.25rem, 14vw, 5.2rem); }
  .hero-image {
    height: min(118vw, 640px);
    margin-inline: -14px;
  }
  .hero-image img { object-position: center 18%; }

  .profile-grid,
  .career-grid,
  .credentials-grid,
  .contact-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .profile-grid { gap: 42px; }
  .profile-image { max-width: 520px; }
  .profile-image img { height: min(115vw, 560px); object-position: center 48%; }
  .editorial {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .editorial-inner {
    order: 1;
    min-height: 0;
    padding-top: 64px;
    padding-bottom: 52px;
  }
  .editorial-media {
    position: relative;
    order: 2;
    height: 430px;
    background-image: url("assets/mateus-editorial.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 64% 38%;
  }
  .editorial-copy {
    align-self: flex-start;
    max-width: 500px;
  }
  .editorial blockquote { font-size: clamp(2.15rem, 9vw, 3.55rem); }
  .career-grid { gap: 42px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .credentials-grid { gap: 54px; }
  .contact-panel { gap: 35px; padding: 38px 26px; }
  .footer-inner { gap: 22px; }
}

@media (max-width: 460px) {
  .section { padding: 66px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .profile-image img { height: 470px; }
  .education article { grid-template-columns: 1fr; gap: 8px; }
  .contact-list strong { font-size: .86rem; }
}
