/* ═══════════════════════════════════════════════════════
   STAIB · 100 Jahre · Hauptstylesheet
   ═══════════════════════════════════════════════════════ */

/* ── FONTS ────────────────────────────────────────────── */
@font-face {
  font-family: 'NeueMetana';
  src: url('../assets/fonts/NeueMetana-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'NeueMetana';
  src: url('../assets/fonts/NeueMetana-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #090909;
  color: #e4e4e4;
  font-family: 'NeueMetana', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CSS VARIABLES ────────────────────────────────────── */
:root {
  --blue:       #1e76c2;
  --blue-dim:   rgba(30,118,194,0.18);
  --blue-border:rgba(30,118,194,0.35);
  --dark:       #090909;
  --mid:        #111;
  --deep:       #0a0a0a;
  --text:       #e4e4e4;
  --muted:      #6a6a6a;
  --border:     rgba(255,255,255,0.07);
  --red:        #c0392b;
}

/* ── PROGRESS BAR ──────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--blue), #7ec6ff);
  box-shadow: 0 0 12px var(--blue);
  z-index: 500;
  transition: width 0.1s linear;
}

/* ── LOGO BAR ──────────────────────────────────────────── */
#logo-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(9,9,9,0.9) 0%, transparent 100%);
  pointer-events: none;
}
#logo-bar img { height: 32px; filter: brightness(0) invert(1); pointer-events: auto; }
.badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-border);
  padding: 6px 16px; border-radius: 40px;
  background: rgba(9,9,9,0.7);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

/* ── TIMELINE NAV ──────────────────────────────────────── */
#timeline-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(9,9,9,0.9);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
#timeline-nav::-webkit-scrollbar { display: none; }

.tn-track {
  position: absolute; top: 50%; left: 48px; right: 48px;
  height: 1px; background: var(--border);
  pointer-events: none;
}
.tn-item {
  position: relative; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 0 18px; cursor: pointer;
  text-decoration: none; color: var(--muted);
  transition: color 0.3s; z-index: 1;
}
.tn-item:hover { color: #ccc; }
.tn-item.active { color: var(--blue); }
.tn-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.35s; flex-shrink: 0;
}
.tn-item.active .tn-dot {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,118,194,0.22);
  transform: scale(1.5);
}
.tn-item:hover:not(.active) .tn-dot { background: rgba(255,255,255,0.4); }
.tn-label {
  font-family: 'NeueMetana', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.07em; white-space: nowrap; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 80px 24px 80px;
}

/* ── HERO COLLAGE BACKGROUND ───────────────────────────── */
.hero-collage {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  pointer-events: none;
  z-index: 0;
}
.hero-collage::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(9,9,9,0.72);
  z-index: 2;
}

.collage-item {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  animation: collage-fade-in 1.2s ease forwards;
  will-change: transform;
  z-index: 1;
}
.collage-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.65) brightness(0.85);
  display: block;
}

@keyframes collage-fade-in {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 0.85; transform: scale(1); }
}

/* Collage item positions and sizes */
.ci-1  { width: 18%; aspect-ratio: 3/4; top: -3%;  left: -3%;  animation-delay: 0.1s; }
.ci-2  { width: 23%; aspect-ratio: 4/3; top: -5%;  left: 16%;  animation-delay: 0.25s; }
.ci-3  { width: 21%; aspect-ratio: 4/3; top: -4%;  left: 40%;  animation-delay: 0.15s; }
.ci-4  { width: 22%; aspect-ratio: 4/3; top: -6%;  left: 62%;  animation-delay: 0.3s; }
.ci-5  { width: 19%; aspect-ratio: 3/4; top: -3%;  left: 84%;  animation-delay: 0.1s; }
.ci-6  { width: 21%; aspect-ratio: 4/3; top: 32%;  left: -4%;  animation-delay: 0.4s; }
.ci-7  { width: 26%; aspect-ratio: 4/3; top: 28%;  left: 18%;  animation-delay: 0.2s; }
.ci-8  { width: 19%; aspect-ratio: 4/3; top: 33%;  left: 45%;  animation-delay: 0.35s; }
.ci-9  { width: 22%; aspect-ratio: 4/3; top: 27%;  left: 65%;  animation-delay: 0.25s; }
.ci-10 { width: 17%; aspect-ratio: 4/3; top: 30%;  left: 87%;  animation-delay: 0.15s; }
.ci-11 { width: 22%; aspect-ratio: 4/3; top: 62%;  left: -3%;  animation-delay: 0.45s; }
.ci-12 { width: 21%; aspect-ratio: 4/3; top: 65%;  left: 20%;  animation-delay: 0.3s; }
.ci-13 { width: 24%; aspect-ratio: 4/3; top: 60%;  left: 42%;  animation-delay: 0.2s; }
.ci-14 { width: 20%; aspect-ratio: 4/3; top: 63%;  left: 67%;  animation-delay: 0.4s; }
.ci-15 { width: 17%; aspect-ratio: 4/3; top: 66%;  left: 88%;  animation-delay: 0.1s; }

