/* ============================================================
   code.store — deck
   ============================================================ */

:root {
  --paper:    #f3f1ea;
  --paper-2:  #eceae1;
  --paper-3:  #e3dfd2;
  --ink:      #16130f;
  --ink-2:    #4a443c;
  --ink-3:    #8a8377;
  --accent:   #ff00b0;
  --accent-2: #fe01af;
  --hair:     rgba(22,19,15,0.14);
  --hair-2:   rgba(22,19,15,0.06);
  --shadow:   0 2px 14px rgba(22,19,15,.06), 0 24px 60px -28px rgba(22,19,15,.18);

  --hdr-h: 52px;
  --ftr-h: 52px;
  --pad:   clamp(28px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- top progress bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(22,19,15,.06); z-index: 50;
}
.topbar #topbar-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff62cc);
  width: 0%; transition: width .55s cubic-bezier(.6,.05,.1,1);
  box-shadow: 0 0 12px rgba(255,0,176,.55);
}

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 2.4vw, 32px);
  z-index: 40;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair);
  background: rgba(243,241,234,.92);
  backdrop-filter: blur(6px);
}
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 12px; }
.hdr-mark { color: var(--ink); font-weight: 700; letter-spacing: .12em; }
.hdr-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,0,176,.5); opacity: 1; }
  50%     { box-shadow: 0 0 0 6px rgba(255,0,176,0); opacity: .5; }
}
.hdr-sub { color: var(--ink-3); }
.hdr-meta { color: var(--ink-3); }

.burger {
  width: 34px; height: 28px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  border: 1px solid var(--hair); background: transparent;
  cursor: pointer; padding: 6px;
  transition: border-color .2s ease, background .2s ease;
}
.burger span {
  display: block; height: 1.5px; background: var(--ink); width: 100%;
  transition: transform .25s ease, opacity .25s ease;
}
.burger:hover { border-color: var(--accent); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- menu ---------- */
.menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(460px, 94vw);
  background: var(--paper);
  border-left: 1px solid var(--hair);
  box-shadow: -28px 0 60px -30px rgba(22,19,15,.25);
  transform: translateX(101%);
  transition: transform .42s cubic-bezier(.16,1,.3,1);
  z-index: 45;
  display: flex; flex-direction: column;
  padding-top: var(--hdr-h);
}
.menu.open { transform: translateX(0); }
.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 14px;
  border-bottom: 1px solid var(--hair);
}
.menu-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink-3);
}
.menu-close {
  width: 28px; height: 28px; line-height: 1;
  font-size: 22px; background: transparent; border: 0; cursor: pointer;
  color: var(--ink-2);
}
.menu-list {
  list-style: none; flex: 1; overflow: hidden;   /* single column, no scroll */
  padding: clamp(6px, 1.2vh, 14px) 22px;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.menu-group { display: flex; flex-direction: column; min-width: 0; }

/* first-order item: icon + number + label */
.mg-head {
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0;
  border-left: 2px solid transparent;
  padding: clamp(6px, 1vh, 9px) 12px;
  transition: background .15s ease, border-color .15s ease;
}
.mg-head:hover { background: var(--paper-2); border-left-color: var(--ink-3); }
.mg-head.active { background: var(--paper-2); border-left-color: var(--accent); }
.mg-ico { width: 20px; height: 20px; color: var(--ink-2); flex-shrink: 0; }
.mg-head:hover .mg-ico { color: var(--ink); }
.mg-head.active .mg-ico { color: var(--accent); }
.mg-n {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; color: var(--ink-3); letter-spacing: .12em;
  min-width: 20px;
}
.mg-head.active .mg-n { color: var(--accent); }
.mg-t { font-size: 16px; color: var(--ink); font-weight: 500; line-height: 1.2; }

/* nested case-study / step items */
.mg-sub {
  display: flex; flex-direction: column;
  margin: 0 0 1px 24px;
  border-left: 1px solid var(--hair);
}
.mg-subitem {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0;
  padding: clamp(4px, .7vh, 6px) 12px;
  color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.mg-subitem:hover { color: var(--ink); background: var(--paper-2); }
.mg-subitem.active { color: var(--accent); }
.ms-n {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px; color: var(--ink-3); letter-spacing: .12em; min-width: 16px;
}
.mg-subitem.active .ms-n { color: var(--accent); }
.ms-t { font-size: 13.5px; line-height: 1.2; }
.menu-foot {
  padding: 18px 28px; border-top: 1px solid var(--hair);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em;
  display: flex; flex-direction: column; gap: 6px;
}
.menu-foot kbd {
  font-family: inherit; font-size: 10px;
  border: 1px solid var(--hair); padding: 2px 6px; margin-right: 2px;
  background: var(--paper-2);
}

/* ---------- footer ---------- */
.ftr {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--ftr-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 clamp(18px, 2.4vw, 32px);
  z-index: 40;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(243,241,234,.94);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--hair);
}
.ftr-left, .ftr-right { display: flex; align-items: center; gap: 12px; }
.ftr-right { justify-content: flex-end; }
.ftr-mark { color: var(--ink); font-weight: 700; letter-spacing: .12em; }
.ftr-sep { color: var(--ink-3); }
.ftr-tag { color: var(--ink-3); }
.ftr-counter em { color: var(--accent); font-style: normal; margin: 0 4px; }
.ftr-counter #ftr-cur { color: var(--ink); font-weight: 700; }
.ascii-bar {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--ink-2); letter-spacing: 0;
  white-space: pre;
}
.ascii-bar .filled { color: var(--accent); }
.ascii-bar .empty  { color: rgba(22,19,15,.20); }

