/* ==========================================================================
   Taju Labs — taju-labs.com
   Plain CSS. No build step, no framework.
   Tokens follow design/Taju Labs Brand Guide (standalone).html.
   See GUIDELINES.md before editing.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted (no third-party request, no consent banner needed)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-condensed-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-condensed-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Brand ramps — fixed, mode-independent (from the brand guide) */
  --accent-100: #eef6ff;
  --accent-200: #d6ebff;
  --accent-300: #b5d9fd;
  --accent-400: #94bce3;
  --accent-500: #749dc4;
  --accent-600: #597ea3;
  --accent-700: #416180;
  --accent-800: #2c455d;
  --accent-900: #1d2d3d;

  --neutral-100: #f5f5f8;
  --neutral-200: #e7e7ea;
  --neutral-300: #d4d4d7;
  --neutral-400: #b7b7ba;
  --neutral-500: #98989b;
  --neutral-600: #7a7a7d;
  --neutral-700: #5d5d60;
  --neutral-800: #424244;
  --neutral-900: #2b2b2d;

  /* Semantic roles — light theme */
  --bg: #f2f2f3;
  --bg-alt: #e9e9ea;
  --surface: #f7f7f8;
  --ink: #1d1f20;
  --ink-muted: #5d5d60;
  /* neutral-600 (#7a7a7d) only reaches 3.5–4.0:1 on the light grounds, so the
     faint role is darkened to clear 4.5:1 on every surface we actually use. */
  --ink-faint: #66666a;
  --accent: var(--accent-700);
  --accent-hover: var(--accent-900);
  --on-accent: #f7f7f8;
  --hairline: #d4d4d7;
  --hairline-strong: #b7b7ba;
  --mark: var(--accent-700);
  --field: var(--accent-900);   /* inverted section ground */
  --grid-line: rgba(29, 45, 61, 0.07);

  --shadow-sm: 0 1px 2px rgba(43, 43, 45, 0.14);
  --shadow-md: 0 3px 10px rgba(43, 43, 45, 0.16);
  --shadow-lg: 0 12px 32px rgba(43, 43, 45, 0.18);

  /* Type */
  --font-heading: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Space ramp (brand guide) + composed section rhythm */
  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;
  --space-12: 41px;
  --space-16: 55px;
  --space-24: 82px;

  --section-y: clamp(56px, 8vw, 104px);
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 1140px;
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #12181f;
    --bg-alt: #172029;
    --surface: #1b2531;
    --ink: #e9ecef;
    --ink-muted: #a8b6c4;
    --ink-faint: #8598a9;
    --accent: var(--accent-300);
    --accent-hover: var(--accent-200);
    --on-accent: #101820;
    --hairline: #2e3d4c;
    --hairline-strong: #445a70;
    --mark: var(--accent-300);
    --field: #0d1319;
    --grid-line: rgba(148, 188, 227, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 3px 12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #12181f;
  --bg-alt: #172029;
  --surface: #1b2531;
  --ink: #e9ecef;
  --ink-muted: #a8b6c4;
  --ink-faint: #8598a9;
  --accent: var(--accent-300);
  --accent-hover: var(--accent-200);
  --on-accent: #101820;
  --hairline: #2e3d4c;
  --hairline-strong: #445a70;
  --mark: var(--accent-300);
  --field: #0d1319;
  --grid-line: rgba(148, 188, 227, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 3px 12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.6);
}

:root[data-theme='light'] {
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(65, 97, 128, 0.18);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

/* Long compound words — routine in German — must never be clipped or pushed
   past the viewport on a narrow screen. `break-word` only ever engages when a
   word genuinely cannot fit, so headings that already fit are untouched;
   `hyphens: auto` gives the German pages a proper hyphen instead of a hard cut. */
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
:lang(de) h1,
:lang(de) h2,
:lang(de) h3,
:lang(de) h4 { hyphens: auto; }

h1 { font-size: clamp(2.4rem, 6.2vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--accent-hover); }

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

ul { margin: 0; padding: 0; }

hr {
  height: 1px;
  border: 0;
  background: var(--hairline);
  margin: var(--space-8) 0;
}

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

::selection {
  background: rgba(89, 128, 166, 0.28);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent-900);
  color: #f7f7f8;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: #f7f7f8;
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */

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

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

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

.section--field {
  background: var(--field);
  --ink: #eef2f6;
  --ink-muted: #a8b6c4;
  --ink-faint: #8598a9;
  --hairline: rgba(148, 188, 227, 0.22);
  --hairline-strong: rgba(148, 188, 227, 0.4);
  --accent: var(--accent-300);
  --accent-hover: var(--accent-200);
  --surface: rgba(255, 255, 255, 0.03);
  --grid-line: rgba(148, 188, 227, 0.07);
  color: #eef2f6;
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 62ch;
}

.text-muted { color: var(--ink-muted); }
.small { font-size: 0.86rem; line-height: 1.5; }

/* small, named utilities — kept few on purpose */
.mt-16 { margin-top: var(--space-16); }
.mb-16 { margin-bottom: var(--space-16); }
.is-layered { position: relative; }

.subsection {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--hairline);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-6);
}

