/* MissionLogic site styles (v2). Palette and type per CLAUDE.md §5. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("../fonts/exo2-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette 13, Graphite and Ice Blue (selected 9 Oct 2026). Tokens are named by role, not colour. */
  --primary: #23282E;        /* Graphite: headings, dark backgrounds, primary buttons */
  --accent: #7CC6E0;         /* Ice Blue: accents, icons, rules; text and buttons on graphite (7.8:1) */
  --accent-strong: #2A7891;  /* Deeper ice blue for focus rings and outlines on light backgrounds */
  --link: #2A7891;           /* Link and label text on white (5.0:1) and #F5F7FA (4.7:1) */
  --grey: #A8ADB3;           /* Neutral: borders, the grey half of the ring */
  --ink: #20252B;            /* Body text on light backgrounds */
  --ink-muted: #4B535C;
  --paper: #FFFFFF;
  --paper-alt: #F5F7FA;
  --line: color-mix(in srgb, var(--grey) 40%, #FFFFFF);  /* Grey at 40% on white (#DCDEE1): dividers and card borders */
  --on-primary: #FFFFFF;
  --on-primary-muted: #CDD3D9;
  --wm1: #23282E;            /* wordmark "Mission" on light backgrounds */
  --wm2: #A8ADB3;            /* wordmark "Logic" */

  --font-head: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --header-h: 76px;
  --header-h-compact: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media screen and (min-width: 1600px) {
  :root { --container: 1360px; }   /* use more of wide screens */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: 0.003em;
}
h1 { font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 500; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
abbr[title] { text-decoration: none; }
figure, blockquote { margin: 0; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* Inline logo symbols (#ml-logo, #ml-icon). Colours come from the palette tokens. */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: block; height: auto; }
.lg-wm1 { fill: var(--l-wm1); }
.lg-wm2 { fill: var(--wm2); }
.lg-acc { stroke: var(--accent); }
.lg-gry { stroke: var(--grey); }
.lg-core { fill: var(--l-core); }
.lg-dot { fill: var(--accent); }
.logo-colour { --l-wm1: var(--wm1); --l-core: var(--wm1); }
.logo-reversed { --l-wm1: #FFFFFF; --l-core: #FFFFFF; }

/* Line icons (#i-*) */
.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--accent);
}
.icon-tile-outline { background: transparent; color: var(--link); border: 1px solid color-mix(in srgb, var(--accent-strong) 45%, transparent); }
.icon-tile-sky { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

.diamond {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--on-primary); outline-color: var(--accent); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75em 1.5em;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--primary); }
.btn-small { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.9375rem; }
.btn-sky { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.btn-sky:hover { background: transparent; color: var(--on-primary); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--on-primary) 45%, transparent); color: var(--on-primary); }
.btn-ghost:hover { background: color-mix(in srgb, var(--on-primary) 10%, transparent); color: var(--on-primary); border-color: var(--on-primary); }

/* ---------- Header ---------- */
/* Solid white by default (and without JS). With JS, it starts transparent over the navy hero
   and turns solid once the page scrolls (site.js adds .is-scrolled). */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  transition: min-height .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px color-mix(in srgb, var(--primary) 8%, transparent); }
.site-header.is-scrolled .header-inner { min-height: var(--header-h-compact); }

.brand { display: block; padding: 10px 0; flex-shrink: 0; }
.brand .logo { width: 168px; }

.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 26px;
}
.site-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a:not(.btn).is-active { color: var(--primary); }
.nav-contact { margin-left: 6px; }

