/* ─────────────────────────────────────────────
   INOCULATE SITE — fusion v2.
   Specimen identity + Operating Table interactivity
   + Wire-style narrative transition.
   ───────────────────────────────────────────── */

body { background: var(--paper); color: var(--ink); overflow-x: hidden; }

/* custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--signal); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--signal) var(--paper); }

main { display: block; }

/* ── PERSISTENT CHROME ── */
.io-chrome {
  position: fixed;
  left: 0; right: 0;
  height: 56px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-2);
}
.io-chrome.bot { top: auto; bottom: 0; border-bottom: none; border-top: 1px solid var(--rule-2); }
.io-chrome.top { top: 0; }
.io-chrome .l, .io-chrome .r { display: flex; gap: 18px; align-items: center; }
.io-chrome .r { justify-content: flex-end; }
.io-chrome .m { justify-self: center; }
.io-chrome b { color: var(--ink); font-weight: 500; }
.io-chrome .signal { color: var(--signal); }
.io-chrome .l > *:not(:first-child)::before {
  content: '·'; margin-right: 18px; color: var(--rule-strong);
}

/* ── SECTION 1: THE SPECIMEN ── */
.io-specimen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  padding: 96px 0 64px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 360px;
  gap: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,1) 0%, var(--paper-2) 100%);
}
.io-specimen::before {
  content: '';
  position: absolute;
  inset: 44px 0 0 0;
  background-image:
    linear-gradient(rgba(10,9,8,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,9,8,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* LEFT: rolodex */
.io-roll {
  border-right: 1px solid var(--rule-2);
  padding: 56px 0 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.io-roll h4 {
  padding: 0 24px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.io-roll-item {
  padding: 14px 24px;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}
.io-roll-item:last-of-type { border-bottom: 1px solid var(--rule); }
.io-roll-item:hover { background: rgba(10,9,8,0.03); }
.io-roll-item.active { background: var(--ink); color: var(--paper); }
.io-roll-item .n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-bottom: 4px;
}
.io-roll-item.active .n { color: var(--mute-d); }
.io-roll-item .nm {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.io-roll-item.active .nm { color: var(--paper); }
.io-roll-item.active::before {
  content: '◉';
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--signal); font-size: 10px;
}

/* CENTER: the specimen + hero copy */
.io-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 36px 32px;
  z-index: 1;
}

.io-hero {
  padding-bottom: 28px;
}
.io-hero .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
  display: flex; gap: 12px; align-items: center;
}
.io-hero h1 {
  font-family: var(--mono);
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.io-hero h1 em { color: var(--signal); font-style: normal; }
.io-hero h1 em::before { content: '['; }
.io-hero h1 em::after { content: ']'; }
.io-hero p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mute-2);
  max-width: 580px;
  margin-top: 18px;
}
.io-hero p b { color: var(--ink); font-weight: 500; }

/* SPECIMEN CARD — pinned screenshot */
.io-card-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 8px;
}
.io-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow:
    0 26px 60px -20px rgba(10,9,8,0.25),
    0 4px 14px rgba(10,9,8,0.08);
  overflow: hidden;
  transition: transform 0.4s ease-out;
}
.io-card .scr {
  position: absolute; inset: 0;
  background: var(--paper-2);
  overflow: hidden;
}


/* ── SITE MOCKS — CSS recreations of real sites ── */
.mk {
  position: absolute; inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.mk-nav {
  display: flex; align-items: center;
  padding: 0 22px;
  height: 8%;
  gap: 18px;
  border-bottom: 1px solid currentColor;
  opacity: 0.92;
}
.mk-nav .lg { font-weight: 700; font-size: 13px; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 8px; }
.mk-nav .links { margin-left: auto; display: flex; gap: 18px; font-size: 10px; opacity: 0.65; font-weight: 500; }
.mk-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 24px; text-align: center; }
.mk-hero h1 { font-size: clamp(22px, 3.4vw, 38px); line-height: 0.96; letter-spacing: -0.025em; margin-bottom: 10px; }
.mk-hero .sub { font-size: 11px; opacity: 0.7; max-width: 320px; line-height: 1.45; margin-bottom: 16px; }
.mk-hero .eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; margin-bottom: 14px; opacity: 0.7; }
.mk-hero .pill { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 9px; font-weight: 500; margin-bottom: 16px; }
.mk-cta {
  align-self: center;
  padding: 9px 22px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid currentColor;
  margin-bottom: 4%;
}
.mk-cta-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 4%; }
.mk-cta-row .mk-cta { margin-bottom: 0; }
.mk-grid3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; padding: 0 22px 4%;
}
.mk-tile {
  height: 56px;
  border: 1px solid currentColor;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.6;
  display: flex; align-items: flex-end;
}
.mk-tile.mini { letter-spacing: 0.18em; opacity: 0.8; }
.mk-tile .p { font-weight: 500; }

