/* ============================================================
   STERNBÄCKEREI — Landingpage
   ============================================================ */

:root {
  --bg-light: #FAF7F2;
  --bg-dark:  #0F0E0C;
  --bg-darker:#0A0908;
  --text-1:   #1A1A1A;
  --text-2:   #6B6660;
  --text-3:   #B8B0A5;
  --gold:     #C9A961;
  --gold-hi:  #E8D5A0;
  --gold-dim: rgba(201,169,97,.35);
  --wa:       #25D366;
  --overlay:  rgba(0,0,0,0.92);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-card: 0 8px 32px rgba(0,0,0,.15);
  --shadow-card-hover: 0 16px 48px rgba(0,0,0,.35);
  --shadow-card-light: 0 8px 28px rgba(20,15,10,.08);

  --radius-photo: 8px;
  --radius-card: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Common type ------------------------------------------------ */
.overline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text-1);
}
.section-head--dark .section-head__title { color: var(--text-1); }
.section-head__sub {
  font-size: 16px;
  color: var(--text-2);
  margin: 0;
}

/* Reveal-on-scroll ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease-out, transform .9s ease-out;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease-out;
}
.intro.is-hidden { display: none; }

.intro__stage {
  position: relative;
  width: min(560px, 88vw);
  height: min(560px, 88vw);
}
.intro__star {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26%;
  height: 26%;
  opacity: 0;
  transform: scale(.8);
  filter: drop-shadow(0 0 24px rgba(201,169,97,.5));
  z-index: 2;
}
.intro__star.is-in {
  opacity: 1;
  transform: scale(1);
  transition: opacity .55s ease-out, transform .55s ease-out;
}
.intro__star.is-out {
  opacity: 1;
  transform: scale(1.08);
  transition: transform 1.2s ease-out;
}

.intro__photos { position: absolute; inset: 0; }
.intro__photo {
  position: absolute;
  width: 78px;
  height: 96px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.55);
  filter: grayscale(.3) brightness(.9);
  opacity: 0;
  transform: translate(var(--from-x, 0), var(--from-y, 0)) rotate(0deg) scale(.7);
  transition: transform .6s cubic-bezier(.16,.84,.32,1), opacity .4s ease-out;
}
.intro__photo.is-placed {
  opacity: 1;
  transform: translate(var(--to-x, 0), var(--to-y, 0)) rotate(var(--rot, 0deg)) scale(1);
}
.intro__photo.is-sucked {
  opacity: 0;
  transform: translate(0, 0) rotate(0deg) scale(.15);
  transition: transform .8s cubic-bezier(.6,0,.85,.2), opacity .6s ease-in .2s;
}

.intro__skip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: transparent;
  border: none;
  padding: 8px 4px;
  opacity: .7;
  transition: opacity .2s ease;
}
.intro__skip:hover { opacity: 1; color: var(--gold-hi); }

/* Wordmark reveal at end of intro */
.intro__wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FAF7F2;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity .8s ease-out;
}
.intro__wordmark.is-in { opacity: 1; }
.intro__since {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .9s ease-out .1s, transform .9s ease-out .1s;
}
.intro__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease-out .25s, transform 1s ease-out .25s;
}
.intro__tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .9s ease-out .45s, transform .9s ease-out .45s;
}
.intro__wordmark.is-in .intro__since,
.intro__wordmark.is-in .intro__name,
.intro__wordmark.is-in .intro__tag {
  opacity: 1;
  transform: none;
}

/* Film grain on intro & hero */
.intro__grain,
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.5) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  z-index: 4;
  animation: grainShift 1.4s steps(6) infinite;
  will-change: transform;
}
.hero__grain { opacity: .08; mix-blend-mode: soft-light; z-index: 1; }
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

body.intro-locked { overflow: hidden; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-hi) 100%);
  z-index: 90;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(201,169,97,.5);
  transition: width .12s linear, opacity .3s ease;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 250;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s ease;
}
.cursor.is-on { opacity: 1; }
.cursor__dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-hi);
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, opacity .25s ease;
  will-change: transform;
}
.cursor__ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: width .4s cubic-bezier(.2,.7,.2,1), height .4s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.cursor__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-hi);
  opacity: 0;
  transition: opacity .25s ease;
  white-space: nowrap;
}
.cursor.is-photo .cursor__ring {
  width: 92px; height: 92px;
  background: rgba(201,169,97,.05);
}
.cursor.is-photo .cursor__label { opacity: 1; }
.cursor.is-photo .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 48px; height: 48px; }
.cursor.is-link .cursor__dot { opacity: 0; }

/* hide system cursor when our cursor is visible */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor .photo { cursor: none; }
}

/* ============================================================
   STICKY DECADE INDICATOR
   ============================================================ */
