/* ═══════════════════════════════════════════════
   HU-30 · REBRAND v4
   Brand paletta:
   navy       #2D3064   (ISZT/brand)
   teal       #03E0AF   (.hu Nyilvántartó)
   bix-blue   #1AB1E7   (BIX)
   iszt-green #78BE20   (ISZT zöld, roll-upból)
   light-bg   #EEF2F6   (brandbook háttér)
   dark-bg    #110827   (mélysötét)
   cert-blue  #4a72a8
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #2d3064;
  --navy-dark: #1a1c3d;
  --teal: #03e0af;
  --teal-mid: #02b88f;
  --bix: #1ab1e7;
  --bix-dark: #0e8cbf;
  --iszt-green: #78be20;
  --cert: #4a72a8;
  --light: #eef2f6;
  --white: #ffffff;
  --text-dark: #110827;
  --muted: #6b7280;
  --line: rgba(45, 48, 100, 0.12);
  --ff-head: 'Poppins', sans-serif;
  --ff-body: 'DM Sans', sans-serif;
  --ff-mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--light);
  color: var(--text-dark);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(238, 242, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--navy);
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo-iszt,
.nav-logo-hu,
.nav-logo-bix {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-logo-iszt:hover,
.nav-logo-hu:hover,
.nav-logo-bix:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.nav-links a,
.nav-item {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-item:hover {
  color: var(--navy);
}

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
  transform-origin: center;
}

/* X state */
#main-nav.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#main-nav.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#main-nav.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ─── HERO ─── */
.hero {
  min-height: auto;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 57px;
}

/* Pattern waves – inspired by .hu brandbook */
.hero-wave {
  position: absolute;
  pointer-events: none;
}

.hero-wave-1 {
  width: 900px;
  height: 900px;
  border-radius: 50%;
  border: 150px solid rgba(3, 224, 175, 0.18);
  bottom: -300px;
  right: -200px;
}

.hero-wave-2 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 100px solid rgba(26, 177, 231, 0.12);
  bottom: -150px;
  right: 100px;
}

.hero-wave-3 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(120, 190, 32, 0.1);
  bottom: -50px;
  right: 350px;
}

.hero-wave-4 {
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  border: 180px solid rgba(3, 224, 175, 0.07);
  bottom: -500px;
  left: -300px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 48px 48px;
}

.hero-tag {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.688);
  margin-bottom: 20px;
  opacity: 0;
  animation: rise 0.8s 0.3s ease forwards;
  width: fit-content;
  background: rgba(17, 8, 39, 0.45);
  backdrop-filter: blur(4px);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-tag .tag-hu {
  color: var(--teal);
}

.hero-number {
  font-family: var(--ff-head);
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 900;
  line-height: 0.85;
  color: var(--white);
  letter-spacing: -0.04em;
  opacity: 0;
  animation: rise 0.9s 0.5s ease forwards;
}

.hero-number .accent {
  color: var(--teal);
}

.hero-subtitle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(238, 242, 246, 0.15);
  opacity: 0;
  animation: rise 0.9s 0.7s ease forwards;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-subtitle {
  font-family: var(--ff-head);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--white);
  line-height: 1.2;
  max-width: 600px;
  font-weight: 600;
}

.hero-subtitle em {
  color: var(--teal);
  font-style: normal;
}

.hero-stats-row {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
  flex-wrap: wrap;
  background: rgba(17, 8, 39, 0.45);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-stat {
  text-align: right;
}

.hero-stat-num {
  font-family: var(--ff-mono);
  font-size: 25px;
  font-weight: 500;
  color: var(--teal);
  display: block;
}

.hero-stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(238, 242, 246, 0.688);
  text-transform: uppercase;
  font-family: var(--ff-mono);
}

.hero-scroll {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  border-top: 1px solid rgba(238, 242, 246, 0.08);
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(238, 242, 246, 0.25);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.6);
  }
}

