/* ================================
   LICHTMANN — Base
================================ */

:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --text: #f5f5f5;
  --muted: #9b9b9b;
  --line: rgba(255,255,255,0.14);
  --header-height: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

img,
video {
  display: block;
  width: 100%;
}

::selection {
  background: #fff;
  color: #000;
}


/* ================================
   Header
================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 24px 4vw;
  transition: background 250ms ease, backdrop-filter 250ms ease;
}

.site-header.scrolled {
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.brand-main {
  font-size: 1.08rem;
  letter-spacing: 0.25em;
  font-weight: 600;
}

.brand-sub {
  font-size: 0.48rem;
  letter-spacing: 0.46em;
  color: #bdbdbd;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.main-nav a {
  position: relative;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* ================================
   Hero
================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video {
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 115%, rgba(255,255,255,0.28), transparent 32%),
    radial-gradient(circle at 38% 115%, rgba(255,255,255,0.12), transparent 25%),
    radial-gradient(circle at 62% 115%, rgba(255,255,255,0.12), transparent 25%),
    linear-gradient(to top, #0e0e0e 0%, #060606 48%, #020202 100%);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.18) 53%, rgba(0,0,0,0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4vw 9vh;
  max-width: 1100px;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: #bdbdbd;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.hero h1 {
  font-size: clamp(5rem, 12vw, 12rem);
}

.hero-subline {
  margin: 30px 0 40px;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.scroll-indicator {
  position: absolute;
  right: 4vw;
  bottom: 7vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, #fff, transparent);
}


/* ================================
   Sections
================================ */

.section {
  padding: 150px 4vw;
}

.section-heading {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  margin-bottom: 90px;
}

.section-number {
  margin: 4px 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section h2,
.contact-section h2 {
  font-size: clamp(3.4rem, 7vw, 7.8rem);
}


/* ================================
   Work
================================ */

.work-section {
  background: var(--bg);
}

.projects {
  display: grid;
  gap: 100px;
}

.project-card {
  cursor: pointer;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: #111;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.16), transparent 32%),
    linear-gradient(135deg, #151515, #060606);
}

.placeholder-image::before,
.placeholder-image::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 70%;
  top: 22%;
  background: linear-gradient(to top, transparent, rgba(255,255,255,0.45), transparent);
  transform-origin: bottom;
}

.placeholder-image::before {
  left: 43%;
  transform: rotate(-20deg);
}

.placeholder-image::after {
  right: 43%;
  transform: rotate(20deg);
}

.placeholder-image span {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 6vw, 7rem);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.12);
}

.project-image {
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
}

.project-card:hover .project-image {
  transform: scale(0.992);
  filter: brightness(1.18);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.project-meta h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 500;
}

.project-meta p,
.project-year {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}


/* ================================
   Services
================================ */

.services-section {
  background: var(--bg-soft);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 30px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.service > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.service h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  font-weight: 500;
}

.service p {
  max-width: 580px;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.7;
}


/* ================================
   About
================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 10vw;
  border-top: 1px solid var(--line);
  padding-top: 45px;
}

.about-copy {
  max-width: 850px;
}

.large-copy {
  margin: 0 0 30px;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.25;
}

.about-copy p:not(.large-copy) {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}


/* ================================
   Contact
================================ */

.contact-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 150px 4vw;
  border-top: 1px solid var(--line);
}

.contact-inner {
  width: 100%;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 50px;
  margin-top: 60px;
}

.contact-links a {
  font-size: clamp(1.1rem, 2vw, 2rem);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 8px;
}


/* ================================
   Footer
================================ */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 34px 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 24px;
}


/* ================================
   Reveal Animation
================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 850ms cubic-bezier(.2,.7,.2,1),
    transform 850ms cubic-bezier(.2,.7,.2,1);
}

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


/* ================================
   Responsive
================================ */

@media (max-width: 800px) {
  :root {
    --header-height: 84px;
  }

  .site-header {
    padding: 20px 22px;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    padding: 0 22px 10vh;
  }

  .hero h1 {
    font-size: clamp(4rem, 19vw, 7rem);
  }

  .hero-subline {
    line-height: 1.8;
  }

  .scroll-indicator {
    display: none;
  }

  .section,
  .contact-section {
    padding: 100px 22px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 60px;
  }

  .projects {
    gap: 70px;
  }

  .project-image {
    aspect-ratio: 4 / 3;
  }

  .project-meta {
    flex-direction: column;
    gap: 14px;
  }

  .service {
    grid-template-columns: 45px 1fr;
  }

  .service p {
    grid-column: 2;
  }

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

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


/* ================================
   LICHTMANN Intro
================================ */

body.intro-active {
  overflow: hidden;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #020202;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 900ms cubic-bezier(.2,.7,.2,1),
    visibility 900ms;
}

.intro-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 75%, rgba(255,255,255,0.09), transparent 34%),
    linear-gradient(to top, rgba(255,255,255,0.025), transparent 45%);
}

