/* =========================================================
   Jakob Wulf – Landing page
   ========================================================= */

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body { scroll-snap-type: y mandatory; }

.text-right { text-align: right; }

/* HERO */
.hero-wrap { max-width: var(--max); margin: 0 auto; padding: 4rem 2.5rem 0; }
.hero { scroll-snap-align: center; scroll-snap-stop: always;
  position: relative; width: 100%;
  aspect-ratio: 4/3; max-height: 95vh;
  overflow: hidden; background: #0a0a0a;
  display: flex; align-items: flex-end;
  border-radius: 6px;
}
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 65% 35%, #1d1d1d 0%, #080808 65%); transition: filter 0.7s ease; }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(8,8,8,0.75) 100%); }
.hero-meta { position: absolute; top: 1.25rem; right: 1.5rem; z-index: 3; font-size: 10px; letter-spacing: 0.1em; color: #3a3a3a; text-transform: uppercase; transition: opacity 0.7s; }
.hero-content { position: relative; z-index: 2; padding: 3rem 2.5rem; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; transition: opacity 0.7s ease; }
.hero-title { font-size: clamp(42px, 6vw, 80px); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; }
.hero-title em { font-style: normal; color: #3a3a3a; }
.hero-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 260px; }
.hero-cta { font-size: 12px; border: 1px solid rgba(255,255,255,0.2); padding: 10px 20px; border-radius: 4px; color: rgba(255,255,255,0.65); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.hero-cta:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero.is-dim .hero-bg { filter: brightness(0.25); }
.hero.is-dim .hero-content,
.hero.is-dim .hero-meta { opacity: 0.1; }

/* ── HERO SLIDESHOW – project cover images instead of the placeholder ── */
.hero-slides { position: absolute; inset: 0; transition: filter 0.7s ease; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.05; transition: opacity 1.8s ease, scale 7s linear; }
.hero-slides img.is-current { opacity: 1; scale: 1; }
.hero.is-dim .hero-slides { filter: brightness(0.25); }
/* keep the headline readable on bright renders */
.hero-vignette { background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.35) 45%, transparent 70%), radial-gradient(ellipse at center, transparent 40%, rgba(8,8,8,0.6) 100%); }
.hero-meta { color: rgba(255,255,255,0.45); }
.hero-sub { color: rgba(255,255,255,0.6); }
.hero-title em { color: rgba(255,255,255,0.45); }

/* PROJECTS */
.project-section { max-width: var(--max); margin: 0 auto; padding: 4rem 2.5rem 5rem; }
.project { display: block; text-decoration: none; color: inherit; cursor: pointer; scroll-snap-align: center; scroll-snap-stop: always; transition: opacity 0.7s ease; opacity: 0.25; }
.project.is-active { opacity: 1; }
.project + .project { margin-top: 12rem; }

/* Header above image */
.project-header { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 1rem; margin-bottom: 2rem; transition: opacity 0.7s ease; opacity: 0; }
.project.is-active .project-header { opacity: 1; }
.project-header.reversed { flex-direction: row-reverse; }
.project-title { font-size: clamp(52px, 8vw, 110px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; color: var(--text); transition: color 0.2s; }
.project:hover .project-title { color: #fff; }
.project-cat-header { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #444; margin-top: 0.5rem; }
.project-desc { font-size: 15px; color: #666; line-height: 1.7; max-width: 280px; }
.project-num-header { font-size: 11px; color: #2e2e2e; letter-spacing: 0.12em; margin-top: 1rem; }

/* Image */
.project-img-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s ease, filter 0.7s ease; filter: brightness(0.45) saturate(0.1); }
.project.is-active .project-img-wrap img { filter: brightness(0.92) saturate(1); }
.project:hover .project-img-wrap img { transform: scale(1.02); }

/* SCROLL INDICATOR */
.scroll-indicator { max-width: var(--max); margin: 0 auto; padding: 2rem 2.5rem 6rem; display: flex; justify-content: center; align-items: flex-end; min-height: 14rem; }
.scroll-indicator-bottom { max-width: var(--max); margin: 0 auto; padding: 2rem 2.5rem 4rem; display: flex; justify-content: center; align-items: flex-end; min-height: 10rem; }
.scroll-arrow,
.scroll-arrow-bottom { display: flex; flex-direction: column; align-items: center; opacity: 0.25; animation: bounce 2s ease-in-out infinite; transition: opacity 0.5s ease; }
.scroll-arrow svg,
.scroll-arrow-bottom svg { width: 64px; height: 64px; stroke: var(--text); fill: none; stroke-width: 0.75; stroke-linecap: round; stroke-linejoin: round; }
.scroll-arrow.hidden,
.scroll-arrow-bottom.hidden { opacity: 0; pointer-events: none; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* BOTTOM */
.bottom-label-wrap { max-width: var(--max); margin: 0 auto; padding: 3rem 2.5rem 3rem; }
.bottom-label { font-size: 12px; color: #555; letter-spacing: 0.2em; text-transform: uppercase; }
.bottom-section { transition: opacity 0.7s ease; opacity: 0.2; }
.bottom-outer { scroll-snap-align: start; scroll-snap-stop: always; }
/* last snap point: bottom of the page, so the footer (Impressum) is always reachable */
.footer { scroll-snap-align: end; }
.bottom-section.is-active { opacity: 1; }

/* STATS */
.stats-section { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem 6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { padding: 0 2rem 0 0; border-right: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; padding-left: 2rem; }
.stat-item:not(:first-child):not(:last-child) { padding: 0 2rem; }
.stat-n { font-size: clamp(32px, 4vw, 52px); font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.stat-l { font-size: 12px; color: #444; margin-top: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ABOUT */
.about-section { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem 4rem; }
.about-inner { display: grid; grid-template-columns: 0.6fr 1.8fr; gap: 5rem; align-items: center; }
.about-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #111; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; filter: brightness(0.75) saturate(0) contrast(1.1); transition: filter 0.6s ease; }
.about-img-wrap:hover img { filter: brightness(0.92) saturate(1) contrast(1); }
.about-label { font-size: 11px; color: #444; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; }
.about-name { font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -0.02em; color: var(--text); margin-bottom: 2rem; line-height: 1.0; }
.about-body { font-size: 15px; color: #555; line-height: 1.9; }
.about-body + .about-body { margin-top: 1.25rem; }

@media (max-width: 768px) {
  .hero-wrap { padding: 2rem 1rem 0; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2rem 1rem; }
  .hero-right { text-align: left; align-items: flex-start; }
  .project-section { padding: 2rem 1rem 3rem; }
  .project-header, .project-header.reversed { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .project-header .text-right { text-align: left; }
  .project-title { font-size: clamp(40px, 12vw, 52px); }
  .stats-section { padding: 0 1rem 4rem; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .stat-item { border-right: none; padding: 0 !important; }
  .about-section { padding: 0 1rem 4rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
}
