@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   GreenChemX — Design tokens
   Swiss-modern grid discipline + editorial typography.
   Light is the default theme; dark is a peer, not an inversion.
   ========================================================================== */

:root {
  /* --- Brand ---------------------------------------------------------- */
  --ink-900: #071319;
  --ink-800: #0b1e27;
  --ink-700: #123040;
  --ink-600: #1c4457;

  --emerald-700: #076c4d;
  --emerald-600: #0b8f66;
  --emerald-500: #12a97a;
  --emerald-400: #34d399;
  --emerald-050: #e9f7f1;

  /* Sector signal colours. Chroma is deliberately pulled back so the six read
     as one tonal family rather than a rainbow when the grid shows them all at
     once; full saturation is a hover reward, not the resting state. Dark
     enough to carry 10px tag text at AA on a light surface. */
  --sig-semi: #245c7d;
  --sig-solar: #6f541c;
  --sig-batt: #2a6049;
  --sig-chem: #1d5c59;
  --sig-adhesive: #77492c;
  --sig-composite: #414c66;

  /* --- Semantic (light) ----------------------------------------------- */
  --bg: #ffffff;
  --bg-subtle: #f5f7f8;
  --bg-sunken: #eceff1;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-inverse: var(--ink-900);

  --fg: #0a1419;
  --fg-muted: #4a5b64;
  /* #6b7c85 measured 4.33:1 on --bg-subtle — below AA for the mono eyebrows. */
  --fg-subtle: #5e6f78;
  --fg-on-inverse: #eef4f5;
  --fg-muted-on-inverse: #9fb4bc;

  /* emerald-600 gives only 4.09:1 for white button text; -700 gives 6.4:1
     both as a button fill and as link text on white. */
  --accent: var(--emerald-700);
  --accent-hover: #054e37;
  --accent-fg: #ffffff;
  --accent-quiet: var(--emerald-050);
  --accent-on-inverse: var(--emerald-400);

  --border: #dde3e6;
  --border-strong: #c2ccd1;
  --border-inverse: rgba(255, 255, 255, 0.14);

  --ring: var(--emerald-600);
  --danger: #b4322b;
  --danger-quiet: #fdf0ef;
  --success: var(--emerald-700);

  /* --- Type ----------------------------------------------------------- */
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  /* Instrument Sans, not Inter. Same foundry as the display face, so the
     pairing is a system rather than a coincidence — and it is not the font
     every other site defaults to. */
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.1rem + 0.25vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.3rem + 0.5vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.55rem + 1vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.2vw, 3.75rem);
  --step-5: clamp(3rem, 2rem + 4.2vw, 6rem);

  /* --- Space (8px base, 4px half-steps) -------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  --measure: 68ch;
  --container: 1280px;
  --container-narrow: 860px;

  /* --- Form ------------------------------------------------------------ */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(7, 19, 25, 0.06), 0 1px 1px rgba(7, 19, 25, 0.04);
  --shadow: 0 4px 16px rgba(7, 19, 25, 0.07), 0 1px 3px rgba(7, 19, 25, 0.05);
  --shadow-lg: 0 18px 48px rgba(7, 19, 25, 0.13), 0 4px 12px rgba(7, 19, 25, 0.06);

  /* --- Motion ---------------------------------------------------------- */
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  /* Expo-out. Long tail, almost no overshoot — reads composed rather than bouncy. */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);

  /* Fine film grain. Gives dark surfaces tooth so large flat fields don't read
     as flat digital black. Kept under 4% so it is felt, not seen. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.38'/%3E%3C/svg%3E");

  /* --- Layers ----------------------------------------------------------- */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 40;
  --z-nav: 60;
  --z-overlay: 80;
  --z-modal: 100;

  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #060f14;
  --bg-subtle: #0a1a22;
  --bg-sunken: #040b0f;
  --surface: #0d2028;
  --surface-raised: #123039;
  --surface-inverse: #0a1a22;

  --fg: #e9f1f3;
  --fg-muted: #a4b8c0;
  --fg-subtle: #7e949d;
  --fg-on-inverse: #e9f1f3;
  --fg-muted-on-inverse: #a4b8c0;

  --accent: var(--emerald-400);
  --accent-hover: #5ee2b1;
  --accent-fg: #04231a;
  --accent-quiet: rgba(52, 211, 153, 0.12);
  --accent-on-inverse: var(--emerald-400);

  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-inverse: rgba(255, 255, 255, 0.12);

  --ring: var(--emerald-400);
  --danger: #ff8b82;
  --danger-quiet: rgba(255, 139, 130, 0.12);
  --success: var(--emerald-400);

  /* Sector signals lifted for dark surfaces, same restrained chroma. */
  --sig-semi: #7cabc6;
  --sig-solar: #c9b183;
  --sig-batt: #82c0a1;
  --sig-chem: #74b6b1;
  --sig-adhesive: #c99e83;
  --sig-composite: #98a4bd;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

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

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.018em;
}