.grid { display: grid; gap: var(--space-6); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1060px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   5. Blueprint frame — the core brand motif
   -------------------------------------------------------------------------- */

.blueprint {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--surface);
}

.blueprint > .corner {
  position: absolute;
  width: 11px;
  height: 11px;
  color: var(--hairline-strong);
  pointer-events: none;
}
.blueprint > .corner::before,
.blueprint > .corner::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.corner.tl { top: -6px; left: -6px; }
.corner.tr { top: -6px; right: -6px; }
.corner.bl { bottom: -6px; left: -6px; }
.corner.br { bottom: -6px; right: -6px; }

/* Faint hexagonal lattice behind the hero and the field sections.
   Rendered as an inline <svg><pattern>, not a CSS background image, so the
   stroke can follow `currentColor` and re-theme with everything else. The SVG
   carries no viewBox on purpose: user units then equal CSS pixels, so the
   cells stay 72 × 41.57px whatever size the container is. */
.gridfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--grid-line);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 100%);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn--ghost { color: var(--ink); }
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--hairline); }

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; color: var(--mark); flex: none; }
.brand__word { padding-top: 2px; }

.nav { display: none; }

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
  .nav a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    padding-block: 6px;
    border-bottom: 1px solid transparent;
  }
  .nav a:hover,
  .nav a.is-active {
    color: var(--ink);
    border-bottom-color: var(--accent);
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--hairline); }
.icon-btn svg { width: 21px; height: 21px; }

.nav-toggle { display: inline-flex; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Theme toggle: show the icon for the mode you would switch to */
.theme-icon-dark { display: none; }
:root[data-theme='dark'] .theme-icon-light { display: none; }
:root[data-theme='dark'] .theme-icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-icon-light { display: none; }
  :root:not([data-theme='light']) .theme-icon-dark { display: block; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  display: block;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-4) 0 var(--space-8);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 900px) { .mobile-nav { display: none; } }

.mobile-nav a {
  display: block;
  padding: 13px var(--gutter);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(52px, 9vw, 104px) clamp(48px, 8vw, 92px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
/* Grid items default to min-width:auto, so one unbreakable phrase can force the
   whole column wider than the viewport. */
.hero__inner > * { min-width: 0; }
@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: var(--space-24);
  }
}

.hero h1 { margin-bottom: var(--space-6); }
/* "brain and body" reads as one unit, so it is held together — except below
   ~400px, where holding it together would push the headline off the screen. */
.hero h1 .accent { color: var(--accent); white-space: nowrap; }
@media (max-width: 400px) {
  .hero h1 .accent { white-space: normal; }
}

.hero__lede {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 54ch;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--hairline);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-8);
}
.status-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Brand lockup panel beside the headline */
.hero__lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 30px);
  min-height: clamp(230px, 27vw, 330px);
  padding: clamp(34px, 5vw, 60px) var(--space-8);
  background: var(--surface);
}
.hero__lockup-mark {
  width: clamp(80px, 12vw, 128px);
  height: auto;
  color: var(--accent);
}
.hero__lockup-word {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.05rem);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Marquee of capability keywords
   -------------------------------------------------------------------------- */

