/* DevForces — July 2026 redesign
 * Dark, premium, outcome-led enterprise design.
 * No external CDNs. No frameworks. Cloudflare Pages ready.
 */

/* --------------------------------------------------------------------------
 * Fonts
 * -------------------------------------------------------------------------- */
/* Montserrat variable (weights 100-900 cover 400/500/600/700), self-hosted.
 * Two subset files: latin + latin-ext (latin-ext covers Polish: ł, ż, ć, ń, ó, ś, ę, ą).
 * Total payload ~106 KiB, within the 120 KB budget. */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DevForces';
  src: url('/assets/fonts/DevForces-Bold.woff2') format('woff2'),
       url('/assets/fonts/DevForces-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
 * Animated custom properties
 * -------------------------------------------------------------------------- */
@property --gradient-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@property --glow-opacity {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

/* --------------------------------------------------------------------------
 * Design tokens
 * -------------------------------------------------------------------------- */
:root {
  /* Surfaces — official palette */
  --bg:            #03002A;  /* near-black navy: page background */
  --bg-navy:       #010053;  /* dark navy: alternating sections, cards on dark */
  --bg-elevated:   color-mix(in oklch, #010053 60%, #03002A);
  --surface-light: #DADFE1;  /* light grey: light "chapter" sections */
  --surface-mid:   #BABABA;  /* mid grey: secondary light surfaces */

  /* Accents */
  --blue:          #0C35F4;  /* electric blue: links, brackets, photo tint, footer band */
  --action:        #7D9BFF;  /* lightened brand blue: CTA fill, hover states, key highlights */

  /* Text */
  --text:          #F4F5F7;  /* on dark */
  --text-muted:    #BABABA;
  --text-on-light: #03002A;  /* on light sections */
  --text-on-blue:  #FFFFFF;

  /* Functional */
  --focus-ring:    #7D9BFF;
  --border-dark:   color-mix(in oklch, #DADFE1 14%, transparent);
  --border-light:  color-mix(in oklch, #03002A 12%, transparent);

  /* Derived aliases (existing components consume these) */
  --bg-surface:    color-mix(in oklch, #010053 45%, #03002A);
  --text-subtle:   color-mix(in oklch, var(--text-muted) 78%, var(--bg));
  --blue-dim:      color-mix(in oklch, var(--blue) 24%, var(--bg));
  --blue-glow:     color-mix(in oklch, var(--blue) 40%, transparent);
  --blue-soft:     color-mix(in oklch, var(--blue) 42%, #FFFFFF); /* lightened blue for small text on dark */
  --action-dim:      color-mix(in oklch, var(--action) 15%, transparent);
  --action-glow:     color-mix(in oklch, var(--action) 35%, transparent);
  --border:        var(--border-dark);
  --border-strong: color-mix(in oklch, #DADFE1 26%, transparent);

  --max-width: 1200px;
  --gutter: 24px;
  --section-pad: 120px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  display: block;
  height: auto;
}

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

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(125, 155, 255, 0.15); /* fallback */
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--action) 15%, transparent);
}

/* The accent blue is too faint on light surfaces (~2.6:1) — switch the
 * indicator to electric blue (5.5:1 on --surface-light) inside light chapters. */
.chapter-light :focus-visible,
.contact-stripes :focus-visible {
  outline-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(12, 53, 244, 0.2); /* fallback */
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--blue) 20%, transparent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  max-width: 70ch;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
 * Skip link
 * -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--action);
  color: var(--bg);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 100;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */
.container {
  width: 100%; /* explicit width: size containment (container-type) forbids content-based sizing, which collapses width inside flex/grid parents */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  container-type: inline-size;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

section.alt {
  /* Translucent so the cosmos backdrop reads through while the alternating
   * section rhythm is preserved. Falls back to the solid wash without color-mix. */
  background-color: var(--bg-elevated);
  background-color: color-mix(in oklch, var(--bg-elevated) 62%, transparent);
}

/* Base eyebrow micro-label (scoped variants below override color/context). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;

  &::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--blue);
  }
}

.section-header {
  margin-bottom: 64px;
  max-width: 820px;
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;

    &::before {
      content: '';
      width: 24px;
      height: 2px;
      background: var(--blue);
    }
  }

  h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 18px;
    text-wrap: balance;
  }

  .lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
  }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 760px;
}

/* --------------------------------------------------------------------------
 * Header / Navigation
 * -------------------------------------------------------------------------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(3, 0, 42, 0.88); /* fallback */
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

  /* The frosted backdrop is opt-in (header.frosted, toggled in main.js):
     while a hero video sits behind the header, backdrop-filter would re-blur
     the playing video on every frame. */
  &.frosted {
    backdrop-filter: blur(16px) saturate(1.4);
  }

  &:has(.nav-links a[aria-current="page"]) {
    border-color: var(--border-strong);
  }

  &.scrolled {
    background: rgba(3, 0, 42, 0.96); /* fallback */
    background: color-mix(in oklch, var(--bg) 94%, transparent);
    border-color: var(--border-strong);
  }
}

/* Scoped to the header: the stage index on /how-we-work is also a <nav>, and
   the shared rule below is a header layout, not a generic one. */
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  .logo-wordmark {
    height: 26px;
    width: auto;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);

    &:hover, &:focus {
      color: var(--text);
      background: rgba(255, 255, 255, 0.05);
      text-decoration: none;
    }

    &[aria-current="page"] {
      color: var(--text);
      background: rgba(255, 255, 255, 0.08);
    }
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--blue);
  padding: 8px 8px 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-out), filter 0.2s var(--ease-out);
  position: relative;

  .cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #FFFFFF;
    flex: none;
  }

  &:hover, &:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(12, 53, 244, 0.35); /* fallback */
    box-shadow: 0 8px 24px color-mix(in oklch, var(--blue) 45%, transparent);
    text-decoration: none;
  }

  svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s var(--ease-out);
  }

  &:hover svg {
    transform: translateX(2px);
  }
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease-out);

  &:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  /* The shared header `nav` rule spreads the links across the full height and
     centres them; here they stack from the top with the call to action at the
     bottom. */
  justify-content: flex-start;
  align-items: stretch;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  /* The shared header `nav` rule sets a 72px height, which cropped the menu to
     one visible row. The panel now fills the space under the header, so every
     link is on screen without scrolling. */
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;

  .mobile-menu__links {
    display: flex;
    flex-direction: column;
    margin-top: auto;
  }

  a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);

    &:hover, &:focus {
      color: var(--text);
      padding-left: 8px;
    }

    &[aria-current="page"] {
      color: var(--action);
    }
  }

  .mobile-menu__cta {
    margin-top: auto;
    padding: 16px 0 0;
    border-bottom: none;
    color: var(--bg);
    font-weight: 600;
    text-align: center;

    &:hover, &:focus {
      color: var(--bg);
      padding-left: 0;
    }
  }
}

.mobile-menu.open {
  display: flex;
}

