/* Graphite chalkboard + chalk strokes — Lupi-on-dark */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* base */
  --graphite-0:  #1a1c20;   /* deepest */
  --graphite-1:  #22252a;   /* page */
  --graphite-2:  #2b2f35;   /* card */
  --graphite-3:  #363b42;   /* hairline / rule */
  --chalk:       #ece4d2;   /* warm chalk */
  --chalk-soft:  #c8c0ad;
  --chalk-faint: #8a8270;

  /* accents */
  --lavender:   #b8a4d6;
  --teal:       #7fb6b1;
  --coral:      #e58866;
  --ochre:      #e3b95a;
  --pink:       #f0a890;
  --sage:       #a8c69a;

  /* fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Fraunces', Georgia, serif;
  --font-hand:    'Caveat', cursive;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--graphite-1);
  color: var(--chalk);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100%;
}

/* chalkboard grain + soft slate gradient */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(236,228,210,0.04), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(180,150,200,0.025), transparent 60%);
  z-index: 1;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(236,228,210,0.025) 1px, transparent 1px),
    radial-gradient(rgba(236,228,210,0.015) 1px, transparent 1px);
  background-size: 4px 4px, 9px 9px;
  background-position: 0 0, 1px 2px;
  z-index: 2;
}

#root { position: relative; z-index: 3; height: 100vh; width: 100vw; }

/* ——— layout ——— */
.stage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 400px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header"
    "canvas panel";
}

/* ——— masthead ——— */
header.masthead {
  grid-area: header;
  padding: 22px 36px 14px 36px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px dashed var(--graphite-3);
}

.masthead h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--chalk);
  font-style: italic;
}
.masthead h1 .who {
  font-style: normal;
  font-weight: 500;
}
.masthead h1 .ampersand {
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 30px;
  color: var(--coral);
  margin: 0 4px;
  vertical-align: -2px;
}

.masthead .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--chalk-faint);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: right;
  line-height: 1.7;
}

.masthead nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead nav a {
  color: var(--chalk-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--chalk-faint);
  padding-bottom: 2px;
  transition: color 120ms, border-color 120ms;
}
.masthead nav a:hover { color: var(--coral); border-color: var(--coral); }
.masthead nav a.current { color: var(--chalk); border-bottom-color: var(--chalk); }

.masthead-left { display: flex; flex-direction: column; gap: 6px; }
.masthead-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

/* ——— canvas ——— */
.canvas-wrap {
  grid-area: canvas;
  position: relative;
  overflow: hidden;
}

.canvas-wrap svg.main {
  display: block;
  width: 100%;
  height: 100%;
}

/* ——— legend (floating overlay) ——— */
.legend {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  background: rgba(34, 37, 42, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--graphite-3);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  font-size: 12px;
}
.legend.collapsed { padding: 8px 14px; }
.legend.collapsed .legend-body { display: none; }

.legend-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}
.legend-toggle-title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-soft);
}
.legend-toggle-icon {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--chalk-faint);
  line-height: 1;
}
.legend-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.legend-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.legend-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
}
.legend-items { display: flex; gap: 14px; flex-wrap: wrap; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--chalk-soft);
}
.legend-swatch { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }

.legend-hint {
  display: none;
}

/* ——— side panel ——— */
.panel {
  grid-area: panel;
  border-left: 1px dashed var(--graphite-3);
  padding: 28px 30px 28px 30px;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(to right, rgba(236,228,210,0.012), transparent 18px);
}

.panel-empty {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--chalk-faint);
  line-height: 1.4;
  padding-top: 6px;
}
.panel-empty .arrow {
  display: inline-block;
  transform: rotate(-8deg) translateY(-2px);
  font-size: 28px;
  margin-right: 4px;
  color: var(--coral);
}
.panel-empty .keys {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chalk-faint);
  line-height: 1.9;
}
.panel-empty .keys kbd {
  background: var(--graphite-2);
  border: 1px solid var(--graphite-3);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  color: var(--chalk-soft);
  font-size: 10px;
}

.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 2px 0;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--chalk);
}
.panel h2 .hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 26px;
  color: var(--coral);
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}

