/* ─────────────────────────────────────────────────────────
   Reset & base
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #fafaf9;
  --fg:        #0a0a0a;
  --muted:     #6b7280;
  --faint:     #a3a3a3;
  --hairline:  #e7e5e4;
  --hover:     #f5f5f4;

  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --edge:      48px;
  --content-w: 1100px;
  --prose-w:   680px;
  --header-h:  60px;
}

html[data-theme="dark"] {
  --bg:       #0c0c0c;
  --fg:       #f5f5f4;
  --muted:    #a8a29e;
  --faint:    #57534e;
  --hairline: #1f1f1f;
  --hover:    #161616;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--fg); color: var(--bg); }

/* ─────────────────────────────────────────────────────────
   Skip link
   ───────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--fg); color: var(--bg);
  padding: 8px 14px; font-size: 13px; z-index: 999;
  font-family: var(--font-mono);
}
.skip-link:focus { left: 8px; }

/* ─────────────────────────────────────────────────────────
   Site header / top nav
   ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-inner {
  max-width: calc(var(--content-w) + var(--edge) * 2);
  margin: 0 auto;
  padding: 0 var(--edge);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-brand .brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-left: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13.5px;
  color: var(--fg);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--muted); }
.nav-link[aria-current="page"] { font-weight: 500; }

.nav-divider {
  width: 1px;
  height: 14px;
  background: var(--hairline);
  flex-shrink: 0;
}

/* HELL/DUNKEL and DE/EN split toggles */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  white-space: nowrap;
}
.nav-toggle .opt { opacity: 0.32; transition: opacity 0.15s ease; color: var(--fg); }
.nav-toggle .opt.active { opacity: 1; font-weight: 500; }
.nav-toggle .sep { opacity: 0.22; }

/* Mobile hamburger (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--fg);
  padding: 6px 0;
  flex-shrink: 0;
}

/* Mobile overlay nav */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 90;
  flex-direction: column;
  padding: 32px var(--edge);
  gap: 0;
  border-top: 1px solid var(--hairline);
  overflow-y: auto;
}
.mobile-overlay.open { display: flex; }

.mobile-overlay .mob-link {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  display: block;
  transition: color 0.15s ease;
}
.mobile-overlay .mob-link:first-child { border-top: 1px solid var(--hairline); }
.mobile-overlay .mob-link:hover { color: var(--muted); }

.mobile-overlay .mob-controls {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-overlay .mob-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-overlay .mob-control-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ─────────────────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────────────────── */
.page-wrap {
  max-width: calc(var(--content-w) + var(--edge) * 2);
  margin: 0 auto;
  padding: 0 var(--edge);
}

main.content {
  padding-top: 80px;
  padding-bottom: 100px;
}

section { padding-block: 72px; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: none; padding-top: 0; }

/* ─────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────── */
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero p.lede {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--prose-w);
}

/* ── Stats bar ── */
.stats-bar {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats-bar .stat {
  padding: 28px 0 28px 20px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
}
.stats-bar .stat:first-child { padding-left: 0; }
.stats-bar .stat:last-child { border-right: none; }
.stats-bar .stat-num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-bar .stat-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── Featured image (hero) ── */
.featured-img {
  margin-top: 56px;
  overflow: hidden;
}
.featured-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-img:hover img { transform: scale(1.015); }

/* ── Video section ── */
.video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hover);
  overflow: hidden;
}
.video-wrap video {
  width: 100%; height: 100%; border: none; display: block;
}
.media-caption {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.media-caption .kind {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ── CTA link ── */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease, gap 0.15s ease;
}
.cta-link:hover { color: var(--muted); border-color: var(--muted); gap: 18px; }
.cta-link .arrow { font-size: 14px; font-style: normal; }

/* ── Section label ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 40px;
}

/* ── Work / service list ── */
.work-list { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  color: var(--fg);
  transition: padding-left 0.15s ease;
}
.work-row:first-child { border-top: none; }
.work-row:hover { padding-left: 8px; }
.work-row:hover .work-arrow { opacity: 1; transform: translateX(2px); }
.work-row .work-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
.work-row .work-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 5px;
  display: block;
}
.work-row .work-desc { font-size: 13.5px; color: var(--muted); font-weight: 300; }
.work-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ── Body paragraphs ── */
.page-body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--fg);
  margin-bottom: 22px;
  max-width: var(--prose-w);
}
.page-body p:last-of-type { margin-bottom: 0; }

/* ── Contact list ── */
.contact-list { list-style: none; display: flex; flex-direction: column; }
.contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.contact-list li:first-child { border-top: none; }
.contact-list .ckey {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-list a { font-size: 15.5px; color: var(--fg); transition: color 0.15s ease; }
.contact-list a:hover { color: var(--muted); }
.contact-list .ext { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* ─────────────────────────────────────────────────────────
   Subpage header
   ───────────────────────────────────────────────────────── */
.page-intro { padding-block: 0; border-top: none; }

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex; align-items: baseline; gap: 10px;
}
.page-eyebrow .crumb { color: var(--faint); margin: 0 4px; }
.page-eyebrow a { color: var(--muted); transition: color 0.15s ease; }
.page-eyebrow a:hover { color: var(--fg); }

.page-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: var(--prose-w);
  text-wrap: balance;
}
.page-lede {
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  max-width: var(--prose-w);
}

/* ── Project list (Umbauten) ── */
.project-list { display: flex; flex-direction: column; }
.project { padding-block: 64px; border-top: 1px solid var(--hairline); }
.project:first-of-type { border-top: none; }

.project-figure { margin: 0 0 32px; overflow: hidden; }
.project-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-figure:hover img { transform: scale(1.02); }

.project-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.project-title { font-size: 28px; font-weight: 400; letter-spacing: -0.015em; margin-bottom: 16px; }
.project-desc { font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--muted); max-width: var(--prose-w); }

/* Back link */
.back-link {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding: 4px 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.back-link a:hover { color: var(--muted); border-color: var(--muted); }

/* ─────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
}
.site-footer .footer-inner {
  max-width: calc(var(--content-w) + var(--edge) * 2);
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --edge: 24px; }

  .header-nav { display: none; }
  .mobile-menu-btn { display: block; }

  main.content { padding-top: 48px; padding-bottom: 72px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .stat:nth-child(2) { border-right: none; }
  .stats-bar .stat:nth-child(3) { padding-left: 0; border-bottom: 1px solid var(--hairline); }
  .stats-bar .stat:nth-child(n+3) { border-bottom: none; }

  .work-row { grid-template-columns: 24px 1fr; }
  .work-arrow { display: none; }

  .contact-list li { grid-template-columns: 64px 1fr; }
  .contact-list .ext { display: none; }

  .site-footer .footer-inner { flex-direction: column; gap: 6px; }
}