/* --------------------------------------------------------------------------
 * Hero
 * -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 100px;
  background: radial-gradient(ellipse at 50% 0%, rgba(12, 53, 244, 0.16) 0%, var(--bg) 50%); /* fallback */
  background: radial-gradient(ellipse at 50% 0%, color-mix(in oklch, var(--blue) 16%, var(--bg)) 0%, var(--bg) 50%);

  .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at 50% 40%, transparent 0%, var(--bg) 70%);
    pointer-events: none;
  }

  .container {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--action);
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 600;
    max-width: 1000px;
    margin-bottom: 24px;
    text-wrap: balance;
    line-height: 1.05;

    .accent {
      color: var(--action);
    }
  }

  .hero-subhead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 40px;
    line-height: 1.6;
  }

  .hero-body {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text);
    max-width: 640px;
    margin: -24px 0 40px;
    line-height: 1.6;
    opacity: 0.92;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

.hero-sm {
  min-height: 50vh;
  padding: 140px 0 80px;
  text-align: left;
  justify-content: flex-end;
  align-items: flex-end;

  .container {
    align-items: flex-start;
    text-align: left;
  }

  h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    max-width: 900px;
  }

  .hero-subhead {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;

  svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s var(--ease-out);
  }

  &:hover, &:focus {
    transform: translateY(-2px);
    text-decoration: none;

    svg {
      transform: translateX(2px);
    }
  }
}

.btn-primary {
  background: var(--action);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(125, 155, 255, 0.2); /* fallback */
  box-shadow: 0 4px 16px color-mix(in oklch, var(--action) 20%, transparent);

  &:hover, &:focus {
    box-shadow: 0 8px 28px rgba(125, 155, 255, 0.35); /* fallback */
    box-shadow: 0 8px 28px var(--action-glow);
  }
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);

  &:hover, &:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);

  &:hover, &:focus {
    color: var(--text);
    border-bottom-color: var(--action);
    transform: none;
    box-shadow: none;
  }
}

.magnetic {
  transition: transform 0.15s var(--ease-out);
}

/* --------------------------------------------------------------------------
 * Trusted-by bar
 * -------------------------------------------------------------------------- */
.trusted-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-light);
  color: var(--text-on-light);
  overflow: hidden;

  .trusted-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
  }

  .trusted-label {
    color: color-mix(in oklch, var(--text-on-light) 65%, var(--surface-light));
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .trusted-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trusted-logo {
    color: var(--bg-navy);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s var(--ease-out), color 0.2s var(--ease-out);

    &:hover {
      opacity: 1;
      color: var(--blue);
    }
  }
}

/* --------------------------------------------------------------------------
 * Cards & grids
 * -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-5 { grid-template-columns: 1fr; }
}

.card,
.outcome-card,
.pillar,
.compliance-tile,
.job-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(12, 53, 244, 0.18), transparent 40%); /* fallback */
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), color-mix(in oklch, var(--blue) 18%, transparent), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
  }

  &:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);

    &::before {
      opacity: 1;
    }
  }

  .card-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 18px;
    display: inline-block;
    border: 1px solid color-mix(in oklch, var(--blue) 60%, transparent);
    padding: 4px 10px;
    border-radius: 100px;
  }

  h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  p, li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  ul {
    margin-top: 14px;
    padding-left: 18px;
  }

  li + li {
    margin-top: 8px;
  }
}

/* --------------------------------------------------------------------------
 * Card icon tiles
 * Shapes adapted from the Orbital redesign prototype, redrawn on the site's
 * blue palette. Decorative only — the card heading carries the meaning.
 * -------------------------------------------------------------------------- */
.tile {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid color-mix(in oklch, var(--action) 34%, transparent);
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in oklch, var(--action) 34%, transparent), transparent 74%),
    color-mix(in oklch, var(--bg-elevated) 82%, #0b0a4d);
  box-shadow: inset 0 1px 0 color-mix(in oklch, #ffffff 16%, transparent);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);

  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease-out);
  }
}

.card:hover .tile {
  transform: translateY(-3px) rotate(-3deg);
  border-color: var(--border-strong);
  box-shadow: 0 16px 32px -12px color-mix(in oklch, var(--blue) 70%, transparent);
}

.card:hover .tile::after {
  transform: translateX(120%);
}

