/* Khadjavi Capital Partners – Haupt-Stylesheet (aus index.html ausgelagert) */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Brand palette – cool grey & blue editorial */
  --ink: #181F38;          /* Deep navy, primary text & dark surfaces */
  --ink-soft: #232B47;     /* Slightly lifted */
  --paper: #F8F9FA;        /* Neutral light grey */
  --paper-deep: #EFEFF1;   /* Slightly deeper grey */
  --bone: #DCDCE0;         /* Muted neutral grey */
  --blue: #009BEA;         /* Primary accent – brand blue */
  --blue-soft: #4DBAEF;    /* Lighter blue for hover/highlight on dark */
  --blue-deep: #006699;    /* Deeper teal-blue, harmonizes with cyan accent */
  --sand: #94A3B8;         /* Muted slate accent (replaces sand) */
  --slate: #3E4F66;        /* Muted blue-grey, italic accents */
  --rule: rgba(24,31,56,0.12);
  --rule-soft: rgba(24,31,56,0.06);
  --shadow-1: 0 1px 2px rgba(24,31,56,0.04), 0 8px 24px rgba(24,31,56,0.06);
  --shadow-2: 0 1px 2px rgba(24,31,56,0.06), 0 24px 60px rgba(24,31,56,0.12);

  /* Typography */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vw, 160px);
}

/* ============ RESET + BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* ============ TYPOGRAPHY UTILITIES ============ */
.eyebrow {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-feature-settings: 'tnum';
  opacity: 1;
}
.eyebrow.no-mark::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-feature-settings: 'ss01';
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
}

.display {
  font-family: var(--serif);
  font-size: clamp(48px, 8.4vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 350;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
}
.display em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 380;
}
.headline em { font-style: italic; }

.subhead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 380;
}

