/* ============================================================
   whoami — redesign phase 1
   Single stylesheet, alle sections inline.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --fg: #f5f1ea;
  --muted: #8a8680;
  --accent: #dc2626;

  --fg-04: rgba(245, 241, 234, 0.04);
  --fg-08: rgba(245, 241, 234, 0.08);
  --fg-12: rgba(245, 241, 234, 0.12);
  --fg-22: rgba(245, 241, 234, 0.22);
  --accent-12: rgba(220, 38, 38, 0.12);

  --status-live: #4ade80;
  --status-dev: var(--accent);
  --status-release: #fbbf24;

  --panel-permitvault: rgba(220, 38, 38, 0.06);
  --panel-lemin: rgba(99, 102, 241, 0.06);
  --panel-helpbook: rgba(251, 146, 60, 0.06);
  --panel-netzwerk: rgba(74, 222, 128, 0.06);

  --font-display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

/* Skip-Link für Tastatur-Nav */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* A11y: globale Focus-Indikatoren für Tastatur-Nav */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible,
.pill:focus-visible,
.panel-cta-primary:focus-visible,
.panel-cta-secondary:focus-visible,
.cta-explore:focus-visible {
  outline-offset: 4px;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, li, dd, address, figcaption { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }

/* Harden: lange Strings (Mail-Adressen, URLs) brechen sauber */
.contact-mail, .footer-mail, .priv-link {
  overflow-wrap: anywhere;
}

/* Print: weniger Bilder, schwarz auf weiß */
@media print {
  .hero-bg, .contact-bg, .work, .panel-mockup, .skip-link, .hero-scroll {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* === HERO ========================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 65% at 50% 55%, #1e1e1e 0%, #0f0f0f 45%, #000 100%);
}

.hero-bg-video video,
.hero-bg-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 15%, transparent 30%, transparent 60%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 20%, transparent 38%, transparent 62%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 28px 40px 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

/* === HERO NAV =================================================== */

.hero-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero-nav .brand { justify-self: start; padding-left: 8px; }
.hero-nav .nav-links { justify-self: center; }
.hero-nav .nav-cta { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--fg);
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s, background 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(220, 38, 38, 0.1);
  color: var(--accent);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.6px;
  font-size: 12px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(245, 241, 234, 0.25);
}

.btn-ghost:hover {
  border-color: var(--fg);
}

.btn-solid {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}

/* === HERO BODY (2-col grid) ================================== */

.hero-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 36px 48px;
  align-items: start;
}

.hero-headline {
  grid-column: 1;
  grid-row: 1;
  max-width: 640px;
}

.hero-headline h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 7.5vw, 112px);
  line-height: 0.86;
  letter-spacing: -2.2px;
  text-transform: uppercase;
  font-weight: 900;
}

.accent {
  color: var(--accent);
}

.cta-explore {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}

.cta-explore:hover {
  background: var(--accent);
  color: var(--fg);
}

.hero-stat-top {
  grid-column: 2;
  grid-row: 1;
  max-width: 320px;
  justify-self: end;
  text-align: right;
}

.hero-stat-bottom {
  grid-column: 2;
  grid-row: 3;
  max-width: 320px;
  justify-self: end;
  text-align: right;
  align-self: end;
}

.hero-bio {
  grid-column: 1;
  grid-row: 3;
  max-width: 420px;
  align-self: end;
}

.stat-big {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  text-transform: uppercase;
}

.hero-stat p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-bio p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.socials {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 241, 234, 0.22);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(220, 38, 38, 0.08);
}

/* === HERO — built-strip (unter stat-top, rechts ausgerichtet) === */

.built-strip {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.built-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.built-label::after {
  display: none;
}

.project-logos {
  display: flex;
  gap: 10px;
}

.plogo {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 241, 234, 0.22);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.plogo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(0.25);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.plogo:hover {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.06);
  transform: translateY(-3px);
}

.plogo:hover img {
  filter: grayscale(0) saturate(1.1);
  transform: scale(1.06);
}

/* Dark SVG logos — invert so they render white on our dark background */
.plogo[aria-label="PermitVault"] img,
.plogo[aria-label="Help Book"] img,
.panel-permitvault .panel-logo,
.panel-helpbook .panel-logo {
  filter: invert(1);
}

.plogo[aria-label="PermitVault"]:hover img,
.plogo[aria-label="Help Book"]:hover img {
  filter: invert(1);
  transform: scale(1.08);
}

