/* ═══════════════════════════════════════
   RESET & ROOT - Social Democratic Red Theme
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #faf8f5;
  --bg-warm:      #f8f4f0;
  --bg-section:   #fff;
  --text:         #1a1a1a;
  --text-soft:    #4a4a4a;
  --text-muted:   #7a7a7a;
  --accent:       #c9222b;
  --accent-light: #e8524a;
  --accent-dark:  #a01e24;
  --accent-glow:  rgba(201, 34, 43, 0.15);
  --accent-glow2: rgba(232, 82, 74, 0.12);
  --border:       rgba(201, 34, 43, 0.15);
  --border-soft:  rgba(0, 0, 0, 0.06);
  --shadow-soft:  0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-med:   0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.1);
  --radius:       20px;
  --radius-sm:    12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   GRAIN TEXTURE OVERLAY
   ═══════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════
   READING PROGRESS BAR
   ═══════════════════════════════════════ */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
  z-index: 9999;
  transition: width 0.12s linear;
}

/* ═══════════════════════════════════════
   MAIN NAVIGATION MENU
   ═══════════════════════════════════════ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.4s;
}
.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 40px;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s;
}
.main-nav.scrolled .nav-brand {
  opacity: 1;
  transform: translateY(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.25s;
  position: relative;
}
.nav-link:hover {
  color: var(--accent);
  background: var(--accent-glow);
}
.nav-link.active {
  color: #fff;
  background: var(--accent);
}
.nav-link.active:hover {
  background: var(--accent-light);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ═══════════════════════════════════════
   SOUND TOGGLE
   ═══════════════════════════════════════ */
.sound-toggle {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sound-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}
.sound-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-med);
  transform: scale(1.05);
  border-color: var(--accent);
}
.sound-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.sound-btn:hover svg {
  stroke: var(--accent);
}
.sound-btn.muted svg {
  stroke: var(--accent);
}

.sound-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  max-width: 200px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
  pointer-events: none;
}
.sound-toggle:hover .sound-info {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.sound-info .poem-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}
.sound-info .poet-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  overflow: hidden;
}

/* Decorative grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 34, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 34, 43, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.8;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Floating geometric shapes */
.geo-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
}
.geo-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  top: 5%;
  left: -15%;
  animation-delay: 0s;
}
.geo-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-glow2);
  top: 55%;
  right: -10%;
  animation-delay: -5s;
}
.geo-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-glow);
  bottom: 15%;
  left: 25%;
  animation-delay: -10s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-logo {
  position: absolute;
  top: 12%;
  right: 5%;
  width: 320px;
  max-width: 40vw;
  opacity: 0.9;
  z-index: 2;
  animation: fadeSlideDown 1s 0.2s both;
}

.hero-authors {
  position: absolute;
  top: calc(12% + 320px + 10px);
  right: 5%;
  text-align: right;
  z-index: 2;
  animation: fadeSlideDown 1s 0.4s both;
}

.authors-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.authors-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeSlideUp 0.9s 0.3s both;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
  animation: fadeSlideUp 1s 0.5s both;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeSlideUp 1s 0.7s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px var(--accent-glow);
  transition: all 0.3s;
  animation: fadeSlideUp 1s 0.9s both;
}
.hero-cta:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.hero-cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeSlideUp 1s 1.1s both;
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(50px); opacity: 0; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
.main {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* ═══════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════ */
.section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding: 100px 0;
  border-bottom: 1px solid var(--border-soft);
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section:last-of-type {
  border-bottom: none;
}

/* Alternating layout */
.section:nth-child(even) {
  grid-template-columns: 1.5fr 1fr;
}
.section:nth-child(even) .section-meta {
  order: 2;
}

.section-meta {
  position: sticky;
  top: 120px;
  align-self: start;
}

.section-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bg-warm);
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 24px;
  transition: all 0.5s;
}
.section:hover .section-num {
  color: var(--accent-glow);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  background: var(--accent-glow);
  border-radius: 50px;
}

.section-content {
  padding-top: 20px;
}

.section-content p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.section-content p:last-child {
  margin-bottom: 0;
}

.section-content strong {
  color: var(--accent);
  font-weight: 600;
}
.section-content em {
  font-style: italic;
  color: var(--accent-light);
}

/* ═══════════════════════════════════════
   BLOCKQUOTES
   ═══════════════════════════════════════ */