.panel .short {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--chalk-soft);
  font-style: italic;
  margin: 14px 0 18px 0;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--graphite-3);
}

.panel h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin: 18px 0 10px 0;
  font-weight: 500;
}

.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--chalk);
  border-bottom: 1px dotted var(--graphite-3);
}
.bullets li:last-child { border-bottom: none; }
.bullets li::before {
  content: '';
  position: absolute;
  left: 4px; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  filter: url(#wobble-soft);
}

.panel .body-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--chalk-soft);
  margin: 6px 0 0 0;
}

.panel .stats {
  display: flex;
  gap: 22px;
  margin: 16px 0 4px 0;
  flex-wrap: wrap;
}
.stat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--chalk-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--chalk);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  font-style: italic;
}

.close-x {
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--chalk-faint);
  line-height: 1;
  padding: 0;
  transition: color 120ms, transform 120ms;
}
.close-x:hover { color: var(--coral); transform: rotate(-8deg); }

/* ——— compare mode header ——— */
.compare-header {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--coral);
  margin-bottom: 14px;
  line-height: 1.2;
}
.compare-skill {
  border: 1px solid var(--graphite-3);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(236,228,210,0.02);
  position: relative;
}
.compare-skill h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 6px 0;
  color: var(--chalk);
}
.compare-skill p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  color: var(--chalk-soft);
}
.compare-skill .remove {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none;
  color: var(--chalk-faint);
  font-family: var(--font-hand);
  font-size: 20px;
  cursor: pointer;
}
.compare-skill .remove:hover { color: var(--coral); }

/* ——— canvas elements ——— */
.skill-cluster { cursor: grab; transition: opacity 220ms; }
.skill-cluster.dragging { cursor: grabbing; }
.skill-cluster.dim { opacity: 0.18; }
.skill-cluster.focused .cluster-label { fill: var(--coral); }
.skill-cluster.selected .cluster-label { fill: var(--ochre); }

.cluster-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  fill: var(--chalk);
  font-style: italic;
  pointer-events: none;
  user-select: none;
  transition: fill 160ms;
}
.cluster-sublabel {
  font-family: var(--font-hand);
  font-size: 16px;
  fill: var(--chalk-faint);
  pointer-events: none;
  user-select: none;
}
.cluster-id {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--chalk-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.cluster-frame {
  fill: none;
  stroke: var(--graphite-3);
  stroke-dasharray: 2 3;
  opacity: 0.7;
}
.cluster-frame.selected {
  stroke: var(--ochre);
  opacity: 0.9;
}
.cluster-frame.focused {
  stroke: var(--coral);
  opacity: 0.9;
}

.mark-base { transition: r 200ms; }
.cluster-spine { fill: none; stroke: var(--chalk-faint); stroke-width: 0.7; opacity: 0.5; stroke-dasharray: 2 4; }
.year-axis    { stroke: var(--chalk-faint); stroke-width: 0.5; opacity: 0.5; }
.year-tick-lbl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  fill: var(--chalk-faint);
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.mark-tip {
  pointer-events: none;
  font-family: var(--font-hand);
  font-size: 14px;
  fill: var(--chalk);
}

/* tour button */
.tour-btn {
  position: absolute;
  left: 18px;
  top: 18px;
  background: rgba(34, 37, 42, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--graphite-3);
  color: var(--chalk-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 160ms;
  z-index: 5;
}
.tour-btn:hover { color: var(--coral); border-color: var(--coral); }
.tour-btn.active { color: var(--ochre); border-color: var(--ochre); }

.tour-caption {
  position: absolute;
  left: 18px;
  top: 64px;
  max-width: 320px;
  font-family: var(--font-hand);
  font-size: 20px;
  line-height: 1.3;
  color: var(--chalk);
  z-index: 5;
  pointer-events: none;
  background: rgba(34, 37, 42, 0.84);
  padding: 8px 12px;
  border-left: 2px solid var(--ochre);
}
.tour-caption small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
  margin-bottom: 4px;
}

/* scrollbar */
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-track { background: transparent; }
.panel::-webkit-scrollbar-thumb { background: var(--graphite-3); border-radius: 4px; }

/* ——— CV page ——— */
body.cv {
  overflow: auto;
}
.cv-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 48px 80px;
  position: relative;
  z-index: 3;
  color: var(--chalk);
}
.cv-wrap .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 1px dashed var(--graphite-3);
  padding-bottom: 18px;
}
.cv-wrap .top h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 32px;
  margin: 0;
}
.cv-wrap .top .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-faint);
  text-align: right;
  line-height: 1.7;
}
.cv-wrap h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--chalk-faint);
  margin: 36px 0 14px 0;
  font-weight: 500;
}
.cv-wrap p, .cv-wrap li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--chalk-soft);
}
.cv-entry { margin-bottom: 22px; }
.cv-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 4px;
}
.cv-entry-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
  color: var(--chalk);
}
.cv-entry-head .when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chalk-faint);
  flex-shrink: 0;
}
.cv-entry .role {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--coral);
  margin: 0 0 6px 0;
}
.cv-entry ul {
  margin: 6px 0 0 0;
  padding: 0 0 0 18px;
}
.cv-entry ul li {
  margin: 4px 0;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin-top: 8px;
}
.contacts a {
  color: var(--chalk);
  text-decoration: none;
  border-bottom: 1px dotted var(--chalk-faint);
  padding-bottom: 2px;
}
.contacts a:hover { color: var(--coral); border-color: var(--coral); }
.contacts .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chalk-faint);
  margin-bottom: 2px;
}
.contacts .pair { display: flex; flex-direction: column; gap: 2px; }