.display,
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h3 {
  font-size: var(--step-2);
  line-height: 1.25;
}

h4 {
  font-size: var(--step-1);
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 58ch;
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--sp-4);
}

.prose h3 {
  margin-top: var(--sp-7);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  display: grid;
  gap: var(--sp-2);
}

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

.subtle {
  color: var(--fg-subtle);
}

/* Instrument Serif italic is the accent voice — used sparingly, never decoratively. */
.emph {
  font-style: italic;
  color: var(--accent);
}

/* Section eyebrow: mono, uppercase, tracked. The "lab label" register. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.eyebrow--inverse {
  color: var(--fg-muted-on-inverse);
}

.eyebrow--inverse::before {
  background: var(--accent-on-inverse);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.section--subtle {
  background: var(--bg-subtle);
}

.section--inverse {
  background-color: var(--surface-inverse);
  background-image: var(--grain);
  color: var(--fg-on-inverse);
}

.section--inverse h2,
.section--inverse h3 {
  color: var(--fg-on-inverse);
}

.section--inverse .lede,
.section--inverse .muted,
.section--inverse .subtle,
.section--inverse figcaption,
.section--inverse p {
  color: var(--fg-muted-on-inverse);
}

.section-head {
  display: grid;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

@media (min-width: 62rem) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--sp-7);
  }
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.stack {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}

.stack--lg {
  gap: var(--sp-6);
}

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: var(--z-modal);
  padding: var(--sp-3) var(--sp-5);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 2.875rem;
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  text-align: center;
}

.btn svg {
  flex: none;
  transition: transform var(--dur) var(--ease-out);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow);
}

.btn--secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--fg);
  background: var(--bg-subtle);
}

.btn--ghost {
  background: transparent;
  color: var(--fg-muted);
  padding-inline: var(--sp-3);
}

.btn--ghost:hover {
  color: var(--fg);
}

.btn--on-inverse {
  background: transparent;
  color: var(--fg-on-inverse);
  border-color: var(--border-inverse);
}

.btn--on-inverse:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* Inline text link with an animated underline. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  padding-block: 0.15rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) var(--ease-out);
}

.link:hover {
  background-size: 100% 1px;
}

.link svg {
  transition: transform var(--dur) var(--ease-out);
}

.link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  flex: none;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--accent);
}

.brand__name {
  color: var(--fg);
}

.brand__name em {
  font-style: normal;
  color: var(--accent);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--radius);
  position: relative;
  transition: color var(--dur) var(--ease-out);
}

.nav__link:hover {
  color: var(--fg);
}

.nav__link[aria-current='page'],
.nav__link.is-current {
  color: var(--fg);
  font-weight: 600;
}

.nav__link[aria-current='page']::after,
.nav__link.is-current::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Mega menu
   Triggers are real buttons: focusable, toggleable, and announced. Hover is
   an accelerator on pointer devices, never the only way in.
   -------------------------------------------------------------------------- */

/* Panels span the header, so the items must not create a containing block. */
.nav__item {
  position: static;
}

