/* =========================================================
   Kev's Atelier: Services hub and service pages
   ========================================================= */

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 10vw, 112px)) 0 clamp(56px, 9vw, 104px);
}
/* Static gold rays from the top-right corner, turning very slowly */
.page-hero::before {
  content: "";
  position: absolute;
  top: -60vmax; right: -60vmax;
  width: 120vmax; height: 120vmax;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(232, 200, 115, 0) 0deg 3deg,
    rgba(232, 200, 115, 0.42) 3deg 3.5deg,
    rgba(232, 200, 115, 0) 3.5deg 6deg,
    rgba(201, 162, 75, 0.22) 6deg 6.4deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 52%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 52%);
  animation: hero-spin 240s linear infinite;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.2) 0%, rgba(6, 6, 6, 0.6) 55%, #060606 100%),
    linear-gradient(90deg, rgba(6, 6, 6, 0.75), rgba(6, 6, 6, 0) 70%);
  pointer-events: none;
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 9vw, 6rem); max-width: 15ch; text-wrap: balance; }
.page-hero .lead { margin-top: 26px; }
.page-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 34px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs .sep { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

.price-from { color: var(--muted); font-size: 0.98rem; }
.price-from strong { color: var(--ivory); font-weight: 600; }

/* ---------- The problem ---------- */
.problem-quote {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.15;
  max-width: 24ch;
  text-wrap: balance;
}
.problem-quote::before { content: "\201C"; color: var(--gold); }
.problem-quote::after { content: "\201D"; color: var(--gold); }
.problem-quote + .problem-quote { margin-top: 28px; }

/* ---------- Who it's for ---------- */
.who { display: flex; flex-wrap: wrap; gap: 10px; }
.who li {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(14, 13, 11, 0.6);
  font-size: 1.02rem;
}
.who li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* ---------- What you get ---------- */
.get-grid { display: grid; gap: 34px 40px; }
@media (min-width: 760px) { .get-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .get-grid.three { grid-template-columns: repeat(3, 1fr); } }
.get-item { padding-top: 22px; border-top: 1px solid var(--line); }
.get-item h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 1.9rem); line-height: 1.15; }
.get-item p { margin-top: 10px; color: var(--muted); }

/* ---------- Signature panel (one per service) ---------- */
.signature {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: radial-gradient(140% 120% at 100% 0%, #1a160d 0%, var(--panel) 55%);
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
}
.signature .note { margin-top: 26px; color: var(--muted); font-size: 0.92rem; }
.example-tag {
  display: inline-block; margin-bottom: 18px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}

/* Websites: one record becomes many outputs */
.scale { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .scale { grid-template-columns: 1fr auto 1.2fr; gap: 36px; } }
.record { border: 1px solid var(--line); border-radius: 4px; background: rgba(6, 6, 6, 0.7); }
.record-head { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); }
.record dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.record dt, .record dd { margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); }
.record dt { color: var(--muted); font-size: 0.92rem; }
.record dd { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 479px) { .record dt, .record dd { padding: 11px 14px; font-size: 0.9rem; } }
.record dl > :nth-last-child(-n+2) { border-bottom: 0; }

.flow-arrow { position: relative; width: 2px; height: 56px; margin: 0 auto; background: var(--line-soft); overflow: hidden; }
@media (min-width: 900px) { .flow-arrow { width: 72px; height: 2px; } }
.flow-arrow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold-bright), transparent);
  animation: flow-v 2s var(--ease) infinite;
}
@media (min-width: 900px) { .flow-arrow::after { background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); animation-name: flow-h; } }
@keyframes flow-v { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes flow-h { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.outputs { display: grid; gap: 10px; }
.outputs li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold);
  border-radius: 3px;
  background: rgba(6, 6, 6, 0.55);
}
.outputs li b { font-weight: 600; }
.outputs li span { color: var(--muted); font-size: 0.92rem; }
.outputs .count { margin-left: auto; font-family: var(--display); font-style: italic; color: var(--gold-bright); font-size: 1.2rem; white-space: nowrap; }