body.cv .back {
  position: fixed;
  top: 24px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--chalk-faint);
  padding-bottom: 2px;
  z-index: 5;
  background: var(--graphite-1);
}
body.cv .back:hover { color: var(--coral); border-color: var(--coral); }

/* ——— Book Clutch case study ——— */
body.case {
  overflow: auto;
}

.case-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 56px 96px;
  position: relative;
  z-index: 3;
  color: var(--chalk);
}

body.case .back {
  position: fixed;
  top: 24px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--chalk-faint);
  padding-bottom: 2px;
  z-index: 10;
  background: rgba(34,37,42,0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
}
body.case .back:hover { color: var(--coral); border-color: var(--coral); }

/* hero */
.case-hero {
  border-bottom: 1px dashed var(--graphite-3);
  padding-bottom: 36px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.case-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--chalk-faint);
  margin: 0 0 10px 0;
}
.case-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 14px 0;
  color: var(--chalk);
}
.case-hero h1 .hand {
  display: block;
  font-family: var(--font-hand);
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  letter-spacing: 0;
  color: var(--coral);
  margin-top: 8px;
}
.case-hero .lede {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--chalk-soft);
  margin: 16px 0 0 0;
  font-style: italic;
}
.case-hero .meta-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-hero .meta-row {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-hero .meta-row b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--chalk);
  letter-spacing: 0;
  text-transform: none;
}
.case-hero .meta-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-hero .meta-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--chalk);
  text-decoration: none;
  border-bottom: 1px dotted var(--chalk-faint);
  padding-bottom: 2px;
  width: max-content;
}
.case-hero .meta-links a:hover { color: var(--coral); border-color: var(--coral); }

/* sections */
.case-section {
  margin: 80px 0;
  scroll-margin-top: 40px;
}
.case-section .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--chalk-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.case-section .section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--chalk-faint);
}
.case-section h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px 0;
  color: var(--chalk);
}
.case-section h2 .hand {
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 600;
  font-size: 26px;
  color: var(--coral);
  display: inline-block;
  margin-left: 8px;
  vertical-align: 2px;
}
.case-section .section-intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--chalk-soft);
  max-width: 720px;
  margin: 0 0 32px 0;
}

/* product-as-data viz */
.product-portrait-wrap {
  position: relative;
  border: 1px dashed var(--graphite-3);
  border-radius: 2px;
  background: rgba(236,228,210,0.012);
  padding: 4px;
}
.product-portrait-wrap svg { display: block; width: 100%; height: auto; }
.feat-cluster { cursor: default; }

