/* ── THESIS ── */
.thesis-line {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: relative; /* For ball positioning */
  padding-top: 24px; /* Space for the bounce */
}

.thesis-line span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  margin-right: 32px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

/* ── KARAOKE ANIMATION ── */
.karaoke-ball {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--gold-lt);
  border-radius: 50%;
  z-index: 10;
  filter: drop-shadow(0 0 8px var(--gold));
  pointer-events: none;
  opacity: 0;
  /* Driven by JS translate3d for GPU acceleration & Safari "streak" fix */
  will-change: transform;
  backface-visibility: hidden;
}

.k-word {
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.k-word.active {
  color: var(--white);
  transform: scale(1.08); /* Smaller scale for words */
  text-shadow: 0 0 15px var(--gold);
}

/* ── HERO ── */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 48px 72px;
  position: relative;
}



.kicker {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-deck {
  font-size: 19px;
  line-height: 1.65;
  color: var(--smoke);
  max-width: 680px;
  margin-bottom: 0;
}

.byline {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.byline-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  text-transform: uppercase;
  line-height: 1.8;
}

.byline-name {
  color: var(--white);
}

/* ── BODY ── */
.article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.prose p {
  margin-bottom: 24px;
  color: var(--mist);
}

.prose p strong {
  color: var(--white);
  font-weight: 500;
}

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin: 72px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

.sub-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold-lt);
  margin: 40px 0 16px;
}

/* ── PULL QUOTE ── */
.pull {
  border-left: 3px solid var(--gold);
  padding: 24px 32px;
  margin: 48px 0;
  background: rgba(184, 148, 63, 0.06);
}

.pull p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
  margin: 0;
}

.pull p + p {
  margin-top: 18px;
}

/* ── COMPARISON CARDS ── */
.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 48px 0;
  border: 1px solid var(--rule);
}

.comp-card {
  background: var(--navy-2);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.comp-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.comp-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 28px 32px 20px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.comp-card.open .comp-header {
  border-bottom-color: var(--rule);
}

.comp-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 6px;
}

.comp-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.comp-verdict {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.verdict-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
}

.verdict-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.verdict-badge.fail {
  background: rgba(192, 57, 43, 0.15);
  color: #E07060;
  border: 1px solid rgba(192, 57, 43, 0.3);
}

.verdict-badge.partial {
  background: rgba(184, 148, 63, 0.12);
  color: var(--gold-lt);
  border: 1px solid rgba(184, 148, 63, 0.3);
}

.verdict-badge.win {
  background: rgba(46, 204, 113, 0.15);
  color: #2ECC71;
  border: 1px solid rgba(46, 204, 113, 0.3);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

/* ── MITRE MOG CARD ── */
.comp-card.mitre-mog {
  border: 1px solid rgba(184, 148, 63, 0.3);
  background: linear-gradient(135deg, var(--navy-2) 0%, #151525 100%);
  position: relative;
}

.comp-card.mitre-mog::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(184, 148, 63, 0.08), transparent 40%);
}

.comp-card.mitre-mog .comp-header {
  background: rgba(184, 148, 63, 0.06);
}

.comp-card.mitre-mog .comp-title {
  color: var(--gold-lt);
  font-weight: 700;
}

.comp-card.mitre-mog .comp-toggle {
  color: var(--gold);
}

.comp-toggle {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--mist);
  align-self: center;
  transition: transform 0.3s, color 0.2s;
  margin-left: 16px;
}

.comp-card.open .comp-toggle {
  transform: rotate(45deg);
  color: var(--gold);
}

.comp-body {
  display: none;
  padding: 28px 32px 32px;
}

.comp-card.open .comp-body {
  display: block;
}

.comp-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 28px;
}

.comp-meta-cell {
  background: #0F0F1A;
  padding: 16px 20px;
}

.meta-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 6px;
}

.meta-value {
  font-size: 14px;
  color: var(--mist);
  line-height: 1.4;
}

.meta-value.neg { color: #E07060; }
.meta-value.pos { color: #6DBFA0; }
.meta-value.neu { color: var(--gold-lt); }

.comp-prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--smoke);
  margin-bottom: 16px;
}

.comp-prose p:last-child { margin-bottom: 0; }

.comp-prose strong {
  color: var(--white);
  font-weight: 500;
}

.comp-vs {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(184, 148, 63, 0.07);
  border-left: 2px solid var(--gold);
}

.comp-vs-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.comp-vs p {
  font-size: 14px;
  color: var(--mist);
  line-height: 1.6;
  margin: 0;
}

/* ── SUMMARY TABLE ── */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 48px 0;
  font-size: 14px;
}

.summary-table th {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.summary-table th:first-child { color: var(--gold); }

.summary-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(184, 150, 46, 0.1);
  vertical-align: top;
  line-height: 1.5;
  color: var(--smoke);
}

.summary-table tr:last-child td { border-bottom: none; }

.summary-table tr.mitre-row td {
  background: rgba(184, 148, 63, 0.06);
  color: var(--white);
  border-bottom: 1px solid rgba(184, 148, 63, 0.2);
}

.summary-table tr.mitre-row td:first-child {
  color: var(--gold-lt);
  font-weight: 500;
}

