:root {
  --navy: #0f2340;
  --navy-2: #1b3358;
  --gold: #b08d57;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

/* Bilingual switch: show only the active language */
body.lang-es .en, body.lang-es .fr,
body.lang-en .es, body.lang-en .fr,
body.lang-fr .es, body.lang-fr .en { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 28px; }
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-top: 14px;
}
.center h2::after { margin-left: auto; margin-right: auto; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--navy); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font: 600 0.8rem var(--sans);
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang-switch button { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.lang-switch .flag { width: 12px; height: 8px; border-radius: 1px; opacity: .55; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); }
.lang-switch button[aria-pressed="true"] .flag { opacity: .9; }

/* Hero */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
.role { font-size: 1.1rem; font-weight: 500; color: var(--navy-2); margin: 14px 0 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.hero-photo img {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  box-shadow: 24px 24px 0 var(--navy);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.75rem;
  color: var(--gold);
  line-height: 1.1;
}
.stat span { font-size: 0.9rem; color: #c9d1de; }
.stat strong { height: 3.025rem; display: flex; align-items: center; justify-content: center; }
.stat strong.word { font-size: 1.85rem; white-space: nowrap; }
.stat strong.word span { font-size: inherit; color: inherit; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section p { margin: 0 0 18px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 44px 12px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
}
.when {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.timeline h3 { font-size: 1.6rem; }
.company {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin: 6px 0 4px !important;
}
.timeline ul { margin: 0; padding-left: 20px; color: var(--muted); }
.timeline ul li { margin-bottom: 4px; }

/* Role photo */
.role-photo { margin: 20px 0 0; max-width: 260px; background: #fff; border: 1px solid var(--line); padding: 8px; }
.role-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.role-photo figcaption { font-size: 0.8rem; color: var(--muted); padding: 8px 2px 2px; }

/* Press clippings */
.press { margin-top: 24px; }
.press-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px !important;
}
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; }
.press-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); padding: 5px; display: flex; flex-direction: column; }
.press-grid figure img { width: 100%; height: 160px; object-fit: cover; object-position: center 30%; }
.press-grid figcaption { font-size: 0.72rem; line-height: 1.35; color: var(--muted); padding: 6px 2px 2px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 28px 24px;
  background: #fff;
}
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; margin-top: 64px; }
.small-title { font-size: 1.5rem; margin-bottom: 16px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.plain strong { color: var(--ink); }
.diploma {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.diploma img {
  width: 120px;
  aspect-ratio: 1400 / 1082;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(15, 35, 64, 0.12);
  transition: transform 0.2s;
}
.diploma:hover img { transform: scale(1.04); }
.diploma:hover span { text-decoration: underline; }
.langs li { display: flex; justify-content: space-between; color: var(--ink); }
.langs em { font-style: normal; color: var(--muted); }

/* Contact */
.contact { background: var(--navy); color: #dfe5ee; }
.contact h2 { color: #fff; }
.location { margin-top: 28px !important; font-size: 0.9rem; color: #9fb0c8; }

.footer { padding: 24px 0; text-align: center; font-size: 0.85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 260px; margin: 0; box-shadow: 14px 14px 0 var(--navy); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .stat strong { font-size: 2.3rem; height: 2.6rem; }
  .stat strong.word { font-size: 1.5rem; }
  .stat span { font-size: 0.8rem; }
  .cards { grid-template-columns: 1fr; }
  .timeline { padding-left: 20px; }
  .timeline > li::before { left: -28px; }
}

/* Clickable thumbnails */
.role-photo a, .press-grid a { display: block; cursor: zoom-in; }
.role-photo a:hover img, .press-grid a:hover img { opacity: 0.9; }

/* Company logo in experience */
.role-head { display: flex; align-items: center; gap: 32px; }
.role-head > div { flex: 0 1 540px; min-width: 0; }
.company-logo { width: 180px; flex-shrink: 0; height: auto; border-radius: 3px; }
@media (max-width: 700px) {
  .role-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .role-head > div { flex: none; }
  .company-logo { width: 150px; margin-bottom: 12px; }
}

