/* ════════════════════════════════════════════════════════════════════
   IxI-Enki Showcase — Thesis-Default-Theme (HTL Leonding Palette)
   Light mode only · Quelle: assets/diagrams/themes/00_thesis_default
   ════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary:   #2E4F8F;
  --secondary: #72ADCB;
  --accent:    #F28D2C;
  --warning:   #E5A832;
  --error:     #B33130;
  --success:   #4671A3;
  --ink:       #253650;
  --muted:     #7a90a8;
  --surface:   #f6f9fe;
  --border:    #D8E4F4;
  --bg:        #ffffff;
  --page-bg:   #eef2f8;
  --glass:     rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.45);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --shadow-sm: 0 1px 2px rgba(46,79,143,0.08);
  --shadow:    0 1px 3px rgba(46,79,143,0.12), 0 1px 2px rgba(46,79,143,0.08);
  --shadow-md: 0 8px 24px rgba(46,79,143,0.12), 0 2px 6px rgba(46,79,143,0.08);
  --radius: 10px;
  /* gradient_all subset — soft bg blobs */
  --color-f-6:  #5d7697;
  --color-f-10: #dce6f7;
  --color-g-7:  #f6cfa8;
  --color-a-3:  #e6ac95;
  --color-c-4:  #a7bad4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Animierter Hintergrund: Präsentations-Gradient + driftende Farbflächen + Raster ── */
.bg-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-layer::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('../img/bg_soft.png') center / cover no-repeat;
  opacity: .22;
}
.bg-parallax { position: absolute; inset: 0; will-change: transform; }
.bg-parallax--grid {
  z-index: 2;
  inset: auto;
  left: 0;
  right: 0;
  top: calc(-1 * var(--bg-grid-parallax-slack, 24vh));
  height: calc(100% + 2 * var(--bg-grid-parallax-slack, 24vh));
}
/* color mesh sits BEHIND the grid ("hinter den karierten Gittern") */
.bg-parallax--grad { z-index: 1; }
.bg-parallax--blob1 { z-index: 3; }
.bg-parallax--blob2 { z-index: 4; }
.bg-parallax--blob3 { z-index: 5; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,79,143,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,79,143,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 115% 130% at 50% 40%, #000 48%, transparent 96%);
  -webkit-mask-image: radial-gradient(ellipse 115% 130% at 50% 40%, #000 48%, transparent 96%);
}
/* Soft palette blobs — the "wabbernde" colour mesh behind the grid */
.bg-gradient-blobs {
  position: absolute; inset: 0;
  opacity: .19;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 45%, transparent 95%);
  animation: gradMeshSway 64s ease-in-out infinite alternate;
}
.bg-grad-blob {
  position: absolute; border-radius: 50%;
  filter: blur(64px);
}
.bg-grad-blob--1 {
  width: 56vw; max-width: 680px; height: 56vw; max-height: 680px;
  top: 4%; left: -10%;
  background: radial-gradient(circle, var(--color-c-4) 0%, #93a9c8 46%, transparent 72%);
  animation: gradDrift1 26s ease-in-out infinite alternate;
}
.bg-grad-blob--2 {
  width: 48vw; max-width: 560px; height: 48vw; max-height: 560px;
  top: 40%; right: -8%;
  background: radial-gradient(circle, #e6bd92 0%, #dca878 42%, transparent 73%);
  animation: gradDrift2 33s ease-in-out infinite alternate; animation-delay: -9s;
}
.bg-grad-blob--3 {
  width: 52vw; max-width: 620px; height: 52vw; max-height: 620px;
  bottom: -14%; left: 20%;
  background: radial-gradient(circle, var(--color-f-6) 0%, rgba(46,79,143,0.42) 45%, transparent 74%);
  animation: gradDrift3 30s ease-in-out infinite alternate; animation-delay: -16s;
}
.bg-grad-blob--4 {
  width: 42vw; max-width: 500px; height: 42vw; max-height: 500px;
  top: 20%; left: 36%;
  background: radial-gradient(circle, #e3ba8c 0%, #d7a06f 44%, transparent 73%);
  animation: gradDrift4 37s ease-in-out infinite alternate; animation-delay: -7s;
}
@keyframes gradMeshSway {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(2%, -1.4%, 0); }
  100% { transform: translate3d(-2.4%, 1.8%, 0); }
}
@keyframes gradDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(46px, 30px) scale(1.08); }
  65%  { transform: translate(18px, 62px) scale(1.04); }
  100% { transform: translate(-38px, 16px) scale(1.12); }
}
@keyframes gradDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  35%  { transform: translate(-54px, -30px) scale(1.12); }
  70%  { transform: translate(-18px, 30px) scale(1.06); }
  100% { transform: translate(42px, -42px) scale(1.1); }
}
@keyframes gradDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(40px, -44px) scale(1.1); }
  75%  { transform: translate(-30px, -8px) scale(1.05); }
  100% { transform: translate(-46px, 42px) scale(1.14); }
}
@keyframes gradDrift4 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-36px, 34px) scale(1.08); }
  66%  { transform: translate(34px, 18px) scale(1.05); }
  100% { transform: translate(20px, -38px) scale(1.12); }
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.blob-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(114,173,203,0.45), transparent 65%); top: -160px; left: -120px; animation: drift1 26s ease-in-out infinite alternate; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(242,141,44,0.22), transparent 65%); top: 30%; right: -140px; animation: drift2 32s ease-in-out infinite alternate; }
.blob-3 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(46,79,143,0.25), transparent 65%); bottom: -200px; left: 30%; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(70px, 50px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-60px, -40px) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-50px, -60px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .blob, .pulse, .flow-arrow, .bg-grad-blob, .bg-gradient-blobs { animation: none !important; }
  .bg-parallax { transform: none !important; will-change: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sec-divider__line,
  .sec-divider__rule { transform: scaleX(1) !important; opacity: 1 !important; }
  .sec-divider__mark,
  .sec-divider__halo,
  .sec-divider__ring,
  .sec-divider__ripple,
  .sec-divider__ripple-ring,
  .sec-divider__core { opacity: 1 !important; transform: none !important; animation: none !important; }
  .sec-divider__ripple-ring:nth-child(2),
  .sec-divider__ripple-ring:nth-child(3) { opacity: 0 !important; }
  .sec-divider__ripple-ring:nth-child(1) { opacity: .28 !important; transform: scale(1.35) !important; }
  .sec-divider__line::after,
  .sec-divider__rule::after { animation: none !important; opacity: .5 !important; }
  .hero-copy > h1.hero-title-gradient .hero-loop {
    animation: none;
    background-size: auto;
    background-image: linear-gradient(120deg, var(--primary), var(--accent));
  }
  .hero-copy > h1.hero-title-gradient .tw-caret {
    animation: none;
    opacity: 1;
  }
}

/* ── Scramble-decode reveal (fact values + project tech stacks) ── */
.dc {
  display: inline-block;
  white-space: pre;
  color: var(--muted);
  transition: color .14s ease, text-shadow .14s ease;
}
.dc.locked {
  color: inherit;
  animation: dcLock .55s ease-out;
}
@keyframes dcLock {
  0%   { text-shadow: 0 0 9px rgba(242,141,44,.55); }
  100% { text-shadow: none; }
}
.is-decoding { opacity: .96; }