/* stack layers */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.stack-layer {
  border-top: 1px solid var(--graphite-3);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-layer .layer-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--chalk);
  margin: 0;
  letter-spacing: -0.01em;
}
.stack-layer .layer-blurb {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--chalk-faint);
  line-height: 1.3;
  margin: -2px 0 4px 0;
}
.stack-layer .layer-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--chalk-soft);
}
.stack-item svg { flex-shrink: 0; }

/* timeline */
.bc-timeline {
  position: relative;
  padding: 8px 0;
}
.bc-timeline-row {
  display: grid;
  grid-template-columns: 120px 40px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px dotted var(--graphite-3);
}
.bc-timeline-row:last-child { border-bottom: none; }
.bc-when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-faint);
  padding-top: 6px;
}
.bc-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 2px;
  align-items: center;
}
.bc-event h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 4px 0;
  color: var(--chalk);
}
.bc-event p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--chalk-soft);
  margin: 0;
  max-width: 720px;
}

/* numbers */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.number-card {
  border-top: 1px solid var(--graphite-3);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.number-n {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--chalk);
}
.number-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chalk-faint);
  line-height: 1.4;
}

/* lessons */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 18px;
}
.lesson-card {
  border: 1px solid var(--graphite-3);
  padding: 22px 22px 24px;
  position: relative;
  background: rgba(236,228,210,0.012);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lesson-mark { position: absolute; top: 16px; right: 16px; }
.lesson-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--chalk);
  max-width: 220px;
}
.lesson-card p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--chalk-soft);
  margin: 0;
}

/* footer */
.case-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px dashed var(--graphite-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.case-footer h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--chalk-faint);
  margin: 0 0 14px 0;
  font-weight: 500;
}
.case-footer a {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--chalk);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px dotted var(--graphite-3);
}
.case-footer a:hover { color: var(--coral); }
.case-footer a span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chalk-faint);
  margin-top: 2px;
}

/* ——— collapsible sections ——— */
.case-section.collapsible {
  border-top: 1px dashed var(--graphite-3);
  padding-top: 36px;
  margin-top: 56px;
}
.collapsible-header {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: block;
  font: inherit;
}
.collapsible-header h2 {
  margin-bottom: 0;
  padding-right: 140px;
  transition: color 160ms;
}
.collapsible-header:hover h2 { color: var(--coral); }
.collapsible-icon {
  position: absolute;
  top: 22px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-soft);
  background: rgba(34, 37, 42, 0.86);
  border: 1px solid var(--graphite-3);
  padding: 8px 14px;
  transition: all 160ms;
}
.collapsible-header:hover .collapsible-icon {
  color: var(--coral);
  border-color: var(--coral);
}
.collapsible-icon.open { color: var(--ochre); border-color: var(--ochre); }
.collapsible-body {
  margin-top: 22px;
  animation: slide-down 220ms ease-out;
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* workflow gallery */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 18px;
}
.workflow-slot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--graphite-3);
}
.workflow-slot image-slot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: rgba(236,228,210,0.02);
  border: 1px dashed var(--graphite-3);
}
.workflow-caption h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px 0;
  color: var(--chalk);
}
.workflow-caption .ctx {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--coral);
  margin: 0 0 10px 0;
}
.workflow-caption p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--chalk-soft);
  margin: 0;
}
.workflow-caption ul {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
}
.workflow-caption li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chalk-faint);
  line-height: 1.7;
}

/* video slot */
.video-wrap {
  border-top: 1px solid var(--graphite-3);
  padding-top: 14px;
}
.video-wrap video {
  width: 100%;
  background: var(--graphite-0);
  display: block;
  border: 1px solid var(--graphite-3);
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(236,228,210,0.03);
  border: 1px dashed var(--graphite-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.video-placeholder .glyph {
  font-family: var(--font-hand);
  font-size: 64px;
  color: var(--coral);
  line-height: 1;
}
.video-placeholder .msg {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--chalk-soft);
  line-height: 1.3;
  max-width: 520px;
}
.video-placeholder code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--graphite-2);
  border: 1px solid var(--graphite-3);
  padding: 2px 8px;
  color: var(--chalk);
}