.body-lg {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.caption {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  font-feature-settings: 'tnum';
}

/* ============ LAYOUT ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248,249,250,0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 14px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand__logo {
  display: block;
  height: 26px;
  width: auto;
  color: var(--ink);
  transition: opacity 0.3s ease;
}
.brand:hover .brand__logo { opacity: 0.7; }
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--serif); font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.04em;
  position: relative;
}
.brand__mark::after {
  content: '';
  position: absolute; inset: -3px;
  border: 1px solid var(--blue);
  opacity: 0;
  transition: opacity 0.3s, inset 0.3s;
}
.brand:hover .brand__mark::after { opacity: 1; inset: -5px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name span:first-child { font-weight: 400; }
.brand__name span:last-child {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(24,31,56,0.6); font-weight: 500;
  margin-top: 2px;
}

.nav__menu { display: flex; gap: 4px; align-items: center; }
.nav__link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 5px;
  background: transparent;
  transition: background 0.32s ease, color 0.3s ease;
}
.nav__link:hover { background: var(--paper-deep); }
.nav__cta {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  padding: 10px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.5s cubic-bezier(0.65,0,0.35,1);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  overflow: hidden;
}
.nav__cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta:hover { color: var(--paper); border-color: var(--blue); transform: translateY(-2px); }
.nav__cta svg { transition: transform 0.4s ease; }
.nav__cta:hover svg { transform: translate(2px,-2px); }

.nav__toggle { display: none; }
@media (max-width: 1024px) {
  /* Keep mobile nav stable on scroll – no padding jump, no transition shift.
     IMPORTANT: do NOT apply backdrop-filter on mobile .nav, because it creates
     a containing block for fixed descendants (.nav__menu) and collapses the
     full-screen overlay into the nav's 77px height. Use a solid bg instead. */
  .nav { padding: 18px 0; transition: background 0.3s ease, border-color 0.3s ease; }
  .nav.scrolled {
    padding: 18px 0;
    background: rgba(248,249,250,0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav__menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(248,249,250,0.98);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 100px 24px 40px;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.32s ease, transform 0.32s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav__menu .nav__link {
    font-family: var(--serif);
    font-size: 26px;
    padding: 8px 18px;
  }
  .nav__menu .nav__cta {
    margin-top: 8px;
    font-size: 14px;
  }

  /* Mobile language switcher – same look as desktop (globe + dropdown),
     opens on tap via JS (.is-open). Keep dropdown centered under the icon. */
  .nav__menu .lang-menu { margin: 4px 0 0; }
  .nav__menu .lang-menu__trigger { padding: 10px; }
  .nav__menu .lang-menu__icon { width: 22px; height: 22px; }

  .nav__toggle {
    display: block;
    width: 40px; height: 40px;
    position: relative;
    z-index: 60;
  }
  .nav__toggle span {
    display: block;
    position: absolute;
    left: 50%; top: 50%;
    width: 22px; height: 1px;
    background: var(--ink);
    transform-origin: center;
    transition: transform 0.3s;
  }
  .nav__toggle span:first-child { transform: translate(-50%, calc(-50% - 4px)); }
  .nav__toggle span:last-child  { transform: translate(-50%, calc(-50% + 4px)); }
  .nav.is-open .nav__toggle span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(140px, 18vh, 200px) 0 clamp(80px, 10vh, 120px);
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFBFC 0%, var(--paper) 100%);
}

/* Wave pattern background */
.hero__waves {
  position: absolute;
  top: 0; bottom: 0; left: -8%; right: -8%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg width='1600' height='900' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cg stroke='%23009BEA' fill='none' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M-200 200 Q 100 80, 400 200 T 1000 200 T 1600 200 T 2200 200' opacity='0.18'/%3E%3Cpath d='M-200 280 Q 100 140, 400 280 T 1000 280 T 1600 280 T 2200 280' opacity='0.24'/%3E%3Cpath d='M-200 360 Q 100 200, 400 360 T 1000 360 T 1600 360 T 2200 360' opacity='0.32'/%3E%3Cpath d='M-200 440 Q 100 260, 400 440 T 1000 440 T 1600 440 T 2200 440' opacity='0.42'/%3E%3Cpath d='M-200 520 Q 100 320, 400 520 T 1000 520 T 1600 520 T 2200 520' opacity='0.5' stroke-width='1.8'/%3E%3Cpath d='M-200 600 Q 100 380, 400 600 T 1000 600 T 1600 600 T 2200 600' opacity='0.42'/%3E%3Cpath d='M-200 680 Q 100 440, 400 680 T 1000 680 T 1600 680 T 2200 680' opacity='0.32'/%3E%3Cpath d='M-200 760 Q 100 500, 400 760 T 1000 760 T 1600 760 T 2200 760' opacity='0.24'/%3E%3Cpath d='M-200 840 Q 100 560, 400 840 T 1000 840 T 1600 840 T 2200 840' opacity='0.18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  animation: waveDrift 11s linear infinite alternate;
  animation-delay: -5.5s;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}
@keyframes waveDrift {
  0%   { transform: translate3d(-9%, -3%, 0) scale(1.00); }
  50%  { transform: translate3d(0%, 3%, 0) scale(1.07); }
  100% { transform: translate3d(9%, -3%, 0) scale(1.00); }
}


/* Layered background atmosphere – kept clean, no glows */
.hero__atmos {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}

/* Hero grid removed for cleaner background */
.hero__grid { display: none; }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.hero__meta {
  display: flex; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap;
}
.hero__meta-item .caption { display: block; margin-bottom: 4px; }
.hero__meta-item strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.hero__title {
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}
.hero__title .display { display: block; }
.hero__title .l1 { animation: rise 1.2s 0.1s both cubic-bezier(0.16,1,0.3,1); }
.hero__title .l2 { animation: rise 1.2s 0.25s both cubic-bezier(0.16,1,0.3,1); }
.hero__title .l3 { animation: rise 1.2s 0.4s both cubic-bezier(0.16,1,0.3,1); }

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

.hero__lower {
  display: flex;
  justify-content: center;
  animation: rise 1.2s 0.55s both cubic-bezier(0.16,1,0.3,1);
}

.hero__lede { max-width: 60ch; text-align: center; margin: 0 auto; }
.hero__actions {
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
}
.hero__location {
  display: flex; gap: 10px; align-items: center; font-size: 13px;
  color: rgba(24,31,56,0.6);
}
.hero__location .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(0,155,234,0.22);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,155,234,0.22); }
  50% { box-shadow: 0 0 0 8px rgba(0,155,234,0.04); }
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 32px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--ink); color: var(--paper);
  transition: all 0.5s cubic-bezier(0.65,0,0.35,1);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--paper); transform: translateY(-2px); }