.nav__trigger {
  gap: 0.3rem;
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__chev {
  flex: none;
  opacity: 0.7;
  transition: transform var(--dur) var(--ease-out);
}

.nav__trigger[aria-expanded='true'] {
  color: var(--fg);
}

.nav__trigger[aria-expanded='true'] .nav__chev {
  transform: rotate(180deg);
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.megamenu[hidden] {
  display: none;
}

.megamenu__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  animation: mm-in 200ms var(--ease-out) both;
}

@keyframes mm-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.megamenu__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 0 var(--sp-3) var(--sp-3);
  margin: 0;
}

.megamenu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.mm-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3);
  border-radius: var(--radius);
  transition: background-color var(--dur) var(--ease-out);
}

.mm-item:hover {
  background: var(--bg-subtle);
}

.mm-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--sector, var(--accent));
  transition: background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.mm-item:hover .mm-item__icon {
  background: var(--sector, var(--accent));
  border-color: var(--sector, var(--accent));
  color: var(--bg);
}

.mm-item__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.35;
}

.mm-item__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.45;
  margin-top: 0.15rem;
}

/* Closing column: a plain-language pointer to the full page. */
.megamenu__promo {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.megamenu__promo h3 {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.megamenu__promo p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

@media (max-width: 63.999rem) {
  /* Below the nav breakpoint the drawer carries this content instead. */
  .megamenu {
    display: none !important;
  }
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  color: var(--fg-muted);
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.icon-btn:hover {
  color: var(--fg);
  background: var(--bg-subtle);
  border-color: var(--border);
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-moon {
  display: block;
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: inline-flex;
}

@media (min-width: 64rem) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--bg);
  padding: var(--sp-5) var(--gutter) var(--sp-8);
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}

.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  margin-bottom: var(--sp-4);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.mobile-nav__link[aria-current='page'] {
  color: var(--accent);
}

.mobile-nav .btn {
  margin-top: var(--sp-5);
}

/* Drawer disclosure groups — <details> so they work without JS and are
   keyboard operable for free. */
.mobile-nav__group > summary {
  cursor: pointer;
  list-style: none;
}

.mobile-nav__group > summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__group > summary .mobile-nav__chev {
  flex: none;
  color: var(--fg-subtle);
  transition: transform var(--dur) var(--ease-out);
}

.mobile-nav__group[open] > summary {
  color: var(--accent);
  border-bottom-color: transparent;
}

.mobile-nav__group[open] > summary .mobile-nav__chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.mobile-nav__sub {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0 0 var(--sp-2) var(--sp-4);
  display: grid;
  gap: 2px;
  border-left: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mobile-nav__sub a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.875rem;
  padding: var(--sp-2) var(--sp-2);
  font-size: 0.9375rem;
  color: var(--fg-muted);
  border-radius: var(--radius);
}

.mobile-nav__sub a:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}

.mobile-nav__sub svg {
  flex: none;
  color: var(--sector, var(--accent));
}

.mobile-nav__meta {
  margin-top: var(--sp-5);
  font-size: 0.8125rem;
  color: var(--fg-subtle);
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--fg-on-inverse);
  overflow: hidden;
  isolation: isolate;
}

/* Photographic backdrop, behind the lattice. Decorative only — the headline
   carries the meaning, so it is aria-hidden with an empty alt. */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0.72;
  /* The source render carries a generator watermark near the lower-right
     corner (~91% x, ~82% y). Scaling up and pushing the image RIGHT crops
     that edge away — translating left would reveal more of it, not less.
     Once the asset is re-cropped and compressed, drop this transform. */
  transform: scale(1.22) translate(6%, 2%);
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* Dialled back from 0.85: the lattice and the molecule are the same visual
     language, and at full strength they compete instead of layering. */
  opacity: 0.3;
}

