/* =============================================================
   Sustainovate — independent advisory
   Brand system: DM Serif Display + DM Sans, navy + teal/blue accents
   Follows brand-css-system rule: tokens in :root, theme scope alias.
   ============================================================= */

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

:root {
  /* Brand source tokens (Sustainovate) */
  --sv-primary: #3382c1;
  --sv-primary-strong: #005ca2;
  --sv-accent: #72b5a1;
  --sv-bg-soft: #e5f1ee;
  --sv-text: #0f172a;

  /* Page surface tokens */
  --bg: #f6f8fa;
  --ink: #0d1b3e;
  --ink-muted: #5a6a82;
  --navy: #0d1b3e;
  --rule: #d8e2ed;

  /* Type */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(24px, 5vw, 80px);
}

/* Theme alias — every component reads from --brand-* */
.theme-sustainovate {
  --brand-primary: var(--sv-primary);
  --brand-primary-strong: var(--sv-primary-strong);
  --brand-accent: var(--sv-accent);
  --brand-bg-soft: var(--sv-bg-soft);
  --brand-text: var(--sv-text);
}

html { scroll-behavior: smooth; }

body {
  background:
    /* Faint dot-grid texture echoing the hero shader's digital pattern. */
    radial-gradient(circle at 1px 1px, rgba(13, 27, 62, 0.07) 1px, transparent 1.4px) 0 0 / 24px 24px,
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ============================================================= */
/* NAV                                                            */
/* ============================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(246, 248, 250, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
nav:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
nav:not(.scrolled) .nav-cta { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.3); }
nav:not(.scrolled) .nav-link { color: rgba(255,255,255,0.75); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-primary); }
@media (max-width: 640px) {
  .nav-links {
    display: none !important;
  }
  .nav-mobile-strip {
    display: flex !important;
  }
  #hero-wrap { padding-top: 44px; }
  .subpage-hero { padding-top: 112px !important; }
}
.nav-mobile-strip {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: #0d1b3e;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  justify-content: stretch;
}
.nav-mobile-strip a {
  flex: 1;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 12px 4px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-mobile-strip a:last-child { border-right: none; }
.nav-mobile-strip a:hover, .nav-mobile-strip a:active { color: var(--brand-accent); }

.nav-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-wordmark { display: none; }

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-cta:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

/* ============================================================= */
/* HERO                                                           */
/* ============================================================= */
#hero-wrap {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
#hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-harbor.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.28;
  z-index: 0;
}
#hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.0) 0%, rgba(13, 27, 62, 0.55) 100%);
}

/* Animated marine + digital pattern (WebGL canvas).
   Sits above the photo fallback. If the canvas can't run
   (no WebGL, prefers-reduced-motion), JS adds .hero-canvas--disabled
   and the photo shows through unchanged. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas--disabled { display: none; }

.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Scrim — darkens left/bottom for headline legibility while
   keeping the right side of the canvas readable. */
.hero-scrim {
  z-index: 2;
  background:
    linear-gradient(105deg,
      rgba(8, 18, 42, 0.55) 0%,
      rgba(8, 18, 42, 0.32) 35%,
      rgba(8, 18, 42, 0.08) 65%,
      rgba(8, 18, 42, 0.00) 85%),
    linear-gradient(to bottom,
      rgba(8, 18, 42, 0.00) 55%,
      rgba(8, 18, 42, 0.40) 100%);
}

/* Subtle film grain — masks shader banding, adds analogue feel. */
.hero-grain {
  z-index: 3;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
  background-size: 320px 320px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
}

#hero {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 var(--gutter);
  padding-top: clamp(100px, 14vh, 160px);
  padding-bottom: clamp(64px, 10vh, 100px);
  max-width: var(--max);
  margin: 0 auto;
}