/* Transparent state over the hero (JS only, menu closed) */
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) {
  background: transparent;
  border-bottom-color: transparent;   /* no line between the transparent header and the hero */
}
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .logo { --l-wm1: #FFFFFF; --l-core: #FFFFFF; }
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .site-nav a:not(.btn) { color: var(--on-primary); }
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .nav-contact .btn { background: var(--accent); border-color: var(--accent); color: var(--primary); }
/* Single Contact button in place of the nav (privacy page on the coming-soon branch) */
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .header-contact { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .nav-toggle { background: transparent; color: var(--on-primary); border-color: color-mix(in srgb, var(--on-primary) 35%, transparent); }
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .nav-toggle-bars,
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .nav-toggle-bars::before,
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) .nav-toggle-bars::after { background: var(--on-primary); }
.js .site-header.on-hero:not(.is-scrolled):not(.menu-open) :focus-visible { outline-color: var(--accent); }

.nav-toggle { display: none; }

@media screen and (max-width: 1000px) {
  /* Menu collapses only when JS is running; without JS the links stay visible. */
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--primary);
    font: 500 0.9375rem/1 var(--font-body);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 8%, transparent);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 8px var(--gutter) 20px;
  }
  .js .site-nav a:not(.btn) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  /* Same ice-blue underline as the full-width menu, drawn over the row divider */
  .js .site-nav a:not(.btn)::after { bottom: -1px; }
  .js .nav-contact { margin: 16px 0 0; }
  .js .nav-contact .btn { display: flex; }

  /* No-JS fallback: header is static and links wrap below the logo. */
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .hero { padding-top: 0; }
  html:not(.js) .page-hero { padding-top: clamp(40px, 7vw, 80px); }
}
@media screen and (max-width: 700px) {
  /* Phones: hamburger only. The label stays for screen readers. */
  .js .nav-toggle { justify-content: center; width: 44px; height: 44px; padding: 0; gap: 0; }
  .nav-toggle-label {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
}
@media screen and (max-width: 400px) {
  .brand .logo { width: 136px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Fill the browser window; the content sits centred within it. */
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 50% 60% at 84% 16%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 55% at 4% 104%, color-mix(in srgb, var(--accent-strong) 42%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 35% at 62% 62%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 55%, #000) 0%, var(--primary) 48%, color-mix(in srgb, var(--primary) 80%, var(--accent)) 100%);
  color: var(--on-primary);
}
.hero::after,
.page-hero::after {
  /* Perspective "horizon" grid along the bottom of the hero */
  content: "";
  position: absolute;
  left: -50%; right: -50%; bottom: 0;
  height: 36%;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center bottom;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  pointer-events: none;
}
/* Animated background option (assets/js/hero-bg.js). The CSS grid layers step aside while it runs. */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Blended hero image (no frame). Sits above the animated background and fades into the gradient. */
.hero-blend {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero-blend img { display: block; width: 100%; height: 100%; }
.hero-blend[data-blend="earth"] {
  right: -4%; top: 0; width: 62%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 62% 56%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 62% at 62% 56%, #000 25%, transparent 75%);
  mix-blend-mode: screen; opacity: 0.75;
}
.hero-blend[data-blend="earth"] img { object-fit: cover; object-position: 55% 60%; filter: saturate(0.55) brightness(1.1); }
.hero-blend[data-blend="horizon"] {
  right: -6%; bottom: 0; width: 70%; height: 92%;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 65% 70%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 75% at 65% 70%, #000 30%, transparent 78%);
  mix-blend-mode: screen; opacity: 0.85;
}
.hero-blend[data-blend="horizon"] img { object-fit: cover; object-position: 50% 40%; filter: saturate(0.6); }
.hero-blend[data-blend="fibre"] {
  right: 0; top: 6%; width: 60%; height: 88%;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 60% 50%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 60% 50%, #000 25%, transparent 75%);
  mix-blend-mode: screen; opacity: 0.8;
}
.hero-blend[data-blend="fibre"] img { object-fit: cover; transform: scaleX(-1); filter: saturate(0.5) hue-rotate(-12deg); }
.hero-blend[data-blend="ring"] { right: -5%; top: 50%; width: min(56vh, 520px); aspect-ratio: 1; transform: translateY(-46%); }
.hero-blend[data-blend="blueprint"] {
  right: 4%; top: 16%; width: 42%; aspect-ratio: 400 / 340;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 50%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 50%, transparent 80%);
  opacity: 0.8;
}
.hero-blend[data-blend="globe"] {
  right: 2%; top: 50%; width: min(80vh, 640px); aspect-ratio: 1; transform: translateY(-44%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
}
@media screen and (max-width: 960px) {
  /* On narrow screens the text fills the width, so keep the blend faint and low. */
  .hero-blend { opacity: 0.45 !important; }
  .hero-blend[data-blend="earth"], .hero-blend[data-blend="horizon"], .hero-blend[data-blend="fibre"] { width: 100%; right: 0; }
  .hero-blend[data-blend="blueprint"] { width: 80%; top: auto; bottom: 4%; right: -10%; }
}
/* Review option: hide the framed photo so the background shows in full */
.hero.no-photo .hero-visual { visibility: hidden; }
/* A very faint version behind the Contact section */
#contact { position: relative; isolation: isolate; overflow: hidden; }
#contact .contact-canvas { z-index: -1; }
.hero.has-bg-anim::after,
.hero.has-bg-anim .hero-grid-lines,
.page-hero.has-bg-anim::after,
.page-hero.has-bg-anim .hero-grid-lines { display: none; }
.hero-bg-pause {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--on-primary) 30%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 60%, transparent);
  color: var(--on-primary);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity .2s ease, border-color .2s ease;
}
.hero-bg-pause:hover, .hero-bg-pause:focus-visible { opacity: 1; border-color: var(--accent); }
.hero-bg-pause[hidden] { display: none; }
.hero-bg-pause span {
  /* Two bars for "pause"; a triangle for "play" */
  width: 10px; height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.hero-bg-pause.is-paused span {
  width: 0; height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 13%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero > .container { align-self: center; }
@media screen and (max-width: 960px) {
  /* Narrow screens: the Earth photo sits behind the text, so a graphite scrim keeps it at AA contrast */
  .hero-inner { position: relative; z-index: 0; }
  .hero-inner::before {
    content: "";
    position: absolute;
    inset: 4% -12% 4% -12%;
    z-index: -1;
    background: radial-gradient(ellipse 75% 55% at 40% 50%, color-mix(in srgb, var(--primary) 78%, transparent) 0%, color-mix(in srgb, var(--primary) 62%, transparent) 60%, transparent 100%);
    pointer-events: none;
  }
}
.hero-inner {
  /* One column: the framed photo that used to fill the right-hand column was removed, so the text uses the width */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.hero-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-label > .diamond { display: none; }
@media screen and (min-width: 961px) { .hero-label { font-size: 0.875rem; } }
.hero-label .sep {
  /* The middle dot stays in the text for copy and paste; it is drawn as a small diamond. */
  display: inline-block;
  width: 5px; height: 5px;
  font-size: 0;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
  transform: rotate(45deg);
}
@media screen and (max-width: 560px) {
  /* Phones: stack the two halves rather than leave the diamond dangling at a line end */
  .hero-label { flex-direction: column; gap: 4px; }
  .hero-label:not(.holding-label) { align-items: flex-start; }
  .hero-label .sep { display: none; }
}
.hero h1 { color: var(--on-primary); margin-bottom: 0.45em; }
.hero h1 .accent { color: var(--accent); }

/* Typed headline word: site.js types it out letter by letter with a cursor.
   The full word stays in the visually hidden copy for screen readers, and shows as-is without JS. */
.typed { display: inline-block; white-space: nowrap; text-align: left; user-select: none; }  /* copy picks up the hidden full word once, not twice */
.typed.is-typing::after,
.typed.is-done::after {
  content: "";
  display: inline-block;
  width: 0.07em;
  height: 0.82em;
  margin-left: 0.06em;
  vertical-align: -0.04em;
  background: currentColor;
  animation: caret-blink 1s steps(1) infinite;
}
.typed.is-typing::after { animation: none; }            /* solid while typing, like a real cursor */
.typed.is-typing.is-paused::after { animation: caret-blink 0.7s steps(1) infinite; }  /* blinks during the mid-word pause */
.typed.is-done::after { animation: caret-blink 1s steps(1) 4 forwards; }  /* blink a few times, then rest */
@media (prefers-reduced-motion: no-preference) {
  /* Avoid a flash of the full word before typing starts */
  .js .typed:not(.is-typing):not(.is-done) { color: transparent; }
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.hero-lead {
  max-width: 46em;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--on-primary-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero :focus-visible { outline-color: var(--accent); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
  padding: 10px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.hero-frame::before, .hero-frame::after {
  /* Corner ticks, like registration marks */
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--accent);
  border-style: solid;
}
.hero-frame::before { top: -6px; left: -6px; border-width: 2px 0 0 2px; }
.hero-frame::after { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; }
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: 6px;
  filter: grayscale(25%) brightness(0.92);
}
.hero-ring {
  position: absolute;
  right: -14%; bottom: -16%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(14px, 1.8vw, 24px) solid transparent;
  border-left-color: color-mix(in srgb, var(--accent) 55%, transparent);
  border-right-color: color-mix(in srgb, var(--grey) 45%, transparent);
  transform: rotate(-20deg);
  pointer-events: none;
}

/* ---------- Credentials strip ---------- */
.cred-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cred-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.cred-lead {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.cred-card {
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.cred-card p { margin: 0; }
.cred-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--primary);
}
.cred-post {
  margin-left: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.cred-post abbr { text-decoration: none; }
.cred-extra {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .lead { margin-top: 0.4em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
h2 .accent { color: var(--link); }
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
}
.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: clamp(44px, 5vw, 72px);
  margin-bottom: 22px;
  font-size: 1.375rem;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-outline { background: transparent; color: var(--link); border: 1px solid color-mix(in srgb, var(--accent-strong) 55%, transparent); }

.section-navy { background: var(--primary); color: var(--on-primary); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--on-primary); }
.section-navy .lead { color: var(--on-primary-muted); }
.section-navy .eyebrow { color: var(--accent); }
.section-navy a { color: var(--on-primary); }
.section-navy a:hover { color: var(--accent); }
.section-navy :focus-visible { outline-color: var(--accent); }

/* Who we are */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.split .section-head { margin-bottom: 0; }
.split h2 { margin-bottom: 0; }
.split-body p:not(.lead) { color: var(--ink-muted); }

.mission {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}
.mission::after {
  /* Faint ring motif */
  content: "";
  position: absolute;
  right: -60px; top: 50%;
  width: 260px; height: 260px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 26px solid transparent;
  border-left-color: color-mix(in srgb, var(--accent) 18%, transparent);
  border-right-color: color-mix(in srgb, var(--grey) 14%, transparent);
  z-index: -1;
}
.mission figcaption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mission figcaption::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.mission blockquote p {
  max-width: 30em;
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}

/* Cards */
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease, opacity .6s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 8%, transparent);
}
.card h3, .card h4 { margin-bottom: 0.45em; font-weight: 600; }
.card p { color: var(--ink-muted); font-size: 1rem; }
.card-accent { border-top: 3px solid var(--accent); }
.card-outline { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--accent-strong) 45%, transparent); }
.card-outline:hover { background: var(--paper); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.value { padding: 24px 24px 8px 0; }
.value + .value { padding-left: 24px; border-left: 1px solid var(--line); }
.value h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.5em;
  font-size: 1.25rem;
  font-weight: 600;
}
.value h4 .diamond { width: 8px; height: 8px; }
.value p { color: var(--ink-muted); font-size: 1rem; }

/* Lifecycle */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 8px 0 0;
  padding: 26px 0 0;
  border-top: 2px solid var(--accent);
}
.lifecycle li {
  position: relative;
  padding: 0 12px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--primary);
}
.lifecycle li::before {
  /* Diamond node sitting on the line */
  content: "";
  position: absolute;
  top: -34px; left: 0;
  width: 12px; height: 12px;
  background: var(--paper-alt);
  border: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: background-color .2s ease;
}
.lifecycle li:hover::before { background: var(--accent); }
.step-no {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link);
  letter-spacing: 0.06em;
}