.quote-block {
  position: relative;
  margin: 40px 0;
  padding: 40px 40px 40px 80px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, rgba(255,255,255,0.5) 100%);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
}
.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════
   KEYWORD TOOLTIPS
   ═══════════════════════════════════════ */
.kw {
  position: relative;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 2px dotted var(--accent);
  cursor: help;
  transition: all 0.2s;
}
.kw:hover {
  color: var(--accent-light);
  border-bottom-style: solid;
}

.kw-tip {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  z-index: 5000;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  pointer-events: none;
  transform: translateY(8px);
}
.kw-tip.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.kw-tip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.kw-tip.tip-below::after {
  bottom: auto;
  top: -8px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.kw-tip strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.kw-tip p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}
.kw-tip .kw-src {
  margin-top: 12px;
  padding-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

/* Footnote markers and tooltip */
.fn {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  vertical-align: super;
  line-height: 1;
  cursor: help;
  border-bottom: none;
  margin-left: 1px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.fn:hover { opacity: 1; }

.fn-tip {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-style: italic;
  z-index: 5000;
  box-shadow: var(--shadow-med);
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.fn-tip.visible {
  visibility: visible;
  opacity: 1;
}

/* Video trigger buttons */
.video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
  vertical-align: middle;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.video-trigger:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}
.video-trigger--inline {
  border-radius: 3px;
  font-size: 0.8rem;
  padding: 1px 6px;
  vertical-align: baseline;
}

/* Video overlay modal */
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-overlay.active { display: flex; }

.video-overlay-content {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
  transition: max-width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.video-overlay-content.has-factbox { max-width: 1020px; }

.video-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  gap: 12px;
}
.video-overlay-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.video-overlay-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.video-overlay-close:hover { color: var(--accent); background: var(--accent-glow); }

/* Video + factbox side-by-side */
.video-overlay-body {
  display: flex;
  align-items: stretch;
}
.video-section {
  flex: 1 1 auto;
  min-width: 0;
}
.video-ratio-box {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.video-ratio-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* "FAKTA!" badge that pops on the video */
.video-pause-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-12deg);
  background: var(--accent);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: 8px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  box-shadow: 0 8px 32px rgba(201,34,43,0.4);
}
.video-pause-badge.show {
  transform: translate(-50%, -50%) scale(1) rotate(-5deg);
  opacity: 1;
}

/* Factbox panel (slides in from right) */
.svt-factbox {
  flex: 0 0 0;
  width: 0;
  overflow: hidden;
  border-left: none;
  transition: flex-basis 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s;
}
.svt-factbox.visible {
  flex: 0 0 280px;
  border-left: 3px solid var(--accent);
}

.svt-factbox-inner {
  width: 280px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s 0.35s ease, transform 0.4s 0.35s ease;
}
.svt-factbox.visible .svt-factbox-inner {
  opacity: 1;
  transform: translateX(0);
}

.factbox-emoji {
  font-size: 2rem;
  line-height: 1;
}
.factbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  line-height: 1.3;
}
.factbox-body {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}
.factbox-cite {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
}
.factbox-resume {
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.factbox-resume:hover {
  background: var(--accent-dark);
  transform: scale(1.03);
}

.video-overlay-source {
  padding: 10px 18px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border-soft);
}