/* Grain texture */
.hero-grain {
  position: absolute; inset: 0; z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3; pointer-events: none;
}

/* ── HERO CONTENT ──────────────────────────────────────── */
.hero-content {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
}

.hero-pre {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 32px;
  opacity: 0; animation: fade-up 0.8s 0.2s forwards;
}

.hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  margin-bottom: 20px;
}
.hero-title-wrap .h-word { display: inline-flex; overflow: hidden; }
.hero-title-wrap .h-letter {
  display: inline-block;
  font-size: clamp(64px, 14vw, 180px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  transform: translateY(110%);
  animation: letter-rise 0.9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-title-wrap .h-letter.blue { color: var(--blue); }

/* "JAHRE" — mittlere Zeile, etwas kleiner und letter-spaced */
.hero-title-wrap .h-jahre .h-letter {
  font-size: clamp(28px, 5.5vw, 72px);
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.hero-sub-wrap { overflow: hidden; margin-bottom: 48px; }
.hero-sub {
  font-family: 'NeueMetana', sans-serif;
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 400; letter-spacing: 0.25em;
  color: var(--muted);
  transform: translateY(100%);
  animation: letter-rise 0.8s cubic-bezier(.16,1,.3,1) 1.1s forwards;
  display: block;
}

.hero-line {
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  margin: 0 auto 40px;
  animation: line-extend 1s cubic-bezier(.16,1,.3,1) 1.4s forwards;
}
@keyframes line-extend { to { width: min(480px, 60vw); } }

.hero-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--muted);
  max-width: 420px; margin: 0 auto 56px;
  line-height: 1.8;
  opacity: 0; animation: fade-up 0.8s 1.7s forwards;
}

.hero-scroll {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; animation: fade-up 0.8s 2s forwards;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity:0.5; transform:scaleY(1); }
  50% { opacity:1; transform:scaleY(1.25); }
}

/* ── SHARED KEYFRAMES ──────────────────────────────────── */
@keyframes letter-rise { to { transform: translateY(0); } }
@keyframes fade-up {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   CHAPTER LAYOUT
   ═══════════════════════════════════════════════════════ */
/* padding-bottom reserves space for the fixed bottom nav bar */
.chapter { position: relative; padding-bottom: 64px; }
.chapter-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 96px 64px;
  width: 100%;
}