/* Platforms strip */
.platforms { display: grid; gap: 12px; }
@media (min-width: 640px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .platforms { grid-template-columns: repeat(5, 1fr); } }
.platform { padding: 22px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--panel); }
.platform h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; }
.platform p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* Tools: a small example dashboard */
.dash { display: grid; gap: 14px; }
.kpis { display: grid; gap: 12px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { padding: 18px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(6, 6, 6, 0.6); }
.kpi span { display: block; color: var(--muted); font-size: 0.85rem; }
.kpi b { display: block; margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi em { display: block; margin-top: 8px; font-style: normal; font-size: 0.85rem; color: #9fd49a; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 200px; padding: 18px 18px 0; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(6, 6, 6, 0.6); }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.bar i {
  display: block; width: 100%; max-width: 38px;
  height: var(--h);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
}
.js .dash .bar i { transform: scaleY(0); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--k) * 80ms + 200ms); }
.js .dash.is-in .bar i { transform: none; }
.bar small { padding-bottom: 10px; color: var(--muted); font-size: 0.78rem; }

/* Automations: a flow with a pulse running through it */
.auto-flow { position: relative; display: grid; gap: 14px; }
@media (min-width: 1000px) { .auto-flow { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.auto-flow::before {
  content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--line);
}
@media (min-width: 1000px) { .auto-flow::before { left: 0; right: 0; top: 30px; bottom: auto; width: auto; height: 1px; } }
.auto-node { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
@media (min-width: 1000px) { .auto-node { grid-template-columns: 1fr; justify-items: start; gap: 16px; } }
.auto-node .dot {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold); background: var(--ink);
  font-family: var(--display); font-style: italic; color: var(--gold-bright);
  animation: node-pulse 6s var(--ease) infinite;
  animation-delay: calc(var(--k) * 1s);
}
@media (min-width: 1000px) { .auto-node .dot { width: 60px; height: 60px; font-size: 1.15rem; } }
@keyframes node-pulse {
  0%, 12% { background: var(--gold-bright); color: var(--ink); box-shadow: 0 0 0 6px rgba(232, 200, 115, 0.12), 0 0 24px rgba(232, 200, 115, 0.6); }
  22%, 100% { background: var(--ink); color: var(--gold-bright); box-shadow: none; }
}
.auto-node b { display: block; font-weight: 600; }
.auto-node span { color: var(--muted); font-size: 0.92rem; }

/* Funnels: stages that narrow */
.funnel { display: grid; gap: 10px; }
.stage {
  --w: 100%;
  position: relative;
  width: var(--w);
  margin-inline: auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.18), rgba(201, 162, 75, 0.05));
  text-align: center;
}
.js .funnel .stage { width: 30%; opacity: 0; transition: width 1100ms var(--ease-out), opacity 600ms var(--ease); transition-delay: calc(var(--k) * 140ms); }
.js .funnel.is-in .stage { width: var(--w); opacity: 1; }
/* On phones the funnel narrows less, so the text keeps room */
@media (max-width: 639px) {
  .stage, .js .funnel.is-in .stage { width: calc(54% + var(--w) * 0.46); }
}
.stage b { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 3vw, 1.45rem); }
.stage span { display: block; color: var(--muted); font-size: 0.9rem; }

/* ---------- Lab demo card ---------- */
.demo-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .demo-grid.two { grid-template-columns: 1fr 1fr; } }
.demo-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ivory);
  text-decoration: none;
  transition: border-color 400ms, transform 500ms var(--ease-out);
}
a.demo-card:hover { border-color: var(--gold-bright); transform: translateY(-3px); }
.demo-card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; }
.demo-card .brand-name { color: var(--gold-bright); font-size: 0.95rem; }
.demo-card p { color: var(--muted); }
.status {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status.live { color: #9fd49a; border-color: rgba(159, 212, 154, 0.4); }
.status.live::before { background: #9fd49a; box-shadow: 0 0 8px #9fd49a; }
.demo-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--gold-bright), var(--gold-bright)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--gold-bright), var(--gold-bright)) center / 1.5px 100% no-repeat;
  transition: transform 400ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-bright); }
.faq .answer { padding: 0 0 26px; max-width: 64ch; color: var(--muted); font-size: 1.08rem; }

/* ---------- Two-column section layout ---------- */
.split-section { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .split-section { grid-template-columns: 0.85fr 1.6fr; gap: 64px; align-items: start; }
  .split-section > .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}