.hero-rule {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  margin-bottom: 28px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 14em;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.hero-headline em {
  font-style: italic;
  color: var(--brand-accent);
}
.hero-headline strong {
  font-weight: 400;
  color: var(--brand-primary);
  font-style: normal;
}

.hero-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}
.hero-domains--sectors {
  margin: 8px 0 32px;
}
/* Capability tags — filled, solid, primary */
.hero-domain-tag--capability {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a1628;
  background: var(--brand-accent);
  border: 1px solid var(--brand-accent);
  border-radius: 3px;
  padding: 6px 14px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(114, 181, 161, 0.35);
}
/* Sector tags — outlined, each with its own accent via CSS var */
.hero-domain-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dt-color, rgba(114,181,161,0.75));
  border: 1px solid color-mix(in srgb, var(--dt-color, #72b5a1) 35%, transparent);
  border-radius: 3px;
  padding: 4px 10px;
  background: var(--dt-bg, transparent);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.hero-domain-tag:hover {
  background: color-mix(in srgb, var(--dt-color, #72b5a1) 20%, transparent);
  border-color: color-mix(in srgb, var(--dt-color, #72b5a1) 60%, transparent);
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.hero-sub strong {
  color: #fff;
  font-weight: 500;
}

.hero-proof {
  margin: 24px 0 32px;
  padding-left: 16px;
  border-left: 2px solid rgba(114,181,161,0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 56ch;
}
.hero-proof-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  opacity: 0.8;
}
.hero-proof-line {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-stance {
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.96);
  max-width: 52ch;
  line-height: 1.4;
  margin: 0 0 52px 0;
  padding: 6px 0 6px 22px;
  border-left: 2px solid var(--brand-accent);
  text-wrap: pretty;
}
.hero-stance em {
  font-style: italic;
  color: var(--brand-accent);
}

.hero-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--brand-accent);
  text-decoration: none;
  padding: 14px 28px;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover {
  background: #fff;
  color: var(--navy);
}
.hero-cta svg { flex-shrink: 0; }

/* ============================================================= */
/* SECTION SCAFFOLD                                               */
/* ============================================================= */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 120px) var(--gutter);
  position: relative;
}
section + section { border-top: 1px solid var(--rule); }

/* Full-bleed background tint — extends to viewport edges via the
   box-shadow + clip-path trick. No HTML wrapper required. */
.section--tint {
  background: var(--sv-bg-soft);
  box-shadow: 0 0 0 100vmax var(--sv-bg-soft);
  clip-path: inset(0 -100vmax);
}
.section--tint + section,
section + .section--tint { border-top: 0; }

/* Dark variant — used for the closing Contact section as a bookend
   to the dark hero at the top of the page. */
.section--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}
.section--dark + section,
section + .section--dark { border-top: 0; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink-muted);
}

/* ============================================================= */
/* HOW WE WORK — the red-line 4-stage arc                         */
/* ============================================================= */
.arc-intro {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 24em;
  margin-bottom: 64px;
  text-wrap: pretty;
}
.arc-intro strong {
  font-weight: 600;
  color: var(--brand-primary);
}

.arc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  padding-top: 64px;
}
/* horizontal flow line connecting all four steps */
.arc-grid::before {
  content: '';
  position: absolute;
  top: 86px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  opacity: 0.35;
  z-index: 0;
}

.arc-step {
  position: relative;
  padding: 16px 28px 36px 0;
  z-index: 1;
}

.arc-step-index {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), #1f5d8a);
  box-shadow: 0 6px 18px -8px rgba(51, 130, 193, 0.65);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.arc-step:nth-child(2) .arc-step-index { background: linear-gradient(135deg, #2a76ad, #336c9b); }
.arc-step:nth-child(3) .arc-step-index { background: linear-gradient(135deg, #4593b3, var(--brand-accent)); }
.arc-step:nth-child(4) .arc-step-index { background: linear-gradient(135deg, var(--brand-accent), #5fa493); }
.arc-step-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.arc-step-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

/* The connecting arrow glyph between numbered chips */
.arc-step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -8px;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--brand-primary);
  border-top: 1.5px solid var(--brand-primary);
  transform: rotate(45deg);
  opacity: 0.4;
}
.arc-step:last-child::after { display: none; }

@media (max-width: 768px) {
  .arc-grid { grid-template-columns: 1fr; padding-top: 0; }
  .arc-grid::before { display: none; }
  .arc-step {
    border-bottom: 1px solid var(--rule);
    padding: 24px 0;
  }
  .arc-step:last-child { border-bottom: none; }
  .arc-step::after { display: none; }
  .arc-step-index { width: 36px; height: 36px; font-size: 12px; margin-bottom: 16px; }
}

/* ============================================================= */
/* WHAT WE DO — service cards + modals                            */
/* ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  --card-accent: var(--brand-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 28px 24px 76px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent);
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -16px rgba(13, 27, 62, 0.22);
  border-color: color-mix(in oklab, var(--card-accent) 45%, var(--rule));
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 3px;
}

.service-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: color-mix(in oklab, var(--card-accent) 14%, white);
  font-size: 34px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s ease;
}
.service-card:hover .service-emoji {
  transform: scale(1.08) rotate(-4deg);
  background: color-mix(in oklab, var(--card-accent) 22%, white);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: var(--brand-primary);
  background: linear-gradient(135deg, rgba(51, 130, 193, 0.10), rgba(114, 181, 161, 0.10));
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.2s ease;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  transform: scale(1.06) rotate(-3deg);
  color: var(--brand-accent);
}

.service-card .service-number {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--card-accent);
  letter-spacing: 0.14em;
  opacity: 0.85;
  margin-bottom: 8px;
  display: block;
}

.service-card .service-title {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px 0;
  transition: color 0.2s ease;
}
.service-card:hover .service-title { color: var(--card-accent); }

.service-card .service-teaser {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

.service-cue {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  background: #fff;
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.service-cue svg { width: 14px; height: 14px; }
.service-card:hover .service-cue {
  transform: rotate(-12deg) scale(1.05);
  border-color: var(--card-accent);
  background: var(--card-accent);
  color: #fff;
}

/* ============================================================= */
/* MODAL — service detail dialog                                  */
/* ============================================================= */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-root.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modal-backdrop-in 0.25s ease;
}

.modal {
  --card-accent: var(--brand-accent);
  position: relative;
  display: none;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.5);
  animation: modal-card-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  outline: none;
}
.modal.is-active { display: flex; }
.modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent);
  border-radius: 6px 6px 0 0;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 1;
}
.modal-close svg { width: 14px; height: 14px; }
.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-header {
  padding: 44px 44px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--card-accent);
  background: color-mix(in oklab, var(--card-accent) 22%, transparent);
  border-radius: 50%;
}
.modal-icon svg { width: 30px; height: 30px; }

