/* ==========================================================================
   The Way A — site styles
   Mobile-first. No build step. Colours and type follow design/design-mockup.webp.
   ========================================================================== */

:root {
  --navy-950: #081a33;
  --navy-900: #0b2545;
  --navy-800: #0f2f57;
  --navy-700: #16406f;
  --blue-600: #1f5fa8;
  --blue-500: #2f74c0;
  --blue-400: #4a90d9;
  --blue-200: #a9c9ec;
  --blue-50: #eef4fb;
  --ink: #13233a;
  --ink-soft: #3b4a5e;
  --muted: #56657a;
  --line: #dde3ea;
  --line-strong: #c7d1dc;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --success: #1c7a4a;
  --success-bg: #e8f5ee;
  --error: #b42318;
  --error-bg: #fdecea;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.1);
  --focus: 0 0 0 3px #ffffff, 0 0 0 5px var(--blue-500);
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --header-h: 76px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-600);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-800);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Anchor targets receive programmatic focus after smooth scrolling. */
[tabindex='-1']:focus {
  outline: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.lead {
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.125rem;
  }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--navy-800);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-950);
  color: #fff;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--outline:hover {
  background: var(--navy-800);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--navy-800);
}

.btn--light:hover {
  background: var(--blue-50);
  color: var(--navy-950);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy-800);
  text-decoration: none;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--blue-600);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* Official logo files: assets/brand/logo.svg (light backgrounds) and logo-reversed.svg (dark). */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  width: auto;
  height: 40px;
}

@media (min-width: 768px) {
  .logo img {
    height: 46px;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy-800);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

/* Mobile panel */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: none;
  overflow-y: auto;
  padding: 8px var(--gutter) 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-nav.is-open {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

.nav-list {
  list-style: none;
}

.nav-item {
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link {
  display: block;
  flex: 1;
  padding: 14px 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--blue-600);
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy-800);
  cursor: pointer;
  border-radius: var(--radius);
}

.submenu-toggle .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  list-style: none;
  padding: 0 0 12px 12px;
}

.submenu.is-open {
  display: block;
}

.submenu a {
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.submenu a:hover {
  color: var(--blue-600);
}

.nav-cta {
  margin-top: 20px;
  width: 100%;
}

.header-cta {
  display: none;
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    margin-left: auto;
  }

  body.nav-open {
    overflow: auto;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-item {
    position: relative;
    border: 0;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
  }

  .nav-link[aria-current='page'] {
    color: var(--navy-800);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--blue-400);
    border-radius: 0;
  }

  .has-submenu .nav-link {
    padding-right: 2px;
  }

  .submenu-toggle {
    width: 24px;
    height: 32px;
  }

  .submenu-toggle .icon {
    width: 14px;
    height: 14px;
  }

  .submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: max-content;
    min-width: 240px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  .submenu a {
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .submenu a:hover {
    background: var(--blue-50);
  }

  /* Invisible bridge so the pointer can cross the gap into the dropdown. */
  .submenu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }

  @media (hover: hover) {
    .has-submenu:hover > .submenu {
      display: block;
    }
  }

  .nav-cta {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: 64px;
}

.section--tight {
  padding-block: 48px;
}

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

@media (min-width: 768px) {
  .section {
    padding-block: 88px;
  }

  .section--tight {
    padding-block: 64px;
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 36px;
}

.section-head > div {
  max-width: 720px;
}

.section-head h2 {
  margin-bottom: 0.35em;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-title {
  margin-bottom: 32px;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-50);
}

.hero-media,
.page-hero-media,
.cta-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.page-hero-media img,
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.86) 60%, rgba(255, 255, 255, 0.55) 100%);
}

.hero-inner {
  padding-block: 64px 72px;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem);
  font-weight: 600;
  color: var(--blue-600);
}

.hero .lead {
  max-width: 540px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0) 100%);
  }

  .hero-inner {
    padding-block: 120px 128px;
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-50);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.82));
}

.page-hero-inner {
  padding-block: 56px 64px;
  max-width: 640px;
}

.page-hero h1 {
  font-weight: 600;
}

.page-hero .lead {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .page-hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.15) 75%, rgba(255, 255, 255, 0) 100%);
  }

  .page-hero-inner {
    padding-block: 96px 104px;
  }
}

/* Dark variant (Industries) */
.page-hero--dark {
  background: var(--navy-900);
}

.page-hero--dark::before {
  background: linear-gradient(180deg, rgba(8, 26, 51, 0.82), rgba(8, 26, 51, 0.7));
}

.page-hero--dark h1,
.page-hero--dark .lead {
  color: #fff;
}

.page-hero--dark .eyebrow {
  color: var(--blue-200);
}

@media (min-width: 900px) {
  .page-hero--dark::before {
    background: linear-gradient(90deg, rgba(8, 26, 51, 0.9) 0%, rgba(8, 26, 51, 0.72) 45%, rgba(8, 26, 51, 0.1) 80%);
  }
}

/* ---------- Expertise strip (home) ---------- */
.expertise {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.expertise-list {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
}

.expertise-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.expertise-item:last-child {
  border-bottom: 0;
}

.expertise-item .icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  color: var(--navy-800);
}

.expertise-item h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.expertise-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .expertise-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }

  .expertise-item:nth-last-child(2) {
    border-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .expertise-list {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 0;
  }

  .expertise-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 36px 20px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .expertise-item:last-child {
    border-right: 0;
  }

  .expertise-item .icon {
    margin-bottom: 6px;
  }
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.split-body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .split--media-wide {
    grid-template-columns: 5fr 6fr;
  }
}

.split-body .btn {
  margin-top: 8px;
}

