:root {
  --bg-deep: #0a0a0a;
  --bg-surface: #111111;
  --bg-elevated: #171717;
  --bg-subtle: #1c1c1c;

  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-tertiary: #555555;
  --text-faint: #333333;

  --border: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --content-max: 1120px;
  --text-max: 620px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

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

img {
  display: block;
  max-width: 100%;
}

em {
  color: var(--text-primary);
  font-style: italic;
}


/* ======================================
   NAVIGATION
   ====================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}


/* ======================================
   HERO
   ====================================== */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2rem 4rem 2rem;
}

.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-position {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-dash {
  color: var(--text-tertiary);
}

.hero-lead {
  max-width: var(--text-max);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}


/* ======================================
   IMAGE BREAK (EDITORIAL & HERO)
   ====================================== */

.image-break {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Expansive, cinematic Hero Image with seamless gradient bleed */
.image-break-hero {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

/* Soft transition from hero into the image */
.image-break-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    rgba(10, 10, 10, 0.85) 35%,
    rgba(10, 10, 10, 0.35) 65%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Soft transition out of image into chapter 01 */
.image-break-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to top,
    var(--bg-deep) 0%,
    rgba(10, 10, 10, 0.9) 40%,
    rgba(10, 10, 10, 0.35) 70%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.image-break-hero img {
  display: block;
  width: 100%;
  height: clamp(560px, 80vh, 860px);
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.85) contrast(1.08) saturate(1.02);
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 8%,
    rgba(0, 0, 0, 1) 22%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 0.5) 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 8%,
    rgba(0, 0, 0, 1) 22%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 0.5) 88%,
    transparent 100%
  );
}

.image-break-mid {
  position: relative;
  max-width: var(--content-max);
  margin: 3rem auto 0;
  padding: 0 2rem;
  overflow: hidden;
}

.image-break-mid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, var(--bg-deep), transparent);
  z-index: 2;
  pointer-events: none;
}

.image-break-mid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to top, var(--bg-deep), transparent);
  z-index: 2;
  pointer-events: none;
}

.image-break-mid img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 50%;
  filter: brightness(0.75) contrast(1.05);
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

#profil.chapter {
  border-top: none;
  padding-top: 4rem;
}


/* ======================================
   CHAPTER SYSTEM
   ====================================== */

.chapter {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.chapter-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
}

.chapter-label {
  position: sticky;
  top: 80px;
  align-self: start;
  height: fit-content;
}

.chapter-num {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.chapter-name {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.chapter-body h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.chapter-body h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.chapter-body p {
  max-width: var(--text-max);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.chapter-intro {
  font-size: 1.0625rem;
  margin-bottom: 3rem !important;
}


/* ======================================
   DATA GRID (definition list)
   ====================================== */

.data-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
}

.data-grid dt {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.data-grid dd {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}


/* ======================================
   NUMBERED BLOCKS (Motivation)
   ====================================== */

.numbered-block {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.numbered-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.nb-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.nb-content h3 {
  margin-bottom: 0.5rem;
}

.nb-content p {
  margin-bottom: 0;
}

.sub-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.sub-section h3 {
  margin-bottom: 1.5rem;
}


/* ======================================
   DEPARTMENT CHAPTERS
   ====================================== */

.dept-chapter {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.dept-chapter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dept-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dept-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

.dept-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0;
}

.dept-body {
  padding-left: 3.75rem;
}

.dept-field {
  margin-bottom: 1.5rem;
}

.dept-field:last-child {
  margin-bottom: 0;
}

.dept-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.375rem;
}

.dept-field p {
  margin-bottom: 0;
}


/* ======================================
   COOPERATION GRID
   ====================================== */

.coop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.coop-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-medium);
}

.coop-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.coop-scope {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 1rem;
}

.coop-item p {
  font-size: 0.9375rem;
  max-width: none;
}


/* ======================================
   LEADERSHIP
   ====================================== */

.leader-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.leader-card {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-medium);
}

.leader-rank {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: 1rem;
}

.leader-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.375rem;
}

.leader-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}


/* ======================================
   RANKS
   ====================================== */

.rank-group {
  margin-bottom: 3rem;
}

.rank-group:last-child {
  margin-bottom: 0;
}

.rank-group-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-medium);
  margin-bottom: 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.rank-num {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--text-tertiary);
  text-align: right;
}

.rank-title {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.rank-holder {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.rank-row-executive {
  padding: 1.25rem 0;
}

.rank-row-executive .rank-num {
  font-size: 2rem;
  color: var(--text-faint);
}

.rank-row-executive .rank-title {
  font-size: 1.0625rem;
}


/* ======================================
   CLOSING BLOCKS
   ====================================== */

.closing-block {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.closing-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


/* ======================================
   FOOTER
   ====================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}


/* ======================================
   REVEAL ANIMATION
   ====================================== */

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

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


/* ======================================
   RESPONSIVE
   ====================================== */

@media (max-width: 900px) {
  .coop-grid {
    grid-template-columns: 1fr;
  }

  .leader-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 75vh;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-position {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }

  .hero-dash {
    display: none;
  }

  .chapter {
    padding: 4rem 1.25rem;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chapter-label {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
  }

  .chapter-num {
    font-size: 2.5rem;
    margin-bottom: 0;
  }

  .chapter-body h2 {
    font-size: 1.75rem;
  }

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

  .data-grid dt {
    border-bottom: none;
    padding-bottom: 0.125rem;
    padding-top: 1rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
  }

  .data-grid dd {
    padding-top: 0;
  }

  .numbered-block {
    grid-template-columns: 3rem 1fr;
  }

  .dept-body {
    padding-left: 0;
  }

  .rank-row {
    grid-template-columns: 3rem 1fr;
  }

  .rank-holder {
    display: none;
  }

  .rank-row-executive .rank-num {
    font-size: 1.5rem;
  }

  .image-break {
    padding: 0;
  }

  .image-break-hero img {
    height: clamp(420px, 60vh, 520px);
    object-position: center 25%;
  }

  .image-break-hero::before {
    height: 100px;
  }

  .image-break-hero::after {
    height: 140px;
  }

  .image-break-mid img {
    height: 260px;
  }

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

  .leader-pair {
    grid-template-columns: 1fr;
  }

  .leader-rank {
    font-size: 2rem;
  }

  .leader-name {
    font-size: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
}