.modal-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--card-accent) 70%, white);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 14px 0;
}

.modal-teaser {
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin: 0;
  max-width: 52ch;
  border-left: 2px solid var(--brand-accent);
  padding-left: 16px;
}

.modal-body {
  padding: 28px 44px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.modal-block { display: flex; flex-direction: column; gap: 8px; }

.modal-context {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0;
}

.modal-text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  text-wrap: pretty;
}
.modal-text strong { color: #fff; font-weight: 500; }

.modal-footer {
  padding: 20px 44px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--card-accent) 70%, white);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--card-accent) 50%, transparent);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.modal-cta:hover {
  color: #fff;
  border-color: #fff;
  transform: translateX(4px);
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@media (max-width: 768px) {
  .modal-header { padding: 36px 24px 20px; }
  .modal-body   { padding: 24px 24px 20px; }
  .modal-footer { padding: 18px 24px 28px; }
}

/* ============================================================= */
/* WHO WE ARE                                                     */
/* ============================================================= */
.who-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.who-intro {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-wrap: pretty;
}
.who-person {
  color: var(--ink);
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.who-person strong { font-weight: 500; }
.who-network {
  color: var(--ink);
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.who-network strong { font-weight: 600; color: var(--brand-primary); }
.who-person-photo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(20%);
  float: left;
  margin: 0 14px 4px 0;
}

.who-entities {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--rule);
}
.entity-card {
  background: var(--bg);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.entity-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.entity-flag {
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}
.entity-name {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  line-height: 1.2;
}
.entity-meta {
  font-size: 12px;
  color: var(--brand-primary);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.entity-role {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
  text-wrap: pretty;
}
.entity-reg {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.55;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 768px) {
  .who-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================= */
/* WHERE WE WORK                                                  */
/* ============================================================= */
.sectors-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.sectors-intro {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.sector-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sector-group-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.sector-tag {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 18px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
}
.sector-tag:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--brand-primary));
  flex-shrink: 0;
}

/* ============================================================= */
/* DATA METRICS STRIP                                             */
/* ============================================================= */
#data-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 0;
  overflow: hidden;
}
.data-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  gap: 6px;
  text-align: center;
}
.data-metric-value {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--brand-accent);
  line-height: 1;
  letter-spacing: -0.01em;
}
.data-metric-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.data-strip-rule {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.10);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  #data-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }
  .data-metric {
    padding: 24px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .data-metric:nth-child(even) { border-right: none; }
  .data-strip-rule { display: none; }
}

