@font-face {
  /* Fallback only: used where Arial Black is not installed (Android, Linux). */
  font-family: "Archivo Black";
  src: url("fonts/archivo-black-latin-400-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #070a0d;
  --paper-2: #0d141a;
  --ink: #f6f7f4;
  --muted: #a5b0b8;
  --line: rgba(255,255,255,.12);
  --red: #df1119;
  --blue: #4ab5f7;
  --blue-soft: #79c9f7;
  --gold: #d1a553;
  --card: rgba(255,255,255,.045);
  --shadow: 0 34px 100px rgba(0,0,0,.34);
  --radius: 24px;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Black", "Archivo Black", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f6f7f5;
  --paper-2: #eceff0;
  --ink: #0b1015;
  --muted: #5f6870;
  --line: rgba(11, 16, 21, 0.14);
  --red: #c90912;
  --blue: #239ee9;
  --blue-soft: #63bdf3;
  --gold: #b88a3b;
  --card: rgba(255,255,255,.74);
  --shadow: 0 28px 80px rgba(15, 28, 40, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 20% -10%, color-mix(in srgb, var(--red) 25%, transparent), transparent 64%),
    radial-gradient(1100px 680px at 62% 0%, color-mix(in srgb, var(--blue) 23%, transparent), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

::selection { background: var(--blue); color: #001018; }

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

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: -100px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(130%);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  font-size: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 13px;
  height: 17px;
  border-radius: 50% 50% 46% 46%;
  background: #fff;
  box-shadow:
    0 0 7px rgba(255,255,255,.95),
    0 0 20px color-mix(in srgb, var(--blue) 75%, transparent),
    0 0 34px color-mix(in srgb, var(--blue) 36%, transparent);
}

[data-theme="light"] .brand-mark::before {
  box-shadow:
    0 0 0 1px rgba(11,16,21,.28),
    0 0 12px color-mix(in srgb, var(--blue) 70%, transparent),
    0 0 26px color-mix(in srgb, var(--blue) 34%, transparent);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 25px;
  width: 7px;
  height: 5px;
  border-radius: 1px 1px 3px 3px;
  background: var(--gold);
  box-shadow: 0 -20px 0 -3px var(--ink);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 23px;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg,
.menu-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.menu-button { display: none; }

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  padding: 84px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero > :first-child { container-type: inline-size; }

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  /* ~8em is the width of "DELIBERATELY." in Arial Black */
  font-size: clamp(34px, 12cqi, 108px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.hero h1 .line { display: block; }
.hero h1 .line:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 82%, transparent);
}
.hero h1 .act {
  background: linear-gradient(90deg, var(--red), var(--blue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 700px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-copy strong { color: var(--ink); font-weight: 650; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

.hero-side {
  align-self: center;
  display: grid;
  gap: 22px;
}

.brand-poster {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--red) 93%, #000) 0%,
      color-mix(in srgb, var(--blue) 76%, #fff) 38%,
      #07131b 66%,
      color-mix(in srgb, #fff 76%, #5b5757) 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
  container-type: inline-size;
}

.brand-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}

.brand-cable {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 5px;
  height: 145px;
  background: #030506;
  transform: translateX(-50%);
}

.brand-bulb {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 136px;
  width: 62px;
  height: 78px;
  transform: translateX(-50%);
  border-radius: 48% 48% 52% 52%;
  background: #fff;
  box-shadow:
    0 0 14px #fff,
    0 0 48px rgba(255,255,255,.9),
    0 0 95px rgba(82,184,247,.72);
}

.brand-bulb::before {
  content: "";
  position: absolute;
  left: 17px;
  top: -24px;
  width: 28px;
  height: 27px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(#050607, #17191a);
  border-bottom: 3px solid var(--gold);
}

.brand-wordmark {
  position: absolute;
  z-index: 4;
  left: 7%;
  right: 7%;
  bottom: 64px;
  color: #fff;
  text-align: center;
  text-shadow: 0 12px 24px rgba(0,0,0,.28);
}

.brand-wordmark small {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .56em;
  transform: translateX(.28em);
}

.brand-wordmark strong {
  display: block;
  font-family: var(--display);
  /* "CATALYST" is ~5.3em wide; keep it inside the poster at every width */
  font-size: clamp(38px, 16cqi, 78px);
  line-height: .8;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.brand-wordmark em {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-side p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.meta-strip > div {
  position: relative;
  padding: 24px 22px 24px 0;
  border-right: 1px solid var(--line);
}

.meta-strip > div:not(:first-child) { padding-left: 22px; }
.meta-strip > div:last-child { border-right: 0; }

.meta-strip strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.meta-strip span {
  color: var(--muted);
  font-size: 12px;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.section-heading > p {
  margin: 0;
  justify-self: end;
  max-width: 500px;
  color: var(--muted);
}

.philosophy {
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -180px;
  top: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent), transparent 66%);
  pointer-events: none;
}

.manifesto {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.manifesto-line {
  container-type: inline-size;
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.manifesto-line span {
  display: block;
  font-size: min(1em, 12.5cqi);
}
.manifesto-line .blue { color: var(--blue); }
.manifesto-line .red { color: var(--red); }

.manifesto-copy {
  max-width: 670px;
  color: var(--muted);
  font-size: 19px;
}
.manifesto-copy p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.15;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 20px;
}

.feature-card {
  min-height: 520px;
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 34%),
    radial-gradient(circle at 12% 88%, color-mix(in srgb, var(--red) 16%, transparent), transparent 32%),
    linear-gradient(145deg, var(--card), transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.feature-card::after {
  content: attr(data-number);
  position: absolute;
  right: 26px;
  top: 20px;
  font-family: var(--display);
  font-size: 88px;
  color: color-mix(in srgb, var(--ink) 6%, transparent);
  pointer-events: none;
}

.feature-card h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .97;
}

.feature-card p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-meta,
.card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.mini-card,
.article-card,
.project-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.mini-card:has(a):hover,
.article-card:has(a):hover,
.project-card:has(a):hover,
.note-card:has(a):hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}

.mini-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mini-card h3 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.05;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.article-card .card-number {
  margin-left: auto;
  color: var(--blue);
  font-family: var(--display);
  font-size: 26px;
}

.article-card h3 {
  margin: auto 0 18px;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.025em;
}

.article-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.soon {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.note-card {
  padding: 34px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 7%, transparent), transparent 45%),
    var(--card);
}

.note-card blockquote {
  margin: 0 0 38px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.note-card time {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cta {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 40px;
  align-items: end;
  padding: 112px 0;
}

.cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.cta h2 span {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 78%, transparent);
}

.cta-side { color: var(--muted); }
.cta-side .text-link { color: var(--ink); margin-top: 16px; }

.site-footer {
  padding: 40px 0 54px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}

.footer-small {
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-legal a:hover,
.footer-links a:hover { color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Newsletter */
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.newsletter h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.newsletter h2 span { color: var(--blue); }

.newsletter > div > p:last-child {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--muted);
}

.newsletter-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.newsletter-row:focus-within { border-color: color-mix(in srgb, var(--blue) 60%, var(--line)); }

.newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.newsletter-row input::placeholder { color: var(--muted); }

.newsletter-row button {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 55%, var(--blue)));
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
}
.newsletter-row button:hover { filter: brightness(1.08); }

.form-note {
  margin: 14px 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.form-note a { border-bottom: 1px solid currentColor; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 70px;
  align-items: start;
  padding: 70px 0 110px;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 680px;
}

.field { display: grid; gap: 8px; }
.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--blue) 60%, var(--line));
}
/* A clear ring for keyboard focus. */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.sh-in:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent);
}

.contact-form button {
  justify-self: start;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 55%, var(--blue)));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.contact-form button:hover { filter: brightness(1.08); }
.contact-form .form-note { margin-left: 0; }

.contact-aside .text-link { font-size: 18px; }
.contact-aside .text-link + .kicker { margin-top: 32px; }

/* Tools */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 70px 0 110px;
}
.home-tools { padding: 0; }
/* A lone last card takes the whole row instead of leaving a gap. */
@media (min-width: 901px) {
  .home-tools > :last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 0; }
}

.tool-card {
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 40%),
    var(--card);
  transition: transform .25s ease, border-color .25s ease;
}
.tool-card:has(a):hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}
.tool-card.is-soon { background: var(--card); }
.tool-card :is(h2, h3) {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}
.tool-card p { margin: 0 0 24px; color: var(--muted); }