/* ---------- edge click zones ---------- */
.edge {
  position: fixed; top: var(--hdr-h); bottom: var(--ftr-h);
  width: 8vw; max-width: 110px;
  background: transparent; border: 0; cursor: pointer;
  z-index: 20; opacity: 0;
}
.edge-l { left: 0; cursor: w-resize; }
.edge-r { right: 0; cursor: e-resize; }

/* ---------- deck / slides ---------- */
.deck {
  position: fixed; inset: 0;
  padding-top: var(--hdr-h);
  padding-bottom: var(--ftr-h);
  overflow: hidden;
}
.slide {
  position: absolute;
  top: var(--hdr-h); bottom: var(--ftr-h);
  left: 0; right: 0;
  padding: clamp(20px, 3vh, 36px) var(--pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.16,1,.3,1), visibility .55s;
  overflow: hidden;
}
.slide.active {
  opacity: 1; visibility: visible; transform: none;
  z-index: 5;
}
.slide-inner {
  position: relative;
  width: 100%; height: 100%;
  max-width: 1480px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: clamp(14px, 2.2vh, 28px);
}
.slide-inner.center {
  justify-content: center; align-items: flex-start; text-align: left;
}

/* ---------- common typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow.light { color: rgba(255,255,255,.78); }
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,0,176,.18);
}
.h-main {
  font-family: "Fraunces", "Space Grotesk", serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 22ch;
}
.h-case {
  font-family: "Fraunces", "Space Grotesk", serif;
  font-weight: 500;
  font-size: clamp(30px, 3.7vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.h-display {
  font-family: "Fraunces", "Space Grotesk", serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 19ch;
  color: #fff;
}
.hl {
  background: linear-gradient(180deg, transparent 62%, rgba(255,0,176,.30) 62%, rgba(255,0,176,.30) 92%, transparent 92%);
  padding: 0 .05em;
  color: var(--ink);
}
.h-display .hl { color: #fff; background: linear-gradient(180deg, transparent 62%, rgba(255,0,176,.55) 62%, rgba(255,0,176,.55) 92%, transparent 92%); }
.amp { color: var(--accent); font-style: italic; font-family: "Fraunces", serif; }
.lede {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
}
.col p {
  font-size: clamp(14.5px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}
.col p + p { margin-top: .7em; }
.footnote {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 6px;
}
.today {
  font-family: "Fraunces", serif;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  max-width: 40ch;
}
/* slide 1: flags line under the phrase, bottom-aligned with the photo */
.slide-1 .grid-2 { align-items: end; }
/* shared-width block so the flags row matches the phrase width exactly */
.today-block { width: 100%; max-width: 42ch; }
.today-block .today { max-width: none; }
.flags {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}
.flags img {
  height: 22px; width: auto; display: block;
  border: 1px solid var(--hair);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(22,19,15,.12);
}
.today b { font-weight: 600; color: var(--accent); }
.link {
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
}
.link:hover { color: var(--accent); }