/* ---------- Hub: big cards with bullets ---------- */
.hub-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .hub-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
.hub-grid .svc-card { min-height: 0; }
.hub-grid .svc-card h3 { margin-top: 0; padding-top: 40px; }
.svc-bullets { display: grid; gap: 8px; margin-top: 18px; }
.svc-bullets li { display: flex; gap: 12px; color: var(--ivory); opacity: 0.85; }
.svc-bullets li::before { content: ""; margin-top: 10px; width: 5px; height: 5px; flex: none; background: var(--gold); transform: rotate(45deg); }

/* Hub: how the services fit together */
.system { display: grid; gap: 14px; counter-reset: sys; }
@media (min-width: 1000px) { .system { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.sys-node {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
@media (min-width: 1000px) {
  .sys-node + .sys-node { border-left: 0; }
  .sys-node:first-child { border-radius: 4px 0 0 4px; }
  .sys-node:last-child { border-radius: 0 4px 4px 0; }
  .sys-node:not(:last-child)::after {
    content: ""; position: absolute; z-index: 2; right: -7px; top: 50%;
    width: 12px; height: 12px; background: var(--gold); transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 12px rgba(232, 200, 115, 0.6);
  }
}
.sys-node .role { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); }
.sys-node h3 { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.sys-node p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.sys-node a { color: inherit; text-decoration: none; }
.sys-node a:hover { color: var(--gold-bright); }

/* Related services on each service page */
.related { display: grid; gap: 14px; }
@media (min-width: 900px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related .svc-card { min-height: 240px; }
.related .svc-card h3 { font-size: clamp(1.6rem, 3vw, 2rem); padding-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  .page-hero::before, .flow-arrow::after, .auto-node .dot { animation: none; }
  .js .dash .bar i, .js .funnel .stage { transform: none; width: var(--w); opacity: 1; }
}

/* ---------- The method ---------- */
.method { display: grid; gap: 14px; }
@media (min-width: 760px) { .method { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .method { grid-template-columns: repeat(3, 1fr); } }
.method-item {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--panel);
}
.method-num { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 1.05rem; }
.method-item h3 { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.12; }
.method-item p { margin-top: 10px; color: var(--muted); }

/* ---------- Dashboard, fuller version ---------- */
.dash.pro { gap: 12px; }
.dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-top b { font-family: var(--display); font-weight: 500; font-size: 1.5rem; display: block; line-height: 1.1; }
.dash-top > div > span { color: var(--muted); font-size: 0.85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters span { padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 2px; font-size: 0.82rem; color: var(--muted); }
.filters .on { border-color: var(--gold); color: var(--gold-bright); background: rgba(201, 162, 75, 0.1); }
.kpis.four { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .kpis.four { grid-template-columns: repeat(4, 1fr); } }
.kpi { position: relative; overflow: hidden; }
.kpi b { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.kpi em.warn { color: #e8b25a; }
.spark { display: block; width: 100%; height: 26px; margin-top: 12px; }
.spark polyline { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.dash-main { display: grid; gap: 12px; }
@media (min-width: 900px) { .dash-main { grid-template-columns: 1.6fr 1fr; } }
.panel { border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(6, 6, 6, 0.6); min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.panel-head b { font-weight: 600; }
.legend { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--gold-bright); }
.legend i.prev { background: rgba(163, 154, 134, 0.35); margin-left: 6px; }
.dash.pro .bars { border: 0; background: none; height: 210px; }
.bar .pair { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100%; }
.bar .pair i { flex: 1; max-width: 18px; }
.bar .pair i.prev { background: rgba(163, 154, 134, 0.32); }

.alerts { display: grid; }
.alerts li { display: grid; gap: 2px; padding: 14px 18px 14px 22px; border-bottom: 1px solid var(--line-soft); position: relative; }
.alerts li:last-child { border-bottom: 0; }
.alerts li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; }
.alerts .bad::before { background: #e07a5f; }
.alerts .warn::before { background: #e8b25a; }
.alerts .ok::before { background: #9fd49a; }
.alerts b { font-weight: 600; font-size: 0.95rem; }
.alerts span { color: var(--muted); font-size: 0.88rem; }

.table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 460px; }
.dash-table th, .dash-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.dash-table th { color: var(--muted); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table td:nth-child(2), .dash-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.dash-table .up { color: #9fd49a; }
.dash-table .down { color: #e07a5f; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 2px; font-size: 0.78rem; border: 1px solid; }
.chip.ok { color: #9fd49a; border-color: rgba(159, 212, 154, 0.35); }
.chip.warn { color: #e8b25a; border-color: rgba(232, 178, 90, 0.4); }
.chip.bad { color: #e07a5f; border-color: rgba(224, 122, 95, 0.45); background: rgba(224, 122, 95, 0.08); }

/* ---------- Anatomy of a post ---------- */
.anatomy { display: grid; gap: 28px; }
@media (min-width: 960px) { .anatomy { grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; } }
.post-mock { border: 1px solid var(--line); border-radius: 6px; background: #f1e9d8; color: #1d1a14; overflow: hidden; min-width: 0; }
.post-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e3d9c4; font-size: 0.75rem; color: #6b6150; }
.post-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9bea6; }
.post-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-body { display: grid; gap: 14px; padding: clamp(20px, 4vw, 36px) clamp(20px, 4vw, 36px) clamp(24px, 4vw, 40px) clamp(40px, 6vw, 56px); }
.post-body .mark { position: absolute; left: calc(-1 * clamp(30px, 4.6vw, 42px)); top: 0.15em; }
.post-body > * { position: relative; }
.pm-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.15; }
.pm-meta { font-size: 0.8rem; color: #7a6f5b; margin-top: -6px; }
.pm-p { font-size: 0.95rem; line-height: 1.6; color: #3b352a; }
.pm-h { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.post-mock mark { background: rgba(201, 162, 75, 0.35); color: inherit; padding: 0 3px; border-radius: 2px; }
.pm-link { color: #8a6a24; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
.pm-faq { display: grid; gap: 6px; }
.pm-faq span { padding: 10px 12px; border: 1px solid #d6cbb3; border-radius: 3px; font-size: 0.88rem; }
.pm-cta { justify-self: start; padding: 11px 18px; background: #1d1a14; color: #f1e9d8; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px; }
.mark {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold-bright); color: #060606;
  font-family: var(--body); font-style: normal; font-weight: 600; font-size: 0.78rem; line-height: 1;
  box-shadow: 0 0 0 4px rgba(232, 200, 115, 0.2);
}
.legend { list-style: none; }
.anatomy .legend { display: grid; gap: 18px; color: var(--ivory); font-size: 1rem; }
.anatomy .legend li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.anatomy .legend b { display: block; font-weight: 600; }
.anatomy .legend li > div > span { color: var(--muted); font-size: 0.95rem; }

/* Three demo cards in a row */
@media (min-width: 1000px) { .demo-grid.three { grid-template-columns: repeat(3, 1fr); } }
.signature .note a { color: var(--gold-bright); }

/* Lab hub: a small static preview of the dashboard demo */
@media (min-width: 900px) {
  .lab-card.flip { grid-template-columns: 1.15fr 1fr; }
  .lab-card.flip .lab-demo { border-left: 0; border-right: 1px solid var(--line-soft); }
}
a.lab-demo.mini-dash {
  display: grid; gap: 12px; align-content: center;
  padding: clamp(18px, 4vw, 36px);
  background: #f7f2ea; color: #4a3a31;
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  text-decoration: none;
}
.mini-dash .md-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: #2a1d17; color: #f7efe4; }
.mini-dash .md-top b { font-weight: 700; }
.mini-dash .md-top span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.mini-dash .md-top i { width: 7px; height: 7px; border-radius: 50%; background: #5fd28f; }
.mini-dash .md-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-dash .md-kpis div { padding: 12px 14px; border: 1px solid #eadfd1; border-radius: 10px; background: #fffdf9; }
.mini-dash small { display: block; color: #8a776b; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.mini-dash .md-kpis b { display: block; font-size: clamp(1.1rem, 3vw, 1.5rem); color: #2a1d17; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-dash em { font-style: normal; font-size: 0.76rem; font-weight: 700; color: #2f8f5b; }
.mini-dash em.bad { color: #c8402e; }
.mini-dash .md-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 12px 14px 0; border: 1px solid #eadfd1; border-radius: 10px; background: #fffdf9; }
.mini-dash .md-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #f2a83b, #e2572b); }
.mini-dash .md-alert { padding: 10px 14px; border-radius: 10px; background: #fffdf9; border: 1px solid #eadfd1; border-left: 4px solid #c8402e; }
.mini-dash .md-alert b { display: block; color: #2a1d17; font-size: 0.88rem; }
.mini-dash .md-alert span { color: #8a776b; font-size: 0.8rem; }

/* Lab hub: a small static preview of the automation demo */
a.lab-demo.mini-flow { display: grid; align-content: center; padding: clamp(18px, 4vw, 40px); text-decoration: none; color: var(--ivory); }
.mini-flow ol { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-flow ol::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.mini-flow li { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; }
.mini-flow li i { grid-row: span 2; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #0b0a08; font: italic 500 0.95rem/1 var(--display); color: var(--muted); }
.mini-flow li b { font-weight: 600; font-size: 0.98rem; opacity: 0.7; }
.mini-flow li span { color: var(--muted); font-size: 0.85rem; }
.mini-flow li.done i { background: var(--gold-bright); border-color: var(--gold-bright); color: #060606; }
.mini-flow li.done b, .mini-flow li.run b { opacity: 1; }
.mini-flow li.done span, .mini-flow li.run span { color: var(--gold-bright); }
.mini-flow li.run i { border-color: var(--gold-bright); color: var(--gold-bright); box-shadow: 0 0 0 6px rgba(232, 200, 115, 0.12), 0 0 20px rgba(232, 200, 115, 0.5); animation: mf-pulse 1.2s ease-in-out infinite; }
@keyframes mf-pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .mini-flow li.run i { animation: none; } }

/* Lab hub: a small static preview of the copy demo */
a.lab-demo.mini-copy { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; text-decoration: none; overflow: hidden; }
.mc-half { display: grid; align-content: center; gap: 10px; padding: clamp(16px, 3vw, 28px); }
.mc-half small { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.mc-half b { font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.05; }
.mc-half span { font-size: 0.85rem; line-height: 1.45; }
.mc-half i { justify-self: start; font-style: normal; font-size: 0.78rem; font-weight: 700; padding: 8px 12px; border-radius: 4px; }
.mc-before { background: #fff; color: #333; font-family: Arial, Helvetica, sans-serif; text-align: center; }
.mc-before small { color: #999; }
.mc-before b { color: #111; }
.mc-before i { justify-self: center; background: #0d6efd; color: #fff; }
.mc-after { background: #efebe3; color: #2a2d31; font-family: "Archivo", system-ui, sans-serif; }
.mc-after small { color: #2f5bff; }
.mc-after b { color: #17191c; font-family: "Big Shoulders Display", "Archivo", sans-serif; font-weight: 900; font-size: clamp(1.2rem, 2.6vw, 1.7rem); text-transform: uppercase; }
.mc-after i { background: #2f5bff; color: #fff; }
.mini-copy::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gold-bright); box-shadow: 0 0 12px rgba(232, 200, 115, 0.7); }
.mc-grip { position: absolute; z-index: 1; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: #0b0a08; border: 2px solid var(--gold-bright); }

/* Lab hub: a small static preview of the speed race */
a.lab-demo.mini-race { display: grid; align-content: center; gap: 18px; padding: clamp(20px, 4vw, 44px); text-decoration: none; color: var(--ivory); }
.mr-lane { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.mr-lane span { font-family: var(--display); font-size: 1.3rem; }
.mr-lane b { font: 600 clamp(1.6rem, 4vw, 2.2rem)/1 "IBM Plex Mono", ui-monospace, monospace; }
.mr-lane.fast b { color: var(--gold-bright); }
.mr-lane.slow b { color: #e07a5f; }
.mr-lane i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line-soft); position: relative; overflow: hidden; }
.mr-lane i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; }
.mr-lane.fast i::after { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.mr-lane.slow i::after { background: linear-gradient(90deg, #8a3a2b, #e07a5f); }
.mr-lane small { grid-column: 1 / -1; color: var(--muted); font: 500 0.8rem/1 "IBM Plex Mono", ui-monospace, monospace; }
.mr-note { margin: 0; color: var(--muted); font-size: 0.82rem; }