.ic {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
  overflow: visible;
  color: var(--action);
  fill: none;
  stroke: url(#df-ic-stroke);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(76, 201, 255, 0.55));
}

.ic * {
  fill: none;
  stroke: url(#df-ic-stroke);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic .s {
  fill: url(#df-ic-fill);
}

.ic .d {
  fill: #e6f0ff;
  stroke: none;
}

.ic .dr {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.card.visible .ic .dr {
  animation: icon-draw 1.4s var(--ease-out) forwards 0.2s;
}

.ic .tw {
  animation: icon-twinkle 2.4s ease-in-out infinite;
}

.ic .bob {
  animation: icon-bob 4s ease-in-out infinite;
}

.ic .ring {
  animation: icon-pulse 2.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.ic .needle {
  transform-origin: 24px 34px;
  animation: icon-needle 4.4s ease-in-out infinite;
}

.ic .scan {
  animation: icon-scan 3s ease-in-out infinite alternate;
}

.ic .mer {
  animation: icon-meridian 5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes icon-twinkle {
  50% { opacity: 0.15; }
}

@keyframes icon-bob {
  50% { transform: translateY(-2.5px); }
}

@keyframes icon-pulse {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(1.2); opacity: 0; }
}

@keyframes icon-needle {
  0%, 100% { transform: rotate(-42deg); }
  50% { transform: rotate(40deg); }
}

@keyframes icon-scan {
  from { transform: translateY(0); }
  to { transform: translateY(30px); }
}

@keyframes icon-meridian {
  from { transform: scaleX(0.15); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ic * {
    animation: none !important;
  }

  .ic .dr {
    stroke-dashoffset: 0;
  }

  .card:hover .tile,
  .card:hover .tile::after {
    transform: none;
  }
}

/* Legacy card media — wrapper around <img>, tinted via .photo-brand (§3.4). */
.card-media {
  height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  border: 1px solid var(--border);
}


.section-closer {
  text-align: center;
  max-width: 720px;
  margin: 56px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}


/* Row of buttons under a section (same button shape as the hero CTA). */
.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
 * Case study carousel
 * -------------------------------------------------------------------------- */
.carousel {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 4px;
  box-sizing: border-box;
}

.case-study {
  background: var(--bg-elevated, color-mix(in oklch, var(--bg) 80%, white));
  border: 1px solid var(--border);
  border-left: 4px solid var(--action);
  border-radius: 12px;
  padding: 48px 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--action);
  padding: 4px 12px;
  border: 1px solid var(--action);
  border-radius: 999px;
}

.case-study h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.case-study p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-prev,
.carousel-next {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.carousel-prev:hover,
.carousel-next:hover {
  border-color: var(--action);
  color: var(--action);
}

.carousel-prev svg,
.carousel-next svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text-subtle);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.carousel-dot:hover {
  opacity: 0.7;
}

.carousel-dot[aria-current="true"] {
  background: var(--action);
  opacity: 1;
}

@media (max-width: 600px) {
  .case-study {
    padding: 32px 24px;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
 * Outcome cards
 * -------------------------------------------------------------------------- */
.outcome-card {
  display: flex;
  flex-direction: column;
  gap: 16px;

  .outcome-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: rgba(125, 155, 255, 0.12); /* fallback */
    background: var(--action-dim);
    color: var(--action);
    border: 1px solid color-mix(in oklch, var(--action) 30%, transparent);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
 * Service pillars
 * -------------------------------------------------------------------------- */
.pillar {
  padding: 36px;

  h3 {
    font-size: 1.4rem;
  }
}

/* --------------------------------------------------------------------------
 * Process steps
 * -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  @container (max-width: 1100px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @container (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

  &:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
  }

  .step-number {
    position: absolute;
    top: -18px;
    left: 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    border: 4px solid var(--bg);
  }

  h3 {
    font-size: 1.25rem;
    margin: 10px 0 10px;
  }

  .step-meta {
    color: var(--action);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* --------------------------------------------------------------------------
 * Case-study chips (project cards + collapsible project list)
 * -------------------------------------------------------------------------- */
.case-sector {
  display: inline-block;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid color-mix(in oklch, var(--blue) 65%, transparent);
  border-radius: 100px;
  padding: 5px 12px;
}

.case-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
 * Trust centre
 * -------------------------------------------------------------------------- */
.compliance-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border-color: color-mix(in oklch, var(--blue) 55%, transparent);

  .tile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .status-complete {
    background: rgba(125, 155, 255, 0.12); /* fallback */
    background: var(--action-dim);
    color: var(--action);
    border: 1px solid color-mix(in oklch, var(--action) 30%, transparent);
  }

  .status-progress {
    background: rgba(217, 185, 61, 0.15); /* fallback */
    background: color-mix(in oklch, oklch(70% 0.12 85) 15%, transparent);
    color: oklch(78% 0.1 85);
    border: 1px solid color-mix(in oklch, oklch(70% 0.12 85) 30%, transparent);
  }

  .status-planned {
    background: rgba(12, 53, 244, 0.18); /* fallback */
    background: color-mix(in oklch, var(--blue) 18%, transparent);
    color: var(--blue-soft);
    border: 1px solid color-mix(in oklch, var(--blue) 40%, transparent);
  }

  h3 {
    font-size: 1.35rem;
  }

  .tile-target {
    color: var(--text-subtle);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: auto;
  }
}

.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s var(--ease-out);

  &:hover {
    border-color: var(--border-strong);
  }

  summary {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      content: '+';
      color: var(--action);
      font-size: 1.5rem;
      font-weight: 300;
      transition: transform 0.2s var(--ease-out);
    }
  }

  &[open] summary::after {
    transform: rotate(45deg);
  }

  p {
    color: var(--text-muted);
    padding-top: 16px;
  }
}

/* --------------------------------------------------------------------------
 * Team
 * -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

  &:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
  }

  .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--blue-dim);
    color: var(--action);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 20px;
    border: 2px solid var(--border);
  }

  img.avatar {
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s var(--ease-out);
  }

  &:hover img.avatar {
    filter: grayscale(0%);
  }

  h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .location {
    color: var(--text-subtle);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 48px;

  .stat {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;

    .stat-value {
      font-family: var(--font-heading);
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--action);
      line-height: 1;
      margin-bottom: 8px;
    }

    .stat-label {
      color: var(--text-muted);
      font-size: 0.9rem;
      line-height: 1.4;
    }
  }
}

/* --------------------------------------------------------------------------
 * Careers
 * -------------------------------------------------------------------------- */
.job-card {
  display: flex;
  flex-direction: column;
  gap: 16px;

  .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .job-tag {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
  }

  h3 {
    font-size: 1.5rem;
  }

  .job-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin-top: 32px;

  li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    &::before {
      content: '✓';
      color: var(--action);
      font-weight: 700;
    }
  }
}

/* --------------------------------------------------------------------------
 * Contact
 * -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;

  .contact-info {
    h2 {
      font-size: 1.5rem;
      margin-bottom: 20px;
    }

    p {
      color: var(--text-muted);
      margin-bottom: 18px;
      line-height: 1.6;
    }

    .contact-channel {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      margin-bottom: 16px;
      transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);

      &:hover {
        border-color: var(--border-strong);
        transform: translateY(-2px);
      }

      strong {
        display: block;
        color: var(--text);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 6px;
      }

      a {
        color: var(--action);
        font-weight: 600;
        word-break: break-all;

        &:hover {
          text-decoration: underline;
        }
      }
    }

  }
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-group {
    margin-bottom: 20px;

    label {
      display: block;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    input, textarea, select {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text);
      padding: 12px 14px;
      font-family: inherit;
      transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);

      &:focus {
        outline: none;
        border-color: var(--action);
        box-shadow: 0 0 0 3px rgba(125, 155, 255, 0.15); /* fallback */
        box-shadow: 0 0 0 3px color-mix(in oklch, var(--action) 15%, transparent);
      }
    }

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

  .form-note {
    color: var(--text-subtle);
    font-size: 0.85rem;
    margin-top: 20px;
    line-height: 1.5;

    a {
      color: var(--action);
      text-decoration: underline;
    }
  }

  .form-prefer-email {
    color: var(--text);
    font-size: 0.95rem;
    margin-top: 24px;
    text-align: center;

    a {
      color: var(--action);
      font-weight: 600;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s var(--ease-out);

      &:hover {
        border-bottom-color: var(--action);
      }
    }
  }
}

/* --------------------------------------------------------------------------
 * CTA banner
 * -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(12, 53, 244, 0.2), transparent 60%); /* fallback */
    background: radial-gradient(ellipse at 50% 0%, color-mix(in oklch, var(--blue) 20%, transparent), transparent 60%);
    pointer-events: none;
  }

  .container {
    position: relative;
    z-index: 1;
  }

  h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 800px;
    margin: 0 auto 24px;
  }

  p {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 1.1rem;
  }
}

/* --------------------------------------------------------------------------
 * Footer — electric-blue brand band (PDF mockups)
 * The accent blue is never used here: #7D9BFF on #0C35F4 fails contrast (§7 risk 1).
 * -------------------------------------------------------------------------- */