.page-hero.tool-hero h1 { font-size: clamp(38px, 12.5cqi, 120px); }
/* German compounds are long: titles break at a soft hyphen, the longest ones
   are set smaller, and no title is ever wider than the screen. */
h1:lang(de), h2:lang(de), h3:lang(de) { overflow-wrap: break-word; }
@media (max-width: 480px) {
  h2:lang(de), h3:lang(de) { hyphens: auto; }
}
.page-hero.tool-hero h1.hero-long { font-size: clamp(28px, 8.4cqi, 88px); }
/* The same page in each language, next to the theme button. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.lang-switch > * {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--muted);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current] { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--ink); }
.mobile-panel .lang-switch { display: none; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  gap: 60px;
  align-items: start;
  padding: 60px 0 90px;
}

.tool-panel { display: grid; gap: 22px; min-width: 0; }

.tool-aside {
  position: sticky;
  top: 110px;
  color: var(--muted);
  font-size: 15px;
}
.tool-aside p { margin: 0 0 14px; }
.inline-link { color: var(--ink); border-bottom: 1px solid currentColor; }
.privacy-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
}
.optional {
  margin-left: 6px;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
}

.statement-list {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.statement {
  margin: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color .2s ease;
}
.statement.is-missing { border-color: color-mix(in srgb, var(--red) 70%, var(--line)); }
.statement legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.25;
}
.statement-number {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .04em;
}

.scale {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.scale-option { position: relative; }
.scale-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.scale-option span {
  display: block;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.scale-option:hover span { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); color: var(--ink); }
.scale-option input:checked + span {
  border-color: transparent;
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 45%, var(--blue)));
  color: #fff;
}
.scale-option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.tool-actions .form-note,
.tool-panel > .form-note { margin: 0; }
.tool-panel > .form-note { margin-top: -8px; }

.button-primary,
.button-secondary,
.button-ghost {
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.button-primary {
  border: 0;
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 55%, var(--blue)));
  color: #fff;
}
.button-primary:hover { filter: brightness(1.08); }
.button-secondary {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.button-secondary:hover { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }
.button-ghost {
  justify-self: start;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--blue);
}

/* Diagnostic result */
.tool-result {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
  outline: none;
}
.result-head h2 {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.result-head h2 span { color: var(--blue); }

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 40px;
  align-items: start;
}
.result-detail { display: grid; gap: 20px; }
.result-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 40%),
    var(--card);
}
.result-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.result-card > p { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.result-label {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.moves { margin: 0 0 26px; padding-left: 22px; }
.moves li { margin-bottom: 8px; }
.result-card blockquote {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
}

.result-bars { display: grid; gap: 14px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.bar-row.is-top .bar-label { color: var(--ink); }
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--muted) 60%, transparent);
}
.bar-row.is-top .bar-fill { background: linear-gradient(90deg, var(--red), var(--blue-soft)); }
.result-bars .text-link { justify-self: start; margin-top: 12px; }
.result-actions { margin-top: 40px; }