/* ═══════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-med);
  border-color: var(--border);
}
.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-value .counter {
  display: inline-block;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  opacity: 0.8;
}

/* Live indicator for SCB data */
.live-indicator {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s, transform 0.4s;
}
.live-indicator.active {
  opacity: 1;
  transform: translateY(0);
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.live-text {
  font-size: 0.6rem;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   GROUP ANALYSIS (Ungdomar & Akademiker)
   ═══════════════════════════════════════ */
.group-analysis {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}

.group-analysis-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.group-analysis-intro {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 680px;
}

.group-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.group-inference {
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 8px;
}

.group-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.group-card:hover {
  box-shadow: var(--shadow-med);
  transform: translateY(-3px);
}
.group-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
}

.group-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.group-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.group-card-subtitle {
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mini live indicator for group cards */
.live-indicator.mini {
  position: static;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Youth unemployment: trend display */
.group-trend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.group-trend-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.group-trend-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.group-trend-point--now .group-trend-val {
  color: var(--accent);
}

.group-trend-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.group-trend-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: -8px;
}

/* Sparkline SVG */
.sparkline {
  display: block;
  width: 100%;
  height: 48px;
  margin: 4px 0 12px;
  overflow: visible;
}

.spark-line {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-dot {
  fill: var(--text-muted);
}

.spark-dot--end {
  fill: var(--accent);
}

.group-card-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.8;
  margin-top: 4px;
}

/* Education bar chart */
.edu-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.edu-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-bar-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 32px;
  flex-shrink: 0;
}

.edu-bar-row--latest .edu-bar-year {
  color: var(--accent-dark);
}

.edu-bar-track {
  flex: 1;
  height: 14px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.edu-bar-fill {
  height: 100%;
  background: rgba(201, 34, 43, 0.35);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.edu-bar-fill--latest {
  background: var(--accent);
}

.edu-bar-pct {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.edu-bar-row--latest .edu-bar-pct {
  color: var(--accent);
}

.edu-change-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Tjänstemän note */
.tjanstemän-note {
  background: var(--bg-warm);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.tjanstemän-note strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .group-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   AI ADOPTION SECTION
   ═══════════════════════════════════════ */
.ai-adoption-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}

.ai-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.ai-section-intro {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 680px;
}

.ai-insikts-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.ai-insikt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}

/* Donut chart */
.donut-chart {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.donut-bg {
  stroke: var(--bg-warm);
}

.donut-arc {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 0 239;
  transition: stroke-dasharray 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ai-adoption-section.arc-animated .donut-arc {
  stroke-dasharray: var(--arc-length, 0) 239;
}

.donut-pct {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  fill: var(--accent);
}

.donut-year {
  font-size: 11px;
  fill: var(--text-muted);
}

.ai-insikt-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Regular use comparison (29% → 49%) */
.ai-insikt--compare {
  justify-content: center;
}

.ai-regular-compare {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.ai-rc-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ai-rc-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.ai-rc-point--now .ai-rc-val {
  color: var(--accent);
}

.ai-rc-year {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.ai-rc-arrow {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: -10px;
}

.ai-insikts-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: right;
  margin-bottom: 32px;
}

/* SCB AI company data block */
.scb-ai-block {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
}

.scb-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.scb-ai-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.scb-ai-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.scb-ai-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.scb-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.scb-bar-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 32px;
  flex-shrink: 0;
}

.scb-bar-row--latest .scb-bar-year {
  color: var(--accent-dark);
}

.scb-bar-track {
  flex: 1;
  height: 14px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.scb-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scb-bar-fill--total { background: rgba(201, 34, 43, 0.35); }
.scb-bar-fill--large { background: rgba(201, 34, 43, 0.55); }
.scb-bar-row--latest .scb-bar-fill--total { background: rgba(201, 34, 43, 0.55); }
.scb-bar-row--latest .scb-bar-fill--large { background: var(--accent); }

.scb-bar-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.scb-bar-row--latest .scb-bar-val {
  color: var(--accent);
}

.scb-ai-source {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
}

/* ── Platsannonser section ── */
.platsannonser-section {
  margin-top: 40px;
}

.pla-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pla-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 20px;
}

.pla-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
}

.pla-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pla-card-title em {
  text-transform: none;
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.pla-loading {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.pla-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pla-bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.pla-bar-row--latest .pla-bar-label {
  color: var(--accent);
  font-weight: 600;
}

.pla-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.pla-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: #6366f1;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.pla-bar-row--latest .pla-bar-fill {
  background: var(--accent);
}

.pla-bar-fill--partial {
  background: rgba(99, 102, 241, 0.45);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.1) 4px,
    rgba(255,255,255,0.1) 8px
  );
}


.pla-partial-mark {
  font-size: 0.6rem;
  opacity: 0.7;
  cursor: help;
  margin-left: 2px;
}

.pla-bar-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

#platsannonserSection.bars-animated .pla-bar-fill {
  width: var(--pla-pct);
}

.pla-change {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.pla-change--down {
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent);
}

.pla-change--up {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.canaries-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-left: 3px solid #6366f1;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 4px 0 14px;
}

.canaries-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.canaries-title {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}

.canaries-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.canaries-cite {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.8;
}

.canaries-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 2px;
}
.canaries-link:hover {
  text-decoration-color: rgba(255,255,255,0.8);
}

.canaries-figure {
  margin: 20px 0 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.canaries-chart {
  width: 100%;
  display: block;
}

.canaries-figcaption {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 14px 12px;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.stanford-callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 3px solid rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.05);
  border-radius: 0 8px 8px 0;
}

.stanford-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.pla-footnote-marker {
  font-size: 0.75em;
  vertical-align: super;
  margin-left: 3px;
  color: #f87171;
  cursor: default;
  position: relative;
}

.pla-footnote {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: #1e1e2e;
  border: 1px solid rgba(248,113,113,0.35);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: normal;
  color: var(--text-muted);
  line-height: 1.5;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  white-space: normal;
  vertical-align: baseline;
}

.pla-footnote-marker:hover .pla-footnote {
  display: block;
}

/* ── Household AI section ── */
.household-ai-section {
  margin-top: 40px;
}

.household-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 16px;
}