/* Vignette keeps headline contrast well above 4.5:1 over both layers. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Stops chosen against measured source luminance: the render peaks at
     L=0.74 on specular highlights, so the text side needs ~0.92 coverage to
     keep the 18px lede above 4.5:1. */
  background:
    var(--grain),
    linear-gradient(100deg, rgba(7, 19, 25, 0.97) 0%, rgba(7, 19, 25, 0.92) 40%, rgba(7, 19, 25, 0.45) 72%, rgba(7, 19, 25, 0.32) 100%),
    radial-gradient(120% 90% at 15% 30%, rgba(7, 19, 25, 0.62) 0%, rgba(7, 19, 25, 0.32) 45%, rgba(7, 19, 25, 0.5) 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Phone hero — a different composition, not the desktop one stacked.
   The boxed stats panel becomes a rule-separated editorial strip, the display
   type goes up rather than down, and the artwork is allowed to sit higher so
   it frames the headline instead of hiding behind the buttons.
   -------------------------------------------------------------------------- */
@media (max-width: 67.999rem) {
  .hero::after {
    background:
      var(--grain),
      linear-gradient(180deg, rgba(7, 19, 25, 0.88) 0%, rgba(7, 19, 25, 0.93) 42%, rgba(7, 19, 25, 0.96) 100%);
  }

  .hero__photo {
    opacity: 0.55;
    object-position: 62% 24%;
  }

  .hero__inner {
    gap: var(--sp-7);
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.1rem, 2.1rem + 6.4vw, 4.5rem);
    letter-spacing: -0.03em;
  }

  .hero__lede {
    font-size: 1.0625rem;
    max-width: 40ch;
  }

  .hero__actions {
    margin-top: var(--sp-6);
  }

  .hero__actions .btn {
    width: 100%;
  }
}

.hero__inner {
  padding-block: clamp(5rem, 4rem + 9vw, 10rem);
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 68rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--sp-9);
  }
}

.hero h1 {
  color: #fff;
  max-width: 16ch;
}

.hero h1 .emph {
  color: var(--emerald-400);
}

.hero__lede {
  color: #c6d6dc;
  font-size: var(--step-1);
  max-width: 48ch;
  margin-top: var(--sp-5);
}

.hero__actions {
  margin-top: var(--sp-7);
}

.hero .btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__aside {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  /* Was 0.55, which was fine over a flat colour. Over the photograph a
     highlight behind an 11px label drops it to ~4.1:1, so the panel has to
     carry more of the contrast itself. The blur keeps it reading as glass. */
  background: rgba(8, 21, 28, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--sp-6);
  display: grid;
  gap: var(--sp-5);
}

.hero__aside dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa8b1;
  margin-bottom: var(--sp-1);
}

.hero__aside dd {
  margin: 0;
  color: #e5eef0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.hero__aside dd strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--emerald-400);
  margin-bottom: 0.2rem;
}

/* Phone: the boxed glass panel becomes a rule-separated editorial list, and
   the figure sets inline ahead of its sentence instead of stacking above it.
   Placed after the base rules above — at equal specificity, source order
   decides, and a media query does not raise specificity. */
@media (max-width: 67.999rem) {
  .hero__aside {
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 0;
  }

  .hero__aside > div {
    padding: var(--sp-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero__aside dt {
    margin-bottom: var(--sp-2);
  }

  .hero__aside dd {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .hero__aside dd strong {
    display: inline-block;
    margin: 0 0.55rem 0 0;
    font-size: 1.9rem;
    vertical-align: baseline;
  }
}

/* ==========================================================================
   Credibility strip
   ========================================================================== */

.credstrip {
  border-block: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-block: var(--sp-5);
}

.credstrip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-7);
}

.credstrip__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  flex: none;
}

.credstrip__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.credstrip__items li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.card--link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Set as an oversized italic serif figure in the corner rather than a small
   mono tag. Costs no vertical space and reads editorial instead of utilitarian. */