/* ============================================================= */
/* NATURE-DATA ILLUSTRATION                                       */
/* ============================================================= */
.sectors-illustration {
  width: 100%;
  margin-bottom: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0d1b3e;
}
.sectors-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================= */
/* SELECTED PROJECTS — compact                                    */
/* ============================================================= */
.projects-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.project-compact {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project-compact:nth-child(3n) { border-right: none; }
.project-compact:nth-last-child(-n+3):nth-child(3n+1),
.project-compact:nth-last-child(-n+2):nth-child(3n+2),
.project-compact:nth-last-child(-n+1):nth-child(3n) { border-bottom: none; }
/* last row — clear bottom border (7 cards, 3 columns = rows of 3+3+1) */
.project-compact:nth-child(4),
.project-compact:nth-child(5),
.project-compact:nth-child(6) { border-bottom: 1px solid var(--rule); }
.project-compact:nth-child(7) { border-bottom: none; border-right: none; }
.project-compact-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rule);
}
.project-compact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-compact:hover .project-compact-img img { transform: scale(1.03); }
.project-compact-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.project-compact-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.project-compact-title {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.2;
  color: var(--ink);
}
.project-compact-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
  text-wrap: pretty;
  flex: 1;
}
.project-compact-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  opacity: 0.6;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .projects-compact-grid { grid-template-columns: repeat(2, 1fr); }
  .project-compact:nth-child(3n) { border-right: 1px solid var(--rule); }
  .project-compact:nth-child(2n) { border-right: none; }
  .project-compact:nth-child(4),
  .project-compact:nth-child(5) { border-bottom: 1px solid var(--rule); }
  .project-compact:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .projects-compact-grid { grid-template-columns: 1fr; }
  .project-compact { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }
  .project-compact:last-child { border-bottom: none !important; }
}