.decade {
  position: sticky;
  top: 50%;
  left: -8px;
  width: 0;
  margin-left: -24px;
  transform: translateY(-50%);
  z-index: 6;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.decade.is-on { opacity: 1; }
.decade__label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
  white-space: nowrap;
}
.decade__num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity .4s ease, transform .4s ease;
}
.decade__num.is-swap {
  opacity: 0;
  transform: translateY(-12px);
}

/* ============================================================
   MAGNETIC BUTTONS
   ============================================================ */
.magnetic {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.magnetic > span {
  display: inline-block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.magnetic.is-mag { transition-duration: .15s; }
.magnetic.is-mag > span { transition-duration: .12s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.nav.is-scrolled {
  background: rgba(15,14,12,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 40px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FAF7F2;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .02em;
}
.nav__logo { width: 26px; height: 26px; }
.nav__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 36px;
}
.nav__links a {
  font-family: var(--sans);
  color: #FAF7F2;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width .35s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: #FAF7F2;
  transition: transform .3s ease, opacity .3s ease;
}

/* mobile menu overlay */
.mobilenav {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease;
}
.mobilenav.is-open { opacity: 1; pointer-events: auto; }
.mobilenav__close {
  position: absolute;
  top: 18px; right: 22px;
  background: transparent;
  border: none;
  color: #FAF7F2;
  font-size: 40px;
  line-height: 1;
  width: 48px; height: 48px;
}
.mobilenav ul {
  list-style: none;
  margin: 0; padding: 0;
  text-align: center;
}
.mobilenav li { margin: 14px 0; }
.mobilenav a {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  color: #FAF7F2;
  letter-spacing: -0.01em;
}
.mobilenav a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  color: #FAF7F2;
  background: #000;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__video--tall { display: none; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.1) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55) 100%),
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero__logo {
  width: 92px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.5));
  opacity: 0; transform: translateY(12px);
  animation: heroFade .9s ease-out .15s forwards;
}
/* Hero word-by-word reveal */
.hero__headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
}
.hero__headline .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  filter: blur(8px);
  animation: wordReveal 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__headline .word:nth-child(1) > span { animation-delay: .35s; }
.hero__headline .word:nth-child(2) > span { animation-delay: .48s; }
.hero__headline .word:nth-child(4) > span { animation-delay: .62s; }
@keyframes wordReveal {
  to { transform: none; opacity: 1; filter: blur(0); }
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: #FAF7F2;
}
.hero__sub {
  font-family: var(--sans);
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text-3);
  letter-spacing: .04em;
  margin: 0 0 36px;
  opacity: 0; transform: translateY(12px);
  animation: heroFade .9s ease-out .55s forwards;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0; transform: translateY(12px);
  animation: heroFade .9s ease-out .75s forwards;
}
@keyframes heroFade { to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFade 1s ease-out 1.2s forwards;
}
.hero__scrollline {
  display: block;
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.7); }
  50%      { opacity: 1;  transform: scaleY(1); }
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  min-height: 48px;
}
.btn--gold {
  background: var(--gold);
  color: var(--bg-dark);
  box-shadow: 0 8px 22px rgba(201,169,97,.28);
}
.btn--gold:hover {
  background: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201,169,97,.4);
}
.btn--ghost {
  background: transparent;
  color: #FAF7F2;
  border-color: rgba(250,247,242,.4);
}
.btn--ghost:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}
.btn--wa {
  background: var(--wa);
  color: #fff;
  padding: 18px 30px;
  font-size: 15px;
  box-shadow: 0 10px 26px rgba(37,211,102,.3);
}
.btn--wa:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37,211,102,.42);
}
.wa-icon { width: 22px; height: 22px; }

/* ============================================================
   MANIFEST
   ============================================================ */
.manifest {
  background: var(--bg-light);
  padding: 140px 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.manifest__rule {
  display: inline-block;
  width: 44px; height: 1px;
  background: var(--gold);
  margin-bottom: 48px;
  vertical-align: middle;
}
.manifest__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text-1);
  margin: 0 0 36px;
  text-wrap: pretty;
}
.manifest__attr {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ============================================================
   BOARD
   ============================================================ */
.board {
  background: var(--bg-dark);
  color: #FAF7F2;
  padding: 130px 24px 150px;
  position: relative;
  overflow: hidden;
}
.board .section-head__title { color: #FAF7F2; }
.board .section-head__sub { color: var(--text-2); }

.board__canvas {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  height: 920px;
  perspective: 1200px;
}
.board__star {
  position: absolute;
  width: 76px; height: 76px;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 18px rgba(201,169,97,.35));
  z-index: 1;
}

/* Counter chip ---------------------------------------------- */
.board__counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 900px;
  margin: -28px auto 56px;
  padding: 22px 36px;
  border-top: 1px solid rgba(201,169,97,.18);
  border-bottom: 1px solid rgba(201,169,97,.18);
}
.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}
.counter__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.counter__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.counter__sep {
  display: block;
  width: 1px; height: 36px;
  background: rgba(201,169,97,.25);
}

