/* ===== Base ===== */
:root {
  --ink: #1E1E1E;
  --paper: #FAFAF8;
  --accent: #16548D;
  --accent-light: #9CC3EA;
  --text-muted: #4A4A47;
  --text-soft: #6B6B66;
  --line: #E2E0DA;
  --line-dark: #3A3A3A;
  --on-dark: #F3F1EC;
  --on-dark-muted: #C9C7C1;
  --on-dark-label: #A9A7A1;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-head: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.dark { background: var(--ink); color: var(--on-dark); }
.light { background: var(--paper); }

/* ===== Shared type ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--accent-light); }
.eyebrow.muted { color: var(--on-dark-label); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 3px;
}
.btn-light { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-light:hover { color: var(--accent); }
.btn-dark:hover { color: var(--accent-light); }

.link-arrow {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-underline-offset: 6px;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--ink);
  color: #BDBDB8;
  border-bottom: 1px solid #333333;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.topbar .container {
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.topbar a { color: #BDBDB8; text-decoration: none; }

/* ===== Header ===== */
.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;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #2E2E2E;
}
.site-header .container {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}
.main-nav a { color: #E9E7E1; text-decoration: none; }
.main-nav a:hover { color: var(--accent-light); }
.main-nav .btn { color: var(--ink); padding: 10px 18px; }
.main-nav .btn:hover { color: var(--accent); }

.nav-drop { position: relative; }
.nav-drop-btn {
  font: inherit;
  color: #E9E7E1;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.nav-drop-btn:hover { color: var(--accent-light); }
.nav-drop-btn svg { transition: transform 0.2s ease; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 22px);
  left: -20px;
  min-width: 250px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 8px;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 3px;
}
.nav-drop-menu a:hover { background: #2A2A2A; }
.nav-drop-menu .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #5C5C5C;
  border-radius: 3px;
  color: #FFFFFF;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 24px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop-btn { padding: 14px 0; border-bottom: 1px solid #2E2E2E; width: 100%; }
  .main-nav .btn { margin-top: 18px; text-align: center; border-bottom: 0; }
  .nav-drop-menu { position: static; border: 0; padding: 4px 0 8px; min-width: 0; }
}

/* ===== Hero carousel ===== */
.carousel {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: var(--ink);
}
.carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.carousel .slide.active { opacity: 1; }

.carousel-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 4px;
  background: rgba(30, 30, 30, 0.7);
}
.carousel-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid #5C5C5C;
  border-radius: 3px;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.carousel-dots { display: flex; }
.carousel-dot {
  width: 28px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.carousel-dot span {
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #6A6A6A;
}
.carousel-dot.active span { background: #FFFFFF; }

/* ===== Intro ===== */
.intro .container {
  padding-top: 72px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
}
.intro-left { flex: 1 1 560px; min-width: 0; }
.intro-left .eyebrow { margin-bottom: 20px; font-size: 12px; }
.intro h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.01em;
}
.intro-right { flex: 1 1 380px; min-width: 0; }
.intro-right p { font-size: 18px; color: var(--on-dark-muted); margin: 0 0 28px; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.intro-actions .btn { padding: 14px 24px; font-size: 15px; }
.intro-actions .link-light {
  color: var(--on-dark);
  font-weight: 500;
  font-size: 15px;
  text-underline-offset: 6px;
}

/* ===== Section heading (title + side note) ===== */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
  margin-bottom: 48px;
}
.section-head > div { flex: 1 1 480px; min-width: 0; }
.section-head p { flex: 1 1 340px; max-width: 460px; margin: 0; color: var(--text-muted); font-size: 16px; }

/* ===== Solutions ===== */
.solutions .container { padding-top: 104px; padding-bottom: 112px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  padding-bottom: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: #C9C7C0; transform: translateY(-2px); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin: 10px 24px 0;
}
.card-meta .num { color: var(--accent); }
.card-meta .rule { display: block; width: 24px; height: 1px; background: #CFCDC6; flex: 0 0 auto; }
.card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 24px;
}
.card p { margin: 0 24px; color: var(--text-muted); font-size: 15px; flex-grow: 1; }
.card .link-arrow, .card .pdf-link { align-self: flex-start; margin: 0 24px; }

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 0 2px;
  border-top: 1px solid var(--line);
  align-self: stretch !important;
}
.pdf-link svg { color: var(--accent); flex: 0 0 auto; }
.pdf-link .label { text-decoration: underline; text-underline-offset: 4px; }
.pdf-link .size { color: #8A8A85; margin-left: auto; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.pdf-link:hover .label { color: var(--accent); }

/* ===== Track record ===== */
.record .container { padding-top: 104px; padding-bottom: 104px; }
.record-head { max-width: 760px; margin-bottom: 64px; }
.record-head .section-title { margin-bottom: 20px; }
.record-head p { margin: 0; color: var(--on-dark-muted); font-size: 17px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
}
.stat { border-top: 2px solid var(--accent-light); padding-top: 20px; }
.stat.future { border-top-color: #4A4A4A; }
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.stat.future .stat-value { color: var(--on-dark-label); }
.stat-label { color: var(--on-dark-muted); font-size: 15px; }

/* ===== Credentials ===== */
.credentials .container { padding-top: 104px; padding-bottom: 104px; }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 32px;
  border-top: 1px solid var(--line);
}
.cred { padding: 28px 0 8px; border-bottom: 1px solid var(--line); }
.cred-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.cred-head .num { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--accent); }
.cred ul { margin: 0; padding: 0; list-style: none; }
.cred li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.cred li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ===== Partners ===== */
.partners .container { padding-top: 104px; padding-bottom: 104px; }
.partners .section-head p { color: var(--on-dark-muted); }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.partner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px 30px;
  background: #262626;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--on-dark);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.partner:hover { color: var(--on-dark); border-color: #5C5C5C; background: #2B2B2B; }
