/* ==========================================================================
   michaelroether.de
   Palette taken from the portrait: navy suit, sky-blue shirt, copper beard,
   sandstone wall. Fonts are self-hosted (no third-party requests).
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* static 600 instance, subset to the characters the handwritten notes use */
  font-family: 'Caveat';
  src: url('../fonts/caveat-latin-600.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-wght.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-950: #060b1f;
  --ink-900: #0a1230;
  --ink-850: #0d173b;
  --ink-800: #121f4b;
  --ink-700: #1b2a55;
  --ink-600: #2a3d75;
  --ink-500: #42589a;

  --sky-50: #f3f7fd;
  --sky-100: #e4edfb;
  --sky-200: #cfddf6;
  --sky-300: #b9cdf0;
  --sky-400: #8eaee6;
  --sky-500: #6b8fd6;

  --copper-200: #f8d2b6;
  --copper-300: #f2b48a;
  --copper-400: #e8895a;
  --copper-500: #cf6a38;
  --copper-600: #b5562a;
  --copper-700: #8f4220;

  --sand-50: #fbf8f2;
  --sand-100: #f5efe3;
  --sand-200: #e9dfca;
  --sand-300: #d8c7a0;

  --mint: #5fe0a5;

  --text-dark: #0e1735;
  --text-dark-muted: #4a5372;
  --text-light: #eaf0fc;
  --text-light-muted: #a6b5da;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-hero: clamp(2.7rem, 1.4rem + 4.4vw, 5.8rem);
  --fs-h2: clamp(2rem, 1.25rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
  --fs-lead: clamp(1.15rem, 1rem + 0.45vw, 1.38rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: max(clamp(1rem, 0.6rem + 2vw, 2.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --section-pad: clamp(5rem, 3rem + 7vw, 9.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--ink-900);
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-light);
  background: var(--ink-900);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

::selection {
  background: var(--copper-400);
  color: var(--ink-950);
}

:focus-visible {
  outline: 2px solid var(--copper-300);
  outline-offset: 3px;
  border-radius: 6px;
}
/* light surfaces need a darker ring (3:1) */
.section--light :focus-visible,
.nav.is-light :focus-visible,
.page-sub :focus-visible,
.match__panel:focus-visible {
  outline-color: var(--copper-700);
}
/* headings and sections that only receive focus from scripts */
[tabindex='-1']:focus {
  outline: none;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--copper-400);
  color: var(--ink-950);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  background: var(--btn-bg);
  isolation: isolate;
  overflow: hidden;
  transition: translate 0.4s var(--ease-spring), scale 0.2s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after {
  opacity: 1;
}
.btn:hover {
  translate: 0 -2px;
}
.btn:active {
  translate: 0 0;
  scale: 0.98;
}
.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--copper-400), var(--copper-500));
  border: 1px solid transparent;
  color: #1a0d05;
  box-shadow: 0 10px 30px -10px rgba(232, 137, 90, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 16px 40px -12px rgba(232, 137, 90, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--ghost {
  color: var(--text-light);
  border: 1px solid rgba(207, 221, 246, 0.35);
  background: rgba(233, 240, 252, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(207, 221, 246, 0.7);
  background: rgba(233, 240, 252, 0.09);
}
.btn--small {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(207, 221, 246, 0.25);
  background: rgba(233, 240, 252, 0.05);
  color: var(--text-light);
  font-weight: 550;
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), background-color 0.25s, border-color 0.25s;
}
.pill svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.pill .pill__brand {
  fill: currentColor;
  stroke: none;
}
.pill:hover {
  transform: translateY(-2px);
  background: rgba(233, 240, 252, 0.1);
  border-color: rgba(207, 221, 246, 0.55);
}
.pill--accent {
  border-color: rgba(242, 180, 138, 0.55);
  color: var(--copper-200);
}
.pill--accent:hover {
  background: rgba(232, 137, 90, 0.14);
  border-color: var(--copper-300);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chips li {
  padding: 0.28rem 0.62rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(207, 221, 246, 0.28);
  background: rgba(233, 240, 252, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--sky-100);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(clamp(1rem, 0.4rem + 2.4vw, 2.5rem), env(safe-area-inset-right)) 0 max(clamp(1rem, 0.4rem + 2.4vw, 2.5rem), env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease-out);
}
/* while the bar is transparent, clicks in its empty middle reach the clouds below */
.nav:not(.is-scrolled):not(.is-light) {
  pointer-events: none;
}
.nav > * {
  pointer-events: auto;
}
.nav.is-scrolled {
  background: rgba(10, 18, 48, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 rgba(207, 221, 246, 0.08), 0 12px 30px -20px rgba(0, 0, 0, 0.7);
}
.nav.is-light {
  background: rgba(251, 248, 242, 0.82);
  color: var(--text-dark);
  box-shadow: 0 1px 0 rgba(14, 23, 53, 0.08);
}
.nav.is-hidden {
  transform: translateY(-110%);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
}
.nav__avatar {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: -52px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--ink-600), var(--ink-800));
  box-shadow: 0 0 0 1.5px rgba(242, 180, 138, 0.55), 0 6px 16px -6px rgba(0, 0, 0, 0.7);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.6s var(--ease-spring), opacity 0.4s, margin 0.6s var(--ease-out);
}
.nav.is-scrolled .nav__avatar,
.nav.is-light .nav__avatar,
.no-js .nav__avatar {
  transform: none;
  opacity: 1;
  margin-right: 0;
}
.nav__avatar-svg {
  width: 100%;
  height: 100%;
}
.nav__name {
  white-space: nowrap;
}
.nav__links ul {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 0.1rem + 0.6vw, 0.9rem);
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 520;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current='true'] {
  opacity: 1;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--copper-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current='true']::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__cta {
  border: 1px solid rgba(242, 180, 138, 0.6);
  color: var(--copper-200);
  padding-inline: 1.05rem !important;
}
.nav.is-light .nav__cta {
  color: var(--copper-700);
  border-color: rgba(143, 66, 32, 0.45);
}
.nav__cta:hover {
  background: rgba(232, 137, 90, 0.14);
}
.nav__toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(207, 221, 246, 0.3);
  background: rgba(10, 18, 48, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.nav__toggle span:first-child {
  transform: translateY(-4px);
}
.nav__toggle span:last-child {
  transform: translateY(4px);
}
.nav__toggle[aria-expanded='true'] span:first-child {
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded='true'] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-content: safe center;
  gap: 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 1rem) max(1.5rem, env(safe-area-inset-right)) 2rem max(1.5rem, env(safe-area-inset-left));
  background: radial-gradient(120% 80% at 80% 0%, rgba(232, 137, 90, 0.18), transparent 60%), var(--ink-900);
}
.mobile-menu[hidden] {
  display: none;
}
@media (min-width: 961px) {
  .mobile-menu {
    display: none !important;
  }
}
.mobile-menu a {
  display: block;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
@media (max-height: 500px) {
  .mobile-menu {
    gap: 1rem;
  }
  .mobile-menu ul {
    columns: 2;
    column-gap: 2rem;
  }
  .mobile-menu a {
    font-size: 1.6rem;
    padding-block: 0.15rem;
  }
}
.mobile-menu__note {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- hero */
.hero {
  /* sized by the viewport, but never smaller than the hero's min-height allows;
     the top leaves room for one thought cloud between navigation and crown */
  --ph: max(106svh, 640px);
  --portrait-top: max(12.5svh, 74px, calc(96px + 0.055 * var(--ph)));
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(42, 61, 117, 0.85), transparent 70%),
    linear-gradient(180deg, var(--ink-850) 0%, var(--ink-900) 55%, var(--ink-950) 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(4, 7, 22, 0.65) 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero__glow--a {
  width: 95vmax;
  height: 95vmax;
  left: 50%;
  top: 34%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(110, 145, 230, 0.32), rgba(110, 145, 230, 0.08) 55%, transparent 72%);
  animation: glow-drift-a 22s var(--ease-in-out) infinite alternate;
}
.hero__glow--b {
  width: 70vmax;
  height: 70vmax;
  left: 78%;
  top: 92%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(232, 137, 90, 0.26), rgba(232, 137, 90, 0.06) 55%, transparent 72%);
  animation: glow-drift-b 26s var(--ease-in-out) infinite alternate;
}
@keyframes glow-drift-a {
  to {
    transform: translate(4%, 3%) scale(1.08);
  }
}
@keyframes glow-drift-b {
  to {
    transform: translate(-10%, -6%) scale(1.15);
  }
}
.hero__net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero__grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__stage {
  position: absolute;
  inset: 0;
}

.portrait {
  position: absolute;
  /* centre the head (photo x = 870 of 1797), not the image box:
     870 / 1797 × (1797 / 2400) = 0.3625 × height */
  left: calc(50% - 0.3625 * var(--ph));
  top: var(--portrait-top);
  height: var(--ph);
  aspect-ratio: 1797 / 2400;
  margin: 0;
  transform-origin: 50% 25%;
  will-change: transform;
}
.portrait__halo {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 92%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(185, 205, 240, 0.32), rgba(185, 205, 240, 0.1) 50%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.portrait__inner,
.portrait picture,
.portrait__img,
.portrait__eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.portrait__img {
  /* no CSS filter here: a drop-shadow on this large, animated layer costs WebKit dearly */
  object-fit: contain;
}
.portrait__eyes {
  overflow: visible;
  pointer-events: none;
}
.portrait__face {
  position: absolute;
  /* face area in photo px: x 640-1100, y 220-870 of 1797 x 2400 */
  left: 35.6%;
  top: 9.2%;
  width: 25.6%;
  height: 27%;
  border-radius: 45% 45% 40% 40%;
  cursor: pointer;
}
/* fade the torso into the floor – across the full width, so there are no seams */
.hero__stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 31, 0.85) 75%, var(--ink-950));
  pointer-events: none;
}

.trails,
.fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.trails circle {
  fill: rgba(233, 240, 252, 0.1);
  stroke: rgba(207, 221, 246, 0.5);
  stroke-width: 1.1;
}
.trails .is-active {
  fill: rgba(242, 180, 138, 0.18);
  stroke: rgba(242, 180, 138, 0.85);
}
.fx {
  z-index: 6;
}
.fx__p {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 10px rgba(2, 5, 18, 0.45));
}
.fx__p svg {
  display: block;
}
.fx__glyph {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--copper-300);
  text-shadow: 0 0 12px rgba(232, 137, 90, 0.55);
}
.fx__lead {
  z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(2, 5, 18, 0.55)) drop-shadow(0 0 10px rgba(242, 180, 138, 0.25));
}
.fx__glyph--big {
  font-size: 1.9rem;
  text-shadow: 0 0 18px rgba(232, 137, 90, 0.75);
}
.fx__glyph--sky {
  color: var(--sky-300);
  text-shadow: 0 0 12px rgba(142, 174, 230, 0.6);
}
.fx__glyph--mint {
  color: var(--mint);
  text-shadow: 0 0 12px rgba(95, 224, 165, 0.55);
}
.fx__spark,
.fx__ring {
  position: absolute;
  left: -30px;
  top: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  pointer-events: none;
}
.fx__spark {
  background: radial-gradient(closest-side, rgba(255, 236, 214, 0.95), rgba(242, 180, 138, 0.55) 40%, transparent 72%);
  mix-blend-mode: screen;
}
.fx__ring {
  border: 1.5px solid rgba(242, 180, 138, 0.8);
}

