/* ==========================================================================
   Home (/) – luca LAYOUT_SPEC ch. 1 / MOTION_SPEC ch. 2,
   hero build-up replaced by the Studio Move preloader (framer LAYOUT 1.1 / MOTION 3 §2)
   ========================================================================== */

.nav-trigger { position: absolute; top: 70px; left: calc(50% - .5px); z-index: 1; width: 1px; height: 1px; }

/* ---------- 1.2 Section Header ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
  width: 100%; height: 100vh; padding: 20px; color: var(--media-fg, #fff);
}
.hero__content { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; width: 100%; }
.hero__heading { display: flex; flex-direction: column; justify-content: center; align-items: center; width: min-content; overflow: hidden; }
.hero__line { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; width: min-content; overflow: hidden; }
.hero__line > div { width: 467px; white-space: pre-wrap; word-break: break-word; }
.hero__mobile { display: none; }
.hero__button { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; width: min-content; }
.hero__bottom {
  position: absolute; left: 0; bottom: 0; z-index: 1; width: 100%; overflow: hidden;
  display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; padding: 20px;
}
.hero__scroll { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; overflow: hidden; }
.hero__scroll > div { display: flex; }
.hero__case { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; width: min-content; }
.hero__case > a { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; }
.hero__case .case-card { z-index: 1; }
@media (max-width: 809.98px) {
  .hero { height: 91vh; }
  .hero__line { display: none; }
  .hero__mobile { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; align-self: stretch; overflow: hidden; }
  .hero__mobile > div { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; width: min-content; overflow: hidden; }
  .hero__mobile > div > div { white-space: pre; }
  .hero__scroll { display: none; }
  .hero__case { flex: 1 0 0px; width: 1px; }
  .hero__case > a { width: 100%; }
  .hero__case .case-card { flex: 1 0 0px; width: 1px; }
}

/* ---------- loader slot (luca .asxwjl) holding the Studio Move preloader ---------- */
.hero__loader { position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: 100%; overflow: hidden; background: rgb(255, 255, 255); }
.intro {
  position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; overflow: visible;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
}
.intro__stage {
  position: relative; flex: 1 0 0px; width: 100%; height: 1px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  transform: scale(.25);
}
.intro__cards { position: relative; flex: 1 0 0px; width: 100%; height: 1px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.intro__card { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; transform: perspective(1200px) scale(0) rotateX(-90deg); }
.intro__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro__card--last { display: flex; flex-direction: row; justify-content: center; align-items: center; }
.intro__card-inner { position: relative; flex: 1 0 0px; width: 1px; height: 100%; overflow: hidden; }
.intro__card-inner > video, .intro__card-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro__still.is-hidden { visibility: hidden; }

/* ---------- 1.3 Featured Projects ---------- */
.featured { position: relative; z-index: 5; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 100%; padding: 100px 20px 50px; background: #fff; }
.sec-head { display: flex; flex-direction: row; justify-content: center; align-items: flex-end; gap: 40px; width: 100%; overflow: hidden; }
.sec-head > h2 { flex: 1 0 0px; width: 1px; white-space: pre-wrap; word-break: break-word; }
.featured__row { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 100%; overflow: hidden; }
.featured__cell { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 1px; }
.featured__cell--wide { flex: .6 0 0px; aspect-ratio: 1.5 / 1; }
.featured__cell--square { flex: .4 0 0px; aspect-ratio: 1 / 1; }
.featured__cell > a { display: flex; flex-flow: row wrap; justify-content: flex-start; align-items: flex-start; align-content: flex-start; flex: 1 0 0px; width: 1px; height: 100%; }
.featured__cell > a > div { flex: 1 0 0px; width: 1px; height: 100%; }
@media (max-width: 809.98px) {
  .sec-head { padding: 0 0 5px; }
  .featured__row { flex-direction: column; }
  .featured__cell { flex: none; width: 100%; aspect-ratio: auto; }
  .featured__cell > a, .featured__cell > a > div { height: auto; }
  .featured__cell > a .project-card { height: min-content; }
  .featured__row--2 .featured__cell--square { order: 1; }
  .featured__row--2 .featured__cell--wide { order: 0; }
}

/* ---------- 1.4 Approach slider (eUlmP) ---------- */
.approach-wrap { position: relative; z-index: 1; width: 100%; aspect-ratio: 2.0654044750430294 / 1; }
.approach { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; width: 100%; height: 100%; padding: 50px 20px 100px; background: rgb(255, 255, 255); }
.approach__container { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; width: 100%; overflow: hidden; }
.approach__heading { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 10px; width: 100%; padding: 0 0 50px; }
.approach__lrow, .approach__lwrap { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; width: 100%; }
.approach__lwrap { flex: 1 0 0px; width: 1px; }
.approach__lwrap .line-draw { flex: 1 0 0px; width: 1px; }
.approach__content { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 20px; width: 100%; padding: 30px 0 0; overflow: hidden; }
.approach__left { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; flex: .4 0 0px; width: 1px; }
.approach__num { display: flex; flex-direction: row; justify-content: center; align-items: center; }
.approach__col { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; width: min-content; height: 160px; margin-bottom: -43px; overflow: hidden; }
/* the strip is moved by home.js (roll with retargeting, whole device pixels) – no CSS transition.
   Window + gap are taller than the line box: Safari sets Darker Grotesque lower than Chrome, a 117 / 80px window
   cut off the bottom of the digits. The negative margin keeps the layout below exactly where it was. */
.approach__col > div { display: flex; flex-direction: column; align-items: center; gap: 45px; will-change: transform; }
.approach__col p { white-space: pre; }
.approach__right { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; flex: .6 0 0px; width: 1px; }
/* all three texts share one grid cell: the section keeps the height of the longest text, so the page below never
   jumps when the slide changes (tablet: was +-23px); inactive texts are invisible and not focusable */
.approach__text { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; width: 100%; }
.approach__text[hidden] { display: flex; visibility: hidden; pointer-events: none; }
/* the whole slide advances on click / tap (home.js); pointer devices get the "Weiter" label cursor */
.approach__content[data-approach-advance] { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.approach__title { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; width: 100%; padding: 0 0 2px; overflow: hidden; }
.approach__title > p { flex: 1 0 0px; width: 1px; white-space: pre-wrap; word-break: break-word; }
.approach__text--3 .approach__title { min-height: 36px; }
.approach__body { width: 100%; max-width: 600px; opacity: .5; white-space: pre-wrap; word-break: break-word; }
.approach__arrows { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 10px; width: 100%; padding: 50px 0 0; }
@media (max-width: 809.98px) {
  .approach-wrap { aspect-ratio: auto; }
  .approach { height: min-content; }
  .approach__content { flex-direction: column; gap: 40px; }
  .approach__left { flex: none; width: 40%; }
  .approach__col { height: 115px; margin-bottom: -35px; }
  .approach__right { flex: none; width: 100%; }
  .approach__text { height: 230px; }
  .approach__text--3 .approach__title { min-height: 0; }
}

/* ---------- 1.5 CTA (About teaser) ---------- */
.cta-wrap { position: relative; z-index: 1; width: 100%; }
/* portrait photo in the wide teaser: cover, crop kept around the face (x ~60 %, y ~40 % of the photo) */
.cta-section__image img.cta-wrap__portrait { object-position: 60% 42%; }

/* ---------- 1.6 Journal -> News ---------- */
/* empty card shell (no posts yet): image box keeps its aspect ratio as a light grey tile */
.article-card--empty .article-card__img > div { background: rgb(248, 248, 248); }
.journal { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 100%; padding: 100px 20px 60px; overflow: hidden; }
.journal .sec-head { align-items: center; gap: 10px; }
.journal__grid { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 20px; width: 100%; }
.journal__col { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 20px; flex: 1 0 0px; width: 1px; }
.journal__col > a { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; flex: 1 0 0px; width: 1px; }
.journal__col > a > div { flex: 1 0 0px; width: 1px; }
@media (max-width: 1199.98px) { .journal { padding-bottom: 40px; } }
@media (max-width: 809.98px) {
  .journal__grid { flex-direction: column; gap: 40px; }
  .journal__col { flex: none; width: 100%; }
}

/* Mokka: Karte "Neuestes Projekt" nur auf dem Desktop */
@media (max-width: 1199.98px) { .hero__case { display: none !important; } }

/* MOKKA_MAPPING 70: Preloader wartet auf die Bilder (home.js) – bis dahin stehen alle CSS-Animationen still */
html.is-preloading *, html.is-preloading *::before, html.is-preloading *::after { animation-play-state: paused !important; }
/* MOKKA_MAPPING 71: während der Ladeanimation ist oben und unten (auch unter den Safari-Leisten) nur Weiß zu sehen */
html.is-locked .main > :not(.hero), html.is-locked mokka-footer { visibility: hidden; }
/* MOKKA_MAPPING 72: Überschrift und "Alle …"-Link stehen auf derselben Schriftlinie (Grundlinie), in jedem Browser */
.approach__heading { align-items: last baseline; }
.sec-head, .journal .sec-head { align-items: baseline; }
.sec-head .roll-link { overflow: clip; overflow-clip-margin: 4px; }
.featured .sec-head { align-items: last baseline; }
/* das Doppel für den Hover-Roll zählt nicht für die Grundlinie */
.sec-head .roll-link__col { position: relative; }
.sec-head .roll-link__col > span[aria-hidden] { position: absolute; top: 28px; left: 0; }

/* MOKKA_MAPPING 80: Links neben den Abschnitts-Labels in Label-Größe (13 px, wie „Zum Projekt" auf Über mich) */
.approach__heading .arrow-link, .sec-head .roll-link, .sec-head .arrow-link { font-size: 13px; line-height: 117%; letter-spacing: 0; }
.approach__heading .arrow-link { align-items: baseline; }
.approach__heading .arrow-link .arrows { align-self: center; }
/* Safari kennt "last baseline" in Flex nicht zuverlässig – beide Zeilen sind einzeilig, also normale Grundlinie */
.approach__heading, .featured .sec-head { align-items: baseline; }

/* MOKKA_MAPPING 90 – Karte „Neuestes Projekt“: erscheint mit dem Seitenaufbau (3,1 s) und blendet nach ein paar Sekunden
   wieder aus (ab 9 s, .8 s). Läuft wie alles andere erst los, wenn die Lade-Animation startet (html.is-preloading). */
@keyframes mk-case-out { to { opacity: 0; visibility: hidden; } }
.hero__case > a { animation: mk-case-out .8s var(--e-quart, ease) 9s forwards; }

/* MOKKA_MAPPING 111: Handy – Hero volle Bildschirmhöhe minus 40 px (vorher 91vh). Das Video rückt minimal tiefer und
   „Ausgewählte Projekte“ / „Alle ansehen“ liegen auch bei eingeklappten Browserleisten sicher unter dem ersten Bild. */
@media (max-width: 809.98px) {
  .hero { height: calc(100vh - 40px); height: calc(max(100vh, 100lvh) - 40px); }
}
/* MOKKA_MAPPING 111: Handy – Kacheln nur Titel + eine Zeile (Art des Projekts) statt der langen Beschreibung */
.project-card__desc .pc-m { display: none; }
@media (max-width: 809.98px) {
  .featured .project-card__desc .pc-d { display: none; }
  .featured .project-card__desc .pc-m { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
