/* ═══════════════════════════════════════════════════ */
/* PAGE-SPECIFIC STYLES                                */
/* ═══════════════════════════════════════════════════ */
    /* ── THEME TOGGLE ── */

    .theme-toggle:hover {
      border-color: var(--adjudicator);
      color: var(--text);
    }

    .theme-toggle .icon {
      font-size: 14px;
      line-height: 1;
    }

    /* ── SECTIONS ── */
    section {
      padding: var(--section-pad) 2rem;
      max-width: 1100px;
      margin: 0 auto;
    }

    .hero-section {
      padding-top: 160px;
      text-align: center;
      max-width: 800px;
    }

    h1 {
      font-family: var(--serif);
      font-size: clamp(2.4rem, 5vw, 3.6rem);
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin-bottom: 1.5rem;
    }

    h1 em {
      font-style: italic;
      color: var(--adjudicator);
    }

    h2 {
      font-family: var(--serif);
      font-size: clamp(1.8rem, 3vw, 2.4rem);
      line-height: 1.2;
      letter-spacing: -0.01em;
      margin-bottom: 1rem;
    }

    h3 {
      font-family: var(--sans);
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .subtitle {
      color: var(--text2);
      font-size: 1.15rem;
      line-height: 1.75;
      max-width: 640px;
      margin: 0 auto;
      font-weight: 400;
    }

    .section-label {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2.5px;
      color: var(--adjudicator);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .section-label::before {
      content: '';
      display: block;
      width: 24px;
      height: 1px;
      background: var(--adjudicator);
    }

    /* ── FLOW DIAGRAM ── */
    .flow-container {
      margin: 4rem 0;
      position: relative;
    }

    .flow-steps {
      display: flex;
      flex-direction: column;
      gap: 0;
      position: relative;
    }

    .flow-step {
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 0;
      position: relative;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.5s ease forwards;
    }

    .flow-step:nth-child(1) {
      animation-delay: 0.1s;
    }

    .flow-step:nth-child(2) {
      animation-delay: 0.25s;
    }

    .flow-step:nth-child(3) {
      animation-delay: 0.4s;
    }

    .flow-step:nth-child(4) {
      animation-delay: 0.55s;
    }

    .flow-step:nth-child(5) {
      animation-delay: 0.7s;
    }

    .flow-step:nth-child(6) {
      animation-delay: 0.85s;
    }

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

    .flow-line-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }

    .flow-dot {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 2px solid var(--adjudicator);
      background: var(--bg);
      position: relative;
      z-index: 2;
      flex-shrink: 0;
      margin-top: 1.8rem;
    }

    .flow-dot.active {
      background: var(--adjudicator);
      box-shadow: 0 0 12px rgba(139, 92, 246, .25);
    }

    .flow-connector {
      width: 1px;
      flex: 1;
      min-height: 20px;
      background: linear-gradient(to bottom, var(--adjudicator) 0%, var(--border) 100%);
    }

    .flow-step:last-child .flow-connector {
      display: none;
    }

    .flow-content {
      padding: 1.2rem 0 2.5rem 2rem;
    }

    .flow-content h3 {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.05rem;
      margin-bottom: 0.4rem;
    }

    .flow-num {
      font-family: var(--mono);
      font-size: 0.7rem;
      color: var(--adjudicator);
      background: rgba(139, 92, 246, .1);
      padding: 0.15rem 0.5rem;
      border-radius: 3px;
      letter-spacing: 0.05em;
    }

    .flow-content p {
      color: var(--text2);
      font-size: 0.92rem;
      max-width: 560px;
      font-weight: 400;
    }

    .flow-content .code-block {
      font-family: var(--mono);
      font-size: 0.78rem;
      line-height: 1.8;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1rem 1.2rem;
      margin-top: 0.8rem;
      max-width: 520px;
      color: var(--text2);
      overflow-x: auto;
    }

    .flow-content .code-block .key {
      color: var(--approved);
    }

    .flow-content .code-block .val {
      color: var(--gold);
    }

    .flow-content .code-block .comment {
      color: var(--text3);
    }

    /* ── TRIAGE VIZ ── */
    .triage-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border);
      border-radius: 12px;
      overflow: hidden;
      margin: 3rem 0;
    }

    .triage-cell {
      background: var(--card);
      padding: 2rem 1.5rem;
      text-align: center;
      position: relative;
      transition: background 0.3s;
    }

    .triage-cell:hover {
      background: var(--surface);
    }

    .triage-cell .pct {
      font-family: var(--serif);
      font-size: 2.4rem;
      font-weight: 400;
      margin-bottom: 0.3rem;
    }

    .triage-cell

    .triage-cell .desc {
      font-size: 0.78rem;
      color: var(--text2);
      font-weight: 400;
    }

    .triage-cell:nth-child(1) .pct {
      color: var(--approved);
    }

    .triage-cell:nth-child(2) .pct {
      color: var(--gold);
    }

    .triage-cell:nth-child(3) .pct {
      color: var(--adjudicator);
    }

    .triage-cell:nth-child(4) .pct {
      color: var(--critic);
    }

    .triage-bar {
      height: 3px;
      border-radius: 2px;
      margin-top: 1rem;
    }

    .triage-cell:nth-child(1) .triage-bar {
      background: var(--approved);
      width: 100%;
    }

    .triage-cell:nth-child(2) .triage-bar {
      background: var(--gold);
      width: 38%;
      margin: 1rem auto 0;
    }

    .triage-cell:nth-child(3) .triage-bar {
      background: var(--adjudicator);
      width: 14%;
      margin: 1rem auto 0;
    }

    .triage-cell:nth-child(4) .triage-bar {
      background: var(--critic);
      width: 5%;
      margin: 1rem auto 0;
    }

    /* ── SOVEREIGNTY REDESIGN ── */
    .sovereignty-section {
      max-width: 1100px;
    }

    .sov-grid {
      display: grid;
      grid-template-columns: 1fr 60px 1fr;
      gap: 0;
      align-items: stretch;
      margin: 3rem 0;
      min-height: 420px;
    }

    .sov-panel {
      border-radius: 16px;
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
    }

    .sov-yours {
      background: var(--card);
      border: 1px solid var(--border);
      border-right: none;
      border-radius: 16px 0 0 16px;
    }

    .sov-ours {
      background: var(--card);
      border: 1px solid var(--border);
      border-left: none;
      border-radius: 0 16px 16px 0;
    }

    .sov-membrane {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 2;
    }

    .membrane-line {
      width: 1px;
      flex: 1;
      background: repeating-linear-gradient(to bottom,
          var(--adjudicator) 0px, var(--adjudicator) 4px,
          transparent 4px, transparent 12px);
      opacity: 0.5;
    }

    .membrane-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 2px solid var(--adjudicator);
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      color: var(--adjudicator);
      flex-shrink: 0;
      box-shadow: 0 0 20px rgba(139, 92, 246, .15);
    }

    .sov-panel h3 {
      font-family: var(--serif);
      font-size: 1.4rem;
      margin-bottom: 0.4rem;
    }

    .sov-panel .sov-sub {
      font-family: var(--mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      margin-bottom: 1.5rem;
    }

    .sov-yours .sov-sub {
      color: var(--approved);
    }

    .sov-ours .sov-sub {
      color: var(--adjudicator);
    }

    .sov-item {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1.2rem;
    }

    .sov-item-icon {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 0.75rem;
      margin-top: 0.1rem;
    }

    .sov-yours .sov-item-icon {
      background: rgba(63, 185, 80, 0.1);
      color: var(--approved);
      border: 1px solid rgba(63, 185, 80, 0.2);
    }

    .sov-ours .sov-item-icon {
      background: rgba(139, 92, 246, .1);
      color: var(--adjudicator);
      border: 1px solid rgba(139, 92, 246, 0.2);
    }

    .sov-item-text h4 {
      font-size: 0.88rem;
      font-weight: 600;
      margin-bottom: 0.15rem;
    }

    .sov-item-text p {
      font-size: 0.8rem;
      color: var(--text2);
      font-weight: 400;
      line-height: 1.5;
    }

    .sov-bg-pattern {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      opacity: 0.03;
      pointer-events: none;
      background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
      background-size: 24px 24px;
    }

    .sov-yours .sov-bg-pattern {
      color: var(--approved);
    }

    .sov-ours .sov-bg-pattern {
      color: var(--adjudicator);
    }

    .sov-principle {
      margin-top: 2rem;
      padding: 1.5rem;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      text-align: center;
    }

    .sov-principle p {
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.05rem;
      color: var(--text2);
      line-height: 1.6;
    }

    .sov-principle p strong {
      color: var(--text);
      font-style: normal;
    }

    /* ── CASE STUDIES ── */
    .case-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin: 3rem 0;
    }

    .case-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 2rem;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s, transform 0.2s;
    }

    .case-card:hover {
      border-color: var(--border2);
      transform: translateY(-2px);
    }

    .case-tag {
      font-family: var(--mono);
      font-size: 0.65rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 0.25rem 0.6rem;
      border-radius: 4px;
      display: inline-block;
      margin-bottom: 1rem;
    }

    .case-card:nth-child(1) .case-tag {
      background: rgba(63, 185, 80, 0.1);
      color: var(--approved);
      border: 1px solid rgba(63, 185, 80, 0.15);
    }

    .case-card:nth-child(2) .case-tag {
      background: rgba(139, 92, 246, 0.1);
      color: var(--adjudicator);
      border: 1px solid rgba(139, 92, 246, 0.15);
    }

    .case-card:nth-child(3) .case-tag {
      background: rgba(232, 185, 49, 0.1);
      color: var(--gold);
      border: 1px solid rgba(232, 185, 49, 0.15);
    }

    .case-card:nth-child(4) .case-tag {
      background: rgba(248, 81, 73, 0.1);
      color: var(--critic);
      border: 1px solid rgba(248, 81, 73, 0.15);
    }

    .case-card h3 {
      font-family: var(--serif);
      font-size: 1.2rem;
      margin-bottom: 0.6rem;
    }

    .case-card p {
      color: var(--text2);
      font-size: 0.88rem;
      font-weight: 400;
      line-height: 1.6;
    }

    .case-flow {
      margin-top: 1.2rem;
      padding-top: 1.2rem;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .case-flow-step {
      font-family: var(--mono);
      font-size: 0.68rem;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text2);
    }

    .case-flow-arrow {
      color: var(--text3);
      font-size: 0.7rem;
    }

    .case-flow-step.highlight {
      border-color: var(--adjudicator);
      color: var(--adjudicator);
      background: rgba(139, 92, 246, .1);
    }

    /* ── DIALECTIC WALKTHROUGH ── */
    .dialectic-walkthrough {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.5rem;
      margin: 3rem 0;
      position: relative;
      overflow: hidden;
    }

    .dialectic-walkthrough::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--approved), var(--adjudicator), var(--critic));
    }

    .dw-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .dw-scenario {
      font-family: var(--mono);
      font-size: 0.72rem;
      padding: 0.3rem 0.75rem;
      background: rgba(139, 92, 246, .1);
      color: var(--adjudicator);
      border-radius: 4px;
      letter-spacing: 0.05em;
    }

    .dw-title {
      font-family: var(--serif);
      font-size: 1.2rem;
    }

    .dw-exchange {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .dw-msg {
      display: grid;
      grid-template-columns: 100px 1fr;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid var(--border);
    }

    .dw-msg:last-child {
      border-bottom: none;
    }

    .dw-role {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding-top: 0.2rem;
    }

    .dw-role.planner {
      color: var(--planner);
    }

    .dw-role.critic {
      color: var(--critic);
    }

    .dw-role.adjudicator {
      color: var(--adjudicator);
    }

    .dw-role.gateway {
      color: var(--gate);
    }

    .dw-text {
      font-size: 0.88rem;
      color: var(--text2);
      font-weight: 400;
      line-height: 1.65;
    }

    .dw-text strong {
      color: var(--text);
      font-weight: 500;
    }

    .dw-text code {
      font-family: var(--mono);
      font-size: 0.78rem;
      background: var(--bg);
      padding: 0.1rem 0.4rem;
      border-radius: 3px;
      border: 1px solid var(--border);
    }

    .dw-outcome {
      margin-top: 1.5rem;
      padding: 1rem 1.2rem;
      background: var(--bg);
      border-radius: 8px;
      border-left: 3px solid var(--approved);
    }

    .dw-outcome p {
      font-size: 0.85rem;
      color: var(--text2);
      font-weight: 400;
    }

    .dw-outcome strong {
      color: var(--approved);
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      section {
        padding: 80px 1.5rem;
      }

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

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

      .sov-membrane {
        flex-direction: row;
        height: 60px;
      }

      .membrane-line {
        width: auto;
        height: 1px;
        flex: 1;
        background: repeating-linear-gradient(to right, var(--adjudicator) 0px, var(--adjudicator) 4px, transparent 4px, transparent 12px);
      }

      .sov-yours {
        border-radius: 16px 16px 0 0;
        border-right: 1px solid var(--border);
        border-bottom: none;
      }

      .sov-ours {
        border-radius: 0 0 16px 16px;
        border-left: 1px solid var(--border);
        border-top: none;
      }

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

      .dw-msg {
        grid-template-columns: 1fr;
      }

      .dw-role {
        padding-bottom: 0;
      }
    }
