:root {
  --ink: #071626;
  --navy: #0a2440;
  --blue: #0d5c87;
  --cyan: #4fc3cf;
  --paper: #f6f8fa;
  --white: #ffffff;
  --muted: #657687;
  --line: #d9e2e9;
  --gold: #c4a66a;
  --shadow: 0 24px 60px rgba(7, 22, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  background: var(--white); padding: .75rem 1rem; border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 250, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 226, 233, .75);
}
.header-inner { min-height: 184px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 1 156.8px; min-width: 0; }
.brand-logo { display: block; width: 156.8px; height: auto; object-fit: contain; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: var(--ink); color: var(--white);
  font-family: Georgia, serif; font-size: 1.05rem; letter-spacing: -.05em;
  box-shadow: 0 10px 22px rgba(7, 22, 38, .16);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-top: .25rem; }
.nav { display: flex; align-items: center; gap: 1.35rem; flex: 0 0 auto; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 650; color: #31465a; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav-cta { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink); }

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  min-height: 760px; display: grid; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(79,195,207,.25), transparent 23%),
    radial-gradient(circle at 82% 65%, rgba(13,92,135,.44), transparent 32%),
    linear-gradient(115deg, transparent 52%, rgba(255,255,255,.035) 52.1%, transparent 52.4%);
}
.hero::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -120px; top: 70px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: end; padding-block: 5.5rem; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 1rem; }
.eyebrow { margin: 0 0 1.25rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 5.8vw, 5.65rem); margin: 0; max-width: 900px; }
.hero h1 { max-width: 780px; font-size: clamp(2.65rem, 4.4vw, 4.65rem); overflow-wrap: break-word; }
.hero h1 span { color: #8fd9e0; }
.hero-lede { margin: 1.8rem 0 2rem; max-width: 700px; color: #c6d2dc; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .72rem 1.1rem; border-radius: .35rem; text-decoration: none; font-weight: 750; font-size: .92rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: var(--ink); }
.button-secondary { border: 1px solid rgba(255,255,255,.2); color: var(--white); }
.hero-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3.3rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero-index a { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: 1.25rem 0 0; text-decoration: none; }
.hero-index strong { color: var(--cyan); font-size: .72rem; letter-spacing: .1em; }
.hero-index span { color: #e6eef4; font-size: .92rem; line-height: 1.4; }
.hero-portrait { position: relative; margin: 0; min-height: 650px; align-self: stretch; overflow: hidden; border: 1px solid rgba(255,255,255,.13); box-shadow: 0 35px 90px rgba(0,0,0,.28); background: #0b1726; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(4,16,29,.96) 100%); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 38%; }
.hero-portrait.hero-portrait-approved { min-height: 0; align-self: center; }
.hero-portrait-approved img { height: auto; }
.hero-portrait figcaption { position: absolute; z-index: 2; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; display: grid; gap: .2rem; }
.hero-portrait figcaption strong { font: 500 1.25rem/1.2 Georgia, serif; }
.hero-portrait figcaption span { color: #bfcbd5; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.section { padding-block: clamp(4.8rem, 9vw, 8rem); }
.section-alt { background: var(--white); }
.section-head { display: grid; grid-template-columns: .42fr 1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.kicker { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 820px; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin: 1rem 0 0; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.topic-card { min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); text-decoration: none; position: relative; overflow: hidden; }
.topic-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 230px; height: 230px; border-radius: 50%; border: 1px solid rgba(13,92,135,.14); box-shadow: 0 0 0 38px rgba(13,92,135,.035), 0 0 0 76px rgba(13,92,135,.025); }
.topic-card:hover { border-color: #a8bdca; box-shadow: var(--shadow); }
.topic-number { color: var(--blue); font-weight: 850; font-size: .76rem; letter-spacing: .12em; }
.topic-card h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 2rem 0 1rem; max-width: 540px; }
.topic-card p { color: var(--muted); max-width: 550px; margin: 0; }
.arrow { margin-top: 2rem; color: var(--blue); font-weight: 800; }

.featured { display: grid; grid-template-columns: 1fr .72fr; background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.featured-copy { padding: clamp(2rem, 6vw, 4.5rem); }
.featured-meta { color: var(--cyan); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.featured h3 { font-size: clamp(2.35rem, 5vw, 4.7rem); margin: 1.1rem 0 1.3rem; }
.featured p { color: #c8d6e0; max-width: 650px; }
.featured-visual { position: relative; min-height: 430px; overflow: hidden; background: linear-gradient(145deg, #0d5c87, #071626 80%); }
.featured-visual::before, .featured-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 42% 58% 48% 52% / 52% 45% 55% 48%; transform: rotate(20deg); }
.featured-visual::before { width: 470px; height: 310px; right: -90px; top: 45px; box-shadow: 0 0 0 50px rgba(255,255,255,.04), 0 0 0 100px rgba(255,255,255,.025); }
.featured-visual::after { width: 250px; height: 420px; left: 15%; bottom: -220px; }
.featured-label { position: absolute; inset: auto 2rem 2rem; z-index: 2; color: rgba(255,255,255,.75); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; }

.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.career-track { position: sticky; top: 112px; background: var(--ink); color: var(--white); padding: clamp(1.5rem, 4vw, 2.7rem); }
.career-intro { margin: 0 0 2rem; color: #9ee0e5; font: 500 clamp(1.65rem, 3vw, 2.35rem)/1.16 Georgia, serif; letter-spacing: -.025em; }
.career-item { display: grid; gap: .35rem; padding: 1.15rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.career-item span { color: var(--cyan); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.career-item strong { color: #eef4f8; font-size: .91rem; line-height: 1.5; }
.about-copy h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); margin: 0 0 1.5rem; }
.about-copy p { color: #526779; font-size: 1.08rem; }
.credentials { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 2rem; }
.credential { padding: 1rem 0; border-top: 1px solid var(--line); }
.credential strong { display: block; font-size: .73rem; letter-spacing: .11em; text-transform: uppercase; color: var(--blue); margin-bottom: .3rem; }

.page-hero { background: var(--ink); color: var(--white); padding-block: 6rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 410px; height: 410px; right: -80px; top: -180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 1050px; }
.page-hero p { color: #c7d4df; max-width: 780px; font-size: 1.16rem; margin-top: 1.5rem; }
.article-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.article-card { display: grid; grid-template-columns: 9rem 1fr auto; gap: 2rem; align-items: center; background: var(--white); padding: 1.5rem; text-decoration: none; }
.article-card:hover { background: #fafdff; }
.article-date { color: var(--muted); font-size: .82rem; }
.article-card h3 { font-family: inherit; font-size: 1.12rem; font-weight: 780; letter-spacing: -.02em; margin: 0; }
.article-card span:last-child { color: var(--blue); font-weight: 800; }
.coming { padding: 1.6rem; background: var(--white); border: 1px dashed #adc0cc; color: var(--muted); }

.article-header { padding-block: 5.5rem 3rem; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 2.2rem; }
.breadcrumbs a { text-decoration: none; color: var(--blue); }
.article-header h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 1050px; margin: 0; }
.article-deck { font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.45; color: #4c6173; max-width: 900px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.article-body { background: var(--white); padding: clamp(1.5rem, 5vw, 4rem); border: 1px solid var(--line); }
.article-body p, .article-body li { color: #344c60; font-size: 1.05rem; }
.article-body h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 3rem 0 1rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body strong { color: var(--ink); }
.article-body blockquote { margin: 2.5rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 3px solid var(--cyan); font: 500 1.3rem/1.55 Georgia, serif; color: var(--navy); }
.article-aside { position: sticky; top: 110px; }
.article-aside strong { display: block; margin-bottom: .8rem; }
.article-aside a { display: block; color: var(--muted); text-decoration: none; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.article-aside a:hover { color: var(--blue); }
.legal-note { margin-top: 2rem; padding: 1.2rem; background: #eef4f7; color: #546b7c; font-size: .84rem; }

.site-footer { background: #04101d; color: #aebdca; padding-block: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-name { color: var(--white); font: 500 1.5rem/1.2 Georgia, serif; }
.footer-meta { font-size: .79rem; margin-top: .65rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.footer-links a { text-decoration: none; font-size: .82rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.whatsapp-contact {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: calc(100% - 2.5rem);
  min-height: 56px;
  padding: .8rem 1.1rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: #087c3e;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.whatsapp-contact svg { flex: 0 0 30px; }
.whatsapp-contact:hover { background: #066332; }
.whatsapp-contact:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.has-whatsapp-contact .site-footer { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }

@media (max-width: 680px) {
  .whatsapp-contact { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); max-width: calc(100% - 2rem); font-size: .875rem; padding: .75rem 1rem; }
}

@media (max-width: 1050px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: .65rem; }
  .hero { min-height: auto; }
  .hero-grid, .section-head, .featured, .about-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; padding-block: 5rem; }
  .hero-portrait { min-height: min(720px, 115vw); width: min(100%, 560px); justify-self: center; }
  .featured-visual { min-height: 270px; }
  .career-track { position: static; }
  .article-aside { position: static; order: -1; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 156px; gap: .75rem; }
  .brand { flex: 0 1 auto; max-width: calc(100% - 64px); }
  .brand-logo { width: min(134.4px, calc(100vw - 112px)); height: auto; }
  .menu-toggle { flex-shrink: 0; }
  .hero::after { width: 360px; height: 360px; opacity: .6; }
  .hero-grid { padding-block: 4rem 5rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.65rem); }
  .topics, .credentials, .hero-index { grid-template-columns: 1fr; }
  .topic-card { min-height: 290px; }
  .article-card { grid-template-columns: 1fr auto; gap: .45rem 1rem; }
  .article-date { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Article collection and short-form reading */
.article-summary { margin: .5rem 0 0; color: #526779; font-size: 1rem; }
.article-card > div { min-width: 0; }
.article-card h3 { overflow-wrap: break-word; line-height: 1.35; }
.article-body h2[id] { scroll-margin-top: 200px; }
@media (max-width: 680px) { .article-body h2[id] { scroll-margin-top: 175px; } }
