/* SPDM Tech theme. Loaded by _layouts/default.html, so every page uses it.
   Dark is the default. Light only applies when a visitor picks it with the header toggle,
   which sets <html data-theme="light"> (remembered in localStorage, see default.html). */

:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --surface: #11161e;
  --surface-2: #171d27;
  --line: #2a3441;
  --text: #eef1f5;
  --soft: #d7dde4;
  --muted: #a7b2bf;
  --data: #86c8ea;
  --eng: #63d3ab;
  --hot: #fde725;
  --button-hover: #ffffff;
  --tag-ai: #b4a7f5;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --line: #d3d9e0;
  --text: #10151c;
  --soft: #2c3440;
  --muted: #586372;
  --data: #1d6a96;
  --eng: #13765a;
  --hot: #440154;
  --button-hover: #2c3440;
  --tag-ai: #5b45c9;
}

/* Renders, videos and the knowledge graph were made on the dark background, so in light mode they stay
   dark "screens": every token is reset to the dark values inside these frames. */
:root[data-theme="light"] :is(.drawing-frame, .dossier-main img, .dossier-board, .panel img, .compare,
  .steps img, .heat-boards img, .cap-media, .promo-video, .model-render, .panel-board) {
  color-scheme: dark;
  --bg: #0a0d12;
  --surface: #11161e;
  --surface-2: #171d27;
  --line: #2a3441;
  --text: #eef1f5;
  --soft: #d7dde4;
  --muted: #a7b2bf;
  --data: #86c8ea;
  --eng: #63d3ab;
  --hot: #fde725;
  --button-hover: #ffffff;
  color: var(--text);
}

:root[data-theme="light"] :is(.panel-board, .cap-media, .dossier-board) { background: var(--bg); }


* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }

ul, ol { list-style: none; }

a { color: inherit; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.wrap.narrow { max-width: 880px; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------------------------------------------------------------- header and footer */

.site-head { border-bottom: 1px solid var(--line); }

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  min-height: 72px;
}

.site-head .brand { --accent: var(--hot); font-size: 20px; text-decoration: none; }

.foot-brand { --accent: var(--hot); display: inline-flex; align-items: center; gap: 10px; }

.foot-mark { flex: none; width: 22px; height: 22px; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; }

.site-nav a { display: inline-block; padding: 12px 0; color: var(--muted); font-size: 16px; text-decoration: none; }

.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--hot); }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }

.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }

.site-foot ul { display: flex; flex-wrap: wrap; gap: 0 24px; }

.site-foot a { display: inline-block; padding: 4px 0; }

.site-foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- shared elements */

.eyebrow { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: var(--button-hover); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.badge:hover { border-color: var(--muted); color: var(--text); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- content pages */

.page-body { padding: 72px 0 104px; }

.page-head { margin-bottom: 44px; }

.page-head h1,
.page-intro h1 {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.page-head .eyebrow + h1 { margin-top: 14px; }

.page-intro { max-width: 760px; margin-bottom: 52px; }

.page-intro p { margin-top: 20px; color: var(--soft); font-size: 20px; line-height: 1.5; }

.featured { width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 44px; border-radius: 10px; }

.page-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }

.page-foot h2 { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }

/* Markdown content */

.prose { color: var(--soft); }

.prose > * + * { margin-top: 1.1em; }

.prose h2 { margin-top: 2.2em; color: var(--text); font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }

.prose h3 { margin-top: 1.8em; color: var(--text); font-size: 22px; line-height: 1.3; }

.prose h4 { margin-top: 1.6em; color: var(--text); font-size: 19px; }

.prose > :first-child { margin-top: 0; }

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

.prose a { color: var(--data); text-underline-offset: 3px; }

.prose a:hover { color: var(--text); }

.prose ul { padding-left: 1.3em; list-style: disc; }

.prose ol { padding-left: 1.3em; list-style: decimal; }

.prose li + li { margin-top: 0.45em; }

.prose li::marker { color: var(--muted); }

.prose blockquote { margin: 2em 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--hot); color: var(--text); }

.prose blockquote > * + * { margin-top: 0.8em; }

.prose blockquote h2 { margin-top: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 650; line-height: 1.25; }

.prose code {
  padding: 0.12em 0.38em;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
}

.prose pre {
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
}

.prose pre code { padding: 0; background: none; font-size: inherit; }

.prose img { margin: 1.8em 0 0.6em; border-radius: 8px; }

.prose small { color: var(--muted); font-size: 15px; }

.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }

.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }

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

.prose th { color: var(--text); }

/* Contact details */

.contact-card { margin-bottom: 44px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.contact-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; }

.contact-card dt { padding-top: 2px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.contact-card dd { color: var(--text); overflow-wrap: anywhere; }

.contact-card a { color: var(--data); text-underline-offset: 3px; }

.contact-card .button { margin-top: 24px; color: var(--bg); }

/* Lists of posts and services */

.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.card img { width: 100%; height: 220px; object-fit: cover; }

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

.card h2 { font-size: 24px; line-height: 1.25; }

.card h2 a { text-decoration: none; }

.card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }

.card time { color: var(--muted); font-size: 15px; }

.card p { color: var(--soft); font-size: 17px; }

.card .badges { margin-top: 6px; }

.card-list.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-list + .card-list { margin-top: 24px; }

/* Team */

.team-head { display: flex; align-items: center; gap: 20px; }

.card img.team-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; }

.card img.team-photo.small { width: 60px; height: 60px; }

.card p.team-job { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.35; }

.team-link { align-self: flex-start; padding: 8px 0; color: var(--data); font-size: 17px; text-underline-offset: 3px; }

.team-link:hover { color: var(--text); }

/* ---------------------------------------------------------------- home page */

.block { padding: 88px 0; border-bottom: 1px solid var(--line); }

h2.title { max-width: 820px; margin-top: 10px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }

.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }

.hero h1 { margin-top: 18px; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -0.03em; }

.lead { max-width: 520px; margin-top: 24px; color: var(--soft); font-size: 21px; line-height: 1.45; }

.hero .button { margin-top: 32px; }

.dossier { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.dossier-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.dossier-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.dossier-main img { width: 100%; height: 100%; min-height: 300px; object-fit: contain; background: var(--bg); }

.dossier-text { padding: 26px 24px; }

.label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.question { margin-top: 6px; font-size: 23px; font-weight: 650; line-height: 1.22; }

.answer { margin-top: 22px; }

.answer strong { display: block; margin-top: 4px; color: var(--hot); font-size: 46px; line-height: 1; letter-spacing: -0.02em; }

.answer span { display: block; margin-top: 8px; color: var(--soft); font-size: 16px; line-height: 1.35; }

.status { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 16px; line-height: 1.4; }

.status strong { color: var(--eng); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }

.tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.tab:hover { color: var(--text); }

.tab[aria-selected="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }

.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 28px; }

.panel[hidden] { display: none; }

.panel img { width: 100%; height: 440px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }

.panel h3 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; }

.meaning { margin-top: 20px; font-size: 21px; line-height: 1.42; }

.facts { margin-top: 24px; font-size: 16px; }

.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }

.facts li span:last-child { color: var(--text); text-align: right; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }

.field { padding: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.field h3 { margin-top: 10px; font-size: 28px; line-height: 1.18; }

.field-text { margin-top: 12px; color: var(--soft); }

.trail { margin-top: 24px; }

.trail li { position: relative; padding: 8px 0 8px 24px; font-size: 17px; }

.trail li::before { content: ""; position: absolute; top: 16px; left: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.trail li::after { content: ""; position: absolute; top: 27px; bottom: -14px; left: 7px; width: 1px; background: var(--line); }

.trail li:last-child::after { display: none; }

.is-data { --accent: var(--data); }

.is-eng { --accent: var(--eng); }

.is-data .eyebrow { color: var(--data); }

.is-eng .eyebrow { color: var(--eng); }

.cta { padding: 96px 0; }

.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

.cta h2 { max-width: 780px; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- founder profile */

.profile-hero { padding: 72px 0; border-bottom: 1px solid var(--line); }

.profile-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: center; }

.profile-photo { width: 220px; height: 220px; border-radius: 12px; object-fit: cover; }

.profile-hero h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }

.profile-job { margin-top: 10px; color: var(--muted); font-size: 21px; }

.lead.profile-lead { max-width: 720px; margin-top: 20px; }

.credentials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); }