/* ---------------------------------------------------------------- thoughts */
.thoughts {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.thought {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.thought__cloud {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 90px;
  pointer-events: none;
  will-change: transform;
}
.thought__cloud::before {
  /* frosted glass clipped to the cloud outline (JS sets --clip) */
  content: '';
  position: absolute;
  inset: 0;
  clip-path: var(--clip, none);
  background: linear-gradient(160deg, rgba(66, 88, 154, 0.62), rgba(18, 31, 75, 0.7) 62%, rgba(27, 42, 85, 0.74));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: background 0.4s;
}
.thought.is-open .thought__cloud::before {
  background: linear-gradient(160deg, rgba(52, 72, 135, 0.9), rgba(14, 25, 63, 0.93) 60%, rgba(20, 33, 72, 0.95));
}
.thought__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.thought__shape path {
  fill: none;
  stroke: rgba(214, 227, 248, 0.62);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(185, 205, 240, 0.25));
  transition: stroke 0.35s;
}
.thought.is-hover .thought__shape path,
.thought.is-open .thought__shape path {
  stroke: rgba(242, 180, 138, 0.95);
  filter: drop-shadow(0 0 14px rgba(232, 137, 90, 0.45));
}

.thought__toggle {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 160px;
  height: 90px;
  padding: 0.6rem 1.1rem;
  border-radius: 40%;
  text-align: center;
  pointer-events: auto;
  color: var(--text-light);
  will-change: transform;
}
.thought__toggle:focus-visible {
  outline-offset: -6px;
  border-radius: 40px;
}
@supports selector(:has(*)) {
  .thought__toggle:focus-visible {
    outline: none;
  }
  .thought:has(.thought__toggle:focus-visible) .thought__shape path {
    stroke: var(--copper-200);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 10px rgba(232, 137, 90, 0.7));
  }
}
.thought__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--copper-300);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.thought__label {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  hyphens: manual;
}
.thought__short {
  display: none;
}
.thought__badge {
  position: absolute;
  right: -6px;
  top: -10px;
  padding: 0.18rem 0.5rem 0.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--copper-400), var(--copper-500));
  color: #1a0d05;
  font-family: var(--font-hand);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  rotate: 6deg;
  box-shadow: 0 6px 16px -6px rgba(232, 137, 90, 0.8);
  pointer-events: none;
}
.thought.is-open .thought__badge {
  opacity: 0;
}
.thought__badge {
  transition: opacity 0.3s;
}
.thought.is-dim .thought__badge {
  opacity: 0.3;
}

.thought__panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  padding: 2.7rem 3rem 2.8rem;
  pointer-events: auto;
  color: var(--text-light);
}
.thought__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.thought__panel[hidden] {
  display: none;
}
.thought__body {
  min-height: 0;
  width: 100%;
}
.thought__panel.is-scroll .thought__body {
  padding-top: 0.7rem;
  margin-top: -0.7rem;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* the last line can scroll fully out of the fade */
  padding-bottom: 2.75rem;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
}
/* once scrolled, the top edge fades too – no hard cut through the first line */
.thought__panel.is-scroll.is-scrolled .thought__body {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.2rem, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(180deg, transparent 0, #000 1.2rem, #000 calc(100% - 40px), transparent);
}
/* little room: the keywords make way for the text */
.thought__panel.is-tight .chips {
  display: none;
}
.thought__next {
  flex: none;
}
/* "mehr ↓": only while the text scrolls and the end is not reached yet */
.thought__more {
  display: none;
}
.thought__panel.is-scroll:not(.is-end) .thought__more {
  position: absolute;
  right: 3rem;
  bottom: 2.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-300);
  cursor: pointer;
}
.thought__more svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: more-bob 1.6s ease-in-out infinite;
}
@keyframes more-bob {
  50% {
    translate: 0 3px;
  }
}
/* the open card is read and scrolled; its (invisible) toggle must not catch taps */
.thought.is-open .thought__toggle {
  pointer-events: none;
}
.thought.is-open {
  z-index: 3;
}
.thought.is-open .thought__toggle {
  z-index: 2;
}
.thought.is-open .thought__toggle:focus-visible {
  outline-offset: 2px;
}
.thought__panel {
  z-index: 1;
}
.thought__art {
  float: right;
  width: 100px;
  height: 64px;
  margin: -0.4rem 3.4rem 0.4rem 0.8rem;
}
.thought__art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.thought__kicker {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--copper-300);
}
.thought__title {
  clear: right;
  margin-top: 0.4rem;
  font-size: 1.5rem;
  font-weight: 650;
  hyphens: manual;
  overflow-wrap: break-word;
}
.thought__text {
  clear: right;
}
.thought__text {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sky-100);
}
/* the card text as compact facts: bold keyword, evidence, organisation */
.thought__facts {
  display: grid;
  gap: 0.5rem;
}
.thought__text.thought__facts {
  line-height: 1.45;
}
.thought__facts li {
  position: relative;
  padding-left: 0.95rem;
}
.thought__facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper-300);
}
.thought__facts strong {
  font-weight: 650;
  color: #fff;
}
.thought__panel .chips {
  margin-top: 1rem;
}
.thought__next {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(242, 180, 138, 0.45);
  color: var(--copper-200);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.25s, translate 0.35s var(--ease-spring);
}
.thought__next:hover {
  background: rgba(232, 137, 90, 0.16);
  translate: 3px 0;
}
.thought__close {
  position: absolute;
  /* far enough in that the button and its focus ring stay inside the scalloped corner */
  right: 2.9rem;
  top: 2.8rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(207, 221, 246, 0.3);
  background: var(--ink-850);
  transition: rotate 0.35s var(--ease-spring), background-color 0.2s;
}
.thought__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.thought__close:hover {
  rotate: 90deg;
  background: rgba(232, 137, 90, 0.25);
}

.hero__hint {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--copper-300);
  pointer-events: none;
  opacity: 0;
}
.hero__hint-text {
  padding-top: 1.5rem;
  text-align: right;
  white-space: nowrap;
}
.hero__hint-inline {
  display: none;
}
.hero__hint-arrow {
  width: 54px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.idle-thought {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 0 1.6rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-hand);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--copper-200);
}
.idle-thought svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.idle-thought path {
  fill: rgba(18, 31, 75, 0.85);
  stroke: rgba(242, 180, 138, 0.8);
  stroke-width: 1.2;
}
.idle-thought span {
  position: relative;
}
.hero__intro {
  position: absolute;
  z-index: 4;
  left: clamp(1.25rem, 0.5rem + 3.6vw, 4.5rem);
  bottom: clamp(6.2rem, 4.6rem + 3svh, 8rem);
  max-width: min(36rem, 42vw);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-300);
}
.hero__title {
  margin-top: 0.5rem;
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #f6f8fe;
  text-shadow: 0 2px 30px rgba(6, 11, 31, 0.6);
  padding-bottom: 0.06em;
}
.hero__role {
  margin-top: 1rem;
  font-size: clamp(0.92rem, 0.85rem + 0.25vw, 1.05rem);
  font-weight: 550;
  letter-spacing: 0.005em;
  color: var(--sky-300);
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 1279px) {
  .hero__role {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0.9rem;
  }
  .hero__sep {
    display: none;
  }
}
.touch-only {
  display: none;
}
@media (hover: none) {
  .touch-only {
    display: inline;
  }
  .hover-only {
    display: none;
  }
}
.hero__sep {
  margin-right: 0.15em;
  color: var(--copper-400);
}
.hero__tagline {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.25;
  color: var(--text-light);
  max-width: 30ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.progress {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
}
.progress__dots {
  display: inline-flex;
  gap: 4px;
}
.progress__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.2px solid rgba(207, 221, 246, 0.45);
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-spring);
}
.progress__dots i.is-on {
  background: var(--copper-400);
  border-color: var(--copper-400);
  transform: scale(1.15);
}
.progress.is-done {
  color: var(--copper-200);
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0.3rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  transition: color 0.2s;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-toggle:hover {
  color: var(--text-light);
}
.motion-toggle__icon {
  position: relative;
  width: 10px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.motion-toggle.is-paused .motion-toggle__icon {
  width: 0;
  height: 0;
  border: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.motion-toggle--footer {
  font-size: 0.66rem;
  color: inherit;
}
.hero__phone-row {
  display: contents;
}
.motion-toggle--phone {
  display: none;
}
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}
.hero__meta {
  position: absolute;
  z-index: 4;
  right: clamp(1.25rem, 0.5rem + 3.6vw, 4.5rem);
  bottom: clamp(6.2rem, 4.6rem + 3svh, 8rem);
  display: grid;
  justify-items: end;
  gap: 1.4rem;
}
.hero__intro .available {
  display: none;
}
.available {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(95, 224, 165, 0.35);
  background: rgba(95, 224, 165, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 560;
  color: #d9fbe9;
}
.available__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.available__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  from {
    transform: scale(0.4);
    opacity: 0.9;
  }
  to {
    transform: scale(2);
    opacity: 0;
  }
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light-muted);
}
.scroll-cue__line {
  position: relative;
  width: 1.5px;
  height: 46px;
  overflow: hidden;
  background: rgba(207, 221, 246, 0.2);
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--copper-300);
  animation: scroll-line 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  position: relative;
  padding-block: var(--section-pad);
}
.section--light {
  background: var(--sand-50);
  color: var(--text-dark);
  color-scheme: light;
}
.section--light + .section--light {
  padding-top: 0;
}
.section--dark {
  background: var(--ink-900);
}
.section__head {
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-400);
}
.section__kicker::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: currentColor;
}
.section--light .section__kicker {
  color: var(--copper-700);
}
.section__title {
  margin-top: 1rem;
  font-size: var(--fs-h2);
  font-weight: 650;
}
.section__title em {
  color: var(--copper-400);
}
.section--light .section__title em {
  color: var(--copper-600);
}
.section__intro {
  margin-top: 1.2rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-light-muted);
  max-width: 40rem;
}
.section--light .section__intro {
  color: var(--text-dark-muted);
}

