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

:root {
  --bg: #0a0a0f;
  --surface: #14141d;
  --surface-2: #1d1d2b;
  --line: rgba(248, 250, 252, 0.16);
  --ink: #f8fafc;
  --muted: #9aa3b7;
  --dim: #6b7280;
  --panel: rgba(10, 10, 15, 0.78);
  --gold: #fbbf24;
  --cyan: #67e8f9;
  --rose: #fb7185;
  --green: #86efac;
  --violet: #c4b5fd;
  --orange: #fb923c;
  --crimson: #f43f5e;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Back bar ── */
.back-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0.7rem 1.5rem;
  background: rgba(10, 10, 15, 0.62);
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  backdrop-filter: blur(12px);
}

.back-link, .restart-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-link:hover, .restart-link:hover { color: var(--ink); }

/* ── Floating era panel ── */
.era-panel {
  position: fixed;
  right: 1.25rem;
  top: 4.4rem;
  z-index: 20;
  width: min(16rem, calc(100vw - 2rem));
  padding: 0.95rem;
  background: var(--panel);
  border: 1px solid rgba(248, 250, 252, 0.13);
  border-radius: 0.55rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.era-panel__label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.era-panel__year {
  margin-top: 0.2rem;
  color: var(--gold);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.era-panel__event {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.6rem;
}

.era-meter {
  height: 6px;
  margin-top: 0.75rem;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.1);
  border-radius: 999px;
}
.era-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--rose));
  border-radius: inherit;
  transition: width 0.15s linear;
}

.era-panel__hint {
  margin-top: 0.45rem;
  color: var(--dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(251, 191, 36, 0.12), transparent 22rem),
    radial-gradient(circle at 18% 28%, rgba(103, 232, 249, 0.12), transparent 20rem),
    radial-gradient(circle at 78% 72%, rgba(196, 181, 253, 0.1), transparent 20rem),
    linear-gradient(180deg, #11111b 0%, #0a0a0f 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f8fafc 0%, var(--gold) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lede {
  position: relative;
  max-width: 640px;
  color: #c7d0e2;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.65;
  font-weight: 500;
}

.hero__cue {
  position: relative;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(0.4rem); opacity: 1; }
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: 4rem 1rem 7rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(103, 232, 249, 0.06), transparent 22rem),
    radial-gradient(circle at 82% 38%, rgba(251, 191, 36, 0.05), transparent 24rem),
    radial-gradient(circle at 38% 72%, rgba(196, 181, 253, 0.05), transparent 22rem),
    linear-gradient(180deg, #0a0a0f 0%, #07070d 60%, #050508 100%);
}

.timeline__spine {
  position: sticky;
  top: 0;
  width: 2px;
  height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  pointer-events: none;
}

.timeline__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Artifact row ── */
.artifact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.artifact:nth-of-type(even) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.artifact:nth-of-type(even) .artifact__visual { order: 2; }

.artifact.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.artifact__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.artifact__card {
  position: relative;
  padding: 1.1rem 1.25rem;
  background: rgba(15, 15, 24, 0.72);
  border: 1px solid rgba(248, 250, 252, 0.13);
  border-radius: 0.6rem;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(11px);
}

