:root {
  --navy: #102a5e;
  --navy-strong: #091b46;
  --navy-soft: #5c6f93;
  --ink: #24324a;
  --muted: #6e7b90;
  --paper: #ffffff;
  --mist: #eef3fa;
  --warm: #f7f4ed;
  --line: #c7d2e5;
  --shadow: 0 24px 48px rgba(9, 27, 70, 0.12);
  --serif: "Playfair Display", "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  --page-accent: #8f6d35;
  --page-accent-soft: rgba(143, 109, 53, 0.14);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(238, 243, 250, 0.45), rgba(255, 255, 255, 0)),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

::selection {
  background: rgba(16, 42, 94, 0.16);
}

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

a {
  color: inherit;
}

main [id] {
  scroll-margin-top: 92px;
}

.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.js .stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.js .stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.js .stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.js .stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.js .stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.js .stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.js .stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }

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

  .js .fade-in,
  .js .fade-in.visible,
  .js .stagger-children > *,
  .js .stagger-children.visible > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.topline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--page-accent), var(--navy-strong));
  z-index: 120;
}

.site-header {
  position: sticky;
  top: 3px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(199, 210, 229, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand-link img {
  height: 38px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-link,
.header-cta {
  text-decoration: none;
  text-transform: uppercase;
}

.header-link {
  color: var(--navy-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.2s ease;
}

.header-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--navy-strong);
  transition: width 0.3s ease;
}

.header-link:hover::after,
.header-link:focus-visible::after,
.header-link[aria-current="page"]::after {
  width: 100%;
}

.header-link:hover,
.header-link:focus-visible,
.header-link[aria-current="page"] {
  color: var(--navy-strong);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--navy);
  color: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(9, 27, 70, 0.94), rgba(16, 42, 94, 0.86)),
    var(--navy-strong);
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
    image-set(
      url("../images/hero-bg.webp") type("image/webp"),
      url("../images/hero-bg.jpg") type("image/jpeg")
    );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.22;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -180px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--page-accent-soft) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.hero-inner,
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 2.5rem;
  align-items: end;
  padding: 7rem 2rem 5rem;
}

.hero-kicker,
.section-label,
.eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label,
.eyebrow {
  color: var(--page-accent);
}

.hero h1 {
  max-width: 12ch;
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.7vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
}

.hero-sub {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-primary,
.hero-secondary,
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.45rem;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
}

.hero-primary,
.cta-primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--navy-strong);
}

.hero-primary:hover,
.hero-primary:focus-visible,
.cta-primary:hover,
.cta-primary:focus-visible {
  background: transparent;
  color: var(--paper);
}

.hero-secondary,
.cta-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--paper);
}

.hero-secondary:hover,
.hero-secondary:focus-visible,
.cta-secondary:hover,
.cta-secondary:focus-visible {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.14);
}

.hero-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0.35rem 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  line-height: 1.7;
}

.compact-list,
.bullet-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.compact-list li,
.bullet-list li {
  margin-top: 0.7rem;
}

.compact-list li::marker,
.bullet-list li::marker {
  color: var(--page-accent);
}

.section {
  padding: 4.5rem 2rem;
}

.section--mist {
  background: linear-gradient(180deg, var(--mist), rgba(238, 243, 250, 0.42));
}

.section--warm {
  background: linear-gradient(180deg, var(--warm), rgba(247, 244, 237, 0.3));
}

.section-intro {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-heading {
  margin: 0.5rem 0 1rem;
  color: var(--navy-strong);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 1.18;
}

.section-body,
.copy-stack p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: start;
}

.insight-grid,
.service-grid,
.sector-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.insight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.sector-grid {
  grid-template-columns: repeat(3, 1fr);
}

.insight-card,
.service-card,
.sector-link {
  background: var(--paper);
  padding: 1.6rem;
}

.insight-card h3,
.service-card h3,
.sector-link h3,
.timeline-title {
  margin: 0 0 0.55rem;
  color: var(--navy-strong);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.insight-card p,
.service-card p,
.sector-link p,
.timeline p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}

.insight-card,
.service-card,
.sector-link {
  position: relative;
}

.insight-card::before,
.service-card::before,
.sector-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--page-accent);
}

.timeline {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.6rem;
}

.timeline-item + .timeline-item {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(199, 210, 229, 0.75);
}

.callout {
  margin-top: 1.5rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--page-accent);
}

.callout p {
  color: var(--navy-strong);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
}

.sector-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sector-link:hover,
.sector-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(9, 27, 70, 0.1);
}

.sector-link strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--page-accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.sector-link:hover .card-arrow,
.sector-link:focus-visible .card-arrow {
  transform: translateX(3px);
}

.cta-band {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(9, 27, 70, 0.97), rgba(16, 42, 94, 0.88));
  color: var(--paper);
}

.cta-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.18;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  line-height: 1.75;
}

.site-footer {
  background: var(--navy-strong);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: 1.4rem;
  width: min(32rem, 42vw);
  aspect-ratio: 800 / 226;
  background-image: image-set(
    url("../images/logo-lockup.webp") type("image/webp"),
    url("../images/logo-lockup.png") type("image/png")
  );
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0) invert(1);
  opacity: 0.06;
  pointer-events: none;
}

.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: none;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--page-accent);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero-inner,
  .split,
  .cta-band .section-inner {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .service-grid,
  .sector-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .hero-inner,
  .section,
  .cta-band {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .hero-inner {
    padding-top: 5.6rem;
    padding-bottom: 4rem;
  }

  .header-inner {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 1.35rem;
    gap: 0.75rem;
  }

  .brand-link img {
    height: 32px;
  }

  .header-nav {
    width: 100%;
    gap: 1rem;
    justify-content: flex-start;
  }

  .cta-actions,
  .hero-actions {
    width: 100%;
  }

  .hero-primary,
  .hero-secondary,
  .cta-primary,
  .cta-secondary,
  .header-cta {
    width: 100%;
  }

  .insight-grid,
  .service-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .site-footer::before {
    display: none;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