.partner-logo {
  height: 96px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 20px;
  margin-bottom: 4px;
}
.partner-logo img { width: auto; max-width: 100%; object-fit: contain; }
.partner-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--on-dark-label);
}
.partner-meta .num { color: var(--accent-light); }
.partner p { margin: 0; color: var(--on-dark-muted); font-size: 15px; }

/* ===== Company ===== */
.company .container {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px 80px;
  align-items: flex-end;
}
.company-text { flex: 1 1 520px; min-width: 0; }
.company-text .section-title { margin-bottom: 24px; }
.company-text p { margin: 0 0 16px; color: var(--on-dark-muted); font-size: 17px; }
.company-text p:last-child { margin: 0; }
.offices { flex: 1 1 340px; min-width: 0; }
.office { padding: 20px 0; border-top: 1px solid var(--line-dark); }
.office:last-child { border-bottom: 1px solid var(--line-dark); }
.office-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-label);
  margin-bottom: 6px;
}
.office-city { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.2; }
.office-addr { color: var(--on-dark-muted); font-size: 14px; margin-top: 4px; }

/* ===== Leadership ===== */
.leadership .container { padding-top: 104px; padding-bottom: 104px; }
.leadership .section-title { margin-bottom: 44px; }
.leader {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.leader-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.leader-bio { flex: 1 1 420px; min-width: 0; }
.leader-name { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.15; }
.leader-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin: 8px 0 20px;
}
.leader-bio p { margin: 0 0 14px; color: var(--text-muted); font-size: 17px; }
.leader-bio p:last-of-type { margin-bottom: 20px; }

/* ===== Contact ===== */
.contact { background: #F2F2F2; border-top: 1px solid var(--line); }
.contact .container {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}
.contact-text { flex: 1 1 340px; min-width: 0; }
.contact-text .section-title { margin-bottom: 20px; }
.contact-text p { margin: 0; color: var(--text-muted); font-size: 17px; }

.contact-form {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid #CFCDC6;
  border-radius: 3px;
  background: #FFFFFF;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.contact-form button {
  grid-column: 1 / -1;
  font: inherit;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 3px;
  padding: 15px;
  cursor: pointer;
}
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--accent); }

.contact-blocks { margin-top: 36px; border-top: 1px solid #D8D6CF; }
.contact-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid #D8D6CF;
  text-decoration: none;
  color: var(--ink);
}
a.contact-block:hover .contact-value { color: var(--accent); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-top: 3px;
}
.contact-value { font-weight: 600; font-size: 15px; }

/* ===== Floating quote button ===== */
.float-quote {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.float-quote.show { opacity: 1; transform: none; pointer-events: auto; }
.float-quote:hover { color: #FFFFFF; background: #10406D; }

/* ===== Footer ===== */
.site-footer { background: #F2F2F2; color: var(--ink); border-top: 1px solid #DCDAD3; }
.site-footer .container { padding-top: 64px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid #DCDAD3;
}
.footer-brand { flex: 1 1 320px; min-width: 0; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0; color: #5A5A56; font-size: 14px; max-width: 380px; }
.footer-top .btn { padding: 13px 22px; font-size: 15px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 44px 0;
  font-size: 14px;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { color: #3A3A37; text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }
.address { color: #3A3A37; line-height: 1.7; }
.address + .address { margin-top: 12px; }
.address strong { font-weight: 600; }
.footer-contact { margin-top: 12px; line-height: 1.9; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 28px;
  border-top: 1px solid #DCDAD3;
  font-size: 13px;
  color: var(--text-soft);
}

/* ===== Small screens ===== */
@media (max-width: 600px) {
  .section-title { font-size: 32px; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .carousel-controls { right: 10px; bottom: 10px; }
  .solutions .container, .record .container, .credentials .container, .partners .container,
  .company .container, .leadership .container, .contact .container { padding-top: 72px; padding-bottom: 72px; }
  .leader-photo { width: 160px; height: 160px; }
  .float-quote { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel .slide, .card, .float-quote { transition: none; }
}