/* ---------- pills ---------- */
.topline { display: flex; gap: 10px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--paper-2);
  color: var(--ink-2);
}
.pill em { font-style: normal; color: var(--accent); letter-spacing: .18em; font-weight: 700; }
.pill-accent {
  background: #fff;
  border-color: rgba(255,0,176,.25);
  color: var(--ink);
}
.pill-accent::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: -2px;
  box-shadow: 0 0 0 3px rgba(255,0,176,.18);
}
.hdr-logo {
  height: clamp(18px, 1.7vw, 24px);
  width: auto;
  display: block;
  /* logo art is a flat white mask — recolor to ink for the light header */
  filter: brightness(0);
  opacity: .9;
}

.pill-ghost { background: transparent; }
.pill-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  letter-spacing: .14em;
  display: inline-flex; align-items: center; gap: 8px;
}
.pill-ico { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  flex: 1;
}
.grid-2.tight { align-items: start; gap: clamp(24px, 3vw, 48px); }
.col { display: flex; flex-direction: column; gap: 12px; }

/* ---------- KPI ---------- */
.kpi-row {
  display: flex; gap: clamp(18px, 2vw, 36px);
  margin-top: 10px;
  border-top: 1px solid var(--hair);
  padding-top: 16px;
}
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-n {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.kpi-l {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--ink-3);
}

/* ---------- frame (team photo) ---------- */
.frame {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame img {
  width: 100%; height: auto;
  filter: grayscale(.1) contrast(1.02);
  display: block;
}
.frame-corner {
  position: absolute; width: 18px; height: 18px;
  border: 1.5px solid var(--accent);
}
.frame-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.frame-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.frame-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.frame-tag {
  position: absolute; bottom: 10px; right: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: rgba(22,19,15,.7);
  padding: 4px 8px;
}

/* ---------- slide 0 — cover (reuse example) ---------- */
.slide-0 { padding: 0; }
.slide-0 .hero {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: clamp(26px, 4vh, 56px);
  padding: clamp(60px, 11vh, 140px) 4vw 6vh;
  pointer-events: none;
  z-index: 4;
}
.slide-0 #ocean {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; display: block;
}
.slide-0 .logo-wrap {
  position: relative; width: min(1120px, 90vw);
  opacity: 0; transform: translateY(10px) scale(0.985);
  animation: rise 1.5s cubic-bezier(.16,1,.3,1) .25s forwards;
}
.slide-0 #logo { display: block; width: 100%; height: auto; }
@keyframes rise { to { opacity: 1; transform: none; } }
.slide-0 .tagline {
  display: flex; align-items: center; gap: 16px;
  opacity: 0; animation: fade 1.4s ease .95s forwards;
}
.slide-0 .tagline .rule {
  width: clamp(36px, 7vw, 84px); height: 1px;
  background: var(--ink); opacity: .55;
}
.slide-0 .tagline .rule.accent { background: var(--accent); opacity: 1; }
.slide-0 .tagline p {
  font-size: clamp(17px, 2.2vw, 28px);
  letter-spacing: .01em; font-weight: 400;
  white-space: nowrap;
}
.slide-0 .tagline p b { font-weight: 600; }
@keyframes fade { to { opacity: 1; } }