.plogo::after {
  content: attr(data-label);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--fg);
  padding: 4px 8px;
  border: 1px solid var(--accent);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.plogo:hover::after {
  opacity: 1;
}

/* === HERO SCROLL INDICATOR =================================== */

.hero-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  pointer-events: none;
}

.chevrons {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.chev {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  opacity: 0.5;
}

/* === ABOUT ==================================================== */

.about {
  background: var(--bg);
  padding: clamp(80px, 10vw, 120px) 40px;
  border-top: 1px solid var(--fg-08);
  position: relative;
  overflow: hidden;
}

/* GitHub mark fills the right side of section 01 */
.about-bg-mark {
  position: absolute;
  top: 50%;
  right: -10%;
  width: clamp(560px, 58vw, 1040px);
  height: auto;
  transform: translateY(-50%);
  color: var(--fg);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.about-inner { position: relative; z-index: 1; }

.about-headline,
.about-lead,
.about-body {
  margin-left: 0;
}

.about-inner {
  max-width: 1100px;
  margin: 0;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  font-weight: 900;
  max-width: 1100px;
}

.about-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-headline.revealed .line {
  opacity: 1;
  transform: translateY(0);
}

.about-headline.revealed .line:nth-child(1) { transition-delay: 0.1s; }
.about-headline.revealed .line:nth-child(2) { transition-delay: 0.25s; }
.about-headline.revealed .line:nth-child(3) { transition-delay: 0.4s; }

.about-lead {
  margin: 40px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--fg);
  font-weight: 900;
  text-transform: uppercase;
  max-width: 900px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.55s;
}

.about-lead.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-body {
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.7;
  color: #b8b4ac;
  max-width: 680px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.7s;
}

.about-body.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-body p {
  margin-bottom: 18px;
}

.about-body p:first-child {
  font-size: 18px;
  color: var(--fg);
  font-weight: 500;
}

.about-body em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* === About data row: contribution heatmap + quick-facts ============ */

.about-data {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1100px;
}

.contrib-card,
.quick-facts {
  background: rgba(15, 15, 15, 0.5);
  border: 1px solid var(--fg-08);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.contrib-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.contrib-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contrib-total {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.3px;
}

.contrib-total .num {
  color: var(--accent);
  font-weight: 900;
}

.contrib-graph {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-12) transparent;
  padding-bottom: 4px;
  min-height: 92px;
}
.contrib-graph::-webkit-scrollbar { height: 4px; }
.contrib-graph::-webkit-scrollbar-track { background: transparent; }
.contrib-graph::-webkit-scrollbar-thumb { background: var(--accent-12); border-radius: 2px; }

.contrib-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.contrib-day {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--fg-04);
  transition: transform 0.15s ease;
}
.contrib-day[data-level="0"] { background: var(--fg-04); }
.contrib-day[data-level="1"] { background: rgba(220, 38, 38, 0.25); }
.contrib-day[data-level="2"] { background: rgba(220, 38, 38, 0.5); }
.contrib-day[data-level="3"] { background: rgba(220, 38, 38, 0.75); }
.contrib-day[data-level="4"] { background: var(--accent); }
.contrib-day[data-date]:hover { transform: scale(1.4); cursor: pointer; }

.contrib-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 12px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contrib-legend-label { margin: 0 6px; font-weight: 600; }
.contrib-legend-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.contrib-legend-box[data-level="0"] { background: var(--fg-04); }
.contrib-legend-box[data-level="1"] { background: rgba(220, 38, 38, 0.25); }
.contrib-legend-box[data-level="2"] { background: rgba(220, 38, 38, 0.5); }
.contrib-legend-box[data-level="3"] { background: rgba(220, 38, 38, 0.75); }
.contrib-legend-box[data-level="4"] { background: var(--accent); }

.contrib-tooltip {
  position: fixed;
  background: #141414;
  border: 1px solid var(--fg-12);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity 0.15s;
}
.contrib-tooltip.visible { opacity: 1; }

/* Quick-facts: 7 + 2y nebeneinander, Currently full-width drunter */
.quick-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-content: center;
}
.quick-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-fact.qf-wide {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--fg-08);
}