.statement {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  list-style: none;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1080px) {
  .card-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: var(--blue-50);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.card-body h2,
.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.card-body p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.card-body .card-tagline {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}

.card-link {
  color: inherit;
  text-decoration: none;
}

/* Stretched link: the whole card is clickable via its heading link. */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-link:focus-visible {
  outline: none;
}

.card:has(.card-link:focus-visible) {
  box-shadow: var(--focus);
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--navy-800);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.card-arrow .icon {
  width: 16px;
  height: 16px;
}

.card-body p + .card-arrow {
  margin-top: 16px;
}

.card--interactive:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--interactive:hover .card-media img {
  transform: scale(1.04);
}

.card--interactive:hover .card-arrow {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

/* Horizontal card (Industries) */
@media (min-width: 720px) {
  .card--row {
    flex-direction: row;
  }

  .card--row .card-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 220px;
  }

  .card--row .card-body {
    padding: 24px;
  }
}

/* ---------- Featured work (home) ---------- */
.feature-band {
  display: grid;
  gap: 16px 64px;
}

@media (min-width: 900px) {
  .feature-band {
    grid-template-columns: 5fr 6fr;
    align-items: start;
  }

  .feature-band h2 {
    margin-bottom: 0;
  }
}

.feature-band p {
  margin: 0;
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 26, 51, 0.88) 0%, rgba(8, 26, 51, 0.7) 50%, rgba(8, 26, 51, 0.35) 100%);
}

.cta-inner {
  padding-block: 64px;
  max-width: 640px;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
  margin-bottom: 28px;
}

.cta--solid {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
}

.cta--solid::before {
  display: none;
}

@media (min-width: 900px) {
  .cta-inner {
    padding-block: 88px;
  }
}

/* ---------- About: purpose / method / why ---------- */
.purpose-grid {
  display: grid;
  gap: 20px;
  list-style: none;
}

@media (min-width: 640px) {
  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .purpose-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.purpose-item {
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy-800);
}

.icon-badge .icon {
  width: 30px;
  height: 30px;
}

.purpose-item h3 {
  margin-bottom: 6px;
}

.purpose-tagline {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--blue-600);
  font-size: 0.9375rem;
}

.purpose-item p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.method-list {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: none;
}

@media (min-width: 640px) {
  .method-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .method-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.method-step {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-800);
  border-radius: var(--radius);
}

.method-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--navy-800);
}

.method-step h3 {
  margin-bottom: 6px;
}

.method-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.why-grid {
  display: grid;
  gap: 28px 20px;
  list-style: none;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1080px) {
  .why-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.why-item {
  text-align: center;
}

.why-item .icon-badge {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.why-item .icon-badge .icon {
  width: 26px;
  height: 26px;
}

.why-item h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.why-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Services page ---------- */
.service-list {
  display: grid;
  gap: 28px;
  list-style: none;
}

.service {
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-body {
  padding: 24px 20px 28px;
}

.service-num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue-600);
}

.service-body h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  margin-bottom: 8px;
}

.service-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.service-body > p {
  color: var(--ink-soft);
}

.service-label {
  margin: 18px 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
}

.tag-list li {
  padding: 5px 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--navy-800);
  background: var(--blue-50);
  border: 1px solid #d6e4f4;
  border-radius: 999px;
}

.tag-list li::first-letter {
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 5fr 7fr;
  }

  .service-media img {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .service-body {
    padding: 36px 40px;
  }
}

/* ---------- Insights ---------- */
.insights-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 1080px) {
  .insights-layout {
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: start;
  }

  .insights-intro {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.insights-intro h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 16px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.filter-btn[aria-pressed='true'] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.filter-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.filter-desc {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.filter-desc strong {
  color: var(--ink);
}

.article-card .card-media {
  aspect-ratio: 16 / 10;
}

.article-cat {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.article-card[hidden] {
  display: none;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  gap: 40px;
  padding-block: 48px 64px;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    padding-block: 80px 96px;
  }
}

@media (min-width: 1200px) {
  .contact-layout {
    grid-template-columns: 4fr 6fr 3fr;
  }
}

.contact-intro h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  list-style: none;
}

.contact-details li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-details .icon-badge {
  width: 44px;
  height: 44px;
  margin: 0;
}

.contact-details .icon-badge .icon {
  width: 20px;
  height: 20px;
}

.contact-details strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

.contact-details span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 32px 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
}

.contact-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(8, 26, 51, 0.85), rgba(8, 26, 51, 0.35));
}

.contact-visual p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.24em;
  color: #fff;
}

@media (min-width: 900px) and (max-width: 1199px) {
  .contact-visual {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .contact-visual {
    min-height: 100%;
    align-items: center;
  }
}

/* ---------- Form ---------- */
.form-card {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .form-card {
    padding: 32px;
  }
}

.form-grid {
  display: grid;
  gap: 18px 20px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.req {
  color: var(--error);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2f57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

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

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 116, 192, 0.25);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.field [aria-invalid='true']:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2);
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 24px;
}

.form-actions .btn {
  width: 100%;
}

.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .icon {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.form-status:empty {
  display: none;
}

.form-status:focus {
  outline: none;
}

.form-status .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.form-status--success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #b9e0cb;
}

.form-status--error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid #f5c2bd;
}

.form-status p {
  margin: 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy-950);
}

.footer-inner {
  display: grid;
  gap: 32px;
  padding-block: 56px 32px;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 5fr 4fr;
    gap: 64px;
  }
}

.site-footer .logo img {
  height: 52px;
}

.footer-about p {
  max-width: 460px;
  margin: 20px 0 8px;
}

.footer-motto {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom p {
  margin: 0;
}

.site-footer :focus-visible {
  outline-color: var(--blue-200);
}

/* ---------- 404 ---------- */
.not-found {
  padding-block: 96px 120px;
  text-align: center;
}

.not-found .btn-row {
  justify-content: center;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