.keyline {
  border-block: 1px solid var(--hairline);
  background: var(--bg-alt);
  padding-block: var(--space-6);
}
.keyline__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  list-style: none;
  justify-content: center;
}
.keyline__list li {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.keyline__list li:not(:last-child)::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  display: block;
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.card h3 { margin: 0; font-size: 1.32rem; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.97rem; }

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: auto;
  padding-top: var(--space-4);
}
.taglist li {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Numbered process steps */
.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-8);
  border-top: 1px solid var(--hairline);
}
.steps li::before {
  content: '0' counter(step);
  position: absolute;
  top: var(--space-3);
  left: 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.steps h3 { margin: var(--space-4) 0 var(--space-2); font-size: 1.22rem; }
.steps p { margin: 0; color: var(--ink-muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   10b. Technology-readiness figure
   Built from real HTML rather than a fixed-ratio SVG so it reflows on a
   phone, stays legible at any size and can be read by a screen reader.
   -------------------------------------------------------------------------- */

.trl {
  padding: var(--space-12) var(--space-8) var(--space-8);
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.trl__flow {
  list-style: none;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
}
@media (min-width: 780px) {
  .trl__flow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 52px;
  }
}

.trl__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--hairline-strong);
  text-align: center;
}

/* chevron in the gap: points down when stacked, right when side by side */
.trl__stage + .trl__stage::before {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-top: 1.5px solid var(--hairline-strong);
  border-right: 1.5px solid var(--hairline-strong);
  left: 50%;
  top: -26px;
  transform: translateX(-50%) rotate(135deg);
}
@media (min-width: 780px) {
  .trl__stage + .trl__stage::before {
    left: -32px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
}

.trl__stage h3 {
  margin: 0;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.trl__stage p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.trl__level {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.trl__stage--own {
  border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.trl__stage--own h3 {
  color: var(--accent);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}
.trl__stage--own p { color: var(--ink); }

.trl figcaption {
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   11. Founders
   -------------------------------------------------------------------------- */

.founders {
  display: grid;
  gap: var(--space-12);
}
@media (min-width: 900px) {
  .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.founder {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

/* The portraits are cut-outs with a transparent background, so they sit on a
   plain photographic plate that stays light in both themes — a dark ground
   would expose the matting fringe around hair and shoulders. Kept free of any
   pattern: a grid behind a head reads as squared exercise paper. */
.founder__portrait {
  position: relative;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: linear-gradient(180deg, #dce3ea 0%, #eef1f4 62%, #f4f6f8 100%);
}
.founder__portrait img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 350;
  object-fit: contain;
  object-position: center bottom;
}

.founder__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.founder__role {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.founder h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.founder__title {
  color: var(--ink-muted);
  font-size: 0.96rem;
  margin: 0;
}
.founder__bio {
  margin: var(--space-2) 0 0;
  font-size: 0.99rem;
  color: var(--ink-muted);
}
.founder__facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  font-size: 0.93rem;
  color: var(--ink-muted);
}
.founder__facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.founder__facts li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: 9px;
  background: var(--accent);
  flex: none;
}
.founder__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
}
.founder__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 500;
}
.founder__links a:hover { text-decoration: underline; }
.founder__links svg { width: 15px; height: 15px; flex: none; }

/* --------------------------------------------------------------------------
   12. Affiliations
   -------------------------------------------------------------------------- */

.logo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
}
@media (min-width: 640px) { .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .logo-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.logo-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: var(--space-6) var(--space-4);
  border: 1px solid var(--hairline);
  /* Third-party marks keep their own colours on a constant light plate so
     they stay legible and unaltered in both themes. */
  background: #ffffff;
}
/* Third-party marks must never be distorted. The plate is a flex container,
   so an image whose laid-out width exceeds the cell would otherwise be
   shrunk horizontally while its height stayed pinned at max-height —
   the wide marks (BIFOLD, BU) squashed, the tall ones stretched.
   Capping both axes and letting the other one stay `auto` keeps the
   intrinsic ratio; `object-fit: contain` guarantees it even if a future
   layout change constrains the box again. */
.logo-strip img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  flex: 0 1 auto;
  min-width: 0;
  opacity: 0.86;
  transition: opacity 0.2s var(--ease);
}
.logo-strip li:hover img { opacity: 1; }

/* --------------------------------------------------------------------------
   12b. Touch targets
   -------------------------------------------------------------------------- */

/* WCAG 2.5.8 asks for a 24x24 CSS-px minimum on standalone links. The footer
   navigation, the founder links and the addresses on the legal pages sit at
   16-23px because of their type size. The overlay below enlarges the tappable
   area only — it occupies no space, paints nothing, and applies on touch
   pointers, so the layout is byte-for-byte identical to before. */
@media (pointer: coarse) {
  .footer-col ul a,
  .footer-bottom ul a,
  .founder__links a,
  .legal address a,
  .legal dd a {
    position: relative;
  }
  .footer-col ul a::after,
  .footer-bottom ul a::after,
  .founder__links a::after,
  .legal address a::after,
  .legal dd a::after {
    content: '';
    position: absolute;
    inset: -5px -3px;
  }
}

.disclaimer {
  margin-top: var(--space-8);
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 74ch;
}

/* --------------------------------------------------------------------------
   13. Facts / numbers
   -------------------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  list-style: none;
}
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.facts li {
  background: var(--surface);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.facts b {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.facts span {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-24); }
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  word-break: break-word;
}
.contact-mail:hover { color: var(--accent); }
.contact-mail svg { width: 0.72em; height: 0.72em; color: var(--accent); flex: none; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: var(--space-4);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn svg { width: 14px; height: 14px; }

.contact-card {
  padding: var(--space-8);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 0.97rem;
}
.contact-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-4);
}
.contact-card address {
  font-style: normal;
  color: var(--ink-muted);
  line-height: 1.65;
}
.contact-card address strong,
.legal address strong {
  color: var(--ink);
  font-weight: 600;
}
.contact-card__note {
  margin: var(--space-6) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
}
.contact-note {
  margin-top: var(--space-8);
  max-width: 54ch;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--field);
  color: #eef2f6;
  padding-block: var(--space-16) var(--space-8);
  --ink-muted: #a8b6c4;
  --hairline: rgba(148, 188, 227, 0.2);
}
.site-footer a { color: #cfe0ee; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }

.footer-top {
  display: grid;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 780px) {
  .footer-top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
}

.footer-brand .brand { color: #f2f2f3; margin-right: 0; }
.footer-brand .brand__mark { color: #94bce3; }
.footer-brand p {
  margin-top: var(--space-4);
  color: var(--ink-muted);
  font-size: 0.94rem;
  max-width: 42ch;
}

.footer-col h2 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8598a9;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: grid; gap: var(--space-3); font-size: 0.95rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  font-size: 0.86rem;
  color: var(--ink-muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom--bare { padding-top: 0; }
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  list-style: none;
}

/* --------------------------------------------------------------------------
   16. Legal pages
   -------------------------------------------------------------------------- */

.legal {
  padding-block: var(--section-y);
}
.legal__inner { max-width: 78ch; }
.legal h1 { margin-bottom: var(--space-8); }
.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
}
.legal h3 { font-size: 1.15rem; margin-top: var(--space-8); }
.legal p,
.legal li { font-size: 0.99rem; color: var(--ink-muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.legal address { font-style: normal; line-height: 1.75; color: var(--ink-muted); }
.legal dl {
  display: grid;
  gap: var(--space-3) var(--space-8);
  margin: 0 0 var(--space-6);
}
@media (min-width: 640px) {
  .legal dl { grid-template-columns: minmax(150px, auto) minmax(0, 1fr); }
}
.legal dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}
.legal dd { margin: 0; color: var(--ink-muted); }
.legal__stand { margin-top: var(--space-16); }

.todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border: 1px dashed #b8860b;
  background: rgba(184, 134, 11, 0.1);
  color: #8a6508;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
:root[data-theme='dark'] .todo,
.section--field .todo { color: #f0c869; border-color: #b08b2e; background: rgba(240, 200, 105, 0.12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .todo {
    color: #f0c869;
    border-color: #b08b2e;
    background: rgba(240, 200, 105, 0.12);
  }
}

.notice {
  padding: var(--space-6);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-12);
}
.notice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */

.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100dvh - var(--header-h) - 220px);
  padding-block: var(--section-y);
}
.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   18. Motion — opt-in reveal, fully disabled under reduced-motion
   -------------------------------------------------------------------------- */

/* `reveal-ready` is set by the inline head script only when the browser can
   actually run the reveal, and is armed with a failsafe timer that removes it
   again if main.js never gets a chance to take over. Content is therefore
   never left permanently invisible by a script failure. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .mobile-nav, .btn-row, .gridfield, .copy-btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-footer { background: #fff; color: #000; }
  .section, .legal { padding-block: 12pt; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; }
  .card, .founder, .blueprint { break-inside: avoid; border-color: #999; }
}