/* Engage: comparison table */
.compare-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
}
.compare th, .compare td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.compare thead th, .compare thead td { border-top: 0; padding-top: 26px; padding-bottom: 24px; }
.compare thead th { background: var(--primary); color: var(--on-primary); font-weight: 400; }
.compare thead th + th { border-left: 1px solid color-mix(in srgb, var(--on-primary) 15%, transparent); }
.compare thead td { width: 20%; background: var(--primary); }
.compare-name {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
}
.compare-summary { display: block; color: var(--on-primary-muted); font-size: 0.9375rem; line-height: 1.5; }
.compare tbody th {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  background: var(--paper-alt);
}
.compare tbody td { color: var(--ink-muted); }
.compare tbody td + td { border-left: 1px solid var(--line); }
.compare tbody tr:hover td { background: color-mix(in srgb, var(--accent) 6%, var(--paper)); }

/* Sectors (navy with photo) */
.section-photo { position: relative; isolation: isolate; overflow: hidden; }
.section-photo-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 100%;
  z-index: -2;
  filter: grayscale(30%);
}
.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, transparent) 0%, color-mix(in srgb, var(--primary) 80%, transparent) 55%, color-mix(in srgb, var(--primary) 64%, transparent) 100%);
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.sector {
  grid-column: span 3;
  padding: 26px 26px 28px;
  background: color-mix(in srgb, var(--primary) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s ease, opacity .6s var(--ease);
}
.sector:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 65%, transparent); }
.sector-lead { grid-column: span 2; border-top: 3px solid var(--accent); }
.sector h3 { font-size: 1.3125rem; margin-bottom: 0.4em; }
.sector p { color: var(--on-primary-muted); font-size: 1rem; }