/* ─── BRAND BAND ─── */
.brand-band {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.brand-card {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.brand-card:last-child {
  border-right: none;
}

.brand-card:hover {
  background: var(--light);
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.brand-card.hu::before {
  background: var(--teal);
}

.brand-card.bix::before {
  background: var(--bix);
}

.brand-card.iszt::before {
  background: var(--iszt-green);
}

.brand-card-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.brand-card.hu .brand-card-label {
  color: var(--teal-mid);
}

.brand-card.bix .brand-card-label {
  color: var(--bix-dark);
}

.brand-card.iszt .brand-card-label {
  color: #5a9010;
}

.brand-card-name {
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.brand-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.brand-card-url {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.brand-card.hu .brand-card-url:hover {
  border-color: var(--teal);
  color: var(--teal-mid);
}

.brand-card.bix .brand-card-url:hover {
  border-color: var(--bix);
  color: var(--bix-dark);
}

.brand-card.iszt .brand-card-url:hover {
  border-color: var(--iszt-green);
  color: #5a9010;
}

/* ─── INTRO ─── */
.intro {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro-lead {
  font-family: var(--ff-head);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
  color: var(--navy);
  font-weight: 700;
}

.intro-lead em {
  color: var(--teal-mid);
  font-style: normal;
}

.intro-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.intro-body p + p {
  margin-top: 16px;
}

.intro-pdf-btn {
  display: inline-block;
  margin-top: 28px;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.intro-pdf-btn:hover {
  background: transparent;
  color: var(--navy);
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat-item {
  padding: 40px 28px;
  border-right: 1px solid rgba(238, 242, 246, 0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(3, 224, 175, 0.06);
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-item:nth-child(1)::before {
  background: var(--teal);
}

.stat-item:nth-child(2)::before {
  background: var(--iszt-green);
}

.stat-item:nth-child(3)::before {
  background: var(--teal);
}

.stat-item:nth-child(4)::before {
  background: var(--teal);
}

.stat-item:nth-child(5)::before {
  background: var(--iszt-green);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-n {
  font-family: var(--ff-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-n sup {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--teal);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.3);
  font-family: var(--ff-mono);
}

/* ─── SECTION HEADER ─── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.section-tag.hu {
  background: rgba(3, 224, 175, 0.12);
  color: var(--teal-mid);
}

.section-tag.bix {
  background: rgba(26, 177, 231, 0.12);
  color: var(--bix-dark);
}

.section-tag.iszt {
  background: rgba(120, 190, 32, 0.12);
  color: #5a9010;
}

.section-tag.gold {
  background: rgba(45, 48, 100, 0.08);
  color: var(--navy);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 20px;
}

.section-h2 {
  font-family: var(--ff-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-h2 em {
  font-style: normal;
}

.section-h2 em.teal {
  color: var(--teal-mid);
}

.section-h2 em.bix {
  color: var(--bix-dark);
}

.section-h2 em.green {
  color: var(--iszt-green);
}

/* ─── LEGEND ─── */
.timeline-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 48px;
  margin-bottom: 28px;
  margin-top: -40px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.hu {
  background: var(--teal);
}

.legend-dot.bix {
  background: var(--bix);
}

.legend-dot.iszt {
  background: var(--iszt-green);
}

.legend-dot.cert {
  background: var(--cert);
}

/* ─── PARALLEL TIMELINE ─── */
.parallel-timeline-section {
  padding: 100px 0 80px;
  background: var(--light);
  overflow: clip;
}

.parallel-timeline-section > .section-header {
  padding: 0 48px;
}

.parallel-track-labels {
  display: grid;
  grid-template-columns: 88px 1fr 1fr 1fr;
  position: sticky;
  top: 62px;
  background: var(--light);
  z-index: 1;
}

.track-label {
  padding: 12px 20px 12px 0;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.track-label.hu {
  color: var(--teal-mid);
  border-color: var(--teal);
  padding-left: 20px;
  border-bottom: none;
  border-top: 3px solid var(--teal);
}

.track-label.bix {
  color: var(--bix-dark);
  border-top: 3px solid var(--bix);
}

.track-label.iszt {
  color: #5a9010;
  border-top: 3px solid var(--iszt-green);
}

.era-block {
  display: grid;
  grid-template-columns: 88px 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.era-block:last-child {
  border-bottom: none;
}

.era-label {
  padding: 24px 12px 24px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.era-year-num {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.era-year-sub {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}

.era-cell {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  min-height: 90px;
}

.era-cell:last-child {
  border-right: none;
}

.era-cell.empty {
  background: rgba(45, 48, 100, 0.015);
}

/* Column color accents */
.era-block .era-cell:nth-child(2) {
  border-left: 3px solid var(--teal);
}

.era-block .era-cell:nth-child(3) {
  border-left: 3px solid var(--bix);
}

.era-block .era-cell:nth-child(4) {
  border-left: 3px solid var(--iszt-green);
}

.era-event {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.era-event:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.era-event-date {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.era-event-date.hu {
  color: var(--teal-mid);
}

.era-event-date.bix {
  color: var(--bix-dark);
}

.era-event-date.iszt {
  color: #5a9010;
}

.era-event-date.cert {
  color: var(--cert);
}

.era-event-title {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 5px;
}

.era-event-body {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── MILESTONES ─── */
.milestones {
  padding: 100px 48px;
  background: var(--navy);
}

.milestones .section-h2 {
  color: var(--white);
}

.milestones .section-rule {
  background: rgba(238, 242, 246, 0.1);
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 0;
}

.milestone-card {
  background: var(--navy);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.milestone-card:hover {
  background: var(--navy-dark);
}

.milestone-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.milestone-card:hover::after {
  transform: scaleX(1);
}

.milestone-card:nth-child(3n + 1)::after {
  background: var(--teal);
}

.milestone-card:nth-child(3n + 2)::after {
  background: var(--bix);
}

.milestone-card:nth-child(3n + 3)::after {
  background: var(--iszt-green);
}

.mc-year {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(238, 242, 246, 0.4);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mc-year strong {
  color: rgba(238, 242, 246, 0.75);
  font-weight: 600;
  font-size: 11px;
}

.milestone-tag {
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  padding: 6px 16px !important;
  font-weight: 600 !important;
  background: rgba(3, 224, 175, 0.15) !important;
  color: var(--teal) !important;
}

.mc-number {
  font-family: var(--ff-head);
  font-size: 52px;
  font-weight: 900;
  color: rgba(238, 242, 246, 0.05);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  pointer-events: none;
  user-select: none;
}

.mc-title {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.mc-body {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(238, 242, 246, 0.45);
}

/* ─── DOMAIN GROWTH ─── */
.domain-growth {
  padding: 90px 48px;
  background: var(--navy-dark);
}

.domain-growth .section-h2 {
  color: var(--white);
}

.domain-growth .section-rule {
  background: rgba(238, 242, 246, 0.1);
}

.dg-intro {
  font-size: 15px;
  color: rgba(238, 242, 246, 0.5);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
  font-family: var(--ff-body);
}

.dg-note {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(238, 242, 246, 0.2);
  margin-top: 24px;
  letter-spacing: 0.06em;
}

.dg-track {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  align-items: end;
}

.dg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dg-year {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(238, 242, 246, 0.65);
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

.dg-bar {
  width: 100%;
  background: rgba(3, 224, 175, 0.2);
  border-radius: 3px 3px 0 0;
  transition: background 0.25s;
}

.dg-bar {
  height: calc(var(--pct) * 1.6px);
}

.dg-item:hover .dg-bar {
  background: rgba(3, 224, 175, 0.5);
}

.dg-item--hi .dg-bar {
  background: var(--teal);
}

.dg-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(238, 242, 246, 0.7);
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

/* ─── PARTNERNAP ─── */
.partnernap {
  padding: 90px 48px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pn-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 56px;
  line-height: 1.8;
}

.pn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.pn-card {
  background: var(--white);
  padding: 44px 32px;
  transition: background 0.2s;
  position: relative;
  border-top: 4px solid var(--line);
}

.pn-card:hover {
  background: var(--light);
}

.pn-card:nth-child(1) {
  border-top-color: var(--teal);
}

.pn-card:nth-child(2) {
  border-top-color: var(--teal-mid);
}

.pn-card:nth-child(3) {
  border-top-color: var(--teal);
}

.pn-card--upcoming {
  opacity: 0.7;
}

.pn-card--upcoming::after {
  content: 'HAMAROSAN';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--teal-mid);
  border: 1px solid var(--teal);
  padding: 3px 8px;
  border-radius: 2px;
}

.pn-num {
  font-family: var(--ff-head);
  font-size: 64px;
  font-weight: 900;
  color: rgba(45, 48, 100, 0.05);
  line-height: 1;
  margin-bottom: 12px;
}

.pn-date {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal-mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pn-location {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.pn-title {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.pn-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.pn-speakers {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  line-height: 1.7;
}

/* ─── HUNOG ─── */
.hunog {
  padding: 90px 48px;
  background: var(--light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hn-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 56px;
  line-height: 1.8;
}

.hn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
}

.hn-card {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.2s;
  position: relative;
  border-top: 4px solid var(--line);
}

.hn-card:hover {
  background: #f0f8fd;
}

.hn-card:nth-child(1) {
  border-top-color: var(--bix);
}

.hn-card:nth-child(2) {
  border-top-color: var(--bix);
}

.hn-card:nth-child(3) {
  border-top-color: var(--bix);
}

.hn-card:nth-child(4) {
  border-top-color: var(--bix-dark);
}

.hn-card--upcoming {
  opacity: 0.7;
}

.hn-card--upcoming::after {
  content: 'HAMAROSAN';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--bix-dark);
  border: 1px solid var(--bix);
  padding: 3px 8px;
  border-radius: 2px;
}

.hn-num {
  font-family: var(--ff-head);
  font-size: 64px;
  font-weight: 900;
  color: rgba(26, 177, 231, 0.07);
  line-height: 1;
  margin-bottom: 12px;
}

.hn-date {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bix-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hn-location {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hn-title {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.hn-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.hn-stats {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  line-height: 2;
}

.hn-stat {
  display: inline-block;
  background: rgba(26, 177, 231, 0.09);
  color: var(--bix-dark);
  border-radius: 2px;
  padding: 2px 7px;
  margin-right: 4px;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* ─── QUOTE ─── */
.quote-break {
  padding: 100px 48px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.quote-bg-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 100px solid rgba(3, 224, 175, 0.08);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.quote-text {
  font-family: var(--ff-head);
  font-size: clamp(22px, 3vw, 40px);
  color: var(--white);
  line-height: 1.35;
  max-width: 860px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.quote-text em {
  color: var(--teal);
  font-style: normal;
}

.quote-attr {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(238, 242, 246, 0.4);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ─── PILLARS ─── */
.pillars {
  padding: 100px 48px;
  background: var(--light);
  border-bottom: 1px solid var(--line);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 0;
  background: var(--line);
}

.pillar {
  background: var(--white);
  padding: 48px 36px;
  transition: all 0.25s;
  border-top: 4px solid transparent;
}

.pillar:nth-child(1) {
  border-top-color: var(--teal);
}

.pillar:nth-child(2) {
  border-top-color: var(--bix);
}

.pillar:nth-child(3) {
  border-top-color: var(--cert);
}

.pillar:hover {
  background: var(--navy);
}

.pillar:hover .pillar-title {
  color: var(--white);
}

.pillar:hover .pillar-body {
  color: rgba(238, 242, 246, 0.5);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
  transition: all 0.25s;
}

.pillar:nth-child(1) .pillar-icon {
  border-color: var(--teal);
  color: var(--teal-mid);
}

.pillar:nth-child(2) .pillar-icon {
  border-color: var(--bix);
  color: var(--bix-dark);
}

.pillar:nth-child(3) .pillar-icon {
  border-color: var(--cert);
  color: var(--cert);
}

.pillar-title {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  transition: color 0.25s;
}

.pillar-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  transition: color 0.25s;
}

.pillar-year {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 20px;
  display: block;
}

/* ─── PEOPLE ─── */
.people {
  padding: 100px 48px;
  background: var(--navy-dark);
}

.people .section-h2 {
  color: var(--white);
}

.people .section-rule {
  background: rgba(238, 242, 246, 0.1);
}

.people-intro {
  max-width: 600px;
  margin-bottom: 56px;
}

.people-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(238, 242, 246, 0.5);
}

.people-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
}

.person {
  background: var(--navy-dark);
  padding: 24px 20px;
  transition: background 0.2s;
  border-top: 2px solid transparent;
}

.person:hover {
  background: var(--navy);
}

.person-name {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.person-role {
  font-size: 11px;
  color: rgba(238, 242, 246, 0.45);
  margin-bottom: 6px;
  line-height: 1.5;
}

.person-era {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--teal);
}

.honorary-band-names {
  font-family: var(--ff-body);
  font-size: 14px;
  color: rgba(238, 242, 246, 0.75);
  line-height: 1.7;
}

.person--current {
  border-top-color: var(--teal);
}

/* ─── PRINCIPLES ─── */
.principles {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
  background: var(--white);
}

.principles-aside {
  position: sticky;
  top: 80px;
}

.principles-aside p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.principles-list {
  display: flex;
  flex-direction: column;
}

.principle {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.principle:first-child {
  border-top: 1px solid var(--line);
}

.principle-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--teal-mid);
  padding-top: 4px;
  letter-spacing: 0.1em;
}

.principle-title {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.principle-body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ─── SOURCES ─── */
.sources-note {
  padding: 48px 48px;
  background: var(--light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sources-note h3 {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 16px;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sources-list li {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--ff-mono);
  line-height: 1.6;
}

.sources-list li::before {
  content: '— ';
  color: var(--teal);
}

.sources-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sources-list a:hover {
  color: var(--navy);
}

.sources-warning {
  margin-top: 16px;
  font-size: 11px;
  color: var(--bix-dark);
  font-family: var(--ff-mono);
  border-left: 2px solid var(--bix);
  padding-left: 12px;
}

/* ─── FUTURE ─── */
.future {
  background: var(--navy);
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}

.future-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.future-wave-a {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  border: 120px solid rgba(3, 224, 175, 0.06);
  bottom: -300px;
  right: -200px;
}

.future-wave-b {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(26, 177, 231, 0.06);
  bottom: -100px;
  right: 200px;
}

.future-inner {
  position: relative;
  z-index: 1;
}

.future .section-h2 {
  color: var(--white);
}

.future .section-rule {
  background: rgba(238, 242, 246, 0.1);
}

.future-text {
  max-width: 680px;
  margin: 40px 0 56px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(238, 242, 246, 0.55);
}

.future-text strong {
  color: var(--white);
  font-weight: 600;
}

.future-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.future-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid rgba(238, 242, 246, 0.2);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--white);
  border-radius: 4px;
  transition: all 0.2s;
}

.future-link:hover {
  background: rgba(3, 224, 175, 0.1);
  border-color: var(--teal);
  color: var(--teal);
}

.future-link.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
  font-weight: 600;
}

.future-link.primary:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
}

.future-link.bix-link {
  border-color: rgba(26, 177, 231, 0.3);
}

.future-link.bix-link:hover {
  background: rgba(26, 177, 231, 0.1);
  border-color: var(--bix);
  color: var(--bix);
}

/* ─── FOOTER ─── */
footer {
  background: #0a0b1a;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid rgba(238, 242, 246, 0.06);
}

.footer-brand {
  font-family: var(--ff-mono);
  font-size: 16px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand .fb-teal {
  color: var(--teal);
}

.footer-brand .fb-bix {
  color: var(--bix);
}

.footer-brand .fb-green {
  color: var(--iszt-green);
}

.footer-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(238, 242, 246, 0.2);
  text-align: right;
  line-height: 1.9;
}

/* ─── GALÉRIA ─── */
.galeria {
  padding: 90px 48px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.galeria-intro {
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

a.galeria-item {
  display: block;
}

a.galeria-item--hidden {
  display: none;
}

a.galeria-item--hidden.galeria-visible {
  display: block;
}

.galeria-placeholder {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  transition: background 0.2s;
}

.galeria-placeholder:hover {
  background: #e4eaf0;
}

.galeria-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 180px;
}

.galeria-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-thumb img {
  transform: scale(1.04);
}

.galeria-thumb p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(17, 8, 39, 0.75));
  color: #fff;
  font-size: 12px;
  font-family: var(--ff-mono);
  letter-spacing: 0.03em;
}

.galeria-placeholder span {
  font-size: 36px;
  opacity: 0.5;
}

.galeria-placeholder p {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--ff-mono);
  text-align: center;
  letter-spacing: 0.03em;
}

.galeria-more-wrap {
  text-align: center;
}

.galeria-more-btn {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.galeria-more-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ─── ARCHÍVUM ─── */
.archivum {
  padding: 90px 48px;
  background: var(--light);
  border-top: 1px solid var(--line);
}

.archivum-intro {
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.archivum-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archivum-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 32px;
  background: var(--white);
  border-left: 3px solid var(--line);
  transition: all 0.2s;
  text-decoration: none;
}

.archivum-item:hover {
  border-left-color: var(--teal);
  background: var(--white);
  transform: translateX(4px);
}

.archivum-meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--teal-mid);
  font-weight: 600;
}

.archivum-title {
  font-family: var(--ff-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.archivum-source {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ─── IMPRESSZUM ─── */
.sources-note {
  padding: 48px 48px;
  background: var(--light);
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

/* ─── ANIMATIONS ─── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  /* Column headers aren't useful in the stacked layout */
  .parallel-track-labels {
    display: none;
  }

  /* Legend becomes sticky so users can reference colors while scrolling */
  .timeline-legend {
    position: sticky;
    top: 62px;
    z-index: 2;
    background: var(--light);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  /* 2-column grid: narrow era-label | stacked content cells */
  .era-block {
    grid-template-columns: 70px 1fr;
  }

  /* era-label spans all 3 content rows */
  .era-label {
    grid-row: 1 / span 3;
  }

  /* Stack all 3 content cells in column 2 */
  .era-block > .era-cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    border-right: none;
  }

  .era-block > .era-cell:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    border-right: none;
  }

  .era-block > .era-cell:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    border-right: none;
  }

  .era-cell.empty {
    display: none;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 14px 20px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(238, 242, 246, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--navy);
    padding: 8px 0 16px;
  }

  #main-nav.nav-open .nav-links {
    display: flex;
  }

  .nav-item {
    display: block;
    padding: 13px 24px;
    font-size: 16px;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-item:hover {
    background: rgba(45, 48, 100, 0.05);
    color: var(--navy);
  }

  .hero-inner {
    padding: 48px 20px 36px;
    justify-content: flex-start;
  }

  .hero-scroll {
    padding: 16px 20px;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 64px 20px;
    gap: 36px;
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-band {
    grid-template-columns: 1fr;
  }

  /* Narrower era-label column on small screens */
  .era-block {
    grid-template-columns: 56px 1fr;
  }

  .era-label {
    padding-right: 6px;
    padding-left: 12px;
  }

  .milestones,
  .pillars,
  .people,
  .principles,
  .future,
  .quote-break,
  .sources-note,
  .domain-growth,
  .galeria,
  .archivum {
    padding-left: 20px;
    padding-right: 20px;
  }

  .parallel-timeline-section > .section-header,
  .timeline-legend {
    padding-left: 20px;
    padding-right: 20px;
  }

  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archivum-item {
    grid-template-columns: 60px 1fr;
  }

  .archivum-source {
    display: none;
  }

  .dg-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles-aside {
    position: static;
  }

  footer {
    padding: 36px 20px;
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }
}
