/* ============================================================
   Portfolio – Lukas
   Source: style.scss  |  Compiled manually
   ============================================================ */

/* ---- Local Webfonts: Sailec -------------------------------- */
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecRegular.woff') format('woff'),
       url('src/fonts/SailecRegular.ttf')  format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecRegularItalic.woff') format('woff'),
       url('src/fonts/SailecRegularItalic.ttf')  format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecMedium.woff') format('woff'),
       url('src/fonts/SailecMedium.ttf')  format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecMediumItalic.woff') format('woff'),
       url('src/fonts/SailecMediumItalic.ttf')  format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}


/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --color-text:       #000000;
  --color-text-muted: #787575;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f9f9f9;
  --gradient-ai:      linear-gradient(to right, #8000ff, #d80000);
  --max-width:        1620px;
  --padding-x:        112px;
  --section-gap:      160px;
  --content-gap:      64px;
  --card-gap:         144px;
  --radius:           8px;
  --font:             'Sailec', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; }

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

s { text-decoration-thickness: auto; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--padding-x);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.section-label {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  white-space: nowrap;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding-top: 8px;
  font-size: 28px;
  font-weight: 500;
  line-height: 40px;
  color: var(--color-text);
  white-space: nowrap;
}

.btn-link::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-link:hover::after { width: 20%; }

.btn-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ============================================================
   TAGS
   ============================================================ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 2px 18px 0;
  border: 1px solid var(--color-text);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
}

.tag--muted {
  border-color: var(--color-text-muted);
  color: var(--color-text-muted);
}


/* ============================================================
   SLIDER
   ============================================================ */

.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slider__slide {
  flex-shrink: 0;
  width: 100%;
}

.slider__slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider--interactive { cursor: none; }

.slider--interactive:hover .slider__slide img {
  transform: scale(0.98);
}

/* Custom cursor follower */
.slider__cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}

.slider__cursor img {
  display: block;
  width: 76px;
  height: auto;
  pointer-events: none;
  filter: brightness(0);
}

.slider__btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  height: 46px;
  padding: 2px 16px 0;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-muted);
  white-space: nowrap;
  pointer-events: none;
}

.slider:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}


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

.hero {
  background-color: var(--color-bg-alt);
  padding-top: 120px;
  padding-bottom: var(--section-gap);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}