/* Leadership */
/* Bio on the left, credentials panel on the right (no headshot) */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.profile-creds {
  padding: 28px 30px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
}
.profile-creds .credentials-title { margin-top: 0; }
.profile-body h2 { margin-bottom: 0.15em; }
.postnominals {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.profile-role { color: var(--link); font-weight: 500; margin-bottom: 1.2em; }
.profile-body > p:not([class]) { max-width: 46em; }
.credentials-title {
  margin-top: 30px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.credentials { display: flex; flex-wrap: wrap; gap: 8px; }
.credentials li {
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
}
.credentials li span { font-weight: 400; color: var(--ink-muted); }

/* Contact */
.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px 48px;
  align-items: end;
}
.contact-top .section-head { margin-bottom: 0; }
.contact-top h2 { margin-bottom: 0; }
.contact-email-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  min-width: 0;
}
.contact-rule {
  flex: 1 1 60px;
  max-width: 120px;
  height: 2px;
  background: var(--accent);
}
.contact-email {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 0.9rem + 2vw, 2.375rem);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.section-navy a.contact-email { color: var(--on-primary); }
.section-navy a.contact-email:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-meta {
  margin: 22px 0 0;
  text-align: right;
  color: var(--on-primary-muted);
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.join-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 36px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 70%, transparent);
}
.join-card .eyebrow { margin-bottom: 8px; }
.join-card h3 { margin: 0 0 10px; color: var(--on-primary); }
.join-card p:last-child { margin: 0; max-width: 62ch; color: var(--on-primary-muted); }
@media (max-width: 860px) {
  .join-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .join-card { padding: 24px 20px; }
}