.credentials li { padding: 28px 24px 4px 0; }

.credentials li + li { padding-left: 24px; border-left: 1px solid var(--line); }

.credentials strong { display: block; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }

.credentials span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.4; }

.timeline { margin-top: 44px; }

.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); }

.timeline-when { color: var(--hot); font-size: 17px; font-weight: 650; }

.timeline h3 { font-size: 23px; line-height: 1.25; }

.timeline p { margin-top: 6px; color: var(--soft); }

.timeline a { color: var(--data); text-underline-offset: 3px; }

.team-link.profile-linkedin { display: inline-block; margin-top: 20px; }

/* ---------------------------------------------------------------- logo ideas */

.m-s, .a-s, .on-s { fill: none; }

.m-s { stroke: currentColor; }

.m-f { fill: currentColor; }

.a-s { stroke: var(--accent); }

.a-f { fill: var(--accent); }

.on-s { stroke: var(--on-accent); }

.ctx-dark { --accent: #fde725; --on-accent: #0a0d12; background: #0a0d12; color: #eef1f5; }

.ctx-light { --accent: #440154; --on-accent: #ffffff; background: #f4f5f7; color: #10151c; }

.ctx-mono { --accent: #ffffff; --on-accent: #000000; background: #000000; color: #ffffff; }

.lockup { display: inline-flex; align-items: center; gap: 0.55em; font-size: 34px; line-height: 1; white-space: nowrap; }

.lockup .mark { flex: none; width: 1.9em; height: 1.9em; }

.word b { font-weight: 750; letter-spacing: -0.01em; }

.word i { font-style: normal; font-weight: 400; opacity: 0.78; }

.w-spaced .word { font-size: 0.8em; letter-spacing: 0.16em; }

.w-spaced .word b { font-weight: 700; letter-spacing: inherit; }

.w-mono .word { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; letter-spacing: -0.02em; }

.w-lower .word b { font-weight: 800; letter-spacing: -0.03em; }

.w-stack .word { display: inline-flex; flex-direction: column; gap: 0.12em; }

.w-stack .word i { font-size: 0.72em; }

.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.logo-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.logo-stage { display: flex; align-items: center; justify-content: center; min-height: 210px; padding: 32px 20px; border-bottom: 1px solid var(--line); }

.logo-info { flex: 1; padding: 22px 26px 24px; }

.logo-info h2 { font-size: 22px; line-height: 1.25; }

.logo-info h2 span { margin-right: 6px; color: var(--muted); font-weight: 500; }

.logo-info h2 em { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--hot); color: var(--bg); font-size: 13px; font-style: normal; font-weight: 700; vertical-align: 3px; }

.logo-info p { margin-top: 8px; color: var(--soft); font-size: 17px; }

.logo-tests { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr 1fr; border-top: 1px solid var(--line); }

.logo-tests figure { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 112px; padding: 18px 8px 10px; }

.logo-tests figure + figure { border-left: 1px solid var(--line); }

.logo-tests figcaption { font-size: 13px; opacity: 0.75; }

.logo-tests .lockup { font-size: 14px; margin-top: 10px; }

.avatar { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); }

.avatar .mark { width: 32px; height: 32px; }

.avatar.large { width: 132px; height: 132px; }

.avatar.large .mark { width: 84px; height: 84px; }

.icons { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; }

.channels { margin-top: 88px; }

.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }

.channel-wide { grid-column: span 3; }

.channel > div { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }

.channel figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; }

.mock-head { align-items: center; justify-content: space-between; gap: 20px; padding: 18px 26px; }

.mock-head .lockup { font-size: 19px; }

.mock-nav { color: var(--muted); font-size: 15px; }

.mock-center { align-items: center; justify-content: center; height: 220px; }

.mock-tab { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 8px 8px 0 0; background: var(--surface-2); color: var(--text); font-size: 15px; }

.mock-card { flex-direction: column; justify-content: space-between; height: 220px; padding: 24px 26px; }

.mock-card .lockup { font-size: 20px; }

.mock-card p { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }

.mock-slide { flex-direction: column; justify-content: space-between; gap: 40px; min-height: 340px; padding: 44px 48px; }

