:root {
  color-scheme: light dark;
  --surface: #fbfaf7;
  --surface-raised: #f2f5f7;
  --surface-strong: #e8eef2;
  --text: #202327;
  --muted: #5c6670;
  --soft: #d7dde2;
  --accent: #0b699f;
  --accent-strong: #084b72;
  --accent-soft: #dcecf4;
  --field: #ece6da;
  --radius: 8px;
  --shadow: 0 18px 45px rgb(22 38 50 / 0.14);
  --container: 1160px;
  font-family: Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #17191c;
    --surface-raised: #20262a;
    --surface-strong: #2a3338;
    --text: #f1f4f5;
    --muted: #bbc5ca;
    --soft: #3e4a51;
    --accent: #6db9df;
    --accent-strong: #a5d8ef;
    --accent-soft: #18313e;
    --field: #25211c;
    --shadow: 0 18px 45px rgb(0 0 0 / 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--soft);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 2rem), 1260px);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
}

.brand img {
  width: 228px;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.8vw, 1.6rem);
  white-space: nowrap;
}

.desktop-nav a,
.footer-nav a,
.mobile-nav-panel a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.footer-nav a:hover,
.mobile-nav-panel a:hover {
  color: var(--accent-strong);
}

.nav-call {
  border: 1px solid var(--soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-weight: 800;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--soft);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  width: min(76vw, 280px);
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.7rem;
}

.mobile-nav-panel a {
  border-radius: 6px;
  padding: 0.7rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--accent-strong);
  color: #f8faf9;
}

.button.primary:hover {
  background: var(--accent);
}

.button.secondary {
  border: 1px solid var(--soft);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-raised));
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.label {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 62ch;
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.hero h1,
.page-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 900;
}

.hero h1 span {
  color: var(--accent-strong);
}

.hero-actions,
.footer-actions,
.contact-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-media img,
.page-hero-image img,
.feature-image img,
.article-image img,
.job-hero img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  background: var(--surface-raised);
}

.stat {
  padding: clamp(1rem, 3vw, 1.75rem);
  border-right: 1px solid var(--soft);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.alt {
  background: var(--surface-raised);
}

.section.field {
  background: var(--field);
}

.section-intro {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-intro h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  font-weight: 900;
}

.section-intro p {
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-column: span 2;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card:nth-child(1),
.service-card:nth-child(4) {
  grid-column: span 3;
}

.service-card:nth-child(6) {
  grid-column: span 3;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card-content {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
}

.service-card h3,
.job-card h3,
.download-row h2,
.reference-card h2 {
  color: var(--text);
  font-size: 1.2rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.copy-stack {
  display: grid;
  gap: 1.1rem;
}

.copy-stack h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
}

.copy-stack h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.plain-list,
.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.check-list li {
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 2px;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--soft);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--soft);
}

.timeline-year {
  color: var(--accent-strong);
  font-size: 1.35rem;
  font-weight: 900;
}

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

.team-member,
.reference-card,
.job-card,
.download-row,
.legal-notice {
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.team-member {
  padding: 1rem;
}

.team-member strong {
  display: block;
  color: var(--text);
}

.team-member span {
  color: var(--muted);
}

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

.reference-card {
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

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

.job-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.job-card.featured {
  background: var(--accent-soft);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-meta span {
  border: 1px solid var(--soft);
  border-radius: 999px;
  color: var(--muted);
  padding: 0.28rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.job-content {
  display: grid;
  gap: 2rem;
}

.job-hero img {
  aspect-ratio: 5 / 2;
  margin-bottom: 2rem;
}

.sticky-side {
  position: sticky;
  top: 96px;
}

.contact-panel {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.contact-panel dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-top: 0.25rem;
}

.contact-panel dt,
.info-table dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-panel dd,
.info-table dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.downloads {
  display: grid;
  gap: 0.85rem;
}

.download-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
}

.partner-grid a {
  display: grid;
  min-height: 88px;
  place-items: center;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: #f8faf9;
  padding: 1rem;
}

.partner-grid img {
  max-height: 44px;
  width: auto;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
}

.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-hero.with-image .page-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.page-hero h1 {
  max-width: 14ch;
  margin-top: 0.45rem;
}

.page-hero-image img {
  aspect-ratio: 16 / 10;
}

.article {
  max-width: 860px;
  margin: 0 auto;
}

.article h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.article p + p {
  margin-top: 1rem;
}

.article-image {
  margin: 2rem 0;
}

.article-image img {
  aspect-ratio: 16 / 10;
}

.info-table {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem;
}

.info-table div {
  display: grid;
  gap: 0.15rem;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content p + p {
  margin-top: 0.9rem;
}

.legal-notice {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--accent-soft);
}

.embed-link-box {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.site-footer {
  background: var(--surface-raised);
  border-top: 1px solid var(--soft);
}

.footer-cta {
  border-bottom: 1px solid var(--soft);
  padding: 2rem 0;
}

.footer-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.footer-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-brand img {
  width: 210px;
}

.footer-brand address {
  color: var(--muted);
  font-style: normal;
}

.footer-nav,
.footer-partners {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-nav h2,
.footer-partners h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.partner-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.partner-mini a {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--soft);
  border-radius: 6px;
  background: #f8faf9;
  padding: 0.55rem;
}

.partner-mini img {
  max-height: 28px;
  width: auto;
}

.footer-bottom {
  border-top: 1px solid var(--soft);
  padding: 1rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .nav-call {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .mobile-nav {
    display: block;
  }

  .hero-grid,
  .split-grid,
  .split-grid.reverse,
  .page-hero.with-image .page-hero-grid,
  .job-layout,
  .footer-cta-grid {
    grid-template-columns: 1fr;
  }

  .split-grid.reverse .feature-image {
    order: -1;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .sticky-side {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .brand img {
    width: 174px;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .stats-strip,
  .service-grid,
  .team-grid,
  .reference-grid,
  .job-grid,
  .partner-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--soft);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(4),
  .service-card:nth-child(6) {
    grid-column: span 1;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .download-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