.btn svg { transition: transform 0.4s; }
.btn:hover svg { transform: translate(3px,-3px); }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  z-index: 3;
}
.hero__scroll-line {
  width: 1px; height: 40px; background: var(--ink);
  transform-origin: top; animation: scrollLine 2.4s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ MARQUEE / TICKER ============ */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  overflow: hidden;
  background: var(--paper-deep);
  position: relative;
}
.ticker__track {
  display: flex; gap: 60px;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker__item {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
}
.ticker__item span { color: var(--slate); font-style: italic; }
.ticker__item::before {
  content: '◆'; color: var(--blue); font-size: 8px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ PHILOSOPHY SECTION ============ */
.philosophy {
  padding: var(--section-y) 0;
  position: relative;
}
.philosophy__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
}
.philosophy__copy { max-width: 1080px; text-align: center; margin: 0 auto; }
.philosophy__copy .headline { margin-bottom: 36px; }
.philosophy__copy .body-lg + .body-lg { margin-top: 22px; }

.principles {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--paper);
  padding: 36px 32px 40px;
  display: flex; flex-direction: column;
  justify-content: center;
  min-height: 200px;
  position: relative;
  transition: background 0.5s;
}
.principle:hover { background: var(--paper-deep); }
.principle h4 {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.principle h4 em { font-style: italic; }
.principle p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* ============ INVESTMENTFELDER (Accordion) ============ */
.fields {
  padding: clamp(24px, 3vw, 48px) 0 var(--section-y);
  position: relative;
}
.fields__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.fields__head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.fields__head .headline {
  margin-top: 18px;
  margin-bottom: 24px;
}
.fields__head .body-lg {
  max-width: 56ch;
}

.fields__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 140px);
}
.fields__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  background: var(--paper-deep);
  border-radius: 5px;
  padding: clamp(32px, 4vw, 64px);
}
.fields__row--flip .fields__art {
  order: 2;
}
.fields__row--flip .fields__copy {
  order: 1;
}
@media (max-width: 900px) {
  .fields__row,
  .fields__row--flip {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fields__row--flip .fields__art,
  .fields__row--flip .fields__copy { order: initial; }
}
.fields__art {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--paper-deep);
  border-radius: 5px;
}
/* VC + PE fields: ink-colored box with animated wave */
.fields__row[data-field="vc"] .fields__art,
.fields__row[data-field="pe"] .fields__art {
  background: var(--ink);
}
.fields__art img.vc-wave-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}
/* Wipe-reveal on scroll: wave appears as the card enters viewport */
.fields__row[data-field="vc"] .fields__art::before,
.fields__row[data-field="pe"] .fields__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: 1;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 1.6s cubic-bezier(0.7,0,0.2,1) 0.2s;
  pointer-events: none;
}
.fields__row[data-field="vc"].is-visible .fields__art::before,
.fields__row[data-field="pe"].is-visible .fields__art::before {
  transform: scaleX(0);
}
.fields__art svg,
.fields__art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.fields__art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}
/* No noise overlay on VC/PE wave fields – keep navy clean */
.fields__row[data-field="vc"] .fields__art::after,
.fields__row[data-field="pe"] .fields__art::after { display: none; }
.fields__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fields__rownum {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-feature-settings: 'tnum';
  display: block;
  margin-bottom: 4px;
}
.fields__title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.fields__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}
.fields__copy .suchprofil {
  margin-top: 10px;
}

/* ============ PROFILE SECTION ============ */
.profile {
  background: #FFFFFF;
  color: var(--ink);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
.profile::before { content: none; }
.profile__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.profile__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .profile__inner { grid-template-columns: 1fr; } }

.profile__portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink-soft);
  overflow: hidden;
  border-radius: 5px;
  will-change: transform;
}
.portrait-svg {
  width: 100%; height: 100%; display: block;
}
.profile__portrait::after { content: none; }
.profile__portrait::before { content: none; }

/* The big editorial pull-quote */
.profile__quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.profile__quote::before {
  content: '\201C';
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(72px, 8vw, 112px);
  line-height: 1;
  height: 0.45em;
  color: var(--blue);
  margin-bottom: 18px;
  margin-left: -0.04em;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 0;
  letter-spacing: -0.02em;
}
.profile__quote-mark {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  display: inline-block;
  transform: translateY(0.05em);
  opacity: 0.85;
}