/* ── Layout ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* ── Nav ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
/* Drop shadow extends below the bar and paints over hero media */
header.site::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(46, 79, 143, 0.11),
    rgba(46, 79, 143, 0.04) 52%,
    transparent
  );
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 800; color: var(--primary); text-decoration: none; font-size: 1.05rem; letter-spacing: .2px; }
.brand .x { color: var(--accent); }
.brand--mcp { line-height: 0; display: flex; align-items: center; }
.brand-mcp-logo { height: 36px; width: auto; display: block; object-fit: contain; }
nav.main { display: flex; gap: 22px; align-items: center; font-size: .92rem; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; }
nav.main a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .25s ease; }
nav.main a:hover::after, nav.main a.active::after { width: 100%; }
nav.main a.nav-flagship { display: inline-flex; align-items: center; gap: 6px; line-height: inherit; }
.nav-flagship-logo { height: 24px; width: auto; display: block; object-fit: contain; flex-shrink: 0; }
.nav-flagship-label { font-weight: 500; line-height: 1.2; white-space: nowrap; }
/* ── Language-Switch v2: gleitender Knob + morphende Mini-Flaggen (Theme-Farben) ── */
.lang-switch {
  position: relative; display: inline-grid; grid-auto-flow: column;
  border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: .72rem; font-weight: 700; cursor: pointer; user-select: none;
}
.lang-switch .ls-opt {
  position: relative; z-index: 2; display: flex; align-items: center;
  padding: 4px 9px 4px 22px; color: var(--muted); transition: color .35s ease;
}
.lang-switch[data-lang="en"] .ls-opt[data-lang="en"],
.lang-switch[data-lang="de"] .ls-opt[data-lang="de"] { color: #fff; }
.lang-switch .ls-knob {
  position: absolute; z-index: 1; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px);
  border-radius: 999px; background: var(--primary); box-shadow: var(--shadow);
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
  display: flex; align-items: center; padding-left: 5px;
}
.lang-switch[data-lang="de"] .ls-knob { transform: translateX(calc(100% + 0px)); }
.lang-switch:hover .ls-knob { box-shadow: 0 2px 8px rgba(46,79,143,.35); }
.lang-switch .ls-flag {
  position: absolute; width: 14px; height: 10px; border-radius: 2px; overflow: hidden;
  opacity: 0; transform: scale(.5) rotate(-100deg);
  transition: opacity .3s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.lang-switch[data-lang="en"] .ls-flag-en,
.lang-switch[data-lang="de"] .ls-flag-de { opacity: 1; transform: scale(1) rotate(0deg); }

/* ── Button-Varianten (Vergleichs-Set, Palette-konform) ──
   V1 .btn-shine  — Licht-Sweep auf Primär-CTAs
   V2 .btn-arrow  — Pfeil federt bei Hover nach rechts
   V3 .btn-draw   — Unterstrich zeichnet sich, Rahmen färbt auf Akzent
   V4 .btn-glow   — warmer Glow-Lift für Akzent-Aktionen */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ''; position: absolute; top: 0; left: -140%; width: 55%; height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .65s ease;
}
.btn-shine:hover::after { left: 170%; }
.btn-arrow::after {
  content: '→'; display: inline-block; margin-left: 9px;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.btn-arrow:hover::after { transform: translateX(5px); }
.btn-draw {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-size: 0% 2.5px; background-position: 14px calc(100% - 7px);
  transition: background-size .35s ease, border-color .35s ease, color .3s ease, transform .22s ease, box-shadow .22s ease;
}
.btn-draw:hover { background-size: calc(100% - 28px) 2.5px; border-color: var(--accent); color: var(--accent); }
.btn-glow:hover {
  box-shadow: 0 8px 24px rgba(242, 141, 44, .4), var(--shadow-md);
  transform: translateY(-2px) scale(1.02);
}
/* V5 .btn-lava — 1:1-Nachbau von 50-button-15 („Focus on me"), Variante (a):
   dunkler Glas-Button. Zwei Blob-Schichten (blur 10px + blur 14px mit
   mix-blend-mode:overlay), Noise-Textur, Text mit Schatten; Hover dreht
   beide Schichten von −180° auf 0° zurück. Originalwerte, Theme-Farben. */
.btn-lava {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  background: #161821; color: #fff;
  border: 2px solid rgba(221, 216, 255, .18); border-radius: 999px;
  padding: 13px 26px;
}
.lava-scene { position: absolute; inset: 0; font-size: 6px; opacity: .55; filter: saturate(150%); pointer-events: none; }
.lava-shapes, .lava-blend {
  position: absolute; inset: 0; transform: rotate(-180deg);
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.lava-shapes { filter: blur(10px); }
.lava-blend  { filter: blur(14px); mix-blend-mode: overlay; }
.btn-lava:hover .lava-shapes, .btn-lava:hover .lava-blend { transform: rotate(0deg); }
.lv { position: absolute; border-radius: 999em; display: block; }
/* Schicht 1 — Originalgeometrie, Palette: pale/hellblau links, Schwarz-Balken, warm rechts */
.lv-p  { background: #A5C9DC; width: 8em;  height: 10em; top: -20%; left: 14%; transform: rotate(-28deg); }
.lv-p1 { background: #A5C9DC; width: 7em;  height: 7em;  bottom: -30%; left: -4%; }
.lv-b  { background: #72ADCB; width: 8em;  height: 11em; bottom: -65%; left: 32%; }
.lv-g  { background: #4671A3; width: 8em;  height: 10em; top: -15%; right: 26%; transform: rotate(29deg); }
.lv-k  { background: #0a0a0f; width: 4em;  height: 15em; top: -5em; right: 64%; transform: rotate(39deg); }
.lv-o  { background: #F2A944; width: 4em;  height: 10em; top: -25%; right: 12%; transform: rotate(40deg); }
/* Schicht 2 — Overlay-Blend für Tiefe */
.lv-o2 { background: #E5813C; width: 9em;  height: 7em;  bottom: -35%; right: 2%; }
.lv-b2 { background: #A5C9DC; width: 10em; height: 5em;  top: -12%; right: 40%; transform: rotate(60deg); }
.lv-k2 { background: #000;    width: 4em;  height: 15em; top: -5em; right: 38%; transform: rotate(39deg); }
.lv-g2 { background: #B33130; width: 8em;  height: 10em; bottom: -45%; right: 68%; transform: rotate(29deg); }
.lava-noise {
  position: absolute; inset: 0; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.lava-text { position: relative; z-index: 1; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .73); }

/* ── Skill-Chips (Skills-Page) ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.skill-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--ink); transition: all .25s ease;
}
.skill-chip img { width: 16px; height: 16px; object-fit: contain; }
.skill-chip:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: var(--shadow); }
.skill-group {
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.skill-group .chips { overflow: visible; }
.skill-group:has(.skill-chip.tip:hover),
.skill-group:has(.skill-chip.tip:focus-visible),
.skill-group:has(.skill-chip.tip:focus-within) {
  z-index: 50;
}
.skill-group h3 { display: flex; align-items: center; gap: 9px; font-size: 1rem; }
.skill-group h3 img { width: 20px; height: 20px; object-fit: contain; }
.flag-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.45rem;
  margin-top: 8px;
}
.flag-title img { height: 56px; width: auto; object-fit: contain; flex-shrink: 0; }
.hero-mcp-logo { height: 84px; width: auto; object-fit: contain; }
.skill-group .note { margin-top: 8px; font-size: .82rem; color: var(--muted); }

/* Skills page matrix — 4→3→2→1 cols; shrink-first like stats-band */
.skills-matrix-grid {
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.skills-matrix-grid .skill-group { min-width: 0; }
@media (max-width: 900px) {
  .skills-matrix-grid { gap: 12px; }
}
@media (max-width: 780px) {
  .skills-matrix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .skills-matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 480px) {
  .skills-matrix-grid { grid-template-columns: 1fr; }
}

/* ── Typo ── */
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; color: var(--ink); }
h2 { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
h3 { font-size: 1.12rem; font-weight: 600; color: var(--ink); }

/* Saubere Umbrüche: ausgewogene Headlines, keine Hurenkinder in Absätzen.
   Bewusst KEINE Silbentrennung — Wörter werden nie geteilt (Jans Vorgabe);
   Komposita tragen geschützte Bindestriche (U+2011). */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p, li, td, .lbl { text-wrap: pretty; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 64ch; }
.mono { font-family: var(--mono); }
.accent-text { color: var(--accent); }
.primary-text { color: var(--primary); }

/* ── Buttons & Chips ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .22s ease; }
.btn img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #24407a; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--primary); background: var(--bg); }
.btn-ghost:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #db7d1f; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; font-weight: 500; color: var(--ink); }
.chip-mono { font-family: var(--mono); font-size: .75rem; }
.badge-soon { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #FDF1E3; color: var(--accent); border: 1px solid #F8DDBE; }

/* ── Cards ── */
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.section-band:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.section-band--flagship {
  padding: 20px;
  min-width: 0;
}
a.card { display: block; text-decoration: none; color: inherit; }
.card .stack { margin-top: 12px; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.grid { display: grid; gap: 18px; }
/* Feste Spalten-Stufen statt auto-fit: verhindert unsymmetrische 3+1- / 2+1-Reihen */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Stat-Band ── */
.stats-band { padding: 16px; }

/* ── Home section bands (elevated islands on grid bg) ── */
.home-sec { padding: 25px 0; }
section.hero + section.home-sec { padding-top: 11px; }
section.hero + .wrap .sec-divider { margin-top: -6px; }

/* ── Section dividers (luxury draw + scientific marks) ── */
.wrap > .sec-divider { margin: 7px 0 4px; }
.sec-divider {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 41px;
  color: var(--secondary);
  --sd-line-h: 1.75px;
  --sd-draw: .9s cubic-bezier(.22, 1, .36, 1);
  --sd-mark: .55s cubic-bezier(.22, 1, .36, 1);
  --sd-grid-fade: var(--page-bg);
}
/* Hide the checkered grid behind the divider mark by BLURRING it away —
   not by painting a bright disc over it. backdrop-filter smears the thin
   grid lines into nothing while keeping the colour/brightness of the mesh
   beneath, so there is no white "Schein". Feathered with a radial mask. */
.sec-divider::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  z-index: 0;
  width: min(150px, 40vw);
  height: min(86px, 24vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 28%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 28%, transparent 72%);
}
.sec-divider__line,
.sec-divider__rule {
  position: absolute; top: 50%;
  z-index: 1;
  height: var(--sd-line-h);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--sd-draw), opacity .65s ease;
}
.sec-divider:not(.is-visible) .sec-divider__line,
.sec-divider:not(.is-visible) .sec-divider__rule { transition-delay: 0s; }
.sec-divider.is-visible .sec-divider__line,
.sec-divider.is-visible .sec-divider__rule { transform: scaleX(1); }
.sec-divider__line {
  left: 0; right: 0; width: 100%;
  margin-top: calc(var(--sd-line-h) * -.5);
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--primary) 22%, transparent) 10%,
    color-mix(in srgb, var(--secondary) 62%, transparent) 50%,
    color-mix(in srgb, var(--primary) 22%, transparent) 90%,
    transparent 100%
  );
  box-shadow: 0 0 12px color-mix(in srgb, var(--secondary) 18%, transparent);
}
.sec-divider__line::after {
  content: '';
  position: absolute; inset: -2px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 48%, transparent) 42%,
    color-mix(in srgb, var(--secondary) 55%, transparent) 50%,
    color-mix(in srgb, var(--accent) 48%, transparent) 58%,
    transparent 100%
  );
  background-size: 8% 100%;
  background-position: 50% 0;
  background-repeat: no-repeat;
  animation: secDividerShimmer 12s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity .5s ease;
}
.sec-divider--shimmer.is-visible .sec-divider__line::after {
  opacity: 1;
  animation-play-state: running;
}
@keyframes secDividerShimmer {
  0%, 100% { background-size: 6% 100%; opacity: .2; }
  50% { background-size: 100% 100%; opacity: .58; }
}
/* Center mark — glass orb, no solid fill */
.sec-divider__mark {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  color: var(--primary);
  background: transparent;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  transition: opacity var(--sd-mark), transform var(--sd-mark);
}
.sec-divider.is-visible .sec-divider__mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: .32s;
}
.sec-divider:not(.is-visible) .sec-divider__mark { transition-delay: 0s; }
.sec-divider:not(.is-visible) .sec-divider__halo,
.sec-divider:not(.is-visible) .sec-divider__ripple,
.sec-divider:not(.is-visible) .sec-divider__ripple-ring,
.sec-divider:not(.is-visible) .sec-divider__mark:has(.sec-divider__ripple) .sec-divider__node { animation-play-state: paused; }
.sec-divider:not(.is-visible) .sec-divider__line::after,
.sec-divider:not(.is-visible) .sec-divider__rule--front::after {
  animation-play-state: paused;
  opacity: 0;
}
.sec-divider__mark:has(.sec-divider__chapter) {
  width: auto;
  min-width: 36px;
  padding: 0 3px;
}
.sec-divider__halo {
  position: absolute; inset: -7px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--secondary) 30%, transparent) 0%,
    color-mix(in srgb, var(--accent) 11%, transparent) 38%,
    transparent 72%
  );
  opacity: 0;
  transform: scale(.6);
  animation: secDividerHalo 5.5s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.sec-divider.is-visible .sec-divider__halo {
  opacity: 1;
  animation-play-state: running;
}
@keyframes secDividerHalo {
  0%, 100% { transform: scale(.85); opacity: .36; }
  50% { transform: scale(1.15); opacity: .68; }
}
.sec-divider__ring {
  position: absolute; inset: 1.5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--secondary), var(--primary), var(--accent), var(--secondary)) border-box;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--secondary) 22%, transparent),
    inset 0 0 8px color-mix(in srgb, var(--secondary) 10%, transparent);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .45s ease .38s, transform .5s cubic-bezier(.22, 1, .36, 1) .38s;
}
.sec-divider.is-visible .sec-divider__ring {
  opacity: 1;
  transform: scale(1);
}
.sec-divider:not(.is-visible) .sec-divider__ring { transition-delay: 0s; }
.sec-divider__ripple {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .5s ease .4s, transform .55s cubic-bezier(.22, 1, .36, 1) .4s;
  pointer-events: none;
}
.sec-divider.is-visible .sec-divider__ripple {
  opacity: 1;
  transform: scale(1);
}
.sec-divider__ripple-ring {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--secondary) 44%, transparent);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 14%, transparent) 0%,
    transparent 68%
  );
  box-shadow: 0 0 8px color-mix(in srgb, var(--secondary) 16%, transparent);
  opacity: 0;
  transform: scale(.55);
  animation: secDividerRipple 3.4s cubic-bezier(.22, .61, .36, 1) infinite;
  animation-play-state: paused;
}
.sec-divider.is-visible .sec-divider__ripple-ring { animation-play-state: running; }
.sec-divider__ripple-ring:nth-child(1) { animation-delay: 0s; }
.sec-divider__ripple-ring:nth-child(2) { animation-delay: 1.13s; }
.sec-divider__ripple-ring:nth-child(3) { animation-delay: 2.26s; }
@keyframes secDividerRipple {
  0% {
    transform: scale(.55);
    opacity: .52;
    border-color: color-mix(in srgb, var(--secondary) 50%, transparent);
  }
  55% {
    opacity: .14;
    border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  }
  100% {
    transform: scale(2.65);
    opacity: 0;
    border-color: color-mix(in srgb, var(--primary) 18%, transparent);
  }
}
.sec-divider__core {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.sec-divider__node {
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--primary));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--secondary) 36%, transparent),
    0 0 10px color-mix(in srgb, var(--accent) 28%, transparent);
}
.sec-divider__mark:has(.sec-divider__ripple) .sec-divider__node {
  animation: secDividerCorePulse 3.4s ease-in-out infinite;
  animation-play-state: paused;
}
.sec-divider.is-visible .sec-divider__mark:has(.sec-divider__ripple) .sec-divider__node {
  animation-play-state: running;
}
@keyframes secDividerCorePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--secondary) 36%, transparent),
      0 0 10px color-mix(in srgb, var(--accent) 28%, transparent);
  }
  50% {
    transform: scale(1.14);
    box-shadow:
      0 0 0 2.5px color-mix(in srgb, var(--secondary) 46%, transparent),
      0 0 14px color-mix(in srgb, var(--accent) 36%, transparent);
  }
}
.sec-divider__chapter {
  font-family: var(--mono);
  font-size: .58rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 82%, var(--secondary));
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--secondary) 42%, transparent);
  background: color-mix(in srgb, var(--glass) 55%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 16px color-mix(in srgb, var(--secondary) 18%, transparent);
}
/* Double-rule variant */
.sec-divider--double { height: 46px; --sd-line-h: 2px; }
.sec-divider--double .sec-divider__rule {
  left: 6%; right: 6%; width: 88%;
  margin-top: calc(var(--sd-line-h) * -.5);
}
.sec-divider--double .sec-divider__rule--back {
  transform: scaleX(0) translateY(-4px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 28%, transparent), transparent);
  opacity: .5;
}
.sec-divider--double .sec-divider__rule--front {
  transform: scaleX(0) translateY(4px);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--secondary) 75%, transparent) 35%,
    color-mix(in srgb, var(--accent) 35%, transparent) 50%,
    color-mix(in srgb, var(--secondary) 75%, transparent) 65%,
    transparent
  );
  opacity: .82;
  box-shadow: 0 0 10px color-mix(in srgb, var(--secondary) 15%, transparent);
}
.sec-divider--double .sec-divider__rule--front::after {
  content: '';
  position: absolute; inset: -2px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 42%, transparent) 45%,
    color-mix(in srgb, var(--secondary) 48%, transparent) 50%,
    color-mix(in srgb, var(--accent) 42%, transparent) 55%,
    transparent 100%
  );
  background-size: 8% 100%;
  background-position: 50% 0;
  background-repeat: no-repeat;
  animation: secDividerShimmer 12s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity .45s ease;
}
.sec-divider--double.is-visible .sec-divider__rule--front::after {
  opacity: 1;
  animation-play-state: running;
}
.sec-divider--double.is-visible .sec-divider__rule--back {
  transform: scaleX(1) translateY(-4px);
  transition-delay: .1s;
}
.sec-divider--double.is-visible .sec-divider__rule--front {
  transform: scaleX(1) translateY(4px);
  transition-delay: .22s;
}
.sec-divider--double:not(.is-visible) .sec-divider__rule--back,
.sec-divider--double:not(.is-visible) .sec-divider__rule--front { transition-delay: 0s; }
.sec-divider--double .sec-divider__mark { width: 28px; height: 28px; }

