/* ════════════════════════════════════════════════════════════════════
   Skyline journey — homepage hero
   A pinned scroll scene from a German riverfront to a harbour city abroad.
   The scene keeps one look in both themes (it has its own sky), so its
   colours are local tokens rather than theme tokens.
   Art: assets/skyline/*.svg, generated by skyline-src/gen.py
   ════════════════════════════════════════════════════════════════════ */

.journey {
  --j-ink:        #2A2420;
  --j-ink-soft:   #4E463F;
  --j-eyebrow:    #7A4010;
  --j-accent:     #C8813A;
  --j-night-ink:  #FDFAF5;
  --j-night-soft: #E8DCCB;
  --j-night-eyebrow: #F5C990;
  --j-night-accent:  #F2B66B;
  --ease-bolero: cubic-bezier(0.2, 0, 0, 1);
  --ease-salsa:  cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
html.js .journey { height: 520svh; }
html.js.j-static .journey { height: auto; }

.j-stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; isolation: isolate; background: #E4E6E0; }
html.js .j-stage { position: sticky; top: 0; }

.j-sky { position: absolute; inset: 0; }
.j-sky-1 { background: linear-gradient(180deg, #C9D6DA 0%, #E4E6E0 55%, #F3EBDD 100%); }
.j-sky-2 { background: linear-gradient(180deg, #9FCFC9 0%, #D6EBE5 50%, #FBF1DF 100%); opacity: 0; }
.j-sky-3 { background: linear-gradient(180deg, #E5A465 0%, #F3C886 45%, #FBE3B4 75%, #F7D9A8 100%); opacity: 0; }
.j-sky-4 { background: linear-gradient(180deg, #211A22 0%, #46292C 38%, #9E4F38 68%, #E0975A 84%, #F2C27A 100%); opacity: 0; }
.j-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }

.j-sun { position: absolute; left: 0; top: 0; width: 120px; height: 120px; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, #FFF4D4 0 38%, #F8D98E 39% 100%);
  box-shadow: 0 0 60px 30px rgba(248, 217, 142, 0.45), 0 0 160px 90px rgba(248, 217, 142, 0.22); }
.j-sun-dusk { position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #FFD9A0 0 30%, #EE8E4A 31% 100%);
  box-shadow: 0 0 70px 36px rgba(238, 142, 74, 0.5), 0 0 200px 110px rgba(224, 120, 70, 0.28); }

.j-layer { position: absolute; left: 0; bottom: 0; height: 100%; aspect-ratio: var(--ar); will-change: transform; }
.j-layer img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.j-layer .night { filter: brightness(0.38) saturate(0.7) sepia(0.2); opacity: 0; }
.j-layer .lights { opacity: 0; }

.j-birds { position: absolute; left: 0; top: 0; width: 180px; will-change: transform; opacity: 0; }
.j-birds svg { width: 100%; overflow: visible; }
.j-birds path { fill: none; stroke: #3A302A; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }

.j-scrim { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 20, 22, 0.55) 0%, rgba(28, 20, 22, 0.25) 35%, transparent 60%); }
html:not(.js) .j-scrim, html.j-static .j-scrim { opacity: 1; }

/* Captions */
.j-captions { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  padding: clamp(5.5rem, 14vh, 9rem) max(16px, calc((100vw - var(--width-marketing)) / 2 + 40px)) 0; }
.j-cap { position: absolute; max-width: min(580px, calc(100vw - 32px)); opacity: 0; will-change: opacity, transform; }
html:not(.js) .j-cap-final, html.j-static .j-cap-final { opacity: 1; }
.j-cap .j-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--j-eyebrow); margin: 0 0 0.6rem; display: flex; align-items: center; gap: 10px; }
.j-cap .j-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--j-accent); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.j-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 0.8rem; color: var(--j-ink); text-wrap: balance; }
.j-title em { font-style: italic; font-weight: 500; color: var(--j-accent); }
.j-sub { font-size: 1.0625rem; line-height: 1.65; color: var(--j-ink-soft); margin: 0; max-width: 46ch; }
.j-sub strong { font-weight: 500; }
.j-cap-final .j-eyebrow { color: var(--j-night-eyebrow); }
.j-cap-final .j-eyebrow::before { background: var(--j-night-accent); }
.j-cap-final .j-title { color: var(--j-night-ink); }
.j-cap-final .j-title em { color: var(--j-night-accent); }
.j-cap-final .j-sub { color: var(--j-night-soft); }
.j-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; }
.j-ctas .btn { transition: transform 150ms var(--ease-salsa), background-color 150ms ease, border-color 150ms ease; }
.j-ctas .btn:active { transform: scale(0.96); }
.j-ctas .btn-primary { background: #E09B52; color: #1C1814; }
.j-ctas .btn-primary:hover { background: #ECAE6B; }
.j-ctas .btn-secondary { color: var(--j-night-ink); border-color: rgba(255, 240, 220, 0.4); background: transparent; }
.j-ctas .btn-secondary:hover { background: rgba(255, 240, 220, 0.1); border-color: rgba(255, 240, 220, 0.7); }
.j-ctas .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(242, 182, 107, 0.6); }

/* HUD: measured values are monospace */
.j-hud { position: absolute; z-index: 6; left: max(16px, calc((100vw - var(--width-marketing)) / 2 + 40px)); right: 16px; bottom: 20px;
  display: flex; align-items: center; gap: 14px; font: 400 12px/1.5 var(--mono); letter-spacing: 0.03em; color: #FDFAF5;
  text-shadow: 0 1px 2px rgba(28, 24, 20, 0.5); }
.j-bar { flex: 0 1 160px; height: 2px; background: rgba(253, 250, 245, 0.35); overflow: hidden; }
.j-bar i { display: block; height: 100%; background: #F2B66B; transform-origin: left; transform: scaleX(0); }
.j-place { opacity: 0.85; white-space: nowrap; }
.j-cue { position: absolute; z-index: 6; right: max(16px, calc((100vw - var(--width-marketing)) / 2 + 40px)); bottom: 18px;
  font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #FDFAF5; text-shadow: 0 1px 2px rgba(28, 24, 20, 0.5);
  display: flex; align-items: center; gap: 8px; }
.j-cue::after { content: ''; width: 1px; height: 28px; background: currentColor; animation: j-cue 1.8s var(--ease-bolero) 3; transform-origin: top; }
@keyframes j-cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html:not(.js) .j-hud, html:not(.js) .j-cue, html.j-static .j-cue { display: none; }
@media (max-width: 560px) { .j-place, .j-cue { display: none; } }

.j-skip { position: absolute; left: 16px; top: -48px; z-index: 70; padding: 8px 14px; border-radius: var(--radius-btn);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); text-decoration: none; font-size: 13px; }
.j-skip:focus-visible { top: 64px; box-shadow: var(--shadow-focus), var(--shadow-md); outline: none; }

/* ── Skyline band: the whole journey at a glance (footer bookend) ── */
.skyline-band { position: relative; height: clamp(120px, 16vw, 200px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.skyline-band img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.skyline-band .mid { height: 82%; bottom: 4.3%; opacity: 0.6; }  /* horizons line up with main */
.skyline-band .night, .skyline-band .lights { opacity: 0; }
.skyline-band .night { filter: brightness(0.38) saturate(0.7) sepia(0.2); }
[data-theme="dark"] .skyline-band .night, [data-theme="dark"] .skyline-band .lights { opacity: 1; }