.cloud-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 110px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='110' viewBox='0 0 1200 110'%3E%3Cg fill='%23fbf8f2' fill-opacity='.07'%3E%3Ccircle cx='0' cy='72' r='42'/%3E%3Ccircle cx='1200' cy='72' r='42'/%3E%3Ccircle cx='89' cy='64' r='51'/%3E%3Ccircle cx='183' cy='84' r='27'/%3E%3Ccircle cx='278' cy='72' r='43'/%3E%3Ccircle cx='337' cy='72' r='38'/%3E%3Ccircle cx='415' cy='67' r='41'/%3E%3Ccircle cx='479' cy='82' r='33'/%3E%3Ccircle cx='567' cy='84' r='30'/%3E%3Ccircle cx='627' cy='67' r='42'/%3E%3Ccircle cx='682' cy='61' r='49'/%3E%3Ccircle cx='746' cy='64' r='52'/%3E%3Ccircle cx='813' cy='62' r='51'/%3E%3Ccircle cx='896' cy='84' r='31'/%3E%3Ccircle cx='981' cy='65' r='51'/%3E%3Ccircle cx='1048' cy='74' r='35'/%3E%3Ccircle cx='1109' cy='82' r='28'/%3E%3Ccircle cx='1189' cy='87' r='26'/%3E%3Ccircle cx='-11' cy='87' r='26'/%3E%3Crect y='80' width='1200' height='30'/%3E%3C/g%3E%3Cg fill='%23fbf8f2'%3E%3Ccircle cx='0' cy='92' r='28'/%3E%3Ccircle cx='1200' cy='92' r='28'/%3E%3Ccircle cx='45' cy='83' r='37'/%3E%3Ccircle cx='1245' cy='83' r='37'/%3E%3Ccircle cx='102' cy='83' r='38'/%3E%3Ccircle cx='160' cy='87' r='32'/%3E%3Ccircle cx='213' cy='89' r='33'/%3E%3Ccircle cx='276' cy='95' r='21'/%3E%3Ccircle cx='320' cy='95' r='29'/%3E%3Ccircle cx='380' cy='87' r='35'/%3E%3Ccircle cx='444' cy='96' r='20'/%3E%3Ccircle cx='506' cy='88' r='34'/%3E%3Ccircle cx='550' cy='93' r='24'/%3E%3Ccircle cx='599' cy='85' r='36'/%3E%3Ccircle cx='668' cy='83' r='37'/%3E%3Ccircle cx='721' cy='88' r='29'/%3E%3Ccircle cx='775' cy='83' r='38'/%3E%3Ccircle cx='835' cy='98' r='21'/%3E%3Ccircle cx='904' cy='92' r='22'/%3E%3Ccircle cx='947' cy='88' r='30'/%3E%3Ccircle cx='990' cy='95' r='29'/%3E%3Ccircle cx='1044' cy='95' r='27'/%3E%3Ccircle cx='1088' cy='88' r='31'/%3E%3Ccircle cx='1148' cy='82' r='39'/%3E%3Crect y='92' width='1200' height='18'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 1200px 110px;
}
.cloud-edge--top {
  top: -109px;
}

/* ---------------------------------------------------------------- about */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.about__text {
  display: grid;
  gap: 1.2rem;
  color: var(--text-dark-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-dark);
  font-weight: 450;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.fact {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.3rem 1.25rem 1.35rem;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid rgba(14, 23, 53, 0.07);
  box-shadow: 0 1px 2px rgba(14, 23, 53, 0.04), 0 18px 40px -28px rgba(14, 23, 53, 0.35);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
.fact:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 1px 2px rgba(14, 23, 53, 0.04), 0 26px 50px -28px rgba(14, 23, 53, 0.45);
}
.fact__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-700);
}
.fact__label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text-dark);
}
.fact__sub {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-dark-muted);
}
.fact--accent {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  border-color: transparent;
}
.fact--accent .fact__value {
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  background: linear-gradient(135deg, var(--copper-300), var(--copper-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact--accent .fact__label {
  color: var(--text-light);
}
.fact--accent .fact__sub {
  color: var(--text-light-muted);
}
.fact--live {
  grid-column: 1 / -1;
}
.fact--live .fact__value {
  color: #13804f;
}
.fact--accent {
  overflow: hidden;
}
.fact__stamp {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--copper-400);
  border-radius: 8px;
  color: var(--copper-300);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  rotate: -8deg;
  opacity: 0.9;
  mix-blend-mode: screen;
}
/* selected master modules with their grades */
.grades {
  width: 100%;
  margin-top: 0.9rem;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.35;
}
.grades caption {
  padding-bottom: 0.45rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-300);
}
.grades th,
.grades td {
  padding: 0.45rem 0;
  border-top: 1px solid rgba(207, 221, 246, 0.14);
}
.grades th {
  padding-right: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--sky-100);
}
.grades td {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--copper-300);
}
.footer__print {
  display: none;
}

.principles {
  margin-top: clamp(4rem, 2rem + 5vw, 7rem);
}
.principles__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}
.principles__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
  counter-reset: p;
}
.principle {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border-top: 1.5px solid rgba(14, 23, 53, 0.14);
}
.principle::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1.5px;
  height: 1.5px;
  width: 100%;
  background: var(--copper-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.principle:hover::before,
.principle.is-in::before {
  transform: scaleX(1);
}
.principle__no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper-600);
}
.principle h4 {
  margin-top: 0.7rem;
  font-size: 1.3rem;
  color: var(--text-dark);
}
.principle p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark-muted);
}

/* ---------------------------------------------------------------- match */
.match {
  padding-bottom: calc(var(--section-pad) + 40px);
}
.match__ui {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) 2fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.match__tabs {
  position: relative;
  display: grid;
  gap: 0.5rem;
}
.match__tab {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-m);
  text-align: left;
  color: var(--text-dark);
  transition: color 0.3s, transform 0.4s var(--ease-spring);
}
.match__tab:hover {
  transform: translateX(4px);
}
.match__tab-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.match__tab-sub {
  font-size: 0.85rem;
  color: var(--text-dark-muted);
  transition: color 0.3s;
}
.match__tab[aria-selected='true'] {
  color: var(--text-light);
}
.match__tab[aria-selected='true'] .match__tab-sub {
  color: var(--copper-200);
}
.match__indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  box-shadow: 0 20px 40px -24px rgba(14, 23, 53, 0.8);
  transition: transform 0.6s var(--ease-out), height 0.6s var(--ease-out);
}
.no-js .match__indicator {
  display: none;
}
.match__panel {
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid rgba(14, 23, 53, 0.07);
  box-shadow: 0 30px 60px -40px rgba(14, 23, 53, 0.45);
  padding: clamp(1.25rem, 0.8rem + 1.6vw, 2.2rem);
}
.match__panel:focus-visible {
  outline-offset: 4px;
}
.evidence {
  display: grid;
}
.evidence li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  border-bottom: 1px dashed rgba(14, 23, 53, 0.12);
}
.evidence li:last-child {
  border-bottom: 0;
}
.evidence p {
  color: var(--text-dark-muted);
  line-height: 1.55;
}
.evidence strong {
  color: var(--text-dark);
  font-weight: 650;
}
.evidence__check {
  position: relative;
  width: 26px;
  height: 26px;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: rgba(19, 128, 79, 0.1);
  border: 1.5px solid rgba(19, 128, 79, 0.55);
}
.evidence__check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4.5px;
  width: 6px;
  height: 11px;
  border: solid #13804f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.evidence__src {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--sand-100);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--copper-700);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- career / gantt */
