:root {
    --bg: #080a0e;
    --bg2: #0d1117;
    --surface: #111820;
    --surface2: #161e28;
    --border: #1e2d3d;
    --accent: #c8a96e;
    --accent2: #e8c87e;
    --red: #c0392b;
    --text: #d4cfc5;
    --text-dim: #7a8694;
    --text-bright: #f0ece4;
    --font-display: 'Bebas Neue', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
    padding-bottom: 96px;
  }

  /* ── MOSAIC BACKGROUND ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(200,169,110,0.04) 40px),
      repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(200,169,110,0.04) 40px);
    pointer-events: none;
    z-index: 0;
  }

  /* ── SCANLINES ── */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0,0,0,0.08) 2px,
      rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  .site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(8,10,14,0.9);
    border-bottom: 1px solid rgba(200,169,110,0.14);
    backdrop-filter: blur(18px);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 24px);
    margin-right: auto;
    font-size: 1rem;
    font-weight: 700;
  }

  .site-nav a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--accent2);
  }

  .header-actions {
    display: inline-flex;
    border: 1px solid rgba(18,199,255,0.28);
    background: rgba(18,199,255,0.08);
  }

  .lang-btn {
    width: 46px;
    height: 38px;
    border: 0;
    color: rgba(255,255,255,0.72);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
  }

  .lang-btn.is-active {
    color: #071018;
    background: #a8ff3e;
  }

  .site-footer {
    position: fixed;
    z-index: 29;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
    padding: 14px clamp(18px, 4vw, 56px);
    color: var(--text-dim);
    font-size: 0.86rem;
    border-top: 1px solid rgba(200,169,110,0.16);
    background: rgba(7,11,18,0.92);
    backdrop-filter: blur(18px);
  }

  .site-footer span:first-child {
    color: var(--text-bright);
    font-weight: 900;
  }

  .footer-links {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: #a8ff3e;
    font-weight: 900;
    text-decoration: none;
  }

  .footer-links a + a::before {
    content: "-";
    margin-right: 14px;
    color: var(--text-dim);
  }

  .mbx-article {
    position: relative;
    z-index: 2;
    width: min(1480px, calc(100% - 36px));
    margin: 0 auto;
    padding: 104px 0 96px;
  }

  /* ── HERO ── */
  .mbx-hero {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
    padding: clamp(24px, 4vw, 52px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200,169,110,0.25);
    background:
      radial-gradient(ellipse at 12% 8%, rgba(192,57,43,0.18), transparent 40%),
      linear-gradient(135deg, rgba(200,169,110,0.12), transparent 38%),
      rgba(8,10,14,0.96);
    box-shadow: 0 0 70px rgba(200,169,110,0.1);
  }

  .mbx-hero::before {
    content: "SPQR  DATA  TEMPUS  ROMA  AETERNA";
    position: absolute;
    z-index: 1;
    left: -8%;
    right: -8%;
    bottom: 22px;
    color: rgba(232,200,126,0.06);
    font-family: var(--font-mono);
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 700;
    letter-spacing: 0.14em;
    white-space: nowrap;
    transform: rotate(-3deg);
    animation: romanDataDrift 9s linear infinite alternate;
    pointer-events: none;
  }

  .mbx-hero::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    background:
      linear-gradient(110deg, transparent 0%, rgba(232,200,126,0.12) 46%, transparent 58%),
      repeating-linear-gradient(90deg, transparent 0 92px, rgba(200,169,110,0.035) 93px 94px);
    mix-blend-mode: screen;
    opacity: 0.48;
    transform: translateX(-115%);
    animation: romanSweep 5.8s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes romanDataDrift {
    from { transform: translateX(-2%) rotate(-3deg); }
    to { transform: translateX(4%) rotate(-3deg); }
  }

  @keyframes romanSweep {
    0%, 48% { transform: translateX(-115%); }
    100% { transform: translateX(115%); }
  }

  .mbx-hero-bg {
    position: relative;
    min-height: 420px;
    z-index: 2;
    order: 2;
  }

  /* Roman column decorative elements */
  .mbx-columns-deco {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    opacity: 0.06;
    pointer-events: none;
  }

  .mbx-col {
    width: 18px;
    background: linear-gradient(to top, var(--accent), transparent);
    border-radius: 2px 2px 0 0;
  }

  .mbx-topbar { display: none; }

  .mbx-brand {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .mbx-series-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(192,57,43,0.4);
    padding: 4px 10px;
    border-radius: 2px;
  }

  .mbx-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 0;
    gap: 28px;
  }

  .mbx-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.25em;
    text-transform: uppercase;
  }

  .mbx-hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 6.4vw, 112px);
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: var(--text-bright);
    text-shadow: 0 0 80px rgba(200,169,110,0.2);
    max-width: 760px;
  }

  .mbx-hero-title span {
    color: var(--accent);
    display: block;
  }

  /* Glitch effect on hover */
  .mbx-hero-title:hover {
    animation: mbx-glitch 0.3s steps(2) forwards;
  }

  @keyframes mbx-glitch {
    0% { text-shadow: 2px 0 var(--red), -2px 0 var(--accent); }
    25% { text-shadow: -3px 0 var(--red), 3px 0 var(--accent); clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); }
    50% { text-shadow: 3px 0 var(--red), -1px 0 var(--accent); }
    75% { text-shadow: -1px 0 var(--red), 2px 0 var(--accent); }
    100% { text-shadow: 0 0 80px rgba(200,169,110,0.2); }
  }

  .mbx-hero-sub {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 680px;
    line-height: 1.6;
  }

  .mbx-hero-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
  }

  .mbx-hero-meta span {
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
  }

  .mbx-hero-meta strong {
    color: var(--accent);
    font-weight: 700;
  }

  .article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 2px;
  }

  .article-tags a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(200,169,110,0.34);
    background: rgba(200,169,110,0.08);
    color: var(--accent2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .article-tags a:hover {
    border-color: var(--accent);
    background: rgba(200,169,110,0.18);
  }

  .mbx-scroll-hint {
    position: absolute;
    z-index: 10;
    right: 24px;
    bottom: 18px;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    animation: mbx-pulse 2s ease-in-out infinite;
  }

  @keyframes mbx-pulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
  }

  /* ── MAIN CONTENT ── */
  .mbx-main {
    max-width: none;
    margin: 0;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 760px);
    gap: 48px;
    justify-content: center;
    align-items: start;
  }

  .mbx-toc {
    position: sticky;
    top: 82px;
    border: 1px solid rgba(200,169,110,0.18);
    background: rgba(10,14,20,0.9);
    padding: 18px;
    font-family: var(--font-mono);
  }

  .mbx-toc p {
    color: var(--accent2);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .mbx-toc a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(200,169,110,0.12);
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-decoration: none;
  }

  .mbx-toc a:hover { color: var(--accent2); }

  .mbx-content {
    min-width: 0;
  }

  /* ── SECTION HEADS ── */
  .mbx-section {
    margin-bottom: 72px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .mbx-section.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .mbx-section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mbx-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(192,57,43,0.4), transparent);
  }

  .mbx-h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
    color: var(--text-bright);
    letter-spacing: 0.03em;
    margin-bottom: 24px;
  }

  .mbx-h2 em {
    font-style: normal;
    color: var(--accent);
  }

  .mbx-p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
  }

  .mbx-p strong {
    color: var(--text-bright);
    font-weight: 500;
  }

  /* ── PULLQUOTE ── */
  .mbx-pullquote {
    border-left: 3px solid var(--accent);
    padding: 20px 28px;
    margin: 36px 0;
    background: rgba(200,169,110,0.04);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    color: var(--accent2);
    font-style: italic;
  }

  /* ── ADVANTAGES GRID ── */
  .mbx-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 36px 0;
  }

  .mbx-adv-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
  }

  .mbx-adv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,169,110,0.05) 0%, transparent 100%);
  }

  .mbx-adv-card:hover {
    border-color: rgba(200,169,110,0.4);
    transform: translateY(-3px);
  }

  .mbx-adv-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
  }

  .mbx-adv-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .mbx-adv-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
  }

  /* ── TIMELINE ── */
  .mbx-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 28px;
  }

  .mbx-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
  }

  .mbx-tl-item {
    position: relative;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .mbx-tl-item.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .mbx-tl-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
  }

  .mbx-tl-year {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
  }

  .mbx-tl-tech {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-bright);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
  }

  .mbx-tl-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
  }

  .mbx-tl-real {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(192,57,43,0.8);
    margin-top: 6px;
  }

  /* ── PARADOX BOX ── */
  .mbx-paradox {
    background: var(--surface2);
    border: 1px solid rgba(192,57,43,0.3);
    padding: 36px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
  }

  .mbx-paradox::before {
    content: '?';
    position: absolute;
    right: -20px;
    top: -30px;
    font-family: var(--font-display);
    font-size: 200px;
    color: rgba(192,57,43,0.05);
    line-height: 1;
    pointer-events: none;
  }

  .mbx-paradox-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--red);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
  }

  /* ── FINAL VISION CARDS ── */
  .mbx-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 36px 0;
  }

  .mbx-vision-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
  }

  .mbx-vision-card:hover { border-color: rgba(200,169,110,0.3); }

  .mbx-vision-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
  }

  .mbx-vision-emoji {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
  }

  .mbx-vision-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-bright);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
  }

  .mbx-vision-text {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
  }

  /* ── AI FINALE ── */
  .mbx-ai-block {
    background: linear-gradient(135deg, rgba(200,169,110,0.08) 0%, rgba(192,57,43,0.05) 100%);
    border: 1px solid rgba(200,169,110,0.2);
    padding: 48px 40px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .mbx-ai-block::before {
    content: 'SPQR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-family: var(--font-display);
    font-size: 180px;
    color: rgba(200,169,110,0.04);
    letter-spacing: 0.1em;
    pointer-events: none;
    white-space: nowrap;
  }

  .mbx-terminal {
    background: #050709;
    border: 1px solid rgba(200,169,110,0.2);
    border-radius: 4px;
    padding: 24px 28px;
    margin: 28px auto;
    max-width: 500px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
  }

  .mbx-terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200,169,110,0.1);
  }

  .mbx-dot { width: 10px; height: 10px; border-radius: 50%; }
  .mbx-dot-r { background: #ff5f56; }
  .mbx-dot-y { background: #ffbd2e; }
  .mbx-dot-g { background: #27c93f; }

  .mbx-terminal-label {
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-left: auto;
  }

  .mbx-prompt { color: var(--text-dim); }
  .mbx-cmd { color: var(--accent2); }
  .mbx-response { color: var(--text); margin-top: 8px; }
  .mbx-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: mbx-blink 1s step-end infinite;
  }

  @keyframes mbx-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  /* ── METHODOLOGY ── */
  .mbx-method-box {
    background: var(--surface);
    border: 1px solid rgba(200,169,110,0.25);
    padding: 36px;
    margin: 36px 0;
    position: relative;
    overflow: hidden;
  }

  .mbx-method-box::before {
    content: 'Σ';
    position: absolute;
    right: -10px;
    top: -20px;
    font-family: var(--font-display);
    font-size: 160px;
    color: rgba(200,169,110,0.04);
    pointer-events: none;
    line-height: 1;
  }

  .mbx-method-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
  }

  .mbx-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
  }

  .mbx-method-item {
    background: rgba(200,169,110,0.04);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 14px 16px;
  }

  .mbx-method-item-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .mbx-method-item-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
  }

  .mbx-formula {
    background: #050709;
    border: 1px solid rgba(200,169,110,0.15);
    padding: 18px 22px;
    margin: 20px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent2);
    line-height: 1.9;
  }

  .mbx-formula .mbx-comment {
    color: var(--text-dim);
    font-size: 11px;
  }

  /* ── INFRA SECTION ── */
  .mbx-infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
  }

  .mbx-infra-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
  }

  .mbx-infra-card:hover {
    border-color: rgba(200,169,110,0.3);
    transform: translateY(-2px);
  }

  .mbx-infra-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
  }

  .mbx-infra-icon {
    font-size: 36px;
    margin-bottom: 14px;
    display: block;
  }

  .mbx-infra-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-bright);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    line-height: 1.1;
  }

  .mbx-infra-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .mbx-infra-evolution {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 10px;
  }