footer {
  background: var(--blue);
  color: var(--text-on-blue);
  padding: 72px 0 32px;
  position: relative;
  overflow: hidden;

  .footer-watermark {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: min(420px, 55vw);
    height: auto;
    opacity: 0.1;
    pointer-events: none;
  }

  .container {
    position: relative;
    z-index: 1;
  }

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

    @supports (grid-template-columns: subgrid) {
      .footer-col {
        display: grid;
        grid-template-columns: subgrid;
        gap: 0;
      }
    }

    @container (max-width: 860px) {
      grid-template-columns: 1fr 1fr;
    }

    @container (max-width: 560px) {
      grid-template-columns: 1fr;
    }
  }

  .footer-brand {
    .logo-wordmark {
      height: 28px;
      width: auto;
      margin-bottom: 18px;
    }

    p {
      color: rgba(255, 255, 255, 0.82);
      font-size: 0.95rem;
      line-height: 1.6;
    }
  }

  .footer-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;

    .footer-lockup-line {
      font-family: 'DevForces', 'Montserrat', sans-serif;
      font-size: 30px;
      font-weight: 700;
      line-height: 1;
      text-transform: uppercase;
      color: #FFFFFF;

      /* live site: 1px gap between solid "M" and outlined "AI" */
      .outline {
        margin-left: 1px;
      }
    }

    .outline {
      color: rgba(255, 255, 255, 0.85);

      @supports ((-webkit-text-stroke: 1px #FFFFFF)) {
        color: transparent;
        -webkit-text-stroke: 1px #FFFFFF;
      }
    }

    /* live site rhythm: logo overlaps MAI line box by ~4px,
       BE WITH YOU follows 4px below the logo */
    .footer-lockup-logo {
      width: 200px;
      height: auto;
      margin-top: -4px;
    }

    .footer-lockup-logo + .footer-lockup-line {
      margin-top: 4px;
    }
  }

  .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;

    a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.45);
      color: #FFFFFF;
      transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);

      svg {
        width: 16px;
        height: 16px;
      }

      &:hover, &:focus {
        background: rgba(255, 255, 255, 0.14);
        border-color: #FFFFFF;
      }
    }
  }

  .footer-col {
    .footer-col-heading {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #FFFFFF;
      margin-bottom: 18px;
    }

    a {
      display: block;
      color: rgba(255, 255, 255, 0.82);
      font-size: 0.95rem;
      padding: 6px 0;
      transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);

      &:hover {
        color: #FFFFFF;
        transform: translateX(4px);
      }
    }
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;

    p {
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.85rem;
    }

    a {
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.85rem;

      &:hover {
        color: #FFFFFF;
      }
    }
  }
}

/* --------------------------------------------------------------------------
 * Privacy policy
 * -------------------------------------------------------------------------- */
.privacy-content {
  max-width: 820px;
  margin: 0 auto;

  h2, h3 {
    font-size: 1.35rem;
    margin-top: 40px;
    margin-bottom: 16px;
  }

  p, li {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.7;
  }

  ul {
    padding-left: 24px;
    margin-bottom: 20px;
  }

  a {
    color: var(--action);
    text-decoration: underline;
  }
}

/* --------------------------------------------------------------------------
 * Reveal / scroll animations
 * -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);

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

@media (prefers-reduced-motion: no-preference) {
  .reveal-stagger > .reveal {
    transition-delay: calc(var(--stagger, 0) * 80ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
 * Utilities
 * -------------------------------------------------------------------------- */
.text-subtle { color: var(--text-subtle); }
.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.text-center { text-align: center; }

/* Screen-reader-only text. Utility kept for future use; currently unused. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
 * Brand devices (official brand guide)
 * -------------------------------------------------------------------------- */

/* Blue-tinted photography treatment — exact values from the brand plan. */
.photo-brand {
  position: relative;
  overflow: hidden;

  img,
  video {
    filter: grayscale(0.4) contrast(1.05);
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #0C35F4;
    mix-blend-mode: multiply;
    opacity: 0.55;
    pointer-events: none;
  }

  /* Background video (R10): layered over the static poster image. JS marks
   * the container .video-active when motion is allowed; the poster <img>
   * stays as the structural fallback for no-JS / reduced-motion users. */
  video[data-bg-video] {
    position: absolute;
    inset: 0;
  }

  &.video-active img.poster-fallback {
    display: none;
  }
}

/* Unfiltered photography — same wrapper as .photo-brand, but with the blue
 * tint and grayscale filter removed. Used for leadership portraits (Panel 7)
 * per V1 brief slide 16: pictures should be in original format. */
.photo-original {
  position: relative;
  overflow: hidden;

  img,
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* CSS-only motion guard: even with JS disabled, reduced-motion users never
 * get a playing background video — the poster image underneath shows instead. */
@media (prefers-reduced-motion: reduce) {
  video[data-bg-video] {
    display: none;
  }
}

/* Corner brackets ("Brand Brackets") — electric blue, 2px stroke. */
.bracket-frame {
  position: relative;

  &::before,
  &::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--blue);
    pointer-events: none;
  }

  &::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
  }

  &::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
  }
}

/* Bracket framing on the header/footer logo lockup. */
.logo.bracket-frame {
  padding: 6px 10px;

  &::before,
  &::after {
    width: 10px;
    height: 10px;
    border-color: var(--blue);
  }
}

footer .logo.bracket-frame::before,
footer .logo.bracket-frame::after {
  border-color: #FFFFFF;
}

/* Chapters — alternating light/dark section rhythm (R2). */
.chapter-light {
  background: var(--surface-light);
  color: var(--text-on-light);

  .section-header {
    .eyebrow {
      color: var(--blue);

      &::before {
        background: var(--blue);
      }
    }

    .lead {
      color: color-mix(in oklch, var(--text-on-light) 72%, var(--surface-light));
    }
  }

  .section-subtitle,
  .lead {
    color: color-mix(in oklch, var(--text-on-light) 72%, var(--surface-light));
  }

  .card,
  .outcome-card,
  .pillar,
  .compliance-tile,
  .job-card {
    background: #FFFFFF;
    border-color: var(--border-light);
    color: var(--text-on-light);

    p, li {
      color: color-mix(in oklch, var(--text-on-light) 68%, #FFFFFF);
    }
  }


  .btn-outline {
    border-color: color-mix(in oklch, var(--text-on-light) 45%, transparent);
    color: var(--text-on-light);

    &:hover, &:focus {
      background: var(--text-on-light);
      border-color: var(--text-on-light);
      color: var(--surface-light);
    }
  }

  .text-subtle {
    color: color-mix(in oklch, var(--text-on-light) 62%, var(--surface-light));
  }
}

.chapter-dark {
  background: var(--bg-navy);
}

/* --------------------------------------------------------------------------
 * Cosmos backdrop — layered starfield, aurora, orbit rings, depth and grain.
 * One fixed decorative layer behind all content (aria-hidden, no pointer
 * events). The gradient, aurora, rings and grain are pure CSS; JS adds the
 * parallax starfield and drives --cosmos-t from scroll progress. Without JS
 * the page still gets the full gradient backdrop.
 * -------------------------------------------------------------------------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);

  .cosmos__depth,
  .cosmos__aurora,
  .cosmos__stars,
  .cosmos__rings,
  .cosmos__grain {
    position: absolute;
    inset: 0;
  }

  /* Base scene: deep space at the top of the page. */
  .cosmos__depth {
    background:
      radial-gradient(120% 90% at 78% -10%, #070144 0%, #03002A 54%, #02001F 100%);
  }

  /* "Descending toward Earth": warms toward accent navy as you scroll down
   * and reaches its brightest near the contact section (--cosmos-t: 0 → 1). */
  .cosmos__depth::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(130% 85% at 50% 112%, rgba(12, 53, 244, 0.30) 0%, rgba(1, 0, 83, 0.52) 34%, transparent 72%),
      linear-gradient(to bottom, transparent 30%, rgba(1, 0, 83, 0.55) 100%);
    opacity: var(--cosmos-t, 0);
    transition: opacity 0.15s linear;
  }

  .cosmos__aurora {
    overflow: hidden;
  }

  .cosmos__aurora-blob {
    position: absolute;
    width: 62vmax;
    height: 62vmax;
    border-radius: 50%;
    will-change: transform;
    opacity: 0.55;
    background: radial-gradient(circle at center, rgba(12, 53, 244, 0.20) 0%, rgba(12, 53, 244, 0.07) 38%, transparent 70%);
  }

  .cosmos__aurora-blob--a {
    top: -26vmax;
    left: -18vmax;
    animation: cosmos-drift-a 44s ease-in-out infinite alternate;
  }

  .cosmos__aurora-blob--b {
    right: -28vmax;
    bottom: -30vmax;
    background: radial-gradient(circle at center, rgba(125, 155, 255, 0.16) 0%, rgba(125, 155, 255, 0.05) 40%, transparent 70%);
    animation: cosmos-drift-b 56s ease-in-out infinite alternate;
  }

  .cosmos__aurora-blob--c {
    top: 28%;
    left: 38%;
    width: 48vmax;
    height: 48vmax;
    opacity: 0.4;
    animation: cosmos-drift-c 38s ease-in-out infinite alternate;
  }

  .cosmos__stars {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.4s ease;
  }

  .cosmos__rings {
    width: 100%;
    height: 100%;
  }

  .cosmos__ring {
    fill: none;
    stroke: var(--action);
    stroke-opacity: 0.06;
    stroke-width: 1;
  }

  .cosmos__satellite {
    fill: #DADFE1;
    opacity: 0.45;
  }

  .cosmos__grain {
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
  }

  &.cosmos--live .cosmos__stars {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  /* Fewer/smaller paint layers on phones. */
  .cosmos .cosmos__aurora-blob {
    will-change: auto;
    opacity: 0.45;
  }
}

@keyframes cosmos-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
}