.section-band { padding: 16px; }
.section-band .sec-head { margin-bottom: 12px; }
.section-band--projects .grid { gap: 12px; }
.section-band--skills .sec-head { margin-bottom: 10px; gap: 10px; }
.section-band--skills .skills-preview-grid {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.section-band--skills .skill-preview-card { padding: 14px 16px; min-width: 0; }
@media (max-width: 780px) {
  .section-band--skills .skills-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .section-band--skills .skills-preview-grid { grid-template-columns: 1fr; }
}
.section-band--skills .skill-preview-card:hover { transform: translateY(-2px); }
.section-band--skills .skill-preview-card h3 { font-size: .9rem; line-height: 1.25; }
.section-band--skills .skill-preview-card p {
  margin-top: 5px; font-size: .82rem; line-height: 1.45; color: var(--muted);
}
.stats-band .kicker { text-align: center; margin-bottom: 8px; }
.stats-band .grid { gap: 10px; }
/* Shrink-first: keep 4 cols longer than global .grid-4; wrap only when cramped */
.stats-band .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-band .stat { min-width: 0; }
.stats-band .stat .lbl { max-width: 100%; }
@media (max-width: 900px) {
  .stats-band .grid { gap: 8px; }
  .stats-band .stat .num { font-size: 1.65rem; }
  .stats-band .stat .num .unit { font-size: 0.88rem; }
  .stats-band .stat .lbl { font-size: .68rem; line-height: 1.3; }
  .stats-band .stat-top { height: 32px; margin-bottom: 6px; }
}
@media (max-width: 780px) {
  .stats-band { padding: 18px 14px; }
  .stats-band .grid { gap: 6px; }
  .stats-band .stat .num { font-size: 1.42rem; }
  .stats-band .stat .num .unit { font-size: 0.78rem; }
  .stats-band .stat .lbl { font-size: .64rem; }
  .stats-band .stat-top { height: 28px; margin-bottom: 4px; }
  .stats-band .viz-clients img { width: 22px; height: 22px; padding: 3px; }
  .stats-band .viz-gauge { width: 42px; height: 26px; }
  .stats-band .viz-bars .vb { width: 12px; }
}
@media (max-width: 560px) {
  .stats-band .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats-band .stat .num { font-size: 1.55rem; }
  .stats-band .stat .num .unit { font-size: 0.85rem; }
  .stats-band .stat .lbl { font-size: .68rem; max-width: 26ch; }
  .stats-band .stat-top { height: 32px; margin-bottom: 6px; }
  .stats-band .viz-clients img { width: 24px; height: 24px; padding: 3px; }
  .stats-band .viz-gauge { width: 46px; height: 28px; }
}
@media (max-width: 480px) {
  .stats-band .grid-4 { grid-template-columns: 1fr; }
}

/* ── Contact card ── */
.contact-card { text-align: center; padding: 14px 18px; }
.contact-card h2 { margin-bottom: 4px; font-size: 1.45rem; }
.contact-card .lead { margin: 2px auto 0; font-size: .95rem; max-width: none; text-wrap: balance; }
.contact-card .contact-actions { margin-top: 10px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.contact-card .btn { padding: 7px 18px; font-size: .9rem; }
.contact-card .btn-github {
  background: #000; color: #fff; border: 1.5px solid #000; box-shadow: var(--shadow);
}
.contact-card .btn-github img { width: 22px; height: 22px; }
.contact-card .btn-github:hover {
  background: #242424; border-color: #242424; color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat .num { font-size: 1.85rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .num .unit { font-size: 0.95rem; color: var(--accent); }
.stat .lbl { font-size: .72rem; color: var(--muted); margin-top: 0; text-wrap: balance; max-width: 26ch; margin-inline: auto; line-height: 1.35; }

/* ── Pipeline-Flow ── */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8rem; }
.flow .node { padding: 8px 14px; border-radius: 8px; background: var(--bg); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); white-space: nowrap; }
.flow .node.hot { background: var(--primary); color: #fff; border-color: var(--primary); animation: pulseNode 2.6s ease-in-out infinite; }
.flow-arrow { color: var(--accent); font-weight: 700; animation: nudge 1.6s ease-in-out infinite; }
@keyframes pulseNode { 0%,100% { box-shadow: 0 0 0 0 rgba(46,79,143,0.22); } 50% { box-shadow: 0 0 0 9px rgba(46,79,143,0); } }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* ── Tabellen ── */
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--border); background: var(--surface); }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
table.data tr:last-child td { border-bottom: none; }
table.data tr.hl td { background: #EFF7EE; font-weight: 600; }
table.data tr.prod td { background: #FDF6EC; }

/* ── Figure-Frames ── */
figure.fig { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
figure.fig img { width: 100%; height: auto; border-radius: 6px; display: block; }
figure.fig img.pipeline-stage__icon { width: 16px; height: 16px; border-radius: 0; display: block; }
figure.fig img.pipeline-stage__row-icon { width: 12px; height: 12px; border-radius: 0; display: block; flex-shrink: 0; }
figure.fig svg.pipeline-stage__icon { width: 16px; height: 16px; display: block; }
figure.fig figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ── Pipeline figure (fig 4.2) — semantic HTML replacement for static PNG ── */
.pipeline-fig {
  /* Logo gradient progression: slate-blue → silver → gold → coral */
  --pipe-s1: #4a7ab8;
  --pipe-s1-border: #4a7ab8;
  --pipe-s1-bg: #e8f0fa;
  --pipe-s1-label: #3d6899;
  --pipe-s2: #6b9fd4;
  --pipe-s2-border: #6b9fd4;
  --pipe-s2-bg: #edf4fb;
  --pipe-s2-label: #4a7ab8;
  --pipe-s3: #8faecd;
  --pipe-s3-border: #8faecd;
  --pipe-s3-bg: #f2f6fa;
  --pipe-s3-label: #5a7a9a;
  --pipe-s4: #e8b84a;
  --pipe-s4-border: #d4a030;
  --pipe-s4-bg: #fdf6e8;
  --pipe-s4-label: #a67c00;
  --pipe-s5: #f29131;
  --pipe-s5-border: #e8785a;
  --pipe-s5-bg: #fff0e8;
  --pipe-s5-label: #c45a2a;
  --pipe-orange: var(--pipe-s5);
  --pipe-orange-dark: var(--pipe-s5-label);
  --pipe-orange-bg: var(--pipe-s5-bg);
  margin-top: 18px;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.pipeline-fig__frame {
  background: #eef2f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  box-shadow:
    inset 0 2px 6px rgba(46, 79, 143, 0.1),
    inset 0 1px 2px rgba(46, 79, 143, 0.06);
}
.pipeline-fig__header {
  padding: 14px 18px 10px;
}
.pipeline-fig__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.pipeline-fig__subtitle {
  margin-top: 4px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.35;
}
.pipeline-fig__body {
  position: relative;
  padding: 28px 12px 20px;
  overflow: visible;
  background: #e2e8f0;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  box-shadow: inset 0 6px 10px -4px rgba(46, 79, 143, 0.14);
}
.pipeline-fig__body::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  pointer-events: none;
  z-index: 0;
}
.pipeline-fig__flow {
  position: relative;
  width: 100%;
  min-width: 0;
}
.pipeline-fig__stages {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0 0 40px;
  width: 100%;
  min-width: 0;
  gap: 0;
}
.pipeline-stage-group {
  display: contents;
}
.pipeline-stage-group--1 .pipeline-stage-bg,
.pipeline-stage-group--1 .pipeline-stage { grid-column: 1; grid-row: 1; }
.pipeline-stage-group--2 .pipeline-stage-bg,
.pipeline-stage-group--2 .pipeline-stage { grid-column: 3; grid-row: 1; }
.pipeline-stage-group--3 .pipeline-stage-bg,
.pipeline-stage-group--3 .pipeline-stage { grid-column: 5; grid-row: 1; }
.pipeline-stage-group--4 .pipeline-stage-bg,
.pipeline-stage-group--4 .pipeline-stage { grid-column: 7; grid-row: 1; }
.pipeline-stage-group--5 .pipeline-stage-bg,
.pipeline-stage-group--5 .pipeline-stage { grid-column: 9; grid-row: 1; }
.pipeline-stage-bg {
  position: relative;
  z-index: 1;
  min-height: 132px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 4px rgba(30, 64, 120, 0.07);
  pointer-events: none;
}
.pipeline-stage-bg::before {
  content: '';
  display: block;
  height: var(--pipe-hdr-h, 32px);
  flex-shrink: 0;
}
.pipeline-stage-bg--1 {
  border-color: var(--pipe-s1-border);
  background-color: var(--pipe-s1-bg);
}
.pipeline-stage-bg--1::before {
  background: linear-gradient(180deg, #3d6899 0%, var(--pipe-s1) 100%);
}
.pipeline-stage-bg--2 {
  border-color: var(--pipe-s2-border);
  background-color: var(--pipe-s2-bg);
}
.pipeline-stage-bg--2::before {
  background: linear-gradient(180deg, #5a8fc4 0%, var(--pipe-s2) 100%);
}
.pipeline-stage-bg--3 {
  border-color: var(--pipe-s3-border);
  background-color: var(--pipe-s3-bg);
}
.pipeline-stage-bg--3::before {
  background: linear-gradient(180deg, #6b8faa 0%, var(--pipe-s3) 100%);
}
.pipeline-stage-bg--4 {
  border-color: var(--pipe-s4-border);
  background-color: var(--pipe-s4-bg);
}
.pipeline-stage-bg--4::before {
  background: linear-gradient(180deg, #d4a030 0%, var(--pipe-s4) 100%);
}
.pipeline-stage-bg--5 {
  border-color: var(--pipe-s5-border);
  background-color: var(--pipe-s5-bg);
}
.pipeline-stage-bg--5::before {
  background: linear-gradient(180deg, var(--pipe-s5-border) 0%, var(--pipe-s5) 100%);
}
.pipeline-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 132px;
  border-radius: 8px;
  overflow: visible;
  border: 1.5px solid transparent;
  background: transparent;
  box-shadow: none;
}
.pipeline-stage--1 { border-color: var(--pipe-s1-border); }
.pipeline-stage--2 { border-color: var(--pipe-s2-border); }
.pipeline-stage--3 { border-color: var(--pipe-s3-border); }
.pipeline-stage--4 { border-color: var(--pipe-s4-border); }
.pipeline-stage--5 { border-color: var(--pipe-s5-border); }
.pipeline-stage__hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #fff;
  flex-shrink: 0;
  background: transparent;
}
.pipeline-stage__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  flex-shrink: 0;
}
.pipeline-stage__name {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-stage__body {
  flex: 1;
  display: grid;
  grid-template-columns: 16px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 5px;
  row-gap: 4px;
  padding: 7px 8px 7px;
  min-height: 0;
  background-color: transparent;
}
.pipeline-stage--1 .pipeline-stage__body { background-color: transparent; }
.pipeline-stage--2 .pipeline-stage__body {
  background-color: transparent;
  grid-template-columns: 1fr;
}
.pipeline-stage--2 .pipeline-stage__section {
  grid-column: 1;
}
.pipeline-stage--3 .pipeline-stage__body { background-color: transparent; }
.pipeline-stage--4 .pipeline-stage__body { background-color: transparent; }
.pipeline-stage--5 .pipeline-stage__body { background-color: transparent; }
.pipeline-stage__icon {
  grid-column: 1;
  grid-row: 1;
  width: 16px;
  height: 16px;
  align-self: center;
  opacity: 1;
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
}
.pipeline-stage__row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pipeline-stage__row-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
}
.pipeline-stage__section {
  grid-column: 2;
  grid-row: 1;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0;
  align-self: center;
}
.pipeline-stage__rows {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .66rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.pipeline-stage--1 .pipeline-stage__section { color: var(--pipe-s1-label); }
.pipeline-stage--2 .pipeline-stage__section { color: var(--pipe-s2-label); }
.pipeline-stage--3 .pipeline-stage__section { color: var(--pipe-s3-label); }
.pipeline-stage--4 .pipeline-stage__section { color: var(--pipe-s4-label); }
.pipeline-stage--5 .pipeline-stage__section { color: var(--pipe-s5-label); }
.pipeline-stage__rows li { margin-bottom: 3px; }
.pipeline-stage__rows li:last-child { margin-bottom: 0; }
.pipeline-stage__rows strong { font-weight: 600; color: var(--ink); }
.pipeline-stage--4 .pipeline-stage__rows strong,
.pipeline-stage--4 .pipeline-stage__rows span { color: #92680a; }
.pipeline-stage--5 .pipeline-stage__rows strong,
.pipeline-stage--5 .pipeline-stage__rows span { color: #b45309; }
.pipeline-arrow {
  position: relative;
  z-index: 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 0;
  pointer-events: none;
}
.pipeline-arrow--s1 { grid-column: 2; }
.pipeline-arrow--s2 { grid-column: 4; }
.pipeline-arrow--s3 { grid-column: 6; }
.pipeline-arrow--s4 { grid-column: 8; }
.pipeline-arrow svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 12px;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(30, 64, 120, 0.18));
}
.pipeline-arrow--s1 polygon { fill: #3d6899; }
.pipeline-arrow--s2 polygon { fill: #4a7ab8; }
.pipeline-arrow--s3 polygon { fill: #5a8aad; }
.pipeline-arrow--s4 polygon { fill: #d4a030; }
.pipeline-feedback {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  margin-bottom: -40px;
  height: 52px;
  pointer-events: none;
  overflow: visible;
  list-style: none;
}
.pipeline-feedback svg {
  display: block;
  width: 100%;
  height: 52px;
  overflow: visible;
}
.pipeline-feedback svg path {
  paint-order: stroke fill markers;
}
.pipeline-feedback__label {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: .64rem;
  font-weight: 600;
  color: var(--pipe-orange-dark);
  background: #fff;
  border: 1.5px solid var(--pipe-orange);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(242, 141, 44, 0.15);
  line-height: 1.25;
}

/* md: compact horizontal — shrink stages so five columns fit without forced overflow */
@media (max-width: 960px) and (min-width: 770px) {
  .section-band--flagship { padding: 24px 18px; }
  .pipeline-fig { margin-left: -6px; margin-right: -6px; }
  .pipeline-fig__header { padding: 12px 14px 8px; }
  .pipeline-fig__title { font-size: .92rem; }
  .pipeline-fig__subtitle { font-size: .72rem; }
  .pipeline-fig__body {
    padding: 20px 6px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .pipeline-fig__stages {
    grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr);
    padding-bottom: 34px;
  }
  .pipeline-stage-bg,
  .pipeline-stage { min-height: 116px; }
  .pipeline-stage__hdr { padding: 5px 6px; gap: 4px; }
  .pipeline-stage__num { width: 18px; height: 18px; font-size: .62rem; }
  .pipeline-stage__name { font-size: .64rem; }
  .pipeline-stage__body { padding: 5px 6px; column-gap: 4px; row-gap: 3px; }
  .pipeline-stage__section { font-size: .52rem; letter-spacing: .07em; }
  .pipeline-stage__rows { font-size: .58rem; line-height: 1.26; }
  .pipeline-stage__rows li { margin-bottom: 2px; }
  figure.fig img.pipeline-stage__icon { width: 14px; height: 14px; }
  figure.fig img.pipeline-stage__row-icon { width: 11px; height: 11px; }
  .pipeline-arrow svg { width: 10px; height: 10px; }
  .pipeline-feedback { height: 44px; margin-bottom: -34px; }
  .pipeline-feedback svg { height: 44px; }
  .pipeline-feedback__label { font-size: .58rem; padding: 3px 8px; }
}

/* sm-wide: vertical timeline from tablet-narrow down */
@media (max-width: 769px) {
  .section-band--flagship { padding: 22px 16px; }
  .pipeline-fig { margin-left: -4px; margin-right: -4px; }
  .pipeline-fig__body {
    overflow-x: visible;
  }
  .pipeline-fig__stages {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
    padding-bottom: 0;
  }
  .pipeline-stage-group {
    display: block;
    position: relative;
    width: 100%;
  }
  .pipeline-stage-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 0;
  }
  .pipeline-stage-group--1 .pipeline-stage-bg,
  .pipeline-stage-group--1 .pipeline-stage,
  .pipeline-stage-group--2 .pipeline-stage-bg,
  .pipeline-stage-group--2 .pipeline-stage,
  .pipeline-stage-group--3 .pipeline-stage-bg,
  .pipeline-stage-group--3 .pipeline-stage,
  .pipeline-stage-group--4 .pipeline-stage-bg,
  .pipeline-stage-group--4 .pipeline-stage,
  .pipeline-stage-group--5 .pipeline-stage-bg,
  .pipeline-stage-group--5 .pipeline-stage {
    grid-column: auto;
    grid-row: auto;
  }
  .pipeline-stage {
    position: relative;
    z-index: 3;
    width: 100%;
    min-width: 0;
    min-height: 0;
  }
  .pipeline-arrow--v {
    flex: none;
    height: 20px;
    margin: 2px 0;
    z-index: 4;
    grid-column: auto;
    grid-row: auto;
  }
  .pipeline-arrow--v svg {
    transform: rotate(90deg);
    width: 12px;
    height: 20px;
  }
  .pipeline-feedback {
    height: auto;
    margin-top: 8px;
    margin-bottom: 0;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    text-align: center;
  }
  .pipeline-feedback svg { display: none; }
  .pipeline-feedback__label {
    position: static;
    transform: none;
    display: inline-block;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .section-band--flagship { padding: 18px 12px; }
  .flag-title { font-size: 1.2rem; gap: 10px; }
  .flag-title img { height: 44px; }
}
body.neu .pipeline-fig__frame {
  background: var(--neu-bg);
  border: none;
  box-shadow: var(--neu-inset);
}
body.neu .pipeline-fig__body {
  background: #dce4f0;
  box-shadow:
    var(--neu-inset),
    inset 0 6px 10px -4px rgba(46, 79, 143, 0.1);
}
body.neu .pipeline-stage-bg {
  box-shadow: var(--neu-raise-sm);
}
body.neu .pipeline-stage {
  box-shadow: none;
}
body.neu .pipeline-stage--1 .pipeline-stage__body { background-color: transparent; }
body.neu .pipeline-stage--2 .pipeline-stage__body { background-color: transparent; }
body.neu .pipeline-stage--3 .pipeline-stage__body { background-color: transparent; }
body.neu .pipeline-stage--4 .pipeline-stage__body { background-color: transparent; }
body.neu .pipeline-stage--5 .pipeline-stage__body { background-color: transparent; }
body.neu .pipeline-feedback__label { background: #fff; }

/* ── Scroll-Reveal (bidirectional) ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: 0s;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.in.reveal-d1 { transition-delay: .08s; }
.reveal.in.reveal-d2 { transition-delay: .16s; }
.reveal.in.reveal-d3 { transition-delay: .24s; }
.reveal:not(.in).reveal-d1,
.reveal:not(.in).reveal-d2,
.reveal:not(.in).reveal-d3 { transition-delay: 0s; }

/* ── Hero ── */
.hero { padding: 56px 0 36px; overflow: visible; }
/* Subpage heroes without portrait grid: lead spans full wrap width */
.hero > .wrap:not(.hero-grid) > .lead { max-width: none; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(100px, 0.75fr);
  grid-template-areas:
    "kicker  photo"
    "title   photo"
    "lead    photo"
    "facts   photo"
    "actions photo";
  gap: clamp(14px, 2.5vw, 40px);
  align-items: start;
}
.hero-copy { display: contents; }
.hero-copy > .kicker { grid-area: kicker; }
.hero-copy > h1 { grid-area: title; margin-top: 0; }

/* Hero title — GradientTypeLoop-inspired flowing brand gradient (background-clip:text) */
@keyframes hero_title_grad_loop {
  to { background-position: -200% 0; }
}
.hero-copy > h1.hero-title-gradient .hero-prefix {
  color: var(--muted);
  font-weight: 700;
  -webkit-text-fill-color: currentColor;
}
.hero-copy > h1.hero-title-gradient .hero-loop {
  background-image: linear-gradient(
    90deg,
    var(--primary),
    var(--accent),
    var(--secondary),
    var(--primary)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero_title_grad_loop 3s linear infinite;
  min-width: 1ch;
}
/* Typewriter caret — opaque accent (overrides the parent's transparent text fill) */
@keyframes hero_title_caret_blink { 50% { opacity: 0; } }
.hero-copy > h1.hero-title-gradient .tw-caret {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  margin-left: .04em;
  animation: hero_title_caret_blink .8s step-end infinite;
}
.hero-copy > .lead,
.hero-copy > .hero-lead-stack { grid-area: lead; min-width: 0; }
.hero-copy .hero-detail {
  margin-top: 10px;
  max-width: 52ch;
  color: var(--muted);
  font-size: .98rem;
}
.hero-copy > .facts { grid-area: facts; margin-top: 0; }
.hero-actions {
  grid-area: actions;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 3vw, 26px);
}
.hero-media {
  grid-area: photo;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
  position: relative;
  z-index: 0;
}
.portrait {
  width: 100%;
  --portrait-cap: 250px;
  max-width: min(var(--portrait-cap), 100%);
  height: auto;
  border-radius: 18px;
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
/* 900px: tighter two-column, photo scales down */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(88px, 0.72fr);
    gap: clamp(14px, 2vw, 28px);
  }
  .portrait { --portrait-cap: 220px; }
}
/* 780px: kicker + h1 full width; lead/meta/actions beside photo */
@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 30vw);
    grid-template-areas:
      "kicker  kicker"
      "title   title"
      "lead    photo"
      "facts   photo"
      "actions photo";
  }
  .portrait { --portrait-cap: 190px; }
  .hero-copy > h1 { font-size: clamp(1.75rem, 6.5vw, 2.6rem); }
}
/* 560px: same grid as 780px — title stays full width; typography tightens only */
@media (max-width: 560px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(64px, 32vw);
    grid-template-areas:
      "kicker  kicker"
      "title   title"
      "lead    photo"
      "facts   photo"
      "actions photo";
    gap: 12px 14px;
  }
  .portrait { --portrait-cap: 160px; }
  .hero-copy > h1 { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.15; }
  .hero-copy > .lead { font-size: 1rem; }
  .hero-copy > .facts { gap: 6px 14px; font-size: .85rem; }
  .hero-actions { margin-top: 14px; gap: 10px; }
  .hero-actions .btn { padding: 9px 14px; font-size: .88rem; }
}
/* 420px: single-column stack; portrait cap must not exceed 560px tier */
@media (max-width: 420px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "photo"
      "lead"
      "facts"
      "actions";
    gap: 12px;
  }
  .hero-media { justify-content: center; }
  .portrait {
    --portrait-cap: clamp(120px, 62vw, 140px);
    margin: 0 auto;
  }
}
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; font-size: .92rem; }
.facts b { color: var(--primary); font-weight: 600; }

/* ── Footer ── */
footer.site {
  border-top: 1px solid var(--border);
  padding: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  background: var(--bg);
  margin-top: 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 32px;
  padding: 34px 24px 24px;
  align-items: start;
}
.footer-brand .brand { font-size: 1.12rem; }
.footer-tag { margin-top: 9px; font-size: .85rem; color: var(--muted); max-width: 30ch; }
.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 13px; font-size: .8rem; font-weight: 600; color: var(--ink);
}
.footer-status .fs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: fsPulse 2.6s ease-in-out infinite;
}
@keyframes fsPulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 6%, transparent); }
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-h {
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 4px;
}
.footer-col a {
  color: var(--ink); text-decoration: none; font-size: .86rem;
  position: relative; transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover { color: var(--primary); transform: translateX(3px); }
.footer-loc { margin-top: 4px; font-size: .8rem; color: var(--muted); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 24px; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--muted);
}
.footer-sig { font-size: .98rem; letter-spacing: .12em; color: var(--secondary); }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px 20px; }
  .footer-base { flex-direction: column; gap: 9px; padding: 12px 20px; }
}