/* paper vignette on cover */
.slide-0::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.9), rgba(255,255,255,0) 55%),
    radial-gradient(100% 60% at 50% 120%, rgba(236,234,225,.7), rgba(236,234,225,0) 60%);
  pointer-events: none; z-index: 3;
}

/* ---------- canvas backgrounds ---------- */
.bg-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}

/* ---------- slide 2 — cards ---------- */
.slide-2 .slide-inner { position: relative; z-index: 2; }
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  align-items: stretch;
  margin-top: 10px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair);
  padding: clamp(14px, 1.2vw, 20px);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* team banner filling remaining vertical space */
.how-banner {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}
.how-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(.15) contrast(1.02);
}
.how-banner .frame-corner { width: 20px; height: 20px; }
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 30px; height: 30px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,0,176,.35);
  box-shadow: 0 4px 16px rgba(22,19,15,.06), 0 30px 60px -28px rgba(255,0,176,.35);
}
.card-h { display: flex; align-items: baseline; gap: 14px; }
.card-n {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .2em; color: var(--accent);
}
.card h3 {
  font-family: "Fraunces", serif;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.1;
}
.card p {
  font-size: clamp(13.5px, 1vw, 15.5px);
  line-height: 1.55; color: var(--ink-2);
}

/* ---------- slide 3 — rain ---------- */
.slide-3 {
  background: #0e0c0a;
  color: #fff;
}
.slide-3 #dust { z-index: 0; }
.slide-3 .slide-inner { position: relative; z-index: 2; justify-content: center; gap: clamp(20px, 3vh, 36px); }
.slide-3 .h-display { font-size: clamp(26px, 3.3vw, 48px); max-width: 26ch; }

