/* 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 */
  --lime:          #BEFF00;  /* lime: 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:    #BEFF00;
  --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 */
  --lime-dim:      color-mix(in oklch, var(--lime) 15%, transparent);
  --lime-glow:     color-mix(in oklch, var(--lime) 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(190, 255, 0, 0.15); /* fallback */
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--lime) 15%, transparent);
}

/* Lime is invisible on light surfaces (1.1: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(--lime);
  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 {
  background-color: var(--bg-elevated);
}

/* 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);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);

  &: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);
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

  .logo-icon {
    height: 30px;
    width: auto;
  }

  .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;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;

  a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
    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(--lime);
    }
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
  }
}

.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(--lime);
    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;

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

  .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-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(--lime);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(190, 255, 0, 0.2); /* fallback */
  box-shadow: 0 4px 16px color-mix(in oklch, var(--lime) 20%, transparent);

  &:hover, &:focus {
    box-shadow: 0 8px 28px rgba(190, 255, 0, 0.35); /* fallback */
    box-shadow: 0 8px 28px var(--lime-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(--lime);
    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;
}

.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;
  }
}

/* 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);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lime);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease-out), gap 0.2s var(--ease-out);

  &:hover {
    text-decoration: none;
    border-bottom-color: var(--lime);
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
 * 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(190, 255, 0, 0.12); /* fallback */
    background: var(--lime-dim);
    color: var(--lime);
    border: 1px solid color-mix(in oklch, var(--lime) 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(3, 1fr);
  gap: 24px;

  @container (max-width: 860px) {
    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(--lime);
    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(190, 255, 0, 0.12); /* fallback */
    background: var(--lime-dim);
    color: var(--lime);
    border: 1px solid color-mix(in oklch, var(--lime) 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(--lime);
      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(--lime);
    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(--lime);
      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(--lime);
      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(--lime);
        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(--lime);
        box-shadow: 0 0 0 3px rgba(190, 255, 0, 0.15); /* fallback */
        box-shadow: 0 0 0 3px color-mix(in oklch, var(--lime) 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(--lime);
      text-decoration: underline;
    }
  }
}

/* --------------------------------------------------------------------------
 * 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)
 * Lime is never used here: #BEFF00 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(--lime);
    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;
  }
}

/* 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);
    }
  }

  .card-link {
    color: var(--blue);

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

  .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);
}

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

  &:hover, &:focus {
    box-shadow: 0 8px 28px rgba(190, 255, 0, 0.35); /* fallback */
    box-shadow: 0 8px 28px var(--lime-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 lime 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.88) 0%, rgba(3, 0, 42, 0.78) 45%, rgba(3, 0, 42, 0.62) 100%),
      linear-gradient(to top, rgba(3, 0, 42, 0.92) 0%, rgba(3, 0, 42, 0.45) 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.lime {
    color: var(--lime);
  }
}

/* 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;

    &::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(--lime);
      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(190, 255, 0, 0.35); /* fallback */
          box-shadow: 0 0 0 3px color-mix(in oklch, var(--lime) 45%, transparent);
        }
      }
    }

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

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

/* --------------------------------------------------------------------------
 * 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;
  }

  .hero-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;
}

/* --------------------------------------------------------------------------
 * 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;
  }
}

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

  body {
    background: white;
    color: black;
  }

  section {
    padding: 24px 0;
  }
}
