/* ============================
   ALORRO LABS — shared base
============================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* design-canvas artboard reset — make our content responsible for its own page */
.alorro-page {
  width: 1440px;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01', 'tnum';
  position: relative;
  overflow: hidden;
}
.alorro-page .mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

/* ============================
   V1 — ARCHIVE (editorial)
============================ */
.v1 {
  --bg: #F2EEE5;
  --paper: #ECE6D8;
  --ink: #0E0E0C;
  --rule: #1A1A18;
  --muted: #6B6759;
  --accent: #8B2A1B;
  background: var(--bg);
  color: var(--ink);
}
.v1 .topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 48px;
  border-bottom: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v1 .topbar .left, .v1 .topbar .right { display: flex; gap: 28px; }
.v1 .topbar .right { justify-content: flex-end; }
.v1 .wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 18px;
  text-transform: none;
}
.v1 .wordmark sup { font-family: 'JetBrains Mono', monospace; font-size: 10px; vertical-align: super; margin-left: 4px; }

.v1 .hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--ink);
}
.v1 .hero-meta {
  padding: 32px 32px 32px 48px;
  border-right: 1px solid var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
}
.v1 .hero-meta dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; row-gap: 8px; }
.v1 .hero-meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.v1 .hero-meta dd { margin: 0; }
.v1 .hero-canvas-wrap { position: relative; height: 640px; }
.v1 .hero-canvas-wrap canvas { width: 100%; height: 100%; }
.v1 .hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 48px;
  pointer-events: none;
}
.v1 .hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 92px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 880px;
  text-wrap: balance;
}
.v1 .hero-headline em { font-style: italic; font-family: 'Fraunces', 'Times New Roman', serif; font-weight: 300; }
.v1 .hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.v1 .hero-foot .play {
  pointer-events: auto;
  border: 1px solid var(--ink);
  padding: 12px 20px;
  background: var(--bg);
  display: inline-flex; gap: 12px; align-items: center;
}
.v1 .hero-foot .play:hover { background: var(--ink); color: var(--bg); }

.v1 .strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.v1 .strip > div {
  padding: 18px 24px;
  border-right: 1px solid var(--ink);
  display: flex; justify-content: space-between; gap: 12px;
}
.v1 .strip > div:last-child { border-right: none; }
.v1 .strip span { color: var(--muted); }

.v1 .section-head {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: end;
  padding: 64px 48px 24px;
  gap: 48px;
  border-bottom: 1px solid var(--ink);
}
.v1 .section-head .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.v1 .section-head .num strong { color: var(--ink); margin-right: 12px; }
.v1 .section-head h2 {
  margin: 0;
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.v1 .section-head h2 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; }
.v1 .section-head .meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  text-align: right;
}