@keyframes cosmos-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-5vmax, -6vmax, 0) scale(1); }
}

@keyframes cosmos-drift-c {
  from { transform: translate3d(-3vmax, 2vmax, 0) scale(0.96); }
  to   { transform: translate3d(4vmax, -3vmax, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos .cosmos__aurora-blob {
    animation: none;
  }

  .cosmos .cosmos__satellite {
    display: none;
  }

  .cosmos .cosmos__depth::after {
    transition: none;
  }
}

/* Buttons — brand variants. */
.btn-action {
  background: var(--action);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(125, 155, 255, 0.2); /* fallback */
  box-shadow: 0 4px 16px color-mix(in oklch, var(--action) 20%, transparent);

  &:hover, &:focus {
    box-shadow: 0 8px 28px rgba(125, 155, 255, 0.35); /* fallback */
    box-shadow: 0 8px 28px var(--action-glow);
  }
}

.btn-pill {
  background: #FFFFFF;
  color: var(--blue);
  padding: 10px 10px 10px 24px;
  gap: 12px;

  .cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: #FFFFFF;
    flex: none;
  }

  &:hover, &:focus {
    box-shadow: 0 8px 24px rgba(12, 53, 244, 0.35); /* fallback */
    box-shadow: 0 8px 24px color-mix(in oklch, var(--blue) 45%, transparent);
  }
}

/* Hero — full-bleed earth video background (R10).
 * The video is decorative: the poster image is the structural fallback for
 * no-JS / reduced-motion users; JS adds .video-active once it can play.
 * All copy sits over a dark navy gradient so text (incl. the accent keyword)
 * keeps WCAG AA contrast against the footage. */
.hero-video {
  background: var(--bg);

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;

    img,
    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    video[data-bg-video] {
      position: absolute;
      inset: 0;
    }

    &.video-active img.poster-fallback {
      display: none;
    }
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(100deg, rgba(3, 0, 42, 0.76) 0%, rgba(3, 0, 42, 0.64) 45%, rgba(3, 0, 42, 0.48) 100%),
      linear-gradient(to top, rgba(3, 0, 42, 0.84) 0%, rgba(3, 0, 42, 0.34) 40%, rgba(3, 0, 42, 0) 75%);
    pointer-events: none;
  }

  .hero-grid {
    z-index: 2;
  }

  .container {
    z-index: 3;
  }
}

/* Manifesto — scroll-linked word reveal (R5). */
.manifesto {
  .manifesto-text {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    max-width: 1020px;
    text-wrap: balance;
  }

  .word {
    opacity: 0.15;
    transition: opacity 0.25s linear;
  }

  .word.accent {
    color: var(--action);
  }
}

/* How we work — numbered steps, thin outlined rows, blue numerals (PDF). */
.steps-list {
  display: grid;
  border-bottom: 1px solid var(--border);
}

.step-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.6fr;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--border);

  .step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    /* lightened electric blue: #0C35F4 on navy is only 2.5:1 (WCAG 1.4.3) */
    color: var(--blue-soft);
    line-height: 1;
  }

  h3 {
    font-size: 1.35rem;
    margin: 0;
  }

  p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }

  @media (max-width: 768px) {
    grid-template-columns: 64px 1fr;

    .step-num {
      font-size: 1.9rem;
    }

    p {
      grid-column: 2;
    }
  }
}

/* Areas of focus — tilted blue photo cards in a static 12-col grid. */
.focus-card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.focus-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s var(--ease-out);

  &:hover {
    transform: rotate(0deg) translateY(-6px);
  }

  .photo-brand {
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
  }

  .focus-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
  }

  p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }
}

/* 2×2 variant (PDF page 11 blue-card pattern). */
.focus-card-grid.cols-2 .focus-card {
  grid-column: span 6;

  .photo-brand {
    aspect-ratio: 16 / 9;
  }

  @media (max-width: 560px) {
    grid-column: 1 / -1;
  }
}

/* Tilt only on desktop; capped/dropped on mobile (§7 risk 2). */
@media (min-width: 769px) {
  .focus-card:nth-child(4n + 1) { --tilt: -2.5deg; }
  .focus-card:nth-child(4n + 2) { --tilt: 2deg; }
  .focus-card:nth-child(4n + 3) { --tilt: -1.5deg; }
  .focus-card:nth-child(4n + 4) { --tilt: 2.5deg; }
}

@media (max-width: 900px) {
  .focus-card {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .focus-card {
    grid-column: 1 / -1;
  }
}

/* Chapter with background media — same data-bg-video machinery as the hero
 * and sovereignty sections: poster <img> is the static fallback (no-JS,
 * reduced motion, slow network); .photo-brand applies the blue multiply
 * treatment to both poster and video. A navy veil keeps copy readable. */
.chapter-media {
  position: relative;
  overflow: hidden;

  .chapter-media-bg {
    position: absolute;
    inset: 0;

    img,
    video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    video[data-bg-video] {
      position: absolute;
      inset: 0;
    }

    &.video-active img.poster-fallback {
      display: none;
    }

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: color-mix(in oklch, var(--bg) 78%, transparent);
      pointer-events: none;
    }
  }

  .container {
    position: relative;
    z-index: 1;
  }
}

/* Digital sovereignty — full-bleed night globe with navy overlay. */
.sovereignty {
  position: relative;
  overflow: hidden;
  padding: calc(var(--section-pad) * 1.2) 0;

  .sovereignty-bg {
    position: absolute;
    inset: 0;

    img,
    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    video[data-bg-video] {
      position: absolute;
      inset: 0;
    }

    &.video-active img.poster-fallback {
      display: none;
    }

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: color-mix(in oklch, var(--bg) 72%, var(--blue) 28%);
      opacity: 0.88;
    }
  }

  .container {
    position: relative;
    z-index: 1;
  }
}