.household-ai-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
}

.household-ai-card--highlight {
  border-color: rgba(var(--accent-rgb, 220,38,38), 0.35);
  background: rgba(var(--accent-rgb, 220,38,38), 0.05);
}

.household-ai-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.household-ai-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.household-ai-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.household-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.household-bar-context {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.household-bar-track {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.household-bar-fill {
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.household-bar-fill--work {
  background: var(--accent);
}

.household-bar-fill--personal {
  background: #6366f1;
}

.household-bar-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* animate bars on scroll */
.household-ai-section.bars-animated .household-bar-fill {
  width: var(--hbar-pct);
}

@media (max-width: 700px) {
  .ai-insikts-row {
    grid-template-columns: 1fr;
  }
  .scb-ai-double {
    grid-template-columns: 1fr;
  }
  .household-ai-grid {
    grid-template-columns: 1fr;
  }
  .household-bar-row {
    grid-template-columns: 100px 1fr 34px;
  }
  .pla-grid {
    grid-template-columns: 1fr;
  }
  .pla-bar-row {
    grid-template-columns: 80px 1fr 70px;
  }
  .canaries-callout {
    flex-direction: column;
    gap: 8px;
  }
}

/* ═══════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════ */
.timeline {
  position: relative;
  margin: 48px 0;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
}

.timeline-item {
  position: relative;
  padding: 24px 0;
  padding-left: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 32px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  transition: all 0.3s;
}
.timeline-item:hover::before {
  background: var(--accent);
  transform: scale(1.2);
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.timeline-text {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Affected Jobs Grid */
.affected-jobs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.job-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.job-category:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}
.job-icon {
  font-size: 1.5rem;
}
.job-title {
  font-weight: 500;
  color: var(--text);
}

/* Interactive Timeline */
.timeline.interactive .timeline-item.expandable {
  cursor: pointer;
}
.timeline.interactive .timeline-item.expandable:hover::before {
  background: var(--accent);
  transform: scale(1.3);
}
.timeline-label.clickable {
  display: flex;
  align-items: center;
  gap: 8px;
}
.expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
}
.timeline-item.expandable.open .expand-icon {
  transform: rotate(45deg);
}

/* Timeline Dropdown */
.timeline-dropdown {
  display: none;
  margin-top: 16px;
  padding-left: 0;
}
.timeline-item.expandable.open .timeline-dropdown {
  display: block;
  animation: slideDown 0.4s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dropdown-item {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.dropdown-item:last-child {
  margin-bottom: 0;
}
.dropdown-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.dropdown-item p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}
.dropdown-item strong {
  color: var(--accent-dark);
}
.dropdown-item em {
  color: var(--accent);
  font-style: italic;
}
.dropdown-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 600px) {
  .affected-jobs {
    grid-template-columns: 1fr;
  }
  .dropdown-item {
    padding: 16px 18px;
  }
  .dropdown-item h4 {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background: var(--bg-warm);
  padding: 80px 40px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  width: 140px;
  opacity: 0.85;
  margin-bottom: 24px;
}

.footer-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.footer-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 20px;
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .section {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding: 60px 0;
  }
  .section-meta {
    position: relative;
    top: 0;
    order: 0 !important;
  }
  .section-num {
    font-size: 3.5rem;
  }
  .hero-logo {
    position: relative;
    top: 0;
    right: 0;
    width: 200px;
    max-width: 60vw;
    margin-bottom: 16px;
  }
  .hero-authors {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 0;
    margin-bottom: 32px;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    gap: 8px;
    box-shadow: var(--shadow-med);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    padding: 16px 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 24px 60px;
  }
  .main {
    padding: 0 24px 80px;
  }
  .section {
    padding: 48px 0;
  }
  .quote-block {
    padding: 28px 24px 28px 56px;
  }
  .quote-block::before {
    font-size: 3.5rem;
    left: 16px;
  }
  .quote-block p {
    font-size: 1.15rem;
  }
  .sound-toggle {
    bottom: 20px;
    left: 20px;
  }
  .kw-tip {
    width: 260px;
  }
  .hero-logo {
    width: 160px;
  }
}

/* ═══════════════════════════════════════
   ANIMATED BNP CHART
   ═══════════════════════════════════════ */
.chart-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-soft);
}

/* Animation only starts when visible */
.chart-section .chart-line,
.chart-section .chart-dots circle,
.chart-section .value-label,
.chart-section .decline-zone {
  animation-play-state: paused;
}
.chart-section.animating .chart-line,
.chart-section.animating .chart-dots circle,
.chart-section.animating .value-label,
.chart-section.animating .decline-zone {
  animation-play-state: running;
}

.chart-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}

