:root {
  --teal: #2b6cb0;
  --teal-dark: #1e5490;
  --navy: #0f1c2e;
  --navy-mid: #1a2d45;
  --black: #12161c;
  --ink: #2a313c;
  --muted: #5a6575;
  --line: #dce3ee;
  --paper: #f2f5fa;
  --white: #ffffff;
  --link: #1d5fa8;
  --gradient: linear-gradient(90deg, #2b6cb0 0%, #4a8bc7 48%, #6ba3d6 100%);
  --shadow: 0 18px 50px rgba(15, 28, 46, 0.1);
  --header-h: 92px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--black);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  isolation: isolate;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--black);
}

.logo svg { display: block; }

.logo-icon {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-icon-footer {
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #353535;
  border-radius: 4px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--navy);
}

.nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--teal);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn,
.menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--black);
}

.menu-btn { display: none; }

.gradient-bar {
  height: 3px;
  background: var(--gradient);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-light {
  background: rgba(255,255,255,0.92);
  color: var(--navy);
}

.btn-light:hover { background: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover { background: var(--navy-mid); }

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-weight: 700;
}

.text-link:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  color: var(--white);
  background-color: #0f1c2e;
  background-image:
    linear-gradient(90deg, rgba(10, 18, 32, 0.82) 0%, rgba(10, 18, 32, 0.4) 52%, rgba(10, 18, 32, 0.18) 100%),
    var(--hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--gradient);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 88px 0 80px;
  max-width: 680px;
  animation: rise 0.85s ease both;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero p.lead {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  color: #f1f2f2;
  max-width: 520px;
  margin-bottom: 28px;
}

.page-hero {
  min-height: 44vh;
  align-items: center;
}

.page-hero .hero-inner { padding: 72px 0; }

/* Sections */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #d2dceb; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.split.reverse { grid-template-columns: 0.85fr 1.15fr; }

.display {
  font-size: clamp(32px, 4vw, 48px);
}

.muted { color: var(--muted); }

.article {
  max-width: 760px;
  margin-inline: auto;
}

.article .display {
  margin-bottom: 12px;
}

.article .lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}

.article h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 42px;
}

.article h3 {
  font-size: 22px;
  margin-top: 28px;
}

.article p,
.article li {
  font-size: 17px;
  line-height: 1.75;
}

.article ul {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}

.article li { margin-bottom: 0.55em; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 8px 0 36px;
}

.mark {
  justify-self: center;
  text-align: center;
  animation: floatMark 6s ease-in-out infinite;
}

.mark svg path:first-of-type {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: drawLine 1.6s ease forwards 0.3s;
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card.raised {
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body { padding: 28px 28px 32px; }

.card h3 { font-size: 26px; }

.date {
  font-size: 13px;
  color: #757575;
  margin-bottom: 8px;
}

.stat {
  text-align: left;
}

.stat strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat span {
  color: #b5c4d8;
  font-size: 14px;
}

.biz {
  position: relative;
  min-height: 280px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background-image: linear-gradient(180deg, rgba(10,18,32,0.05), rgba(10,18,32,0.82)), var(--img);
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.biz:hover { transform: translateY(-4px); }

.biz h3 { color: var(--white); margin-bottom: 8px; }

.panel {
  background: var(--white);
  padding: 36px;
}

.bg-paper .panel {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.panel + .panel { border-top: 1px solid var(--line); }

.values details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.values summary {
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.values summary::-webkit-details-marker { display: none; }
.values summary::after { content: "+"; color: var(--teal-dark); }
.values details[open] summary::after { content: "–"; }

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cecfd0;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.email-highlight {
  margin: 8px 0 20px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy);
}

.email-highlight a {
  color: var(--navy);
  border-bottom: 3px solid var(--teal);
}

.email-highlight a:hover {
  color: var(--teal-dark);
}

.jobs li {
  list-style: none;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.jobs { padding: 0; margin: 0; }
.jobs small { color: var(--muted); }

.media {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.tile-list {
  display: grid;
  gap: 18px;
}

.tile {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tile img {
  width: 140px;
  height: 110px;
  object-fit: cover;
}

.tile-body { padding-right: 20px; }
.tile h3 { font-size: 20px; margin-bottom: 4px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #bfcce0;
  padding: 56px 0 24px;
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.site-footer a:hover { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  color: #d2dceb;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.social-link:hover {
  background: transparent;
  color: var(--white);
  opacity: 0.85;
  border-color: transparent;
}

.social-link-light {
  border: 0;
  color: #0a66c2;
}

.social-link-light:hover {
  background: transparent;
  color: #084d92;
  opacity: 0.9;
  border-color: transparent;
}

.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

.search-panel {
  display: none;
  position: absolute;
  right: 20px;
  top: 118px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 16px;
  width: min(360px, calc(100% - 40px));
  z-index: 50;
}

.search-panel.open { display: block; }

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes floatMark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner,
  .mark,
  .mark svg path:first-of-type,
  .reveal,
  .card,
  .biz,
  .btn {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .split, .split.reverse, .grid-2, .grid-3, .grid-4, .foot-grid, .form-row, .tile {
    grid-template-columns: 1fr;
  }
  .tile img {
    width: 100%;
    height: 180px;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .jobs li { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: 58vh; }
}
