/* ============================================================
   Grapix Design — Portfolio Steffen Wendland
   v2 — Dark Mode SaaS Aesthetic
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0A0B0F;
  --bg-elev: #111318;
  --bg-card: #14161C;
  --bg-card-hi: #181B23;
  --bg-deep: #050608;

  /* Text */
  --ink: #F4F5F7;
  --ink-2: #C9CCD3;
  --muted: #8B8E96;
  --muted-2: #5C5F68;
  --dim: #3D4048;

  /* Lines */
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --hairline-bright: rgba(255, 255, 255, 0.22);

  /* Accents */
  --accent: #8B5CFF;             /* primary violet */
  --accent-2: #5BE49B;           /* mint */
  --accent-3: #FFB45B;           /* amber */
  --accent-soft: rgba(139, 92, 255, 0.12);
  --accent-glow: rgba(139, 92, 255, 0.35);
  --mint-glow: rgba(91, 228, 155, 0.30);

  /* Fonts */
  --serif: "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Type sizes */
  --tx-mono-label: 11px;
  --tx-meta: 13px;
  --tx-small: 14px;
  --tx-body: 16px;
  --tx-body-lg: 18px;
  --tx-lede: clamp(20px, 2vw, 26px);
  --tx-h3: clamp(22px, 2.4vw, 30px);
  --tx-h2: clamp(32px, 4vw, 56px);
  --tx-h1: clamp(48px, 8.5vw, 140px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--tx-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(91, 228, 155, 0.05), transparent 60%);
  background-attachment: fixed;
}

::selection { background: var(--accent); color: white; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
p { margin: 0; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

em { font-style: italic; color: var(--ink-2); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.hairline { border-top: 1px solid var(--hairline); }
.hairline-bottom { border-bottom: 1px solid var(--hairline); }

/* ---------- Mono labels ---------- */
.mono {
  font-family: var(--mono);
  font-size: var(--tx-mono-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.mono--ink { color: var(--ink-2); }
.mono--accent { color: var(--accent); }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: opacity .25s var(--ease);
}
.brand:hover { opacity: 0.75; }
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-separator {
  color: var(--muted-2);
  user-select: none;
}
.brand-name { color: var(--ink-2); white-space: nowrap; }
.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 2px;
}
.brand-mark span {
  width: 4px; height: 4px;
  background: var(--muted);
  border-radius: 1px;
}
.brand-mark span.accent {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-card); }
.nav-links a.is-active {
  color: var(--ink);
  background: var(--bg-card);
}
.nav-links a.is-cta {
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.22), rgba(139, 92, 255, 0.10));
  color: var(--ink);
  border: 1px solid rgba(139, 92, 255, 0.35);
  margin-left: 8px;
}
.nav-links a.is-cta:hover {
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.35), rgba(139, 92, 255, 0.18));
  box-shadow: 0 0 24px rgba(139, 92, 255, 0.22);
}

/* ---------- Mobile nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--hairline-bright); background: var(--bg-card); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-2);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 140px) 0; }
section.compact { padding: clamp(40px, 6vw, 80px) 0; }
section.tight { padding: clamp(24px, 4vw, 56px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  align-items: baseline;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.section-head h2 {
  font-size: var(--tx-h2);
  max-width: 22ch;
  letter-spacing: -0.03em;
}

/* ---------- Status pill / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.pill .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--mint-glow);
  position: relative;
}
.pill .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}
.pill.is-violet .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.pill.is-violet .dot::after { background: var(--accent); }
.pill.is-amber .dot { background: var(--accent-3); box-shadow: 0 0 8px rgba(255, 180, 91, 0.4); }
.pill.is-amber .dot::after { background: var(--accent-3); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 10vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.hero-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  margin-bottom: 48px;
}
.hero-head .meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-head .meta-r { justify-self: end; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-name {
  font-size: var(--tx-h1);
  letter-spacing: -0.05em;
  line-height: 0.88;
  font-weight: 600;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, #8B8E96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-name .second {
  display: block;
  padding-left: 0.15em;
  background: linear-gradient(180deg, #B58CFF 0%, #6A3DD8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.hero-pitch {
  grid-column: 1 / span 7;
  font-size: var(--tx-lede);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 28ch;
}
.hero-pitch .accent { color: var(--accent-2); font-weight: 600; }
.hero-pitch .muted { color: var(--muted); }

.hero-portrait {
  grid-column: 8 / span 5;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
}

/* ---------- Imagery placeholders ---------- */
.portrait-slot, .case-slot, .slot {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.20)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.025) 10px 11px),
    var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.portrait-slot::before { content: "Portrait · 4 : 5"; }