/* Byline under quote */
.profile__byline {
  margin-top: clamp(16px, 1.8vw, 24px);
  padding-top: 0;
  max-width: 32ch;
}
.profile__signature {
  display: block;
  width: 240px;
  height: auto;
  margin-bottom: 8px;
  margin-left: -4px;
  clip-path: inset(0 100% 0 0);
}
.reveal.is-visible .profile__signature,
.profile__byline.is-visible .profile__signature {
  animation: signatureWrite 2.6s cubic-bezier(0.55, 0.08, 0.32, 1) 0.2s forwards;
}
@keyframes signatureWrite {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.profile__name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.profile__role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink);
  opacity: 1;
}
.profile__bio-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.65,0,0.35,1);
  position: relative;
  overflow: hidden;
}
.profile__bio-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.profile__bio-btn:hover { color: #FFFFFF; border-color: var(--blue); }
.profile__bio-btn:hover::before { transform: translateY(0); }
.profile__bio-btn svg { transition: transform 0.4s; }
.profile__bio-btn:hover svg { transform: translate(2px,-2px); }

/* Compact bio under byline */
.profile__bio {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
}

/* ============ PORTFOLIO SECTION ============ */
.portfolio {
  padding: var(--section-y) 0;
  position: relative;
}
.portfolio__head {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 900px) { .portfolio__head { grid-template-columns: 1fr; } }
.portfolio__head .headline em { font-style: italic; }
.portfolio__head .body-lg { max-width: 50ch; }

.portfolio__tabs {
  max-width: var(--maxw); margin: 0 auto var(--gutter); padding: 0 var(--gutter);
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center;
}
.portfolio__tab {
  padding: 10px 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.4s ease;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft);
}
.portfolio__tab .count {
  font-size: 11px;
  background: var(--bone);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.portfolio__tab.is-active {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.portfolio__tab.is-active .count { background: var(--blue); color: var(--paper); }
.portfolio__tab:not(.is-active):hover { border-color: var(--ink); }

.portfolio__header {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto clamp(28px, 3.5vw, 48px);
  padding: 14px calc(var(--gutter) + clamp(16px, 2vw, 24px));
  display: grid;
  grid-template-columns: minmax(140px, 220px) 80px 1fr 160px 100px 16px;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.portfolio__header::after {
  content: '';
  position: absolute;
  left: calc(var(--gutter) + clamp(16px, 2vw, 24px));
  right: calc(var(--gutter) + clamp(16px, 2vw, 24px));
  bottom: 0;
  height: 1px;
  background: var(--rule);
}
.portfolio__header-cell {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
}
.portfolio__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.holding {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 80px 1fr 160px 100px 16px;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: 32px clamp(16px, 2vw, 24px);
  background: transparent;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.32s ease;
  position: relative;
}
.holding:hover {
  background: var(--paper-deep);
}

@media (max-width: 900px) {
  .holding {
    grid-template-columns: auto auto auto 1fr auto;
    column-gap: 8px;
    row-gap: 14px;
    padding: 24px clamp(12px, 2vw, 18px);
    align-items: center;
  }
  .holding__name { grid-column: 1 / 5; grid-row: 1; align-self: center; }
  .holding__link { grid-column: 5; grid-row: 1; align-self: center; justify-self: end; }
  .holding__desc { grid-column: 1 / 6; grid-row: 2; }
  .holding__year { grid-column: 1; grid-row: 3; justify-self: start; align-self: start; }
  .holding__cat { grid-column: 2 / 6; grid-row: 3; justify-self: start; align-self: start; }
  .holding__status { grid-column: 1 / 6; grid-row: 4; justify-self: start; align-self: start; }
}

.holding__year {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 12px;
  justify-self: start;
  white-space: nowrap;
  font-feature-settings: 'tnum';
  box-shadow: 0 1px 2px rgba(24,31,56,0.03);
}

.holding__main {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-items: baseline;
  gap: clamp(20px, 3vw, 48px);
  min-width: 0;
}
.holding__name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  flex-shrink: 0;
}
.holding__desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
  opacity: 0.85;
}

.holding__personal {
  display: block;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 8px;
}
.holding__cat {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 12px;
  justify-self: start;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(24,31,56,0.03);
}

.holding .holding__status {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.holding .holding__status.status-tag--exit {
  color: var(--ink);
}

.holding__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--ink);
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
}
.holding:hover .holding__link { opacity: 1; }
.holding__link svg { transition: transform 0.3s; width: 12px; height: 12px; }
.holding:hover .holding__link svg { transform: translate(3px,-3px); }