.card__index {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: 0.14;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.card:hover .card__index {
  opacity: 0.3;
  color: var(--accent);
}

.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.card h3 {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

.card__list {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-2);
  display: grid;
  gap: var(--sp-2);
}

.card__list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Full-card click target without nesting interactive elements. */
.stretched::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ==========================================================================
   Industry cards — the illustrated grid
   ========================================================================== */

.industry-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.industry {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.industry:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Every figure is a drop-in slot: put a photo at the same path and it takes over. */
.industry__figure {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-sunken);
  overflow: hidden;
  color: var(--sector, var(--accent));
}

.industry__figure > .art,
.industry__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.industry:hover .industry__figure > .art,
.industry:hover .industry__figure img {
  transform: scale(1.03);
}

/* The colour is held back at rest and paid out on interaction. */
.industry__figure {
  transition: filter var(--dur-slow) var(--ease-out);
}

.industry:hover .industry__figure,
.industry:focus-within .industry__figure {
  filter: saturate(1.85);
}

/* --------------------------------------------------------------------------
   .art — SVG artwork rendered as a CSS mask.
   An <img>-loaded SVG cannot inherit currentColor, so the file supplies the
   alpha and the theme supplies the colour. Swap .art for a plain <img> and
   the same slot takes a photograph with no other changes.
   -------------------------------------------------------------------------- */
.art {
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask-image: var(--art);
  mask-image: var(--art);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.art--contain {
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* A relative url() inside a custom property resolves against the stylesheet that
   consumes it, not the element that declares it — so the paths must live here. */
.art--semiconductors {
  --art: url('../img/semiconductors.svg');
}
.art--solar {
  --art: url('../img/solar.svg');
}
.art--batteries {
  --art: url('../img/batteries.svg');
}
.art--chemicals {
  --art: url('../img/chemicals.svg');
}
.art--adhesives {
  --art: url('../img/adhesives.svg');
}
.art--composites {
  --art: url('../img/composites.svg');
}
.art--characterisation {
  --art: url('../img/characterisation.svg');
}
.art--reliability {
  --art: url('../img/reliability.svg');
}

.industry__tag {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 2;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sector, var(--accent));
  border: 1px solid var(--border);
}

.industry__body {
  padding: var(--sp-5);
  display: grid;
  align-content: start;
  gap: var(--sp-3);
}

.industry__body h3 {
  font-size: var(--step-1);
}

.industry__body p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

.industry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--fg-subtle);
  background: var(--bg-subtle);
}

/* ==========================================================================
   Split feature (art + copy)
   ========================================================================== */

.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-9);
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  color: var(--accent);
}

.split__media > .art,
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-4) var(--sp-5);
  /* A fade-to-transparent scrim leaves the top of the text over a light
     figure. Keep it fully opaque behind the text itself. */
  background: rgba(7, 19, 25, 0.92);
  color: #dbe6e9;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Process timeline
   ========================================================================== */

.process {
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 62rem) {
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}

.process__step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-6) 0;
  counter-increment: step;
}

@media (min-width: 62rem) {
  .process__step {
    padding-right: var(--sp-6);
  }
}

.process__step::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--border-inverse);
}

.process__step::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--accent-on-inverse);
  transition: width 900ms var(--ease-out);
}

.process__step.is-visible::after {
  width: 100%;
}

.process__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--accent-on-inverse);
  display: block;
  margin-bottom: var(--sp-4);
}

.process__step h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-3);
}

.process__step p {
  font-size: 0.9375rem;
  color: var(--fg-muted-on-inverse);
}

/* ==========================================================================
   Metrics
   ========================================================================== */

.metrics {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.metric {
  padding-top: var(--sp-5);
  border-top: 2px solid var(--accent);
}

.metric__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: var(--sp-2);
}

.metric__label {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Quote
   ========================================================================== */

.quote {
  display: grid;
  gap: var(--sp-5);
  max-width: 46rem;
}

.quote blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

.quote figcaption {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* Must out-specify .quote figcaption above, which would otherwise put dark
   grey on the dark inverse surface. */
.section--inverse .quote figcaption {
  color: var(--fg-muted-on-inverse);
}

.quote figcaption strong {
  color: var(--fg);
  display: block;
  font-weight: 600;
}

.section--inverse .quote figcaption strong {
  color: var(--fg-on-inverse);
}

/* ==========================================================================
   Insight / article cards
   ========================================================================== */

.article-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.article {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease-out);
}

@media (min-width: 56rem) {
  .article {
    grid-template-columns: 9rem minmax(0, 1fr) 10rem;
    align-items: baseline;
    gap: var(--sp-6);
  }
}

.article:hover {
  background: var(--bg-subtle);
}

.article__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.article h3 {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
}

.article p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  margin-top: var(--sp-2);
  max-width: 60ch;
}