.hero__bio {
  flex: 0 0 870px;
  max-width: 870px;
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.hero__heading {
  font-size: 72px;
  font-weight: 500;
  line-height: 88px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  color: var(--color-text);
}

.hero__heading-sub {
  color: var(--color-text-muted);
}

.hero__lead {
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  color: var(--color-text);
  max-width: 870px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.hero__lead.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor gallery follower – opacity driven by JS lerp, no CSS transition needed */
.hero__cursor-gallery {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform, opacity;
}

.hero__cursor-gallery img {
  width: 420px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.45s ease;
}

.hero__cursor-gallery img.is-back  { opacity: 1; position: relative; }
.hero__cursor-gallery img.is-front { opacity: 0; }

.hero__nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  flex-shrink: 0;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.hero__nav.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   LOGOS
   ============================================================ */

.logos {
  background-color: var(--color-bg-alt);
  padding-bottom: var(--section-gap);
  overflow: hidden;
}

.logos__track-wrapper {
  overflow: hidden;
  position: relative;        /* required for overflow:hidden to clip GPU-animated children on iOS Safari */
  transform: translateZ(0);  /* force compositing layer so clipping is applied before compositing */
}

.logos__track {
  display: flex;
  width: max-content;
  animation: logos-scroll 28s linear infinite;
}

.logos__track:hover {
  animation-play-state: paused;
}

.logos__list {
  display: flex;
  align-items: center;
  gap: 144px;
  padding-right: 144px;
}

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


/* ============================================================
   PROJECTS – shared
   ============================================================ */

.project {
  background-color: var(--color-bg);
}

.project--featured {
  padding-block: var(--section-gap);
}

.project--featured .container {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.project--split {
  padding-bottom: var(--section-gap);
}

/* Featured: image-left, desc-right */
.project__layout {
  display: flex;
  gap: var(--content-gap);
  align-items: center;
}

.project__layout .project__slider {
  flex: 0 0 864px;
}

.project__layout .project__desc {
  flex: 1;
}

/* Split: two equal columns */
.project__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  align-items: center;
}

.project__card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Slider height variants */
.project__slider {
  width: 100%;
}

/* Project description blocks */
.project__desc,
.project__card-desc {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.project__name {
  font-size: 40px;
  font-weight: 500;
  line-height: 56px;
  text-transform: lowercase;
}

.project__category {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.project__summary {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--color-text-muted);
}

.project__body {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}


/* ============================================================
   VITA
   ============================================================ */

.vita {
  background-color: var(--color-bg-alt);
}

.vita__inner {
  display: flex;
  gap: var(--card-gap);
  align-items: flex-start;
  padding-top: var(--section-gap);
  padding-bottom: 64px;
}

.vita__left {
  flex: 0 0 626px;
  position: sticky;
  top: 0;
  padding-block: var(--section-gap);
  margin-block: calc(-1 * var(--section-gap));
}

.vita__heading {
  font-size: 56px;
  font-weight: 500;
  line-height: 72px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* Word-by-word reveal (shared: hero + vita) */
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* inline-block children don't inherit text-decoration from parent <s> – apply explicitly */
s .anim-word { text-decoration: line-through; }


/* Individual blocks within vita__right */
.vita__block {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.vita__block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vita__heading-brand {
  display: inline-flex;
  flex-direction: column;
  color: inherit;
  line-height: inherit;
}

.vita__heading-brand::after {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: -4px;
}

.vita__heading-brand:hover::after {
  width: 20%;
}

.vita__right {
  flex: 0 0 626px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.vita__bio {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.vita__bio-text {
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  color: var(--color-text);
}

.vita__ai-icon {
  display: inline;
  height: 1em;
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -4px;
  margin-right: 4px;
}

.vita__ai-text {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ============================================================
   SKILLS
   ============================================================ */

.skills {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.skills__category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skills__heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.skill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 2px 16px 0;
  border: 1px solid var(--color-text);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
}

.skill-item--gradient {
  border-color: #8000ff;
}

.skill-item__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.skill-item--gradient .skill-item__label {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline__heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.timeline__list {
  display: flex;
  flex-direction: column;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 16px;
  border-bottom: 1px solid var(--color-text);
}

.timeline__item:first-child {
  border-top: 1px solid var(--color-text);
}

.timeline__date {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.timeline__role {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.timeline__location {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--color-text-muted);
}


/* ============================================================
   PHOTOS  –  Stacking Scroll Gallery
   ============================================================ */

.photos {
  background-color: var(--color-bg-alt);
  /* height is set dynamically by JS to create scroll space */
}

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

.photos__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.photos__img {
  display: block;
  position: absolute;
  border-radius: var(--radius);
  object-fit: cover;
}

/* ── Main portrait: left-center, large hero image ── */
.photos__img--main {
  left: 14.5%;
  top: 14%;
  width: 48%;
  height: 66%;
  object-position: center top;
  z-index: 1;
}

/* ── Overlay 1: Telefonbox – far right, tall, slides in from right ── */
.photos__img--over1 {
  left: 69%;
  top: 14%;
  width: 24%;
  height: 71%;
  z-index: 2;
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.75s ease;
}

/* ── Overlay 2: Kaffee – top-right, no rotation, slides down ── */
.photos__img--over2 {
  left: 57%;
  top: 2%;
  width: 16%;
  height: 30%;
  z-index: 3;
  transform: translateY(-60px);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.75s ease;
}

/* ── Overlay 3: Laptop – bottom-left, no rotation, slides up ── */
.photos__img--over3 {
  left: 7.5%;
  top: 41%;
  width: 21.5%;
  height: 43%;
  z-index: 4;
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.75s ease;
}

/* All overlays: shared visible state – resets any directional translate to zero */
.photos__img--over1.photos__img--visible,
.photos__img--over2.photos__img--visible,
.photos__img--over3.photos__img--visible {
  transform: translate(0, 0);
  opacity: 1;
}

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

.contact {
  background-color: #000;
  color: #fff;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-block: var(--section-gap);
}

.contact__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__heading {
  font-size: 56px;
  font-weight: 500;
  line-height: 72px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.contact__body {
  display: flex;
  gap: 144px;
  align-items: flex-start;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.contact__lead {
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
}

.contact__sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-shrink: 0;
}

.contact__cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact__cta-icon {
  width: 57px;
  height: 32px;
  flex-shrink: 0;
}

.btn-link--white {
  color: #fff;
}

.btn-link--white::after {
  background-color: #fff;
}

.btn-link--white:focus-visible {
  outline-color: #fff;
}

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

.contact__copyright {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.contact__legal {
  display: flex;
  gap: 32px;
  align-items: center;
}

.contact__legal-link {
  display: inline-flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  white-space: nowrap;
}

.contact__legal-link::after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background-color: #fff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact__legal-link:hover::after {
  width: 20%;
}


/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */

.imprint {
  padding: 80px 0 160px;
  min-height: 100vh;
}

.imprint__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 80px;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-text);
}

.imprint__back-label {
  display: inline-flex;
  flex-direction: column;
}

.imprint__back-label::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.imprint__back:hover .imprint__back-label::after {
  width: 20%;
}

.imprint__back-icon {
  width: 36px;
  height: auto;
  flex-shrink: 0;
  transform: scaleX(-1);
  filter: brightness(0);
}

.imprint__content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

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

.imprint__heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  color: var(--color-text);
}

.imprint__subheading {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-text);
  margin-top: 8px;
}

.imprint__body {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imprint__body strong {
  font-weight: 500;
}

.imprint__body ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.imprint__email,
.imprint__body a {
  display: inline-flex;
  flex-direction: column;
  color: var(--color-text);
  word-break: break-all;
}

.imprint__email::after,
.imprint__body a::after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.imprint__email:hover::after,
.imprint__body a:hover::after {
  width: 20%;
}

.imprint__address {
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .imprint { padding: 64px 0 120px; }
  .imprint__back { margin-bottom: 56px; }
}

@media (max-width: 600px) {
  .imprint { padding: 48px 0 80px; }
  .imprint__back { margin-bottom: 40px; font-size: 16px; }
  .imprint__heading { font-size: 20px; line-height: 30px; }
  .imprint__body,
  .imprint__address { font-size: 16px; line-height: 26px; }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.animate {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.project__split .project__card:nth-child(2).animate {
  transition-delay: 0.18s;
}


/* ============================================================
   RESPONSIVE – 1400px
   ============================================================ */

@media (max-width: 1400px) {
  :root {
    --padding-x:    80px;
    --card-gap:     80px;
    --section-gap:  120px;
  }

  .hero__bio {
    flex: 0 0 700px;
    max-width: 700px;
  }

  .hero__heading {
    font-size: 60px;
    line-height: 76px;
  }

  .hero__lead {
    font-size: 28px;
    line-height: 42px;
  }

  .project__layout .project__slider {
    flex: 0 0 640px;
  }

  .vita__left,
  .vita__right {
    flex: 0 0 480px;
  }

  .vita__heading {
    font-size: 48px;
    line-height: 62px;
  }

  .vita__bio-text {
    font-size: 26px;
    line-height: 40px;
  }
}


/* ============================================================
   RESPONSIVE – 1200px
   ============================================================ */

@media (max-width: 1200px) {
  :root {
    --padding-x:    48px;
    --card-gap:     48px;
    --section-gap:  100px;
    --content-gap:  48px;
  }

  .hero__bio {
    flex: 0 0 auto;
    max-width: 640px;
  }

  .hero__nav {
    display: none;
  }

  .hero__heading {
    font-size: 52px;
    line-height: 68px;
  }

  .hero__lead {
    font-size: 24px;
    line-height: 36px;
  }

  .project__layout {
    flex-direction: column;
  }

  .project__layout .project__slider {
    flex: none;
    width: 100%;
  }

  .vita__inner { flex-direction: column; padding-bottom: 0; }

  .vita__left {
    position: static;
    flex: none;
    padding-block: 0;
    margin-block: 0;
  }

  .vita__right {
    flex: none;
    width: 100%;
    gap: 80px;
  }

}



/* ============================================================
   RESPONSIVE – 900px
   ============================================================ */

@media (max-width: 900px) {
  :root {
    --padding-x:    32px;
    --section-gap:  80px;
    --content-gap:  40px;
  }

  .hero__inner {
    flex-direction: column;
    gap: 40px;
  }

  .hero__heading {
    font-size: 40px;
    line-height: 54px;
  }

  .hero__lead {
    font-size: 20px;
    line-height: 32px;
  }

  .logos__list {
    gap: 48px;
    padding-right: 48px;
  }

  .project__split {
    grid-template-columns: 1fr;
    gap: var(--section-gap);
  }

  .project__name {
    font-size: 32px;
    line-height: 44px;
  }

  .vita__heading {
    font-size: 36px;
    line-height: 48px;
  }

  .vita__bio-text {
    font-size: 22px;
    line-height: 36px;
  }

  .contact__heading {
    font-size: 48px;
    line-height: 64px;
  }

  .contact__body {
    flex-direction: column;
    gap: 48px;
  }

  .contact__lead {
    font-size: 24px;
    line-height: 36px;
  }

  .contact__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}


/* ============================================================
   RESPONSIVE – 768px  (photos mobile)
   ============================================================ */

@media (max-width: 768px) {
  /* Disable sticky scroll; show images stacked vertically */
  .photos {
    padding: var(--section-gap) var(--padding-x);
  }

  .photos__sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  /* Ganzer Block fliegt als Einheit ein – wie .animate in der Vita */
  .photos__stage {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

  /* Alle Bilder innerhalb des Blocks sofort sichtbar */
  .photos__img {
    position: static;
    height: auto;
    max-height: none;
    max-width: none;
    opacity: 1;
    transform: none;
    transition: none;
    object-fit: cover;
    border-radius: var(--radius);
  }

  .photos__img--main {
    aspect-ratio: 4 / 3;
    object-position: center top;
  }

  /* First two images: full width */
  .photos__img--main,
  .photos__img--over1 {
    width: 100%;
  }

  /* Last two images: side by side */
  .photos__img--over2,
  .photos__img--over3 {
    width: calc(50% - 8px);
    aspect-ratio: 1 / 1;
  }

}


/* ============================================================
   RESPONSIVE – 600px
   ============================================================ */

@media (max-width: 600px) {
  :root {
    --padding-x:    20px;
    --section-gap:  64px;
    --content-gap:  32px;
  }

  .hero { padding-top: 80px; }

  .btn-link {
    font-size: 22px;
    line-height: 32px;
  }

  .hero__heading {
    font-size: 32px;
    line-height: 44px;
  }

  .section-label { font-size: 18px; }

  .project__name {
    font-size: 28px;
    line-height: 38px;
  }

  .project__category {
    font-size: 18px;
    line-height: 28px;
  }

  .project__body,
  .project__summary {
    font-size: 16px;
    line-height: 26px;
  }

  .skills__list { gap: 10px; }

  .skill-item {
    font-size: 14px;
    height: 42px;
    padding: 2px 14px 0;
  }

  /* Tags: feste Höhe + 2px top-offset gleicht Cap-Height-Versatz aus */
  .tag {
    height: 42px;
    padding: 2px 16px 0;
    font-size: 15px;
  }

  .timeline__role     { font-size: 16px; }
  .timeline__location { font-size: 16px; }

  .vita__heading-brand::after { height: 4px; }

  .vita__right { gap: 48px; }

  .vita__bio-text {
    font-size: 18px;
    line-height: 28px;
  }

  .skills__heading {
    font-size: 20px;
    line-height: 30px;
  }

  .contact__heading {
    font-size: 36px;
    line-height: 48px;
  }

  .contact__lead {
    font-size: 18px;
    line-height: 28px;
  }

  .contact__sub {
    font-size: 16px;
    line-height: 26px;
  }

  .contact__copyright {
    font-size: 16px;
    line-height: 26px;
  }

  .contact__cta-row { flex-wrap: wrap; }

  .contact__legal {
    gap: 16px;
    flex-wrap: wrap;
  }

  .contact__legal-link {
    font-size: 15px;
    line-height: 24px;
    white-space: normal;
  }

  /* Logos: scale proportionally to 2/3 of desktop size on mobile */
  .logos__list img {
    zoom: 0.667;
  }

  /* logos transition-delay handled via JS (initHeroSequence) */
}