.slot.dark {
  background:
    radial-gradient(ellipse at center, rgba(139, 92, 255, 0.10), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.025) 10px 11px),
    var(--bg-deep);
  color: var(--muted-2);
}
.slot.accent {
  background:
    radial-gradient(ellipse at center, rgba(91, 228, 155, 0.10), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.04) 10px 11px),
    var(--bg-card-hi);
  color: var(--ink-2);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-bright), transparent);
}
.stat:hover { border-color: var(--hairline-strong); background: var(--bg-card-hi); }
.stat .num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat .num sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 2px;
  color: var(--accent-2);
  font-weight: 500;
}
.stat:nth-child(2) .num sup { color: var(--accent); }
.stat:nth-child(3) .num sup { color: var(--accent-3); }
.stat .label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 24ch;
  line-height: 1.5;
}

/* ---------- Work list ---------- */
.work-list { border-top: 1px solid var(--hairline); }
.work-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 16px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background .3s var(--ease);
  border-radius: var(--radius-sm);
}
.work-item:hover { background: var(--bg-card); }
.work-item .title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.work-item:hover .title { color: var(--accent); }
.work-item .desc {
  color: var(--muted);
  font-size: var(--tx-small);
  max-width: 44ch;
}
.work-item .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink-2);
  border-radius: 999px;
  background: var(--bg-card);
}
.work-item .arrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.work-item:hover .arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- Featured grid (homepage) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.featured-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .4s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.featured-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-bright), transparent);
}
.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  background: var(--bg-card-hi);
}
.featured-card .visual {
  aspect-ratio: 16/10;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.featured-card .visual.dark { background: var(--bg-deep); }
.featured-card .visual.accent { background: var(--bg-card-hi); }
.featured-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.featured-card h3 {
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.2;
}
.featured-card .desc { color: var(--muted); font-size: var(--tx-small); max-width: 56ch; line-height: 1.55; }

.featured-card.span-7 { grid-column: span 7; }
.featured-card.span-5 { grid-column: span 5; }
.featured-card.span-6 { grid-column: span 6; }
.featured-card.span-12 { grid-column: span 12; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.skill-cluster {
  grid-column: span 4;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color .3s var(--ease);
}
.skill-cluster:hover { border-color: var(--hairline-strong); }
.skill-cluster::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-bright), transparent);
}
.skill-cluster:nth-child(1)::after,
.skill-cluster:nth-child(2)::after,
.skill-cluster:nth-child(3)::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.skill-cluster:nth-child(1)::after { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.skill-cluster:nth-child(2)::after { background: var(--accent-2); box-shadow: 0 0 12px var(--mint-glow); }
.skill-cluster:nth-child(3)::after { background: var(--accent-3); box-shadow: 0 0 12px rgba(255, 180, 91, 0.4); }

.skill-cluster .label { color: var(--muted); margin-bottom: 16px; }
.skill-cluster h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.skill-cluster ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-cluster li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--tx-small);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-2);
}
.skill-cluster li:last-child { border-bottom: 0; }
.skill-cluster li .lvl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  background: var(--bg-deep);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: linear-gradient(180deg, var(--accent) 0%, #6A3DD8 100%);
  color: white;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 255, 0.5);
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 4px 24px -8px rgba(139, 92, 255, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -6px rgba(139, 92, 255, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--ghost {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--bg-card-hi);
  border-color: var(--hairline-bright);
  box-shadow: none;
}

.text-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-weight: 500;
  color: var(--accent-2);
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transition: opacity .3s var(--ease);
}
.text-link:hover::after { opacity: 1; }

/* ---------- Statement ---------- */
.statement {
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 500;
  max-width: 20ch;
  color: var(--ink);
}
.statement .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
}
.contact-grid .lede {
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 500;
  max-width: 16ch;
}
.contact-grid .lede .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.contact-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.contact-row .k {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.contact-row .v { font-size: var(--tx-body); font-weight: 500; color: var(--ink); }

/* ---------- Footer ---------- */
.footer-mark {
  padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 48px);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.footer-mark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-bright), transparent);
}
.footer-mark img {
  width: 100%;
  max-width: 760px;
  height: auto;
  opacity: 0.18;
  transition: opacity .5s var(--ease);
  filter: drop-shadow(0 0 60px rgba(139, 92, 255, 0.06));
}
.footer-mark:hover img { opacity: 0.42; }

.footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer .footer-links { display: flex; gap: 20px; }
.footer .footer-links a:hover { color: var(--ink); }

/* ---------- Page header ---------- */
.page-header {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(56px, 8vw, 120px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.page-header .crumb { margin-bottom: 32px; }
.page-header .crumb a { color: var(--muted); }
.page-header h1 {
  font-size: clamp(48px, 7vw, 120px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-weight: 600;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, #8B8E96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.page-header .lede {
  margin-top: 32px;
  font-size: var(--tx-lede);
  line-height: 1.45;
  max-width: 38ch;
  color: var(--ink-2);
}

/* ---------- Timeline ---------- */
.timeline {
  border-top: 1px solid var(--hairline);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 0 28px;
  overflow: hidden;
}
.timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr 1.4fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-row .year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}
.timeline-row .where {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.timeline-row .where .role {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: var(--tx-small);
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.timeline-row .desc { color: var(--ink-2); font-size: var(--tx-small); line-height: 1.55; }

/* ---------- Case study ---------- */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
}
.case-meta > div {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.case-meta .k {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.case-meta .v { margin-top: 8px; font-weight: 500; color: var(--ink); }

.case-hero-visual {
  margin: clamp(40px, 5vw, 80px) 0;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5),
              0 0 80px -40px var(--accent-glow);
}

.case-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--hairline);
}
.case-section h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.case-section .label { color: var(--muted); margin-bottom: 12px; }
.case-section .body {
  font-size: var(--tx-body-lg);
  line-height: 1.65;
  color: var(--ink-2);
}
.case-section .body p + p { margin-top: 18px; }

.case-figure {
  margin-top: 32px;
  aspect-ratio: 16/9;
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.case-figure.tall { aspect-ratio: 4/5; }
.case-figure.wide { aspect-ratio: 21/9; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay video { display: none; }
.lightbox-overlay img,
.lightbox-overlay video {
  width: min(900px, 100%);
  height: auto;
  max-width: 100%;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.play-hint {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.play-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 10px;
  padding-left: 2px;
}

.case-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.outcome {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.outcome::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-bright), transparent);
}
.outcome .num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.outcome:nth-child(1) .num sup { color: var(--accent-2); }
.outcome:nth-child(2) .num sup { color: var(--accent); }
.outcome:nth-child(3) .num sup { color: var(--accent-3); }
.outcome .num sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 2px;
  -webkit-text-fill-color: initial;
}
.outcome .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 12px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}
.process-step .step-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.process-step h4 {
  font-size: 17px;
  margin: 10px 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Next case */
.next-case {
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 0;
}
.next-case .label { color: var(--muted); }
.next-case .name {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.next-case a:hover .name {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Dot grid bg motif */
.dot-grid {
  background-image: radial-gradient(circle, var(--hairline-strong) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .featured-card.span-7, .featured-card.span-5 { grid-column: span 12; }
  .skill-cluster { grid-column: span 12; }
  .case-meta, .outcomes, .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .featured-grid, .skills-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-pitch { grid-column: span 6; }
  .hero-portrait { grid-column: span 6; aspect-ratio: 4/3; }
  .featured-card.span-7, .featured-card.span-5, .featured-card.span-6, .featured-card.span-12 { grid-column: 1 / -1; }
  .skill-cluster { grid-column: span 6; }
  .work-item { grid-template-columns: 1fr auto; padding: 16px; }
  .work-item .desc, .work-item .tags { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .hero-head { grid-template-columns: 1fr; }
  .case-section { grid-template-columns: 1fr; }
  .timeline { padding: 0 16px; }
  .timeline-row { grid-template-columns: 90px 1fr; }
  .timeline-row .desc { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Contact-strip CTA (statement + two buttons) */
  .grid-12:has(.col-span-4-stack-end) { row-gap: 24px; }
  .grid-12:has(.col-span-4-stack-end) > .col-span-8 { grid-column: 1 / -1; }
  .grid-12 > .col-span-4-stack-end {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  /* Page-header stat box (text + key/value list) */
  .grid-12:has(.col-span-4-end) { row-gap: 24px; }
  .grid-12:has(.col-span-4-end) > .col-span-8 { grid-column: 1 / -1; }
  .grid-12 > .col-span-4-end {
    grid-column: 1 / -1;
    align-self: auto;
    margin-top: 8px;
  }

  /* ueber-mich.html: portrait + bio text */
  .grid-12 > .col-span-5,
  .grid-12 > .col-7-span6 {
    grid-column: 1 / -1;
  }
  .grid-12 > .col-7-span6 { margin-top: 32px; }

  /* Generic opt-in: force every direct child of a grid-12 to full width */
  .grid-12.stack-mobile > * { grid-column: 1 / -1; }
  .grid-12.stack-mobile > * + * { margin-top: 32px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(10, 11, 15, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    font-size: 13px;
    padding: 16px var(--gutter);
    border-radius: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links a.is-cta {
    margin: 12px var(--gutter) 0;
    display: inline-flex;
    justify-content: center;
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .hero-head { grid-template-columns: 1fr; }
  .hero-head .meta-r { justify-self: start; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .featured-card .meta-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .case-figure-grid { grid-template-columns: 1fr; }
  .outcomes, .process-steps { grid-template-columns: 1fr; }
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Utilities (formerly inline style="" attributes)
   ============================================================ */
.mt-8  { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }
.m-0   { margin: 0; }

.mw-18ch { max-width: 18ch; }
.mw-22ch { max-width: 22ch; }
.mw-48ch { max-width: 48ch; }
.mw-56ch { max-width: 56ch; }
.mw-60ch { max-width: 60ch; }

.pad-0 { padding: 0; }
.pt-0  { padding-top: 0; }
.gap-24 { gap: 24px; }
.flex-1 { flex: 1; }
.cursor-pointer { cursor: pointer; }
.bg-none { background: none; }

.tx-ink    { color: var(--ink); }
.tx-ink-2  { color: var(--ink-2); }
.tx-muted  { color: var(--muted); }

.w-15 { width: 15%; }
.w-30 { width: 30%; }
.w-55 { width: 55%; }

.aspect-16-11 { aspect-ratio: 16/11; }
.aspect-16-12 { aspect-ratio: 16/12; }
.rounded         { border-radius: var(--radius); }
.rounded-inherit { border-radius: inherit; }

.col-7-span6  { grid-column: 7 / span 6; }
.col-span-3   { grid-column: span 3; }
.col-span-4   { grid-column: span 4; }
.col-span-5   { grid-column: span 5; }
.col-span-6   { grid-column: span 6; }
.col-span-8   { grid-column: span 8; }
.col-span-9   { grid-column: span 9; }
.col-span-12  { grid-column: span 12; }
.col-span-3-end { grid-column: span 3; align-self: end; }
.col-span-4-end { grid-column: span 4; align-self: end; }
.col-span-4-stack-end { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; justify-content: end; }
.justify-end-flex { display: flex; justify-content: flex-end; }
.stack-gap-14 { display: flex; flex-direction: column; gap: 14px; }

.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.list-reset { list-style: none; padding: 0; margin: 0; }
.list-grid  { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-grid.cols-1 { grid-template-columns: 1fr; }
.list-grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 0 32px; }

.row-between          { display: flex; justify-content: space-between; }
.row-between-baseline  { display: flex; justify-content: space-between; align-items: baseline; }
.row-between-wrap      { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.row-baseline-24       { display: flex; align-items: baseline; gap: 24px; }
.row-wrap-10           { display: flex; gap: 10px; flex-wrap: wrap; }
.row-wrap-16           { display: flex; gap: 16px; flex-wrap: wrap; }
.row-gap-56            { row-gap: 56px; }
.row-divider           { border-top: 1px solid var(--hairline); padding-top: 14px; display: flex; justify-content: space-between; }
.section-flush         { border-top: 1px solid var(--hairline); padding: 0; }
.grid-2-gap32          { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.next-case-row         { display: flex; justify-content: space-between; align-items: baseline; padding: clamp(48px, 7vw, 96px) var(--gutter); }

.h5-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.caption-mono {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-top: 10px;
}
.body-muted-60 { font-size: var(--tx-body-lg); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.body-lg-muted { font-size: var(--tx-body-lg); line-height: 1.6; color: var(--ink-2); }
.subhead-h3    { font-size: var(--tx-h3); }
.stat-line     { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); font-weight: 500; }
.quote-callout { font-style: italic; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 18px; }
.lede-block    { max-width: 56ch; color: var(--muted); font-size: var(--tx-body-lg); line-height: 1.55; }
.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.img-fit         { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-fit-contain { width: 100%; height: 100%; object-fit: contain; }
.img-fit-portrait{ width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.img-fit-top     { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.img-fit.is-zoomable, .img-fit-top.is-zoomable { cursor: zoom-in; }

.icon-tile {
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.icon-tile.icon-tile--lg { padding: 32px; }

.portrait-frame {
  aspect-ratio: 4/5;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

.swatch.is-blue    { background: #49578C; }
.swatch.is-magenta { background: #C7348B; }

/* ============================================================
   Case-study shared components (formerly duplicated per-page
   <style> blocks — identical on fielmann/klosterfrau/ncara/
   ncara-brand/salesforce)
   ============================================================ */
.kc-item {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.kc-item:hover { border-color: var(--hairline-strong); background: var(--bg-card-hi); color: var(--ink); }
.kc-item::before {
  content: "—";
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.06em;
}

/* Shared between salesforce-sla.html and salesforce-rating.html */
.kpi-grid { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.kpi-chip {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.sla-hero-tag {
  position: absolute;
  bottom: clamp(16px, 3vw, 24px);
  right: clamp(20px, 5vw, 48px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--bg-card);
}

/* ---- datenschutz.html + impressum.html: shared legal-page typography ---- */
.legal-body {
  max-width: 760px;
  color: var(--ink-2);
  font-size: var(--tx-body);
  line-height: 1.7;
}
.legal-body h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--ink);
  margin: 56px 0 16px;
  letter-spacing: -0.02em;
}
.legal-body h3 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 32px 0 12px;
  font-weight: 500;
}
.legal-body p + p { margin-top: 14px; }
.legal-body ul { padding-left: 20px; margin: 12px 0; }
.legal-body li { padding: 4px 0; color: var(--ink-2); }
.legal-body a { color: var(--accent-2); border-bottom: 1px solid rgba(91, 228, 155, 0.3); }
.legal-body a:hover { border-bottom-color: var(--accent-2); }
.legal-body small { color: var(--muted); font-size: 13px; }

/* ---- datenschutz.html: privacy hero callout ---- */
.privacy-hero {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.privacy-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint-glow), transparent);
}
.privacy-hero h3 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-transform: none;
}
.privacy-hero .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.privacy-hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-deep);
}
.privacy-hero .badge .ok { color: var(--accent-2); font-weight: 600; }

/* ---- impressum.html: key/value definition list ---- */
.legal-body .kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 24px;
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.legal-body .kv dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  align-self: baseline;
}
.legal-body .kv dd { margin: 0; color: var(--ink); }
@media (max-width: 600px) {
  .legal-body .kv { grid-template-columns: 1fr; gap: 4px; }
  .legal-body .kv dd { margin-bottom: 12px; }
}

/* ---- lebenslauf.html: CV layout ---- */
.cv-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 80px) 0 clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--hairline);
}
.cv-side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cv-side .portrait-square {
  aspect-ratio: 1/1;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  position: relative;
}
.cv-block {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.cv-block h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.cv-list { list-style: none; padding: 0; margin: 0; }
.cv-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; font-size: 14px;
  border-bottom: 1px dashed var(--hairline);
}
.cv-list li:last-child { border-bottom: 0; }
.cv-list li span { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.cv-main .cv-section {
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.cv-main .cv-section:first-child { border-top: 0; padding-top: 0; }
.cv-main .cv-section > h3 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
}
.cv-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.cv-entry:last-child { border-bottom: 0; }
.cv-entry .year { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.cv-entry .what h5 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cv-entry .what .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; margin-top: 4px; }
.cv-entry .what p { color: var(--ink-2); font-size: 15px; margin-top: 10px; line-height: 1.55; }

.print-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: 12px 18px; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
}
.print-btn:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .cv-grid { grid-template-columns: 1fr; }
  .cv-side { position: static; }
  .cv-entry { grid-template-columns: 1fr; gap: 8px; }
}

@media print {
  .nav, .footer, .print-btn, .cv-side .actions { display: none !important; }
  body { background: white; color: black; font-size: 11px; }
  .cv-grid { grid-template-columns: 200px 1fr; padding: 0; border: 0; gap: 32px; }
  .page-header { padding: 16px 0 24px; }
  .page-header h1 { font-size: 36px; }
  .container { padding: 16px; }
  .cv-entry { padding: 8px 0; }
  .cv-side .portrait-square { aspect-ratio: 1/1.2; }
}

/* ---- projekte.html: filter chips ---- */
.chip {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--hairline-strong); color: var(--ink); }
.chip.is-active {
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.20), rgba(139, 92, 255, 0.08));
  color: var(--ink);
  border-color: rgba(139, 92, 255, 0.4);
  box-shadow: 0 0 16px -4px var(--accent-glow);
}

/* ---- ueber-mich.html: tool list rows ---- */
.tool-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px dashed var(--hairline);
  font-size: 16px;
}
.tool-row span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}

/* ---- index.html: client roll grid ---- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.client-cell {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  min-height: 88px;
  position: relative;
  overflow: hidden;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.client-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.client-cell:hover {
  border-color: var(--hairline-strong);
  background: var(--bg-card-hi);
  color: var(--ink);
  transform: translateY(-2px);
}
.client-cell:hover::before { opacity: 1; }
@media (max-width: 700px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- index.html: hero floating info-cards ---- */
.hero-portrait { overflow: visible; }
.hero-portrait .portrait-slot { border-radius: var(--radius); }
.hero-portrait .portrait-slot::before { content: none; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 14px;
  background: rgba(20, 22, 28, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  box-shadow:
    0 12px 40px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
  opacity: 0;
  animation: fc-in 0.8s var(--ease) forwards;
}
.float-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-bright), transparent);
}
.float-card--tl { top: -18px;  left: -28px;  animation-delay: 0.3s;  animation-name: fc-in, fc-float-a; animation-duration: 0.8s, 7s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease), ease-in-out; }
.float-card--tr { top: 22%;   right: -36px;  animation-delay: 0.5s;  animation-name: fc-in, fc-float-b; animation-duration: 0.8s, 8s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease), ease-in-out; }
.float-card--br { bottom: 14%; right: -22px; animation-delay: 0.7s;  animation-name: fc-in, fc-float-c; animation-duration: 0.8s, 9s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease), ease-in-out; }
.float-card--bl { bottom: -16px; left: 18%;  animation-delay: 0.9s;  animation-name: fc-in, fc-float-a; animation-duration: 0.8s, 7.5s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease), ease-in-out; }

.fc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.fc-dot--violet { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.fc-dot--mint   { background: var(--accent-2); box-shadow: 0 0 12px var(--mint-glow); }
.fc-dot--amber  { background: var(--accent-3); box-shadow: 0 0 12px rgba(255, 180, 91, 0.4); }
.fc-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: pulse 2.5s ease-in-out infinite;
}

.fc-body { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.fc-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fc-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.fc-value sup { font-size: 0.55em; color: var(--accent-2); vertical-align: top; margin-left: 1px; }

@keyframes fc-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fc-float-a {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-6px) translateX(2px); }
}
@keyframes fc-float-b {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-8px) translateX(-3px); }
}
@keyframes fc-float-c {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(5px) translateX(-2px); }
}