.article__read {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  justify-self: start;
}

@media (min-width: 56rem) {
  .article__read {
    justify-self: end;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form {
  display: grid;
  gap: var(--sp-5);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field__label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.field__label .req {
  color: var(--danger);
  margin-left: 0.15rem;
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  line-height: 1.5;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.6875rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7c85' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-quiet);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-subtle);
}

.field__error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--danger);
  font-weight: 500;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
}

.field.has-error .field__error {
  display: flex;
}

@media (min-width: 44rem) {
  .field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5);
  }
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

legend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: var(--sp-1);
}

.checks {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 2.875rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.check:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.check input {
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}

.check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-quiet);
}

.form__status {
  display: none;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent-quiet);
  font-size: 0.9375rem;
}

.form__status.is-visible {
  display: flex;
}

.form__status svg {
  flex: none;
  color: var(--success);
  margin-top: 0.15rem;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background-color: var(--ink-900);
  background-image: var(--grain);
  color: var(--fg-on-inverse);
  position: relative;
  overflow: hidden;
}

.cta-band__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  color: var(--emerald-400);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  padding-block: var(--section-y);
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

@media (min-width: 62rem) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-8);
  }
}

.cta-band h2 {
  color: #fff;
  max-width: 20ch;
}

.cta-band p {
  color: #b9cbd2;
  margin-top: var(--sp-4);
  max-width: 52ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-8) var(--sp-6);
}

.footer__grid {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}

@media (min-width: 56rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

.footer__about p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  max-width: 34ch;
  margin-top: var(--sp-4);
}

.footer__col h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--sp-4);
}

.footer__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease-out);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--fg-subtle);
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-head {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.page-head h1 {
  max-width: 18ch;
}

.page-head .lede {
  margin-top: var(--sp-5);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: var(--sp-2);
  color: var(--border-strong);
}

/* ==========================================================================
   Detail blocks (interior long-form)
   ========================================================================== */

.detail {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 62rem) {
  .detail {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--sp-8);
  }
}

.detail:last-child {
  border-bottom: 0;
}

.detail__aside {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}

.detail__figure {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  color: var(--sector, var(--accent));
}

.detail__figure > .art,
.detail__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deliverables {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.deliverables li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--fg-muted);
  align-items: start;
}

.deliverables svg {
  color: var(--accent);
  margin-top: 0.28em;
}

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */

.accordion {
  border-top: 1px solid var(--border);
}

.accordion details {
  border-bottom: 1px solid var(--border);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.012em;
  list-style: none;
  transition: color var(--dur) var(--ease-out);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary:hover {
  color: var(--accent);
}

.accordion summary svg {
  flex: none;
  color: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

.accordion details[open] summary svg {
  transform: rotate(45deg);
}

.accordion__body {
  padding-bottom: var(--sp-5);
  color: var(--fg-muted);
  max-width: 62ch;
}

.accordion__body > * + * {
  margin-top: var(--sp-3);
}

/* ==========================================================================
   Scroll reveal — opacity + transform only, never layout properties.
   Gated on .has-js so the content is never hidden from a browser that
   cannot un-hide it again.
   ========================================================================== */

.has-js [data-reveal] {
  opacity: 0;
  /* Slight scale alongside the rise, on a long expo tail. The uniform 14px
     pop-up is the tell that reads as a scroll-animation library. */
  transform: translateY(22px) scale(0.994);
  transition: opacity 1000ms var(--ease-reveal), transform 1000ms var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

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

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-7 {
  margin-top: var(--sp-7);
}

/* ==========================================================================
   Reduced motion — honour the OS preference completely
   ========================================================================== */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .process__step::after {
    width: 100%;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .mobile-nav,
  .cta-band,
  .hero__canvas {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
