/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --color-white:   #ffffff;
  --color-ink:     #0f172a;
  --color-text:    #1e293b;
  --color-muted:   #64748b;
  --color-soft:    #f8fafc;
  --color-line:    #e2e8f0;
  --color-accent:  #0a6ed1;

  --font-sans: Inter, "Source Sans Pro", system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width:     1160px;
  --radius:        8px;
  --space-page:    clamp(24px, 5vw, 56px);
  --space-section: clamp(72px, 9vw, 120px);
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(10, 110, 209, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid rgba(10, 110, 209, 0.35);
  outline-offset: 4px;
}

/* ── Layout helpers ─────────────────────────────────────── */
.site-header__inner,
.section__inner,
.hero__inner,
.site-footer__inner {
  width: min(100% - (var(--space-page) * 2), var(--max-width));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header__brand {
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 32px);
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 600;
  margin-inline-start: auto;
}

.site-nav a {
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--color-ink);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-white);
}

.hero__inner {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  padding-block: clamp(72px, 9vw, 110px);
}

.hero__content {
  min-width: 0;
}

/* Eyebrow + section labels */
.eyebrow,
.section__label,
.article-teaser__meta {
  margin: 0;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Hero h1 */
.hero h1 {
  margin: 16px 0 0;
  color: var(--color-ink);
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.07;
}

.hero__subheadline {
  margin: 28px 0 0;
  max-width: 640px;
  color: var(--color-text);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.hero__statement {
  max-width: 640px;
  margin-top: 36px;
  padding: 26px 28px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-soft);
}

.hero__statement p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.hero__statement p + p {
  margin-top: 12px;
  color: var(--color-ink);
  font-weight: 700;
}

/* Profile facts */
.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 600px;
  margin: 36px 0 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-line);
}

.profile-facts div {
  min-width: 0;
  padding: 16px 18px;
  background: var(--color-white);
}

.profile-facts dt {
  margin: 0 0 3px;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-facts dd {
  margin: 0;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Photo – right column, portrait */
.hero__profile {
  align-self: center;
  justify-self: end;
}

.hero__photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--color-line);
  background: var(--color-soft);
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding-block: var(--space-section);
}

.section--muted {
  background: var(--color-soft);
  border-block: 1px solid var(--color-line);
}

.section--intro {
  padding-block: clamp(80px, 9vw, 112px);
}

/* Two-column text layout (label | body) — legacy, kept for compatibility */
.text-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

/* Split layout: text column + image column */
.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.section-split--flip .section-split__media {
  order: -1;
}

.section-split__content .section__label {
  display: block;
  margin-bottom: 14px;
}

.section-split__content h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-split__content p {
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-text);
}

/* Section images */
.section-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* Full-width banner image above card grids */
.section-banner {
  margin: 0 0 32px;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.section-img--banner {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
}

/* Section headings above card grids */
.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 12px 0 0;
}

/* Shared h2 styling */
.text-layout h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.text-layout p {
  margin: 0;
}

.text-layout__body > p {
  margin-top: 22px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-text);
}

/* ── Cards ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
}

.card h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 1.1rem;
  font-weight: 780;
  line-height: 1.25;
}

.card p {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card--compact {
  padding: 24px;
}

.card--compact h3 {
  font-size: 1rem;
}

/* ── Badges ───────────────────────────────────────────── */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.badge-list li {
  padding: 8px 14px 9px;
  border: 1px solid rgba(10, 110, 209, 0.2);
  border-radius: 999px;
  color: var(--color-ink);
  background: var(--color-white);
  font-size: 0.91rem;
  font-weight: 660;
  line-height: 1.2;
}

/* ── Contact ──────────────────────────────────────────── */
.contact {
  padding-block: clamp(72px, 8vw, 108px);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact h2 {
  margin-top: 12px;
}

.contact__intro {
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 480px;
}

.contact__links {
  display: grid;
  gap: 16px;
  margin: 0;
  font-style: normal;
  align-self: center;
}

.contact__links a {
  width: fit-content;
  color: var(--color-ink);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
}

.contact__links a:hover,
.contact__links a:focus-visible {
  color: var(--color-accent);
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-block: 36px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.site-footer__name {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  margin-bottom: 4px;
}

.site-footer__disclaimer {
  margin-top: 12px;
  max-width: 540px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
  }

  .hero__photo {
    width: 220px;
    height: 220px;
  }

  .card-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 40px;
  }
}

@media (max-width: 800px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    min-height: auto;
    padding-block: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-inline-start: 0;
  }

  /* On mobile: photo comes first (above text), then text */
  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    padding-block: 52px 72px;
  }

  .hero__profile {
    grid-row: 1;
    justify-self: start;
  }

  .hero__content {
    grid-row: 2;
  }

  .hero__photo {
    width: 130px;
    height: 130px;
  }

  .text-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-split,
  .section-split--flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-split--flip .section-split__media {
    order: 0;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .hero__statement {
    padding: 20px 22px;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .card-grid--four {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__legal {
    align-items: flex-start;
    flex-direction: row;
    gap: 16px;
  }
}