.career {
  padding-top: calc(var(--section-pad) + 40px);
  background:
    radial-gradient(45% 35% at 85% 22%, rgba(232, 137, 90, 0.1), transparent 70%),
    radial-gradient(45% 35% at 8% 70%, rgba(110, 145, 230, 0.12), transparent 70%),
    var(--ink-900);
}
.cloud-edge--down {
  top: -1px;
  transform: scaleY(-1);
}
.gantt {
  --cols: 192;
  position: relative;
  padding: 2.5rem 0 0;
}
.gantt__axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  height: 2rem;
  border-bottom: 1px solid rgba(207, 221, 246, 0.16);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light-muted);
}
.gantt__axis span {
  grid-column: var(--c) / span 24;
  grid-row: 1;
  padding-left: 0.4rem;
  border-left: 1px solid rgba(207, 221, 246, 0.16);
}
.gantt__today {
  position: absolute;
  top: 1rem;
  bottom: 3.6rem;
  left: calc((var(--c) - 1) / var(--cols) * 100%);
  width: 0;
  border-left: 1.5px dashed rgba(95, 224, 165, 0.8);
  z-index: 2;
  pointer-events: none;
}
.gantt__today span {
  position: absolute;
  top: -1.2rem;
  left: 0;
  translate: -50% 0;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gantt__rows {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 0;
  background-image: repeating-linear-gradient(90deg, rgba(207, 221, 246, 0.06) 0 1px, transparent 1px calc(100% / 8));
}
.gantt__row {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  min-height: 52px;
  position: relative;
}
.gantt__bar {
  position: relative;
  grid-column: var(--s) / var(--e);
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  text-align: left;
  overflow: visible;
  transform-origin: left center;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, filter 0.3s;
}
.gantt__bar--job {
  background: linear-gradient(90deg, var(--copper-500), var(--copper-400));
  color: #1a0d05;
  box-shadow: 0 10px 30px -14px rgba(232, 137, 90, 0.7);
}
.gantt__bar--side {
  background: linear-gradient(90deg, rgba(185, 205, 240, 0.22), rgba(185, 205, 240, 0.12));
  border: 1px solid rgba(185, 205, 240, 0.35);
  color: var(--text-light);
}
.gantt__bar--edu {
  background: linear-gradient(90deg, var(--sky-400), var(--sky-300));
  color: var(--ink-900);
  box-shadow: 0 10px 30px -14px rgba(142, 174, 230, 0.7);
}
.gantt__bar--next {
  border: 1.5px dashed rgba(95, 224, 165, 0.8);
  background: repeating-linear-gradient(-45deg, rgba(95, 224, 165, 0.1) 0 8px, transparent 8px 16px);
  color: #d9fbe9;
}
.gantt__row[data-ongoing] .gantt__bar {
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
button.gantt__bar:hover,
button.gantt__bar[aria-expanded='true'] {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.gantt__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt__org {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt__row--short .gantt__bar {
  overflow: visible;
}
.gantt__row--short .gantt__name,
.gantt__row--short .gantt__org {
  position: relative;
  left: calc(100% + 1.1rem);
  width: max-content;
  max-width: 22rem;
  color: var(--text-light);
}
.gantt__row--short .gantt__org {
  color: var(--text-light-muted);
}
.gantt__row--next .gantt__name,
.gantt__row--next .gantt__org {
  position: relative;
  left: auto;
  right: calc(100% + 1.1rem + 14px);
  align-self: flex-end;
  text-align: right;
}
.gantt__row--next .gantt__bar {
  align-items: flex-end;
}
.gantt__when {
  display: none;
}
.js .gantt:not(.is-revealed) .gantt__row[data-milestone]::after {
  opacity: 0;
}
.gantt__row[data-milestone]::after {
  transition: opacity 0.5s;
  content: '';
  position: absolute;
  top: 50%;
  left: calc((var(--m, 102) - 1) / var(--cols) * 100%);
  width: 16px;
  height: 16px;
  translate: -50% -50%;
  rotate: 45deg;
  border-radius: 3px;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(95, 224, 165, 0.2), 0 0 18px rgba(95, 224, 165, 0.7);
  pointer-events: none;
}
.gantt__detail {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  left: clamp(0%, calc((var(--s) - 1) / var(--cols) * 100%), calc(100% - 26rem));
  width: min(26rem, 100%);
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: var(--radius-m);
  background: rgba(13, 23, 59, 0.94);
  border: 1px solid rgba(207, 221, 246, 0.18);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0s 0.35s;
}
.gantt__row:hover:not(.is-dismissed) .gantt__detail,
.gantt__row.is-open .gantt__detail {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0s;
}
/* no room below the bar: the details open upwards */
@media (min-width: 861px) {
  .gantt__row.is-up .gantt__detail {
    top: auto;
    bottom: calc(100% + 10px);
    transform-origin: bottom left;
  }
}
/* 1101–1239 px: long bar labels get a second line instead of an ellipsis */
@media (min-width: 1101px) and (max-width: 1239px) {
  .gantt__row:not(.gantt__row--short):not(.gantt__row--next) .gantt__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
}
.gantt__time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper-300);
}
.gantt__detail h3 {
  margin-top: 0.35rem;
  font-size: 1.02rem;
  line-height: 1.3;
}
.gantt__detail ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.gantt__detail li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--sky-100);
}
.gantt__detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper-400);
}
.gantt__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light-muted);
}
.gantt__key {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gantt__key::before {
  content: '';
  width: 22px;
  height: 10px;
  border-radius: 4px;
}
.gantt__key--job::before {
  background: var(--copper-400);
}
.gantt__key--side::before {
  background: rgba(185, 205, 240, 0.3);
  border: 1px solid rgba(185, 205, 240, 0.5);
}
.gantt__key--edu::before {
  background: var(--sky-300);
}
.gantt__key--next::before {
  border: 1.5px dashed var(--mint);
}

/* ---------------------------------------------------------------- voices */
.voices {
  padding-top: 0;
}
.voices__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.voice {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  margin: 0;
  padding: 2.1rem 1.8rem 1.7rem;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, rgba(42, 61, 117, 0.55), rgba(18, 31, 75, 0.5));
  border: 1px solid rgba(207, 221, 246, 0.12);
  overflow: hidden;
  transition: translate 0.6s var(--ease-spring), border-color 0.3s;
}
.voice:nth-child(5),
.voice:nth-child(6) {
  grid-column: span 3;
}
/* the most recent reference leads, across the full width */
.voice--featured {
  grid-column: 1 / -1;
  padding: 2.6rem 2.6rem 2.2rem;
  background: linear-gradient(160deg, rgba(56, 80, 150, 0.6), rgba(18, 31, 75, 0.55));
  border-color: rgba(242, 180, 138, 0.26);
}
.voices__track .voice--featured blockquote p {
  max-width: 66ch;
  font-size: clamp(1.25rem, 1.02rem + 0.65vw, 1.62rem);
  line-height: 1.42;
}
.voice::before {
  content: '„';
  position: absolute;
  right: 1.4rem;
  bottom: 5.2rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0;
  color: rgba(232, 137, 90, 0.16);
  pointer-events: none;
}
.voice:hover {
  translate: 0 -4px;
  border-color: rgba(242, 180, 138, 0.4);
}
/* the reveal sets its own transition list – keep the hover lift smooth as well */
.js .voice.reveal.is-in {
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), translate 0.6s var(--ease-spring), border-color 0.3s;
}
.voice blockquote {
  margin: 0;
}
.voice blockquote p {
  max-width: 62ch;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.4;
  color: var(--text-light);
}
.voice blockquote p::before {
  content: '„';
}
.voice blockquote p::after {
  content: '“';
}
.voice figcaption {
  display: grid;
  gap: 0.15rem;
  padding-top: 1rem;
  padding-right: 3.6rem;
  border-top: 1px solid rgba(207, 221, 246, 0.14);
}
.voice figcaption strong {
  font-family: var(--font-display);
  font-weight: 650;
}
.voice figcaption span {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

.verdict {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding: 1rem 1.3rem 1rem 1rem;
  max-width: 44rem;
  border-radius: var(--radius-m);
  border: 1px solid rgba(95, 224, 165, 0.3);
  background: rgba(95, 224, 165, 0.07);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-light-muted);
}
.verdict strong {
  color: var(--text-light);
  font-weight: 600;
}
.verdict__seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8ff0c2, var(--mint) 55%, #2fae76);
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(95, 224, 165, 0.15), 0 8px 20px -8px rgba(95, 224, 165, 0.8);
}

/* ---------------------------------------------------------------- numbers: status report
   The numbers as a project status report. Unit charts: 1 mark = 1 unit, the
   same mark size in every tile, grouped in tens. */
.numbers {
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.report {
  --line: rgba(207, 221, 246, 0.1);
  --tile: var(--ink-850);
  --pad: clamp(1.15rem, 0.8rem + 1.1vw, 1.75rem);
  --pitch: 16px;
  border: 1px solid rgba(207, 221, 246, 0.14);
  border-radius: var(--radius-l);
  background: var(--tile);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.85);
}
.report__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.4rem 2.5rem;
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem) var(--pad);
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--radius-l) - 1px) calc(var(--radius-l) - 1px) 0 0;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(95, 224, 165, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(42, 61, 117, 0.35), transparent);
}
.report__title {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3.2rem);
}
.report__title em {
  color: var(--mint);
}
.report__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.8rem;
  margin: 1.2rem 0 0;
}
.report__meta div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.report__meta dt,
.report__steps dt,
.report__overall span,
.kpi__name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.report__meta dd,
.report__steps dd {
  margin: 0;
  font-weight: 560;
}
.report__meta abbr {
  text-decoration: none;
}
.report__key {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-light-muted);
}
.report__status {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.report__overall {
  display: grid;
  gap: 0.25rem;
}
.report__overall strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #c9f7df;
  transition: opacity 0.6s var(--ease-out) 0.15s, translate 0.6s var(--ease-out) 0.15s;
}

/* traffic light: green is on unless JS dims it for the switch-on */
.ampel {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(207, 221, 246, 0.2);
  background: linear-gradient(180deg, #050a1c, #0c1534);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 34px -14px rgba(0, 0, 0, 0.9);
}
.ampel i {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff6b5e;
  opacity: 0.16;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.35);
}
.ampel i:nth-child(2) {
  background: #ffc24d;
}
.ampel i:last-child {
  background: var(--mint);
  opacity: 1;
  box-shadow: 0 0 16px 2px rgba(95, 224, 165, 0.65), inset 0 -2px 3px rgba(0, 0, 0, 0.18);
  transition: opacity 0.4s var(--ease-out), scale 0.6s var(--ease-spring), box-shadow 0.6s var(--ease-out);
}
.ampel i:last-child::after,
.flat__dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  animation: ping 2.4s var(--ease-out) infinite;
}
.js .report.is-dark .ampel i:last-child {
  opacity: 0.16;
  scale: 0.75;
  box-shadow: none;
  transition: none;
}
.js .report.is-dark .ampel i:last-child::after {
  animation: none;
}
.js .report.is-dark .report__overall strong {
  opacity: 0;
  translate: 0 8px;
  transition: none;
}

/* KPI tiles: the 1px grid gaps draw the hairlines; row-1 tiles share their rows (subgrid) */
.kpis {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.kpi {
  grid-column: span 6;
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 1rem;
  min-width: 0;
  padding: var(--pad);
  background: var(--tile);
}
.kpi--privacy {
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-rows: none;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: end;
}
.kpi--privacy :is(.kpi__top, .kpi__foot) {
  grid-column: 1 / -1;
}
.kpi__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.8rem;
}
.kpi__name {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.kpi__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem 0.3rem 0.55rem;
  border: 1px solid rgba(185, 205, 240, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(185, 205, 240, 0.06);
  color: var(--sky-200);
  font: 600 0.64rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kpi__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  rotate: 45deg;
  background: var(--sky-400);
}
.kpi__status--good {
  border-color: rgba(95, 224, 165, 0.35);
  background: rgba(95, 224, 165, 0.08);
  color: #c9f7df;
}
.kpi__status--good::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  rotate: none;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}
.kpi__main {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}
.kpi__value {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 1.9rem + 2.6vw, 4.3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
/* the gradient sits on the span whose text changes (on a parent it leaves ghost digits) */
.kpi__num {
  background: linear-gradient(180deg, #fff, var(--sky-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.3s var(--ease-out);
}
.kpi--privacy .kpi__num {
  background: none;
  color: var(--mint);
}
.kpi__plus,
.units b {
  display: inline-block;
  color: var(--copper-300);
  transition: opacity 0.4s var(--ease-out), scale 0.6s var(--ease-spring);
}
.kpi__plus {
  margin-left: 0.02em;
}
.js .kpi.is-armed .kpi__num {
  font-variant-numeric: tabular-nums;
}
/* before the count starts, the 0 is only a placeholder, like the unlit marks */
.js .kpi.is-armed:not(.is-live) .kpi__num {
  opacity: 0.22;
  transition: none;
}
.js .kpi.is-armed :is(.kpi__plus, .units b) {
  opacity: 0;
  scale: 0.4;
  transition: none;
}
.kpi__label {
  max-width: 36ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-light-muted);
}

/* unit charts: one mask tile per mark; blocks of 5×2 */
.units {
  --unit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='3.1'/%3E%3C/svg%3E");
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  align-self: end;
  justify-self: start;
  gap: calc(var(--pitch) * 0.75);
}
.units--sq {
  /* same area as the dot */
  --unit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='2.25' y='2.25' width='5.5' height='5.5' rx='1.1'/%3E%3C/svg%3E");
}
.units i {
  position: relative;
  width: calc(var(--c) * var(--pitch));
  height: calc(var(--r) * var(--pitch));
}
.units i::before,
.units i::after {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-mask: var(--unit) 0 0 / var(--pitch) var(--pitch) repeat;
  mask: var(--unit) 0 0 / var(--pitch) var(--pitch) repeat;
}
.units i::before {
  background: rgba(185, 205, 240, 0.14);
}
.units i::after {
  background: var(--sky-300);
}
.js .units i::after {
  clip-path: var(--fill, none);
}
/* the plus after the last mark never forces a line break */
.units b {
  width: 0;
  margin: 0 0 calc(var(--pitch) * -0.4) calc(var(--pitch) * -0.75);
  text-indent: 3px;
  font: 700 1rem/1 var(--font-display);
}
.kpi__foot {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font: 500 0.72rem/1.5 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--text-light-muted);
}

