:root {
  --bg: #ffffff;
  --muted: #5b6675;
  --text: #1d2734;
  --line: #e7ebf0;
  --soft: #f7f7f8;
  --dark: #2b2f36;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3, h4, p {
  margin-top: 0;
}

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

.container {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.narrow {
  max-width: 1040px;
}

.center {
  text-align: center;
}

.section {
  padding: 70px 0;
}

.muted {
  background: var(--soft);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.nav-wrap {
  position: relative;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  width: min(290px, 48vw);
}

.hero {
  position: relative;
  aspect-ratio: 1900 / 950;
  overflow: hidden;
  background: #103e55;
}

.hero-image {
  position: absolute;
  /* Original slider: 1900px-wide photo, offset -224px in a 950px frame. */
  top: -23.578947%;
  left: 0;
  width: 100%;
  height: auto;
}

.hero-inner {
  position: absolute;
  top: 78%;
  left: 0;
  width: 100%;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 5.684211vw, 6.75rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: normal;
}

.lead-section h2,
.company-story .narrow h2,
.muted .narrow h2,
#team .narrow h2,
#locations .narrow h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.45;
  font-weight: 500;
}

.feature-list {
  display: grid;
  gap: 28px;
}

.feature-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start;
  padding: 6px 0;
}

.feature-title h3 {
  font-size: 1.45rem;
  font-weight: 600;
}

.feature-copy p,
.two-col-text p,
.consulting-text p,
.location-card p,
.team-card p,
.footer-brand p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.icon-card {
  padding: 24px 18px;
  text-align: center;
}

.icon-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.icon-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.two-col-text,
.consulting-row,
.locations-grid {
  display: grid;
  gap: 28px;
}

.two-col-text {
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}

.two-col-text article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.consulting-row {
  grid-template-columns: 2fr 1fr;
  align-items: start;
  margin-top: 36px;
}

.consulting-row.reverse {
  grid-template-columns: 1fr 2fr;
}

.consulting-row.reverse .consulting-text {
  order: 1;
}

.consulting-row.reverse .consulting-media {
  order: 2;
}

.consulting-media img,
.location-card img {
  width: 100%;
  height: auto;
}

.consulting-text {
  padding: 0;
}

.small-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.team-grid.exact-team {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.team-card {
  padding: 18px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.team-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.team-card p {
  margin: 0;
}

.locations-grid.exact-locations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 20px;
  margin-top: 34px;
}

.location-card {
  min-width: 0;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-items: start;
}

.location-card > * {
  margin: 0;
}

.location-card h2,
.location-card .coords {
  text-align: center;
}

.location-card img {
  aspect-ratio: 475 / 267;
  object-fit: contain;
}

.coords {
  font-weight: 600;
  color: #404d61;
}

.site-footer {
  background: #2f343b;
  color: #fff;
  padding: 48px 0 54px;
}

.footer-brand {
  text-align: center;
}

.footer-brand h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.footer-logo {
  width: min(260px, 60vw);
  margin: 0 auto 18px;
}

.footer-brand p,
.footer-brand a {
  color: #d5dde8;
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.legal-header {
  position: static;
  background: var(--dark);
}

.legal-home-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-content {
  max-width: 800px;
  padding-top: 56px;
  padding-bottom: 64px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 1.3rem;
  line-height: 1.4;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-content address {
  font-style: normal;
}

.cookie-notice[hidden] {
  display: none;
}

body.cookie-notice-visible {
  padding-bottom: var(--cookie-notice-height, 180px);
}

.cookie-notice {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  max-height: 50vh;
  overflow-y: auto;
}

.cookie-notice-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.cookie-notice-copy {
  flex: 1;
  min-width: 0;
}

.cookie-notice h2 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.cookie-notice p {
  margin: 0;
  line-height: 1.6;
}

.cookie-notice a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-dismiss {
  flex-shrink: 0;
  padding: 12px 24px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-dismiss:hover {
  background: #e7ebf0;
}

.cookie-notice :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

@media (max-width: 980px) {
  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid.exact-team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-row,
  .two-col-text,
  .consulting-row,
  .consulting-row.reverse,
  .locations-grid.exact-locations {
    grid-template-columns: 1fr;
  }

  .consulting-row.reverse .consulting-text,
  .consulting-row.reverse .consulting-media {
    order: initial;
  }
}

@media (max-width: 760px) {
  .cookie-notice-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .team-grid.exact-team,
  .icon-grid {
    grid-template-columns: 1fr;
  }

}