@media (max-width: 900px) {
  .float-card--tl { left: -8px; top: -14px; }
  .float-card--tr { right: -8px; }
  .float-card--br { right: -8px; }
  .float-card--bl { left: 8%; bottom: -14px; }
  .fc-value { font-size: 13px; }
}
@media (max-width: 560px) {
  .float-card { padding: 9px 12px; gap: 10px; }
  .float-card--tl { left: 8px; }
  .float-card--bl { display: none; }
  .fc-label { font-size: 9px; }
  .fc-value { font-size: 12px; }
}

/* ---- cases/ncara-brand.html: brand guide swatches & type specimen ---- */
.swatch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.swatch-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.swatch { aspect-ratio: 16/7; }
.swatch-meta { padding: 18px 20px; }
.swatch-name { font-weight: 600; color: var(--ink); font-size: 17px; }
.swatch-role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-2); margin-top: 4px; }
.swatch-values { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.type-specimen {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.type-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.type-name { font-weight: 600; color: var(--ink); font-size: 16px; }
.type-usage { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 4px; }
.type-sample { font-family: 'Jost', sans-serif; color: var(--ink); }
.type-sample--headline { font-weight: 700; font-size: clamp(48px, 6vw, 88px); line-height: 1; }
.type-sample--copy { font-weight: 400; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; max-width: 56ch; }
.type-alphabet { margin-top: 20px; font-family: 'Jost', sans-serif; font-size: clamp(14px, 1.6vw, 19px); line-height: 1.8; color: var(--ink-2); word-break: break-word; }
.type-alphabet--bold { font-weight: 700; }
@media (max-width: 720px) {
  .swatch-row { grid-template-columns: 1fr; }
  .type-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---- cases/salesforce.html: hero timeline, stack & compare diagrams ---- */
.hero-timeline {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(36px, 5vw, 64px) clamp(40px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.timeline-line {
  position: absolute;
  left: clamp(46px, 8vw, 94px);
  top: clamp(36px, 5vw, 64px);
  bottom: clamp(36px, 5vw, 64px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline-strong) 8%, var(--hairline-strong) 92%, transparent);
}
.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}
.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted-2);
  flex-shrink: 0;
}
.timeline-step.is-accent .step-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.step-num {
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 600;
  color: var(--muted-2);
  width: clamp(44px, 4vw, 60px);
  flex-shrink: 0;
}
.timeline-step.is-accent .step-num { color: var(--accent); }
.step-label {
  font-size: clamp(16px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink-2);
}
.timeline-step.is-accent .step-label { color: var(--ink); }
.hero-timeline-tag {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  right: clamp(24px, 5vw, 56px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--bg-card);
}
@media (max-width: 640px) {
  .timeline-step { gap: 14px; }
  .step-num { font-size: 22px; width: 34px; }
}

.stack-diagram {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.stack-layer {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.stack-layer.is-accent {
  border-color: rgba(139, 92, 255, 0.4);
  background: var(--bg-card-hi);
  box-shadow: 0 0 24px -10px var(--accent-glow);
}
.stack-layer.is-mint {
  border-color: rgba(91, 228, 155, 0.35);
}
.stack-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stack-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 500;
}
.stack-desc { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.stack-connector {
  width: 1px;
  height: 24px;
  background: var(--hairline-strong);
}

.compare-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}
.compare-card.is-accent {
  border-color: rgba(91, 228, 155, 0.35);
  background: var(--bg-card-hi);
}
.compare-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.compare-card.is-accent .compare-label { color: var(--accent-2); }
.compare-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.compare-list li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
}
.compare-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted-2);
}
@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ---- cases/salesforce-sla.html: ticket mock & SLA diagrams ---- */
.sf-mock {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.sf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.sf-topbar-left { display: flex; align-items: center; gap: 8px; }
.sf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.sf-ticket-id { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 500; }
.sf-topbar-sep { color: var(--muted-2); font-size: 12px; }
.sf-topbar-sub { font-size: 12px; color: var(--muted); }
.sf-tabs { display: flex; gap: 4px; }
.sf-tab {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.sf-tab.is-active { color: var(--ink); background: var(--bg-card-hi); border: 1px solid var(--hairline-strong); }

.sf-countdown-bar {
  margin: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px) 0;
  background: linear-gradient(135deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid rgba(139, 92, 255, 0.4);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px) clamp(24px, 3.5vw, 36px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 0 32px -14px var(--accent-glow);
}
.sf-countdown-time {
  font-family: var(--mono);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sf-countdown-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sf-countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sf-priority-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-3);
  border: 1px solid rgba(255, 180, 91, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
}

.sf-path {
  margin: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px) 0;
  display: flex;
}
.sf-path-step {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  padding: 12px 8px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.sf-path-step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.sf-path-step:not(:first-child) { margin-left: -14px; }
.sf-path-step.is-done { color: var(--ink-2); background: var(--bg-card-hi); }
.sf-path-step.is-current {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.sf-fields {
  margin: clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 32px) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 1;
}
.sf-field {
  background: var(--bg-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.sf-field .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.sf-field .v { font-size: 14px; font-weight: 500; color: var(--ink); }

@media (max-width: 720px) {
  .sf-tabs { display: none; }
  .sf-path { flex-direction: column; }
  .sf-path-step { clip-path: none !important; margin-left: 0 !important; text-align: left; }
  .sf-fields { grid-template-columns: repeat(2, 1fr); }
}

.service-time-diagram {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.std-segment {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  flex-shrink: 0;
}
.std-segment.std-active { border-color: rgba(139, 92, 255, 0.35); }
.std-segment.std-paused {
  background: repeating-linear-gradient(45deg, var(--bg-card) 0 8px, var(--bg-card-hi) 8px 16px);
  color: var(--muted-2);
}
.std-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.std-time { margin-top: 4px; font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 14px; }
.std-segment.std-paused .std-time { color: var(--muted-2); }
.std-track { flex: 1; height: 1px; background: var(--hairline-strong); min-width: 24px; }
@media (max-width: 720px) {
  .service-time-diagram { flex-wrap: wrap; }
  .std-track { display: none; }
}

.lifecycle-diagram {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.lc-node {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.35;
  min-width: 100px;
}
.lc-node.is-accent { border-color: rgba(139, 92, 255, 0.4); color: var(--ink); box-shadow: 0 0 16px -8px var(--accent-glow); }
.lc-node.is-mint { border-color: rgba(91, 228, 155, 0.4); color: var(--ink); }
.lc-arrow { color: var(--muted-2); font-size: 15px; }
@media (max-width: 720px) {
  .lifecycle-diagram { flex-direction: column; align-items: stretch; }
  .lc-arrow { text-align: center; transform: rotate(90deg); }
}

.handoff-diagram {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.handoff-node {
  flex: 1;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.handoff-node.is-accent { border-color: rgba(139, 92, 255, 0.4); background: var(--bg-card-hi); }
.handoff-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.handoff-bar { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.handoff-fill { height: 100%; border-radius: 999px; background: var(--muted-2); }
.handoff-fill.is-accent { background: var(--accent); }
.handoff-arrow { color: var(--muted-2); font-size: 18px; }
.handoff-caption { margin-top: 12px; font-size: 11px; color: var(--muted-2); }
@media (max-width: 720px) {
  .handoff-diagram { flex-direction: column; align-items: stretch; }
  .handoff-arrow { text-align: center; transform: rotate(90deg); }
}

/* ---- cases/salesforce-rating.html: hero stars & flowchart ---- */
.rt-hero {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: clamp(14px, 2vw, 22px);
}
.rt-hero-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.rt-hero-tag {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rt-hero-stars {
  position: relative;
  display: flex;
  gap: clamp(6px, 1.2vw, 14px);
}
.hero-star {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: var(--hairline-bright);
}
.hero-star.is-on {
  color: var(--accent-3);
  filter: drop-shadow(0 0 22px rgba(255, 180, 91, 0.55));
}
.rt-hero-score {
  position: relative;
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(90deg, var(--ink), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rt-hero-score span {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.rt-hero-caption {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.flowchart { margin-top: 32px; }
.flowchart-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.fc-node {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 14px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.35;
  flex: 1;
  min-width: 96px;
}
.fc-node.is-accent { border-color: rgba(139, 92, 255, 0.4); color: var(--ink); box-shadow: 0 0 16px -8px var(--accent-glow); }
.fc-node.is-mint { border-color: rgba(91, 228, 155, 0.4); color: var(--ink); }
.fc-node.fc-decision {
  background: repeating-linear-gradient(45deg, var(--bg-card) 0 7px, var(--bg-card-hi) 7px 14px);
  border-color: rgba(255, 180, 91, 0.4);
  color: var(--ink);
}
.fc-arrow { color: var(--muted-2); font-size: 13px; flex-shrink: 0; }

.flowchart-exceptions {
  margin-top: 20px;
  padding: 20px clamp(18px, 3vw, 28px);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.fc-exceptions-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-3); }
.fc-exceptions-row { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fc-exception {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  padding: 12px 14px;
  background: var(--bg-card-hi);
  border-radius: var(--radius-sm);
}
.fc-exception-if { color: var(--ink); font-weight: 500; }
.fc-exception-arrow { color: var(--muted-2); font-size: 12px; }
.fc-exception-then { color: var(--muted); }

@media (max-width: 900px) {
  .flowchart-main { flex-direction: column; align-items: stretch; }
  .fc-arrow { text-align: center; transform: rotate(90deg); }
  .fc-exceptions-row { grid-template-columns: 1fr; }
}

.rule-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule-card { background: var(--bg-card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.rule-card.is-amber { border-color: rgba(255, 180, 91, 0.35); }
.rule-card.is-mint { border-color: rgba(91, 228, 155, 0.35); }
.rule-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.rule-desc { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .rule-grid { grid-template-columns: 1fr; } }

.bidir-diagram { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.bidir-node {
  flex: 1; min-width: 200px; max-width: 280px; background: var(--bg-card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.bidir-node.is-accent { border-color: rgba(139, 92, 255, 0.4); background: var(--bg-card-hi); }
.bidir-name { font-weight: 600; color: var(--ink); font-size: 16px; }
.bidir-desc { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.bidir-links { display: flex; flex-direction: column; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bidir-arrow-row { white-space: nowrap; }
@media (max-width: 720px) { .bidir-diagram { flex-direction: column; } }

.score-row { margin-top: 32px; display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; }
.score-card {
  background: var(--bg-card); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px 28px; text-align: center; min-width: 180px;
}
.score-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.score-value { margin-top: 10px; font-size: clamp(36px, 4vw, 48px); font-weight: 700; color: var(--ink); }
.score-value span { font-size: 18px; color: var(--muted); font-weight: 500; }
.score-stars { margin-top: 10px; }
.score-stars .star { font-size: 16px; }
