/* Home page — completion illusion theatre */

.hero-illusion {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.dashboard {
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  border-radius: 2px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.dash-header .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); margin: 0 -22px; }
.dash-stat { background: var(--bg-elev); padding: 18px 22px; }
.dash-stat .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.dash-stat .val { font-family: var(--serif); font-size: 36px; line-height: 1.1; margin-top: 6px; color: var(--ink); font-feature-settings: "tnum"; }
.dash-stat .delta { font-family: var(--mono); font-size: 11px; color: var(--green); margin-top: 4px; }
.dash-stat .delta.bad { color: var(--accent); }

.dash-strip {
  margin: 0 -22px;
  border-top: 1px solid var(--rule);
  padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}

.dash-log {
  margin: 0 -22px -22px;
  border-top: 1px solid var(--rule);
  padding: 14px 22px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-soft);
  height: 130px; overflow: hidden;
  position: relative;
  background:
    linear-gradient(to bottom, var(--bg-elev), transparent 20%, transparent 80%, var(--bg-elev));
}
.dash-log .row { line-height: 1.7; padding-left: 14px; position: relative; }
.dash-log .row::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.dash-log .row.err::before { content: "·"; color: var(--accent); }
.dash-log .row.err { color: var(--accent); opacity: 0.85; }

.under {
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px dashed var(--accent-dim);
  background: rgba(195, 59, 44, 0.04);
  border-radius: 2px;
}
.under .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.under .num { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-top: 4px; }
.under .desc { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

/* Modes — interactive */
.modes-frame { border: 1px solid var(--rule); background: var(--bg-elev); border-radius: 2px; }
.modes-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--rule); }
.modes-tab {
  padding: 18px 16px; background: transparent; border: none; cursor: pointer;
  border-right: 1px solid var(--rule);
  text-align: left;
  color: var(--ink-soft);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all .15s ease;
}
.modes-tab:last-child { border-right: none; }
.modes-tab .num { color: var(--accent); margin-right: 8px; }
.modes-tab:hover { color: var(--ink); background: var(--bg-soft); }
.modes-tab.on { background: var(--bg); color: var(--ink); }
.modes-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 360px; }
.modes-body > div { padding: 32px; }
.modes-body > div:first-child { border-right: 1px solid var(--rule); }
.modes-title { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.modes-def { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-top: 14px; }
@media (max-width: 820px) {
  .modes-tabs { grid-template-columns: repeat(2, 1fr); }
  .modes-tab { border-bottom: 1px solid var(--rule); }
  .modes-body { grid-template-columns: 1fr; }
  .modes-body > div:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
}

/* Diff */
.diff {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  background: var(--bg);
}
.diff > div { padding: 22px 24px; overflow: auto; }
.diff > div:first-child { border-right: 1px solid var(--rule); }
.diff .head { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.diff .head.left { color: var(--ink-soft); }
.diff .head.right { color: var(--green); }
.diff .ln { display: block; color: var(--ink-soft); }
.diff .ln.del { background: rgba(195, 59, 44, 0.08); color: var(--accent); position: relative; }
.diff .ln.del::before { content: "−"; position: absolute; left: 0; color: var(--accent); }
.diff .ln.del { padding-left: 16px; }
.diff .ln.kept { color: var(--ink-soft); }
.diff .ln.note { color: var(--ink-mute); font-style: italic; }
@media (max-width: 820px) { .diff { grid-template-columns: 1fr; } .diff > div:first-child { border-right: none; border-bottom: 1px solid var(--rule); } }

/* Asymmetry */
.asym { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 820px) { .asym { grid-template-columns: 1fr; } }
.asym-col { border: 1px solid var(--rule); padding: 28px; border-radius: 2px; background: var(--bg-elev); display: flex; flex-direction: column; }
.asym-col.gen { border-left: 3px solid var(--accent); }
.asym-col.ver { border-left: 3px solid var(--green); }
.asym-time { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: 1; margin-top: 14px; }
.asym-bar { height: 4px; background: var(--rule); margin-top: 18px; position: relative; overflow: hidden; }
.asym-bar > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.asym-col.ver .asym-bar > i { background: var(--green); }
.asym-list { margin-top: 22px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 14px; line-height: 1.6; flex: 1; }
.asym-list li { padding: 6px 0 6px 18px; position: relative; border-top: 1px solid var(--rule); }
.asym-list li:first-child { border-top: none; }
.asym-list li::before { content: "·"; position: absolute; left: 0; color: var(--ink-mute); }

/* Timeline */
.tl { border-top: 1px solid var(--rule); }
.tl-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.tl-year { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--accent); }
.tl-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }
.tl-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.tl-body { color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin-top: 12px; max-width: 70ch; }
@media (max-width: 720px) { .tl-row { grid-template-columns: 1fr; gap: 8px; } }

/* Audience */
.aud {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--bg-elev);
}
.aud > div { padding: 32px; border-right: 1px solid var(--rule); }
.aud > div:last-child { border-right: none; }
@media (max-width: 820px) {
  .aud { grid-template-columns: 1fr; }
  .aud > div { border-right: none; border-bottom: 1px solid var(--rule); }
}
.aud-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.aud-head { font-family: var(--serif); font-size: 24px; margin-top: 10px; }
.aud-body { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-top: 14px; }
.aud-key { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-mute); }