.mock-slide p { max-width: 720px; font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

.mock-slide .lockup { align-self: flex-end; font-size: 18px; }

@media (max-width: 960px) {
  .logo-grid { grid-template-columns: minmax(0, 1fr); }
  .channel-grid { grid-template-columns: minmax(0, 1fr); }
  .channel-wide { grid-column: auto; }
}

@media (max-width: 560px) {
  .lockup { font-size: 26px; }
  .logo-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tests figure:nth-child(3) { border-left: 0; }
  .logo-tests figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mock-head { flex-wrap: wrap; }
  .mock-slide { padding: 28px 22px; }
}

/* ---------------------------------------------------------------- PCB thermal */

.is-pcb { --accent: var(--hot); }

.is-pcb .eyebrow { color: var(--hot); }

.two.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field .team-link { display: inline-block; margin-top: 16px; }

.tab[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }

.board-figure { margin: 0; }

.board-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }

.board-stack { position: relative; width: 100%; aspect-ratio: 1200 / 1181; }

.board-stack img, .panel .board-stack img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: none; object-fit: contain; }

.panel-board { max-width: 440px; margin: 0 auto; }

.key-figures-block { padding: 48px 0; }

.key-figures-block .credentials { margin-top: 0; }

.overlay-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-top: 40px; }

.compare { position: relative; aspect-ratio: 1200 / 1181; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }

.compare img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }

.compare-heat { clip-path: inset(0 0 0 var(--reveal)); -webkit-clip-path: inset(0 0 0 var(--reveal)); opacity: var(--opacity); }

.compare-line { position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 2px; margin-left: -1px; background: var(--hot); }

.hotspot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid var(--hot); border-radius: 50%; pointer-events: none; }

.hotspot span { position: absolute; top: -34px; left: 50%; padding: 3px 8px; border-radius: 4px; background: var(--bg); color: var(--hot); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; white-space: nowrap; transform: translateX(-50%); }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.range { display: block; margin-top: 22px; }

.range span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 15px; }

.range input { width: 100%; min-height: 32px; accent-color: var(--hot); }

.scale { margin-top: 26px; }

.scale-bar { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #440154, #3b528b, #21918c, #5ec962, #fde725); }

.scale-labels { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }

.steps li { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.steps img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg); }

.steps img.contain { object-fit: contain; padding: 14px; }

.steps .label { margin: 18px 20px 0; }

.steps h3 { margin: 6px 20px 0; font-size: 20px; line-height: 1.25; }

.steps p:last-child { margin: 8px 20px 22px; color: var(--soft); font-size: 16px; }

.heat-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-top: 40px; }

.heat-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.heat-boards figure { margin: 0; }

.heat-boards img { width: 100%; border-radius: 8px; }

.heat-boards figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.clock { color: var(--hot); font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1; }

.heat-values { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 24px; margin-top: 20px; font-size: 22px; }

.heat-values dt { color: var(--muted); }

.heat-side .meaning { min-height: 3em; font-size: 18px; }

.heat-side .tab { margin-top: 16px; }

.heat-curve { display: block; width: 100%; margin-top: 24px; }

.heat-curve .grid { stroke: var(--line); stroke-width: 1; }

.heat-curve text { fill: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }

.heat-curve .curve { fill: none; stroke: var(--hot); stroke-width: 2.5; }

.heat-curve .marker { fill: var(--hot); stroke: var(--bg); stroke-width: 2; }

.evidence-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }

.evidence-list li { padding: 16px 24px; border-top: 1px solid var(--line); }

.evidence-list li:first-child { border-top: 0; }

.evidence-list span { display: block; color: var(--soft); font-size: 17px; }

.evidence-list strong { display: block; margin-top: 4px; color: var(--eng); font-size: 18px; font-weight: 500; }

.promo-video { display: block; width: 100%; height: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: 10px; background: #000; }

.assumptions { margin-top: 0; }

.dossier-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.dossier-board { display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--bg); }

.dossier-main .board-stack img { min-height: 0; }

.status a { color: var(--data); white-space: nowrap; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- drawings to 3D models */

.is-drawing { --accent: var(--data); }

.is-drawing .eyebrow, .drawing-accent { color: var(--data); }

.two.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.drawings-lead { max-width: 820px; margin-top: 18px; }

.drawing-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; margin-top: 40px; }

