@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700&display=swap');

/* =========================================================
   0) RESET + GLOBAL BASE
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
}

a { color: inherit; }

[id] { scroll-margin-top: 120px; }

/* Core page width container */
.wrapper {
  width: 1028px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* foreground sits above fixed hero */
}

/* =========================================================
   1) GLOBAL HERO BACKDROP (SO + LFC index)
========================================================= */
.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  background: #333;
}

/* =========================================================
   2) GLOBAL LAYOUT BLOCKS
========================================================= */
.blue-block {
  padding: 60px 0 20px;
  position: relative;
  z-index: 5;
}

.red-block {
  padding: 120px 0 100px;
  position: relative;
  z-index: 5;
}

/* =========================================================
   3) GLOBAL TYPOGRAPHY + SMALL UI PRIMITIVES
========================================================= */
.small-so { font-size: 32px; font-weight: 400; }

.sub-label,
.operator-id,
.operator-name { font-size: 18px; }

.operator-name { font-weight: 700; }

.title {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.arrow-icon {
  width: 32px;
  filter: brightness(0) invert(1);
  margin: 10px 0 14px;
}

.hr-small {
  width: 30px;
  border: none;
  border-bottom: 1px solid #fff;
  margin: 10px 0 14px;
}

.hr-medium {
  border: none;
  border-bottom: 1px solid #fff;
  margin-bottom: 24px;
}

/* Spotify CTA */
.spotify-cta { margin-top: 24px; }

.spotify-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.spotify-link:hover { opacity: 0.8; }

.spotify-logo {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* =========================================================
   4) TABLE OF CONTENTS (SO)
========================================================= */
.toc h2 {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.35;
  padding: 6px 0 12px;
  margin: 12px 0;
  border-bottom: 1px solid #fff;
  transition: padding-left 0.25s ease;
}

.toc h2:hover { padding-left: 20px; }

.toc-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* =========================================================
   5) LFC — INDEX (HOLDING PAGE)
   scoped under .lfc so it never leaks into other pages
========================================================= */
.lfc .lfc-header { margin-top: 120px; }

.lfc .lfc-title {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.lfc .lfc-intro {
  font-size: 18px;
  line-height: 1.6;
  max-width: 1000px;
}

.lfc .lfc-list { margin-top: 80px; }
.lfc .volume { margin-top: 48px; }

.lfc .volume-top { display: block; }

.lfc .volume-meta {
  font-size: 16px;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lfc .volume-pill {
  font-size: 12px;
  padding: 4px 8px;
  background: #2609FA;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.95;
}

.lfc .volume-rule {
  width: 100%;
  height: 1px;
  background: #fff;
  opacity: 0.25;
  margin: 16px 0;
}

.lfc .volume-line {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 10px 0 20px;
}

/* Index-only: larger logos row */
.lfc .volume-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 16px 0 6px;
}

.lfc .volume-logos img {
  height: 45px;
  opacity: 0.85;
}

/* =========================================================
   6) LFC — COMPANY HERO (per-company pages)
========================================================= */
.company-hero {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.company-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.company-hero-dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--hero-dim, 0.25);
  transition: opacity 0.08s linear;
  z-index: 1;
}

.company-hero-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;

  width: 1028px;
  margin: 0 auto;
  padding: 0 0 60px;

  z-index: 2;
}

.company-index {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 14px;
  opacity: 0.95;
}

.company-index hr {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.85);
  opacity: 1;
}

.company-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 18px 0;
  opacity: 0.95;
}

.company-thesis {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 760px;
  margin-bottom: 18px;
}

.hero-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-decoration: none;
  opacity: 0.95;
}

.hero-down img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.hero-down:hover { opacity: 0.75; }

/* =========================================================
   7) LFC — VOLUME HUB (Military Industrial Complex)
========================================================= */
.pillar-hero {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.pillar-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
}

.pillar-hero-dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.35;
  z-index: 1;
}

.pillar-hero-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;

  width: 1028px;
  margin: 0 auto;
  padding: 0 0 60px;

  z-index: 2;
}