/* SELECTED PROJECTS (legacy, archived)                           */
/* ============================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--rule);
}
.project-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.project-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(114, 181, 161, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(51, 130, 193, 0.08) 0%, transparent 55%),
    var(--sv-bg-soft);
}
.project-card--wide .project-img { aspect-ratio: 16 / 9; min-height: 260px; }
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-body {
  padding: 28px 32px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.project-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
  color: var(--ink);
}
.project-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
  text-wrap: pretty;
  margin: 0;
}

.project-fold {
  margin-top: 8px;
  flex: 1;
}
.project-fold-toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  padding: 4px 0;
  outline: none;
  user-select: none;
  transition: color 0.2s ease;
}
.project-fold-toggle::-webkit-details-marker { display: none; }
.project-fold-toggle::marker { content: ""; }
.project-fold-toggle::after {
  content: "+";
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.2s ease;
  width: 10px;
  text-align: center;
}
.project-fold[open] .project-fold-toggle::after { content: "–"; }
.project-fold[open] .project-fold-label { display: none; }
.project-fold[open] .project-fold-toggle::before {
  content: "Hide";
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.project-fold-toggle:hover { color: var(--brand-accent); }

.project-desc-rest {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.75;
  text-wrap: pretty;
  margin: 8px 0 0 0;
  animation: project-fade-in 0.3s ease;
}
@keyframes project-fade-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.project-year {
  font-size: 12px;
  color: var(--ink-muted);
  opacity: 0.6;
  margin-top: auto;
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-template-columns: 1fr; }
}

/* ============================================================= */
/* TRACK RECORD — three pillars                                   */
/* ============================================================= */
.track-intro {
  max-width: 64ch;
  margin-bottom: 56px;
}
.track-headline {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px 0;
  text-wrap: balance;
}
.track-headline em {
  font-style: italic;
  color: var(--brand-primary);
}
.track-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.pillar {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 4px 4px 0 0;
}
.pillar--research::before    { background: linear-gradient(90deg, var(--brand-primary), #4593b3); }
.pillar--industry::before    { background: linear-gradient(90deg, var(--brand-accent), #5fa493); }
.pillar--government::before  { background: linear-gradient(90deg, #1f2c4d, var(--brand-primary)); }

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(13, 27, 62, 0.16);
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar--research   .pillar-icon { background: rgba(51, 130, 193, 0.12);  color: var(--brand-primary); }
.pillar--industry   .pillar-icon { background: rgba(114, 181, 161, 0.16); color: var(--brand-accent); }
.pillar--government .pillar-icon { background: rgba(31, 44, 77, 0.10);    color: #1f2c4d; }

.pillar-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.pillar-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.pillar-lede {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 20px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  text-wrap: pretty;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pillar--research   .pillar-list li::before { background: var(--brand-primary); }
.pillar--industry   .pillar-list li::before { background: var(--brand-accent); }
.pillar--government .pillar-list li::before { background: #1f2c4d; }
.pillar-list li strong {
  color: var(--ink);
  font-weight: 500;
}

.track-intersection {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  max-width: 78ch;
  margin: 0;
  padding: 22px 26px;
  background: #fff;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--brand-primary), var(--brand-accent)) 1;
  text-wrap: pretty;
}
.track-intersection-label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================= */
/* CONTACT (dark — bookend to the hero)                           */
/* ============================================================= */
#contact {
  border-top: 0 !important;
  padding-top: clamp(40px, 6vh, 72px);
  padding-bottom: clamp(40px, 6vh, 72px);
}
#contact .section-label {
  color: rgba(255, 255, 255, 0.55);
}
#contact .section-label::before {
  background: rgba(255, 255, 255, 0.4);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-photo-wrap {
  margin-bottom: 20px;
  max-width: 280px;
}
.contact-photo-wrap.contact-photo-split {
  max-width: 400px;
  margin-bottom: 20px;
}
.contact-photo-split {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 320px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.contact-photo-pane {
  position: relative;
  flex: 1;
  overflow: hidden;
}
/* Left pane — clipped with diagonal right edge */
.contact-photo-pane:first-child {
  left: 0;
  width: 55%;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 1;
}
/* Right pane — clipped with matching diagonal left edge */
.contact-photo-pane:last-child {
  right: 0;
  width: 55%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
/* Gap between panes — navy background shows through */
.contact-photo-split {
  background: #0d1b3e;
  gap: 1px;
}
.contact-photo-pane .contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  filter: grayscale(15%);
}
.contact-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%);
  border-radius: 4px;
}
.contact-photo-split .contact-photo {
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.contact-headline {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  color: #fff;
}
.contact-headline em {
  font-style: italic;
  color: var(--brand-accent);
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-group-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.contact-group-label:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 0.2s, border-color 0.2s;
}
.contact-link:hover {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}
.contact-link-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 3px;
}
.contact-left { display: flex; flex-direction: column; gap: 0; }
.contact-left .contact-links { margin-top: 32px; }

/* ============================================================= */
/* CONTACT FORM                                                   */
/* ============================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-accent);
  background: rgba(255,255,255,0.09);
}
.form-field input.error,
.form-field textarea.error { border-color: #e07a7a; }
.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent);
  color: #0d1b3e;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 24px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.form-submit:hover { background: #8ecfba; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.form-status {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 3px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(114,181,161,0.15);
  border: 1px solid rgba(114,181,161,0.4);
  color: var(--brand-accent);
}
.form-status.error {
  display: block;
  background: rgba(224,122,122,0.12);
  border: 1px solid rgba(224,122,122,0.35);
  color: #e07a7a;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================= */
/* FOOTER (continues the dark Contact section)                    */
/* ============================================================= */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  background: var(--navy);
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}
footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
footer a:hover { color: var(--brand-accent); border-color: var(--brand-accent); }

/* ============================================================= */
/* REVEAL ANIMATION                                               */
/* ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================= */
/* RESPONSIVE — shared breakpoints                                */
/* ============================================================= */
@media (max-width: 768px) {
  .sectors-layout,
  .track-layout,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .track-heading { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px 64px; }
  .service-cue { bottom: 18px; right: 20px; }
  .service-teaser { font-size: 13px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