.intro-wordmark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  opacity: 0;
  transform: translateY(10px);
  animation: introLogoIn 900ms 180ms cubic-bezier(.2,.7,.2,1) forwards;
}

.intro-main {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.30em;
  padding-left: 0.30em;
}

.intro-sub {
  font-size: clamp(0.45rem, 0.8vw, 0.8rem);
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  color: #c7c7c7;
}

.intro-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes introLogoIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================================
   Real Hero Media
================================ */

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  filter: brightness(0.72) saturate(0.82);
  animation: heroDrift 14s ease-out forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.055); }
  to   { transform: scale(1.015); }
}


/* ==========================================================
   V3 — Smooth cinematic intro
   Ablauf:
   1. Schwarz + LICHTMANN
   2. Hero-Bild kommt unter dem Logo hoch
   3. Intro-Logo bewegt sich optisch Richtung Header
   4. Header + Hero-Copy übernehmen weich
========================================================== */

body.intro-active {
  overflow: hidden;
}

.intro-screen {
  background: #020202;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms cubic-bezier(.22,.61,.36,1);
}

.intro-screen::before {
  opacity: 0.7;
  transition: opacity 900ms ease;
}

.intro-wordmark {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  animation: none;
  transition:
    transform 1050ms cubic-bezier(.22,.8,.2,1),
    opacity 650ms ease;
  will-change: transform, opacity;
}

.intro-screen.stage-logo .intro-wordmark {
  opacity: 1;
}

.intro-screen.stage-transition {
  background: rgba(2,2,2,0);
}

.intro-screen.stage-transition::before {
  opacity: 0;
}

.intro-screen.stage-transition .intro-wordmark {
  transform:
    translate3d(
      calc(-50vw + 4vw + 76px),
      calc(-50vh + 50px),
      0
    )
    scale(0.33);
}

.intro-screen.stage-finish .intro-wordmark {
  opacity: 0;
}

.intro-screen.stage-finish {
  opacity: 0;
  pointer-events: none;
}

/* Hero bleibt bereits im DOM sichtbar und wird unter dem Intro enthüllt */
.hero-image {
  opacity: 0;
  transform: scale(1.075);
  filter: brightness(0.45) saturate(0.78);
  animation: none;
  transition:
    opacity 1500ms cubic-bezier(.22,.61,.36,1),
    transform 3500ms cubic-bezier(.22,.61,.36,1),
    filter 1700ms ease;
}

body.intro-reveal .hero-image,
body.intro-done .hero-image {
  opacity: 1;
  transform: scale(1.025);
  filter: brightness(0.72) saturate(0.82);
}

/* Header wird erst sichtbar, wenn das große Logo dort "ankommt" */
.site-header.intro-header {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 700ms ease,
    transform 850ms cubic-bezier(.22,.61,.36,1),
    background 250ms ease,
    backdrop-filter 250ms ease;
}

body.intro-header-visible .site-header.intro-header,
body.intro-done .site-header.intro-header {
  opacity: 1;
  transform: translateY(0);
}

/* Hero-Texte erscheinen nacheinander */
.hero-copy .hero-eyebrow,
.hero-copy .hero-title,
.hero-copy .hero-subtitle,
.hero-copy .hero-link {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 850ms cubic-bezier(.22,.61,.36,1),
    transform 1000ms cubic-bezier(.22,.61,.36,1);
}

body.intro-copy-visible .hero-eyebrow,
body.intro-done .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

body.intro-copy-visible .hero-title,
body.intro-done .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms;
}

body.intro-copy-visible .hero-subtitle,
body.intro-done .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 220ms;
}

body.intro-copy-visible .hero-link,
body.intro-done .hero-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 330ms;
}

.scroll-indicator {
  opacity: 0;
  transition: opacity 800ms ease 450ms;
}

body.intro-copy-visible .scroll-indicator,
body.intro-done .scroll-indicator {
  opacity: 1;
}