/* slide 3: the four "what we do" offers as clickable cards */
.offer-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  width: 100%;
}
.offer-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(16px, 1.4vw, 22px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none; cursor: pointer;
  position: relative; min-height: 0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.offer-card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 24px; height: 2px; background: var(--accent);
  opacity: 0; transition: opacity .2s ease;
}
.offer-card:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.offer-card:hover::before { opacity: 1; }
.oc-n {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em; color: var(--accent);
}
.offer-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(15px, 1.15vw, 18px); font-weight: 600;
  line-height: 1.25; color: #fff; margin: 0;
  flex: 1;
}
.oc-go {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: inline-flex; align-items: center; gap: 7px;
}
.offer-card:hover .oc-go { color: #fff; }
.oc-arrow { color: var(--accent); transition: transform .2s ease; }
.offer-card:hover .oc-arrow { transform: translateX(4px); }
.cursor-blink {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 28px; color: var(--accent);
  animation: blink 1.1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- slide 4 — legacy ---------- */
.quote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(12.5px, .98vw, 15px);
  line-height: 1.4;
  color: var(--ink-2);
  padding: 8px 16px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  max-width: 54ch;
}
.strike { text-decoration: line-through; color: var(--ink-3); }

.legacy-stack { gap: 12px; align-items: stretch; min-height: 0; }
.slide-4 .grid-2.tight {
  align-items: center; min-height: 0;
  grid-template-columns: 1.5fr 1fr;          /* larger left side */
  gap: clamp(30px, 3.4vw, 60px);
}
.slide-4 .col { min-height: 0; }
.slide-4 .col:first-child {                  /* roomier, vertically balanced text column */
  justify-content: center;
  gap: clamp(15px, 2.2vh, 26px);
}
.slide-4 .slide-inner { gap: clamp(8px, 1.1vh, 13px); }
.slide-4 .h-main { font-size: clamp(32px, 4vw, 58px); line-height: 1.04; max-width: 16ch; }
.slide-4 .col p { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.62; max-width: none; }
.slide-4 .quote { max-width: none; }         /* quote uses the full column width */
.slide-4 .legacy-modern .chip { font-size: 10px; padding: 4px 9px; }
.slide-4 .legacy-tile { padding: 6px 6px; gap: 4px; }
.slide-4 .legacy-tile img { height: clamp(22px, 2.5vw, 32px); }
.slide-4 .legacy-tile figcaption { font-size: 8.5px; }
.slide-4 .legacy-arrow { padding: 0 4px; }
.legacy-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.legacy-tile {
  background: #fff;
  border: 1px solid var(--hair);
  padding: 9px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .25s ease;
}
.legacy-tile img {
  height: clamp(28px, 3vw, 40px);
  width: auto; max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05) brightness(.95);
  opacity: .85;
  transition: filter .35s ease, opacity .35s ease;
}
.legacy-tile:hover img { filter: none; opacity: 1; }
.legacy-tile figcaption {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.legacy-arrow {
  display: flex; align-items: center; gap: 14px;
  padding: 0 4px;
}
.arrow-line {
  flex: 1; height: 1px; background: var(--hair); position: relative;
}
.arrow-line::after {
  content: ""; position: absolute; right: 0; top: -3px;
  border-left: 6px solid var(--accent);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}
.legacy-arrow .arrow-line:first-child::after { display: none; }
.legacy-arrow .arrow-line:last-child::after { content: ""; }
.arrow-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.legacy-modern { display: flex; flex-wrap: wrap; gap: 8px; }

/* RETRO retro-documentation tool screenshot — bare image, no frame */
.retro-shot {
  margin: 0;
  flex: 0 0 auto;
  display: block;
}
.retro-shot img {
  display: block;
  width: 100%; height: auto;     /* natural 16:9, no white letterbox box */
  border: 1px solid var(--hair);
}
.chip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--hair);
  color: var(--ink);
}

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 18px;
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  border: 1px solid var(--ink);
  margin-top: 6px;
  transition: background .2s ease, color .2s ease;
}
.cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta-arrow { transition: transform .2s ease; }
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ---------- case heads + stats ---------- */
.case-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.case-head-text { display: flex; flex-direction: column; gap: 10px; }
.case-lede {
  font-size: clamp(15px, 1.25vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}
.case-logo img {
  height: clamp(48px, 5vw, 76px);
  width: auto;
  filter: grayscale(1) contrast(1.04);
  opacity: .85;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--hair);
  background: #fff;
  margin: 4px 0 0;
}
.stat {
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--hair);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 18px; height: 1px; background: var(--accent);
}
.stat-n {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat-l {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- carousel ---------- */
.carousel {
  position: relative;
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  min-height: 0;
}
.car-btn {
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--hair);
  font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
  z-index: 4;
}
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-stage {
  position: relative;
  flex: 1; min-width: 0;
  overflow: hidden;
  background: transparent;
  height: 100%;
  min-height: 0;
}
.car-track {
  position: absolute; inset: 0;
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.car-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  background: transparent;
}
.car-slide img {
  max-height: 100%; max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--hair);
  background: #fff;
}
.car-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
  z-index: 3;
}
.car-dots button {
  width: 22px; height: 3px; padding: 0; border: 0; background: rgba(22,19,15,.18);
  cursor: pointer; transition: background .2s ease, width .2s ease;
}
.car-dots button.active { background: var(--accent); width: 30px; }

