/* ============================================
   TIMO LORCH — Portfolio
   Design System & Global Styles
   ============================================ */

@import url('https://rsms.me/inter/inter.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@900&display=swap');

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Variable.woff2') format('woff2'),
       url('../assets/fonts/Satoshi-Variable.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-VariableItalic.woff2') format('woff2'),
       url('../assets/fonts/Satoshi-VariableItalic.woff') format('woff');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #888888;
  --color-accent: #1a1a1a;
  --color-border: #e8e8e8;
  --font-main: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --max-width: 1280px;
  --nav-height: 96px;
  --site-header-height: 96px;
  --site-padding: 80px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 120px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  color-scheme: light;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* === SITE HEADER (logo only) === */
.site-header {
  position: fixed;
  top: 3px;
  left: 36px;
  z-index: 100001;
  pointer-events: none;
  mix-blend-mode: difference;
}

.site-logo,
.site-back-btn {
  pointer-events: auto;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-back-btn {
  top: 18px;
  left: 18px;
}

.site-logo.is-hidden,
.site-back-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: white;
  text-decoration: none;
}

.site-logo__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.site-logo__hover {
  opacity: 0;
  transform-origin: 250px 250px;
}

.site-logo-glass {
  position: fixed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(42px);
  -webkit-backdrop-filter: blur(42px);
  pointer-events: none;
  z-index: 100000;
}

/* === NAV (pill — shared styles) === */

/* Glass layer: lives as a sibling to .bottom-nav in the DOM so its
   backdrop-filter stacking context never conflicts with mix-blend-mode. */
.bottom-nav-glass {
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(42px);
  -webkit-backdrop-filter: blur(42px);
  pointer-events: none;
  z-index: 100000;
}

.bottom-nav {
  position: fixed;
  top: 24px;
  right: 36px;
  pointer-events: none;
  z-index: 100001;
  mix-blend-mode: difference;
}

.bottom-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  position: relative;
  background: transparent;
  border-radius: 44px;
  padding: 6px;
  gap: 2px;
  pointer-events: auto;
}

.bottom-nav__bg {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 60px;
  background: #ffffff;
  border-radius: 40px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.bottom-nav__item {
  flex: 0 1 auto;
  min-width: 0;
}

.bottom-nav__item a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
  border-radius: 40px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

/* When the sliding pill is behind a nav item, force its text to black so
   mix-blend-mode: difference renders it as white over the white pill */
.bottom-nav__item.is-highlighted a {
  color: #000000;
}

.bottom-nav__item.is-active.is-highlighted a {
  color: #000000;
}

/* During PJAX transitions: freeze blend-mode so the white overlay doesn't
   cause the nav text to flash black as it fades in/out */
body.is-transitioning .bottom-nav,
body.is-transitioning .site-header {
  mix-blend-mode: normal;
}
body.is-transitioning .bottom-nav__item a {
  color: rgba(0, 0, 0, 0.45);
}
body.is-transitioning .site-header {
  opacity: 0.45;
}

/* Mobile: bottom-centred */
@media (max-width: 768px) {
  .bottom-nav {
    top: auto;
    right: 16px;
    bottom: 20px;
    left: 16px;
    display: flex;
    justify-content: center;
    transition: opacity 0.3s ease;
  }

  .bottom-nav-glass {
    position: fixed !important;
    top: auto !important;
    bottom: 20px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }

  .bottom-nav.is-hidden-bottom,
  .bottom-nav-glass.is-hidden-bottom {
    opacity: 0 !important;
    pointer-events: none;
  }

  .bottom-nav__list {
    max-width: 100%;
  }

  .bottom-nav__item a {
    padding: 9px clamp(6px, 2.2vw, 18px);
    font-size: clamp(9px, 3vw, 13px);
    letter-spacing: 0.04em;
  }
}

/* === HOME STAGE (new editorial layout) === */

/* Footer in normal flow on home page */
body.home .home-footer {
  position: static;
  margin: 0;
}

/* === HOME FOOTER === */
.home-footer {
  margin-top: auto;
  margin-left: -36px;
  margin-right: -36px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.home-footer__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px var(--site-padding) 240px;
  gap: 40px;
}

/* Per-character spans injected by proximity weight script */
.wght-char {
  display: inline-block;
}

.home-footer__headline {
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--color-text);
  margin: 0;
  cursor: none;
}