@media (max-width: 640px) {
    .mbx-method-grid { grid-template-columns: 1fr; }
    .mbx-infra-grid { grid-template-columns: 1fr; }
  }

/* Amiga episode theme */
body.what-if-amiga {
  --bg: #050609;
  --bg2: #090b10;
  --surface: #0d1118;
  --surface2: #121720;
  --border: #332029;
  --accent: #ef233c;
  --accent2: #ff6678;
  --red: #ff1738;
  --text: #d8dce4;
  --text-dim: #8f98a8;
  --text-bright: #ffffff;
}

body.what-if-amiga::before {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(239,35,60,0.045) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(239,35,60,0.045) 40px);
}

.what-if-amiga .site-header,
.what-if-amiga .site-footer {
  border-color: rgba(239,35,60,0.22);
  background: rgba(5,6,9,0.93);
}

.what-if-amiga .mbx-hero {
  border-color: rgba(239,35,60,0.34);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(239,35,60,0.22), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 40%),
    rgba(5,6,9,0.97);
  box-shadow: 0 0 72px rgba(239,35,60,0.14);
}

.what-if-amiga .mbx-hero::before {
  content: "AMIGA  WORKBENCH  68K  POWERPC  AMIGAOS";
  color: rgba(239,35,60,0.075);
}