@media (max-width: 900px) {
  .workflow-slot { grid-template-columns: 1fr; gap: 14px; }
  .collapsible-header h2 { padding-right: 0; padding-top: 36px; }
  .collapsible-icon { top: 0; }
}

/* ——————————————————————————————————————————————————————
   MOBILE VARIANT  (body.case-mobile)
   ————————————————————————————————————————————————————— */
body.case-mobile {
  overflow: auto;
}

.m-wrap {
  padding: 18px 18px 80px 18px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  color: var(--chalk);
}

.m-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--graphite-3);
}
.m-topnav a {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--chalk-faint);
  padding-bottom: 2px;
}
.m-topnav a:hover { color: var(--coral); border-color: var(--coral); }

/* hero */
.m-hero { margin-bottom: 32px; }
.m-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
  margin: 0 0 10px 0;
}
.m-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  color: var(--chalk);
}
.m-hero h1 .hand {
  display: block;
  font-family: var(--font-hand);
  font-weight: 600;
  font-style: normal;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--coral);
  margin-top: 4px;
}
.m-hero .lede {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--chalk-soft);
  margin: 14px 0 18px 0;
  font-style: italic;
}
.m-hero .meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dotted var(--graphite-3);
}
.m-hero .meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-hero .meta-row .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-faint);
}
.m-hero .meta-row b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--chalk);
  letter-spacing: 0;
  text-transform: none;
}
.m-hero .meta-row a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--chalk);
  text-decoration: none;
  border-bottom: 1px dotted var(--chalk-faint);
  padding-bottom: 2px;
  width: max-content;
}
.m-hero .meta-row a:hover { color: var(--coral); border-color: var(--coral); }

/* section */
.m-section {
  margin: 36px 0;
}
.m-section .eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--chalk-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.m-section .eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--chalk-faint);
}
.m-section h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 8px 0;
  color: var(--chalk);
}
.m-section h2 .hand {
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  color: var(--coral);
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}
.m-section .intro {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--chalk-soft);
  margin: 0 0 20px 0;
}

/* central note before product cards */
.m-book-note {
  border: 1px dashed var(--graphite-3);
  background: rgba(236,228,210,0.012);
  padding: 16px 18px;
  margin: 14px 0 22px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.m-book-note .glyph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--chalk);
}
.m-book-note .sub {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--coral);
  line-height: 1.2;
}

/* feature card */
.m-feature {
  border-top: 1px solid var(--graphite-3);
  padding: 18px 0 22px 0;
}
.m-feature-svg {
  display: block;
  width: 100%;
  height: 120px;
  margin-bottom: 12px;
}
.m-feature-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.m-feature-head .num {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chalk-faint);
}
.m-feature h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--chalk);
}
.m-feature .sub {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--coral);
  margin: 0 0 8px 0;
}
.m-feature .blurb {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--chalk);
  margin: 0 0 10px 0;
  font-style: italic;
}
.m-feature .notes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.m-feature .notes li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--chalk-faint);
  line-height: 1.7;
}

/* legend block */
.m-legend {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--graphite-3);
  background: rgba(236,228,210,0.012);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-legend .group .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-faint);
  margin-right: 8px;
}
.m-legend .group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.m-legend .item { display: flex; align-items: center; gap: 5px; color: var(--chalk-soft); }
.m-legend .item svg { flex-shrink: 0; }

/* stack list */
.m-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.m-stack-layer {
  border-top: 1px solid var(--graphite-3);
  padding-top: 12px;
}
.m-stack-layer h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 2px 0;
  color: var(--chalk);
  letter-spacing: -0.01em;
}
.m-stack-layer .layer-blurb {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--chalk-faint);
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.m-stack-layer .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--chalk-soft);
  line-height: 1.4;
}