.qf-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--fg);
}
.qf-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.qf-kicker {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.qf-text {
  font-size: 14px;
  line-height: 1.45;
  color: #b8b4ac;
}
.qf-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 820px) {
  .about-data {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 36px;
    width: 100%;
  }
  .contrib-card,
  .quick-facts {
    padding: 16px;
    min-width: 0;
    width: 100%;
  }
  .contrib-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }
  .contrib-total { font-size: 14px; }
  .contrib-day { width: 9px; height: 9px; }
  .contrib-week { gap: 2px; }
  .contrib-graph { gap: 2px; min-height: 76px; }
  .quick-facts { gap: 12px 14px; }
  .qf-num { font-size: 32px; }
  .qf-label { font-size: 10px; letter-spacing: 1.2px; }
  .qf-text { font-size: 13px; }
}

.section-divider {
  border: 0;
  height: 1px;
  background: rgba(245, 241, 234, 0.08);
  margin: 80px 0 28px;
  max-width: 1100px;
}

.foot-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
}

.foot-r {
  color: var(--accent);
}

/* === WORK ====================================================== */

/* === Work section: scroll-capture outer + sticky rail === */

.work {
  background: var(--bg);
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  position: relative;
  /* Extended scroll range so last panel doesn't end too abruptly */
  height: 600vh;
}

.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.work::before {
  content: "02";
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 220px);
  font-weight: 900;
  line-height: 1;
  color: rgba(245, 241, 234, 0.04);
  pointer-events: none;
  letter-spacing: -8px;
  z-index: 4;
}

.work-rail {
  display: flex;
  height: 100%;
  will-change: transform;
}

.work-panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  position: relative;
}

.work-panel .panel-inner {
  max-width: 820px;
  width: 100%;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(245, 241, 234, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

/* Glow tint */
.work-panel .panel-inner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, var(--panel-tint, rgba(245, 241, 234, 0.1)) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.work-panel .pname {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.5px;
}

.work-panel .pdesc {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: #b8b4ac;
  max-width: 640px;
  margin: 0;
}

.work-panel .pnum {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
}

.work-panel:focus-visible { outline: none; }
.work-panel:focus-visible .panel-inner {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

/* Headline overlay */
.work-overlay {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 3;
  pointer-events: none;
  max-width: 420px;
}
.work-overlay .work-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.2px;
  margin: 0;
}
.work-overlay .work-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}
.work-overlay .work-all {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--fg);
  transition: transform 0.18s ease, background 0.18s ease;
}
.work-overlay .work-all svg { transition: transform 0.2s ease; }
.work-overlay .work-all:hover {
  background: color-mix(in srgb, var(--fg) 88%, transparent);
}
.work-overlay .work-all:hover svg {
  transform: translateX(3px);
}

/* Progress */
.work-progress {
  position: absolute;
  bottom: 32px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  z-index: 3;
  pointer-events: none;
}
.work-progress-count { font-weight: 700; color: var(--fg); }
.work-progress-count .sep { color: var(--muted); margin: 0 4px; }
.work-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(245, 241, 234, 0.1);
  border-radius: 2px;
  overflow: hidden;
  max-width: 320px;
}
.work-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* Mobile: natural vertical scrolling per panel (no transform jack) */
@media (max-width: 899px) {
  .work { height: auto; }
  .work-sticky { position: static; height: auto; overflow: visible; }
  .work-rail {
    flex-direction: column;
    overflow: visible;
    transform: none !important;
  }
  .work-panel { flex: 0 0 auto; width: 100%; height: 100vh; padding: 60px 24px; }
  .work-panel .panel-inner { padding: 32px 28px; gap: 14px; }
  .work-overlay { position: absolute; top: 24px; left: 24px; }
  .work-progress { display: none; }
}

/* Reduced motion: no transform jack, show panels stacked */
@media (prefers-reduced-motion: reduce) {
  .work { height: auto !important; }
  .work-sticky { position: static !important; height: auto !important; overflow: visible !important; }
  .work-rail { flex-direction: column; transform: none !important; }
  .work-panel { flex: 0 0 auto; width: 100%; height: auto; min-height: 60vh; }
  .work-progress { display: none; }
}

/* === CONTACT =================================================== */

.contact {
  background: var(--bg);
  padding: clamp(180px, 22vw, 280px) 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--fg-08);
}