.chart-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.bnp-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.grid-line {
  display: none;
}

.axis-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  fill: var(--text-soft);
}
.y-label {
  display: none;
}
.x-label {
  text-anchor: middle;
  font-weight: 500;
}

.chart-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 4s ease-out forwards;
  filter: drop-shadow(0 2px 4px rgba(201, 34, 43, 0.3));
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.chart-dots circle {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 3;
  cursor: default;
  animation: popIn 0.5s ease-out forwards;
  opacity: 0;
  transition: r 0.2s ease-out, stroke-width 0.2s ease-out;
  filter: drop-shadow(0 2px 4px rgba(201, 34, 43, 0.3));
}
.chart-dots circle:hover {
  r: 10;
  stroke-width: 4;
}
@keyframes popIn {
  from { opacity: 0; r: 0; }
  to { opacity: 1; r: 7; }
}

.value-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  fill: var(--text-soft);
  text-anchor: middle;
  opacity: 0;
  animation: fadeInLabel 0.5s ease-out forwards;
}
@keyframes fadeInLabel {
  to { opacity: 1; }
}
.chart-dots circle:nth-child(1) { animation-delay: 0.3s; }
.chart-dots circle:nth-child(2) { animation-delay: 0.6s; }
.chart-dots circle:nth-child(3) { animation-delay: 0.9s; }
.chart-dots circle:nth-child(4) { animation-delay: 1.2s; }
.chart-dots circle:nth-child(5) { animation-delay: 1.5s; }
.chart-dots circle:nth-child(6) { animation-delay: 1.8s; }
.chart-dots circle:nth-child(7) { animation-delay: 2.1s; }
.chart-dots circle:nth-child(8) { animation-delay: 2.4s; }
.chart-dots circle:nth-child(9) { animation-delay: 2.7s; }
.chart-dots circle:nth-child(10) { animation-delay: 3s; }
.chart-dots circle:nth-child(11) { animation-delay: 3.3s; }

.decline-zone {
  fill: rgba(201, 34, 43, 0.08);
  stroke: rgba(201, 34, 43, 0.2);
  stroke-width: 2;
  stroke-dasharray: 8 4;
  opacity: 0;
  animation: fadeInZone 1s ease-out 2s forwards;
}
@keyframes fadeInZone {
  to { opacity: 1; }
}

.chart-tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-med);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.tooltip-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.tooltip-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.chart-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 24px;
  font-style: italic;
}
/* Chart Callout - Key Message */
.chart-callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 48px auto 0;
  padding: 32px 40px;
  max-width: 700px;
  background: linear-gradient(135deg, rgba(201, 34, 43, 0.08) 0%, rgba(201, 34, 43, 0.03) 100%);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 8px 32px rgba(201, 34, 43, 0.1);
  animation: calloutSlideIn 0.8s ease-out 3.5s both;
}
@keyframes calloutSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.callout-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201, 34, 43, 0.3);
}
.callout-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}
.callout-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.callout-text strong {
  color: var(--accent);
  font-weight: 700;
}

/* Clickable decline zone */
.decline-zone {
  cursor: pointer;
  transition: all 0.3s ease;
}
.decline-zone.clickable {
  filter: drop-shadow(0 0 8px rgba(201, 34, 43, 0.4));
}
.decline-zone.clickable:hover {
  fill: rgba(201, 34, 43, 0.15);
  filter: drop-shadow(0 0 16px rgba(201, 34, 43, 0.6));
}