/* ── Case-study data charts (pure CSS — replaces the figure PNGs) ────────── */
/* Keyword vs semantic headline */
.kwsem { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.kwsem-head {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin: 6px 0 -2px;
}
.kwsem-row { display: grid; grid-template-columns: 190px 1fr 50px; gap: 14px; align-items: center; }
.kwsem-label b { display: block; font-size: .9rem; color: var(--ink); }
.kwsem-label span { font-size: .72rem; color: var(--muted); }
.kwsem-track {
  height: 26px; border-radius: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  box-shadow: var(--neu-inset);
}
.kwsem-bar { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 1.1s cubic-bezier(.22,1,.36,1); }
.kwsem-row--bad  .kwsem-bar { background: linear-gradient(90deg, var(--error), #db8a46); }
.kwsem-row--mid  .kwsem-bar { background: linear-gradient(90deg, #db8a46, var(--accent)); }
.kwsem-row--good .kwsem-bar { background: linear-gradient(90deg, var(--secondary), var(--primary)); }
.reveal.in .kwsem-bar { width: var(--v); }
.kwsem-val { text-align: right; font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--ink); }
.kwsem-jump {
  align-self: flex-start; margin: 0 0 0 204px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 600; color: var(--primary);
  padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 13%, transparent);
}
.kwsem-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.kwsem-stat { padding: 16px; border-radius: 14px; background: var(--neu-bg); box-shadow: var(--neu-raise-sm); text-align: center; }
.kwsem-stat b {
  display: block; font-size: 1.75rem; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kwsem-stat span { display: block; margin-top: 7px; font-size: .73rem; color: var(--muted); line-height: 1.35; }

/* Embedding model benchmark */
.bench { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; }
.bench-row { display: grid; grid-template-columns: 200px 1fr 56px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.bench-row--prod { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.bench-name b { display: block; font-size: .88rem; color: var(--ink); }
.bench-name span { font-size: .68rem; color: var(--muted); }
.bench-tag {
  display: inline-block; margin-top: 4px; font-family: var(--mono);
  font-size: .6rem; font-style: normal; padding: 1px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: color-mix(in srgb, var(--accent) 86%, var(--ink));
}
.bench-tag--prod { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.bench-bar { position: relative; height: 22px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--primary) 7%, transparent); box-shadow: var(--neu-inset); }
.bench-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 1.1s cubic-bezier(.22,1,.36,1); }
.bench-row--prod .bench-bar > span { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.reveal.in .bench-bar > span { width: var(--mrr); }
.bench-bar i { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink); }
.bench-hit { text-align: center; font-size: .82rem; font-weight: 800; color: var(--primary); }
.bench-hit small { display: block; font-size: .52rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bench-tier { display: flex; align-items: center; gap: 10px; margin: 8px 0 5px; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bench-tier::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.bench-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: .7rem; color: var(--muted); }
.bench-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.bench-legend i { width: 16px; height: 8px; border-radius: 3px; display: inline-block; }

@media (max-width: 660px) {
  .kwsem-row { grid-template-columns: 1fr 48px; grid-template-areas: "label val" "track track"; row-gap: 6px; }
  .kwsem-label { grid-area: label; } .kwsem-val { grid-area: val; align-self: center; } .kwsem-track { grid-area: track; }
  .kwsem-jump { margin-left: 0; }
  .kwsem-stats { grid-template-columns: 1fr; }
  .bench-row { grid-template-columns: 1fr 56px; grid-template-areas: "name hit" "bar bar"; row-gap: 8px; }
  .bench-name { grid-area: name; } .bench-hit { grid-area: hit; align-self: start; } .bench-bar { grid-area: bar; }
}

/* Subpage section rhythm (inline padding-top on sections) */
section.hero[style*="padding-bottom"] { padding-bottom: 29px !important; }
section:not(.hero):not(.home-sec)[style*="padding-top:24px"] {
  padding-top: 29px !important;
  padding-bottom: 43px;
}
section:not(.hero):not(.home-sec)[style*="padding-top:0"] { padding-bottom: 43px; }

/* ── Sektions-Header ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 0; }

/* Subtle section CTA — pill chip, not a full button */
.more {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 5px 13px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; line-height: 1.3;
  color: var(--primary); text-decoration: none;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.more:hover {
  color: var(--accent); border-color: var(--secondary);
  box-shadow: var(--shadow); transform: translateX(2px);
}

/* Home — compact skills preview band (legacy alias; homepage uses .section-band--skills) */

/* ── Timeline (CV) ── */
.timeline { border-left: 2.5px solid var(--border); padding-left: 22px; display: grid; gap: 14px; }
.timeline .t-item { position: relative; }
.timeline .t-item::before { content: ''; position: absolute; left: -29px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--secondary); border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--secondary); }
.timeline .t-item.hot::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline .t-when { font-family: var(--mono); font-size: .76rem; color: var(--muted); }

/* ── Platzhalter-Markierung (nur Staging sichtbar machen wenn gewünscht) ── */
.todo { outline: 1.5px dashed var(--warning); outline-offset: 2px; border-radius: 4px; }

/* ── Mobile ── */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 58px 0; }
  .hero { padding: 40px 0 28px; }
  section:not(.hero):not(.home-sec)[style*="padding-top:24px"],
  section:not(.hero):not(.home-sec)[style*="padding-top:0"] { padding-bottom: 36px; }
  header.site .wrap { flex-direction: column; gap: 7px; padding-top: 10px; padding-bottom: 10px; }
  .brand { white-space: nowrap; }
  nav.main { gap: 13px; font-size: .85rem; flex-wrap: wrap; justify-content: center; }
  nav.main a { white-space: nowrap; }
  .facts { gap: 8px 18px; font-size: .88rem; }
  .flow { font-size: .72rem; }
  table.data { font-size: .8rem; }
  table.data th, table.data td { padding: 8px 10px; }
  .btn { padding: 10px 16px; font-size: .9rem; }
  .stat .num { font-size: 1.5rem; }
  .stat .num .unit { font-size: 0.82rem; }
  .stat .lbl { font-size: .7rem; }
  h2 { font-size: 1.45rem; }
  .home-sec { padding: 22px 0; }
  .sec-head { margin-bottom: 12px; }
  .section-band { padding: 14px 12px; }
  .section-band .sec-head { margin-bottom: 10px; }
  .section-band--skills .sec-head { margin-bottom: 8px; }
  .stats-band { padding: 14px 12px; }
  .section-band--skills .skills-preview-grid { gap: 8px; }
  .section-band--skills .skill-preview-card { padding: 12px 14px; }
  .icon-row { gap: 10px 14px; }
  .icon-row img { height: 26px; }
}

/* Hero-Headline: bewusster Umbruch am Desktop, natuerlicher Fluss auf Schmal */
@media (max-width: 540px) {
  h1 br { display: none; }
}

/* ── Brand-Icons ── */
.icon-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.icon-row img { height: 30px; width: auto; filter: grayscale(.15); opacity: .9; transition: all .2s ease; }
.icon-row img:hover { filter: none; opacity: 1; transform: translateY(-2px) scale(1.06); }
.client-icon { height: 40px; width: 40px; margin: 0 auto 10px; display: block; }

/* ════════════════════════════════════════════════════════════════════
   NEUMORPHISM VARIANT — opt-in via <body class="neu">
   Soft-UI "raised" surfaces. Hybrid: tactile depth + retained HTL accents
   and text contrast (pure monochrome neumorphism fails accessibility).
   Shadows derive from the flat surface colour, as the technique requires.
   ════════════════════════════════════════════════════════════════════ */
body.neu {
  --neu-bg:    #e6ecf6;
  --neu-light: #f5f9ff;
  --neu-dark:  #c4cee1;
  --neu-raise: -7px -7px 16px var(--neu-light), 7px 7px 16px var(--neu-dark);
  --neu-raise-sm: -3px -3px 7px var(--neu-light), 3px 3px 7px var(--neu-dark);
  --neu-raise-lg: -10px -10px 24px var(--neu-light), 10px 10px 24px var(--neu-dark);
  --neu-inset: inset -4px -4px 9px var(--neu-light), inset 4px 4px 9px var(--neu-dark);
  --radius: 16px;
  background: var(--neu-bg);
}

/* Flat solid base — keep only the faint grid at the deepest level.
   The drifting blobs and the soft gradient break the soft-UI illusion,
   so they go; the opaque raised cards cover the grid locally and their
   soft shadows blend its edges, so it reads as fading toward each
   "Erhebung". */
/* ── Section dividers — neumorphic upgrade ─────────────────────────────
   Mark becomes a raised soft-UI knob (matches the cards), wrapped by a
   slowly spinning HTL-gradient ring, with a small glowing gem in the centre.
   The busy expanding ripples are dropped for a calmer, premium read. */
body.neu .sec-divider { --sd-grid-fade: var(--neu-bg); }

body.neu .sec-divider__mark {
  width: 18px; height: 18px;
  background: var(--neu-bg);
  border-radius: 50%;
  box-shadow: var(--neu-raise-sm);
}

/* spinning conic ring around the knob (masked to a thin ring) */
body.neu .sec-divider__ring {
  inset: -2px;
  border: none;
  background: conic-gradient(from 0deg,
    var(--primary), var(--secondary), var(--accent), var(--secondary), var(--primary));
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, #0000 calc(100% - 2px), #000 calc(100% - 2px));
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--secondary) 24%, transparent));
  opacity: 0;
  transform: none;
  transition: opacity .5s ease .34s;
  animation: sdRingSpin 9s linear infinite;
  animation-play-state: paused;
}
body.neu .sec-divider.is-visible .sec-divider__ring {
  opacity: .92;
  transform: none;
  animation-play-state: running;
}
@keyframes sdRingSpin { to { transform: rotate(1turn); } }