.pillar-masthead { padding-top: 60px; }
.pillar-head { margin-top: 70px; }

.pillar-kicker {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
}

.pillar-rule {
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.85);
  margin: 18px 0 22px;
}

.pillar-rule--thin {
  border-bottom-width: 1px;
  opacity: 0.55;
}

/* Pillar thesis H1 (loud opening claim) */
.pillar-thesis-h1 {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 1100px;
  margin: 0;
  padding: 0;
  color: #fff;
}

/* Supporting thesis line (if used elsewhere) */
.pillar-thesis {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 0 22px;
}

.pillar-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 14px 0 12px;
}

.pillar-logos img {
  height: 22px;
  opacity: 0.9;
}

/* TOC below hub hero */
.pillar-toc-wrap { padding-top: 40px; }

.pillar-toc-label {
  font-size: 14px;
  opacity: 0.6;
  margin: 18px 0 8px;
}

.pillar-toc a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;

  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;

  transition: opacity 0.2s ease, padding-left 0.25s ease;
}

.pillar-toc a:hover {
  opacity: 0.9;
  padding-left: 14px;
}

.pillar-toc-num {
  width: 44px;
  opacity: 0.9;
  flex: 0 0 auto;
}

.pillar-toc hr {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

/* =========================================================
   8) LFC — COMPANY TOC (inside company pages)
========================================================= */
.company-toc { padding: 50px 0 70px; }

.company-toc a {
  display: block;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 18px 0;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s ease, padding-left 0.25s ease;
}

.company-toc a:hover {
  opacity: 0.9;
  padding-left: 14px;
}

.company-toc hr {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.85);
  opacity: 1;
}