/* TCO — outlined cards, 1px blue borders. */
.tco-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.tco-card {
  grid-column: span 4;
  background: transparent;
  border: 1px solid color-mix(in oklch, var(--blue) 60%, transparent);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

  &:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
  }

  h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }

  @media (max-width: 900px) {
    grid-column: span 6;
  }

  @media (max-width: 560px) {
    grid-column: 1 / -1;
  }
}

/* Selected projects — photo cards. */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;

  .photo-brand {
    aspect-ratio: 16 / 9;
  }

  .project-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  h3 {
    margin: 0;
  }

  p {
    margin: 0;
  }
}

/* Collapsible project pattern (our-work index). */
.project-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: border-color 0.2s var(--ease-out);

  &:hover {
    border-color: var(--border-strong);
  }

  summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      content: '+';
      color: var(--action);
      font-size: 1.5rem;
      font-weight: 300;
      flex: none;
      transition: transform 0.2s var(--ease-out);
    }
  }

  &[open] summary::after {
    transform: rotate(45deg);
  }

  summary h3 {
    font-size: 1.35rem;
    margin: 0;
    flex: 1 1 auto;
  }

  .project-tag {
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid color-mix(in oklch, var(--blue) 65%, transparent);
    border-radius: 100px;
    padding: 5px 12px;
  }

  .project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
  }

  .project-detail {
    padding-top: 20px;

    p {
      color: var(--text-muted);
      line-height: 1.6;
    }
  }
}

/* Bracket-framed pull quote (case studies). */
.pull-quote {
  padding: 36px 40px;
  margin: 48px auto;
  max-width: 860px;

  p {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    font-weight: 500;
    line-height: 1.4;
    text-wrap: balance;
    margin: 0;
    max-width: none;
  }

  cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
  }
}

/* Case-study hero photo. */
.case-hero-media {
  margin-top: 48px;
  border-radius: var(--radius);
  aspect-ratio: 21 / 9;

  @media (max-width: 768px) {
    aspect-ratio: 16 / 9;
  }
}

/* Team portraits with blue treatment (PDF Team page). */
.team-card .photo-brand.avatar,
.team-card img.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 2px solid var(--border);
  overflow: hidden;
}

.team-card .photo-brand.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card.has-photo .photo-brand.avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
}

/* Contact page — striped light-grey background (PDF page 10). */
.contact-stripes {
  background:
    repeating-linear-gradient(
      -45deg,
      var(--surface-light) 0 26px,
      color-mix(in oklch, var(--surface-light) 88%, var(--surface-mid)) 26px 52px
    );
  color: var(--text-on-light);
}

.contact-hello {
  background: var(--bg-navy);
  color: var(--text);
  padding: 140px 0 90px;

  h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
  }

  .hero-subhead {
    color: var(--text-muted);
  }
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;

  @media (max-width: 860px) {
    grid-template-columns: 1fr;
  }
}

.location-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;

  h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .location-country {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
    margin-bottom: 14px;
  }

  p {
    color: color-mix(in oklch, var(--text-on-light) 70%, #FFFFFF);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }

  a {
    color: var(--blue);
    font-weight: 600;

    &:hover {
      text-decoration: underline;
    }
  }
}

/* Contact form on light surface. */
.contact-stripes {
  .contact-info {
    h2 {
      color: var(--text-on-light);
    }

    p,
    .lead {
      color: color-mix(in oklch, var(--text-on-light) 70%, var(--surface-light));
    }

    .contact-channel {
      background: #FFFFFF;
      border-color: var(--border-light);

      strong {
        color: var(--text-on-light);
      }

      a {
        color: var(--blue);
      }
    }
  }

  .contact-form {
    background: #FFFFFF;
    border-color: var(--border-light);
    color: var(--text-on-light);

    .form-group {
      label {
        color: color-mix(in oklch, var(--text-on-light) 70%, #FFFFFF);
      }

      input, textarea, select {
        background: color-mix(in oklch, var(--surface-light) 45%, #FFFFFF);
        border-color: var(--border-light);
        color: var(--text-on-light);

        &:focus {
          border-color: var(--blue);
          box-shadow: 0 0 0 3px rgba(125, 155, 255, 0.35); /* fallback */
          box-shadow: 0 0 0 3px color-mix(in oklch, var(--action) 45%, transparent);
        }
      }
    }

    .form-note {
      color: color-mix(in oklch, var(--text-on-light) 60%, #FFFFFF);

      a {
        color: var(--blue);
      }
    }
  }
}

/* --------------------------------------------------------------------------
 * V1 Brief — Panel components (8-panel website)
 *   • .comparison-table     — Panel 3 & Panel 4 (Old vs New / Old Way vs DevForces Way)
 *   • .guaranteed-block     — Panel 5 (4 guaranteed deliverables)
 *   • .sector-card-4        — Panel 6 (4 areas of focus cards)
 *   • .panel-tagline        — recurring footer tagline on content panels
 *   • .world-map            — Panel 8 (Leaflet container)
 *   • .photo-original       — unfiltered photography (slide 16 leadership photos)
 * -------------------------------------------------------------------------- */
.comparison-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;

  > .comparison-col {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    h3 {
      font-size: 1.25rem;
      margin: 0 0 4px;
    }

    ul {
      margin: 0;
      padding-left: 20px;
    }

    li {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    li + li {
      margin-top: 8px;
    }
  }

  @media (max-width: 860px) {
    grid-template-columns: 1fr;
  }
}

.comparison-table .comparison-col > ul {
  margin: 0;
}

.guaranteed-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;

  > .guaranteed-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

    &:hover {
      transform: translateY(-4px);
      border-color: color-mix(in oklch, var(--blue) 50%, transparent);
    }

    h3 {
      font-size: 1.2rem;
      margin-bottom: 12px;
      color: var(--text);
    }

    p {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.6;
      margin: 0;
    }
  }

  @media (max-width: 860px) {
    grid-template-columns: 1fr;
  }
}

/* Areas of focus row — five industries side by side. See .sector-cards in the
 * 2026-10-28 restructure block at the end of this file. */

.panel-tagline {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
  padding: 32px var(--gutter);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.world-map {
  width: 100%;
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.world-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

.contact-addresses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  @media (max-width: 860px) {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
    --gutter: 20px;
  }

  .nav-links,
  .nav-cta.desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero {
    min-height: 90vh;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .process {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-banner {
    padding: 40px 24px;
  }

  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* The wordmark is a 1200x144 asset, so at the desktop height it is 217px
     wide and overlapped the menu button on a 320px screen. */
  .logo .logo-wordmark { height: 20px; }
  .logo.bracket-frame { padding: 5px 8px; }

  .hero-actions {
    flex-direction: column;
    width: 100%;

    .btn {
      width: 100%;
    }
  }

  .section-actions {
    flex-direction: column;
    width: 100%;

    .btn {
      width: 100%;
    }
  }
}

/* --------------------------------------------------------------------------
 * No-JS fallbacks
 * -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* When JS is disabled, the hamburger is useless; show the nav links instead. */
  .no-js .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: static;
    padding: 16px 0;
    background: transparent;
    border: none;
  }
  .no-js .hamburger,
  .no-js .nav-cta.desktop {
    display: none !important;
  }
}

/* If JS is disabled, reveal elements immediately and hide the WebGL canvas. */
.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.no-js .hero-canvas {
  display: none !important;
}

/* --------------------------------------------------------------------------
 * Inner pages — /services and /about
 * -------------------------------------------------------------------------- */
.page-hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);

  /* Page title matches the home page's section headings (.section-header h2):
     same size, line height and spacing, so a page title is never bigger than
     the headings on the home page. */
  h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
    max-width: 1000px;
    margin-bottom: 18px;
  }

  .lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 16px;
  }

  .lead:last-of-type {
    margin-bottom: 40px;
  }
}
.page-hero .max-w-text { max-width: 1000px; }