/* Cursor spotlight on board --------------------------------- */
.board__canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201,169,97,.10),
    rgba(201,169,97,0) 60%
  );
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}
.board__canvas.is-hot::before { opacity: 1; }

.photo {
  position: absolute;
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  overflow: hidden;
  background: #1a1816;
  transform-origin: center;
  transition:
    transform .55s cubic-bezier(.2,.7,.2,1),
    box-shadow .35s ease,
    opacity .5s ease,
    outline-color .25s ease;
  outline: 2px solid transparent;
  outline-offset: 0;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 28px)) rotate(0deg);
}
.photo.is-in {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  animation: photoSway var(--sway-dur, 8s) ease-in-out var(--sway-delay, 0s) infinite alternate;
}
@keyframes photoSway {
  from { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) translateY(-2px); }
  to   { transform: translate(-50%, -50%) rotate(calc(var(--rot, 0deg) + 0.6deg)) translateY(2px); }
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.96);
  display: block;
}
.photo__year {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0,0,0,.8), 0 1px 2px rgba(0,0,0,.9);
  letter-spacing: 0;
  pointer-events: none;
}
.photo--hero {
  z-index: 5;
}
.photo--hero .photo__year { font-size: 26px; }

/* Desktop hover effect */
@media (hover: hover) {
  .board__canvas:hover .photo {
    opacity: .55;
    animation-play-state: paused;
  }
  .board__canvas:hover .photo:hover {
    opacity: 1;
    outline-color: var(--gold);
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-card-hover);
    z-index: 20;
    animation: none;
  }
}

/* highlight from timeline hover */
.photo.is-hl {
  outline-color: var(--gold) !important;
  z-index: 18 !important;
  box-shadow: var(--shadow-card-hover) !important;
}
.board__canvas:has(.photo.is-hl) .photo:not(.is-hl) {
  opacity: .35;
}

/* Mobile masonry — hidden by default */
.board__masonry { display: none; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 24px;
}
.timeline__track {
  position: relative;
  height: 60px;
  margin: 0 48px;
}
.timeline__line,
.timeline__fill {
  position: absolute;
  left: 0; right: 0;
  top: 30px;
  height: 1px;
  background: rgba(184,176,165,.22);
}
.timeline__fill {
  right: auto;
  width: 0%;
  background: linear-gradient(90deg, rgba(201,169,97,.5) 0%, var(--gold) 100%);
  box-shadow: 0 0 8px rgba(201,169,97,.4);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.timeline__stop {
  position: absolute;
  top: 30px;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.timeline__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid rgba(184,176,165,.5);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.timeline__stop:hover .timeline__dot,
.timeline__stop:focus-visible .timeline__dot,
.timeline__stop.is-active .timeline__dot {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.6);
  box-shadow: 0 0 14px rgba(201,169,97,.55);
}
.timeline__year {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s ease, color .25s ease, transform .25s ease;
  pointer-events: none;
}
/* stagger close years to avoid collision */
.timeline__stop--up .timeline__year {
  bottom: auto;
  top: 22px;
  transform: translateX(-50%) translateY(-4px);
}
.timeline__stop:hover .timeline__year,
.timeline__stop:focus-visible .timeline__year,
.timeline__stop.is-active .timeline__year {
  opacity: 1;
  color: var(--gold);
  transform: translateX(-50%) translateY(0);
}
.timeline__stop--up:hover .timeline__year,
.timeline__stop--up:focus-visible .timeline__year,
.timeline__stop--up.is-active .timeline__year {
  transform: translateX(-50%) translateY(0);
}

.timeline__anchors {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.timeline__anchors span:last-child { color: var(--gold); }

@media (max-width: 900px) {
  .timeline { margin-top: 48px; }
  .timeline__track { height: 56px; margin: 0 24px; }
  .timeline__year { font-size: 11px; }
}


.kunden {
  background: var(--bg-light);
  padding: 130px 24px 140px;
}
.kunden__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.kunde {
  background: #fff;
  border: 1px solid rgba(26,26,26,.06);
  border-radius: var(--radius-card);
  padding: 28px 22px 26px;
  text-align: left;
  box-shadow: var(--shadow-card-light);
  transition: transform .35s ease, border-color .3s ease, box-shadow .35s ease;
  position: relative;
}
.kunde:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 36px rgba(20,15,10,.12);
}
.kunde__star {
  width: 18px; height: 18px;
  margin-bottom: 18px;
  opacity: .9;
}
.kunde__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--text-1);
}
.kunde__branche {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-2);
  margin: 0;
}
.kunden__note {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  margin: 36px 0 0;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1E1B17 100%);
  color: #FAF7F2;
  padding: 140px 24px 130px;
}
.kontakt__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.kontakt__logo {
  width: 48px; height: 48px;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(201,169,97,.3));
}
.kontakt__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: #FAF7F2;
}
.kontakt__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0 0 40px;
  text-wrap: pretty;
}
.kontakt__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(184,176,165,.18);
  text-align: center;
}
.kontakt__details .overline { color: var(--gold); margin-bottom: 8px; }
.kontakt__details a, .kontakt__details span {
  font-family: var(--sans);
  font-size: 14px;
  color: #FAF7F2;
  line-height: 1.5;
  transition: color .2s ease;
}
.kontakt__details a:hover { color: var(--gold-hi); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-darker);
  color: var(--text-3);
  padding: 48px 24px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand svg { width: 28px; height: 28px; }