.home-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--site-padding);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.home-footer__copy {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.home-footer__link {
  display: flex;
  align-items: center;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s;
}

.home-footer__link:hover {
  opacity: 0.5;
}

/* Used on case study / about pages where footer sits outside .home-frame */
.home-footer--page {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === HOME PAGE === */
body.home {
  overflow: auto;
}

.home-stage {
  position: relative;
  inset: 0;
  display: flex;
  overflow: hidden;
}

/* Left section: category label + big word */
.home-stage__left {
  flex: 0 0 44%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 36px 80px 60px;
  overflow: visible;
}

/* Vertical rotated category label */
.home-cat-label {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  user-select: none;
}

.home-cat-label__plus {
  display: inline-block;
  margin-left: 5px;
  color: var(--color-text);
}

/* Giant display word */
.home-word {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: clamp(80px, 13vw, 210px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  color: var(--color-text);
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s var(--ease-reveal) 0.2s;
}

body.loaded .home-word {
  opacity: 1;
  transform: translateY(0);
}

/* Slide button — fixed at the boundary between left and right */
.home-slide-btn {
  position: fixed;
  left: 44%;
  top: 50vh;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-slide-btn:hover {
  background: var(--color-text);
  color: #fff;
}

/* Right section: card track */
.home-stage__right {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 80px 0 52px 16px;
  min-width: 0;
}

.home-cards {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.home-cards__track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.home-card {
  flex: 0 0 calc(50% - 5px);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.home-card:hover .home-card__img img {
  transform: scale(1.03);
}

.home-card__cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.home-card__img {
  flex: 1;
  overflow: hidden;
  background: var(--color-border);
  min-height: 0;
}

.home-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.home-card__meta {
  flex-shrink: 0;
  margin-top: 12px;
  padding-bottom: 4px;
}

.home-card__type {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.home-card__name {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .home-stage {
    flex-direction: column;
  }

  .home-stage__left {
    flex: 0 0 auto;
    padding: 100px 24px 32px 44px;
    justify-content: flex-start;
  }

  .home-word {
    font-size: clamp(72px, 20vw, 120px);
  }

  .home-slide-btn {
    display: none;
  }

  .home-stage__right {
    flex: 1;
    padding: 0 20px 60px 20px;
  }

  .home-card {
    flex: 0 0 70vw;
  }
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400000;
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px var(--spacing-md);
  pointer-events: none;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader.hide {
  transform: translateY(-100%);
}

.preloader__count {
  font-family: var(--font-main);
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Block scroll while loading */
body.loading {
  overflow: hidden;
}

/* Page transitions — zoom-in depth effect */
body.loaded {
  opacity: 1;
  transform: none;
  transform-origin: center top;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-leave {
  pointer-events: none;
}

/* === PAGE LOAD ANIMATION === */
:root {
  --ease-reveal: cubic-bezier(0.11, 0.82, 0.39, 0.92);
}

/* Logo clip container — overflow:hidden acts as the curtain */
.nav__logo {
  display: flex;
  align-items: center;
  overflow: hidden; /* clips the image while it slides up */
}

/* Logo starts below its container, invisible */
.nav__logo img {
  height: 36px;
  width: auto;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.85s var(--ease-reveal),
    opacity 0.5s ease;
}

/* When body gains .loaded, logo slides up into view */
body.loaded .nav__logo img {
  transform: translateY(0);
  opacity: 1;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-color: var(--color-border);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.nav__links a:hover {
  opacity: 0.5;
}

.nav__links a.active {
  font-weight: 500;
}

/* === PAGE WRAPPER === */
.page {
  padding-top: var(--nav-height);
}

/* === HERO === */
.hero {
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.hero__title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero__title em {
  font-style: italic;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--spacing-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: gap 0.2s;
}

.hero__cta:hover {
  gap: 14px;
}

/* === FEATURED PROJECTS (HOME) === */
.featured-projects {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-projects__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

.featured-projects__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.featured-projects__all {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.featured-projects__all:hover {
  gap: 10px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 2fr 120px 120px;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
  gap: var(--spacing-md);
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  color: inherit;
}

.project-row:hover {
  opacity: 0.6;
}

.project-row__index {
  font-size: 12px;
  color: var(--color-text-muted);
}

.project-row__name {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.project-row__category {
  font-size: 13px;
  color: var(--color-text-muted);
}

.project-row__year {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: right;
}

.project-row--coming-soon {
  pointer-events: none;
}

.project-row--coming-soon .project-row__name {
  color: #aaa;
}

.coming-soon-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-text);
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}

/* === PROJECTS GRID === */
.projects-grid {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card__image {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--color-border);
  margin-bottom: var(--spacing-sm);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

.project-card--no-link {
  pointer-events: none;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.project-card__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-card__info {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: right;
}

.project-card__services {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* === WORKS LAYOUT (Projekte page) === */
.works-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md) 0;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 0 var(--spacing-lg);
  align-items: start;
}

.works-sticky {
  position: sticky;
  top: var(--site-header-height);
  height: calc(100vh - var(--site-header-height));
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0 var(--spacing-md);
  padding: var(--spacing-lg) 0;
}

.work-section {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
}

.work-section:first-child {
  padding-top: 0;
  border-top: none;
}

.work-section__num {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  width: 76px;
  color: var(--color-text);
}

.work-section__images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-section__images img {
  width: 100%;
  height: auto;
  display: block;
}

/* Index list */
.works-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.works-index__item {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 5px 0;
  line-height: 1.3;
  transition: color 0.3s;
  cursor: default;
}

a.works-index__item {
  cursor: pointer;
}

.works-index__item.active {
  color: var(--color-text);
  font-weight: 500;
}

a.works-index__item:hover {
  color: var(--color-text);
}

.works-index__soon {
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-left: 6px;
}

/* Preview image */
.works-preview {
  position: relative;
  overflow: hidden;
  background: var(--color-border);
}

.works-preview__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.works-preview__img.active {
  opacity: 1;
}

/* === CTA SECTION === */
.cta-section {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.cta-section__title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.cta-section__email {
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.cta-section__email:hover {
  opacity: 0.6;
}

/* === FOOTER === */
.footer {
  padding: var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--color-text);
}

/* === ABOUT PAGE === */
.about-hero {
  padding-top: calc(var(--site-header-height) + 8vw);
}

.about-hero__text {
  padding: 0 var(--site-padding) clamp(40px, 5vw, 80px);
  max-width: 2000px;
  margin: 0 auto;
}

.about-hero__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 0 var(--site-padding) clamp(40px, 5vw, 80px);
  max-width: 2000px;
  margin: 0 auto;
}

.about-hero__headline {
  font-family: var(--font-main);
  font-size: clamp(28px, 5.8vw, 104px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  cursor: default;
  white-space: pre-line;
}

.about-hero__bio-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.about-hero__bio-main {
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.7;
  max-width: 30vw;
  min-width: 200px;
  flex-shrink: 0;
}

.about-hero__bio-col {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 340px;
}

.about-hero__img {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.about-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* === TIMELINE === */
.timeline-section {
  padding: var(--spacing-lg) var(--site-padding);
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.section-label {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  position: sticky;
  top: calc(var(--site-header-height) + 24px);
  align-self: start;
}

.timeline {
  display: flex;
  flex-direction: column;
  grid-column: 2;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.timeline-item__period {
  font-size: 16px;
  color: #000;
  padding-top: 3px;
  white-space: nowrap;
}

.timeline-item__role {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.timeline-item__company {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.15;
}

.timeline-item__notes {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 0;
}

.timeline-item__note {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.15;
}

/* === CLIENTS === */
.clients-section {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.client-logo {
  aspect-ratio: 1;
  overflow: hidden;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* === ABOUT CLIENTS CAROUSEL === */
.about-clients {
  overflow: hidden;
  padding: var(--spacing-lg) 0;
}

.about-clients__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: about-logos-scroll 35s linear infinite;
  will-change: transform;
}

.about-clients__track:hover {
  animation-play-state: running;
}

@keyframes about-logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes about-logos-scroll-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.about-clients__track--reverse {
  animation: about-logos-scroll-reverse 35s linear infinite;
}

.about-client-logo {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.about-client-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: opacity 0.2s, filter 0.2s;
}

.about-client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* === EDUCATION === */
.education-section {
  padding: var(--spacing-lg) var(--site-padding);
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.education-item {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.education-item__title {
  font-size: 15px;
  font-weight: 500;
}

.education-item__org {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* === CASE STUDY === */
.case-hero {
  padding: var(--spacing-xl) var(--site-padding) var(--spacing-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-family: 'Inter var', 'Inter', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  font-variation-settings: 'wght' 300;
}

.case-hero__category {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.case-hero__title {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.case-hero__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
  margin-bottom: var(--spacing-lg);
}

.case-hero__intro .case-hero__title {
  margin-bottom: 0;
}

.case-hero__intro .case-description {
  max-width: none;
  margin-bottom: 0;
  padding-top: 0.2em;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
}

.case-meta__item {}

.case-meta__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.case-meta__value {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.case-description {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.75;
  color: #444;
  margin-bottom: var(--spacing-lg);
}

/* === CASE IMAGE GALLERY === */
.case-gallery {
  padding: 0 var(--site-padding) var(--spacing-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-gallery__full {
  width: 100%;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.case-gallery__full img,
.case-gallery__full video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.case-gallery__full--natural img,
.case-gallery__full--natural video {
  aspect-ratio: auto;
  object-fit: contain;
}

.case-gallery__grid--natural.case-gallery__grid--2 img,
.case-gallery__grid--natural.case-gallery__grid--2 video {
  aspect-ratio: auto;
  object-fit: contain;
}

.case-gallery__grid {
  display: grid;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.case-gallery__grid--2 {
  grid-template-columns: 1fr 1fr;
}

.case-gallery__grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.case-gallery__grid--2 img,
.case-gallery__grid--2 video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.case-gallery__grid--3 img,
.case-gallery__grid--3 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === CASE VIDEO HERO === */
.case-video-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 750px;
  background: #111;
  overflow: hidden;
  margin-top: 0;
}

/* Remove gap between video hero and content on desktop */
.case-video-hero + .page {
  padding-top: 0;
}
.case-video-hero + .page > .case-hero {
  padding-top: 80px;
}

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

/* === CASE GALLERY FULL-BLEED === */
.case-gallery-bleed {
  width: 100%;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.case-gallery-bleed img,
.case-gallery-bleed video {
  width: 100%;
  height: auto;
  display: block;
}

/* === CASE EXPAND (Team & Credits toggle) === */
.case-expand {
  margin-top: 30px;
}

.case-expand__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-top: 1px solid var(--color-border);
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 14px 0;
  transition: color 0.2s;
}

.case-expand__toggle:hover {
  color: var(--color-text);
}

.case-expand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0;
  flex-shrink: 0;
  position: relative;
}

/* Horizontal line (always visible) */
.case-expand__icon::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 1px;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Vertical line (fades out when open) */
.case-expand__icon::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 8px;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.case-expand.is-open .case-expand__icon::after {
  opacity: 0;
}

.case-expand__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.case-expand.is-open .case-expand__body {
  max-height: 400px;
  opacity: 1;
}

.case-meta--expand {
  border-top: none;
  padding-top: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

/* === RELATED PROJECTS === */
.related-section {
  padding: var(--spacing-lg) var(--site-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  align-items: start;
}

.related-section__title {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-align: left;
  margin: 0;
  padding-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-card__image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-border);
  margin-bottom: var(--spacing-xs);
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card__image img {
  transform: scale(1.04);
}

.related-card__name {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.related-card:hover .related-card__name {
  color: var(--color-text);
}

/* === PROJEKTE PAGE (Fixed Viewport, Three-Column) === */
body.projekte {
  overflow: auto;
  height: auto;
}

.projekte-frame {
  position: fixed;
  left: 0;
  right: 10px; /* leave room for the progress bar */
  top: var(--site-header-height);
  bottom: 0;
  display: grid;
  grid-template-columns: 22% 28% 1fr;
}

/* --- Left column: sticky project info --- */
.projekte-left {
  display: flex;
  align-items: center;
  padding: 48px 40px;
  overflow: hidden;
}

.projekte-left__inner {
  transition: opacity 0.22s ease;
}

.projekte-left__num {
  display: block;
  font-size: clamp(64px, 6.5vw, 108px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.projekte-left__name {
  display: block;
  font-size: clamp(13px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 220px;
  margin-bottom: 22px;
}

.projekte-left__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s, gap 0.2s;
}

.projekte-left__link:hover {
  color: var(--color-text);
  gap: 10px;
}

/* --- Middle column: scrollable thumbnails --- */
.projekte-middle {
  overflow-y: scroll;
  scrollbar-width: none;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.projekte-middle::-webkit-scrollbar {
  display: none;
}

.projekte-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projekte-group + .projekte-group {
  margin-top: 28px;
}

.projekte-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.15s;
}


/* --- Right column: large preview --- */
.projekte-right {
  position: relative;
  overflow: hidden;
}

.projekte-preview {
  position: absolute;
  inset: 40px;
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.projekte-preview--hidden {
  opacity: 0;
}

/* --- Vertical progress bar (right edge) --- */
.projekte-progress {
  position: fixed;
  right: 0;
  top: var(--site-header-height);
  bottom: 0;
  width: 10px;
  background: var(--color-border);
  z-index: 150;
  pointer-events: none;
}

.projekte-progress__fill {
  width: 100%;
  background: #c8ff00;
  height: 0%;
  transition: height 0.1s linear;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .works-layout {
    grid-template-columns: 1fr;
  }

  .works-sticky {
    display: none;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .case-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 48px;
    --spacing-xl: 80px;
  }

  .nav {
    position: absolute;
    padding: 0 var(--spacing-sm);
  }

  .project-row {
    grid-template-columns: 1fr auto;
    gap: var(--spacing-sm);
  }

  .project-row__index,
  .project-row__category {
    display: none;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about-hero__content {
    padding-top: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .timeline-section {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-column: 1;
  }

  .section-label {
    position: static;
    font-weight: 600;
  }

  .timeline-item {
    grid-template-columns: 120px 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .related-section {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
    max-width: 75%;
    margin: 0 auto;
  }

  .case-hero__title {
    font-size: 40px;
  }

  /* Headlines with hover effects: semibold on mobile */
  .proj-card__name,
  .home-card__name,
  .project-card__name,
  .related-card__name,
  .projects-section .home-card__name {
    font-weight: 600;
  }

  .home-footer__headline,
  .hero__headline,
  .about-hero__headline {
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .case-gallery__grid--2,
  .case-gallery__grid--3 {
    grid-template-columns: 1fr;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   ABOUT PAGE — styles (moved from about.html inline)
   ============================================ */

body.about {
  overflow: auto;
  height: auto;
}

.about-frame {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 0;
  overflow: hidden;
}

.about-columns {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: clamp(80px, 16vh, 140px);
  min-height: 0;
}

.about-col-portrait {
  min-height: 0;
  align-self: start;
}

.about-col-portrait img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 240px);
  object-fit: contain;
  object-position: top left;
}

.about-col-karriere,
.about-col-ausbildung {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.about-col-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.about-timeline {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.about-timeline-item:first-child {
  border-top: 1px solid var(--color-border);
}

.about-timeline-item__period {
  font-size: 11px;
  color: var(--color-text-muted);
  padding-top: 2px;
}

.about-timeline-item__role {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.about-timeline-item__company {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.about-edu-list {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-edu-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.about-edu-item:first-child {
  border-top: 1px solid var(--color-border);
}

.about-edu-item__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.about-edu-item__org {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ============================================
   ABOUT PAGE — Two-column layout (portrait sticky left, content scrolls right)
   ============================================ */

.about-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--site-header-height);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: var(--site-header-height);
  height: calc(100vh - var(--site-header-height));
  overflow: hidden;
}

.about-portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-content {
  padding: 60px 48px 80px;
  border-left: 1px solid var(--color-border);
}

/* Override flex/overflow from old fixed-frame context */
.about-content .about-timeline,
.about-content .about-edu-list {
  flex: none;
  overflow: visible;
}

.about-intro {
  margin-bottom: 48px;
}

.about-intro__title {
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.about-intro__bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.about-intro__bio:last-child {
  margin-bottom: 0;
}

.about-section {
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-hero__bio-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.about-hero__bio-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.about-timeline .about-timeline-item.reveal:nth-child(2)  { transition-delay: 0.05s; }
.about-timeline .about-timeline-item.reveal:nth-child(3)  { transition-delay: 0.10s; }
.about-timeline .about-timeline-item.reveal:nth-child(4)  { transition-delay: 0.15s; }
.about-timeline .about-timeline-item.reveal:nth-child(5)  { transition-delay: 0.20s; }
.about-timeline .about-timeline-item.reveal:nth-child(6)  { transition-delay: 0.25s; }
.about-timeline .about-timeline-item.reveal:nth-child(7)  { transition-delay: 0.30s; }
.about-timeline .about-timeline-item.reveal:nth-child(8)  { transition-delay: 0.35s; }

.about-edu-list .about-edu-item.reveal:nth-child(2) { transition-delay: 0.05s; }
.about-edu-list .about-edu-item.reveal:nth-child(3) { transition-delay: 0.10s; }
.about-edu-list .about-edu-item.reveal:nth-child(4) { transition-delay: 0.15s; }

/* ============================================
   PROJEKTE — mobile project header (hidden on desktop)
   ============================================ */

.projekte-group__header {
  display: none;
}

/* ============================================
   PROJEKTE OVERVIEW — grid layout
   ============================================ */

.projekte-overview {
  padding: calc(var(--site-header-height) + 60px) var(--site-padding) 120px;
  max-width: none;
  margin: 0;
}

.projekte-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 48px;
}

.proj-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.proj-card__img {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-border);
  margin-bottom: 16px;
  position: relative;
}

.proj-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

a.proj-card:hover .proj-card__img img {
  transform: scale(1.1);
}

.proj-card__img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj-card__img--placeholder {
  background: var(--color-border);
}

.proj-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.proj-card__cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.proj-card__year {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.proj-card__name {
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.proj-card__soon-label {
  display: none;
}

.proj-card--soon {
  opacity: 0.45;
  pointer-events: auto;
  cursor: default;
  transition: opacity 0.3s ease;
}

.proj-card--soon:hover {
  opacity: 1;
}

.proj-card--soon .proj-card__img::after {
  content: 'Coming Soon';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proj-card--soon:hover .proj-card__img::after {
  opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */

/* --- Header: smaller padding + logo on mobile --- */
@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 10px;
    left: calc(50% - 36px) !important;
    right: auto;
    transition: top 0.35s ease;
  }

  body.case .site-header {
    left: 24px !important;
    transition: top 0.35s ease, left 0.35s ease;
  }

  body.case.contact-open .site-header {
    left: calc(50% - 36px) !important;
  }

  .site-logo {
    width: 72px;
    height: 72px;
    overflow: hidden;
  }

  .site-back-btn {
    width: 38px;
    height: 38px;
    font-size: 19px;
    top: 0;
    left: -6px;
  }

  body.case.contact-open .site-back-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85);
  }

  body.case.contact-open .site-logo {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .site-nav a {
    padding: 4px 0; /* bigger tap target */
  }

  /* About page: mobile */
  .about-hero {
    padding-top: calc(var(--site-header-height) + 40px);
  }

  .about-hero__text {
    padding: 0 24px clamp(32px, 6vw, 48px);
  }

  .about-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 24px clamp(32px, 6vw, 48px);
  }

  .about-hero__bio-main {
    max-width: none;
    min-width: auto;
  }

  .about-hero__bio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-hero__img {
    aspect-ratio: 4/3;
  }

  .timeline-section,
  .education-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .about-clients__track {
    animation-duration: 70s;
  }

  .about-clients__track--reverse {
    animation: about-logos-scroll-reverse 70s linear infinite;
  }

  .about-client-logo {
    width: 120px;
    height: 80px;
    padding: 0 16px;
  }

  /* Projekte page: already scrollable */
  body.projekte {
    overflow: auto;
    height: auto;
  }

  .projekte-overview {
    padding: calc(var(--site-header-height) + 40px) 24px 80px;
  }

  .projekte-overview__grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  .projekte-progress {
    display: none;
  }

  .projekte-frame {
    position: static;
    display: block;
    padding-top: var(--site-header-height);
  }

  .projekte-left,
  .projekte-right {
    display: none;
  }

  .projekte-middle {
    overflow-y: visible;
    padding: 24px 20px;
    border: none;
    display: block;
    height: auto;
  }

  .projekte-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 40px;
  }

  .projekte-group + .projekte-group {
    margin-top: 0;
  }

  .projekte-group__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4px;
    gap: 12px;
  }

  .projekte-group__num {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }

  .projekte-group__name {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
  }

  .projekte-group__link {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color 0.2s;
  }

  .projekte-group__link:hover {
    color: var(--color-text);
  }

  /* Case study: tighten page padding */
  .case-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .case-hero__intro {
    grid-template-columns: 1fr;
  }

  .case-gallery {
    padding-left: 24px;
    padding-right: 24px;
  }

  .related-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* --- 480px: single column, footer stacking --- */
@media (max-width: 480px) {
  .projekte-group {
    grid-template-columns: 1fr;
  }

  .home-footer__body {
    padding: 80px 24px 120px;
    gap: 28px;
  }

  .home-footer__email {
    padding: 14px 32px;
    font-size: 14px;
  }

  .home-footer__bar {
    padding: 16px 24px;
  }

  /* Keep case study footer flush, no bleed */
  .home-footer--page {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================
   HOME HERO — new scrollable layout
   ============================================ */

body.home .hero {
  padding: calc(var(--site-header-height) + 8vw) var(--site-padding) 80px;
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

.hero__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}


.hero__headline {
  font-family: var(--font-main);
  font-size: clamp(28px, 7.5vw, 200px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0;
  cursor: default;
  white-space: pre-line;
}

.hero__subline {
  font-family: var(--font-main);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--color-text);
  margin: 0.6em 0 0;
  letter-spacing: 0.01em;
}

.hero__bio {
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--color-text);
  max-width: 20.83vw;
  min-width: 200px;
  flex-shrink: 0;
}

/* ============================================
   HOME PROJECTS GRID — stacked list
   ============================================ */

.projects-section {
  padding: 60px var(--site-padding) 0;
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

.projects-section__heading {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
}

.projects-section .projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  padding: 0;
  max-width: none;
  margin: 0;
}

.projects-section .home-card {
  flex: unset;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.projects-section .home-card:not(.home-card--soon) .home-card__img {
  cursor: none;
}

.projects-section .home-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 36px 48px 36px 36px;
  margin-top: 0;
}

.projects-section .home-card__meta-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.projects-section .home-card__cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.projects-section .home-card__year {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.projects-section .home-card__name {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}


.projects-section .home-card__soon {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.projects-section .home-card__img {
  flex: none;
  width: 75%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-border);
}

.projects-section .home-card--reverse .home-card__img {
  order: -1;
}

.projects-section .home-card--reverse .home-card__meta {
  padding: 36px 36px 36px 48px;
}

.projects-section .home-card__img--placeholder {
  background: var(--color-border);
}

.projects-section .home-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.projects-section .home-card:not(.home-card--soon):hover .home-card__img img {
  transform: scale(1.08);
}

.projects-section .home-card__img--video {
  position: relative;
}

.projects-section .home-card__img--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.projects-section .home-card__img--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.55s ease;
}

.projects-section .home-card:not(.home-card--soon):hover .home-card__img--video video {
  transform: scale(1.08);
}

/* === ALL CLIENTS (home) === */
.all-clients {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.all-clients__heading {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.all-clients__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xs) var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  font-size: 18px;
  color: var(--color-text);
}

.all-clients__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: linear-gradient(to top, var(--color-text) 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: top;
  transition: background-position 0.4s ease, color 0.4s ease;
  cursor: pointer;
}

.all-clients__btn:hover {
  background-position: bottom;
  color: var(--color-bg);
}

@media (max-width: 600px) {
  .all-clients__list {
    grid-template-columns: repeat(2, 1fr);
    font-size: 16px;
  }
}

.testimonials__heading {
  display: block;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  font-variation-settings: 'opsz' 32, 'wght' 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: 120px;
  margin-bottom: 80px;
  text-align: center;
  text-decoration: none;
}

.testimonials__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}


.testimonials__heading:hover .testimonials__arrow {
  animation: nudge 0.4s ease 0.5s;
}

@keyframes nudge {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* === TESTIMONIALS (home) === */
.testimonials {
  padding: var(--spacing-lg) 0;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  width: max-content;
  user-select: none;
}

@media (pointer: coarse) {
  .testimonials__track { cursor: grab; }
  .testimonials__track.is-dragging { cursor: grabbing; }
}

.testimonials__slide {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

.testimonial-card {
  flex-shrink: 0;
  width: 380px;
  aspect-ratio: 4 / 5;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, margin 0.35s ease;
}

.testimonial-card:hover {
  transform: scale(1.1);
  margin-inline: 19px;
}

.testimonial-card::before {
  content: '\201E';
  font-size: 72px;
  line-height: 1;
  color: var(--color-text);
  position: absolute;
  top: -20px;
  left: 32px;
}

.testimonial-card__quote {
  flex-grow: 1;
  display: flex;
  align-items: center;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--color-text-muted);
}


@media (max-width: 600px) {
  .testimonial-card {
    width: 300px;
    aspect-ratio: 4 / 5;
    padding: 24px;
  }

  .testimonial-card:hover {
    margin-inline: 15px;
  }

  .testimonial-card::before {
    font-size: 56px;
  }

  .testimonial-card__quote {
    font-size: 15px;
  }
}

/* ============================================
   INVERT CURSOR BLOB
   ============================================ */

/* ============================================
   CUSTOM CURSOR — Mehr circle
   ============================================ */

.cursor-mehr {
  position: fixed;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: transparent;
  color: #000;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10002;
}

.cursor-mehr.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* ============================================
   HOME NAV — hide hamburger
   ============================================ */

body.home .site-menu-btn {
  display: none;
}

/* ============================================
   HOME RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .hero__headline {
    max-width: none;
  }

  .hero__bio {
    max-width: 360px;
    min-width: auto;
  }

  .projects-section .home-card__name {
    font-size: clamp(18px, 2.5vw, 28px);
  }
}

@media (max-width: 768px) {
  .hero__headline,
  .about-hero__headline,
  .home-footer__headline {
    font-weight: 600;
  }

  .hero__headline {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.1;
  }

  .about-hero__headline {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.1;
  }

  .home-footer__headline {
    font-size: 56px;
  }
}

@media (max-width: 600px) {
  body.home .hero {
    padding: calc(var(--site-header-height) + 60px) 24px 60px;
  }

  .projects-section {
    padding: 40px 24px 0;
  }

  .projects-section .home-card {
    flex-direction: column;
  }

  .projects-section .home-card .home-card__img {
    order: -1;
  }

  .projects-section .home-card__img {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .projects-section .home-card__meta,
  .projects-section .home-card--reverse .home-card__meta {
    padding: 0;
    margin-top: 16px;
    gap: 6px;
  }

  .projects-section .home-card__meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .projects-section .home-card__cat {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .projects-section .home-card__year {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .projects-section .home-card__name {
    font-size: clamp(17px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
}

/* ============================================
   SERVICES PAGE
   ============================================ */

.services-hero {
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.services-hero__headline {
  font-family: var(--font-main);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0 0 clamp(24px, 3vw, 48px);
}

.services-hero__intro {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--color-text);
  max-width: 640px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding: 0 var(--spacing-md) var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.service-block__title {
  font-family: var(--font-main);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 16px;
}

.service-block__text {
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 20px;
}

.service-block__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-block__tags li {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  padding: 5px 14px;
  opacity: 0.6;
}

.services-closing {
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.services-closing p {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--color-text);
  max-width: 640px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

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

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.contact-modal__card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 40px 12px;
  width: min(560px, calc(100vw - 48px));
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.is-open .contact-modal__card {
  transform: translateY(0);
}

.contact-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  opacity: 0.4;
  padding: 8px;
  transition: opacity 0.2s;
}

.contact-modal__close:hover {
  opacity: 1;
}

.contact-modal__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--color-text);
  overflow-wrap: normal;
  word-break: keep-all;
  margin: 0 0 36px;
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-modal__field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

.contact-modal__field input,
.contact-modal__field textarea {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background: #f5f5f3;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  outline: none;
  resize: none;
  transition: background 0.2s;
}

.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
  background: #ebebea;
}

.contact-modal__submit {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-text);
  border: none;
  border-radius: 999px;
  padding: 16px 36px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s;
}

.contact-modal__submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.contact-modal__submit:hover:not(:disabled) {
  opacity: 0.75;
}
.contact-modal__status {
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}
.contact-modal__status.is-success {
  color: #2e7d32;
}
.contact-modal__status.is-error {
  color: #c62828;
}

@media (max-width: 768px) {
  .contact-modal {
    align-items: flex-start;
    padding: 24px;
  }

  .contact-modal__card {
    width: 100%;
    padding: 96px 32px 40px;
  }

  body.contact-open .site-header {
    top: 30px;
    z-index: 300000;
  }
}

/* ============================================
   CONTACT MODAL OPEN — normaler Cursor
   ============================================ */

body.contact-open {
  cursor: auto !important;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (pointer: fine) {
  body.contact-open,
  body.contact-open a,
  body.contact-open button,
  body.contact-open input,
  body.contact-open textarea,
  body.contact-open select,
  body.contact-open label {
    cursor: auto !important;
  }

  /* Blob-Canvas und Label-Cursor ausblenden */
  body.contact-open > canvas,
  body.contact-open .cursor-mehr {
    display: none !important;
  }
}

/* ============================================
   c.test — Full-bleed cursor color sections
   ============================================ */

.ctest-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctest-section__inner {
  padding: var(--spacing-lg);
}

.ctest-section--gray {
  background: #e3e5e8;
}

.ctest-section__label {
  font-family: var(--font-main);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-text);
}