/* Running text on the inner pages matches the page-hero lead: same size,
   line height and colour, so the opening paragraph and the rest of the page
   read as one typographic system. */
.service-body p,
.service-callout p:not(.eyebrow),
.commitments-lede,
.commitments-art p,
.capabilities p,
.service-section .lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.page-hero--centered { margin-left: auto; margin-right: auto; text-align: center; }
.page-hero--centered .lead { margin-left: auto; margin-right: auto; }

/* Split hero: copy on the left, graphic on the right. */
.page-hero--split .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.page-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 1100px) {
  .page-hero--split .container { grid-template-columns: 1fr; gap: 32px; }
}

.about-decor {
  width: 120px;
  margin: 0 auto 32px;
}
.about-decor svg { width: 100%; height: auto; display: block; }

.max-w-text { max-width: 760px; }

/* --------------------------------------------------------------------------
 * Delivery stage index — the numbered 01–05 overview in the page hero
 * -------------------------------------------------------------------------- */
.stage-index {
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.stage-index__label {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 20px 0 4px;
}

.stage-index__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease-out);
}

.stage-index__no {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--action);
  transition: color 0.3s var(--ease-out);
}

.stage-index__title {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);

  &:hover,
  &:focus-visible {
    color: var(--action);
  }
}

.stage-index__summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 6px;
  max-width: 64ch;
}

.stage-index__arrow {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--action);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.stage-index__item:hover .stage-index__no,
.stage-index__item:hover .stage-index__title {
  color: var(--blue-soft);
}

.stage-index__item:hover .stage-index__arrow,
.stage-index__item:focus-within .stage-index__arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .stage-index__item {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .stage-index__arrow { display: none; }
}

/* Services */
.service-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.service-section.alt {
  /* Translucent so the cosmos backdrop reads through (see .cosmos). */
  background: var(--bg-alt, var(--bg-surface));
  background: color-mix(in oklch, var(--bg-alt, var(--bg-surface)) 62%, transparent);
}
.service-grid {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 56px;
  align-items: center;
}
.service-grid--reverse { grid-template-columns: 58fr 42fr; }
.service-grid--reverse .service-grid__art { order: 2; }

.service-grid__art { position: relative; }
.ill-tile {
  width: 100%;
  aspect-ratio: 240 / 140;
  background:
    radial-gradient(circle at 30% 30%, rgba(12,53,244,0.18), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(12,53,244,0.10), transparent 55%),
    var(--bg-surface, #050038);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.ill-tile::before,
.ill-tile::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 8px;
}
.ill-tile::before {
  background:
    linear-gradient(transparent 60%, rgba(122,211,237,0.18) 60%, transparent calc(60% + 4px)),
    linear-gradient(90deg, transparent 0, transparent 100%);
  border: 1px dashed rgba(122,211,237,0.4);
}
.ill-tile::after {
  background:
    radial-gradient(circle at 70% 35%, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle at 30% 60%, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 75%, var(--blue) 0 5px, transparent 6px);
  opacity: 0.85;
}

/* Tile holding an illustration instead of the placeholder frame. */
.ill-tile--art {
  background:
    radial-gradient(circle at 30% 25%, rgba(12,53,244,0.16), transparent 58%),
    radial-gradient(circle at 78% 78%, rgba(12,53,244,0.10), transparent 55%),
    var(--bg-surface, #050038);

  &::before,
  &::after {
    display: none;
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.service-grid__copy h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: 12px;
}
.service-sub {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--blue);
  font-weight: 500;
}
.service-body p {
  margin-bottom: 16px;
  max-width: 60ch;
}
.service-callouts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 60ch;
}
.service-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--text-muted);
}
.service-callout p { color: var(--text-muted); margin-bottom: 0; }
.service-callout .eyebrow {
  color: var(--blue);
  margin-bottom: 6px;
}

/* About / Team */
.team-section {
  padding: 80px 0;
  background: var(--bg-alt, var(--bg-surface));
}
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.team-card { display: flex; flex-direction: column; }
.team-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--bg-white, #fff);
  overflow: hidden;
}
.team-chamfer {
  --c: 14px;
  clip-path: polygon(
    var(--c) 0,
    100% 0,
    100% calc(100% - var(--c)),
    calc(100% - var(--c)) 100%,
    0 100%,
    0 var(--c)
  );
}
.team-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 600ms ease;
}
.team-card:hover .team-portrait,
.team-card:focus-within .team-portrait { filter: grayscale(0%); }