/* lusion */
.mk-lusion {
  background: radial-gradient(ellipse at 30% 60%, #0a1533 0%, #020305 60%);
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
}
.mk-lusion .mk-nav {
  border-color: rgba(255,255,255,0.06);
  background: transparent;
  padding: 0 28px;
}
.mk-lusion .mk-nav .lg {
  font-size: 11px; letter-spacing: 0.14em; font-weight: 700;
}
.mk-lusion .mk-orb {
  position: absolute; left: 48%; top: 44%; transform: translate(-50%, -50%);
  width: 56%; aspect-ratio: 1/1;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, #1e3bff 80deg, #6B8CFF 140deg, transparent 200deg, #ff9a2e 280deg, transparent 340deg);
  filter: blur(28px); border-radius: 50%; opacity: 0.65;
  animation: mkSpin 20s linear infinite;
}
.mk-lusion .mk-orb-inner {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 22%; aspect-ratio: 1/1;
  background: radial-gradient(circle, #3a5fff 0%, transparent 70%);
  filter: blur(16px); border-radius: 50%; opacity: 0.9;
  animation: mkSpin 8s linear infinite reverse;
}
@keyframes mkSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mk-lusion h1 em { color: #6B8CFF; font-style: italic; font-family: 'Georgia', serif; }
.mk-lusion .mk-hero { position: relative; z-index: 2; }
.mk-lusion .mk-hero h1 { font-family: 'Georgia', serif; font-weight: 400; font-size: clamp(18px, 2.8vw, 34px); text-align: left; padding-left: 6%; }
.mk-lusion .mk-hero .sub { text-align: left; padding-left: 6%; letter-spacing: 0.18em; font-size: 9px; font-weight: 600; opacity: 0.5; }
.mk-lusion .mk-cta { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); border-radius: 100px; align-self: flex-start; margin-left: 6%; font-size: 10px; letter-spacing: 0.14em; }
.mk-lusion .mk-grid3 { position: relative; z-index: 2; }
.mk-lusion .mk-tile { border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); height: 44px; }
.mk-lusion .mk-tile .p { font-size: 8px; letter-spacing: 0.06em; font-weight: 400; opacity: 0.8; }

/* linear */
.mk-linear {
  background: linear-gradient(160deg, #1A1D2E 0%, #0E1019 50%, #070810 100%);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
}
.mk-linear .mk-nav {
  background: rgba(15,16,24,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.07);
}
.mk-linear .mk-nav .sq { width: 14px; height: 14px; background: linear-gradient(135deg,#5E6AD2,#9398DD); border-radius: 4px; }
.mk-linear .mk-nav .lg { letter-spacing: -0.01em; font-size: 14px; }
.mk-linear .pill { background: rgba(94,106,210,0.15); color: rgba(255,255,255,0.85); border: 1px solid rgba(94,106,210,0.3); font-size: 9px; }
.mk-linear .mk-hero { padding: 0 6%; align-items: flex-start; text-align: left; }
.mk-linear .mk-hero h1 { font-size: clamp(20px, 3vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.mk-linear .mk-hero .sub { text-align: left; font-size: 11px; color: rgba(255,255,255,0.55); max-width: 300px; }
.mk-linear .mk-cta.primary { background: #5E6AD2; color: #fff; border-color: #5E6AD2; border-radius: 6px; font-size: 11px; align-self: flex-start; }
.mk-linear .mk-grid3 { padding: 0 6% 4%; gap: 6px; }
.mk-linear .mk-tile { border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); font-size: 9px; height: 48px; background: rgba(255,255,255,0.02); }

/* stripe */
.mk-stripe { background: #fff; color: #0A2540; position: relative; }
.mk-stripe .mk-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at -10% 0%, rgba(152,255,214,0.85), transparent 45%),
    radial-gradient(ellipse at 60% -5%, rgba(173,191,255,0.8), transparent 50%),
    radial-gradient(ellipse at 110% 40%, rgba(80,60,255,0.5), transparent 50%),
    radial-gradient(ellipse at 40% 110%, rgba(255,100,170,0.4), transparent 55%);
}
.mk-stripe .mk-nav.stripe {
  color: #0A2540; border-color: rgba(10,37,64,0.08);
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.mk-stripe .mk-nav.stripe .lg { font-weight: 700; letter-spacing: -0.03em; font-size: 18px; font-family: 'Camphor', system-ui, sans-serif; }
.mk-stripe .mk-nav.stripe .links { font-size: 11px; font-weight: 500; color: #3C4257; }
.mk-stripe .mk-hero.stripe {
  color: #0A2540; align-items: flex-start; text-align: left;
  padding-left: 7%; position: relative; z-index: 2;
}
.mk-stripe .mk-hero.stripe h1 { font-size: clamp(22px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.025em; color: #0A2540; }
.mk-stripe .mk-hero.stripe .eyebrow { color: #635BFF; font-weight: 600; letter-spacing: 0.1em; font-size: 9px; margin-bottom: 10px; }
.mk-stripe .mk-hero.stripe .sub { text-align: left; color: #3C4257; font-size: 11px; }
.mk-stripe .mk-cta.stripe { background: #635BFF; color: #fff; border-color: #635BFF; border-radius: 100px; align-self: flex-start; margin-left: 7%; font-size: 11px; }
.mk-stripe .mk-tile.stripe { background: rgba(255,255,255,0.7); border-color: rgba(10,37,64,0.08); color: #3C4257; backdrop-filter: blur(4px); height: 52px; }
.mk-stripe .mk-grid3 { position: relative; z-index: 2; }

/* vercel */
.mk-vercel { background: #000; color: #fff; font-family: 'Geist', system-ui, sans-serif; }
.mk-vercel .mk-nav.vercel {
  border-color: rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}
.mk-vercel .mk-nav.vercel .lg { font-weight: 600; font-size: 13px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.mk-vercel .mk-nav.vercel .links { font-size: 11px; color: rgba(255,255,255,0.65); }
.mk-vercel .mk-hero.vercel { text-align: center; padding: 0 8%; }
.mk-vercel .mk-hero.vercel h1 { font-size: clamp(22px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.94; }
.mk-vercel .mk-hero.vercel h1 em { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }
.mk-vercel .mk-hero.vercel .sub { color: rgba(255,255,255,0.5); font-size: 11px; margin: 0 auto; max-width: 260px; }
.mk-vercel .mk-cta.vercel-light { background: #fff; color: #000; border-color: #fff; border-radius: 6px; font-size: 11px; font-weight: 600; }
.mk-vercel .mk-cta.vercel-dark { background: transparent; color: rgba(255,255,255,0.65); border-color: rgba(255,255,255,0.15); border-radius: 6px; font-size: 11px; }
.mk-vercel .mk-tile.vercel { border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); height: 44px; font-size: 9px; }

/* notion */
.mk-notion { background: #FEFDF9; color: #191919; font-family: ui-sans-serif, system-ui, sans-serif; }
.mk-notion .mk-nav.notion { border-color: #E6E5E0; background: rgba(254,253,249,0.85); }
.mk-notion .mk-nav.notion .lg { font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.mk-notion .mk-nav.notion .links { font-size: 11px; color: #6B6860; font-weight: 500; }
.mk-notion .mk-hero.notion { text-align: center; }
.mk-notion .mk-hero.notion h1 { font-family: 'Georgia', serif; font-weight: 400; letter-spacing: -0.015em; font-size: clamp(20px, 3vw, 38px); color: #191919; line-height: 1.05; }
.mk-notion .mk-hero.notion .sub { color: #6B6860; font-size: 11px; }
.mk-notion .mk-cta.notion-dark { background: #191919; color: #FEFDF9; border-radius: 6px; font-size: 11px; font-weight: 500; }
.mk-notion .mk-cta.notion-light { background: #FEFDF9; color: #191919; border: 1px solid #E0E0DC; border-radius: 6px; font-size: 11px; }
.mk-notion .mk-tile.notion { border-color: #E6E5E0; color: #6B6860; background: #FAFAF7; font-size: 9px; }

/* apple */
.mk-apple { background: #F5F5F7; color: #1D1D1F; font-family: 'SF Pro Display', -apple-system, system-ui, sans-serif; }
.mk-apple .mk-nav.apple {
  background: rgba(22,22,23,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7; border-bottom: none;
  height: 44px;
}
.mk-apple .mk-nav.apple .links { margin: 0 auto; gap: 20px; font-size: 9px; opacity: 0.88; font-weight: 400; letter-spacing: 0; }
.mk-apple .mk-hero.apple { background: #000; color: #fff; padding: 0; }
.mk-apple .mk-hero.apple h1 { font-weight: 600; letter-spacing: -0.01em; font-size: clamp(24px, 3.4vw, 46px); margin-bottom: 6px; color: #fff; }
.mk-apple .mk-hero.apple .sub { font-weight: 300; color: rgba(255,255,255,0.9); margin-bottom: 14px; font-size: 12px; }
.mk-apple .mk-cta.apple-primary { background: #2997FF; color: #fff; border-color: #2997FF; border-radius: 100px; font-weight: 400; padding: 7px 16px; font-size: 11px; }
.mk-apple .mk-cta.apple-link { background: transparent; color: #2997FF; border-color: transparent; padding: 7px 0; font-weight: 400; font-size: 11px; }
.mk-apple .mk-product {
  flex: 1; min-height: 80px;
  background: #000;
  position: relative;
  overflow: hidden;
}
.mk-apple .mk-product::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(40,40,60,0.6) 0%, transparent 60%);
}
.mk-apple .mk-product::after {
  content: '';
  position: absolute;
  bottom: 5%; left: 50%; transform: translateX(-50%);
  width: 26%; aspect-ratio: 1/2.1;
  background: linear-gradient(175deg, #3a3a3c 0%, #1c1c1e 40%, #111 100%);
  border-radius: 18%/9%;
  box-shadow:
    0 28px 56px -8px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* corner pins */
.io-pin {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--signal);
  border: 1px solid var(--ink);
  z-index: 4;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.io-pin.tl { top: -7px; left: -7px; }
.io-pin.tr { top: -7px; right: -7px; }
.io-pin.bl { bottom: -7px; left: -7px; }
.io-pin.br { bottom: -7px; right: -7px; }

/* INCISION ZONES — layered over screenshot */
.io-zone {
  position: absolute;
  z-index: 5;
  outline: 1.5px dashed transparent;
  background: transparent;
  cursor: crosshair;
  transition: outline-color 0.15s, background 0.15s;
}
.io-zone:hover {
  outline-color: var(--warn);
  background: rgba(199, 42, 26, 0.05);
}
.io-zone .ztag {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--paper);
  border: 1px solid var(--warn);
  padding: 2px 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.io-zone:hover .ztag { opacity: 1; }
.io-zone.locked {
  outline-color: var(--good);
  background: rgba(46, 107, 62, 0.10);
}
.io-zone.locked .ztag {
  color: var(--good);
  border-color: var(--good);
  opacity: 1;
}
.io-zone.locked::after {
  content: '✓ EXTRACTED';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--good);
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
  border: 1px solid var(--good);
}

/* tag positions: top zones tag above, bottom zones tag below */
.io-zone[data-tag-pos="top"]    .ztag { top: -22px; left: 0; }
.io-zone[data-tag-pos="bottom"] .ztag { bottom: -22px; left: 0; }
.io-zone[data-tag-pos="left"]   .ztag { top: 50%; left: -8px; transform: translate(-100%, -50%); }
.io-zone[data-tag-pos="right"]  .ztag { top: 50%; right: -8px; transform: translate(100%, -50%); }

/* SPECIMEN TAG below the card — number + name only */
.io-tag {
  margin-top: 16px;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 20px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--mute);
  align-self: flex-start;
}
.io-tag .num {
  font-size: 20px;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: -0.01em;
}
.io-tag b { color: var(--ink); font-weight: 500; font-size: 13px; }

/* RIGHT: case file + design mark tray */
.io-case {
  border-left: 1px solid var(--rule-2);
  padding: 56px 28px 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  gap: 24px;
  z-index: 2;
  overflow-y: auto;
  max-height: calc(100vh - 44px);
}
.io-case h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between;
}
.io-case h4 .ct { color: var(--signal); }

.io-case .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rule);
}
.io-case .row:last-of-type { border-bottom: none; }
.io-case .row .nm { color: var(--mute-2); }
.io-case .row .vl { color: var(--ink); font-weight: 500; }
.io-case .row .vl.signal { color: var(--signal); }

.io-tray-empty {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--mute);
  padding: 10px 0 4px;
}
.io-tray-empty b { color: var(--ink); font-weight: 500; }

.io-extract {
  position: relative;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  padding: 12px 14px 14px;
  animation: extractIn 0.45s cubic-bezier(.22,1,.36,1);
}
@keyframes extractIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.io-extract::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--signal);
}
.io-extract .eh {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.io-extract .etag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--signal);
  text-transform: uppercase;
}
.io-extract .estamp {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--mute);
}
.io-extract .ejson {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  color: var(--mute-2);
  white-space: pre-wrap;
  padding: 8px 10px;
  background: var(--paper-2);
  border-left: 2px solid var(--signal);
}
.io-extract .ejson .k { color: var(--signal); }
.io-extract .ejson .s { color: var(--warn); }
.io-extract .ejson .n { color: var(--good); }

.io-complete {
  border: 1px solid var(--good);
  padding: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--good);
  letter-spacing: 0.04em;
  text-align: center;
}
.io-complete b { color: var(--ink); font-weight: 500; }

/* continue cue at bottom of specimen section */
.io-continue {
  position: absolute;
  bottom: 60px; left: 50%; transform: translateX(-50%);
  z-index: 8;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}
.io-continue.show {
  opacity: 1;
  pointer-events: auto;
  animation: bobDown 1.8s ease-in-out infinite;
}
.io-continue b { color: var(--signal); font-weight: 500; }
.io-continue .arrow {
  font-size: 18px;
  color: var(--signal);
}
@keyframes bobDown {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ─────────────────────────────────────────────
   SECTION 2: THE NARRATIVE (horizontal wire)
   ───────────────────────────────────────────── */
.io-narrative {
  position: relative;
  height: 600vh;       /* 6 stations × 100vh worth of scroll */
  background: var(--paper);
  border-top: 1px solid var(--rule-2);
}
.io-narrative-sticky {
  position: sticky;
  top: 44px;           /* allow chrome to stay visible */
  height: calc(100vh - 44px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.io-narrative-prog {
  height: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--rule-2);
  background: var(--paper);
}
.io-narrative-prog b { color: var(--ink); font-weight: 500; }
.io-narrative-prog .signal { color: var(--signal); }
.io-narrative-prog .rail {
  height: 1px;
  background: var(--rule-2);
  position: relative;
}
.io-narrative-prog .rail .fl {
  position: absolute; inset: 0 auto 0 0;
  background: var(--signal);
  transition: width 0.3s ease-out;
}
.io-narrative-prog .ticks {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between;
}
.io-narrative-prog .tick {
  width: 1px; height: 6px; background: var(--mute);
  position: relative; top: -2.5px;
}
.io-narrative-prog .tick.passed { background: var(--signal); height: 12px; top: -5.5px; }

.io-narrative-track {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  /* width set by JS based on station count */
  will-change: transform;
}
.io-station {
  flex-shrink: 0;
  width: 100vw;
  min-height: 0;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule-2);
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(10,9,8,0.04) 47px 48px);
}
.io-station:last-child { border-right: none; }
.io-station-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 36px;
  display: flex; gap: 18px; align-items: baseline;
}
.io-station-header .num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: -0.01em;
}
.io-station-header b { color: var(--ink); font-weight: 500; }
.io-station-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* station 01 — what is a design mark */
.st-define {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.st-define h2 {
  font-family: var(--mono);
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.st-define h2 em { color: var(--signal); font-style: normal; }
.st-define h2 em::before { content: '['; }
.st-define h2 em::after  { content: ']'; }
.st-define p {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--mute-2);
  max-width: 480px;
}
.st-define p b { color: var(--ink); font-weight: 500; }

.st-define .schema {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.st-define .schema .k { color: var(--signal); }
.st-define .schema .s { color: var(--warm); }
.st-define .schema .c { color: var(--mute-d); font-style: italic; }
.st-define .schema .p { color: var(--mute-d); }

/* station 02 — how it works */
.st-how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.st-how h2 {
  font-family: var(--mono);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.st-how h2 em { color: var(--signal); font-style: normal; }
.st-how .steps {
  display: flex; flex-direction: column; gap: 0;
}
.st-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.st-step:last-child { border-bottom: 1px solid var(--rule); }
.st-step .num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: -0.005em;
}
.st-step h3 {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.st-step p {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mute-2);
}

/* station 03 — who it's for */
.st-who h2 {
  font-family: var(--mono);
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 36px;
}
.st-who h2 em { color: var(--signal); font-style: normal; }
.st-who .cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.st-who .card {
  border: 1px solid var(--rule-2);
  background: var(--paper);
  padding: 24px 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, transform 0.2s;
}
.st-who .card:hover { border-color: var(--ink); transform: translateY(-2px); }
.st-who .card .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}
.st-who .card .h {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.st-who .card .p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--mute-2);
  flex: 1;
}
.st-who .card .stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.st-who .card .stat b {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}

/* station 03 — what we built (build log) */
.st-build {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.st-build h2 {
  font-family: var(--mono);
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.st-build h2 em { color: var(--signal); font-style: normal; }

.build-log {
  background: var(--ink);
  border: 1px solid var(--rule-strong);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--rule-d);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-d);
}
.log-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--good);
  letter-spacing: 0.18em;
}
.log-status .dot { background: var(--good); }

.log-entry {
  display: grid;
  grid-template-columns: 96px 18px 1fr 90px;
  gap: 0 12px;
  align-items: baseline;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule-d);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  transition: background 0.1s;
}
.log-entry:last-child { border-bottom: none; }
.log-entry:hover { background: rgba(244,239,229,0.04); }

.log-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mute-d2);
  white-space: nowrap;
}
.log-arrow { color: var(--signal); }
.log-text { color: var(--paper); line-height: 1.45; }
.log-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--signal);
  align-self: center;
}
.log-entry:last-child .log-tag { color: var(--good); }
.log-entry:last-child .log-arrow { color: var(--good); }

.build-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  margin-top: auto;
}
.bstat {
  background: var(--paper);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bstat-num {
  font-family: var(--mono);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  color: var(--signal);
  letter-spacing: -0.02em;
  line-height: 1;
}
.bstat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* station 04 — manifesto */
.st-mani {
  display: flex;
  align-items: center;
  height: 100%;
}
.st-mani-text {
  font-family: var(--mono);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 1100px;
}
.st-mani-text em { color: var(--signal); font-style: normal; }
.st-mani-text em::before { content: '['; }
.st-mani-text em::after { content: ']'; }
.st-mani-text .sig {
  display: block;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

/* station 05 — cta */
.st-cta {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.st-cta h2 {
  font-family: var(--mono);
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.st-cta h2 em { color: var(--signal); font-style: normal; }
.st-cta h2 em::before { content: '['; }
.st-cta h2 em::after { content: ']'; }
.st-cta p {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--mute-2);
  max-width: 540px;
}
.st-cta .btns {
  display: flex; gap: 12px;
  margin-top: 12px;
}

/* ── CARD CLICK HINT ── */
.io-card { cursor: pointer; }
.io-card-hint {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,229,0.55);
  background: rgba(10,9,8,0.55);
  padding: 4px 10px;
  border: 1px solid rgba(244,239,229,0.12);
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.io-card:hover .io-card-hint { opacity: 1; }

/* ── FULLSCREEN OVERLAY — animation driven by Web Animations API ── */
.io-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0A0908;
  display: flex;
  flex-direction: column;
  clip-path: inset(0% 0% 0% 0%); /* default full — JS animates from card bounds */
}
.io-fs-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 44px;
  background: rgba(10,9,8,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  transform-origin: top;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,229,0.45);
}
.io-fs-chrome-l {
  display: flex;
  gap: 20px;
  align-items: center;
}
.io-fs-chrome-l b { color: var(--signal); font-weight: 500; }
.io-fs-hint {
  color: rgba(244,239,229,0.25);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.io-fs-close {
  background: none;
  border: 1px solid rgba(244,239,229,0.15);
  color: rgba(244,239,229,0.5);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.io-fs-close:hover {
  border-color: rgba(244,239,229,0.6);
  color: rgba(244,239,229,0.9);
}
.io-fs-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  transform-origin: center top;
}
.io-fs-img-wrap {
  position: relative;
  width: 100%;
}
.io-fs-img {
  display: block;
  width: 100%;
  height: auto;
}
/* fullscreen zone overlays */
.io-fs-zone {
  position: absolute;
  cursor: crosshair;
  outline: 1.5px dashed transparent;
  transition: outline-color 0.12s, background 0.12s;
  z-index: 10;
}
.io-fs-zone:hover {
  outline-color: var(--warn);
  background: rgba(199,42,26,0.08);
}
.io-fs-zone .fztag {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(10,9,8,0.88);
  border: 1px solid var(--warn);
  padding: 3px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.io-fs-zone:hover .fztag { opacity: 1; }
.io-fs-zone.locked {
  outline-color: var(--good);
  background: rgba(46,107,62,0.10);
}
.io-fs-zone.locked .fztag {
  color: var(--good);
  border-color: var(--good);
  opacity: 1;
}
.fztag-top    { top: -24px; left: 0; }
.fztag-bottom { bottom: -24px; left: 0; }
.fztag-left   { top: 50%; left: -8px; transform: translate(-100%, -50%); }
.fztag-right  { top: 50%; right: -8px; transform: translate(100%, -50%); }

/* ── CLI TERMINAL — station 03 ── */
.st-cli {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  height: 100%;
}
.st-cli-left { display: flex; flex-direction: column; gap: 20px; }
.st-cli h2 {
  font-family: var(--mono);
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.st-cli h2 em { color: var(--signal); font-style: normal; }
.st-cli h2 em::before { content: '['; }
.st-cli h2 em::after { content: ']'; }
.st-cli .tagline {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.62;
  color: var(--mute-2);
  max-width: 400px;
}
.cli-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  margin-top: 4px;
}
.cstat {
  background: var(--paper);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cstat-n {
  font-family: var(--mono);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
  color: var(--signal);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cstat-l {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
/* the terminal widget */
.cli-terminal {
  background: #0D0C0B;
  border: 1px solid rgba(244,239,229,0.1);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.62;
  color: rgba(244,239,229,0.7);
  overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.5);
}
.cli-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cli-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cli-dot.r { background: #FF5F57; }
.cli-dot.y { background: #FFBD2E; }
.cli-dot.g { background: #28CA41; }
.cli-titlebar-label {
  margin-left: 10px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.cli-body {
  padding: 16px 20px 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.cli-prompt-row { display: flex; align-items: baseline; margin-bottom: 2px; }
.cli-prompt { color: var(--signal); user-select: none; }
.cli-cmd { color: rgba(244,239,229,0.9); }
.cli-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--signal);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cli-line { display: block; white-space: pre; }
.cli-line.good   { color: #4ade80; }
.cli-line.signal { color: var(--signal); }
.cli-line.mute   { color: rgba(244,239,229,0.2); }
.cli-line.dim    { color: rgba(244,239,229,0.42); }
/* bar rows */
.cli-bar-row {
  display: grid;
  grid-template-columns: 82px 1fr 46px;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  margin-bottom: 2px;
}
.cli-bar-label { color: rgba(244,239,229,0.45); white-space: nowrap; }
.cli-bar-track-text {
  color: var(--signal);
  font-size: 9px;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
}
.cli-bar-val { color: var(--signal); text-align: right; font-size: 11px; }
/* done + replay */
.cli-done { display: flex; flex-direction: column; }
.cli-replay {
  align-self: flex-start;
  margin-top: 10px;
  padding: 4px 12px;
  border: 1px solid rgba(244,239,229,0.15);
  color: rgba(244,239,229,0.4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  transition: border-color 0.1s, color 0.1s;
}
.cli-replay:hover { border-color: var(--signal); color: var(--signal); }

/* ── VIEW DESIGN MARK trigger (io-continue area) ── */
.io-dm-trigger {
  background: var(--signal);
  color: var(--paper);
  border: none;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 20px 48px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: center;
}
.io-dm-trigger:hover { background: var(--ink); transform: translateY(-1px); }

/* ── DESIGN MARK MODAL ── */
.io-dm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10,9,8,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dmFadeIn 0.22s ease;
}
@keyframes dmFadeIn { from { opacity: 0 } to { opacity: 1 } }
.io-dm-dialog {
  width: min(820px, 92vw);
  max-height: 86vh;
  background: var(--ink);
  border: 1px solid var(--rule-d);
  display: flex;
  flex-direction: column;
  animation: dmSlideUp 0.3s cubic-bezier(.22,1,.36,1);
}
@keyframes dmSlideUp {
  from { transform: translateY(14px); opacity: 0 }
  to   { transform: none; opacity: 1 }
}
.io-dm-chrome {
  height: 44px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--rule-d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-d);
  flex-shrink: 0;
}
.io-dm-chrome-l { display: flex; gap: 20px; align-items: center; }
.io-dm-chrome-l b { color: var(--signal); font-weight: 500; }
.io-dm-chrome-r { color: var(--mute-d2); font-size: 9px; letter-spacing: 0.12em; }
.io-dm-scroll {
  overflow-y: auto;
  flex: 1;
}
.io-dm-loading {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mute);
  padding: 48px 20px;
  text-align: center;
}
.io-dm-pre {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.82;
  padding: 28px 32px;
  white-space: pre;
  color: rgba(244,239,229,0.62);
  margin: 0;
}
.io-dm-pre .k { color: var(--signal); }
.io-dm-pre .s { color: #f9a825; }
.io-dm-pre .n { color: #81c784; }
.io-dm-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--rule-d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-d2);
}
.io-dm-actions { display: flex; gap: 8px; }
.io-dm-copy {
  background: var(--signal);
  color: var(--paper);
  border: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.12s;
  min-width: 108px;
}
.io-dm-copy:hover   { background: rgba(25,71,255,0.8); }
.io-dm-copy.copied  { background: var(--good); }
.io-dm-close-btn {
  background: none;
  border: 1px solid var(--rule-d);
  color: var(--mute-d);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.io-dm-close-btn:hover { border-color: var(--mute-d2); color: var(--paper); }

/* ── BEFORE / AFTER comparison ── */
.io-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  align-self: center;
}
.io-ba-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.io-ba-badge {
  padding: 1px 5px;
  border: 1px solid;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.io-ba-badge.before { color: var(--mute); border-color: var(--rule-2); }
.io-ba-badge.after  { color: var(--signal); border-color: var(--signal); }
.io-ba-mock {
  height: 210px;
  overflow: hidden;
  border: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
}
/* before: generic AI */
.io-ba-b { background: #ffffff; }
.io-ba-b .m-nav {
  height: 34px; background: #f8f9fa; border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; flex-shrink: 0;
}
.io-ba-b .m-logo {
  width: 22px; height: 22px; background: #2563eb; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-family: sans-serif; font-weight: 700;
}
.io-ba-b .m-cta {
  background: #2563eb; color: #fff; font-family: var(--mono);
  font-size: 9px; font-weight: 500; padding: 5px 10px; border-radius: 6px;
}
.io-ba-b .m-hero { padding: 16px 14px 10px; flex: 1; }
.io-ba-b .m-hl {
  font-family: -apple-system, 'Inter', sans-serif;
  font-size: 16px; font-weight: 700; color: #111827;
  margin-bottom: 5px; line-height: 1.2;
}
.io-ba-b .m-sub {
  font-family: -apple-system, sans-serif;
  font-size: 10px; color: #6b7280; margin-bottom: 11px;
  line-height: 1.4; max-width: 150px;
}
.io-ba-b .m-btn {
  display: inline-block; background: #2563eb; color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
}
.io-ba-b .m-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: 0 14px 10px;
}
.io-ba-b .m-card {
  height: 38px; background: #f9fafb;
  border: 1px solid #e5e7eb; border-radius: 8px;
}
/* after: design mark applied */
.io-ba-a { background: #000000; }
.io-ba-a .m-nav {
  height: 34px; background: #000; border-bottom: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; flex-shrink: 0;
}
.io-ba-a .m-logo {
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: #fff; letter-spacing: -0.04em;
}
.io-ba-a .m-cta {
  background: #fff; color: #000; font-family: var(--mono);
  font-size: 9px; font-weight: 500; padding: 5px 10px; border-radius: 100px;
}
.io-ba-a .m-hero { padding: 16px 14px 10px; flex: 1; }
.io-ba-a .m-hl {
  font-family: var(--mono); font-size: 14px; font-weight: 800;
  color: #fff; letter-spacing: -0.04em; margin-bottom: 5px; line-height: 1.1;
}
.io-ba-a .m-sub {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.55); margin-bottom: 11px; line-height: 1.4; max-width: 150px;
}
.io-ba-a .m-btn {
  display: inline-block; background: #fff; color: #000;
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  padding: 6px 12px; border-radius: 100px;
}
.io-ba-a .m-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: 0 14px 10px;
}
.io-ba-a .m-card {
  height: 38px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 0;
}

/* ── DESIGN MARK row in case file ── */
.io-dm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-top: 16px;
}
.io-dm-row h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.io-dm-skip {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.12s;
}
.io-dm-skip:hover { opacity: 0.65; }

/* ── REBRAND station ── */
.io-station-rebrand { overflow: hidden; }
.st-rebrand {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.st-rebrand-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.st-rebrand-left h2 {
  font-family: var(--mono);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 20px;
}
.st-rebrand-left h2 em { color: var(--signal); font-style: normal; }
.st-rebrand-left h2 em::before { content: '['; }
.st-rebrand-left h2 em::after  { content: ']'; }
.st-rebrand-left p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.62;
  color: var(--mute-2);
  margin-bottom: 14px;
}
.st-rebrand-left p b { color: var(--ink); font-weight: 500; }
.rb-add-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 13px 20px;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
  margin-top: 8px;
  text-align: left;
}
.rb-add-btn:hover { background: var(--signal); }
.rb-add-btn .rb-prompt { color: var(--signal); margin-right: 2px; }
.rb-add-btn:hover .rb-prompt { color: rgba(255,255,255,0.7); }
.rb-add-btn .rb-url { color: rgba(244,239,229,0.55); }
.rb-add-btn .rb-arrow { color: var(--signal); margin-left: 4px; }
.rb-add-btn:hover .rb-arrow { color: rgba(255,255,255,0.9); }
.rb-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* design mark panel (right side of rebrand station) */
.rb-mark-panel {
  background: var(--ink);
  border: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.rb-mark-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 40px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--rule-d);
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-d);
}
.rb-mark-chrome-l {
  display: flex;
  gap: 20px;
  align-items: center;
}
.rb-mark-chrome-l b { color: var(--signal); font-weight: 500; }
.rb-mark-file {
  color: var(--mute-d2);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: none;
}
.rb-mark-pre {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.82;
  white-space: pre;
  color: rgba(244,239,229,0.55);
  margin: 0;
}
.rb-mark-pre .k { color: var(--signal); }
.rb-mark-pre .s { color: #f9a825; }
.rb-mark-pre .n { color: #81c784; }

/* ── DESIGN IDENTITY CARD ── */
.dm-id-card { overflow: hidden; }
.dm-id-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  gap: 0;
  min-height: 0;
}
.dm-id-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}
.dm-id-section:last-child { border-bottom: none; }
.dm-id-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-d);
  margin-bottom: 12px;
}
.dm-id-swatches {
  display: flex;
  gap: 12px;
  flex: 1;
}
.dm-id-swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dm-id-swatch-block {
  flex: 1;
  min-height: 48px;
  border-radius: 0;
}
.dm-id-swatch-name {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(244,239,229,0.4);
  text-transform: lowercase;
}
.dm-id-swatch-val {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(244,239,229,0.25);
}
.dm-id-typo-face {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: rgba(244,239,229,0.9);
  letter-spacing: -0.01em;
}
.dm-id-typo-scale {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute-d);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.dm-id-bottom {
  flex-direction: row;
  gap: 40px;
}
.dm-id-col { flex: 1; }
.dm-id-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dm-id-stat span {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(244,239,229,0.6);
  letter-spacing: 0.04em;
}
.dm-id-motion-stmt {
  font-size: 9px !important;
  color: rgba(244,239,229,0.35) !important;
  line-height: 1.5;
  margin-top: 4px;
}

/* ── INLINE JOIN FORM — station 06 ── */
.join-pill {
  display: flex;
  align-items: stretch;
  background: var(--signal);
  border: none;
  width: fit-content;
  overflow: hidden;
  transition: box-shadow 0.2s;
  margin-top: 8px;
}
.join-pill-input {
  width: 0;
  max-width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  outline: none;
  transition: max-width 0.45s cubic-bezier(0.22,1,0.36,1),
              opacity 0.3s ease 0.18s,
              padding 0.45s cubic-bezier(0.22,1,0.36,1);
}
.join-pill-input::placeholder { color: rgba(255,255,255,0.5); }
.join-pill--open .join-pill-input {
  max-width: 260px;
  width: 260px;
  opacity: 1;
  padding: 0 20px;
}
.join-pill-btn {
  background: var(--signal);
  color: var(--paper);
  border: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 20px 36px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, padding 0.45s cubic-bezier(0.22,1,0.36,1);
}
.join-pill--open .join-pill-btn { padding: 20px 24px; font-size: 18px; letter-spacing: 0; }
.join-pill-btn:disabled { opacity: 0.6; cursor: default; }
.join-success {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--signal);
  margin-top: 8px;
  animation: fadeUp 0.4s ease-out both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── DICTIONARY LOADER ── */
.l-dict {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 520px;
  max-width: 90vw;
}
.l-dict-word {
  font-family: var(--mono);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  min-height: 1.1em;
}
.l-dict-meta {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 14px;
}
.l-dict-pron {
  color: var(--mute-2);
  font-style: italic;
}
.l-dict-pos {
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.l-dict-def {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  white-space: pre;
  min-height: 2.5em;
  border-left: 2px solid var(--signal);
  padding-left: 18px;
  letter-spacing: 0.005em;
}

/* ── Inoculate wordmark component ── */
.ino-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: normal;
}

/* responsive */
@media (max-width: 1100px) {
  .io-specimen { grid-template-columns: 1fr; }
  .io-roll, .io-case { display: none; }
  .st-define, .st-how, .st-cli, .st-rebrand { grid-template-columns: 1fr; }
  .st-who .cards { grid-template-columns: 1fr; }
}
