/* Animation for content reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.77,0,0.175,1), transform 0.7s cubic-bezier(0.77,0,0.175,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
:root {
  --bg: #0a1226;
  --bg-soft: #f6f8fc;
  --card: #ffffff;
  --text: #0d1b2a;
  --muted: #5d6b82;
  --line: #dbe2ec;
  --brand: #1848b8;
  --brand-2: #16b2c1;
  --shadow: 0 14px 35px rgba(12, 29, 61, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92%);
  margin: 0 auto;
}

.section,
.page-section {
  padding: 72px 0;
}

.section.alt,
.page-section-alt {
  background: var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.hero .hero-grid div .eyebrow,
.hero .narrow .eyebrow,
.hero .eyebrow {
  color: var(--brand-2);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

.lead {
  font-size: 1.14rem;
  color: var(--muted);
}

.small,
.kicker,
.post-meta {
  color: var(--muted);
  font-size: .95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 226, 236, 0.9);
}

.nav-wrap,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand span strong { font-weight: 700; }

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
}

.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
  opacity: .95;
}

.button-secondary {
  background: #fff;
  color: var(--text) !important;
  border: 1px solid var(--line);
}

.button-secondary:hover {
    background-color: var(--bg-soft);
}

.button-sm { padding: 10px 16px; }

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}

.hero {
  background-color: var(--bg);
  padding: 80px 0 56px;
}

.hero h1 { color: var(--card); }

.hero .lead { color: var(--brand-2); }

.hero p { color: var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 42px;
  align-items: center;
}

.hero-card,
.card,
.stat,
.highlight,
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card { padding: 28px; }

.hero-card .eyebrow { color: var(--brand); }

.hero-card p { color: var(--text); }

.card,
.stat,
.highlight,
.contact-card { padding: 26px; }

.card-grid,
.grid-3,
.grid-2,
.stats-grid,
.roles-grid,
.blog-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.card-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.roles-grid { grid-template-columns: repeat(2, 1fr); }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.contact-grid { grid-template-columns: 1fr 1fr; }

.card h2,
.card h3 {
  margin-bottom: 12px;
}

.card p:last-child,
.highlight p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.stat strong {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.profile-image {
  border-radius: 14px;
  width: 100%;
}

.featured-image {
  border-radius: 18px;
  margin: 0 0 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.band {
  background: var(--bg);
  color: #fff;
  padding: 28px;
  border-radius: 28px;
}

.band .lead,
.band p {
  color: rgba(255,255,255,.82);
}

.role-pill {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--brand);
  font-weight: 700;
  margin: 0 10px 10px 0;
}

.hero-points,
.icon-list,
.check-list,
.simple-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.hero-points {
  color: var(--line);
}

.hero-points li,
.icon-list li,
.check-list li,
.simple-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.hero-points li::before,
.icon-list li::before,
.check-list li::before,
.simple-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--brand-2);
  font-weight: 800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--brand);
  font-weight: 700;
  border: 1px solid #d8e5ff;
}

.content-block {
  margin: 28px 0;
}

.content-block h2,
.content-block h3 {
  margin-top: 28px;
}

.content-block ul,
.content-block ol {
  padding-left: 20px;
  margin: 0 0 18px;
}

.content-block li {
  margin-bottom: 8px;
}

.apply-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.apply-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--line);
}

.apply-form input,
.apply-form textarea,
.apply-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}

.apply-form input:focus,
.apply-form textarea:focus,
.apply-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(24, 72, 184, 0.08);
}

.apply-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  background: #edf8f6;
  border: 1px solid #cceee8;
  padding: 16px 18px;
  border-radius: 16px;
  color: #0d5f54;
}

img.brand-logo {
  border-radius: 100px;
  margin: 10px;
}

.site-footer {
  background: var(--bg);
  color: #fff;
  padding: 48px 0 20px;
}

.site-footer a {
  color: rgba(255,255,255,.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 28px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px;
  padding-top: 18px;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .stats-grid,
  .roles-grid,
  .blog-grid,
  .split,
  .footer-grid,
  .contact-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 4%;
    right: 4%;
    top: 76px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open { display: flex; }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
  }
}


.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.cookie-banner__inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 24px;
}

.cookie-banner__content h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.cookie-banner__content p {
  margin-bottom: 12px;
}

.cookie-banner__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 38, 0.55);
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cookie-modal__header,
.cookie-modal__footer {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.cookie-modal__footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-modal__body {
  padding: 24px;
}

.cookie-close {
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cookie-option:first-of-type {
  margin-top: 10px;
}

.cookie-option h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.cookie-option p {
  margin: 0;
  color: var(--muted);
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 600;
}

.cookie-settings-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 920px) {
  .cookie-banner__inner,
  .cookie-option {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions,
  .cookie-modal__footer {
    justify-content: stretch;
  }

  .cookie-banner__actions .button,
  .cookie-modal__footer .button {
    width: 100%;
  }
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 20px;
    text-align: center;
  }

  .error-graphic {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
  }

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

  .error-code {
    font-size: 120px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #1848b8 0%, #16b2c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .error-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0;
  }

  .error-description {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 40px 0;
    max-width: 500px;
  }

  .error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
  }

  .error-suggestions {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
  }

  .suggestions-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
  }

  .suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
  }

  .suggestion-card {
    padding: 24px;
    background: var(--bg-soft);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
  }

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

  .suggestion-card h3 {
    margin: 0 0 12px 0;
    color: var(--brand);
  }

  .suggestion-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
  }