/* =========================================================
   9) MODAL PAGES (chapter content)
========================================================= */
.modal-body { background: #000; color: #fff; }

.modal-wrapper {
  width: 1028px;
  margin: 0 auto;
  padding: 60px 0 120px;
  position: relative;
}

/* Sticky top header */
.modal-header-bar {
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  padding: 18px 0;

  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}

.modal-header-bar.scrolled { border-bottom-color: #222; }

/* Inner constraint — REQUIRED on all pages that use the sticky header */
.modal-header-inner {
  width: 1028px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close img { width: 24px; }

.modal-breadcrumb {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.3px;
}

/* Modal content typography */
.modal-section-title {
  font-size: 46px;
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-hr-small {
  width: 40px;
  border: none;
  border-bottom: 10px solid #fff;
  margin-bottom: 30px;
}

.modal-hr-big {
  width: 100%;
  border: none;
  border-bottom: 1px solid #fff;
  margin: 50px 0;
}

.modal-content p {
  margin: 0;
  padding: 0.6rem 0;
  line-height: 1.6;
}

.modal-content p strong {
  display: block;
  margin-bottom: 0.3rem;
}

.modal-content ul,
.modal-bullets,
.modal-list {
  list-style: disc;
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

.modal-content a {
  color: #fff;
  text-decoration: underline;
}

/* Quotes */
.modal-quote {
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  max-width: 820px;
  margin-top: 60px;
  padding: 20px 0;
}

.modal-content p.modal-quote {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
  margin-top: 60px;
  max-width: 820px;
  padding: 20px 0;
}

/* Divider */
.modal-divider {
  border: none;
  border-bottom: 1px dotted #777;
  opacity: 0.5;
  width: 100%;
}

/* Key highlights */
.key-highlights { padding-top: 10px; }
.kh-item { padding: 18px 0; }

.kh-label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
  margin-bottom: 10px;
}

.kh-value {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.kh-note {
  margin-top: 12px;
  font-size: 16px;
  opacity: 0.85;
}

.kh-divider {
  border: none;
  border-bottom: 1px dotted rgba(255,255,255,0.35);
  margin: 18px 0;
}

/* Inline image blocks (TC scenes etc.) */
.so-image-block {
  width: 100%;
  margin: 80px 0;
  text-align: center;
}

.so-inline-image {
  width: 100%;
  max-width: 1028px;
  display: block;
  margin: 0 auto 18px;
  border-radius: 4px;
}

.so-image-caption {
  font-size: 14px;
  opacity: 0.55;
  line-height: 1.4;
  text-align: center;
  font-style: italic;
}

/* =========================================================
   10) FOOTER
========================================================= */
.so-footer {
  margin-top: 80px;
  padding: 40px 0 60px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.7;
}

.lfc .so-footer { margin-top: 120px; } /* index needs extra breathing room */

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover .footer-logo { opacity: 1; }

/* =========================================================
   11) BUTTONS (GLOBAL COMPONENT)
========================================================= */
.sd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  padding: 22px 32px;

  border: 1px solid #fff;
  background: transparent;
  color: #fff;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 18px;
  font-weight: 600;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sd-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sd-button--ghost {
  background: transparent;
  opacity: 0.85;
}

/* Chapter nav layout */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Chapter nav hover: invert */
.chapter-nav a.sd-button:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}

/* =========================================================
   12) MOBILE (<= 768px)
   Keep all mobile rules in ONE place
========================================================= */
@media (max-width: 768px) {

  /* global width containers */
  .wrapper,
  .blue-block,
  .red-block,
  .modal-wrapper {
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* SO title scale */
  .title { font-size: 32px; line-height: 1.15; }
  .small-so { font-size: 22px; }

  /* SO toc */
  .toc { width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }

  .toc h2 {
    font-size: 22px;
    line-height: 1.25;
    padding: 4px 0 8px;
    margin: 8px 0;
  }

  /* LFC index */
  .lfc .lfc-header { margin-top: 60px; }
  .lfc .lfc-title { font-size: 32px; line-height: 1.15; }
  .lfc .lfc-intro { font-size: 16px; }
  .lfc .volume-line { font-size: 22px; line-height: 1.25; }

  .lfc .volume-logos {
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
  }

  .lfc .volume-logos img {
    height: 36px;
    max-width: 100%;
    opacity: 0.95;
  }

  /* blocks */
  .blue-block { padding-top: 40px; padding-bottom: 10px; }
  .red-block { padding-top: 60px; padding-bottom: 80px; margin-top: 40px; }

  /* modal header width */
  .modal-header-inner {
    width: 100%;
    padding: 0 20px;
  }

  /* modal typography */
  .modal-section-title { font-size: 26px; font-weight: 600; }

  .modal-hr-small {
    border-bottom-width: 4px;
  }

  .modal-quote {
    font-size: 26px;
    margin-top: 40px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .modal-content p { font-size: 16px; line-height: 1.55; }

  /* key highlights */
  .kh-value { font-size: 34px; line-height: 1.12; }
  .kh-label { font-size: 16px; }
  .kh-note  { font-size: 14px; }

  /* images */
  .so-image-block { margin: 50px 0 60px; }
  .so-image-caption { font-size: 12px; line-height: 1.35; }

  /* company hero */
  .company-hero-content {
    width: 100%;
    left: 0;
    transform: none;
    padding: 0 20px 50px;
    bottom: 28px;
  }

  .company-thesis {
    font-size: 26px;
    line-height: 1.25;
    max-width: 100%;
  }

  .company-logo { height: 60px; }

  .company-toc { padding: 40px 0 55px; }
  .company-toc a { font-size: 26px; padding: 16px 0; }

  /* pillar hub */
  .pillar-hero-content {
    width: 100%;
    left: 0;
    transform: none;
    padding: 0 20px 50px;
  }

  .pillar-head { margin-top: 40px; }
  .pillar-title { font-size: 34px; }

  .pillar-thesis { font-size: 30px; line-height: 1.15; }

  .pillar-logos {
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
  }

  .pillar-logos img { height: 20px; opacity: 0.95; }

  .pillar-toc a { font-size: 20px; padding: 16px 0; }
  .pillar-toc-num { width: 34px; }

  /* nav buttons */
  .chapter-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .sd-button {
    width: 100%;
    min-width: 0;
  }
}