.holding[data-cat="exit"] .holding__name { opacity: 0.65; }
.holding[data-cat="exit"]:hover .holding__name { opacity: 1; }

/* ============ COMMITMENT (SOZIALES ENGAGEMENT) ============ */
.commitment {
  padding: var(--section-y) 0;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.commitment__rule { display: none; }
.commitment__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
@media (max-width: 900px) { .commitment__inner { grid-template-columns: 1fr; } }

.commitment__copy h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 18px 0 28px;
}
.commitment__copy h2 em { font-style: italic; }

.foundation-card {
  background: var(--paper-deep);
  border: none;
  padding: clamp(32px, 4vw, 48px);
  border-radius: 5px;
  position: relative;
  max-width: 520px;
  justify-self: end;
}
@media (max-width: 900px) {
  .foundation-card { max-width: none; justify-self: stretch; }
}
.foundation-card__logo-wrap {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.foundation-card__logo-img {
  display: block;
  width: auto;
  max-width: 240px;
  height: auto;
}
.foundation-card__tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.foundation-card__tag {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 12px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(24,31,56,0.03);
}
.foundation-card__logo {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.foundation-card__logo img {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
}
.foundation-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Foundation-flavored status tag */
.status-tag--foundation::before { background: var(--blue); }
.foundation-card h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.foundation-card h3 em { font-style: italic; }
.foundation-card .role {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 24px;
}
.foundation-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 28px; }
.foundation-card__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  padding: 12px 22px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.5s cubic-bezier(0.65,0,0.35,1);
  position: relative;
  overflow: hidden;
}
.foundation-card__link::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.foundation-card__link:hover::before { transform: translateY(0); }
.foundation-card__link:hover { color: var(--paper); border-color: var(--blue); transform: translateY(-2px); }
.foundation-card__link svg { transition: transform 0.3s; }
.foundation-card__link:hover svg { transform: translate(2px,-2px); }

/* ============ CONTACT / FOOTER ============ */
/* Sticky footer reveal effect */
body { background: var(--ink); }
.page-stack {
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 6vw, 96px) 0 32px;
  position: sticky;
  bottom: 0;
  z-index: 1;
}
.contact__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact__hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 3.5vw, 48px);
  padding-bottom: clamp(64px, 8vw, 120px);
}
.contact__hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}
.contact__hero-row .contact__display {
  margin: 0;
}
.contact__display {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  color: #FFFFFF;
  margin: 0 0 16px;
  max-width: 16ch;
}
.contact__display em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.contact__sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(248,249,250,0.65);
  max-width: 48ch;
  margin: 0;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}
@media (max-width: 900px) {
  .contact__actions { align-items: flex-start; }
}
.contact__email {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(248,249,250,0.7);
  border-bottom: 1px solid rgba(248,249,250,0.2);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.contact__email:hover {
  color: #FFFFFF;
  border-bottom-color: var(--blue-soft);
}
.contact__btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  border: 1px solid rgba(248,249,250,0.32);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.65,0,0.35,1);
  position: relative;
  overflow: hidden;
}
.contact__btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
  z-index: -1;
}
.contact__btn:hover { border-color: var(--blue); }
.contact__btn:hover::before { transform: translateY(0); }
.contact__btn svg { transition: transform 0.4s; }
.contact__btn:hover svg { transform: translate(2px,-2px); }

