/* ============================================
   BERLINER SOMMER 2026 — v5
   Cinematic chapter cards + continuous journey
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Syne', system-ui, sans-serif;
  --px:    clamp(2rem, 6vw, 7rem);
  --tl:   clamp(1.5rem, 3.5vw, 3rem); /* thread left */
}

body {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 0.85vw + 0.45rem, 1.15rem);
  line-height: 1.7;
  background: #2A1808;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(180,100,30,0.25); }

/* Grain */
.grain {
  position: fixed; inset: -50%; z-index: 10000;
  pointer-events: none; opacity: 0.022; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px; animation: grain 0.4s steps(1) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 25%{transform:translate(-4%,3%)}
  50%{transform:translate(2%,-4%)} 75%{transform:translate(-3%,1%)}
}

/* ============================================
   GOLDEN THREAD — div-based, draws via scaleY
   ============================================ */
.thread {
  position: fixed;
  left: var(--tl);
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 500;
  pointer-events: none;
}

.thread__line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    #E8A830 0%, #D4A030 35%,
    #45D9C8 55%, #45D9C8 65%,
    #E07A5F 80%, #E07A5F 100%);
  transform-origin: top;
  transform: scaleY(0);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(232,168,48,0.3);
}

.thread__dot {
  position: fixed;
  left: var(--tl);
  width: 11px; height: 11px;
  border-radius: 50%;
  transform: translateX(-4px) scale(0);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 501;
}
.thread__dot.is-visible { transform: translateX(-4px) scale(1); }