.team-portrait--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  background: linear-gradient(135deg, #131659 0%, #050038 50%, #0C35F4 100%);
  position: relative;
  overflow: hidden;
  transition: filter 600ms ease;
}
.team-portrait--placeholder::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 25%, rgba(125,155,255,0.32), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(12,53,244,0.25), transparent 45%);
  filter: grayscale(100%);
  transition: filter 600ms ease;
}
.team-card:hover .team-portrait--placeholder,
.team-card:focus-within .team-portrait--placeholder { filter: grayscale(0%); }
.team-card:hover .team-portrait--placeholder::after,
.team-card:focus-within .team-portrait--placeholder::after { filter: grayscale(0%); }
.team-portrait--jt { background: linear-gradient(135deg, #2a3aa0 0%, #0C35F4 50%, #5b78ff 100%); }
.team-portrait--er { background: linear-gradient(135deg, #1a1f55 0%, #0C35F4 60%, #1336a0 100%); }

.team-portrait__initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-display, 'DevForces', serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.team-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--navy, #03002A);
  mix-blend-mode: multiply;
  opacity: 0.12;
  transition: opacity 600ms ease;
}
.team-card:hover .team-card__overlay,
.team-card:focus-within .team-card__overlay { opacity: 0; }

.team-card__name {
  margin: 16px 0 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text, #03002A);
  line-height: 1.3;
}
.team-card__role {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue, #0C35F4);
  margin-bottom: 4px;
}
.team-card__location {
  font-size: 13px;
  color: var(--text-muted, #5C6178);
}

.about-cta {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.about-cta .btn-primary { margin-top: 8px; }

/* Delivery commitments band (used on /how-we-deliver) — dark navy card on a light section,
   matching the why-devforces panel on the homepage. */
.commitments-band {
  background:
    radial-gradient(circle at 0% 0%, rgba(122,211,237,0.18), transparent 55%),
    linear-gradient(90deg, var(--bg-navy, #010053) 0%, var(--bg, #03002A) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 80px rgba(31, 70, 255, 0.25);
  color: var(--text);
  border-radius: 16px;
  padding: 56px 40px;
}
.commitments-band h2 { color: var(--text); }
.commitments-lede {
  margin-top: 20px;
  max-width: 760px;
}
.commitments-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.commitment-card h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.25;
}
.commitment-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
@media (max-width: 960px) {
  .commitments-band { padding: 40px 24px; }
  .commitments-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .commitments-grid { grid-template-columns: 1fr; gap: 24px; }
}

.scroll-mt-var { scroll-margin-top: var(--header-h, 80px); }

/* Responsive */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid,
  .service-grid--reverse { grid-template-columns: 1fr; gap: 32px; }
  .service-grid--reverse .service-grid__art { order: 0; }
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 100px 0 56px; }
}

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

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

  .hero-canvas {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
 * Brief 2026-10-28 — components introduced with the page restructure
 * -------------------------------------------------------------------------- */

/* Panel 2 — the two offer boxes, side by side with equal visual weight. */
.offer-grid {
  margin-top: 20px;
  align-items: stretch;
}

.offer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

  &:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    border-left-color: var(--action);
  }

  h3 {
    font-size: 1.25rem;
    margin: 0 0 12px;
  }

  p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
  }
}

/* Practical application / workflow visual, paired with its business benefit. */
.workflow-visual {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.workflow-visual__art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.workflow-visual__copy {
  h3 {
    font-size: 1.5rem;
    margin: 8px 0 14px;
  }

  p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
  }

}

/* Compact staged-delivery motif. */
.staged-delivery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);

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

  p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
  }
}

/* Areas of focus — five industries in one row, wrapping down on smaller screens. */
.sector-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;

  > article {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

    &:hover {
      transform: translateY(-4px);
      border-color: color-mix(in oklch, var(--blue) 50%, transparent);
    }

    h3 {
      font-size: 1.05rem;
      margin: 0;
    }

    p {
      color: var(--text-muted);
      font-size: 0.85rem;
      line-height: 1.5;
      margin: 0;
    }
  }

  .photo-brand.card-media {
    height: 140px;
    margin: 0;
    border-width: 0;
  }
}

@media (max-width: 1100px) {
  .sector-cards { grid-template-columns: repeat(3, 1fr); }
  .workflow-visual { grid-template-columns: 1fr; gap: 32px; }
  .staged-delivery { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .sector-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .sector-cards { grid-template-columns: 1fr; }
  .workflow-visual { padding: 24px; }
}

/* Contact form — honeypot and inline submission status. */
.form-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-captcha:not(:empty) {
  margin: 4px 0 18px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;

  &.form-status--pending,
  &.form-status--success,
  &.form-status--error {
    display: block;
  }

  &.form-status--pending {
    background: var(--action-dim);
    border: 1px solid color-mix(in oklch, var(--action) 40%, transparent);
    color: var(--text);
  }

  &.form-status--success {
    background: color-mix(in oklch, var(--blue) 22%, transparent);
    border: 1px solid color-mix(in oklch, var(--blue) 55%, transparent);
    color: var(--text);
  }

  &.form-status--error {
    background: color-mix(in oklch, #d64545 22%, transparent);
    border: 1px solid color-mix(in oklch, #d64545 55%, transparent);
    color: var(--text);
  }
}

.btn.is-complete {
  background: var(--blue);
  color: var(--text-on-blue);
  pointer-events: none;
}

/* Project geography map. */
/* OpenStreetMap raster tiles, recoloured to sit inside the dark brand palette.
   The inversion keeps coastlines legible without needing a separate tile
   provider. Attribution stays legible on its own light plate. */
.leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(1.35) contrast(0.72) saturate(0.45);
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.82);
  color: #33333c;

  a {
    color: #0C35F4;
  }
}

.leaflet-control-zoom a {
  background: #ffffff;
  color: #03002A;
  border-bottom-color: #d8d8de;

  &:hover {
    background: #f0f0f4;
    color: #03002A;
  }
}

.map-block {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 64px;

  .section-header {
    max-width: 760px;
    margin-left: 0;
  }
}

.map-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-body, system-ui, sans-serif);

  strong {
    font-size: 1rem;
    color: var(--text-on-light, #03002A);
  }

  .map-popup__note {
    font-size: 0.8rem;
    color: #4a4a55;
  }

  a {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0C35F4;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.map-pin {
  background: none;
  border: none;
}

.map-pin__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0C35F4;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(12, 53, 244, 0.25), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.map-cluster {
  background: none;
  border: none;
}

.map-cluster__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(12, 53, 244, 0.22);
  border: 1px solid rgba(12, 53, 244, 0.6);
}

.map-cluster__count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Project grid — 20 anonymised examples. */
.projects-section {
  padding: var(--section-pad) 0;
}

.project-filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.project-filters__field {
  display: flex;
  flex-direction: column;
  gap: 8px;

  label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }

  select {
    min-width: 260px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;

    &:focus {
      outline: none;
      border-color: var(--action);
      box-shadow: 0 0 0 3px color-mix(in oklch, var(--action) 15%, transparent);
    }
  }
}

.project-filters__count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

  &:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
  }

  &[hidden] {
    display: none;
  }

  .project-tile__media {
    border-bottom: 1px solid var(--border);

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

  .project-tile__body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
  }

  h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
  }

  p:last-child {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
  }
}

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-filters__field select { min-width: 0; width: 100%; }
  .project-filters__field { width: 100%; }
}

/* Our capabilities — compact anchor overview. */
.capabilities {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);

  h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  p {
    max-width: 68ch;
  }

  a {
    color: var(--action);
  }
}

.capability-nav {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;

  a {
    display: block;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);

    &:hover {
      border-color: var(--action);
      color: var(--action);
    }
  }
}

@media (max-width: 900px) {
  .capability-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .capability-nav { grid-template-columns: 1fr; }
}

/* Ways to work with us — engagement options. */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.engagement-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  h3 {
    font-size: 1.2rem;
    margin: 0;
  }

  p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .engagement-card__need {
    color: var(--text-muted);

    strong {
      color: var(--text);
    }
  }

  .engagement-card__get {
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;

    .eyebrow {
      display: block;
      margin-bottom: 6px;
    }
  }
}

@media (max-width: 1000px) {
  .engagement-grid { grid-template-columns: 1fr; }
}

/* Service section artwork. */
.service-grid__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

/* Privacy policy — DevForces-specific notes alongside the policy wording. */
.policy-factual {
  color: var(--text-muted);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 8px;
  font-size: 0.9rem;

  caption {
    text-align: left;
  }

  th, td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }

  th {
    color: var(--text);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  td {
    color: var(--text-muted);
  }
}

.policy-meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
 * Print
 * -------------------------------------------------------------------------- */
@media print {
  header, .hero-canvas, .hero-grid, .hero-vignette, .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  section {
    padding: 24px 0;
  }
}