/* privacy: a flat line that is good news for once */
.flat {
  --nx: clamp(3.4rem, 30%, 12rem); /* where the note starts and the arrow lands */
  display: grid;
  min-width: 0;
}
.flat__note {
  justify-self: start;
  margin-left: var(--nx);
  padding-right: 0.5rem;
  font: 600 1.3rem/1.05 var(--font-hand);
  color: var(--copper-200);
  rotate: -2deg;
  transition: opacity 0.6s var(--ease-out) 1.4s, translate 0.6s var(--ease-out) 1.4s;
}
.flat__plot {
  position: relative;
  height: 64px;
  background:
    linear-gradient(var(--line), var(--line)) 0 14px / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 32px / 100% 1px no-repeat;
}
.flat__plot::before {
  /* x axis = zero line */
  content: '';
  position: absolute;
  left: 22px;
  right: 0;
  top: 51px;
  height: 1px;
  background: rgba(207, 221, 246, 0.22);
}
.flat__tick,
.flat__now {
  position: absolute;
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.flat__tick {
  left: 0;
  top: 47px;
}
.flat__now {
  right: 0;
  top: 62px;
}
.flat__line {
  position: absolute;
  left: 22px;
  right: 17px;
  top: 50px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(95, 224, 165, 0.5);
  transform-origin: 0 50%;
  transition: transform 1.4s var(--ease-in-out) 0.2s;
}
.flat__dot {
  position: absolute;
  right: 12px;
  top: 46px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 2px var(--tile), 0 0 12px var(--mint);
  transition: scale 0.45s var(--ease-spring) 1.45s;
}
.flat__arrow {
  position: absolute;
  left: calc(var(--nx) - 26px);
  top: 4px;
  width: 30px;
  height: 40px;
  fill: none;
  stroke: var(--copper-300);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.5s var(--ease-out) 1.55s;
}
.js .flat.is-armed .flat__line {
  transform: scaleX(0);
  transition: none;
}
.js .flat.is-armed .flat__dot {
  scale: 0;
  transition: none;
}
.js .flat.is-armed :is(.flat__note, .flat__arrow) {
  opacity: 0;
  translate: 0 6px;
  transition: none;
}
.kpi__foot--check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
}
.kpi__ok {
  color: var(--mint);
}
.kpi__recheck {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid rgba(207, 221, 246, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(233, 240, 252, 0.04);
  color: var(--text-light);
  font: 600 0.7rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.3s, background-color 0.3s;
}
.kpi__recheck:hover {
  border-color: rgba(207, 221, 246, 0.6);
  background: rgba(233, 240, 252, 0.09);
}

/* next steps: the bridge to the contact section */
.report__next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) var(--pad);
  border-top: 1px solid var(--line);
}
.report__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.5rem;
  margin: 0;
}
.report__steps div {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 0.8rem;
}
.report__steps div::before {
  /* open milestone, like "geplant" in the Gantt chart */
  content: '';
  grid-row: span 2;
  justify-self: center;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--mint);
  border-radius: 2px;
  rotate: 45deg;
}
.report__steps div + div::before {
  /* open decision */
  width: 12px;
  height: 12px;
  border-color: var(--copper-300);
  border-radius: 50%;
}
.report__steps dd {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

/* motion: paused = end states at once; pings only while the report is on screen */
.is-paused :is(.ampel i, .report__overall strong, .kpi__num, .kpi__plus, .units b, .flat__line, .flat__dot, .flat__note, .flat__arrow) {
  transition: none !important;
}
.js .report:not(.is-onscreen) :is(.ampel i, .flat__dot)::after {
  animation-play-state: paused;
}
.no-js :is(.ampel i, .flat__dot)::after {
  animation: none;
}

@media (forced-colors: active) {
  .kpis {
    background: CanvasText;
  }
  .ampel,
  .units i::before,
  .units i::after,
  .flat__line,
  .flat__dot {
    forced-color-adjust: none;
  }
  .units i::before {
    background: GrayText;
  }
  .units i::after,
  .flat__line,
  .flat__dot {
    background: CanvasText;
  }
}

/* numbers: tablet and phone layouts */
@media (min-width: 961px) and (max-width: 1100px) {
  .report {
    --pitch: 14px;
  }
}

@media (max-width: 960px) {
  .report {
    --pitch: 12px;
  }
}

@media (max-width: 767px) {
  .report {
    --pitch: 9px;
  }
  .report__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }
  .report__status {
    order: -1;
  }
  .ampel {
    grid-auto-flow: column;
    padding: 6px 8px;
    border-radius: var(--radius-pill);
  }
  .ampel i {
    width: 14px;
    height: 14px;
  }
  .report__overall {
    grid-auto-flow: column;
    align-items: baseline;
    gap: 0.6rem;
  }
  .report__overall strong {
    font-size: 1.3rem;
  }
  .report__meta {
    gap: 0.35rem 1.2rem;
  }
  .kpi {
    row-gap: 0.85rem;
  }
  .kpi--privacy {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  .report {
    --pitch: 8px;
    --pad: 1rem;
  }
}

.orgs {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
}
.orgs__title {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: 0 auto 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.orgs__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.orgs__list {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.orgs__marquee:hover .orgs__list {
  animation-play-state: paused;
}
.orgs__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding-inline: clamp(1.4rem, 0.9rem + 1.8vw, 2.6rem);
  white-space: nowrap;
  opacity: 0.62;
  transition: opacity 0.3s;
}
.orgs__list li:hover {
  opacity: 1;
}
/* logos as white silhouettes, optically sized (equal area) via --h */
.orgs__list img {
  display: block;
  width: auto;
  max-width: none;
  height: calc(var(--h) * var(--logo-k, 1));
}
/* the name next to an emblem-only logo */
.orgs__combo span {
  font-family: var(--font-display);
  font-size: calc(clamp(0.88rem, 0.8rem + 0.3vw, 1.05rem) * var(--logo-k, 1));
  font-weight: 550;
  letter-spacing: 0;
  color: #fff;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------------- contact */
.section--contact {
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(232, 137, 90, 0.22), transparent 70%),
    radial-gradient(38% 30% at 50% 26%, rgba(110, 145, 230, 0.16), transparent 72%),
    var(--ink-950);
}
.contact__inner {
  display: grid;
  justify-items: center;
}
.contact__avatar {
  position: relative;
  width: clamp(120px, 90px + 6vw, 168px);
  aspect-ratio: 1;
  margin-bottom: 1.8rem;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--ink-500), var(--ink-800) 70%);
  box-shadow: 0 0 0 2px rgba(242, 180, 138, 0.6), 0 0 0 10px rgba(242, 180, 138, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.contact__avatar-svg {
  width: 100%;
  height: 100%;
}
.contact__title {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.6rem);
  line-height: 1.02;
}
.contact__title em {
  display: block;
  margin-top: 0.15em;
  font-size: 0.72em;
  color: var(--copper-300);
}
.contact__intro {
  margin-top: 1.3rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-light-muted);
}
.contact__actions {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
}
.contact__mail {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
}
.contact__mail-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.contact__mail-value {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 0.9rem + 2.6vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text-light);
  background: linear-gradient(90deg, var(--copper-300), var(--copper-300)) no-repeat 0 100% / 0% 2px;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
  padding-bottom: 0.1em;
  overflow-wrap: anywhere;
}
.contact__mail:hover .contact__mail-value {
  background-size: 100% 2px;
  color: #fff;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.6rem;
  max-width: 56rem;
}

/* ---------------------------------------------------------------- footer */
.footer {
  padding: 2.2rem 0 calc(2.2rem + env(safe-area-inset-bottom));
  background: var(--ink-950);
  border-top: 1px solid rgba(207, 221, 246, 0.08);
  font-size: 0.86rem;
  color: var(--text-light-muted);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}
.footer__note {
  flex: 1 1 22rem;
  text-align: center;
}
.footer__nav {
  display: flex;
  gap: 1.2rem;
}
.footer__nav a {
  text-decoration: none;
  padding: 0.4rem 0;
}
.footer__nav a:hover {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 200;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100vw - 2rem);
  text-align: center;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 23, 59, 0.92);
  border: 1px solid rgba(242, 180, 138, 0.45);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 560;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s, transform 0.5s var(--ease-spring);
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- subpages: legal */
.page-sub {
  background: var(--sand-50);
  color: var(--text-dark);
  color-scheme: light;
}
.page-sub .footer {
  background: var(--sand-100);
  border-top-color: rgba(14, 23, 53, 0.08);
  color: var(--text-dark-muted);
}
.page-sub .footer__nav a:hover,
.page-sub .footer__nav a[aria-current='page'] {
  color: var(--text-dark);
}
.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), 52rem);
  margin: 0 auto;
  padding: 1.6rem 0;
}
.subnav__brand {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
}
.subnav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(14, 23, 53, 0.18);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.subnav__back:hover {
  background: #fff;
  border-color: rgba(14, 23, 53, 0.35);
}
.legal {
  width: min(100% - 2 * var(--gutter), 52rem);
  margin: 0 auto;
  padding: clamp(2rem, 1rem + 4vw, 5rem) 0 clamp(4rem, 3rem + 4vw, 7rem);
}
.legal .section__kicker {
  color: var(--copper-700);
}
.legal__title {
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  hyphens: manual;
}
.legal__lead {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-dark-muted);
  max-width: 40rem;
}
.legal section {
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(14, 23, 53, 0.1);
}
.legal h2 {
  font-size: 1.3rem;
  color: var(--text-dark);
}
.legal p,
.legal li {
  margin-top: 0.7rem;
  line-height: 1.7;
  color: var(--text-dark-muted);
}
.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
}
.legal li {
  margin-top: 0.3rem;
}
.legal a {
  color: var(--copper-700);
  text-underline-offset: 3px;
}
.legal__toc {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid rgba(14, 23, 53, 0.08);
}
.legal__toc ol {
  list-style: decimal;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}