/* ── CLOSING ── */
.closing-block {
  margin-top: 72px;
  padding: 48px;
  background: var(--navy-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.closing-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.closing-block h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.closing-block p {
  color: var(--smoke);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── SCOREBOARD ── */
.scoreboard-wrap {
  margin: 40px 0 64px;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.scoreboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.scoreboard thead tr { background: #0A0A12; }

.scoreboard th {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.sb-instrument { text-align: left !important; }
.sb-axis { width: 18%; }

.sb-comp td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
  text-align: center;
  vertical-align: middle;
}

.sb-name {
  text-align: left !important;
  color: #7A7A8A;
  font-size: 14px;
  font-weight: 400;
}

.sb-fail { color: #4A3030; font-size: 20px; font-weight: 700; }
.sb-partial {
  color: #5A4A2A;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
}
.sb-pass-dim { color: #3A5A4A; font-size: 20px; font-weight: 700; }

/* ── MITRE ROW ── */
.sb-mitre {
  background: linear-gradient(90deg, rgba(184, 148, 63, 0.12) 0%, rgba(184, 148, 63, 0.06) 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.sb-mitre td {
  padding: 22px 20px;
  text-align: center;
  vertical-align: middle;
}

.sb-mitre-name {
  text-align: left !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mitre-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 148, 63, 0.15);
  border: 1px solid rgba(184, 148, 63, 0.4);
  padding: 3px 8px;
  width: fit-content;
}

.sb-mitre-name>*:last-child {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.sb-win {
  font-size: 32px;
  color: #4AE09A;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(74, 224, 154, 0.4);
}

/* ── EMBEDDED SCOREBOARD ── */
.emb-board {
  margin: 0 0 72px;
  border: 1px solid #1E1E2E;
  overflow: hidden;
}

.emb-headers {
  display: grid;
  grid-template-columns: 1fr repeat(4, 100px);
  background: #08080F;
  border-bottom: 1px solid #1E1E2E;
}

.emb-h-name,
.emb-h-axis {
  padding: 0 16px;
  min-height: 52px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184, 150, 46, .6);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.emb-h-name { justify-content: flex-start; color: rgba(138, 149, 168, .45); }

.emb-comp {
  display: grid;
  grid-template-columns: 1fr repeat(4, 100px);
  border-bottom: 1px solid #12121C;
}

.emb-comp>div {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0C0C16;
}

.emb-name {
  justify-content: flex-start !important;
  font-size: 14px;
  color: #8A8A9A;
  letter-spacing: 0.01em;
}

.emb-fail { font-size: 22px; color: rgba(220, 90, 80, .8); font-weight: 700; }
.emb-partial { font-size: 20px; color: rgba(214, 175, 106, .85); font-weight: 700; }
.emb-weak { font-size: 22px; color: rgba(120, 190, 150, .75); font-weight: 700; }

.emb-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #B8943F 40%, #D4AF6A 50%, #B8943F 60%, transparent 100%);
  opacity: 0.7;
}

.emb-mitre {
  display: grid;
  grid-template-columns: 1fr repeat(4, 100px);
  background: rgba(184, 148, 63, .05);
  border-top: 1px solid rgba(184, 148, 63, .4);
  border-bottom: 1px solid rgba(184, 148, 63, .4);
}

.emb-mitre>div {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emb-mitre-name {
  justify-content: flex-start !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 8px;
}

.emb-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(184, 148, 63, .7);
  border: 1px solid rgba(184, 148, 63, .25);
  padding: 3px 10px;
  background: transparent;
}

.emb-mitre-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.emb-win { font-size: 22px; color: rgba(255, 255, 255, .95); font-weight: 700; }



/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero-deck, .byline { animation: fadeUp 0.8s ease both; }
.hero-deck { animation-delay: 0.1s; }
.byline { animation-delay: 0.2s; }

/* ── MOBILE OPTIMIZATIONS ── */
@media (max-width: 900px) {
  .hero {
    padding: 100px 24px 48px;
  }



  .hero h1 {
    font-size: 32px;
  }

  .thesis-line span {
    font-size: 20px;
    margin-right: 16px;
  }

  .article-body {
    padding: 0 24px 80px;
  }

  .byline {
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Comparison Grid Mobile */
  .comp-header {
    padding: 20px 24px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .comp-verdict {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .comp-meta {
    grid-template-columns: 1fr 1fr;
  }

  .comp-body {
    padding: 20px 24px;
  }

  /* Embedded Board Mobile */
  .emb-board {
    margin: 0 0 48px;
  }

  .emb-headers, .emb-comp, .emb-mitre {
    grid-template-columns: 2.5fr repeat(4, 1fr);
  }

  .emb-comp>div, .emb-mitre>div, .emb-headers>div {
    padding: 12px 6px;
    font-size: 13px;
  }

  .emb-h-axis {
    font-size: 9px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.1;
  }

  .emb-name {
    font-size: 11px;
    padding-left: 12px !important;
    line-height: 1.2;
  }

  /* Tables Mobile */
  .summary-table, .scoreboard-wrap {
    margin-bottom: 40px;
    width: 100%;
  }

  .summary-table, .scoreboard {
    width: 100%;
    table-layout: auto;
  }

  .summary-table th, .scoreboard th {
    white-space: normal;
  }

  .summary-table td, .summary-table th, .scoreboard td, .scoreboard th {
    padding: 10px 4px !important;
    font-size: 11px;
    word-break: break-all;
  }

  .summary-table th:first-child, .scoreboard th:first-child,
  .summary-table td:first-child, .scoreboard td:first-child {
    width: 30%;
    word-break: normal;
    padding-left: 12px !important;
  }

  .closing-block {
    padding: 32px 24px;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 24px;
  }

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