.contact::before {
  content: "03";
  position: absolute;
  top: 90px;
  right: 40px;
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 140px);
  font-weight: 900;
  line-height: 1;
  color: rgba(245, 241, 234, 0.4);
  mix-blend-mode: difference;
  pointer-events: none;
  letter-spacing: -8px;
  z-index: 3;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.contact-bg-video {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 78% 50%, #2a1f45 0%, #1a1530 40%, #0a0a12 75%, #0a0a0a 95%);
  overflow: hidden;
  /* Shift the eye image right so it sits next to the right-side text/03,
     not centered behind the headline */
  transform: translateX(30%);
}

.contact-bg-video video,
.contact-bg-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-bg-video::before,
.contact-bg-video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  z-index: 2;
  pointer-events: none;
}

.contact-bg-video::before {
  top: 0;
  background: linear-gradient(to bottom, #0a0a0a 0%, rgba(10, 10, 10, 0.7) 50%, transparent 100%);
}

.contact-bg-video::after {
  bottom: 0;
  background: linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0.7) 50%, transparent 100%);
}

.contact-bg-placeholder {
  position: absolute;
  top: 50%;
  right: 14%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.14);
  font-weight: 500;
}

.contact-bg-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, #0a0a0a 40%, transparent 100%);
}

.contact-bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.contact-inner {
  max-width: 1400px;
  margin: 0;
  width: 100%;
  z-index: 1;
}

/* === Meta row (status + location) === */

.contact-meta-row {
  /* Anchored to the section (not the inner container) so the right
     side aligns with the "03" decorative number which sits at
     section right:40px. */
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 4;
}

.status-badge {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-loc {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--fg);
  text-align: right;
  mix-blend-mode: difference;
}

.loc-line {
  display: block;
  line-height: 1.2;
}

.loc-sub {
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 2px;
}

/* === Headline === */

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.88;
  letter-spacing: -2.5px;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0;
}

.contact-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-headline.revealed .line {
  opacity: 1;
  transform: translateY(0);
}

.contact-headline.revealed .line:nth-child(1) { transition-delay: 0.1s; }
.contact-headline.revealed .line:nth-child(2) { transition-delay: 0.25s; }

.contact-mail {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.4s;
}

.contact-mail.revealed {
  opacity: 1;
  transform: translateY(0);
}

.contact-socials-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.55s;
}

.contact-socials-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.contact-meta-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-meta-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Top grid: headline + small eye visual right */
.contact-top {
  display: block;
  margin-bottom: 40px;
}

/* === Giant mailto CTA === */

.contact-mail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
  margin: 0 0 36px;
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease, padding-left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-mail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-mail:hover {
  color: var(--accent);
  padding-left: 20px;
}

.contact-mail:hover::before {
  height: 80%;
}

.mail-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}

.mail-addr {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 900;
  word-break: break-word;
  display: block;
}

/* === Social pills (horizontal row) === */

.contact-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(245, 241, 234, 0.03);
  border: 1px solid rgba(245, 241, 234, 0.12);
  border-radius: var(--radius-pill);
  color: var(--fg);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.pill:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.pill-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pill-handle {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.pill:hover .pill-handle {
  color: rgba(220, 38, 38, 0.75);
}

/* Mobile */
@media (max-width: 720px) {
  .contact {
    padding: 72px 24px 32px;
  }

  .contact-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-headline {
    margin-bottom: 36px;
  }

  .mail-addr {
    font-size: clamp(22px, 7.6vw, 36px);
    letter-spacing: -1px;
  }

  .contact-mail:hover {
    padding-left: 10px;
  }

  .contact-socials-row {
    flex-direction: column;
    gap: 10px;
  }

  .pill {
    justify-content: flex-start;
    width: 100%;
  }
}

/* === PREFERS-REDUCED-MOTION =================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal all hidden elements immediately */
  .about-headline .line,
  .about-body {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Stop infinite chevron-fade animation */
  .chev {
    opacity: 0.5;
    animation: none !important;
  }

}

/* === MOBILE STACK (<820px) ==================================== */

@media (max-width: 820px) {
  .hero-inner {
    padding: 20px 24px;
    gap: 16px;
  }

  .hero-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    display: none; /* mobile: links are in CTAs / overflow nav */
  }

  .hero-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 32px;
  }

  .hero-headline,
  .hero-stat-top,
  .hero-bio,
  .hero-stat-bottom {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    justify-self: start;
    text-align: left;
  }

  /* Mobile: Hero-Inhalt entschlacken — nur Headline + Bio + Socials */
  .hero-stat-top,
  .hero-stat-bottom {
    display: none;
  }

  /* Mobile: Pfeil im Contact-CTA der Top-Nav weg (wird zu klein, stört) */
  .nav-cta .btn-solid {
    font-size: 0;
    padding: 10px 16px;
  }
  .nav-cta .btn-solid::before {
    content: "CONTACT";
    font-size: 12px;
    letter-spacing: 0.6px;
  }

  .hero-bio {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 18px 18px 20px;
    border-radius: var(--radius-md);
    text-align: center;
  }
  .hero-bio .socials {
    justify-content: center;
  }

  /* Contact-Meta-Row: Sub-Location ausblenden, falls noch da */
  .loc-sub { display: none; }

  /* Riesen-Hintergrundzahlen (01/02/03) + about-bg-mark auf Mobile ganz weg */
  .work::before,
  .contact::before,
  .about-bg-mark {
    display: none !important;
  }

  /* Mobile: Mockups sind zu groß und uninteressant ohne Hover/Animation → komplett verstecken */
  .panel-mockup {
    display: none !important;
  }
  .panel-stage {
    grid-template-columns: 1fr !important;
  }

  /* Mobile: Work-Panels kürzer, kein 100vh */
  .work-panel {
    min-height: auto !important;
    height: auto !important;
    padding: 60px 24px !important;
  }

  /* Work-Overlay (Headline) auf Mobile zurückhaltender */
  .work-overlay {
    position: static !important;
    margin-bottom: 32px;
    padding: 0 24px;
    max-width: 100%;
  }

  .hero-scroll {
    display: none; /* space is tight on mobile */
  }

  .about,
  .work,
  .contact {
    padding: 80px 24px;
  }

}