.thread__dot--1 { top: 22%; background: #E8A830; box-shadow: 0 0 12px rgba(232,168,48,0.5); }
.thread__dot--2 { top: 48%; background: #45D9C8; box-shadow: 0 0 12px rgba(69,217,200,0.5); }
.thread__dot--3 { top: 74%; background: #E07A5F; box-shadow: 0 0 12px rgba(224,122,95,0.5); }

@media (max-width: 768px) {
  .thread, .thread__dot { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #FFF5E8; background: #0E0820;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 110%, #D4920B 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 90%, #C27050 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 80% 85%, #B85C38 0%, transparent 40%),
    radial-gradient(ellipse 50% 40% at 50% 30%, #3D2060 0%, transparent 50%),
    linear-gradient(175deg, #0E0820 0%, #1C1040 25%, #3D2060 40%, #6B3530 55%, #C27050 70%, #E8A830 85%, #F0C860 100%);
}
.hero__skyline {
  position: absolute; bottom: 0; left: 0; width: 100%;
  color: rgba(15,10,25,0.55); z-index: 3;
}
.hero__content { position: relative; z-index: 5; text-align: center; padding: 0 var(--px); padding-bottom: 30vh; }
.hero__date {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(0.6rem, 0.8vw, 0.75rem);
  letter-spacing: 0.35em; text-transform: uppercase;
  color: #F0C860; margin-bottom: 2.5rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(4rem, 11vw, 11rem);
  line-height: 0.88; letter-spacing: -0.03em; margin-bottom: 2rem;
}
.hero__line { display: block; }
.hero__line--gold { font-style: italic; color: #F0C860; }
.hero__sub {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: rgba(255,245,232,0.5);
}
.hero__scroll {
  position: absolute; bottom: 3rem; left: 50%;
  transform: translateX(-50%); z-index: 5;
}
.hero__scroll-bar {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, #F0C860, transparent);
  animation: pulse-bar 2.5s ease-in-out infinite;
}
@keyframes pulse-bar {
  0%,100% { opacity: 0.7; transform: scaleY(1); }
  50% { opacity: 0.15; transform: scaleY(0.4); }
}

/* ============================================
   THE JOURNEY — continuous gradient
   ============================================ */
.journey {
  position: relative;
  overflow: hidden;
}
.journey::before {
  content: '';
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(180deg,
    #F0D0A0 0%, #F5DFB8 4%, #EBC488 12%,
    #E8D0B8 18%, #D8D0C0 24%, #D0C8B8 30%,
    #C8D8C8 36%, #B8D8C8 42%, #C4EBE5 48%,
    #A8D8D0 54%, #B0DCD4 60%, #C8D8C8 66%,
    #D8D0C0 72%, #E8D0A8 78%,
    #F0C880 84%, #E8B860 90%, #D4A030 96%, #C89028 100%);
}

/* ============================================
   TITLE CARDS — full-viewport chapter breaks
   ============================================ */
.title-card {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--px);
}

.title-card__num {
  position: absolute;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(14rem, 35vw, 30rem);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.title-card__text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.title-card__day {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-style: italic;
}

.title-card__date {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.6rem, 0.8vw, 0.72rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.45;
}

/* Friday title card */
.title-card--fri {
  color: #5A3818;
}
.title-card--fri .title-card__num {
  color: transparent;
  -webkit-text-stroke: 2px rgba(180,120,40,0.08);
}
.title-card--fri .title-card__day {
  color: #6B4A20;
}

/* Saturday title card */
.title-card--sat {
  color: #0A3D3A;
}
.title-card--sat .title-card__num {
  color: transparent;
  -webkit-text-stroke: 2px rgba(69,217,200,0.08);
}
.title-card--sat .title-card__day {
  color: #0A4A45;
}

/* Sunday title card */
.title-card--sun {
  color: #5A3818;
}
.title-card--sun .title-card__num {
  color: transparent;
  -webkit-text-stroke: 2px rgba(184,120,48,0.08);
}
.title-card--sun .title-card__day {
  color: #6B4A20;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content {
  position: relative;
  padding: clamp(3rem, 6vh, 5rem) var(--px);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  overflow: visible;
}

.content__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.content__title--huge {
  font-size: clamp(4.5rem, 12vw, 10rem);
  margin-bottom: 0.5rem;
}

.content__label {
  display: inline-block;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(0.55rem, 0.7vw, 0.65rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.content__sub {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(0.58rem, 0.75vw, 0.68rem);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.content__route {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(0.6rem, 0.8vw, 0.72rem);
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.content__body {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.9; max-width: 34rem;
  margin: 0 auto 2rem;
}

.content__detail { margin-bottom: 2rem; }
.content__detail--center { text-align: center; }
.content__detail strong {
  display: block; font-family: var(--sans); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 0.2rem;
}
.content__detail em { font-family: var(--serif); font-size: 0.95rem; }

.content__divider { width: 3rem; height: 1px; margin: 0 auto 2rem; }

/* ── Scene illustrations — always centered below headline ── */
.scene {
  display: block;
  margin: clamp(1rem, 2vh, 2rem) auto clamp(1.5rem, 3vh, 2.5rem);
  opacity: 0.14;
}

.scene--bg      { width: clamp(16rem, 40vw, 24rem); }
.scene--inline  { width: clamp(18rem, 45vw, 28rem); }
.scene--reichstag { width: clamp(16rem, 35vw, 24rem); }
.scene--center  { width: clamp(14rem, 30vw, 20rem); }

.content--fri .scene { color: #6B4A1E; }
.content--boat .scene { color: #1A6A60; }
.content--reichstag .scene { color: #5A4020; }
.content--sun .scene { color: #8A5030; }

/* ── Content images ── */
.content__image {
  display: block;
  width: clamp(22rem, 85vw, 52rem);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: clamp(2rem, 4vh, 3rem);
  margin-bottom: clamp(2rem, 4vh, 3rem);
  border-radius: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* ── Venue links ── */
.venue {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--sans); font-size: 0.78rem;
  transition: opacity 0.3s;
}
.venue:hover { opacity: 0.6; }
.venue strong { font-weight: 600; }
.venue span { opacity: 0.55; }

/* ── Friday ── */
.content--fri { color: #3D2A14; }
.content--fri .content__title { color: #3D2A14; }
.content--fri .content__body { color: rgba(61,42,20,0.65); }
.content--fri .content__detail strong { color: #9A6B2A; }
.content--fri .content__detail em { color: rgba(61,42,20,0.5); }
.content--fri .venue { color: #6B4A1E; }

/* ── Saturday Boat ── */
.content--boat { color: #0A3D3A; }
.content--boat .content__title { color: #0A3D3A; }
.content--boat .content__label { color: #2A8A80; }
.content--boat .content__route { color: #2A8A80; }
.content--boat .content__body { color: rgba(10,61,58,0.6); }

.content__waves {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.content__wave {
  position: absolute; left: -5%; width: 110%; height: 2px;
  background: linear-gradient(90deg,
    transparent, rgba(69,217,200,0.18) 20%, transparent 40%,
    rgba(69,217,200,0.12) 60%, transparent 80%);
  animation: wave-flow 10s ease-in-out infinite;
}
.content__wave:nth-child(1) { bottom: 20%; }
.content__wave:nth-child(2) { bottom: 40%; animation-duration: 14s; animation-delay: -3s; }
.content__wave:nth-child(3) { bottom: 60%; animation-duration: 12s; animation-delay: -6s; opacity: 0.6; }
.content__wave:nth-child(4) { bottom: 80%; animation-duration: 16s; animation-delay: -2s; opacity: 0.4; }
@keyframes wave-flow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3%); } }

/* ── Saturday Reichstag ── */
.content--reichstag { color: #2A2018; }
.content--reichstag .content__label { color: #9A7030; }
.content--reichstag .content__title { color: #4A3218; }
.content--reichstag .content__sub { color: rgba(42,32,24,0.45); }
.content--reichstag .content__body { color: rgba(42,32,24,0.6); }
.venue--teal { color: #1A7A70; }

.content__dome {
  position: absolute; top: 0; right: var(--px);
  width: clamp(140px, 20vw, 220px);
  color: rgba(180,140,80,0.15); pointer-events: none;
}
.content__dome svg { width: 100%; height: auto; }

/* ── Sunday ── */
.content--sun {
  color: #5A3818;
}
.content--sun .content__title { color: #4A2A10; }
.content--sun .content__body { color: rgba(74,42,16,0.6); max-width: 30rem; }
.content--sun .content__divider {
  background: linear-gradient(90deg, transparent, #B87830, transparent); opacity: 0.3;
}
.content--sun .content__detail strong { color: #9A6B2A; }
.content--sun .content__detail em { color: rgba(74,42,16,0.4); }
.venue--coral { color: #8A5A20; }

.content__rays {
  position: absolute; inset: -40%; pointer-events: none; z-index: 0;
  background: conic-gradient(
    from 200deg at 50% 15%,
    transparent 0deg, rgba(200,150,40,0.03) 10deg, transparent 22deg,
    rgba(220,170,60,0.02) 35deg, transparent 48deg,
    rgba(200,150,40,0.02) 60deg, transparent 75deg,
    transparent 360deg);
  animation: rays-spin 90s linear infinite;
}
@keyframes rays-spin { to { transform: rotate(360deg); } }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  color: #FFF5E8;
  padding: clamp(28rem, 55vh, 45rem) var(--px) clamp(5rem, 10vh, 8rem);
  text-align: center;
  overflow: hidden;
}
.footer__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 120% 30% at 50% 100%, rgba(61,32,96,0.5) 0%, transparent 50%),
    radial-gradient(ellipse 80% 25% at 30% 90%, rgba(194,112,80,0.2) 0%, transparent 40%),
    radial-gradient(ellipse 60% 20% at 70% 88%, rgba(184,92,56,0.15) 0%, transparent 35%),
    linear-gradient(180deg,
      transparent 0%,
      transparent 15%,
      rgba(200,144,40,0.1) 22%,
      rgba(184,120,48,0.2) 30%,
      rgba(160,100,40,0.35) 38%,
      rgba(140,80,35,0.5) 46%,
      rgba(120,60,35,0.65) 54%,
      #6B3530 64%,
      #4A2848 74%,
      #3D2060 82%,
      #1C1040 91%,
      #0E0820 100%);
}
.footer__icon {
  position: relative; z-index: 1;
  display: block; width: clamp(2.5rem, 5vw, 3.5rem); height: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 auto 1.5rem;
  color: #F0C860;
}
.footer__text {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: #FFF5E8; margin-bottom: 1rem;
}
.footer__meta {
  position: relative; z-index: 1;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: #F0C860;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; z-index: 1000;
  right: 1.5rem; top: 50%; transform: translateY(-50%) translateX(8px);
  display: flex; flex-direction: column; gap: 0.6rem;
  opacity: 0; transition: opacity 0.5s, transform 0.5s;
}
.nav.is-visible { opacity: 1; transform: translateY(-50%) translateX(0); }
.nav__dot {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(60,40,20,0.3); background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(60,40,20,0.06); transition: all 0.3s;
}
.nav__dot:hover { color: rgba(60,40,20,0.6); }
.nav__dot.is-active {
  color: #fff; background: #B87830;
  border-color: transparent; box-shadow: 0 2px 12px rgba(184,120,48,0.3);
}
@media (max-width: 768px) {
  .nav {
    flex-direction: row; gap: 0.4rem;
    right: 50%; top: auto; bottom: 1.5rem;
    transform: translateX(50%) translateY(8px);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 2rem; padding: 0.3rem;
    border: 1px solid rgba(60,40,20,0.06);
  }
  .nav.is-visible { transform: translateX(50%) translateY(0); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal, .reveal-blur { will-change: transform, opacity; }

@media (max-width: 480px) {
  .hero__title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero__scroll { display: none; }
  .title-card__num { font-size: clamp(8rem, 30vw, 14rem); }
  .title-card { min-height: 50vh; }
  .content__title--huge { font-size: clamp(3.5rem, 12vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain, .hero__scroll-bar { animation: none; }
  .content__rays, .content__wave { animation: none; }
  .thread__line { transform: scaleY(1) !important; }
  .thread__dot { transform: translateX(-50%) scale(1) !important; }
  .reveal, .reveal-blur { opacity: 1 !important; transform: none !important; filter: none !important; }
}