/* 5 Whys */
.why-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: why;
}
.why label { color: var(--blue); }
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.worksheet-grid .wide { grid-column: 1 / -1; }
.tips { margin: 0 0 18px; padding-left: 18px; }
.tips li { margin-bottom: 12px; }
.tips strong { color: var(--ink); }


/* Shown by tool-kit.js when the browser cannot save. */
.tk-save-warning {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  width: min(calc(100% - 28px), 640px);
  padding: 14px 16px 14px 20px;
  transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line));
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  font-size: 14px;
}
.tk-save-warning p { margin: 0; }
.tk-save-warning button {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

/* Defect logs (Damage Control, Incomplete Control) */
.dl-box {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.dl-box fieldset { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dl-box legend { float: left; width: 100%; margin: 0; padding: 0; }
.dl-box legend + * { clear: both; }
.dl-box .kicker { margin: 0; }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.dl-grid .dl-wide { grid-column: 1 / -1; }
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select option { background: var(--paper); color: var(--ink); }
.dl-paste summary { cursor: pointer; list-style-position: inside; }
.dl-paste .form-note { margin: 0; font-size: 13px; }
.dl-paste .form-note strong { color: var(--ink); }
.dl-paste textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.dl-log-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.dl-log-head .form-note { margin: 0; }
.dl-empty { margin: 0; color: var(--muted); }
.dl-empty .button-ghost { padding: 0; font-size: inherit; }

.dl-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.dl-table th,
.dl-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.dl-table thead th {
  position: sticky;
  top: 0;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dl-table tbody tr:last-child > * { border-bottom: 0; }
.dl-table .num { text-align: right; }
.dl-table .dl-note { max-width: 220px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.dl-table td.is-late { color: var(--ink); font-weight: 800; }
.dl-remove {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
}
.dl-remove:hover { border-color: var(--red); color: var(--ink); }

.dl-results {
  padding: 70px 0 60px;
  border-top: 1px solid var(--line);
  outline: none;
}
.dl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dl-stat {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.dl-stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dl-stat-value {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.dl-stat-note { color: var(--muted); font-size: 13px; }
.dl-warning {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
}
.dl-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.dl-result-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.dl-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.dl-panel .result-label { margin: 0; }
.dl-panel-note { margin: 0; color: var(--muted); font-size: 14px; }
.dl-bars { display: grid; gap: 12px; }
.dl-bar .bar-label { gap: 12px; margin-bottom: 6px; }
.dl-bar-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.dl-bar-value { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.dl-bar-value strong { color: var(--ink); }
.dl-cum { font-weight: 600; }
.dl-rank {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}
.dl-tag {
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--blue) 55%, var(--line));
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dl-bar.is-top .bar-label { color: var(--ink); }
.dl-bar.is-top .bar-fill { background: var(--blue); }
.dl-matrix th[scope="row"] { color: var(--ink); font-weight: 700; }
.dl-matrix thead th { min-width: 64px; white-space: normal; vertical-align: bottom; }
.dl-matrix th, .dl-matrix td { padding: 9px 10px; }
.dl-matrix td.is-heat { background: color-mix(in srgb, var(--blue) var(--heat), transparent); color: var(--ink); font-weight: 700; }
.dl-matrix td.is-max { outline: 2px solid var(--blue); outline-offset: -2px; }
.dl-panel .dl-table-wrap { max-height: none; }
.dl-focus h3 span { color: var(--blue); }
.dl-focus > p { margin: 0 0 18px; color: var(--muted); }
.dl-focus > .dl-focus-lede { color: var(--ink); font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
.dl-focus > .result-label { margin-bottom: 10px; color: var(--blue); }
.dl-focus .dl-warning { margin: 22px 0 0; color: var(--ink); }
.dl-results .result-actions a { display: inline-block; }

.dl-check { padding: 60px 0 100px; border-top: 1px solid var(--line); }
.dl-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: check;
}
.dl-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .15s ease;
}
.dl-check-item:hover { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }
.dl-check-item input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
.dl-check-item:has(input:checked) { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.dl-check-item:has(input:checked) span { color: var(--muted); }
.dl-check-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dl-score { margin: 0; font-size: 18px; }
.dl-score strong { color: var(--blue); font-family: var(--display); font-weight: 400; }

@media (max-width: 900px) {
  .dl-result-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-checklist { grid-template-columns: minmax(0, 1fr); }
  .dl-bar .bar-label { flex-direction: column; gap: 2px; }
  .dl-stat { padding: 16px; }
  .dl-stat-value { font-size: 22px; }
}


/* Sigma & Control Chart */
.sc-calc { padding: 60px 0 40px; }
.sc-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.sc-calc .dl-box { align-content: start; }
.sc-calc .kicker { margin: 0; }
.dl-grid.sc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sc-hint { grid-column: 1 / -1; margin: 0; }
.sc-note { margin: 0; font-size: 13px; }
.sc-reference .dl-table-wrap { max-height: none; }
.sc-reference tr.is-current > * { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.sc-reference th[scope="row"] { color: var(--ink); font-weight: 700; }
.sc-reference th[scope="row"] .dl-tag { margin-left: 10px; }
.dl-focus > .sc-verdict { color: var(--ink); font-size: 17px; }
.sc-section-kicker { margin: 0; }
.sc-chart-setup { border-top: 1px solid var(--line); }

.sc-results > * + * { margin-top: 20px; }
.sc-results .dl-stats { margin-bottom: 0; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.sc-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.sc-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--blue); }
.sc-key-center { border-top-color: var(--muted); }
.sc-key-limit { border-top: 2px dashed var(--muted); }
.sc-key-worse,
.sc-key-better { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--red); }
.sc-key-better { background: transparent; border: 2.5px solid var(--blue); }
.sc-chart-wrap { position: relative; min-width: 0; }
.sc-chart { display: block; max-width: 100%; height: auto; overflow: visible; }
.sc-grid { stroke: var(--line); stroke-width: 1; }
.sc-axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.sc-callout { fill: var(--ink); font-weight: 800; }
.sc-center { stroke: var(--muted); stroke-width: 1.5; }
.sc-limit { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .85; }
.sc-divider { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.sc-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sc-dot { fill: var(--blue); stroke: var(--paper); stroke-width: 2; }
.sc-dot.is-worse { fill: var(--red); }
.sc-dot.is-better { fill: var(--paper); stroke: var(--blue); stroke-width: 2.5; }
.sc-cross { stroke: var(--muted); stroke-width: 1; pointer-events: none; }
.sc-hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.sc-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 2px;
  min-width: 150px;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.sc-tip-value { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.sc-tip-date { color: var(--ink); font-weight: 700; }
.sc-tip-signal { color: var(--ink); font-weight: 700; }
.sc-tip-note { font-style: italic; }
.sc-signals { margin: 0 0 8px; padding-left: 20px; }
.sc-signals li { margin-bottom: 10px; color: var(--muted); }
.sc-signals strong { color: var(--ink); }
.sc-signal-note { font-style: italic; }
.sc-results .dl-table tr.is-signal > * { color: var(--ink); font-weight: 700; }
.sc-results .dl-table-wrap { max-height: 420px; }

@media (max-width: 900px) {
  .sc-calc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .dl-grid.sc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-chart-panel { padding-inline: 10px; }
  .sc-chart-panel > :not(.sc-chart-wrap) { margin-inline: 10px; }
}


/* Six Sigma in the Warehouse (DMAIC course) */
.dm-nav {
  display: grid;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dm-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-steps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color .2s ease;
}
.dm-steps a:hover,
.dm-steps a.is-current { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.dm-step-letter {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
}
.dm-steps a.is-done .dm-step-letter { background: var(--blue); color: #001018; }
.dm-steps a.is-done .dm-step-name::after { content: " ✓"; color: var(--blue); }
.dm-step-name { font-weight: 800; }
.dm-progress { display: grid; gap: 8px; }
.dm-progress .form-note { margin: 0; }
.dm-progress .bar-fill { width: 0; background: linear-gradient(90deg, var(--red), var(--blue-soft)); transition: width .3s ease; }
.dm-more { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 14px; }

.dm-case { max-width: 860px; padding: 60px 0 20px; }
.dm-case h2,
.dm-module-head h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}
.dm-case p:last-child { margin: 0; color: var(--muted); font-size: 19px; }

.dm-module { display: grid; gap: 24px; padding: 70px 0 20px; scroll-margin-top: 80px; }
.dm-module + .dm-module { border-top: 1px solid var(--line); }
.dm-module-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; }
.dm-letter {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 130px);
  line-height: .8;
  background: linear-gradient(135deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dm-module-head .kicker { margin: 0 0 10px; }
.dm-goal { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; }
.dm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dm-col { display: grid; gap: 14px; }
.dm-col .result-label { margin: 8px 0 0; }
.dm-ideas,
.dm-case-rows { display: grid; gap: 14px; margin: 0; }
.dm-ideas dt,
.dm-case-rows dt { font-weight: 800; }
.dm-ideas dd,
.dm-case-rows dd { margin: 2px 0 0; color: var(--muted); }
.dm-mistakes { margin: 0; }
.dm-case-card { display: grid; gap: 14px; }
.dm-case-card > .result-label { margin: 0; color: var(--blue); font-size: 11px; }
.dm-case-card .dm-case-rows dd { color: var(--ink); }
.dm-tools { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dm-tools span:not([aria-hidden]) { color: var(--muted); font-size: 14px; }
.dm-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dm-quiz { gap: 20px; }
.dm-question { margin: 0; padding: 0; border: 0; min-width: 0; }
.dm-question legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.dm-options { clear: both; display: grid; gap: 8px; }
.dm-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.dm-option:hover { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }
.dm-option input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--blue); }
.dm-option.is-right { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.dm-option.is-wrong { border-color: color-mix(in srgb, var(--red) 70%, var(--line)); }
.dm-feedback { margin: 10px 0 0; padding-left: 14px; border-left: 2px solid var(--line); font-size: 15px; }
.dm-feedback.is-right { border-left-color: var(--blue); }
.dm-feedback.is-wrong { border-left-color: var(--red); color: var(--muted); }
.dm-score { margin: 0; }

.dm-extra { padding: 80px 0 20px; scroll-margin-top: 80px; }
.dm-extra .section-heading { margin-bottom: 30px; }
.dm-wastes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dm-waste { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.dm-waste-letter { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--blue); }
.dm-waste h3 { margin: 10px 0 6px; font-size: 17px; }
.dm-waste p { margin: 0; color: var(--muted); font-size: 15px; }
.dm-glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 30px; margin: 0; }
.dm-glossary dt { font-weight: 800; }
.dm-glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.dm-charter { padding-bottom: 110px; }
.dm-charter-grid { padding-top: 0; border-top: 0; }

@media (max-width: 1100px) {
  .dm-wastes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dm-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .dm-steps a { justify-content: center; padding: 10px 6px; }
  .dm-step-name { display: none; }
}
@media (max-width: 620px) {
  .dm-module-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dm-wastes,
  .dm-glossary { grid-template-columns: minmax(0, 1fr); }
}


/* Shift Handover */
.sh-help { margin: 0; font-size: 13px; }
.dl-grid.sh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-rows,
.sh-issues { display: grid; gap: 10px; }
.sh-in {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.sh-in:focus { outline: none; border-color: color-mix(in srgb, var(--blue) 60%, var(--line)); }
select.sh-in { cursor: pointer; }
.sh-in option { background: var(--paper); color: var(--ink); }
.sh-metric { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 8px; align-items: center; }
.sh-issue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.sh-issue > input[type="checkbox"] { width: 20px; height: 20px; margin: 10px 0 0; accent-color: var(--blue); }
.sh-issue.is-done { opacity: .6; }
.sh-issue.is-done .sh-issue-text { text-decoration: line-through; }
.sh-issue-main { display: grid; gap: 8px; min-width: 0; }
.sh-issue-meta { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.sh-issue-meta .dl-tag { justify-self: start; }
.dl-tag.is-warn { border-color: color-mix(in srgb, var(--red) 70%, var(--line)); color: var(--ink); }
.sh-empty { margin: 0; }

.sh-output { padding: 70px 0 60px; border-top: 1px solid var(--line); outline: none; }
.sh-output-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 20px; align-items: start; }
.sh-sheet { display: grid; gap: 22px; }
.sh-sheet h3 { margin: 4px 0 4px; }
.sh-sheet-head .result-label { margin: 0; }
.sh-people { margin: 0; color: var(--muted); }
.sh-block { display: grid; gap: 10px; }
.sh-block .result-label { margin: 0; }
.sh-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.sh-numbers > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.sh-numbers dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.sh-numbers dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sh-numbers dd.sh-note { font-size: 12px; font-weight: 500; color: var(--muted); }
.sh-open { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sh-open li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start; }
.sh-open li.sh-none { display: block; color: var(--muted); }
.sh-open strong { display: block; }
.sh-issue-info { color: var(--muted); font-size: 14px; }
.sh-priority {
  padding: 3px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.sh-priority.is-high { border-color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent); }
.sh-priority.is-medium { border-color: color-mix(in srgb, var(--blue) 60%, var(--line)); }
.sh-lines { margin: 0; padding-left: 18px; }
.sh-lines li { margin-bottom: 4px; }
.sh-foot { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.sh-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.sh-side .kicker { margin: 0; }
.sh-problems { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; }
.sh-problems li { margin-bottom: 8px; }
.sh-ok { margin: 0; color: var(--ink); }
.sh-actions { gap: 10px; }
.sh-side > .form-note { margin: 0; }
.sh-history { padding: 20px 0 110px; }
.sh-history-list { display: grid; gap: 12px; margin-bottom: 20px; }
.sh-past summary { cursor: pointer; color: var(--muted); }
.sh-past summary strong { color: var(--ink); }
.sh-pre {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .sh-output-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-side { position: static; }
}
@media (max-width: 620px) {
  .dl-grid.sh-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .sh-metric { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .sh-metric > :nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .sh-issue-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sh-open li { grid-template-columns: 1fr; gap: 6px; }
  .sh-open .sh-priority { justify-self: start; padding-inline: 10px; }
}

@media print {
  .site-header, .site-footer, .skip-link, .tool-actions, .button-ghost,
  .reading-progress, .share-row, .filter-bar, .note-actions,
  .tool-aside, .newsletter, [data-add-why] { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  :root { --ink: #000; --muted: #333; --line: #bbb; --card: #fff; --blue: #0b5f9e; --red: #b00; }
  .page-hero { padding: 0 0 20px; }
  .page-hero h1 { font-size: 40px !important; }
  .page-hero .lede { margin: 12px 0 0; font-size: 14px; }
  .tool-layout, .result-grid { display: block; padding: 20px 0; }
  .tool-result { padding: 20px 0; border: 0; }
  .has-result .tool-layout { display: none; }
  .statement, .result-card { break-inside: avoid; }
  .field input, .field textarea { border-color: #bbb; }
  .dl-setup, .sc-hit, .sc-tooltip, .dm-nav, .sh-side, .sh-history, .sh-output .section-heading p, .lang-switch { display: none !important; }
  .sh-output { padding: 0; border: 0; }
  .sh-output-grid { display: block; }
  .print-charter main > :not(.dm-charter) { display: none !important; }
  .print-charter .dm-charter .section-heading p { display: none; }
  .print-charter .dm-charter { padding: 0; }
  .print-charter .dm-charter .section-heading { margin-bottom: 12px; }
  .dm-module, .dm-waste, .dm-question { break-inside: avoid; }
  .dl-results { padding: 0; border: 0; }
  .dl-panel, .dl-stat, .dl-focus, .dl-check-item { break-inside: avoid; }
  .dl-matrix td.is-heat { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dl-check { padding: 20px 0 0; }
}

/* Search and filters */
html:not(.js) .filter-bar { display: none; }
.filter-bar {
  display: grid;
  gap: 16px;
  padding: 10px 0 26px;
  border-bottom: 1px solid var(--line);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 4px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.filter-search:focus-within { border-color: color-mix(in srgb, var(--blue) 60%, var(--line)); }
.filter-search svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.filter-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.filter-search input::placeholder { color: var(--muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }
.chip[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 45%, var(--blue)));
  color: #fff;
}
.filter-count { margin: 0; color: var(--muted); font-size: 13px; }
.filter-count:empty { display: none; }
.filter-empty {
  margin: 0;
  padding: 50px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 24px;
}
.section .filter-bar { margin-bottom: 30px; }
.section:has(> .filter-bar) { padding-top: 40px; }

/* Field note actions */
.note-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.note-actions { display: flex; gap: 6px; }
.note-actions button,
.share-links button,
.share-links a {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.note-actions button:hover,
.share-links button:hover,
.share-links a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }

/* Articles: reading progress and sharing */
.reading-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue-soft));
  transform: scaleX(0);
  transform-origin: left;
}
.share-row {
  margin-top: 3em;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}
.share-row .kicker { margin-bottom: 14px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a, .share-links button { font-size: 14px; padding: 9px 16px; }

/* Legal pages */
/* "DATENSCHUTZ" is a long word; size it so it always fits the screen */
.page-hero.legal-hero h1 { font-size: clamp(34px, 12.5cqi, 120px); }

.legal { padding: 60px 0 110px; }
.legal > * { max-width: 760px; }
.legal h2 {
  margin: 44px 0 12px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 14px; color: var(--muted); overflow-wrap: break-word; hyphens: auto; }
.legal a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* Internal pages */
.page-hero {
  container-type: inline-size;
  padding: 100px 0 68px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  max-width: 1050px;
  font-family: var(--display);
  font-size: clamp(38px, 15cqi, 120px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .86;
  text-transform: uppercase;
}

.page-hero .lede {
  max-width: 670px;
  margin: 34px 0 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.listing { padding: 30px 0 100px; }

.list-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 180px;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.list-row .number {
  color: var(--blue);
  font-family: var(--display);
  font-size: 29px;
}

.list-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
}

.list-row p {
  margin: 9px 0 0;
  color: var(--muted);
}

.list-row .row-meta {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 70px 0 110px;
}

.project-card {
  min-height: 420px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card .tag {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.project-card p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.project-link { margin-top: 22px; }
.project-link + .project-link { margin-left: 18px; }

.about-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 70px;
  padding: 84px 0 110px;
}

.about-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.about-brand-poster { min-height: 610px; }

.about-copy h2 {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.about-copy p {
  max-width: 760px;
  font-size: 19px;
  color: var(--muted);
}

.about-copy .large-copy {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

.about-author {
  margin: 54px 0 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.about-author .kicker { font-size: 11px; }
.about-author h3 {
  margin: 12px 0 22px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}

.about-author p { font-size: 18px; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 42px 0;
}

.pillar {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.pillar strong {
  display: block;
  color: var(--blue);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pillar span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.article-hero {
  padding: 92px 0 54px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 1000px;
  margin: 16px 0 28px;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 400;
  line-height: .91;
  letter-spacing: -.055em;
}

.article-deck {
  max-width: 720px;
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
}

.article-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 70px;
  justify-content: center;
  padding: 80px 0 120px;
}

.article-aside {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.article-content {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.72;
}

.article-content p { margin: 0 0 1.45em; }

.article-content h2 {
  margin: 2em 0 .6em;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 400;
}

.article-content blockquote {
  margin: 2em 0;
  padding-left: 26px;
  border-left: 2px solid var(--blue);
  font-size: 30px;
  line-height: 1.22;
  color: var(--ink);
}

.article-content blockquote p { margin: 0; }

.article-content .pull {
  color: var(--blue);
  font-size: 31px;
  line-height: 1.15;
}

.mobile-panel { display: none; }

/* Narrow desktops: the longer Albanian and German labels still fit on one line. */
@media (max-width: 1100px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 14px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { display: inline-grid; }
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    padding-top: 72px;
  }
  .hero-side { max-width: 650px; }
  .brand-poster { min-height: 500px; }
  .meta-strip { grid-template-columns: 1fr 1fr; }
  .meta-strip > div:nth-child(2) { border-right: 0; }
  .meta-strip > div:nth-child(3),
  .meta-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
  .feature-grid,
  .section-heading,
  .newsletter,
  .contact,
  .tool-layout,
  .result-grid,
  .manifesto,
  .cta,
  .about-grid,
  .article-body { grid-template-columns: minmax(0, 1fr); }
  .section-heading p { justify-self: start; }
  .feature-card { min-height: 470px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card:last-child { grid-column: span 2; }
  .about-aside { position: static; }
  .tool-aside { position: static; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .home-tools > :last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
  .about-brand-poster { max-width: 560px; min-height: 560px; }
  .article-body { gap: 28px; }
  .article-aside { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .list-row { grid-template-columns: 70px 1fr; }
  .list-row .row-meta { display: none; }

  .mobile-panel {
    position: fixed;
    z-index: 45;
    inset: 74px 0 auto 0;
    padding: 24px 20px 30px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .mobile-panel[data-open="true"] { display: grid; gap: 16px; }
  .mobile-panel a {
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: -.03em;
    text-transform: uppercase;
  }
}

/* Phones: the language switch moves from the header into the menu. */
@media (max-width: 620px) {
  .header-actions > .lang-switch { display: none; }
  .mobile-panel .lang-switch { display: inline-flex; justify-self: start; margin-top: 8px; }
  .mobile-panel .lang-switch > * { font-family: inherit; font-size: 13px; letter-spacing: .08em; min-width: 44px; height: 32px; }
}

/* The smallest phones: brand, theme and menu still fit on one line. */
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; letter-spacing: .1em; }
  .header-actions { gap: 6px; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 66px; }
  .mobile-panel { inset: 66px 0 auto 0; }
  .hero { padding: 56px 0 44px; }
  .brand-poster { min-height: 430px; border-radius: 22px; }
  .meta-strip { grid-template-columns: 1fr; }
  .meta-strip > div,
  .meta-strip > div:not(:first-child) {
    padding: 16px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .meta-strip > div:first-child { border-top: 0; }
  .section,
  .newsletter { padding: 72px 0; }
  .newsletter { gap: 28px; }
  .section-heading { gap: 20px; margin-bottom: 28px; }
  .feature-grid,
  .article-grid,
  .notes-grid,
  .project-grid,
  .tool-grid,
  .home-tools,
  .worksheet-grid,
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { min-height: 300px; }
  .article-card:last-child { grid-column: auto; }
  .feature-card { min-height: 440px; }
  .side-stack { grid-template-rows: auto; }
  .mini-card { min-height: 220px; }
  .cta { padding: 82px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 46px 1fr; gap: 14px; }
  .list-row .number { font-size: 24px; }
  .project-grid { padding-top: 40px; }
  .project-card { min-height: 340px; }
  .page-hero { padding-top: 70px; }
  .article-hero { padding-top: 64px; }
  .article-deck { margin-left: 0; }
  .article-content { font-size: 19px; }
  .article-content h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