@media (max-width: 500px) {
  .hero-headline h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .about-headline,
  .work-headline {
    font-size: clamp(36px, 10vw, 64px);
  }

  .contact-headline {
    font-size: clamp(48px, 14vw, 80px);
  }
}

/* === PRIVACY PAGE =============================================== */
/* Minimal text-only page. Same fonts, same colors, same padding.   */

.page-privacy {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

.priv-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.priv-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--fg);
}

.priv-back {
  font-size: 11px;
}

.priv-main {
  max-width: 820px;
  margin: 0;
  padding: 96px 40px 64px;
}

.priv-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 144px);
  line-height: 0.88;
  letter-spacing: -3px;
  text-transform: uppercase;
  font-weight: 900;
  margin: 0 0 20px;
}

.priv-title .line {
  display: block;
}

.priv-updated {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.priv-prose {
  font-family: var(--font-body);
}

.priv-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 48px;
  font-weight: 500;
}

.priv-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.8px;
  text-transform: uppercase;
  margin: 56px 0 16px;
  color: var(--fg);
}

.priv-prose h2:first-of-type {
  margin-top: 0;
}

.priv-prose p {
  font-size: 16px;
  line-height: 1.7;
  color: #b8b4ac;
  margin: 0 0 16px;
}

.priv-prose strong {
  color: var(--fg);
  font-weight: 600;
}

.priv-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 38, 38, 0.3);
  transition: border-color 0.2s ease;
}

.priv-link:hover {
  border-color: var(--accent);
}

.priv-foot {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.page-privacy .cf-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-privacy .cf-link:hover {
  color: var(--accent);
}

.page-privacy .cf-sep {
  color: rgba(138, 134, 128, 0.5);
}

@media (max-width: 720px) {
  .priv-nav {
    padding: 20px 24px;
  }

  .priv-main {
    padding: 56px 24px 40px;
  }

  .priv-updated {
    margin-bottom: 40px;
  }

  .priv-prose h2 {
    margin-top: 40px;
  }
}

/* === SITE FOOTER ============================================= */

.site-footer {
  background: #050505;
  border-top: 1px solid rgba(245, 241, 234, 0.08);
  padding: 80px 40px 32px;
  color: var(--fg);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.footer-brand-col {
  max-width: 360px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-tag {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 241, 234, 0.6);
  margin: 0 0 20px;
}

.footer-mail {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 234, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-head {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
  margin: 0 0 20px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  font-size: 14px;
  color: rgba(245, 241, 234, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.fb-item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.45);
}

.fb-link {
  text-decoration: none;
  color: rgba(245, 241, 234, 0.7);
  transition: color 0.2s;
}

.fb-link:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .site-footer {
    padding: 56px 24px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