/* Background variants */
.bg-mid  { background: var(--mid); }
.bg-dark { background: var(--dark); }
.bg-deep { background: var(--deep); }
.bg-blue-fade { background: linear-gradient(135deg, #090909 0%, #091726 100%); }

/* ── TYPOGRAPHY ────────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'NeueMetana', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  width: 0; height: 1px; background: var(--blue);
  transition: width 0.6s cubic-bezier(.16,1,.3,1);
}
.section-tag.in::before { width: 24px; }

.year-label {
  font-family: 'NeueMetana', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.chapter-title {
  font-family: 'NeueMetana', sans-serif;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700; line-height: 1.14;
  letter-spacing: -0.016em; margin-bottom: 20px;
}
.chapter-title em { font-style: normal; color: var(--blue); }
.chapter-body {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.85; color: var(--muted);
  max-width: 620px; font-weight: 400;
  letter-spacing: 0.01em;
}
.chapter-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  font-style: italic; font-weight: 300;
  line-height: 1.65; color: rgba(255,255,255,0.45);
  border-left: 2px solid var(--blue);
  padding-left: 24px; margin: 28px 0; max-width: 560px;
}

/* ── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.25,.8,.25,1),
              transform .7s cubic-bezier(.25,.8,.25,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── LAYOUTS ───────────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.split.reversed { direction: rtl; }
.split.reversed > * { direction: ltr; }
.portrait-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 72px; align-items: start;
}

/* ── IMAGE STYLES ──────────────────────────────────────── */
/* Images in their original aspect ratio — not cropped */
.img-wrap {
  position: relative; overflow: hidden;
  border-radius: 3px; cursor: pointer;
}
.img-wrap img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.65s cubic-bezier(.25,.8,.25,1);
}
.img-wrap:hover img { transform: scale(1.03); }

.img-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 28px 14px 14px;
  opacity: 0; transition: opacity 0.3s;
}
.img-wrap:hover .img-cap { opacity: 1; }
.img-cap span {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.8); letter-spacing: 0.04em;
}
.img-zoom {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.img-wrap:hover .img-zoom { opacity: 1; }

/* B&W filter — hover reveals color */
.bw img {
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.9s ease, transform 0.65s ease;
}
.bw:hover img { filter: grayscale(0) contrast(1); }

/* Main image within split layout */
.main-img {
  position: sticky;
  top: 120px;
}

/* ── INFO NODES ────────────────────────────────────────── */
.node { position: absolute; width: 18px; height: 18px; cursor: pointer; z-index: 10; }
.node-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--blue);
  animation: node-pulse 2.2s ease-in-out infinite;
}
.node-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
@keyframes node-pulse {
  0%,100% { transform:scale(1); opacity:.6; }
  50%      { transform:scale(2); opacity:0; }
}
.node-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(9,9,9,0.96);
  border: 1px solid rgba(30,118,194,0.3);
  border-radius: 8px; padding: 10px 14px;
  min-width: 180px; max-width: 250px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; line-height: 1.55; color: var(--text);
  pointer-events: none; opacity: 0; white-space: normal; z-index: 20;
  transition: opacity .22s, transform .22s;
  backdrop-filter: blur(16px);
}
.node-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(30,118,194,0.3);
}
.node:hover .node-tip, .node.show .node-tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.node-title {
  font-size: 10px; font-weight: 600; color: var(--blue);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px;
}

/* ── STATS ─────────────────────────────────────────────── */
.stat-row { display: grid; gap: 16px; margin-top: 36px; }
.s2 { grid-template-columns: 1fr 1fr; }
.s3 { grid-template-columns: repeat(3,1fr); }
.s4 { grid-template-columns: repeat(4,1fr); }
.stat-card {
  border: 1px solid var(--border); border-radius: 7px;
  padding: 24px 20px; background: rgba(255,255,255,0.02);
  transition: border-color .3s, background .3s;
}
.stat-card:hover { border-color: var(--blue-border); background: rgba(30,118,194,0.05); }
.stat-num {
  font-family: 'NeueMetana', sans-serif;
  font-size: 52px; font-weight: 700; color: var(--blue);
  line-height: 1; letter-spacing: -0.03em;
}
.stat-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4;
}

/* ── MILESTONES ────────────────────────────────────────── */
.mlist { list-style: none; margin-top: 28px; }
.mitem {
  display: flex; gap: 20px; padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.mdate {
  font-family: 'NeueMetana', sans-serif;
  font-size: 10px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.09em; white-space: nowrap;
  padding-top: 2px; min-width: 100px;
}
.mtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; line-height: 1.7; color: var(--muted);
}
.mtext strong { color: var(--text); font-weight: 600; }

/* ── GRID HELPERS ──────────────────────────────────────── */
.g2  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.g-col { display: flex; flex-direction: column; gap: 12px; }

/* ── DIVIDER ───────────────────────────────────────────── */
.hr { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); margin: 0 64px; }

/* ═══════════════════════════════════════════════════════
   CAROUSEL
   Bilder laufen langsam und kontinuierlich durch —
   kein Slider, keine Pfeile, keine harten Übergänge.
   ═══════════════════════════════════════════════════════ */