@media (max-width: 800px) {
  .intro-screen.stage-transition .intro-wordmark {
    /* Auf Mobil kein langer diagonaler Flug: sauberer Scale/Fade. */
    transform: translate3d(0,-36vh,0) scale(0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-screen {
    display: none;
  }

  body.intro-active {
    overflow: auto;
  }

  .hero-image,
  .site-header.intro-header,
  .hero-copy .hero-eyebrow,
  .hero-copy .hero-title,
  .hero-copy .hero-subtitle,
  .hero-copy .hero-link,
  .scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================
   V4 — Simple crossfade intro
   Schwarz + Logo -> Logo fadet aus während Foto einfadet
   -> 1 Sekunde später Hero-Text unten links
========================================================== */

.intro-wordmark {
  transform: none !important;
  opacity: 1;
  transition: opacity 1200ms ease !important;
}

.intro-screen.stage-transition {
  background: rgba(2,2,2,0);
  transition: background 1500ms ease, opacity 1200ms ease;
}

.intro-screen.stage-transition .intro-wordmark {
  transform: none !important;
  opacity: 0;
}

.intro-screen.stage-finish {
  opacity: 0;
  visibility: hidden;
}

.site-header.intro-header {
  opacity: 0;
  transform: none;
}

body.intro-header-visible .site-header.intro-header,
body.intro-done .site-header.intro-header {
  opacity: 1;
  transform: none;
  transition: opacity 1000ms ease;
}

.hero-image {
  opacity: 0;
  transform: scale(1.045);
  filter: brightness(0.62) saturate(0.82);
  transition:
    opacity 1500ms ease,
    transform 5000ms ease-out;
}

body.intro-reveal .hero-image,
body.intro-done .hero-image {
  opacity: 1;
  transform: scale(1.015);
  filter: brightness(0.72) saturate(0.82);
}

.hero-copy .hero-eyebrow,
.hero-copy .hero-title,
.hero-copy .hero-subtitle,
.hero-copy .hero-link {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1100ms ease,
    transform 1100ms ease;
}

/* Alles unten links langsam, aber leicht gestaffelt. */
body.intro-copy-visible .hero-eyebrow,
body.intro-done .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

body.intro-copy-visible .hero-title,
body.intro-done .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms;
}

body.intro-copy-visible .hero-subtitle,
body.intro-done .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 180ms;
}

body.intro-copy-visible .hero-link,
body.intro-done .hero-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 260ms;
}


/* ==========================================================
   V4.1 — Layout-shift fix
   Der sichtbare "Ruck" kam sehr wahrscheinlich daher, dass
   während des Intros die Scrollbar entfernt wurde und danach
   wieder erschien. Der Platz dafür wird jetzt dauerhaft reserviert.
========================================================== */

html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body.intro-active {
  /* Nicht mehr die Seitenbreite verändern. */
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Verhindert, dass das Entfernen des Intro-Layers am Ende
   noch einen kleinen visuellen Sprung erzeugt. */
.intro-screen {
  will-change: opacity;
}

.hero,
.hero-media,
.hero-image {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}


/* V4.2 — Header-Wordmark etwas größer */
.brand-main {
  font-size: 1.25rem;
}

.brand-sub {
  font-size: 0.56rem;
}

/* V5 — Real Selected Work */
.portfolio-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:90px 28px}
.project-feature{grid-column:1/-1}.project-half.project-left{grid-column:1/7}
.project-half.project-right{grid-column:7/13;margin-top:140px}.project-wide{grid-column:2/12;margin-top:40px}
.project-link{display:block}.real-project-image{position:relative;background:#080808;overflow:hidden}
.project-feature .real-project-image{aspect-ratio:16/7.5}.project-half .real-project-image{aspect-ratio:4/5}
.project-wide .real-project-image{aspect-ratio:16/7}
.real-project-image img,.real-project-image video{width:100%;height:100%;object-fit:cover;transition:transform 900ms cubic-bezier(.2,.7,.2,1),filter 700ms ease}
.project-feature .real-project-image img{object-position:center 38%}.about-preview img{object-position:center 42%}
.project-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.55),transparent 42%),linear-gradient(to bottom,rgba(0,0,0,.18),transparent 30%)}
.project-image-label{position:absolute;inset:22px 24px auto 24px;z-index:3;display:flex;justify-content:space-between;font-size:.58rem;letter-spacing:.22em;color:rgba(255,255,255,.82)}
.video-hint{position:absolute;z-index:3;right:24px;bottom:22px;font-size:.55rem;letter-spacing:.2em;color:rgba(255,255,255,.7);transition:opacity 350ms ease}
.project-card:hover .real-project-image img,.project-card:hover .real-project-image video{transform:scale(1.025);filter:brightness(1.06)}
.project-card:hover .video-hint{opacity:0}
.portfolio-grid .project-meta{margin-top:0}
@media(max-width:800px){.portfolio-grid{grid-template-columns:1fr;gap:65px}.project-feature,.project-half.project-left,.project-half.project-right,.project-wide{grid-column:1;margin-top:0}.project-feature .real-project-image,.project-wide .real-project-image{aspect-ratio:4/3}.project-half .real-project-image{aspect-ratio:4/5}}