.drawing-viewer { margin: 0; }

.drawing-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.drawing-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }

.drawing-frame img { width: 100%; height: auto; }

.drawing-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; color: var(--muted); font-size: 15px; }

.drawing-legend span { display: inline-flex; align-items: center; gap: 8px; }

.sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }

.sw-both { background: var(--text); }

.sw-source { background: var(--hot); }

.sw-model { background: var(--data); }

.credentials.stacked { grid-template-columns: minmax(0, 1fr); margin-top: 52px; }

.credentials.stacked li, .credentials.stacked li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }

.drawing-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.drawing-steps li { padding-top: 4px; }

.model-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-top: 56px; }

.model-render { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }

.code-card { overflow-x: auto; margin: 10px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 12px; line-height: 1.75; }

.code-card .c { color: var(--muted); }

.meaning.small { font-size: 17px; color: var(--soft); }

.archive { margin-top: 88px; padding-top: 72px; border-top: 1px solid var(--line); }

.archive-cards { margin-top: 36px; }

.rules { margin-top: 36px; }

.rules .badges { margin-top: 12px; }

.rules .badge { color: var(--soft); }

@media (max-width: 960px) {
  .drawing-grid, .model-grid, .two.four { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .drawing-steps { grid-template-columns: minmax(0, 1fr); }
  .credentials.stacked { margin-top: 0; }
  .archive { margin-top: 56px; padding-top: 48px; }
}

@media (max-width: 960px) {
  .two.three, .overlay-grid, .heat-grid, .evidence-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .heat-values { font-size: 19px; }
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 960px) {
  .hero { padding: 40px 0 60px; }
  .hero-grid, .panel, .two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .panel img { height: 300px; }
  .block { padding: 60px 0; }
  .field { padding: 24px 20px; }
  .cta { padding: 60px 0; }
  .card-list, .card-list.compact { grid-template-columns: minmax(0, 1fr); }
  .page-body { padding: 48px 0 72px; }
  .profile-hero { padding: 44px 0; }
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credentials li, .credentials li + li { padding: 20px 16px 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .contact-card { padding: 22px 20px; }
  .contact-card dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-card dd + dt { margin-top: 12px; }
  .card-body { padding: 22px 20px 24px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .profile-photo { width: 160px; height: 160px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 520px) {
  .dossier-main { grid-template-columns: minmax(0, 1fr); }
  .dossier-main img { height: 240px; min-height: 0; }
}

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

.drawing-facts > .label { margin-top: 52px; }

.drawing-facts .credentials.stacked { margin-top: 8px; }

.model-head { margin-top: 10px; font-size: 26px; line-height: 1.2; }

@media (max-width: 960px) {
  .drawing-facts > .label { margin-top: 0; }
}

/* ---------------------------------------------------------------- knowledge graph */

.kg { padding: 12px 8px 4px; }

.kg-svg { display: block; width: 100%; height: auto; }

.kg-edge { stroke: var(--line); stroke-width: 1.6; }

.kg-node { cursor: pointer; outline: none; }

.kg-node circle { stroke: var(--bg); stroke-width: 3; }

.kg-node text { fill: var(--soft); font: 15px -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }

.kg-node.top-Part text { fill: var(--text); font-size: 17px; font-weight: 700; }

.top-Artefact { --kg: #eef1f5; }

.top-Part { --kg: #fde725; }

.top-Feature { --kg: #86c8ea; }

.top-Characteristic { --kg: #63d3ab; }

.top-Material { --kg: #f4a259; }

.top-Specification { --kg: #b4a7f5; }

.kg-node circle { fill: var(--kg); }

.kg.has-sel .kg-node { opacity: 0.3; transition: opacity .15s; }

.kg.has-sel .kg-node.is-near { opacity: 1; }

.kg-node.is-sel circle { stroke: var(--text); stroke-width: 3; }

.kg-node:focus-visible circle { stroke: var(--hot); stroke-width: 4; }

.kg.has-sel .kg-edge { opacity: 0.35; }

.kg.has-sel .kg-edge.is-near { opacity: 1; stroke: var(--muted); stroke-width: 2.2; }

.kg-panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }

.kg-details h3 { margin-top: 4px; font-size: 21px; line-height: 1.25; }

.kg-details dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin-top: 12px; font-size: 15px; }

.kg-details dt { color: var(--muted); }

.kg-details dd { color: var(--text); }

.kg-rel { margin-top: 14px; font-size: 15px; }

.kg-rel li { padding: 3px 0; color: var(--muted); }

.kg-rel button { padding: 4px 2px; border: 0; background: none; color: var(--data); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.kg-legend ul { margin-top: 8px; font-size: 15px; }

.kg-legend li { display: flex; align-items: center; gap: 10px; padding: 3px 0; color: var(--soft); }

.kg-legend li span { margin-left: auto; color: var(--muted); }

.kg-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--kg); }

.kg-files { margin-top: 14px; color: var(--muted); font-size: 14px; }

.kg-files a { color: var(--data); text-underline-offset: 3px; }

@media (max-width: 700px) {
  .kg-panel { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}

/* knowledge graph: drawing / simulation layers */

.kg-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px 0; }

.kg-hint { color: var(--muted); font-size: 14px; }

.kg-wrap[data-mode="drawing"] .kg-hint[data-for="sim"], .kg-wrap[data-mode="sim"] .kg-hint[data-for="drawing"] { display: none; }

.kg-wrap[data-mode="drawing"] .layer-sim, .kg-wrap[data-mode="sim"] .layer-detail { display: none; }

.kg-node rect { fill: var(--kg); stroke: var(--bg); stroke-width: 3; }

.kg-node.is-sel rect { stroke: var(--text); }

.kg-node:focus-visible rect { stroke: var(--hot); stroke-width: 4; }

.kg-edge.is-long { stroke-dasharray: 4 5; opacity: 0.55; }

.kg.has-sel .kg-edge.is-long.is-near { opacity: 1; }

.top-Analysis { --kg: #ff7ab2; }

.top-AnalysisSetup { --kg: #9aa5ce; }

.top-Result { --kg: #ff6b6b; }

.top-Verification { --kg: #2ac3de; }

.top-Decision { --kg: #eef1f5; }

.kg-node.top-Decision rect { fill: var(--bg); stroke: var(--text); stroke-width: 2.5; }

.kg-dot.sq { border-radius: 2px; }

.kg-dot.top-Decision { background: transparent; box-shadow: inset 0 0 0 2px var(--text); }

.kg-impact { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); font-size: 15px; color: var(--soft); }

.kg-impact strong { color: var(--text); }

.kg-impact button { padding: 2px; border: 0; background: none; color: var(--data); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- drawing to design: video with chapters */

.video-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; margin-top: 36px; }

.video-grid .promo-video { margin-top: 0; }

.chapter-list { margin: 10px 0 0; padding: 0; list-style: none; }

.chapter-list button { display: flex; gap: 14px; width: 100%; padding: 8px 10px; border: 0; border-left: 2px solid var(--line); background: none; color: var(--soft); font: inherit; font-size: 15px; line-height: 1.35; text-align: left; cursor: pointer; }

.chapter-list button span { flex: none; width: 3em; color: var(--muted); }

.chapter-list button:hover { color: var(--text); }

.chapter-list button[aria-current="true"] { border-left-color: var(--data); color: var(--text); }

.chapter-list button[aria-current="true"] span { color: var(--data); }

.result-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; margin-top: 40px; }

.result-view { margin: 0; }

.result-view .drawing-frame img { display: block; aspect-ratio: 6 / 5; object-fit: contain; }

.result-view figcaption { padding: 12px 16px 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; line-height: 1.4; }

.result-view figcaption strong { color: var(--hot); font-weight: 600; }

.result-view .meaning { margin-top: 14px; }

@media (max-width: 960px) {
  .video-grid, .result-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------------------------------------------------------------- capabilities overview */

.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }

.cap-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.cap-card .cap-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 20px; border-bottom: 1px solid var(--line); background: var(--bg); }

.cap-card .cap-media img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* the board fills the frame's inner area instead of setting its height, so both image frames stay 16:10 */
.cap-card .board-stack { position: absolute; inset: 20px; width: auto; height: auto; aspect-ratio: auto; }

.cap-body { display: flex; flex: 1; flex-direction: column; padding: 28px 32px 32px; }

.cap-body h2 { margin-top: 10px; font-size: 30px; line-height: 1.15; }

.cap-figure { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.cap-figure strong { color: var(--accent); font-size: 30px; line-height: 1; white-space: nowrap; }

.cap-figure span { color: var(--muted); font-size: 15px; line-height: 1.35; }

.cap-body .button { align-self: flex-start; margin-top: auto; }

.cap-body .trail { margin-bottom: 28px; }

@media (max-width: 960px) {
  .cap-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cap-body { padding: 24px 20px; }
}

.cap-pair { gap: 16px; }

.cap-pair img:first-child { width: 62%; }

.cap-pair img:last-child { width: 34%; }

/* ---------------------------------------------------------------- person page: track record */

.profile-languages { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--soft); }

.profile-languages .label { margin-right: 14px; }

.record-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; margin-top: 40px; }

.pub-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }

.pub-year { color: var(--hot); font-size: 16px; font-weight: 600; }

.pub-list h3 { font-size: 19px; line-height: 1.35; }

.pub-list p { margin-top: 4px; color: var(--muted); font-size: 15px; }

.pub-tag { display: inline-block; margin-top: 10px; padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 13px; }

.pub-tag.is-dossier { --accent: var(--text); }

.pub-tag.is-ai { --accent: var(--tag-ai); }

.pub-tag + .pub-tag { margin-left: 6px; }

.record-side { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.award-list { margin-top: 10px; }

.award-list li { padding: 12px 0; border-top: 1px solid var(--line); }

.award-list li:first-child { border-top: 0; }

.award-list strong { display: block; color: var(--hot); font-size: 15px; }

.award-list span { display: block; margin-top: 2px; color: var(--soft); font-size: 15px; line-height: 1.4; }

.record-side .note { margin-top: 16px; }

@media (max-width: 960px) {
  .record-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 560px) {
  .pub-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------------------------------------------------------------- build-up phase: pilot CTA, footer note, About */

.cta-copy { max-width: 780px; }

.cta-eyebrow { color: var(--hot); }

.cta-copy h2 { margin-top: 10px; }

.cta-text { margin-top: 16px; color: var(--soft); font-size: 18px; line-height: 1.5; }

.foot-status { flex-basis: 100%; margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.foot-status a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

.stage { margin: 8px 0 56px; padding: 28px 30px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.prose .stage h2 { margin-top: 8px; }

.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 24px; }

.stage-step { padding: 16px 18px; border-top: 3px solid var(--accent); border-radius: 8px; background: var(--bg); }

.stage-step.is-done { --accent: var(--eng); }

.stage-step.is-next { --accent: var(--hot); }

.stage-step.is-later { --accent: var(--line); }

.stage-step .label { color: var(--accent); }

.stage-step.is-later .label { color: var(--muted); }

.prose .stage-step ul { margin: 8px 0 0; padding-left: 18px; font-size: 16px; }

.prose .stage .button { text-decoration: none; }

@media (max-width: 760px) {
  .stage { padding: 22px 18px; }
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
}

.impressum-head { margin: 0 0 16px; font-size: 22px; }

/* ---------------------------------------------------------------- dark / light toggle */

.site-nav { margin-left: auto; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 960px) {
  .theme-toggle { order: 1; margin-left: auto; }
  .site-nav { order: 2; width: 100%; margin-left: 0; }
}

/* capabilities overview: both cards share one row grid, so image, label, heading, text, list, key figure and
   button line up across the cards whatever their text length (subgrid; without it the cards just stretch) */
@supports (grid-template-rows: subgrid) {
  .cap-grid { row-gap: 0; }
  .cap-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  .cap-body { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-items: start; }
  .cap-body .trail { margin-bottom: 0; }
  .cap-figure { align-self: start; margin-top: 24px; }
  .cap-body .button { align-self: end; justify-self: start; margin-top: 28px; }
}

@media (max-width: 960px) {
  @supports (grid-template-rows: subgrid) {
    .cap-grid { row-gap: 24px; }
  }
}