.v1 .works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid var(--ink);
}
.v1 .work {
  border-right: 1px solid var(--ink);
  display: flex; flex-direction: column;
  position: relative;
}
.v1 .work:last-child { border-right: none; }
.v1 .work .frame { aspect-ratio: 1 / 1.1; position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.v1 .work .frame canvas { width: 100%; height: 100%; }
.v1 .work .label { padding: 16px 18px; display: flex; justify-content: space-between; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.v1 .work .label .id { color: var(--muted); }
.v1 .work .label .ttl { font-family: 'Space Grotesk', sans-serif; text-transform: none; letter-spacing: -0.01em; font-size: 14px; }
.v1 .work-large { grid-column: span 6; }
.v1 .work-med { grid-column: span 4; }
.v1 .work-small { grid-column: span 3; }

/* use cases — tag wall */
.v1 .uses {
  padding: 48px 48px 80px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}
.v1 .uses-intro {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1.7;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.v1 .uses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.v1 .use {
  padding: 24px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: baseline;
}
.v1 .use .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.v1 .use h3 { margin: 0; font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }
.v1 .use p { margin: 8px 0 0; grid-column: 2 / span 2; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.6; color: var(--muted); }
.v1 .use .arrow { font-family: 'JetBrains Mono', monospace; font-size: 14px; }

/* algorithm catalog */
.v1 .algos { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.v1 .algo { border-right: 1px solid var(--ink); padding: 0; }
.v1 .algo:last-child { border-right: none; }
.v1 .algo .vis { aspect-ratio: 4 / 3; position: relative; border-bottom: 1px solid var(--ink); overflow: hidden; }
.v1 .algo .vis canvas { width: 100%; height: 100%; }
.v1 .algo .body { padding: 20px 24px 24px; }
.v1 .algo .h { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.v1 .algo h3 { margin: 6px 0 12px; font-weight: 400; font-size: 28px; letter-spacing: -0.02em; }
.v1 .algo p { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.7; color: #2a2925; }
.v1 .algo .params { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.v1 .algo .param { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 3px 8px; border: 1px solid var(--ink); }

/* manifesto */
.v1 .manifesto { padding: 96px 48px; border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.v1 .manifesto .lhs { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.v1 .manifesto p { font-size: 32px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 300; max-width: 960px; margin: 0 0 24px; }
.v1 .manifesto p em { font-family: 'Fraunces', serif; font-style: italic; }
.v1 .manifesto .sig { margin-top: 48px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }

.v1 footer { padding: 48px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 48px; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.8; }
.v1 footer h4 { margin: 0 0 12px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.v1 footer .colophon { color: var(--muted); }
.v1 footer .big { grid-column: span 4; font-family: 'Space Grotesk', sans-serif; font-size: 140px; font-weight: 300; letter-spacing: -0.05em; line-height: 0.9; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }

/* ============================
   V2 — TERMINAL (brutalist)
============================ */
.v2 {
  --bg: #0B0B0A;
  --paper: #141413;
  --ink: #E8E5DC;
  --muted: #908C7F;
  --rule: #2A2823;
  --green: #9BE564;
  --amber: #E0A93B;
  --magenta: #FF3D8B;
  --cyan: #4FC3F7;
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
}
.v2 .topbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
}
.v2 .topbar .home { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.v2 .topbar .home:hover { color: var(--green); opacity: 1; }
.v2 .topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(155,229,100,0.18); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(155,229,100,0); } }
.v2 .topbar .nav { display: flex; gap: 24px; }
.v2 .topbar .nav a { opacity: 0.7; }
.v2 .topbar .nav a:hover { opacity: 1; color: var(--green); }
.v2 .topbar .clock { color: var(--muted); }
.v2 .topbar .cmd { background: var(--paper); border: 1px solid var(--rule); padding: 6px 12px; color: var(--muted); }
.v2 .topbar .cmd kbd { color: var(--ink); background: var(--rule); padding: 1px 6px; margin-left: 8px; }

.v2 .hero {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  border-bottom: 1px solid var(--rule);
  min-height: 720px;
}
.v2 .hero-left, .v2 .hero-right { padding: 24px; font-size: 11px; line-height: 1.7; }
.v2 .hero-left { border-right: 1px solid var(--rule); }
.v2 .hero-right { border-left: 1px solid var(--rule); }
.v2 .hero-canvas-wrap { position: relative; overflow: hidden; }
.v2 .hero-carousel { position: absolute; inset: 0; }
.v2 .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.v2 .hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.v2 .hero-slide canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.v2 .hero-indicators { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; pointer-events: auto; }
.v2 .hero-indicators button { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--muted); background: transparent; cursor: pointer; padding: 0; transition: background 0.3s, border-color 0.3s; }
.v2 .hero-indicators button.active { background: var(--green); border-color: var(--green); }
.v2 .hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: transparent; border: 1px solid var(--muted); color: var(--muted); font-size: 14px; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.3s, color 0.3s; }
.v2 .hero-arrow:hover { border-color: var(--green); color: var(--green); }
.v2 .hero-prev { left: 12px; }
.v2 .hero-next { right: 12px; }
.v2 .hero-indicators button:hover { border-color: var(--ink); }
.v2 .hero-engine-label { color: var(--green); font-size: 10px; letter-spacing: 0.08em; }
.v2 .hero-overlay { position: absolute; inset: 24px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; z-index: 2; }
.v2 .hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 96px;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.v2 .hero-title .accent { color: var(--green); }
.v2 .hero-title .glitch { display: inline-block; position: relative; }
.v2 .hero-foot { display: flex; justify-content: space-between; align-items: end; font-size: 11px; color: var(--muted); }
.v2 .ascii-block { white-space: pre; font-size: 10px; line-height: 1; color: var(--muted); }
.v2 .label-row { display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px dashed var(--rule); padding-bottom: 6px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.v2 .reading { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; font-size: 10.5px; }
.v2 .reading > span:nth-child(odd) { color: var(--muted); }
.v2 .reading > span:nth-child(even) { color: var(--green); }
.v2 .bar { height: 4px; background: var(--rule); margin: 4px 0; position: relative; }
.v2 .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); }

.v2 .ticker {
  border-bottom: 1px solid var(--rule);
  padding: 10px 24px;
  font-size: 11px;
  display: flex; gap: 48px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.v2 .ticker-track { display: flex; gap: 48px; animation: scroll 60s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }
.v2 .ticker .hl { color: var(--green); }

.v2 .section { border-bottom: 1px solid var(--rule); padding: 48px 24px; }
.v2 .section-head {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.v2 .section-head .num { color: var(--green); font-size: 11px; }
.v2 .section-head h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 64px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; }
.v2 .section-head .meta { color: var(--muted); font-size: 11px; text-align: right; }

.v2 .works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.v2 .work { background: var(--bg); padding: 0; cursor: pointer; transition: background 0.15s; }
.v2 .work:hover { background: var(--paper); }
.v2 .work .frame { aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.v2 .work .frame canvas { width: 100%; height: 100%; }
.v2 .work .body { padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 11px; }
.v2 .work .body .ttl { font-family: 'Space Grotesk', sans-serif; font-size: 18px; letter-spacing: -0.01em; grid-column: span 2; text-transform: none; }
.v2 .work .body .id { color: var(--muted); }
.v2 .work .body .tag { color: var(--green); }
.v2 .work .body .stats { grid-column: span 2; color: var(--muted); display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--rule); }

.v2 .uses { padding: 48px 24px; border-bottom: 1px solid var(--rule); }
.v2 .uses-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.v2 .use { background: var(--bg); padding: 24px 20px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.2s; }
.v2 .use:hover { background: var(--paper); }
.v2 .use .n { color: var(--green); font-size: 11px; }
.v2 .use h3 { margin: 16px 0 0; font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.v2 .use p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.v2 .algos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.v2 .algo { background: var(--bg); display: grid; grid-template-columns: 220px 1fr; gap: 0; padding: 8px; }
.v2 .algo .vis { position: relative; border-right: 1px solid var(--rule); }
.v2 .algo .vis canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.v2 .algo .body { padding: 24px; }
.v2 .algo .h { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.v2 .algo h3 { margin: 12px 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; }
.v2 .algo h3 .ext { color: var(--green); }
.v2 .algo p { margin: 0; font-size: 11px; line-height: 1.6; color: #C8C4BA; }
.v2 .algo .params { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.v2 .algo .param { font-size: 10px; padding: 3px 8px; border: 1px solid var(--rule); color: var(--muted); }
.v2 .algo .param.on { border-color: var(--green); color: var(--green); }

.v2 .manifesto { padding: 96px 24px; border-bottom: 1px solid var(--rule); }
.v2 .manifesto .grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.v2 .manifesto .lhs { color: var(--green); font-size: 11px; }
.v2 .manifesto p { font-family: 'Space Grotesk', sans-serif; font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; max-width: 960px; margin: 0 0 24px; text-transform: none; }
.v2 .manifesto .accent { color: var(--green); }
.v2 .manifesto p em { font-family: 'Fraunces', serif; font-style: italic; color: var(--amber); }

.v2 footer { padding: 32px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 11px; }
.v2 footer h4 { margin: 0 0 10px; font-family: 'Space Grotesk', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); font-weight: 500; }
.v2 footer .colophon { grid-column: span 4; padding-top: 32px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; color: var(--muted); margin-top: 16px; }
.v2 footer .colophon .huge { font-family: 'Space Grotesk', sans-serif; font-size: 200px; font-weight: 500; letter-spacing: -0.06em; line-height: 0.85; color: var(--ink); text-transform: uppercase; }

/* work modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: calc(100vw - 48px); max-width: 1500px;
  height: calc(100vh - 48px); max-height: 900px;
  background: #0B0B0A;
  border: 1px solid #2A2823;
  display: grid;
  grid-template-columns: 1fr 320px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  color: #E8E5DC;
  font-size: 11px;
}
.modal-close {
  position: absolute; top: 0; right: 0; z-index: 2;
  background: #141413; border: none; border-left: 1px solid #2A2823; border-bottom: 1px solid #2A2823;
  color: #E8E5DC; padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
}
.modal-close:hover { color: #9BE564; background: #1a1917; }
.modal-canvas {
  position: relative; overflow: hidden;
  border-right: 1px solid #2A2823;
}
.modal-canvas canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.modal-canvas-hint {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: #908C7F; text-transform: uppercase; letter-spacing: 0.06em;
  pointer-events: none;
}
.modal-meta {
  padding: 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
}
.modal-label {
  display: flex; justify-content: space-between;
  color: #908C7F; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px dashed #2A2823; padding-bottom: 6px;
  margin-top: 24px; margin-bottom: 12px;
}
.modal-label:first-child { margin-top: 0; }
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.1; text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-reading {
  display: grid; grid-template-columns: 1fr auto; row-gap: 6px;
  font-size: 10.5px;
}
.modal-reading > span:nth-child(odd) { color: #908C7F; text-transform: uppercase; letter-spacing: 0.06em; }
.modal-reading > span:nth-child(even) { color: #9BE564; text-align: right; }
.modal-algo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  text-transform: uppercase; margin-bottom: 8px;
}
.modal-algo-name .ext { color: #9BE564; }
.modal-algo-desc { color: #C8C4BA; font-size: 11px; line-height: 1.6; margin-bottom: 12px; }
.modal-params { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-params .param { font-size: 10px; padding: 3px 8px; border: 1px solid #2A2823; color: #908C7F; }
.modal-params .param.on { border-color: #9BE564; color: #9BE564; }
.modal-bar { height: 4px; background: #2A2823; margin: 8px 0 0; position: relative; }
.modal-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #E0A93B; }
.modal-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-swatch { display: flex; align-items: center; gap: 6px; }
.modal-swatch-color { width: 14px; height: 14px; border: 1px solid #2A2823; flex-shrink: 0; }
.modal-swatch-hex { font-size: 9.5px; color: #908C7F; letter-spacing: 0.02em; }
.modal-console {
  background: #141413; border: 1px solid #2A2823;
  padding: 12px 14px; font-size: 10px; line-height: 1.7;
  color: #908C7F; white-space: pre;
}

/* ============================
   V3 — SATURATED (riso/maximalist)
============================ */
.v3 {
  --bg: #F5E9D7;
  --bg2: #EFE0C5;
  --ink: #1A1612;
  --red: #E8412B;
  --blue: #2945D0;
  --yellow: #F5C518;
  --green: #4A8B5F;
  --pink: #FF7A9E;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}
.v3::before {
  /* paper grain via SVG noise */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.18 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; opacity: 0.5;
}

.v3 .topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 2px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}
.v3 .wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-transform: none; }
.v3 .wordmark span { color: var(--red); }
.v3 .topbar .nav { display: flex; gap: 32px; justify-content: center; }
.v3 .topbar .nav a:hover { color: var(--red); }
.v3 .topbar .cta { background: var(--ink); color: var(--bg); padding: 10px 18px; }
.v3 .topbar .cta:hover { background: var(--red); }

.v3 .hero {
  position: relative;
  height: 760px;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.v3 .hero-canvas-wrap { position: absolute; inset: 0; }
.v3 .hero-canvas-wrap canvas { width: 100%; height: 100%; }
.v3 .hero-overlay {
  position: absolute; inset: 0;
  padding: 64px 48px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
}
.v3 .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex; gap: 16px; align-items: center;
}
.v3 .kicker .pill { background: var(--ink); color: var(--bg); padding: 4px 10px; }
.v3 .kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.v3 .hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 200px;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--ink);
  align-self: end;
  text-wrap: balance;
}
.v3 .hero-title em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--red); }
.v3 .hero-title .stroke { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.v3 .hero-foot { display: flex; justify-content: space-between; align-items: end; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.v3 .hero-foot .scroll-hint { display: flex; gap: 12px; align-items: center; text-transform: uppercase; letter-spacing: 0.1em; }

.v3 .ticker {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 0;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.v3 .ticker-track { display: flex; gap: 32px; white-space: nowrap; animation: scroll 40s linear infinite; }
.v3 .ticker .star { color: var(--yellow); }
.v3 .ticker em { font-family: 'Fraunces', serif; font-style: italic; color: var(--yellow); font-weight: 300; }

.v3 .section-head { padding: 80px 48px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: end; }
.v3 .section-head .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); writing-mode: vertical-rl; transform: rotate(180deg); }
.v3 .section-head h2 { margin: 0; font-size: 96px; font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.v3 .section-head h2 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--red); }
.v3 .section-head .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; text-align: right; max-width: 240px; line-height: 1.6; }

.v3 .works {
  padding: 0 48px 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.v3 .work { position: relative; }
.v3 .work .frame { position: relative; overflow: hidden; border: 2px solid var(--ink); background: var(--bg2); aspect-ratio: 1 / 1; }
.v3 .work .frame canvas { width: 100%; height: 100%; }
.v3 .work .label { position: absolute; left: -2px; bottom: -2px; background: var(--ink); color: var(--bg); padding: 6px 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; display: flex; gap: 12px; }
.v3 .work .label .id { color: var(--yellow); }
.v3 .work .tag { position: absolute; top: 12px; right: 12px; background: var(--red); color: var(--bg); padding: 4px 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; transform: rotate(2deg); }
.v3 .work .tag.blue { background: var(--blue); }
.v3 .work .tag.yellow { background: var(--yellow); color: var(--ink); }
.v3 .work-large { grid-column: span 6; }
.v3 .work-large .frame { aspect-ratio: 1.4 / 1; }
.v3 .work-med { grid-column: span 4; }
.v3 .work-small { grid-column: span 3; }

.v3 .uses-section {
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0;
  position: relative;
}
.v3 .uses-section .section-head h2 { color: var(--bg); }
.v3 .uses-section .section-head .num { color: var(--yellow); }
.v3 .uses-section .section-head .meta { color: var(--bg); opacity: 0.6; }
.v3 .uses-grid { padding: 32px 48px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid #2a2620; }
.v3 .use {
  padding: 24px 20px 28px;
  border-right: 1px solid #2a2620;
  border-bottom: 1px solid #2a2620;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.v3 .use:nth-child(5n) { border-right: none; }
.v3 .use:hover { background: #1a1612; }
.v3 .use:hover .swatch { transform: scale(1.5) rotate(15deg); }
.v3 .use .swatch { width: 40px; height: 40px; transition: transform 0.3s; margin-bottom: 24px; }
.v3 .use:nth-child(1) .swatch { background: var(--red); }
.v3 .use:nth-child(2) .swatch { background: var(--blue); border-radius: 50%; }
.v3 .use:nth-child(3) .swatch { background: var(--yellow); transform: rotate(45deg); }
.v3 .use:nth-child(4) .swatch { background: var(--pink); border-radius: 50%; }
.v3 .use:nth-child(5) .swatch { background: var(--green); }
.v3 .use:nth-child(6) .swatch { background: var(--red); border-radius: 50%; }
.v3 .use:nth-child(7) .swatch { background: var(--blue); }
.v3 .use:nth-child(8) .swatch { background: var(--yellow); border-radius: 50%; }
.v3 .use:nth-child(9) .swatch { background: var(--pink); transform: rotate(45deg); }
.v3 .use:nth-child(10) .swatch { background: var(--green); border-radius: 50%; }
.v3 .use h3 { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.v3 .use p { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; line-height: 1.6; opacity: 0.6; }
.v3 .use .n { position: absolute; top: 16px; right: 20px; font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.4; }

.v3 .algos { padding: 0 48px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.v3 .algo {
  border: 2px solid var(--ink);
  background: var(--bg2);
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
}
.v3 .algo .vis { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); }
.v3 .algo .vis canvas { width: 100%; height: 100%; }
.v3 .algo .body { padding: 24px 28px 28px; }
.v3 .algo .h { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.v3 .algo .h .id { color: var(--blue); font-weight: 500; }
.v3 .algo h3 { margin: 8px 0 12px; font-size: 36px; font-weight: 500; letter-spacing: -0.03em; }
.v3 .algo h3 em { font-family: 'Fraunces', serif; font-style: italic; color: var(--red); font-weight: 300; }
.v3 .algo p { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.7; }
.v3 .algo .params { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.v3 .algo .param { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 4px 10px; background: var(--ink); color: var(--bg); text-transform: uppercase; letter-spacing: 0.06em; }
.v3 .algo .badge { position: absolute; top: -16px; right: 24px; background: var(--red); color: var(--bg); padding: 6px 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; transform: rotate(-3deg); border: 2px solid var(--ink); }
.v3 .algo .badge.b { background: var(--blue); }
.v3 .algo .badge.y { background: var(--yellow); color: var(--ink); }

.v3 .manifesto {
  background: var(--red);
  color: var(--bg);
  padding: 120px 48px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.v3 .manifesto .grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.v3 .manifesto .lhs { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.v3 .manifesto p { font-size: 56px; line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; max-width: 1000px; margin: 0 0 32px; }
.v3 .manifesto p em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--yellow); }
.v3 .manifesto .stamp { position: absolute; right: 48px; bottom: 48px; width: 140px; height: 140px; border: 2px solid var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: rotate(-12deg); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-align: center; line-height: 1.4; text-transform: uppercase; }

.v3 footer { padding: 64px 48px 48px; }
.v3 footer .huge { font-size: 280px; font-weight: 500; letter-spacing: -0.07em; line-height: 0.85; }
.v3 footer .huge em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--blue); }
.v3 footer .meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.7; padding-top: 48px; border-top: 2px solid var(--ink); margin-top: 48px; }
.v3 footer h4 { margin: 0 0 10px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