/* Chart Overlay */
.chart-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.chart-overlay.active {
  opacity: 1;
  visibility: visible;
}
.chart-overlay-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: rgba(201, 34, 43, 0.15);
  border: 3px solid rgba(201, 34, 43, 0.4);
  border-radius: var(--radius);
  padding: 32px 32px 24px;
  box-shadow: 0 32px 80px rgba(201, 34, 43, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s ease;
}
.chart-overlay.active .chart-overlay-content {
  transform: scale(1);
}
.overlay-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: var(--accent);
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.overlay-close:hover {
  background: var(--accent-dark);
  transform: scale(1.1);
}
.overlay-chart-wrapper {
  position: relative;
  margin: 0 auto;
}
.overlay-chart {
  width: 100%;
  height: auto;
}
.decline-zone-expanded {
  fill: rgba(201, 34, 43, 0.08);
  stroke: none;
}
.chart-line-expanded {
  filter: drop-shadow(0 3px 6px rgba(201, 34, 43, 0.4));
}
.chart-dots-expanded circle {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 3px 8px rgba(201, 34, 43, 0.5));
}

/* Decline dashed line animation */
.decline-arrow {
  opacity: 0;
}
.chart-overlay.active .decline-arrow {
  animation: fadeInLine 1s ease-out 0.5s forwards;
}
@keyframes fadeInLine {
  to { opacity: 1; }
}

/* Amount text on the dashed line */
.decline-amount {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  fill: #fff;
  opacity: 0;
  paint-order: stroke fill;
  stroke: var(--accent-dark);
  stroke-width: 4px;
}
.chart-overlay.active .decline-amount {
  animation: fadeInAmount 0.8s ease-out 2s forwards;
}
@keyframes fadeInAmount {
  to { opacity: 1; }
}

/* Year labels in overlay */
.overlay-year-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: #fff;
  opacity: 0;
  paint-order: stroke fill;
  stroke: var(--accent);
  stroke-width: 3px;
}
.overlay-year-label.start-label {
  text-anchor: start;
}
.overlay-year-label.end-label {
  text-anchor: end;
}
.chart-overlay.active .overlay-year-label {
  animation: fadeInAmount 0.6s ease-out 0.3s forwards;
}

/* Comparison text */
.overlay-comparison {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(20px);
}
.chart-overlay.active .overlay-comparison {
  animation: fadeSlideUpComparison 0.8s ease-out 2.8s forwards;
}
@keyframes fadeSlideUpComparison {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.overlay-comparison strong {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .chart-callout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }
  .callout-text {
    font-size: 1.1rem;
  }
  .chart-overlay-content {
    padding: 24px 20px 20px;
    max-width: 95%;
  }
  .overlay-comparison {
    font-size: 1rem;
    padding: 16px;
  }
  .decline-amount {
    font-size: 12px;
  }
  .overlay-year-label {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .chart-container {
    padding: 24px 12px;
  }
  .chart-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .axis-label {
    font-size: 9px;
  }
  .value-label {
    font-size: 8px;
  }
  .chart-dots circle {
    r: 5;
  }
}

/* ═══════════════════════════════════════
   WIGFORSSBOT
   ═══════════════════════════════════════ */
.wbot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wbot-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wbot-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}

.wbot-window {
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.wbot-window[hidden] { display: none; }

.wbot-header {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.wbot-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}
.wbot-subtitle {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  width: 100%;
}
.wbot-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  margin-left: auto;
  align-self: flex-start;
}
.wbot-close:hover { color: #fff; }

.wbot-tts {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  margin-left: auto;
  align-self: flex-start;
  transition: color 0.2s;
}
.wbot-tts:hover { color: #fff; }

.wbot-messages {
  flex: 1;
  max-height: 340px;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.wbot-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
}
.wbot-msg p { margin: 0; }
.wbot-msg--bot {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: #e8e8e8;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.wbot-msg--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.wbot-msg--thinking {
  opacity: 0.5;
  font-style: italic;
}

.wbot-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.wbot-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.83rem;
  color: #e8e8e8;
  outline: none;
}
.wbot-input:focus { border-color: var(--accent); }
.wbot-input::placeholder { color: rgba(255,255,255,0.35); }
.wbot-mic {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.wbot-mic:hover { background: rgba(255,255,255,0.18); }
.wbot-mic--active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,34,43,0.35);
  animation: wbot-pulse 1s ease-in-out infinite;
}
@keyframes wbot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,34,43,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(201,34,43,0.15); }
}
.wbot-send {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.wbot-send:disabled { opacity: 0.4; cursor: default; }
.wbot-send:hover:not(:disabled) { opacity: 0.85; }