/* soft colour glow bleeding out around the knob */
body.neu .sec-divider__halo {
  inset: -6px;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--secondary) 20%, transparent) 0%,
    color-mix(in srgb, var(--accent) 9%, transparent) 42%,
    transparent 72%);
}

/* drop the target-like expanding ripples */
body.neu .sec-divider__ripple { display: none; }

/* centre gem for marks with neither a node nor a chapter label */
body.neu .sec-divider__mark:not(:has(.sec-divider__chapter)):not(:has(.sec-divider__node))::after {
  content: '';
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--primary));
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 32%, transparent);
}
body.neu .sec-divider__node {
  width: 5px; height: 5px;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--primary));
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 32%, transparent);
}

/* chapter label as a raised neu pill instead of glass */
body.neu .sec-divider__chapter {
  color: color-mix(in srgb, var(--primary) 82%, var(--secondary));
  border: none;
  background: var(--neu-bg);
  box-shadow: var(--neu-raise-sm);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* chapter marks: the pill IS the element — drop the knob/ring/halo around it */
body.neu .sec-divider__mark:has(.sec-divider__chapter) {
  background: transparent;
  box-shadow: none;
}
body.neu .sec-divider__mark:has(.sec-divider__chapter) .sec-divider__ring,
body.neu .sec-divider__mark:has(.sec-divider__chapter) .sec-divider__halo { display: none; }

body.neu .bg-layer { display: block; }
body.neu .bg-layer::before { display: none; }
body.neu .blob { display: none; }
/* Footer seated as one soft-UI surface */
body.neu footer.site {
  background: var(--neu-bg);
  border-top: none;
  box-shadow: inset 0 1px 0 var(--neu-light), inset 0 14px 22px -18px var(--neu-dark);
}
body.neu .footer-base { border-top-color: color-mix(in srgb, var(--neu-dark) 60%, transparent); }
/* keep the soft-UI look but let the palette mesh visibly "wabbern" in the gutters */
body.neu .bg-gradient-blobs { opacity: .22; }
body.neu .bg-grid {
  background-image:
    linear-gradient(rgba(120,140,170,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,140,170,0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 130% 140% at 50% 42%, #000 42%, transparent 96%);
  -webkit-mask-image: radial-gradient(ellipse 130% 140% at 50% 42%, #000 42%, transparent 96%);
}

/* Nav floats as one raised bar */
body.neu header.site {
  background: var(--neu-bg); border-bottom: none;
  box-shadow: var(--shadow-md);
}
body.neu nav.main a::after { bottom: -6px; }

/* Cards — the core "Erhebung" */
body.neu .card {
  background: var(--neu-bg); border: none; border-radius: var(--radius);
  box-shadow: var(--neu-raise);
}
body.neu .card:hover { transform: translateY(-3px); box-shadow: var(--neu-raise-lg); border: none; }
body.neu .card.section-band:hover { transform: none; box-shadow: var(--neu-raise); border: none; }
body.neu a.card:hover { border: none; }

/* Stat band, figures, tables ride the same raised surface */
body.neu table.data { background: var(--neu-bg); border-radius: var(--radius); box-shadow: var(--neu-raise); }
body.neu table.data th { background: transparent; border-bottom: 2px solid var(--neu-dark); }
body.neu table.data td { border-bottom: 1px solid rgba(196,206,225,0.5); }
body.neu table.data tr.hl td { background: rgba(70,113,163,0.08); }
body.neu table.data tr.prod td { background: rgba(242,141,44,0.08); }
body.neu figure.fig { background: var(--neu-bg); border: none; box-shadow: var(--neu-raise); border-radius: var(--radius); }
body.neu figure.fig img { border-radius: 10px; }

/* Skill chips — little pressed pebbles that lift on hover */
body.neu .skill-chip {
  background: var(--neu-bg); border: none; box-shadow: var(--neu-raise-sm);
}
body.neu .skill-chip:hover { transform: translateY(-2px); box-shadow: var(--neu-raise); border: none; }
body.neu .chip, body.neu .chip-mono {
  background: var(--neu-bg); border: none; box-shadow: var(--neu-raise-sm);
}

/* Pipeline nodes */
body.neu .flow .node { background: var(--neu-bg); border: none; box-shadow: var(--neu-raise-sm); }
body.neu .flow .node.hot { background: var(--primary); color: #fff; box-shadow: var(--neu-raise-sm); }

/* Buttons: ghost becomes neu-raised; primary/accent keep their fill for CTA pop */
body.neu .btn-ghost {
  background: var(--neu-bg); border: none; box-shadow: var(--neu-raise-sm); color: var(--primary);
}
body.neu .btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--neu-raise); border: none; }
body.neu .btn-primary, body.neu .btn-accent { box-shadow: var(--neu-raise-sm); }
body.neu .btn-primary:hover, body.neu .btn-accent:hover { box-shadow: var(--neu-raise); }
body.neu .btn-ghost:active, body.neu .btn-primary:active, body.neu .btn-accent:active { box-shadow: var(--neu-inset); transform: translateY(0); }
body.neu .contact-card .btn-github {
  background: #000; color: #fff; border: none; box-shadow: var(--neu-raise-sm);
}
body.neu .contact-card .btn-github:hover {
  background: #242424; box-shadow: var(--neu-raise); border: none; color: #fff;
}
body.neu .contact-card .btn-github:active { box-shadow: var(--neu-inset); transform: translateY(0); }

/* Language switch — inset track, raised knob (textbook neu toggle) */
body.neu .lang-switch { background: var(--neu-bg); border: none; box-shadow: var(--neu-inset); }
body.neu .lang-switch .ls-knob { box-shadow: var(--neu-raise-sm); }

/* Portrait frame */
body.neu .portrait { border: none; box-shadow: var(--neu-raise-lg); }

/* CV timeline dots sit in soft wells */
body.neu .timeline { border-left-color: var(--neu-dark); }
body.neu .timeline .t-item::before { box-shadow: var(--neu-raise-sm); border-color: var(--neu-bg); }

/* Brand-icon row keeps icons; just remove card borders elsewhere */
body.neu .badge-soon { box-shadow: var(--neu-raise-sm); border: none; }

body.neu .more {
  background: var(--neu-bg); border: none; box-shadow: var(--neu-raise-sm);
}
body.neu .more:hover { box-shadow: var(--neu-raise); border: none; }

/* ════════════════════════════════════════════════════════════════════
   SKILL TOOLTIPS — floating glass card, JS-positioned (fixed) with
   viewport clamping. Enter: scale+fade+lift; exit: reversed via .is-hiding.
   ════════════════════════════════════════════════════════════════════ */
.skill-chip.tip {
  position: relative; cursor: help; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.skill-chip.tip.is-open { z-index: 120; }

.tip-pop {
  position: fixed; left: 0; top: 0;
  width: max-content; max-width: min(288px, calc(100vw - 24px));
  z-index: 1000;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px 12px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(46, 79, 143, 0.1),
    0 18px 44px rgba(46, 79, 143, 0.22),
    0 6px 16px rgba(46, 79, 143, 0.12);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  font-size: .78rem; font-weight: 500; line-height: 1.45;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(0.92) translateY(8px);
  transform-origin: bottom center;
  transition:
    opacity .24s cubic-bezier(.22, 1, .36, 1),
    transform .28s cubic-bezier(.22, 1, .36, 1),
    visibility .24s;
}
.tip-pop[data-placement="below"] {
  transform: scale(0.92) translateY(-8px);
  transform-origin: top center;
}
.tip-pop[data-placement="below"].is-visible {
  transform: scale(1) translateY(0);
}
.tip-pop[data-placement="below"].is-hiding {
  transform: scale(0.94) translateY(-5px);
}
.tip-pop::before {
  content: ''; position: absolute; top: 10px; bottom: 10px; left: 0;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}
.tip-pop::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(46, 79, 143, 0.1);
  transform: rotate(45deg);
  box-shadow: 3px 3px 8px rgba(46, 79, 143, 0.08);
  pointer-events: none;
}
.tip-pop[data-placement="above"]::after {
  bottom: -6px; left: var(--tip-arrow-x, 50%);
  margin-left: -6px; border-top: none; border-left: none;
}
.tip-pop[data-placement="below"]::after {
  top: -6px; left: var(--tip-arrow-x, 50%);
  margin-left: -6px; border-bottom: none; border-right: none;
}

.tip-pop .tp-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary); padding-right: 2px;
}
.tip-pop .tp-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(145deg, rgba(114, 173, 203, 0.22), rgba(70, 113, 163, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.tip-pop .tp-icon img {
  width: 14px; height: 14px; object-fit: contain; display: block;
}
.tip-pop .tp-body { color: var(--ink); opacity: .92; }

.tip-pop.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: scale(1) translateY(0);
}
.tip-pop.is-hiding {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(0.94) translateY(5px);
  transition-duration: .18s;
}
.tip-pop.unproven .tp-head { color: var(--accent); }
.tip-pop.unproven::before { background: linear-gradient(180deg, var(--warning), var(--accent)); }

body.neu .tip-pop {
  background: rgba(238, 242, 248, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(46, 79, 143, 0.08),
    0 22px 50px rgba(46, 79, 143, 0.24),
    0 8px 18px rgba(46, 79, 143, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
body.neu .tip-pop::after { background: rgba(238, 242, 248, 0.92); }

@media (prefers-reduced-motion: reduce) {
  .tip-pop { transition: opacity .15s ease, visibility .15s; transform: none; }
  .tip-pop.is-visible, .tip-pop.is-hiding { transform: none; }
}
@media (max-width: 640px) {
  .tip-pop { max-width: min(260px, calc(100vw - 20px)); font-size: .76rem; padding: 11px 12px 11px 16px; }
  .skill-chip.tip { cursor: pointer; }
}

/* ════════════════════════════════════════════════════════════════════
   STAT VISUALS — small per-stat toppers on the landing stat band
   ════════════════════════════════════════════════════════════════════ */
.stat-top { height: 36px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }

/* 17× — twin bars: low keyword vs tall semantic, with a rising arrow */
.viz-bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; }
.viz-bars .vb { width: 14px; border-radius: 5px 5px 2px 2px; box-shadow: var(--shadow-sm); }
.viz-bars .vb-low { height: 30%; background: var(--muted); opacity: .55; }
.viz-bars .vb-high { height: 100%; background: linear-gradient(var(--secondary), var(--primary)); position: relative; }
.viz-bars .vb-arrow { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: .6rem; color: var(--accent); animation: vbBob 1.8s ease-in-out infinite; font-style: normal; }
@keyframes vbBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -3px); } }

/* 10,841 — a 5×3 grid of "chunks", a few highlighted */
.viz-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.viz-grid span { width: 7px; height: 7px; border-radius: 2px; background: var(--secondary); opacity: .4; }
.viz-grid span:nth-child(3),
.viz-grid span:nth-child(7),
.viz-grid span:nth-child(12) { background: var(--primary); opacity: 1; }

/* 3 — the three AI client logos in soft circles */
.viz-clients { display: flex; align-items: center; gap: 2px; }
.viz-clients img { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-sm); object-fit: contain; transition: transform .2s ease; }
.viz-clients img:hover { transform: translateY(-3px) scale(1.08); z-index: 2; }
.viz-clients img.dim { filter: grayscale(1); opacity: .42; }
.viz-clients img.dim:hover { filter: grayscale(.4); opacity: .8; }
body.neu .viz-clients img { background: var(--neu-bg); box-shadow: var(--neu-raise-sm); }

/* 226 ms — a little speed gauge */
.viz-gauge { width: 50px; height: 31px; }

/* Neumorphic surfaces for the bar/grid toppers */
body.neu .viz-bars .vb { box-shadow: var(--neu-raise-sm); }