.footer__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: #FAF7F2;
  margin: 0;
  line-height: 1.2;
}
.footer__tag {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-2);
  margin: 4px 0 0;
}
.footer__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .04em;
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-2);
  margin: 0;
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  z-index: 80;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: waPulse 1.6s ease-out 0s 3;
}
.wa-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 36px rgba(37,211,102,.6);
}
.wa-fab svg { width: 30px; height: 30px; }
@keyframes waPulse {
  0%   { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 880px;
  width: 100%;
  text-align: center;
  transition: opacity .22s ease-out, transform .35s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.lightbox__stage.is-switching {
  opacity: 0;
  transition: opacity .2s ease-in, transform .25s cubic-bezier(.5,0,.7,.2);
}
.lightbox__stage.is-switching.is-slide-right { transform: translateX(-18px); }
.lightbox__stage.is-switching.is-slide-left  { transform: translateX( 18px); }
.lightbox__imgwrap {
  position: relative;
  max-width: 100%;
  max-height: 64vh;
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 64vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity .25s ease;
}
.lightbox__img--color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.lightbox.has-colorize .lightbox__img--color { display: block; }

.lightbox__scrub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.lightbox__scrub-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}
.lightbox__scrub-label--r { color: var(--gold); }
.lightbox__scrub-poem {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-3);
  margin: 14px auto 0;
  max-width: 380px;
  letter-spacing: .01em;
}
.lightbox__scrub input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #B8B0A5 0%, #B8B0A5 var(--p, 0%), rgba(255,255,255,.15) var(--p, 0%), rgba(255,255,255,.15) 100%);
  outline: none;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox__scrub input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 16px rgba(201,169,97,.4);
  cursor: pointer;
  transition: transform .2s ease;
}
.lightbox__scrub input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.lightbox__scrub input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 16px rgba(201,169,97,.4);
  cursor: pointer;
}
.lightbox__meta { max-width: 560px; }
.lightbox__year {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 72px);
  color: var(--gold);
  margin: 0 0 12px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.lightbox__caption {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
  text-wrap: pretty;
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #FAF7F2;
  font-size: 24px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lightbox__close:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--gold);
  color: var(--gold);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #FAF7F2;
  font-size: 28px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.lightbox__nav:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--gold);
  color: var(--gold);
}
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* honor [hidden] attribute */
[hidden] { display: none !important; }

/* hide decade indicator (deprecated) */
.decade { display: none !important; }

/* mobile: hide cursor + decade */
@media (max-width: 900px) {
  .cursor, .decade { display: none !important; }
}

@media (max-width: 900px) {
  .nav { padding: 14px 22px; }
  .nav.is-scrolled { padding: 10px 22px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { height: 85vh; }
  .hero__video--wide { display: none; }
  .hero__video--tall { display: block; }

  .manifest { padding: 100px 24px; }
  .board { padding: 100px 16px 110px; }

  .board__canvas { display: none; }
  .board__masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
  }
  .board__masonry .photo {
    position: relative;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    opacity: 1 !important;
  }
  .board__masonry .photo--hero { aspect-ratio: 3 / 4; }
  .board__masonry .photo:hover {
    transform: none !important;
  }

  .kunden { padding: 90px 20px 100px; }
  .kunden__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .kunde { padding: 22px 18px; }

  .kontakt { padding: 100px 20px 110px; }
  .kontakt__details {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 44px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .lightbox { padding: 80px 12px; }
  .lightbox__nav { width: 48px; height: 48px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__year { font-size: 56px; }

  .wa-fab { width: 56px; height: 56px; right: 18px; bottom: 18px; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; width: 100%; max-width: 280px; }
  .btn { width: 100%; }
  .board__masonry { grid-template-columns: 1fr; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .intro { display: none; }
}