.artifact__year {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.artifact__card h2 {
  margin-top: 0.25rem;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.artifact__card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Shared visual frame ── */
.frame {
  width: 100%;
  max-width: 24rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  background: #0d0d18;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: linear-gradient(180deg, #2a2a3a, #1a1a26);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.frame__dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #555;
}
.frame__dot--r { background: #ff5f56; }
.frame__dot--y { background: #ffbd2e; }
.frame__dot--g { background: #27c93f; }
.frame__title {
  margin-left: 0.5rem;
  color: #c7c7d1;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.frame__body {
  padding: 1rem;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.55;
  min-height: 9rem;
}

/* ── Per-kind visuals ── */

/* ARPANET — terminal session */
.vis-arpanet .frame__body {
  color: #86efac;
}
.vis-arpanet .cursor {
  display: inline-block;
  width: 0.55rem;
  height: 0.95rem;
  background: #86efac;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Email — @ symbol */
.vis-email {
  font-family: Georgia, serif;
}
.vis-email .frame__body {
  display: grid;
  place-items: center;
  min-height: 10rem;
}
.vis-email .at {
  font-size: 5rem;
  font-weight: 900;
  color: var(--gold);
  font-family: Georgia, serif;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(251, 191, 36, 0.35);
  animation: atBob 4s ease-in-out infinite;
}
@keyframes atBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-0.4rem) rotate(4deg); }
}
.vis-email .caption {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  font-family: 'Courier New', monospace;
}

/* TCP/IP — nodes & packets */
.vis-tcpip .frame__body {
  position: relative;
  min-height: 11rem;
}
.vis-tcpip svg { width: 100%; height: 11rem; display: block; }

/* Smiley */
.vis-smiley .frame__body {
  display: grid;
  place-items: center;
  min-height: 10rem;
  font-size: 3.4rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

/* Symbolics.com — first domain */
.vis-symbolics .frame__body {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 10rem;
}
.vis-symbolics .domain {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: #67e8f9;
}
.vis-symbolics .meta {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
}

/* WWW — NeXT computer */
.vis-www .frame__body {
  font-family: 'Courier New', monospace;
  color: #c4b5fd;
}
.vis-www .tag {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  background: rgba(196, 181, 253, 0.15);
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: 0.2rem;
  color: #c4b5fd;
  margin: 0.1rem 0.15rem;
}

/* First photo — band */
.vis-photo .frame__body {
  display: grid;
  place-items: center;
  min-height: 10rem;
}
.vis-photo .photo {
  width: 100%;
  max-width: 14rem;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #fde68a 0%, #f59e0b 30%, #b45309 60%, #78350f 100%);
  position: relative;
  border: 4px solid #f8fafc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  filter: sepia(0.3);
}
.vis-photo .photo::before,
.vis-photo .photo::after {
  content: '';
  position: absolute;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
}
.vis-photo .photo::before {
  width: 30%;
  height: 35%;
  top: 22%;
  left: 18%;
  box-shadow: 1.6rem 0 0 rgba(0, 0, 0, 0.45);
}
.vis-photo .photo::after {
  width: 26%;
  height: 32%;
  top: 28%;
  right: 18%;
  box-shadow: -1.6rem 0 0 rgba(0, 0, 0, 0.45);
}
.vis-photo .caption {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  font-family: 'Courier New', monospace;
}

/* Mosaic — colorful browser */
.vis-mosaic .frame__body {
  padding: 0;
  min-height: auto;
}
.vis-mosaic .mosaic-bar {
  display: flex;
  background: #c0c0c0;
  padding: 0.3rem 0.4rem;
  gap: 0.3rem;
  border-bottom: 2px solid #808080;
}
.vis-mosaic .mbtn {
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  background: linear-gradient(180deg, #f0f0f0, #c0c0c0);
  border: 1px solid #808080;
  color: #000;
  font-family: 'Tahoma', sans-serif;
  font-weight: 700;
}
.vis-mosaic .mosaic-page {
  padding: 0.8rem;
  background: #fff;
  color: #000;
  font-family: 'Times New Roman', serif;
}
.vis-mosaic .mosaic-page h3 { font-size: 1.1rem; color: #0000ee; text-decoration: underline; }
.vis-mosaic .mosaic-page p { font-size: 0.78rem; color: #000; margin-top: 0.4rem; }
.vis-mosaic .mosaic-page a { color: #0000ee; text-decoration: underline; }
.vis-mosaic .mosaic-img {
  float: right;
  width: 4rem;
  height: 3rem;
  margin: 0 0 0.4rem 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border: 1px solid #000;
}

/* Yahoo — directory */
.vis-yahoo .frame__body {
  background: #fff;
  color: #000;
  font-family: 'Times New Roman', serif;
  min-height: 11rem;
}
.vis-yahoo .y-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #5f017b;
  font-family: 'Tahoma', sans-serif;
  text-align: center;
  letter-spacing: -0.02em;
}
.vis-yahoo .y-sub {
  font-size: 0.6rem;
  color: #5f017b;
  text-align: center;
  margin-bottom: 0.5rem;
}
.vis-yahoo ul {
  list-style: none;
  font-size: 0.72rem;
  columns: 2;
  gap: 0.5rem;
}
.vis-yahoo li {
  padding: 0.1rem 0;
  color: #0000ee;
  text-decoration: underline;
  break-inside: avoid;
}

/* GeoCities — animated GIF vibe */
.vis-geocities .frame__body {
  background:
    repeating-linear-gradient(45deg, #1a0033, #1a0033 12px, #2a0066 12px, #2a0066 24px);
  min-height: 11rem;
  display: grid;
  place-items: center;
  text-align: center;
}
.vis-geocities .marquee {
  font-size: 1.1rem;
  font-weight: 900;
  color: #00ff00;
  text-shadow: 0 0 6px #00ff00, 2px 2px 0 #ff00ff;
  font-family: 'Comic Sans MS', cursive;
}
.vis-geocities .construction {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #ffff00;
  font-family: 'Comic Sans MS', cursive;
  animation: blinkHard 1.4s steps(2) infinite;
}
@keyframes blinkHard { 50% { opacity: 0.2; } }

/* eBay — auction */
.vis-ebay .frame__body {
  background: #fff;
  color: #000;
  font-family: 'Times New Roman', serif;
  min-height: 11rem;
}
.vis-ebay .ebay-logo {
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  font-family: 'Arial', sans-serif;
}
.vis-ebay .ebay-logo span:nth-child(1) { color: #e53238; }
.vis-ebay .ebay-logo span:nth-child(2) { color: #0064d2; }
.vis-ebay .ebay-logo span:nth-child(3) { color: #f5af02; }
.vis-ebay .ebay-logo span:nth-child(4) { color: #86b817; }
.vis-ebay .item {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #000;
}
.vis-ebay .price {
  color: #0064d2;
  font-weight: 700;
  font-size: 1rem;
}
.vis-ebay .bid {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: #666;
}

/* Internet Explorer */
.vis-ie .frame__body {
  background: #c0c0c0;
  color: #000;
  padding: 0;
  min-height: auto;
}
.vis-ie .ie-bar {
  background: linear-gradient(180deg, #0824a6, #0860c8);
  padding: 0.25rem 0.4rem;
  color: #fff;
  font-size: 0.7rem;
  font-family: 'Tahoma', sans-serif;
  font-weight: 700;
}
.vis-ie .ie-url {
  background: #fff;
  margin: 0.25rem 0.4rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
  border: 1px solid #808080;
  font-family: 'Tahoma', sans-serif;
}
.vis-ie .ie-page {
  background: #fff;
  margin: 0 0.4rem 0.4rem;
  padding: 0.6rem;
  font-family: 'Times New Roman', serif;
  font-size: 0.75rem;
  color: #000;
}
.vis-ie .ie-page h3 { font-size: 0.9rem; color: #0000ee; text-decoration: underline; }
.vis-ie .blue-e {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #86d4ff, #0064d2 60%, #002e8a);
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* Hotmail */
.vis-hotmail .frame__body {
  background: #fff;
  color: #000;
  font-family: 'Tahoma', sans-serif;
  min-height: 11rem;
  padding: 0;
}
.vis-hotmail .hm-top {
  background: linear-gradient(180deg, #c0c0c0, #a0a0a0);
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-bottom: 1px solid #808080;
  color: #000;
}
.vis-hotmail .hm-logo {
  color: #d4502a;
  font-weight: 900;
  font-size: 1rem;
}
.vis-hotmail .hm-inbox {
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
}
.vis-hotmail .hm-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  border-bottom: 1px solid #eee;
  color: #000;
}
.vis-hotmail .hm-from { color: #0033cc; font-weight: 700; }
.vis-hotmail .hm-sub { color: #555; }

/* Dancing Baby */
.vis-baby .frame__body {
  background: #000;
  display: grid;
  place-items: center;
  min-height: 11rem;
  font-size: 4rem;
  line-height: 1;
}
.vis-baby .baby {
  display: inline-block;
  animation: babyDance 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
}
@keyframes babyDance {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  25% { transform: rotate(0) translateY(-0.3rem); }
  50% { transform: rotate(8deg) translateY(0); }
  75% { transform: rotate(0) translateY(-0.3rem); }
}

/* AOL — "You've Got Mail" */
.vis-aol .frame__body {
  background: linear-gradient(180deg, #1a1a4a, #000080);
  display: grid;
  place-items: center;
  min-height: 11rem;
  text-align: center;
  color: #fff;
  font-family: 'Arial', sans-serif;
  cursor: pointer;
}
.vis-aol .aol-logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.vis-aol .aol-logo b { color: #ff6c00; }
.vis-aol .aol-msg {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #ffea00;
  font-weight: 700;
}
.vis-aol .aol-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

/* Google — early homepage */
.vis-google .frame__body {
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  min-height: 11rem;
  font-family: 'Arial', sans-serif;
}
.vis-google .g-logo {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  letter-spacing: -0.04em;
}
.vis-google .g-logo span:nth-child(1) { color: #4285f4; }
.vis-google .g-logo span:nth-child(2) { color: #ea4335; }
.vis-google .g-logo span:nth-child(3) { color: #fbbc05; }
.vis-google .g-logo span:nth-child(4) { color: #4285f4; }
.vis-google .g-logo span:nth-child(5) { color: #34a853; }
.vis-google .g-logo span:nth-child(6) { color: #ea4335; }
.vis-google .g-search {
  margin-top: 0.6rem;
  width: 14rem;
  height: 1.4rem;
  border: 1px solid #808080;
  background: #fff;
  border-radius: 0;
}
.vis-google .g-btns {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
}
.vis-google .g-btn {
  background: #f2f2f2;
  border: 1px solid #f2f2f2;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  color: #555;
  border-radius: 2px;
}

/* Hamster Dance */
.vis-hamster .frame__body {
  background: #ffe4b5;
  display: grid;
  place-items: center;
  min-height: 11rem;
  font-size: 2.4rem;
}
.vis-hamster .hamsters {
  display: flex;
  gap: 0.4rem;
}
.vis-hamster .hamsters span {
  display: inline-block;
  animation: hamBounce 0.5s ease-in-out infinite;
}
.vis-hamster .hamsters span:nth-child(2) { animation-delay: 0.1s; }
.vis-hamster .hamsters span:nth-child(3) { animation-delay: 0.2s; }
.vis-hamster .hamsters span:nth-child(4) { animation-delay: 0.3s; }
@keyframes hamBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.5rem); }
}
.vis-hamster .note {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: #8b4513;
  font-family: 'Comic Sans MS', cursive;
  font-weight: 700;
}

/* Napster */
.vis-napster .frame__body {
  background: linear-gradient(180deg, #2a2a2a, #000);
  color: #fff;
  font-family: 'Arial', sans-serif;
  min-height: 11rem;
  padding: 0.6rem;
}
.vis-napster .nap-logo {
  color: #6fbb2e;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.vis-napster .nap-search {
  display: flex;
  gap: 0.3rem;
  margin: 0.4rem 0;
}
.vis-napster .nap-input {
  flex: 1;
  height: 1rem;
  background: #1a1a1a;
  border: 1px solid #555;
  color: #fff;
  font-size: 0.65rem;
  padding: 0 0.3rem;
}
.vis-napster .nap-btn {
  background: #6fbb2e;
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
}
.vis-napster .nap-row {
  font-size: 0.66rem;
  padding: 0.1rem 0;
  color: #ccc;
  display: flex;
  justify-content: space-between;
}
.vis-napster .nap-row .speed { color: #6fbb2e; }

/* Wikipedia */
.vis-wikipedia .frame__body {
  background: #fff;
  color: #222;
  font-family: 'Georgia', serif;
  padding: 0.7rem;
  min-height: 11rem;
}
.vis-wikipedia .wiki-title {
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.2rem;
}
.vis-wikipedia .wiki-meta {
  font-size: 0.6rem;
  color: #555;
  font-family: sans-serif;
  margin: 0.2rem 0 0.4rem;
}
.vis-wikipedia .wiki-text {
  font-size: 0.72rem;
  color: #222;
  line-height: 1.5;
}
.vis-wikipedia .wiki-link {
  color: #3366cc;
  text-decoration: underline;
}

/* Skype */
.vis-skype .frame__body {
  background: linear-gradient(180deg, #00aff0, #0078ca);
  display: grid;
  place-items: center;
  min-height: 11rem;
  color: #fff;
  font-family: 'Arial', sans-serif;
  text-align: center;
}
.vis-skype .sk-logo {
  background: #fff;
  color: #00aff0;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 auto 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.vis-skype .sk-status {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
}
.vis-skype .sk-caller {
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
}

/* MySpace */
.vis-myspace .frame__body {
  background: #003399;
  color: #fff;
  font-family: 'Arial', sans-serif;
  min-height: 11rem;
  padding: 0.6rem;
}
.vis-myspace .ms-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.4rem;
}
.vis-myspace .ms-avatar {
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, #ff6c00, #ffbb00);
  border-radius: 0.2rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.vis-myspace .ms-name {
  font-weight: 900;
  font-size: 0.85rem;
}
.vis-myspace .ms-online {
  font-size: 0.6rem;
  color: #6fbb2e;
}
.vis-myspace .ms-top8 {
  margin-top: 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
}
.vis-myspace .ms-friends {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.vis-myspace .ms-friend {
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.15rem;
}

/* Facebook — early */
.vis-facebook .frame__body {
  background: #3b5998;
  color: #fff;
  font-family: 'Arial', sans-serif;
  min-height: 11rem;
  padding: 0.7rem;
}
.vis-facebook .fb-header {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.3rem;
}
.vis-facebook .fb-header b { color: #fff; }
.vis-facebook .fb-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin: 0.3rem 0;
}
.vis-facebook .fb-row label { color: #fff; font-weight: 700; }
.vis-facebook .fb-input {
  width: 9rem;
  height: 1rem;
  background: #fff;
  border: 1px solid #29447e;
}
.vis-facebook .fb-btn {
  background: #5b74a8;
  color: #fff;
  border: 1px solid #29447e;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  margin-top: 0.3rem;
  border-radius: 2px;
}

/* YouTube — first video */
.vis-youtube .frame__body {
  background: #fff;
  color: #000;
  font-family: 'Arial', sans-serif;
  padding: 0;
  min-height: auto;
}
.vis-youtube .yt-header {
  background: #fff;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.vis-youtube .yt-logo {
  color: #ff0000;
  font-weight: 900;
  font-size: 0.9rem;
}
.vis-youtube .yt-logo b { color: #000; font-weight: 900; }
.vis-youtube .yt-player {
  background: #000;
  height: 5.5rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  position: relative;
}
.vis-youtube .yt-player::before {
  content: '\25B6';
  font-size: 1.8rem;
  color: #ff0000;
}
.vis-youtube .yt-title {
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  color: #000;
  font-weight: 700;
}
.vis-youtube .yt-meta {
  padding: 0 0.5rem 0.4rem;
  font-size: 0.6rem;
  color: #666;
}

/* Reddit */
.vis-reddit .frame__body {
  background: #cee3f8;
  color: #000;
  font-family: 'Verdana', sans-serif;
  padding: 0.5rem;
  min-height: 11rem;
}
.vis-reddit .rd-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #5f99cf;
}
.vis-reddit .rd-logo {
  font-weight: 900;
  color: #336699;
  font-size: 0.9rem;
}
.vis-reddit .rd-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem 0;
  font-size: 0.68rem;
  border-bottom: 1px dotted #c0c0c0;
}
.vis-reddit .rd-votes {
  color: #ff4500;
  font-weight: 700;
  min-width: 1.6rem;
}
.vis-reddit .rd-title { color: #0000ee; font-weight: 700; }
.vis-reddit .rd-sub { color: #888; font-size: 0.6rem; }

/* Twitter — first tweet */
.vis-twitter .frame__body {
  background: #fff;
  color: #000;
  font-family: 'Arial', sans-serif;
  padding: 0.7rem;
  min-height: 11rem;
}
.vis-twitter .tw-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.vis-twitter .tw-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1da1f2, #0c7abf);
}
.vis-twitter .tw-name {
  font-weight: 900;
  font-size: 0.8rem;
}
.vis-twitter .tw-handle {
  font-size: 0.65rem;
  color: #657786;
}
.vis-twitter .tw-body {
  font-size: 0.85rem;
  color: #14171a;
  line-height: 1.45;
}
.vis-twitter .tw-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: #657786;
}

/* iPhone */
.vis-iphone .frame__body {
  background: linear-gradient(180deg, #1a1a1a, #000);
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1rem;
}
.vis-iphone .phone {
  width: 5rem;
  height: 9rem;
  background: #000;
  border: 3px solid #2a2a2a;
  border-radius: 0.6rem;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Helvetica', sans-serif;
  box-shadow: 0 0 0 2px #000, 0 18px 36px rgba(0, 0, 0, 0.5);
}
.vis-iphone .phone::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 0.2rem;
  background: #1a1a1a;
  border-radius: 0.1rem;
}
.vis-iphone .phone-screen {
  width: 4rem;
  height: 6.5rem;
  background: linear-gradient(180deg, #4a90e2, #1a3a6a);
  display: grid;
  place-items: center;
  border-radius: 0.2rem;
  font-size: 0.6rem;
  color: #fff;
  text-align: center;
  padding: 0.2rem;
}
.vis-iphone .phone-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  font-size: 0.7rem;
}

/* Cheezburger — lolcat */
.vis-cheezburger .frame__body {
  background: #000;
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 0.6rem;
}
.vis-cheezburger .lolcat {
  position: relative;
  width: 100%;
  max-width: 12rem;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 35%, #fbbf24 0 18%, #d97706 19% 32%, #92400e 33% 50%, #1f2937 51%);
  border-radius: 0.3rem;
  overflow: hidden;
}
.vis-cheezburger .lolcat::before,
.vis-cheezburger .lolcat::after {
  position: absolute;
  font-family: 'Impact', 'Arial Black', sans-serif;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  left: 0;
  right: 0;
  padding: 0 0.3rem;
}
.vis-cheezburger .lolcat::before {
  content: 'I CAN HAS';
  top: 0.2rem;
}
.vis-cheezburger .lolcat::after {
  content: 'CHEEZBURGER?';
  bottom: 0.2rem;
}

/* Instagram */
.vis-instagram .frame__body {
  background: #fff;
  color: #000;
  font-family: 'Arial', sans-serif;
  padding: 0;
  min-height: auto;
}
.vis-instagram .ig-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #eee;
}
.vis-instagram .ig-logo {
  font-size: 0.85rem;
  font-weight: 900;
  font-family: 'Brush Script MT', cursive;
}
.vis-instagram .ig-photo {
  width: 100%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 70% 40%, #fbbf24 0 12%, transparent 13%),
    linear-gradient(180deg, #f59e0b 0%, #b45309 40%, #78350f 70%, #1f2937 100%);
  filter: saturate(1.2) contrast(1.05);
}
.vis-instagram .ig-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}
.vis-instagram .ig-likes {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 0.5rem 0.4rem;
}

/* Gangnam Style */
.vis-gangnam .frame__body {
  background: #000;
  display: grid;
  place-items: center;
  min-height: 11rem;
  color: #fff;
  font-family: 'Arial', sans-serif;
  text-align: center;
  padding: 0.5rem;
}
.vis-gangnam .yt-thumb {
  width: 100%;
  max-width: 12rem;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 60%, #fde68a 0 14%, transparent 15%),
    linear-gradient(135deg, #1e3a8a 0%, #0c1834 60%, #000 100%);
  position: relative;
  border-radius: 0.2rem;
  overflow: hidden;
}
.vis-gangnam .yt-thumb::before {
  content: '\25B6';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
}
.vis-gangnam .yt-title {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
}
.vis-gangnam .yt-views {
  font-size: 0.6rem;
  color: #aaa;
}
.vis-gangnam .views-bar {
  width: 100%;
  height: 0.3rem;
  background: #444;
  margin-top: 0.3rem;
  border-radius: 999px;
  overflow: hidden;
}
.vis-gangnam .views-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: #ff0000;
}

/* Doge */
.vis-doge .frame__body {
  background:
    radial-gradient(circle at 50% 50%, #fcd34d 0 22%, #f59e0b 23% 45%, #92400e 46%);
  display: grid;
  place-items: center;
  min-height: 11rem;
  position: relative;
  font-family: 'Comic Sans MS', cursive;
  overflow: hidden;
}
.vis-doge .doge-word {
  position: absolute;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}
.vis-doge .w1 { top: 12%; left: 12%; transform: rotate(-10deg); }
.vis-doge .w2 { top: 18%; right: 14%; transform: rotate(8deg); font-size: 0.7rem; }
.vis-doge .w3 { bottom: 14%; left: 16%; transform: rotate(6deg); }
.vis-doge .w4 { bottom: 18%; right: 12%; transform: rotate(-4deg); font-size: 0.75rem; }
.vis-doge .w5 { top: 48%; left: 38%; transform: rotate(-2deg); font-size: 1rem; color: #fef9c3; }

/* Fidget Spinner */
.vis-spinner .frame__body {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: grid;
  place-items: center;
  min-height: 11rem;
}
.vis-spinner .spinner {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  animation: spin 1.6s linear infinite;
}
.vis-spinner .spinner svg { width: 100%; height: 100%; }
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Among Us */
.vis-amongus .frame__body {
  background:
    radial-gradient(circle at 50% 60%, #3b1d4e 0%, #1a0a25 70%);
  display: grid;
  place-items: center;
  min-height: 11rem;
  position: relative;
  overflow: hidden;
}
.vis-amongus .crew {
  position: relative;
  width: 3.4rem;
  height: 4.4rem;
  background: #c51111;
  border-radius: 1.4rem 1.4rem 0.6rem 0.6rem;
  box-shadow: inset -0.5rem -0.3rem 0 rgba(0, 0, 0, 0.25);
  animation: walk 2s ease-in-out infinite;
}
.vis-amongus .crew::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  right: -0.2rem;
  width: 1.5rem;
  height: 1rem;
  background: #9bd1d1;
  border-radius: 0.3rem 1rem 0.6rem 0.6rem;
  box-shadow: inset 0 0 0 0.15rem rgba(0, 0, 0, 0.4);
}
.vis-amongus .crew::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.4rem;
  width: 0.8rem;
  height: 0.6rem;
  background: #c51111;
  border-radius: 0 0 0.4rem 0.4rem;
  box-shadow: 1.4rem 0 0 #c51111;
}
@keyframes walk {
  0%, 100% { transform: translateX(-1.5rem); }
  50% { transform: translateX(1.5rem); }
}
.vis-amongus .sus {
  position: absolute;
  bottom: 0.4rem;
  right: 0.6rem;
  font-size: 0.7rem;
  color: #fde68a;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
}

/* Wordle */
.vis-wordle .frame__body {
  background: #fff;
  color: #000;
  font-family: 'Arial', sans-serif;
  padding: 0.6rem;
  min-height: 11rem;
  display: grid;
  place-items: center;
}
.vis-wordle .grid {
  display: grid;
  grid-template-columns: repeat(5, 1.6rem);
  gap: 0.15rem;
}
.vis-wordle .cell {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  border: 2px solid #d3d6da;
  background: #fff;
  color: #000;
}
.vis-wordle .cell--green { background: #6aaa64; color: #fff; border-color: #6aaa64; }
.vis-wordle .cell--yellow { background: #c9b458; color: #fff; border-color: #c9b458; }
.vis-wordle .cell--gray { background: #787c7e; color: #fff; border-color: #787c7e; }

/* ChatGPT */
.vis-chatgpt .frame__body {
  background: #202123;
  color: #ececf1;
  font-family: 'Arial', sans-serif;
  padding: 0.6rem;
  min-height: 11rem;
}
.vis-chatgpt .cg-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.4rem;
}
.vis-chatgpt .cg-logo {
  width: 1.4rem;
  height: 1.4rem;
  background: #19c37d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.7rem;
}
.vis-chatgpt .cg-title {
  font-weight: 700;
  font-size: 0.8rem;
}
.vis-chatgpt .cg-prompt {
  background: #2a2b32;
  padding: 0.3rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  color: #ececf1;
  margin-bottom: 0.3rem;
}
.vis-chatgpt .cg-reply {
  font-size: 0.7rem;
  color: #ececf1;
  line-height: 1.5;
}
.vis-chatgpt .cg-cursor {
  display: inline-block;
  width: 0.4rem;
  height: 0.9rem;
  background: #19c37d;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}

/* Vision Pro */
.vis-visionpro .frame__body {
  background: radial-gradient(circle at 50% 50%, #2a2a3a 0%, #050509 75%);
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 1rem;
}
.vis-visionpro .vp-headset {
  position: relative;
  width: 11rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
}
.vis-visionpro .vp-glass {
  width: 7rem;
  height: 3.2rem;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(103, 232, 249, 0.7), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(196, 181, 253, 0.6), transparent 55%),
    linear-gradient(135deg, #1a1a2a 0%, #050509 60%);
  border-radius: 2.5rem;
  border: 2px solid #2a2a3a;
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.15),
    0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}
.vis-visionpro .vp-glass::before,
.vis-visionpro .vp-glass::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translateY(-50%);
}
.vis-visionpro .vp-glass::before { left: 1.2rem; }
.vis-visionpro .vp-glass::after { right: 1.2rem; }
.vis-visionpro .vp-strap {
  position: absolute;
  top: 50%;
  width: 3rem;
  height: 0.6rem;
  background: linear-gradient(180deg, #5a5a6a, #2a2a3a);
  border-radius: 0 0.4rem 0.4rem 0;
  transform: translateY(-50%);
}
.vis-visionpro .vp-strap--l {
  left: 0.4rem;
  border-radius: 0.4rem 0 0 0.4rem;
}
.vis-visionpro .vp-strap--r {
  right: 0.4rem;
}
.vis-visionpro .vp-caption {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sora */
.vis-sora .frame__body {
  background: #0c0c14;
  color: #ececf1;
  font-family: 'Arial', sans-serif;
  padding: 0.6rem;
  min-height: 11rem;
}
.vis-sora .sora-prompt {
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(103, 232, 249, 0.08);
  border-left: 2px solid var(--cyan);
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
}
.vis-sora .sora-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}
.vis-sora .sora-frame {
  aspect-ratio: 9 / 16;
  border-radius: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.vis-sora .sora-frame--1 {
  background:
    radial-gradient(circle at 60% 70%, #fbbf24 0 18%, transparent 19%),
    linear-gradient(180deg, #86efac 0%, #16a34a 40%, #064e3b 100%);
}
.vis-sora .sora-frame--2 {
  background:
    radial-gradient(circle at 40% 65%, #fde68a 0 22%, transparent 23%),
    linear-gradient(180deg, #a16207 0%, #78350f 50%, #1c1410 100%);
}
.vis-sora .sora-frame--3 {
  background:
    radial-gradient(circle at 50% 70%, #f59e0b 0 28%, transparent 29%),
    linear-gradient(180deg, #92400e 0%, #451a03 60%, #0a0a0a 100%);
}
.vis-sora .sora-frame::after {
  content: '\25B6';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.18);
}
.vis-sora .sora-meta {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  color: var(--dim);
  text-align: right;
  font-family: 'Courier New', monospace;
}

/* DeepSeek */
.vis-deepseek .frame__body {
  background: #0d1426;
  color: #ececf1;
  font-family: 'Arial', sans-serif;
  padding: 0.6rem;
  min-height: 11rem;
}
.vis-deepseek .ds-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(103, 232, 249, 0.2);
  margin-bottom: 0.4rem;
}
.vis-deepseek .ds-logo {
  font-size: 1.3rem;
}
.vis-deepseek .ds-name {
  font-weight: 900;
  font-size: 0.85rem;
  color: #67e8f9;
}
.vis-deepseek .ds-badge {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 700;
  color: #86efac;
  background: rgba(134, 239, 172, 0.15);
  border: 1px solid rgba(134, 239, 172, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vis-deepseek .ds-prompt {
  background: #1a2336;
  padding: 0.3rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  color: #ececf1;
  margin-bottom: 0.4rem;
}
.vis-deepseek .ds-reply {
  font-size: 0.7rem;
  color: #ececf1;
  line-height: 1.5;
}
.vis-deepseek .ds-think {
  display: inline-block;
  font-size: 0.62rem;
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  margin-bottom: 0.3rem;
  font-style: italic;
}

/* AI agents */
.vis-agents .frame__body {
  background: #0a0f1c;
  color: #ececf1;
  font-family: 'Arial', sans-serif;
  padding: 0.5rem;
  min-height: 11rem;
}
.vis-agents .ag-urlbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #1a2236;
  padding: 0.25rem 0.45rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  font-size: 0.65rem;
  margin-bottom: 0.4rem;
}
.vis-agents .ag-robot {
  font-size: 0.85rem;
  animation: bob 1.6s ease-in-out infinite;
}
.vis-agents .ag-url {
  color: var(--cyan);
  font-family: 'Courier New', monospace;
}
.vis-agents .ag-page {
  position: relative;
  background: #fff;
  border-radius: 0.2rem;
  padding: 0.6rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}
.vis-agents .ag-clickable {
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 0.2rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}
.vis-agents .ag-cursor {
  position: absolute;
  top: 38%;
  left: 50%;
  font-size: 1rem;
  animation: agCursor 2.2s ease-in-out infinite;
}
@keyframes agCursor {
  0%, 100% { transform: translate(-0.5rem, -0.3rem); }
  50% { transform: translate(0.5rem, 0.3rem); }
}
.vis-agents .ag-status {
  display: flex;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  flex-wrap: wrap;
}
.vis-agents .ag-step {
  padding: 0.15rem 0.4rem;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 0.2rem;
  color: var(--dim);
}
.vis-agents .ag-step--done { color: #86efac; background: rgba(134, 239, 172, 0.12); }
.vis-agents .ag-step--now {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Agentic web */
.vis-agentic-web .frame__body {
  background: #070b14;
  color: #ececf1;
  font-family: 'Arial', sans-serif;
  padding: 0.6rem;
  min-height: 11rem;
}
.vis-agentic-web .aw-chart {
  display: grid;
  gap: 0.35rem;
}
.vis-agentic-web .aw-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2rem;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
}
.vis-agentic-web .aw-label {
  color: var(--muted);
  font-weight: 700;
}
.vis-agentic-web .aw-bar {
  height: 0.7rem;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 0.2rem;
  overflow: hidden;
}
.vis-agentic-web .aw-bar span {
  display: block;
  height: 100%;
  border-radius: 0.2rem;
  animation: awGrow 1.4s ease-out both;
}
@keyframes awGrow {
  from { width: 0 !important; }
}
.vis-agentic-web .aw-pct {
  color: var(--ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.vis-agentic-web .aw-meta {
  margin-top: 0.4rem;
  font-size: 0.58rem;
  color: var(--dim);
  text-align: right;
}
.vis-agentic-web .aw-snippet {
  margin-top: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: #86efac;
  background: rgba(134, 239, 172, 0.08);
  padding: 0.3rem 0.4rem;
  border-radius: 0.2rem;
  border-left: 2px solid var(--green);
}

/* ── Finale ── */
.finale {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  padding: 5rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 112%, rgba(103, 232, 249, 0.1), transparent 26rem),
    linear-gradient(180deg, #050508, #02030a);
}

.finale__mark {
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.finale h2 {
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 1.05;
  max-width: 800px;
  letter-spacing: -0.02em;
}

.finale p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .era-panel {
    inset: auto 0.75rem 0.75rem;
    width: auto;
    top: auto;
  }

  .artifact,
  .artifact:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .artifact:nth-of-type(even) .artifact__visual {
    order: 0;
  }

  .artifact__visual { min-height: 240px; }
  .frame { max-width: 100%; }

  .timeline__list { gap: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .artifact, .back-link, .restart-link { transition: none; }
  .hero__cue, .vis-email .at, .vis-baby .baby,
  .vis-hamster .hamsters span, .vis-spinner .spinner,
  .vis-amongus .crew, .vis-agents .ag-robot,
  .vis-agents .ag-cursor, .vis-agentic-web .aw-bar span { animation: none; }
}