/* Image bands */
.image-band {
  position: relative;
  height: clamp(180px, 24vw, 320px);
  overflow: hidden;
  background: var(--primary);
}
.image-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
}
.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--primary) 60%, transparent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: var(--on-primary-muted);
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px 56px;
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: 36px;
}
/* Two-column footer (no Sections column): used by the privacy page on the coming-soon branch */
.footer-grid.no-sections { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.footer-logo { width: 150px; margin-bottom: 8px; }
.footer-tagline { margin: 0 0 18px; color: var(--accent); font-family: var(--font-head); font-weight: 500; }
.footer-brand .acknowledgement {
  max-width: 36em;
  margin: 0;
  color: var(--on-primary-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.footer-heading {
  margin: 4px 0 12px;
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col li { margin-bottom: 6px; overflow-wrap: anywhere; }
.site-footer a { color: var(--on-primary-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-primary); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent); }
.footer-linkedin { display: inline-flex; align-items: center; gap: 10px; }
.footer-linkedin .social-icon { width: 20px; height: 20px; }
.footer-base {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px 24px;
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid color-mix(in srgb, var(--on-primary) 10%, transparent);
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--on-primary-muted) 85%, transparent);
}
.footer-base p { margin: 0; }
.footer-abn { text-align: center; }
.footer-rights { text-align: right; }
.site-version { font-variant-numeric: tabular-nums; }

/* LinkedIn icon */
.social-icon { display: block; width: 26px; height: 26px; }
.li-box { fill: currentColor; }
.li-glyph { fill: var(--primary); }

/* ---------- Scroll reveal (site.js adds .is-visible). Only hidden when JS runs and motion is allowed. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(14px);
  }
  .js .reveal {
    transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .25s ease, box-shadow .25s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .sector:hover { transform: none; }
}

/* ---------- Privacy page ---------- */
.page-hero {
  /* Same background as the home page hero */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 60% at 84% 16%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 55% at 4% 104%, color-mix(in srgb, var(--accent-strong) 42%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 35% at 62% 62%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 55%, #000) 0%, var(--primary) 48%, color-mix(in srgb, var(--primary) 80%, var(--accent)) 100%);
  color: var(--on-primary);
  padding: calc(var(--header-h) + clamp(28px, 4vw, 52px)) 0 clamp(32px, 4.5vw, 60px);
}
.page-hero h1 { color: var(--on-primary); margin-bottom: 0.2em; }  /* same size and weight as the home page headline */
.page-hero p { color: var(--accent); font-weight: 500; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 0.4em; }
.policy-meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .footer-grid, .footer-grid.no-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media screen and (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 16 / 9; }
  .hero-ring { width: 34%; right: -8%; }
  .split, .contact-top { grid-template-columns: 1fr; }
  .card-grid-3 .card { padding: 24px 20px 26px; }
  .mission::after { right: -150px; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector, .sector-lead { grid-column: auto; }
  .sector-grid > :last-child { grid-column: 1 / -1; }
  .profile { grid-template-columns: 1fr; }
}
@media screen and (max-width: 700px) {
  .card-grid-2, .card-grid-3, .card-grid-4, .sector-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 20px 0 6px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .profile { grid-template-columns: 1fr; }
  .contact-meta { text-align: left; }
  .contact-rule { display: none; }
  .footer-base { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-abn, .footer-rights { text-align: center; }
  .cred-post { display: block; margin: 2px 0 0; }
  .hero-actions .btn { flex: 1 1 auto; }

  /* Lifecycle becomes a vertical list */
  .lifecycle { grid-template-columns: 1fr; row-gap: 0; border-top: 0; padding: 0 0 0 30px; border-left: 2px solid var(--accent); margin-left: 6px; }
  .lifecycle li { padding: 0 0 18px; }
  .lifecycle li::before { top: 4px; left: -38px; }
  .step-no { display: inline; margin-right: 8px; }

  /* Comparison table stacks: one block per row, each value labelled */
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead, .compare thead tr { display: block; }
  .compare thead td { display: none; }
  .compare thead th { padding: 18px; }
  .compare thead th + th { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--on-primary) 15%, transparent); }
  .compare tbody tr { border-top: 1px solid var(--line); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody th { border-top: 0; padding: 14px 18px 10px; }
  .compare tbody td { border-top: 0; padding: 4px 18px 12px; }
  .compare tbody td + td { border-left: 0; }
  .compare tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 600;
  }
}
@media screen and (max-width: 420px) {
  .footer-grid, .footer-grid.no-sections { grid-template-columns: 1fr; }
}