/* ---------- case layout (slides 5 & 7) ---------- */
.case-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: stretch;               /* both columns share the same height */
  min-height: 0;
  margin-top: auto; margin-bottom: auto;   /* center the block vertically in the slide */
  padding-top: clamp(10px, 3vh, 40px);     /* shared offset so the top line isn't jammed */
}
.case-left {
  display: flex; flex-direction: column;
  gap: clamp(18px, 2.4vh, 30px);
  min-height: 0;
}
.case-title-row {
  display: flex; align-items: center;
}
.case-right {
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.case-right-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.case-corner-logo {
  height: clamp(30px, 3vw, 46px);
  width: auto; flex-shrink: 0;
  filter: grayscale(1) contrast(1.04);
  opacity: .85;
}
/* Generali crest is near-square — scale it up so it reads as large as the PICTO wordmark */
.slide-7 .case-corner-logo {
  height: clamp(76px, 8vw, 124px);
}

/* figures block + heading row carrying the build-cost pill */
.figs-block { display: flex; flex-direction: column; gap: 12px; }
.figs-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.figs-cap {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}

/* 2-row figures */
.figs {
  display: flex; flex-direction: column; gap: 12px;
}
.figs-row { display: flex; gap: 12px; }
.fig {
  flex: 1;
  position: relative;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 16px 18px 15px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: var(--shadow);
  transition: border-color .25s ease, transform .25s ease;
}
.fig::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 22px; height: 2px; background: var(--accent);
}
.fig:hover { border-color: rgba(255,0,176,.35); transform: translateY(-2px); }
.fig-ico {
  position: absolute; top: 14px; right: 14px;
  width: 20px; height: 20px;
  color: var(--ink-2); opacity: .55;
}
.fig-n {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
}
.fig-l {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}

/* compact carousel on the right */
.carousel-compact {
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
  gap: 12px;
}
.carousel-compact .car-stage {
  width: 100%;
  flex: 1;
  min-height: 0;
}
.car-nav {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-shrink: 0;
}
.carousel-compact .car-dots {
  position: static;
  flex: 1; max-width: 220px;
}

/* ---------- sovereign / single-column body (slides 6 & 8) ---------- */
/* slide 6: tornado canvas behind, text kept to the left half */
.slide-6 #tornado { z-index: 0; }
.slide-6 .slide-inner { position: relative; z-index: 2; }
.slide-6 .sov-single { max-width: 52ch; }
.slide-6 .sov-single .lede,
.slide-6 .sov-single p { max-width: 48ch; }
.sov-single {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 80ch;
  flex: 1;
  justify-content: center;
}
.sov-single .lede { max-width: 72ch; }
.sov-single p { max-width: 80ch; }
.sov-line {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2.4vw, 36px) !important;
  line-height: 1.25;
  color: var(--ink) !important;
  font-weight: 500;
  margin-top: 8px;
  max-width: 26ch !important;
}

/* ---------- data migration: text (narrow) + schema (large) ---------- */
.data-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;   /* text less wide, more room for the schema */
  gap: clamp(28px, 3.2vw, 52px);
  align-items: stretch;                    /* text top aligns with the schema */
  flex: 1;
  min-height: 0;
  margin-top: auto; margin-bottom: auto;
}
.data-text {
  display: flex; flex-direction: column;
  gap: clamp(11px, 1.5vh, 18px);
  justify-content: center;                 /* center text against the tall schema */
  max-width: 46ch;
}
.data-text .h-main {
  font-size: clamp(28px, 3.1vw, 48px);
  max-width: 18ch;
  margin-bottom: 4px;
}
.data-text p { max-width: 46ch; }
.data-schema {
  position: relative;
  min-height: 0; min-width: 0;
  margin: 0;
  display: flex;
}
.data-schema img {
  flex: 1; min-height: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}