/* timeline */
.m-timeline { padding: 4px 0; }
.m-timeline-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--graphite-3);
}
.m-timeline-row:last-child { border-bottom: none; }
.m-timeline-row .when {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-faint);
}
.m-timeline-row h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin: 0;
  color: var(--chalk);
}
.m-timeline-row p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--chalk-soft);
  margin: 4px 0 0 0;
}
.m-timeline-row .marks {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* numbers */
.m-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.m-number {
  border-top: 1px solid var(--graphite-3);
  padding-top: 10px;
}
.m-number .n {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--chalk);
}
.m-number .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chalk-faint);
  line-height: 1.4;
  margin-top: 4px;
}

/* lessons */
.m-lessons { display: flex; flex-direction: column; gap: 14px; }
.m-lesson {
  border: 1px solid var(--graphite-3);
  padding: 16px 16px 18px 16px;
  background: rgba(236,228,210,0.012);
  position: relative;
}
.m-lesson .mark { position: absolute; top: 12px; right: 12px; }
.m-lesson h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px 0;
  padding-right: 36px;
  color: var(--chalk);
  line-height: 1.2;
}
.m-lesson p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--chalk-soft);
  margin: 0;
}

/* collapsibles in mobile */
.m-collapsible {
  border-top: 1px dashed var(--graphite-3);
  padding-top: 24px;
  margin-top: 36px;
}
.m-collapsible-header {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font: inherit;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.m-collapsible-header h2 { margin-bottom: 4px; flex: 1; transition: color 160ms; }
.m-collapsible-header:hover h2 { color: var(--coral); }
.m-collapsible-toggle {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chalk-soft);
  border: 1px solid var(--graphite-3);
  padding: 8px 12px;
  flex-shrink: 0;
  margin-top: 4px;
}
.m-collapsible.open .m-collapsible-toggle { color: var(--ochre); border-color: var(--ochre); }
.m-collapsible-body { margin-top: 16px; }
.m-collapsible-body .intro { font-size: 14px; margin-bottom: 14px; }

.m-workflows { display: flex; flex-direction: column; gap: 22px; }
.m-workflow {
  border-top: 1px solid var(--graphite-3);
  padding-top: 14px;
}
.m-workflow image-slot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: rgba(236,228,210,0.02);
  border: 1px dashed var(--graphite-3);
  margin-bottom: 12px;
}
.m-workflow h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 4px 0;
  color: var(--chalk);
}
.m-workflow .sub {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--coral);
  margin: 0 0 8px 0;
}
.m-workflow p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--chalk-soft);
  margin: 0;
}

/* footer */
.m-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--graphite-3);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.m-footer h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--chalk-faint);
  margin: 0 0 10px 0;
  font-weight: 500;
}
.m-footer a {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--chalk);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px dotted var(--graphite-3);
}
.m-footer a span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chalk-faint);
  margin-top: 2px;
}
.m-footer a:hover { color: var(--coral); }

/* ——————————————————————————————————————————————————————
   HOME / LANDING  (body.home)
   ————————————————————————————————————————————————————— */
body.home {
  overflow: auto;
}

.home-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  min-height: 100vh;
  position: relative;
  z-index: 3;
  color: var(--chalk);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--graphite-3);
}
.home-top .eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--chalk-faint);
}
.home-top .date {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--chalk-faint);
}

/* hero */
.home-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 52px;
}
.home-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--chalk);
}
.home-name .hand {
  display: block;
  font-family: var(--font-hand);
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  color: var(--coral);
  letter-spacing: 0;
  margin-top: 10px;
  line-height: 1.1;
}
.home-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--chalk-soft);
  font-style: italic;
  margin: 0;
  max-width: 360px;
}

.home-construction {
  margin: 16px 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ochre);
  line-height: 1.25;
  padding: 14px 18px;
  border-left: 2px solid var(--ochre);
  background: rgba(227, 185, 90, 0.06);
}
.home-construction .glyph {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--ochre);
  line-height: 0.8;
  margin-top: 2px;
}