.contact__meta {
  padding: 28px 0;
  border-top: 1px solid rgba(248,249,250,0.18);
  border-bottom: 1px solid rgba(248,249,250,0.18);
}
.contact__time {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(248,249,250,0.85);
}
.contact__clock {
  width: 34px;
  height: 34px;
  display: block;
  color: rgba(248,249,250,0.85);
}
.contact__city {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248,249,250,0.85);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  color: rgba(248,249,250,0.55);
}
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: #FFFFFF; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ PRINT / PDF EXPORT ============ */
@media print {
  /* Force all scroll-triggered reveals to be fully visible */
  .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  /* Force signature to be fully drawn (clip-path animation usually runs on reveal) */
  .profile__signature {
    clip-path: inset(0 0 0 0) !important;
    -webkit-clip-path: inset(0 0 0 0) !important;
    animation: none !important;
  }
  /* Hide interactive UI that doesn't belong on paper */
  .nav, .hero__scroll, .bio-modal, .lang-menu, .nav__toggle,
  .nav__cta, .portfolio__tabs, .profile__bio-btn {
    display: none !important;
  }
  /* Remove fixed positioning so nothing overlays content */
  * { position: static !important; }
  /* Keep page-stack from being clipped */
  body, html { background: #fff !important; overflow: visible !important; }
  /* Avoid awkward page breaks mid-section */
  section, .profile__inner, .portfolio__row, .commit__inner, .ct__inner {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  /* Re-apply key colors that may otherwise be dropped by print */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* Selection */
::selection { background: var(--blue); color: var(--paper); }

/* ============ STATUS TAG ============ */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--sans);
}
.status-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--ink);
  border-radius: 1.5px;
}
.status-tag--active::before { background: var(--blue); }
.status-tag--exit::before { background: var(--sand); }
.status-tag--exit { color: rgba(24,31,56,0.6); }

/* ============ SUCHPROFIL ============ */
.suchprofil {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.suchprofil__label {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  display: block;
}
.suchprofil__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.sp-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(24,31,56,0.03);
}
.sp-item__key {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  white-space: nowrap;
  flex-shrink: 0;
}
.sp-item__val {
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
}

/* ============ LANGUAGE MENU ============ */
.lang-menu { position: relative; margin: 0 10px; display: inline-flex; align-items: center; }
.lang-menu__trigger {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0; padding: 8px;
  cursor: pointer;
  color: rgba(24,31,56,0.7);
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease;
}
.lang-menu__trigger:hover { color: var(--ink); background: var(--paper-deep); }
.lang-menu__icon { flex-shrink: 0; }
.lang-menu__list {
  position: absolute; top: calc(100% + 8px); left: 50%;
  list-style: none; padding: 6px; margin: 0;
  background: var(--paper);
  border: 1px solid rgba(24,31,56,0.1);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(24,31,56,0.05);
  min-width: 140px;
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.lang-menu.is-open .lang-menu__list,
.lang-menu:focus-within .lang-menu__list {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Hover-based open ONLY on devices that truly have hover (desktop with mouse). */
@media (hover: hover) and (pointer: fine) {
  .lang-menu::after {
    content: ''; position: absolute; left: 0; right: 0; top: 100%;
    height: 12px; pointer-events: none;
  }
  .lang-menu:hover::after, .lang-menu.is-open::after { pointer-events: auto; }
  .lang-menu:hover .lang-menu__list {
    opacity: 1; transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}
.lang-menu__item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--sans); font-size: 13px;
  color: var(--ink); cursor: pointer;
  transition: background 0.18s ease;
}
.lang-menu__item:hover { background: var(--paper-deep); }
.lang-menu__item.is-active { color: var(--blue); font-weight: 500; }

/* ============ BIO MODAL ============ */
.bio-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}
.bio-modal.is-open { pointer-events: auto; visibility: visible; }
.bio-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(24, 31, 56, 0.45);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.bio-modal.is-open .bio-modal__backdrop { opacity: 1; }
.bio-modal__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50vw;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(24, 31, 56, 0.18);
}
.bio-modal.is-open .bio-modal__panel { transform: translateX(0); }
.bio-modal__close {
  position: absolute; top: 28px; right: 28px;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
  color: var(--ink);
  z-index: 2;
}
.bio-modal__close:hover { background: var(--ink); color: var(--paper); }
.bio-modal__inner {
  padding: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 72px);
  max-width: 640px;
}
.bio-modal__eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.bio-modal__title {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
  margin: 0 0 28px;
  color: var(--ink);
}
.bio-modal__body p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
}
.bio-modal__body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .bio-modal__panel { width: 92vw; }
}

/* Portrait-Bild (aus Inline-Style ausgelagert) */
.profile__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* Utility (aus Inline-Styles ausgelagert) */
.mt-18 { margin-top: 18px; }