/* ---------- case studies index (bees) ---------- */
.slide-cases #bees { z-index: 6; pointer-events: none; }   /* bees buzz over the cards */
.slide-cases .slide-inner { position: relative; z-index: 2; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  flex: 1; min-height: 0;
  margin-top: clamp(8px, 1.6vh, 18px);
}
.case-link {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  padding: clamp(16px, 1.4vw, 22px);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.case-link:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 22px 44px -24px rgba(22,19,15,.5);
}
.cl-arrow {
  position: absolute; top: 12px; right: 14px;
  font-size: 16px; line-height: 1; color: var(--ink-3);
  transition: color .2s ease, transform .2s ease;
}
.case-link:hover .cl-arrow { color: var(--accent); transform: translate(2px, -2px); }
.cl-logo {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(70px, 11vh, 120px);
}
.cl-logo img {
  max-height: clamp(58px, 7.5vw, 92px);
  max-width: 92%;
  object-fit: contain;
  filter: grayscale(1) contrast(.9);
  opacity: .62;
  transition: filter .25s ease, opacity .25s ease;
}
.case-link:hover .cl-logo img { filter: none; opacity: 1; }
.cl-title {
  font-size: clamp(12.5px, .95vw, 14.5px);
  line-height: 1.32; color: var(--ink-2);
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--hair);
}
.case-link:hover .cl-title { color: var(--ink); }

/* ---------- process automation: workflows card (slide 4/4) ---------- */
.auto-card {
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  padding: clamp(18px, 1.8vw, 26px);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.auto-card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 26px; height: 2px; background: var(--accent);
}
.auto-cap {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.auto-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.auto-list li {
  display: flex; align-items: center; gap: 13px;
  font-size: clamp(14px, 1.05vw, 16px); color: var(--ink);
  padding-bottom: 11px; border-bottom: 1px solid var(--hair);
}
.auto-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.auto-list svg {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--ink-2);
  stroke-linecap: round; stroke-linejoin: round;
}
.auto-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

/* ---------- L'Express: before → after transformation card ---------- */
.xform {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.4vh, 14px);
}
.xform-row {
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  padding: clamp(13px, 1.4vw, 18px) clamp(15px, 1.5vw, 20px);
  position: relative;
}
.xform-row::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 22px; height: 2px; background: var(--ink-3);
}
.xform-row.after { border-color: rgba(255,0,176,.4); }
.xform-row.after::before { background: var(--accent); }
.xform-tag {
  display: block; margin-bottom: 9px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.xform-tag.accent { color: var(--accent); }
.xform-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.xform-list li {
  position: relative; padding-left: 16px;
  font-size: clamp(13px, .98vw, 15px); line-height: 1.4; color: var(--ink-2);
}
.xform-list li b { color: var(--ink); font-weight: 600; }
.xform-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 6px; height: 6px; background: var(--accent);
}
.xform-arrow { display: flex; align-items: center; gap: 12px; padding: 0 2px; }
.xform-line { flex: 1; height: 1px; background: var(--hair); }
.xform-arrow em {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- dark divider / closing slides ---------- */
.slide-10, .slide-14 { background: #0c0b09; color: #fff; }
.slide-10 #swarm, .slide-14 #heart { z-index: 0; }
.slide-10 .slide-inner,
.slide-14 .slide-inner { position: relative; z-index: 2; justify-content: center; gap: clamp(16px, 2.2vh, 26px); }

/* ---------- live prototype (slide 13) ---------- */
.proto-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(26px, 3vw, 48px);
  align-items: stretch;
  flex: 1; min-height: 0;
  margin-top: auto; margin-bottom: auto;
  padding-top: clamp(8px, 2vh, 28px);
}
.proto-text {
  display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 20px);
  justify-content: center;
  max-width: 42ch;
}
.proto-hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.proto-stage { min-height: 0; min-width: 0; display: flex; }
.proto-frame {
  flex: 1; width: 100%; height: 100%;
  border: 1px solid var(--hair);
  background: #fff;
  box-shadow: var(--shadow);
}

/* ---------- closing slide 14 ---------- */
.slide-14 .slide-inner { align-items: flex-start; gap: clamp(14px, 2vh, 22px); }
.slide-14 .h-display { max-width: 13ch; }
.close-photo {
  margin: 0 0 4px;
  width: clamp(220px, 24vw, 330px);
  border: 3px solid #fff;
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.7);
  overflow: hidden;
  line-height: 0;
}
.close-photo img { width: 100%; height: auto; display: block; filter: grayscale(.1) contrast(1.02); }
.close-lede { font-size: clamp(15px, 1.4vw, 20px); color: rgba(255,255,255,.82); max-width: 38ch; }
.close-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.link-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 20px; text-decoration: none;
  border: 1px solid; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.link-pill span { transition: transform .2s ease; }