/* progress strip */
.home-progress-section {
  border-top: 1px dashed var(--graphite-3);
  padding-top: 28px;
  margin-bottom: 48px;
}
.home-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.home-progress-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  color: var(--chalk);
  letter-spacing: -0.015em;
}
.home-progress-head h2 .hand {
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  color: var(--coral);
  margin-left: 6px;
}
.home-progress-head .sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
}
.home-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 12px 0 8px 0;
}
.home-progress-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-progress-caption {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--chalk-faint);
  margin-top: 8px;
  line-height: 1.3;
}
.home-progress-caption b {
  color: var(--coral);
  font-weight: 600;
}

/* two columns */
.home-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-top: 18px;
}
.home-column h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--chalk-faint);
  margin: 0 0 18px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-column h3::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--chalk-faint);
}
.home-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.home-list li {
  border-bottom: 1px dotted var(--graphite-3);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
}
.home-list li:last-child { border-bottom: none; }
.home-list li .mk {
  padding-top: 4px;
  display: flex;
  justify-content: center;
}
.home-list li .body { display: flex; flex-direction: column; gap: 3px; }
.home-list li a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--chalk);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
  transition: color 140ms;
}
.home-list li a:hover { color: var(--coral); }
.home-list li .sub {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--chalk-faint);
  line-height: 1.25;
}
.home-list li.coming a {
  color: var(--chalk-faint);
  font-style: italic;
}
.home-list li.coming .sub {
  color: var(--chalk-faint);
  opacity: 0.7;
}

/* hand-drawn aside */
.home-aside {
  position: relative;
  margin: 56px 0 0 0;
  padding: 24px 28px 26px;
  border: 1px dashed var(--graphite-3);
  background: rgba(236,228,210,0.02);
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.4;
  color: var(--chalk);
  max-width: 640px;
}
.home-aside small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
  margin-bottom: 8px;
}

.home-foot {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
}
.home-foot .hand {
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 22px;
  color: var(--chalk-soft);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 800px) {
  .home-wrap { padding: 28px 18px 60px; }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .home-name { font-size: 56px; }
  .home-name .hand { font-size: 22px; }
  .home-columns { grid-template-columns: 1fr; gap: 32px; }
  .home-foot { flex-direction: column; gap: 12px; align-items: start; }
}

/* mini palette legend */
.bc-mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--graphite-3);
}
.bc-mini-legend .legend-item {
  font-size: 12.5px;
}
.bc-mini-legend .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--chalk-faint);
  margin-right: 8px;
  align-self: center;
}

/* feature labels on the portrait */
.feat-label-bg {
  fill: var(--graphite-1);
  opacity: 0.7;
}

@media (max-width: 900px) {
  .case-hero { grid-template-columns: 1fr; }
  .case-hero h1 { font-size: 44px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .bc-timeline-row { grid-template-columns: 90px 1fr; }
  .bc-timeline-row .bc-marks { display: none; }
  .case-footer { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── Workflow slot trigger + Lightbox ─── */
.workflow-slot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: zoom-in;
  position: relative;
  font: inherit;
  color: inherit;
  text-align: left;
}
.workflow-slot-trigger:disabled { cursor: default; }
.workflow-slot-trigger:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
.workflow-slot-trigger:hover:not(:disabled) image-slot {
  filter: brightness(1.05);
  transition: filter 0.15s ease;
}
.workflow-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chalk);
  background: rgba(26, 28, 32, 0.78);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.workflow-slot-trigger:hover .workflow-zoom-hint,
.workflow-slot-trigger:focus-visible .workflow-zoom-hint {
  opacity: 1;
}
@media (max-width: 900px) {
  /* on touch, always show the hint — no hover state */
  .workflow-zoom-hint { opacity: 0.85; }
  .workflow-slot-trigger { cursor: pointer; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 14, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: lightbox-fade 0.18s ease-out;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: min(95vw, 1600px);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  cursor: default;
}
.lightbox-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--chalk-soft);
  letter-spacing: 0.02em;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--graphite-2);
  color: var(--chalk);
  border: 1px solid var(--graphite-3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--graphite-3); }
.lightbox-close:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
@media (max-width: 900px) {
  .lightbox { padding: 16px; }
  .lightbox-img { max-height: 78vh; }
}