.carousel-section {
  overflow: hidden;
  padding: 24px 0;
  position: relative;
  /* Fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: carousel-scroll var(--carousel-duration, 40s) linear infinite;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

/* Images at a fixed height — natural width auto-calculated, original proportions preserved */
.carousel-track img {
  height: 220px;
  width: auto;
  max-width: 480px;
  flex-shrink: 0;
  display: block;
  border-radius: 3px;
  filter: grayscale(0.5) brightness(0.9);
  transition: filter 0.5s ease, transform 0.4s ease;
  cursor: pointer;
}
.carousel-track img:hover {
  filter: grayscale(0) brightness(1);
  transform: scale(1.02);
}

/* BW carousel variant */
.carousel-bw .carousel-track img {
  filter: grayscale(1) brightness(0.85);
}
.carousel-bw .carousel-track img:hover {
  filter: grayscale(0) brightness(1);
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Full-width carousel strip below a chapter */
.chapter-carousel {
  max-width: 1400px; margin: 0 auto;
  padding: 0 0 48px;
}
.chapter-carousel .carousel-label {
  font-family: 'NeueMetana', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  padding: 0 64px 12px;
}

/* ═══════════════════════════════════════════════════════
   JUBILEE FINALE
   ═══════════════════════════════════════════════════════ */
#jubilum {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  position: relative; overflow: hidden; background: var(--dark);
  padding: 80px 40px;
}
.jub-bg-num {
  position: absolute; font-size: 38vw; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(30,118,194,0.07);
  letter-spacing: -0.06em; line-height: 1;
  user-select: none; pointer-events: none; will-change: transform;
}

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */
#modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.93); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
#modal.open { opacity: 1; pointer-events: auto; }
.modal-body {
  max-width: 1100px; width: 100%;
  display: grid; grid-template-columns: 1fr 280px; gap: 48px;
  align-items: start;
  transform: scale(.96); transition: transform .3s;
}
#modal.open .modal-body { transform: scale(1); }

/* Image in modal at natural proportions */
.modal-img { display: flex; align-items: center; justify-content: center; }
.modal-img img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 3px; }

.modal-year {
  font-family: 'NeueMetana', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.modal-title {
  font-family: 'NeueMetana', sans-serif; font-size: 22px; font-weight: 700;
  line-height: 1.2; margin-bottom: 16px;
}
.modal-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; line-height: 1.75; color: var(--muted);
}
#modal-close {
  position: fixed; top: 28px; right: 28px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 1010;
}
#modal-close:hover { background: rgba(255,255,255,0.2); }

/* ── PASSWORD GATE ─────────────────────────────────────── */
#password-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  transition: opacity 0.6s ease;
}
#password-gate.gate-out { opacity: 0; pointer-events: none; }

.gate-logo { height: 36px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 40px; }

.gate-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}

.gate-field {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  transition: border-color 0.3s;
}
.gate-field:focus-within { border-color: var(--blue-border); }

#gate-input {
  background: rgba(255,255,255,0.03);
  border: none; outline: none;
  color: var(--text);
  font-family: 'NeueMetana', sans-serif;
  font-size: 15px; letter-spacing: 0.08em;
  padding: 14px 20px;
  width: 240px;
}
#gate-input::placeholder { color: var(--muted); }

#gate-btn {
  background: var(--blue);
  border: none; cursor: pointer;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 22px;
  transition: background 0.2s;
}
#gate-btn:hover { background: #2589d8; }

#gate-error {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; color: #c0392b;
  letter-spacing: 0.08em;
  margin-top: 16px; height: 16px;
  opacity: 0; transition: opacity 0.3s;
}

@keyframes gate-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.gate-shake { animation: gate-shake 0.4s ease; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: rgba(30,118,194,0.35); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .chapter-inner { padding: 80px 48px; }
  .chapter-carousel .carousel-label { padding: 0 48px 12px; }
}
@media (max-width: 960px) {
  .split, .portrait-layout { grid-template-columns: 1fr; gap: 36px; }
  .split.reversed { direction: ltr; }
  .modal-body { grid-template-columns: 1fr; }
  .chapter-inner { padding: 64px 28px; }
  .chapter-carousel .carousel-label { padding: 0 28px 12px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .s4 { grid-template-columns: 1fr 1fr; }
  .hr { margin: 0 28px; }
  #logo-bar { padding: 16px 24px; }
  #timeline-nav { justify-content: flex-start; padding: 0 24px; }
  .tn-track { left: 24px; right: 24px; }
  .main-img { position: static; }
  .collage-item { display: none; }
  .collage-item:nth-child(-n+6) { display: block; }
}
@media (max-width: 600px) {
  .g2 { grid-template-columns: 1fr; }
  .s3 { grid-template-columns: 1fr 1fr; }
  .s2 { grid-template-columns: 1fr; }
  .chapter-inner { padding: 48px 20px; }
  .chapter-carousel .carousel-label { padding: 0 20px 12px; }
  .carousel-track img { height: 160px; }
}