.link-pill:hover span { transform: translateX(4px); }
.link-pill.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.link-pill.solid:hover { transform: translateY(-2px); }
.link-pill.ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.link-pill.ghost:hover { border-color: #fff; transform: translateY(-2px); }
.from-paris {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: clamp(13px, 1.1vw, 16px); color: rgba(255,255,255,.6);
  margin-top: 2px;
}

/* ---------- sovereign ---------- */
.sov-card {
  background: #fff;
  border: 1px solid var(--hair);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.sov-card::before {
  content: ""; position: absolute; top: -1px; right: -1px;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.sov-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sov-cell {
  border: 1px dashed var(--hair); padding: 14px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.sov-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.sov-icon {
  font-size: 26px; color: var(--accent); line-height: 1;
}
.sov-divider {
  margin: 18px 0 14px; height: 1px;
  background: linear-gradient(90deg, var(--hair), transparent);
}
.sov-foot { display: flex; align-items: baseline; gap: 16px; }
.sov-big {
  font-family: "Fraunces", serif;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.sov-foot-l {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}

.vs-block {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  margin-top: 18px;
}
.vs-col { display: flex; flex-direction: column; gap: 8px; }
.vs-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.vs-title.accent { color: var(--accent); }
.vs-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.vs-list li {
  font-size: 13.5px; line-height: 1.45; color: var(--ink);
  padding-left: 14px; position: relative;
}
.vs-list li::before {
  content: "›"; position: absolute; left: 0; color: var(--accent);
}
.vs-list.dim li { color: var(--ink-3); }
.vs-list.dim li::before { color: var(--ink-3); }
.vs-sep {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-3);
}

/* ---------- slide 8 — schema ---------- */
.slide-8 .slide-inner { position: relative; z-index: 2; }
.schema {
  background: #fff;
  border: 1px solid var(--hair);
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.schema::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.schema-node {
  border: 1px solid var(--hair);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper-2);
}
.schema-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}
.schema-sub {
  font-family: "Fraunces", serif;
  font-size: 18px; font-weight: 500;
  color: var(--ink);
}
.n-dst {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff, rgba(255,0,176,.06));
}
.n-dst .schema-title { color: var(--accent); }
.schema-pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 6px 0;
  position: relative;
}
.schema-pipe::before {
  content: ""; position: absolute;
  left: 8px; right: 8px; top: 50%;
  height: 1px; background: var(--hair);
  z-index: 0;
}
.pipe-step {
  position: relative; z-index: 1;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 10px 8px;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.pipe-step:nth-child(odd) { border-color: rgba(255,0,176,.35); color: var(--ink); }
.schema-guarantee {
  display: flex; align-items: center; gap: 10px;
  padding-top: 4px;
}
.g-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,0,176,.18);
}
.g-text {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 1px solid var(--hair); }
  .stat:nth-child(4), .stat:nth-child(5) { border-right: 1px solid var(--hair); }
  .stat:last-child { border-right: 0; }
}
@media (max-width: 720px) {
  .legacy-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sov-row { grid-template-columns: 1fr; }
  .vs-block { grid-template-columns: 1fr; }
  .schema-pipe { grid-template-columns: repeat(2, 1fr); }
  .ftr { grid-template-columns: 1fr auto; gap: 12px; }
  .ftr-left { display: none; }
  .ascii-bar { font-size: 10px; }
  .h-main, .h-display { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .car-track, .topbar #topbar-fill { transition: none; }
  .hdr-dot, .cursor-blink { animation: none; }
}