.what-if-amiga .mbx-hero::after {
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.12) 46%, transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(239,35,60,0.04) 93px 94px);
}

.what-if-amiga .mbx-img-hero {
  object-fit: contain;
  background: #030407;
  border-color: rgba(239,35,60,0.28);
  filter: brightness(0.9) contrast(1.06);
}

.what-if-amiga .mbx-hero-caption,
.what-if-amiga .mbx-toc,
.what-if-amiga .mbx-method-box,
.what-if-amiga .mbx-next,
.what-if-amiga .share-section,
.what-if-amiga .comments-section {
  border-color: rgba(239,35,60,0.26);
}

.what-if-amiga .article-tags a,
.what-if-amiga .share-network {
  border-color: rgba(239,35,60,0.42);
  background: rgba(239,35,60,0.1);
}

.what-if-amiga .mbx-method-item,
.what-if-amiga .mbx-infra-card,
.what-if-amiga .mbx-adv-card,
.what-if-amiga .mbx-vision-card,
.what-if-amiga .mbx-tl-item {
  background: linear-gradient(135deg, rgba(239,35,60,0.055), transparent 56%), var(--surface);
}

.what-if-amiga .mbx-formula,
.what-if-amiga .mbx-terminal {
  border-color: rgba(239,35,60,0.22);
  background: #030407;
}