.legal__toc li {
  margin-top: 0.25rem;
}
@media (max-width: 600px) {
  .legal__toc ol {
    columns: 1;
  }
}
.legal__box {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem 1.1rem;
  border-radius: var(--radius-m);
  border: 1.5px solid rgba(181, 86, 42, 0.45);
  background: #fff;
}
.legal__box h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
}
.legal__box p {
  margin-top: 0.4rem;
}
.legal__date {
  margin-top: 2rem !important;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------- 404 */
.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(42, 61, 117, 0.8), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(232, 137, 90, 0.18), transparent 70%),
    var(--ink-900);
}
.lost {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 3rem var(--gutter);
  text-align: center;
}
.lost__cloud {
  position: relative;
  width: 170px;
  height: 100px;
  margin-bottom: -6px;
  translate: 52px 0;
  animation: lost-float 4s var(--ease-in-out) 6 alternate;
}
.lost__cloud svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lost__cloud path {
  fill: rgba(233, 240, 252, 0.08);
  stroke: rgba(214, 227, 248, 0.6);
  stroke-width: 1.4;
}
.lost__q,
.lost__x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 6px;
  font-family: var(--font-hand);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--sky-300);
  transition: opacity 0.35s, transform 0.5s var(--ease-spring);
}
.lost__x {
  color: var(--mint);
  opacity: 0;
  transform: scale(0.4) rotate(-10deg);
}
.is-found .lost__q {
  opacity: 0;
  transform: scale(1.6) rotate(10deg);
}
.is-found .lost__x {
  opacity: 1;
  transform: none;
}
.lost__dots {
  position: absolute;
  left: 18px;
  bottom: -26px;
  display: block;
  width: 40px;
  height: 30px;
}
.lost__dots i {
  position: absolute;
  border-radius: 50%;
  border: 1.2px solid rgba(214, 227, 248, 0.55);
  background: rgba(233, 240, 252, 0.08);
}
.lost__dots i:nth-child(1) {
  width: 12px;
  height: 12px;
  left: 14px;
  top: 0;
}
.lost__dots i:nth-child(2) {
  width: 8px;
  height: 8px;
  left: 6px;
  top: 14px;
}
.lost__dots i:nth-child(3) {
  width: 5px;
  height: 5px;
  left: 0;
  top: 24px;
}
@keyframes lost-float {
  to {
    transform: translateY(-8px);
  }
}
.lost__face {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--ink-500), var(--ink-800) 70%);
  box-shadow: 0 0 0 2px rgba(242, 180, 138, 0.6), 0 0 0 12px rgba(242, 180, 138, 0.07), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.lost__face svg {
  width: 100%;
  height: 100%;
}
.lost__code {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-300);
}
.lost__title {
  margin-top: 0.8rem;
  max-width: 16ch;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
}
.lost__title em {
  color: var(--copper-300);
}
.lost__text {
  margin-top: 1.1rem;
  max-width: 32rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-light-muted);
}
.lost__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------- reveal */
.split-line {
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-line-mask {
  padding-inline: 0.08em;
  margin-inline: -0.08em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

/* JS-only initial states of the hero intro (animated in by main.js) */
.js:not(.is-ready) .hero__intro > *,
.js:not(.is-ready) .hero__meta > *,
.js:not(.is-ready) .thought {
  visibility: hidden;
}
/* If the scripts fail, a tiny inline watchdog in the <head> switches to the
   static .no-js layout at DOMContentLoaded. On a slow connection the text
   appears after 3 s anyway; only the clouds wait for their layout. */
@keyframes late-reveal {
  to {
    visibility: visible;
  }
}
.js:not(.is-ready) .hero__intro > :is(.hero__eyebrow, .hero__title, .hero__role, .hero__tagline, .hero__cta) {
  animation: late-reveal 0s 3s forwards;
}
/* lights off until the intro switches them on (the photo still counts as first paint) */
@media (prefers-reduced-motion: no-preference) {
  /* photo and eye rig fade in together from the dark (opacity is cheap to animate) */
  .js:not(.is-ready) .portrait__inner {
    opacity: 0.25;
  }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .evidence li {
    grid-template-columns: auto 1fr;
  }
  .evidence__src {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .principles__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .voice,
  .voice:nth-child(5),
  .voice:nth-child(6) {
    grid-column: span 3;
  }
  .voice:nth-child(6),
  .voice--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .about__grid,
  .match__ui {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: block;
  }

  .match__tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .match__tab:hover {
    transform: none;
  }
}

@media (max-height: 820px) {
  .hero[data-mode='wide'] .thought__panel {
    padding: 2.1rem 2.5rem 2.1rem;
  }
  .hero[data-mode='wide'] .thought__text {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .hero[data-mode='wide'] .thought__panel .chips {
    margin-top: 0.7rem;
  }
  .hero[data-mode='wide'] .thought__art {
    width: 84px;
    height: 54px;
  }
  .hero[data-mode='wide'] .thought__next {
    margin-top: 0.8rem;
  }
  .hero[data-mode='wide'] .thought__panel.is-scroll:not(.is-end) .thought__more {
    right: 2.5rem;
    bottom: 2.1rem;
  }
}

/* laptops with little height: a compact hint that clears the availability block … */
@media (min-width: 768px) and (max-height: 760px) {
  .hero__hint {
    font-size: 1.2rem;
  }
  .hero__hint-text {
    padding-top: 0.5rem;
  }
}

/* … and a slimmer headline block */
@media (min-width: 768px) and (max-height: 820px) and (min-aspect-ratio: 4/5) {
  .hero__tagline {
    display: none;
  }
  .hero__title {
    font-size: min(var(--fs-hero), 10svh);
  }
  .hero__cta {
    margin-top: 1.2rem;
  }
}

/* Portrait-orientation / phone hero composition (also used for phones in landscape) */
@media (max-width: 767px), (max-aspect-ratio: 4/5), (max-height: 500px) {
  .hero {
    --portrait-top: 15svh;
    --ph: min(84svh, 150vw);
    min-height: 560px;
  }
  .hero + .section .cloud-edge--top,
  .cloud-edge {
    height: 66px;
    background-size: 720px 66px;
  }
  .cloud-edge--top {
    top: -65px;
  }
  .hero__hint {
    display: none;
  }
  .hero__hint-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    font-family: var(--font-hand);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--copper-300);
  }
  .hero__hint-inline svg {
    width: 26px;
    height: 26px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .thought__badge {
    font-size: 0.82rem;
    right: 0;
    top: -12px;
  }
  .hero__stage::after {
    inset: 0;
    height: auto;
    background: linear-gradient(180deg, transparent 48%, rgba(6, 11, 31, 0.72) 72%, var(--ink-950) 92%);
  }
  .hero__intro {
    left: 1.25rem;
    right: 1.25rem;
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
    max-width: none;
  }
  .hero__eyebrow {
    font-size: 0.72rem;
  }
  .hero__title {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }
  .hero__role {
    margin-top: 0.7rem;
    font-size: 0.86rem;
  }
  .hero__tagline {
    display: none;
  }
  .hero__cta {
    margin-top: 1.1rem;
  }
  .hero__cta .btn {
    flex: 1 1 0;
    min-height: 46px;
    padding-inline: 1rem;
    font-size: 0.92rem;
  }
  .hero__meta {
    display: none;
  }
  .hero__phone-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
  }
  .hero__intro .available {
    display: inline-flex;
    padding: 0.36rem 0.75rem 0.36rem 0.65rem;
    font-size: 0.76rem;
  }
  .motion-toggle--phone {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(207, 221, 246, 0.3);
    background: rgba(10, 18, 48, 0.45);
  }
  .scroll-cue {
    display: none;
  }
  .thought__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .thought__short {
    display: block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.1;
  }
  .thought__icon {
    width: 19px;
    height: 19px;
  }
  .thought__panel {
    padding: 2.9rem 2.2rem 2.7rem 2.6rem;
  }
  .thought__panel.is-scroll:not(.is-end) .thought__more {
    right: 2.2rem;
    bottom: 2.7rem;
  }
  .thought__close {
    right: 2.25rem;
    top: 2.35rem;
    background: rgba(10, 18, 48, 0.92);
  }
  .thought__next {
    margin-left: 0.3rem;
  }
  .thought__art {
    width: 80px;
    height: 52px;
    margin-right: 2.9rem;
  }
  .thought__kicker {
    font-size: 1.25rem;
  }
  .thought__title {
    font-size: 1.25rem;
  }
  .thought__text {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .thought__next {
    margin-top: 0.8rem;
  }
  .hero__hint {
    font-size: 1.2rem;
  }
  .hero__hint-arrow {
    width: 40px;
    height: 44px;
  }
  .hero__hint-text {
    padding-top: 1.2rem;
  }
}

/* phones in landscape: keep the phone composition, give it room and let the page scroll */
@media (max-height: 500px) and (min-width: 560px) {
  .hero {
    --portrait-top: 92px;
    --ph: 640px;
    height: auto;
    min-height: 820px;
  }
  .hero__intro {
    left: 50%;
    right: auto;
    width: min(30rem, 100% - 2.5rem);
    translate: -50% 0;
  }
}

@media (pointer: coarse) {
  .thought__close {
    width: 44px;
    height: 44px;
  }
  .thought__next,
  .thought__panel.is-scroll:not(.is-end) .thought__more {
    min-height: 44px;
  }
}

/* tablets in portrait: the phone composition, scaled up */
@media (min-width: 768px) and (max-aspect-ratio: 4/5) {
  .hero__title {
    font-size: clamp(3.6rem, 7vw, 5.4rem);
  }
  .hero__role {
    font-size: 1.05rem;
  }
  .hero__tagline {
    display: block;
  }
  .hero__intro {
    max-width: 40rem;
  }
  .hero__cta .btn {
    flex: 0 0 auto;
  }
  .hero__intro .available {
    font-size: 0.86rem;
  }
  .thought__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .thought__short {
    display: none;
  }
}

@media (max-width: 400px) {
  .evidence__src {
    white-space: normal;
  }
}

/* very small phones (320 px) */
@media (max-width: 359px) {
  .about .facts {
    grid-template-columns: 1fr;
  }
  .hero__cta {
    flex-direction: column;
  }
  .hero__cta .btn {
    width: 100%;
  }
}

/* short phones (iPhone SE/13 with browser bars): a more compact intro block */
@media (max-width: 767px) and (max-height: 760px) {
  .hero {
    --portrait-top: 13svh;
  }
  .hero__hint-inline {
    margin-bottom: 0.4rem;
    font-size: 1.02rem;
  }
  .hero__hint-inline svg {
    width: 20px;
    height: 20px;
  }
  .hero__intro {
    bottom: calc(4.1rem + env(safe-area-inset-bottom));
  }
  .thought__text {
    font-size: 0.84rem;
    line-height: 1.45;
  }
  .thought__panel .chips li:nth-child(n + 4) {
    display: none;
  }
  /* short phones: the card is about the facts – no illustration, a little less air between them */
  .hero[data-mode='tall'] .thought__art {
    display: none;
  }
  .hero[data-mode='tall'] .thought__facts {
    gap: 0.35rem;
  }
  .hero[data-mode='tall'] :is(.thought__kicker, .thought__title) {
    padding-right: 48px;
  }
  .hero[data-mode='tall'] .thought__panel {
    padding-top: 2.45rem;
    padding-bottom: 2.3rem;
  }
  .hero[data-mode='tall'] .thought__close {
    top: 1.95rem;
  }
  .hero[data-mode='tall'] .thought__panel.is-scroll:not(.is-end) .thought__more {
    bottom: 2.3rem;
  }
  /* the sources line repeats what the text already names: room for the text instead */
  .hero__phone-row {
    margin-bottom: 0.6rem;
  }
  .hero__intro .available {
    font-size: 0.72rem;
  }
  .hero__eyebrow {
    display: none;
  }
  .hero__title {
    margin-top: 0;
    font-size: clamp(2.2rem, 10vw, 2.9rem);
  }
  .hero__role {
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }
  .hero__cta {
    margin-top: 0.85rem;
  }
  .hero__cta .btn {
    min-height: 44px;
    font-size: 0.88rem;
  }
  .thought__kicker {
    font-size: 1.1rem;
  }
  .thought__title {
    font-size: 1.15rem;
  }
  .thought__art {
    width: 70px;
    height: 45px;
  }
}
/* short screens (phone landscape, 200 % zoom): the card is about the text */
.thought__panel.is-compact .thought__art {
  display: none;
}
.thought__panel.is-compact .thought__kicker {
  font-size: 1.05rem;
}
.thought__panel.is-compact :is(.thought__kicker, .thought__title) {
  padding-right: 48px;
}
@media (max-height: 520px) {
  .thought__title {
    font-size: 1.15rem;
  }
}

/* while a card is open on a phone, the cloud edge of the next section fades out of its way */
.hero + .section > .cloud-edge--top {
  transition: opacity 0.4s;
}
.hero.has-open[data-mode='tall'] + .section > .cloud-edge--top {
  opacity: 0;
}

@media (max-width: 767px) {
  :root {
    --nav-h: 64px;
  }
  /* the keyword chips repeat the text; on phones the card stays short without them */
  .hero[data-mode='tall'] .thought__panel .chips {
    display: none;
  }
  .orgs {
    --logo-k: 0.8;
  }
  /* roles as a wrapped row – no separator dots at line starts */
  .hero__role {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0.9rem;
  }
  .hero__sep {
    display: none;
  }
  .toast {
    top: calc(var(--nav-h) + env(safe-area-inset-top) + 0.5rem);
    bottom: auto;
    transform: translateY(-16px) scale(0.96);
  }
  .nav__name {
    font-size: 0.98rem;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .principles__list {
    grid-template-columns: 1fr;
  }
  .match__tabs {
    grid-template-columns: 1fr;
  }
  .evidence li {
    grid-template-columns: auto 1fr;
  }
  .evidence__src {
    grid-column: 2;
    justify-self: start;
  }
  .voices__track {
    grid-template-columns: 1fr;
  }
  .voice,
  .voice:nth-child(5),
  .voice:nth-child(6),
  .voice--featured {
    grid-column: auto;
  }
  .voice--featured {
    padding: 2.1rem 1.8rem 1.7rem;
  }
  .contact__links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .contact__links .pill {
    justify-content: center;
    width: 100%;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__note {
    flex: none;
  }
  .footer__nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  .motion-toggle--footer {
    flex-basis: 100%;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .gantt__row--next .gantt__name {
    display: none;
  }
  .gantt__row--next .gantt__org {
    -webkit-line-clamp: unset;
    display: block;
    white-space: nowrap;
  }
  .gantt__name,
  .gantt__org {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .gantt__row {
    min-height: 60px;
  }
}

/* Gantt becomes a vertical timeline on small screens */
@media (max-width: 860px) {
  button.gantt__bar {
    padding-right: 2.6rem;
  }
  button.gantt__bar::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    rotate: 45deg;
    opacity: 0.7;
    transition: rotate 0.3s var(--ease-out), margin 0.3s;
  }
  button.gantt__bar[aria-expanded='true']::after {
    rotate: 225deg;
    margin-top: -2px;
  }
  .gantt {
    padding-top: 0;
  }
  .gantt__axis,
  .gantt__today,
  .gantt__legend {
    display: none;
  }
  .gantt__rows {
    gap: 0;
    padding: 0 0 0 1.6rem;
    background: none;
    border-left: 1.5px solid rgba(207, 221, 246, 0.18);
  }
  .gantt__row {
    display: block;
    min-height: 0;
    padding: 0 0 1.6rem;
  }
  .gantt__row::before {
    content: '';
    position: absolute;
    left: calc(-1.6rem - 6px);
    top: 1.1rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--copper-400);
    box-shadow: 0 0 0 4px var(--ink-900);
  }
  .gantt__row[data-track='edu']::before {
    background: var(--sky-300);
  }
  .gantt__row[data-track='next']::before {
    background: var(--mint);
  }
  .gantt__row--short .gantt__bar {
  overflow: visible;
}
.gantt__row--short .gantt__name,
.gantt__row--short .gantt__org {
  position: relative;
  left: calc(100% + 1.1rem);
  width: max-content;
  max-width: 22rem;
  color: var(--text-light);
}
.gantt__row--short .gantt__org {
  color: var(--text-light-muted);
}
.gantt__row--next .gantt__name,
.gantt__row--next .gantt__org {
  position: relative;
  left: auto;
  right: calc(100% + 1.1rem + 14px);
  align-self: flex-end;
  text-align: right;
}
.gantt__row--next .gantt__bar {
  align-items: flex-end;
}
.gantt__row[data-milestone]::after {
    display: none;
  }
  .gantt__bar {
    width: 100%;
    padding: 0.85rem 1rem;
  }
  .gantt__row[data-ongoing] .gantt__bar {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .gantt__name {
    white-space: normal;
    font-size: 1rem;
  }
  .gantt__when {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
  }
  .gantt__row--short .gantt__name,
  .gantt__row--short .gantt__org,
  .gantt__row--next .gantt__name,
  .gantt__row--next .gantt__org {
    position: static;
    width: auto;
    max-width: none;
    color: inherit;
    text-align: left;
    align-self: auto;
  }
  .gantt__row--next .gantt__bar {
    align-items: stretch;
  }
  .gantt__org {
    white-space: normal;
  }
  .gantt__detail {
    position: static;
    width: auto;
    margin-top: 0.6rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(13, 23, 59, 0.6);
    box-shadow: none;
    display: none;
  }
  .gantt__row.is-open .gantt__detail,
  .no-js .gantt__detail {
    display: block;
  }
  .gantt__row:hover .gantt__detail {
    transform: none;
  }
}

/* ---------------------------------------------------------------- no-js fallback
   Without JavaScript: portrait, name, then the five skills as readable cards. */
.no-js .hero {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: var(--nav-h) 0 5rem;
}
.no-js .hero__stage {
  display: contents;
}
.no-js .portrait {
  order: 1;
  position: relative;
  left: auto;
  top: auto;
  height: min(72svh, 700px);
  margin: 0 auto;
}
.no-js .hero__intro {
  order: 2;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  max-width: 44rem;
  margin: -7rem var(--gutter) 0;
}
.no-js .hero__meta {
  order: 3;
  position: relative;
  right: auto;
  bottom: auto;
  justify-items: start;
  margin: 1.5rem var(--gutter) 0;
}
.no-js .thoughts {
  order: 4;
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 3rem var(--gutter) 0;
  pointer-events: auto;
}
.no-js .thought {
  position: relative;
  inset: auto;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-l);
  background: rgba(13, 23, 59, 0.85);
  border: 1px solid rgba(207, 221, 246, 0.2);
  pointer-events: auto;
}
.no-js .thought__cloud,
.no-js .thought__toggle,
.no-js .thought__close,
.no-js .thought__next,
.no-js .thought__badge,
.no-js .thought__art,
.no-js .hero__hint,
.no-js .hero__hint-inline,
.no-js .trails,
.no-js .fx,
.no-js .progress,
.no-js .motion-toggle,
.no-js .match__indicator {
  display: none !important;
}
.no-js .hero__stage::after {
  display: none;
}
.no-js .thought__panel {
  position: static;
  display: block !important;
  width: auto;
  padding: 0;
}
.no-js .match__panel[hidden] {
  display: block;
  margin-top: 1rem;
}
.no-js .match__tabs,
.no-js .nav__toggle,
.no-js .contact__copy {
  display: none;
}
.no-js .match__ui {
  grid-template-columns: 1fr;
}
.no-js .match__panel .print-only {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
}
.no-js .nav__links {
  display: block;
}
@media (max-width: 960px) {
  .no-js .nav__links {
    flex: 1;
    min-width: 0;
  }
  .no-js .nav__links ul {
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .no-js .nav__name {
    display: none;
  }
}
.no-js .nav {
  background: rgba(10, 18, 48, 0.88);
}
.no-js .orgs__list,
.no-js .hero__glow,
.no-js .available__dot::after,
.no-js .scroll-cue__line::after {
  animation: none;
}
.no-js .orgs__list {
  flex-wrap: wrap;
  width: auto;
  justify-content: center;
  row-gap: 0.8rem;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.no-js .orgs__marquee {
  -webkit-mask-image: none;
  mask-image: none;
}

@media (forced-colors: active) {
  .available__dot {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

/* ---------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .orgs__list {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    row-gap: 0.8rem;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
  }
  .orgs__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- print
   Printing the page gives a compact, CV-like document. */
.print-only {
  display: none;
}
@media print {
  @page {
    size: A4;
    margin: 14mm 16mm 16mm;
  }
  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10pt;
    line-height: 1.45;
  }
  /* everything decorative or interactive goes */
  .skip-link, .nav, .mobile-menu, .toast, .hero__bg, .hero__stage::after, .portrait, .trails, .fx,
  .hero__hint, .hero__hint-inline, .scroll-cue, .motion-toggle, .progress, .hero__cta, .thought__cloud,
  .thought__toggle, .thought__close, .thought__next, .thought__more, .thought__art, .thought__badge, .cloud-edge,
  .match__tabs, .gantt__axis, .gantt__today, .gantt__legend, .gantt__bar, .gantt__row--next,
  .gantt__row[data-milestone]::after, .orgs, .contact__avatar, .contact__copy, .contact__links,
  .footer__note, .footer__nav, .fact__stamp, .principle__no, .evidence__check,
  .voice::before, .numbers, .verdict__seal, .section__kicker::before {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  /* reveal-on-scroll and split-text states must not hide anything on paper */
  .reveal,
  .split-line,
  .split-line *,
  .hero__title *,
  .hero__intro > *,
  .hero__meta > *,
  .thought,
  .thought__panel * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    translate: none !important;
  }
  a {
    color: #111 !important;
    text-decoration: none !important;
  }
  .section,
  .hero,
  .section--light,
  .section--dark,
  .section--contact {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 0 7mm !important;
    color: #111 !important;
    overflow: visible !important;
  }
  .container,
  .legal {
    width: auto !important;
    margin: 0 !important;
  }
  /* header block */
  .hero__stage,
  .hero__intro,
  .hero__meta,
  .thoughts,
  .thought {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    pointer-events: auto;
  }
  .hero {
    display: flex !important;
    flex-direction: column;
  }
  .hero__intro {
    order: 1;
  }
  .hero__meta {
    order: 2;
    display: block !important;
    margin: 1mm 0 5mm;
  }
  .hero__stage {
    order: 3;
  }
  .hero__eyebrow,
  .hero__intro .available {
    display: none !important;
  }
  .hero__title {
    margin: 0 !important;
    font-size: 26pt !important;
    line-height: 1.05 !important;
    color: #111 !important;
  }
  .hero__role {
    margin-top: 2mm !important;
    font-size: 11pt !important;
    color: #333 !important;
  }
  .hero__role span {
    color: #b5562a !important;
  }
  .hero__tagline {
    display: block !important;
    margin-top: 1mm !important;
    font-size: 12pt !important;
    color: #333 !important;
  }
  .print-contact {
    margin-top: 2mm;
    font-size: 9.5pt;
    color: #333;
  }
  .available {
    display: inline-flex !important;
    padding: 0 !important;
    border: 0 !important;
    color: #13804f !important;
    font-size: 9.5pt !important;
    font-weight: 600;
  }
  .available__dot {
    display: none !important;
  }
  /* thoughts become the "Kompetenzen" list */
  .thoughts {
    display: grid !important;
    gap: 3.5mm;
  }
  .thoughts::before {
    content: 'Kompetenzen';
    display: block;
    margin-bottom: 1mm;
    font-family: var(--font-display);
    font-size: 13pt;
    font-weight: 700;
    border-bottom: 0.4pt solid #bbb;
    padding-bottom: 1mm;
  }
  .thought__panel,
  .thought__panel[hidden] {
    position: static !important;
    display: block !important;
    transform: none !important;
    width: auto !important;
    max-height: none !important;
    padding: 0 !important;
    color: #111 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    break-inside: avoid;
  }
  .thought__kicker {
    display: none !important;
  }
  .thought__title {
    margin: 0 !important;
    max-width: none !important;
    font-size: 11pt !important;
  }
  .thought__text {
    margin-top: 0.8mm !important;
    font-size: 9.5pt !important;
    line-height: 1.45 !important;
    color: #222 !important;
  }
  .thought__facts strong {
    color: #111 !important;
  }
  .thought__facts li::before {
    background: #b5562a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* an open card or a dimmed intro must not change the printout */
  .hero__intro,
  .hero__meta {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .grades {
    margin-top: 1.5mm !important;
    font-size: 8.5pt !important;
  }
  .grades caption {
    padding-bottom: 0.5mm !important;
    color: #555 !important;
  }
  .grades th,
  .grades td {
    padding: 0.5mm 0 !important;
    border-color: #ccc !important;
    color: #111 !important;
  }
  .grades td {
    color: #b5562a !important;
  }
  .chips {
    gap: 0 !important;
    margin-top: 0.8mm !important;
  }
  .chips li {
    padding: 0 !important;
    border: 0 !important;
    font-size: 8pt !important;
    color: #555 !important;
  }
  .chips li + li::before {
    content: ' · ';
  }
  /* section heads */
  .section__head {
    margin: 0 0 3mm !important;
    max-width: none !important;
  }
  .section__kicker {
    display: none !important;
  }
  .section__title,
  .contact__title {
    margin: 0 !important;
    max-width: none !important;
    font-size: 13pt !important;
    line-height: 1.2 !important;
    color: #111 !important;
    border-bottom: 0.4pt solid #bbb;
    padding-bottom: 1mm;
  }
  .section__title em,
  .contact__title em {
    color: #111 !important;
  }
  .section__intro {
    margin-top: 1.5mm !important;
    font-size: 9.5pt !important;
    color: #444 !important;
  }
  /* about */
  .about__grid {
    display: block !important;
  }
  .about__text {
    font-size: 9.5pt !important;
    color: #222 !important;
    gap: 2mm !important;
  }
  .lead {
    font-size: 10pt !important;
    color: #111 !important;
  }
  .facts {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3mm !important;
    margin-top: 4mm !important;
  }
  .fact,
  .fact--accent,
  .fact--live {
    display: block !important;
    grid-column: auto !important;
    padding: 2mm 0 0 !important;
    border: 0 !important;
    border-top: 0.6pt solid #b5562a !important;
    border-radius: 0 !important;
    color: #111 !important;
  }
  .fact__value,
  .fact--accent .fact__value,
  .fact--live .fact__value {
    display: block;
    font-size: 13pt !important;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }
  .fact__label,
  .fact--accent .fact__label {
    display: block;
    font-size: 8.5pt !important;
    color: #111 !important;
  }
  .fact__sub,
  .fact--accent .fact__sub {
    display: block;
    font-size: 8pt !important;
    color: #555 !important;
  }
  .principles {
    margin-top: 4mm !important;
  }
  .principles__title {
    color: #555 !important;
  }
  .principles__list {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3mm !important;
    margin-top: 1.5mm !important;
  }
  .principle {
    padding: 1.5mm 0 0 !important;
    border-top: 0.4pt solid #bbb !important;
  }
  .principle::before {
    display: none !important;
  }
  .principle h4 {
    margin: 0 !important;
    font-size: 10pt !important;
    color: #111 !important;
  }
  .principle p {
    margin-top: 0.8mm !important;
    font-size: 8.5pt !important;
    color: #333 !important;
  }
  /* role check: all three panels */
  .match__ui {
    display: block !important;
  }
  .match__panel,
  .match__panel[hidden] {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 3mm;
    break-inside: avoid;
  }
  .match__panel .print-only {
    margin-bottom: 1mm;
    font-family: var(--font-display);
    font-size: 10.5pt;
    font-weight: 700;
  }
  .evidence li {
    display: block !important;
    padding: 0.6mm 0 0.6mm 4mm !important;
    border: 0 !important;
    position: relative;
  }
  .evidence li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #13804f;
    font-weight: 700;
  }
  .evidence p {
    display: inline;
    font-size: 9pt !important;
    color: #222 !important;
  }
  .evidence strong {
    color: #111 !important;
  }
  .evidence__src {
    display: inline !important;
    padding: 0 0 0 1.5mm !important;
    font-size: 7.5pt !important;
    color: #777 !important;
  }
  .evidence__src::before {
    content: '– ';
  }
  /* career as a dated list */
  .gantt {
    padding: 0 !important;
  }
  .gantt__rows {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  .gantt__row {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-bottom: 2.5mm;
    break-inside: avoid;
  }
  .gantt__row::before {
    display: none !important;
  }
  .gantt__detail {
    position: static !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    color: #111 !important;
  }
  .gantt__time {
    font-size: 8.5pt !important;
    color: #b5562a !important;
  }
  .gantt__detail h3 {
    margin-top: 0.3mm !important;
    font-size: 10pt !important;
    color: #111 !important;
  }
  .gantt__detail ul {
    margin-top: 0.8mm !important;
    gap: 0.3mm !important;
  }
  .gantt__detail li {
    font-size: 9pt !important;
    color: #333 !important;
  }
  .gantt__detail li::before {
    background: #b5562a !important;
  }
  /* references */
  .verdict {
    display: block !important;
    margin: 2mm 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #333 !important;
    font-size: 9pt !important;
  }
  .verdict strong {
    color: #111 !important;
  }
  .voices__track {
    display: block !important;
  }
  .voice {
    display: block !important;
    margin: 0 0 2.5mm !important;
    padding: 0 0 0 3mm !important;
    border: 0 !important;
    border-left: 1pt solid #b5562a !important;
    border-radius: 0 !important;
    break-inside: avoid;
  }
  .voice blockquote p {
    font-size: 10pt !important;
    color: #111 !important;
  }
  .voice figcaption {
    display: block !important;
    margin-top: 0.8mm;
    padding: 0 !important;
    border: 0 !important;
    font-size: 8pt;
    color: #555 !important;
  }
  .voice figcaption strong,
  .voice figcaption span {
    display: inline !important;
    color: #555 !important;
  }
  .voice figcaption span::before {
    content: ', ';
  }
  /* contact */
  .section--contact {
    text-align: left !important;
  }
  .contact__inner {
    display: block !important;
  }
  .contact__intro {
    font-size: 9.5pt !important;
    color: #333 !important;
  }
  .contact__actions {
    display: block !important;
    margin-top: 2mm !important;
  }
  .contact__mail-label {
    display: none !important;
  }
  .contact__mail-value {
    font-size: 12pt !important;
    color: #111 !important;
  }
  .footer {
    padding: 0 !important;
    border: 0 !important;
    color: #111 !important;
  }
  .footer__inner {
    display: block !important;
  }
  .footer__copy {
    display: none !important;
  }
  .footer__print {
    display: block !important;
    margin-top: 3mm;
    padding-top: 2mm;
    border-top: 0.4pt solid #bbb;
    font-size: 9pt;
    color: #111 !important;
  }
  h2,
  h3,
  h4 {
    break-after: avoid;
  }
  .section__head,
  .section__title,
  .hero__tagline {
    break-inside: avoid;
    break-after: avoid;
  }
  .hero__tagline {
    max-width: none !important;
  }
}

/* phones without the moving marquee (no JS, reduced motion): a compact logo grid */
@media (max-width: 479px) {
  .no-js .orgs {
    --logo-k: 0.72;
  }
  .no-js .orgs__list {
    row-gap: 0.4rem;
  }
  .no-js .orgs__list li {
    min-height: 48px;
    padding-inline: 0.8rem;
  }
}
@media (max-width: 479px) and (prefers-reduced-motion: reduce) {
  .orgs {
    --logo-k: 0.72;
  }
  .orgs__list {
    row-gap: 0.4rem;
  }
  .orgs__list li {
    min-height: 48px;
    padding-inline: 0.8rem;
  }
}

/* phones in landscape: the toast sits in the navigation band, clear of an open card
   (after the phone rules on purpose, so it also wins on narrow landscape phones) */
@media (max-height: 500px) {
  .toast {
    top: calc(env(safe-area-inset-top) + 0.5rem);
    bottom: auto;
    transform: translateY(-16px) scale(0.96);
  }
}