.what-if-amiga .mbx-paradox::before { content: "?"; color: rgba(239,35,60,0.06); }
.what-if-amiga .mbx-method-box::before { content: "A"; color: rgba(239,35,60,0.05); }
.what-if-amiga .mbx-ai-block::before { content: "AMIGA"; color: rgba(239,35,60,0.045); }

.what-if-amiga .affiliate-disclosure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid rgba(239,35,60,0.24);
  background: rgba(239,35,60,0.07);
  font-family: var(--font-mono);
  font-size: 11px;
}

.what-if-amiga .affiliate-disclosure a { color: var(--accent2); font-weight: 700; text-decoration: none; }

.what-if-amiga .mbx-related-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(239,35,60,0.25);
}

@media (max-width: 640px) {
  .what-if-amiga .mbx-img-hero { object-fit: contain; }
}

  /* ── BOTTOM LINE ── */
  .mbx-bottomline {
    border-top: 1px solid var(--border);
    padding-top: 36px;
    margin-top: 48px;
  }

  .mbx-bottomline-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .mbx-bottomline p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .mbx-sign {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 20px;
  }

  /* ── IMAGES ── */
  .mbx-img-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: 0;
    border: 1px solid rgba(200,169,110,0.24);
    filter: brightness(0.82) contrast(1.08);
  }

  .mbx-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 12px 14px;
    border: 1px solid rgba(200,169,110,0.24);
    border-top: none;
    background: rgba(8,10,14,0.78);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .mbx-img-full {
    width: 100%;
    display: block;
    border: 1px solid var(--border);
    margin: 32px 0;
    filter: brightness(0.9) contrast(1.05);
  }

  .mbx-img-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(240,236,228,0.7);
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 32px;
    padding: 10px 16px;
    background: rgba(17,24,32,0.95);
    border: 1px solid var(--border);
    border-top: 0;
  }

  .mbx-img-section {
    width: 100%;
    display: block;
    border: 1px solid var(--border);
    margin: 28px 0 8px;
    filter: brightness(0.88) contrast(1.05);
  }

  /* ── FOOTER ── */
  .mbx-footer {
    border-top: 1px solid var(--border);
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
  }

  .mbx-footer a { color: var(--accent); text-decoration: none; }

  .mbx-next,
  .share-section,
  .comments-section {
    max-width: 980px;
    margin: 56px auto 0;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(200,169,110,0.25);
    background:
      radial-gradient(ellipse at 18% 0%, rgba(192,57,43,0.12), transparent 56%),
      linear-gradient(135deg, rgba(200,169,110,0.09), rgba(8,10,14,0.94));
    position: relative;
    overflow: hidden;
  }

  .mbx-next::before,
  .share-section::before,
  .comments-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(232,200,126,0.1), transparent);
    transform: translateX(-120%);
    animation: mbxSweep 5s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes mbxSweep {
    0%, 55% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
  }

  .mbx-next-inner,
  .share-copy,
  .share-actions,
  .comments-inner {
    position: relative;
    z-index: 1;
  }

  .mbx-next-inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  .mbx-next img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(200,169,110,0.22);
    filter: brightness(0.9) contrast(1.06);
  }

  .mbx-next h2,
  .share-copy h2,
  .comments-inner h2 {
    font-family: var(--font-display);
    color: var(--text-bright);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.96;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
  }

  .mbx-next p,
  .share-copy p,
  .comments-inner p {
    color: var(--text-dim);
    margin: 0 0 16px;
  }

  .mbx-next a,
  .share-primary,
  .share-network {
    display: inline-grid;
    place-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(200,169,110,0.42);
    background: rgba(200,169,110,0.12);
    color: var(--accent2);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
  }

  .mbx-next a:hover,
  .share-primary:hover,
  .share-network:hover {
    background: var(--accent);
    color: #080a0e;
  }

  .share-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: center;
  }

  .share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .comments-section {
    min-height: 260px;
  }

  #cusdis_thread {
    margin-top: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #dce3ea;
    color-scheme: light;
  }

  #cusdis_thread iframe {
    display: block;
    width: 100% !important;
    min-height: 520px;
    background: #dce3ea;
    filter: brightness(0.9) saturate(0.9);
  }

  .comments-prompt {
    border-left: 4px solid var(--accent);
    padding: 12px 14px;
    background: rgba(200,169,110,0.08);
    color: var(--text-bright) !important;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 640px) {
    body { padding-bottom: 132px; }
    .site-header { gap: 10px; flex-wrap: wrap; }
    .site-nav { order: 3; width: 100%; gap: 12px; font-size: 0.86rem; }
    .site-footer { align-items: flex-start; flex-direction: column; min-height: 112px; }
    .mbx-article {
      width: min(100% - 24px, 1480px);
      padding-top: 86px;
    }
    .mbx-hero {
      grid-template-columns: 1fr;
      padding: 24px 20px 54px;
    }
    .mbx-hero-bg {
      min-height: 270px;
      order: -1;
    }
    .mbx-hero-content { padding: 40px 20px; }
    .mbx-hero-meta {
      flex-direction: column;
      gap: 2px;
      line-height: 1.55;
      letter-spacing: 0.08em;
    }
    .mbx-main {
      grid-template-columns: 1fr;
      padding: 48px 4px;
    }
    .mbx-toc { position: static; }
    .mbx-advantages { grid-template-columns: 1fr; }
    .mbx-vision-grid { grid-template-columns: 1fr; }
    .mbx-footer { flex-direction: column; gap: 12px; text-align: center; }
    .mbx-ai-block { padding: 32px 20px; }
    .mbx-next-inner,
    .share-section { grid-template-columns: 1fr; }
    .share-actions { justify-content: flex-start; }
  }

/* Late episode overrides must follow the shared image and responsive rules. */
.what-if-amiga .mbx-hero-bg {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.what-if-amiga .mbx-img-hero {
  object-fit: contain;
  background: #030407;
  border-color: rgba(239,35,60,0.28);
  filter: brightness(0.92) contrast(1.05);
}

.what-if-amiga .mbx-response { white-space: pre-line; }

.what-if-amiga .mbx-section,
.what-if-amiga .mbx-tl-item {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .what-if-amiga .mbx-hero-bg {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .what-if-amiga .mbx-hero-content { padding: 24px 0 12px; }
  .what-if-amiga .mbx-hero-title { font-size: clamp(2.7rem, 15vw, 4.4rem); }
}
